Skip to content

Commit 922360e

Browse files
authored
Merge pull request #253 from 0xsequence/Feature/chainsFeb14
Added Etherlink mainnet and testnet and XR1 mainnet
2 parents 3b82ce4 + 3d8d485 commit 922360e

File tree

5 files changed

+36
-6
lines changed

5 files changed

+36
-6
lines changed

Packages/Sequence-Unity/Sequence/SequenceFrontend/ScriptableObjects/NetworkIcons.asset

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ MonoBehaviour:
5959
Value: {fileID: 21300000, guid: fca1fb969526641ab92a7dadb3373992, type: 3}
6060
- Key: 1284
6161
Value: {fileID: 21300000, guid: 487a52377dc99420699217f27a3f7940, type: 3}
62+
- Key: 42793
63+
Value: {fileID: 21300000, guid: f555d6588bf384a80b090c446349e04e, type: 3}
64+
- Key: 273
65+
Value: {fileID: 21300000, guid: 3fd037e980ef344a698dc0f47ad1b695, type: 3}
6266
- Key: 11155111
6367
Value: {fileID: 21300000, guid: 3e21b6696eaaa46b1b176b8b5e6254a3, type: 3}
6468
- Key: 80002
@@ -105,3 +109,5 @@ MonoBehaviour:
105109
Value: {fileID: 21300000, guid: fca1fb969526641ab92a7dadb3373992, type: 3}
106110
- Key: 1287
107111
Value: {fileID: 21300000, guid: 67e27505fbd0e4afe8ed08544b5e232d, type: 3}
112+
- Key: 128123
113+
Value: {fileID: 21300000, guid: f555d6588bf384a80b090c446349e04e, type: 3}

Packages/Sequence-Unity/Sequence/SequenceSDK/Ethereum/Chain.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public enum Chain
3030
Soneium = 1868,
3131
Telos = 40,
3232
Moonbeam = 1284,
33+
Etherlink = 42793,
34+
XR1 = 273,
3335

3436
// Testnets
3537
TestnetSepolia = 11155111,
@@ -56,6 +58,7 @@ public enum Chain
5658
TestnetLAOSSigma = 62850,
5759
TestnetTelos = 41,
5860
TestnetMoonbaseAlpha = 1287,
61+
TestnetEtherlink = 128123,
5962

6063
TestnetXaiSepolia = -1, // Xai Sepolia's testnet's chain ID is too large to fit inside an int
6164

Packages/Sequence-Unity/Sequence/SequenceSDK/Ethereum/ChainDictionaries.cs

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public static class ChainDictionaries
2929
{ Chain.Soneium, "Soneium" },
3030
{ Chain.Telos, "Telos" },
3131
{ Chain.Moonbeam, "Moonbeam"},
32+
{ Chain.Etherlink, "Etherlink" },
33+
{ Chain.XR1, "XR1" },
3234

3335
{ Chain.TestnetSepolia, "Sepolia" },
3436
{ Chain.TestnetArbitrumSepolia, "Arbitrum Sepolia" },
@@ -53,6 +55,7 @@ public static class ChainDictionaries
5355
{ Chain.TestnetLAOSSigma, "LAOS Sigma Testnet" },
5456
{ Chain.TestnetTelos, "Telos Testnet" },
5557
{ Chain.TestnetMoonbaseAlpha, "Moonbase Alpha" },
58+
{ Chain.TestnetEtherlink, "Etherlink Testnet" },
5659
};
5760

5861
public static Dictionary<Chain, string> GasCurrencyOf = new Dictionary<Chain, string>()
@@ -80,6 +83,8 @@ public static class ChainDictionaries
8083
{ Chain.Soneium, "ETH" },
8184
{ Chain.Telos, "TLOS" },
8285
{ Chain.Moonbeam, "GLMR" },
86+
{ Chain.Etherlink, "XTZ" },
87+
{ Chain.XR1, "XR1" },
8388

8489
{ Chain.TestnetSepolia, "ETH" },
8590
{ Chain.TestnetArbitrumSepolia, "AETH" },
@@ -104,6 +109,7 @@ public static class ChainDictionaries
104109
{ Chain.TestnetLAOSSigma, "SIGMA" },
105110
{ Chain.TestnetTelos, "TLOS" },
106111
{ Chain.TestnetMoonbaseAlpha, "DEV" },
112+
{ Chain.TestnetEtherlink, "XTZ" },
107113
};
108114

109115
public static Dictionary<Chain, string> NativeTokenAddressOf = new Dictionary<Chain, string>()
@@ -164,6 +170,8 @@ public static class ChainDictionaries
164170
{ Chain.Soneium, "https://vk9a3tgpne6qmub8.blockscout.com/" },
165171
{ Chain.Telos, "https://www.teloscan.io/" },
166172
{ Chain.Moonbeam, "https://moonscan.io/"},
173+
{ Chain.Etherlink, "https://explorer.etherlink.com/"},
174+
{ Chain.XR1, ""}, // TDB
167175

168176
{ Chain.TestnetSepolia, "https://sepolia.etherscan.io/" },
169177
{ Chain.TestnetArbitrumSepolia, "https://sepolia.arbiscan.io/" },
@@ -187,7 +195,8 @@ public static class ChainDictionaries
187195
{ Chain.TestnetRootPorcini, "https://porcini.rootscan.io/" },
188196
{ Chain.TestnetLAOSSigma, "https://sigma.explorer.laosnetwork.io/" },
189197
{ Chain.TestnetTelos, "https://testnet.teloscan.io/" },
190-
{ Chain.TestnetMoonbaseAlpha, "https://moonbase.moonscan.io/"},
198+
{ Chain.TestnetMoonbaseAlpha, "https://moonbase.moonscan.io/" },
199+
{ Chain.TestnetEtherlink, "https://testnet.explorer.etherlink.com/" },
191200
};
192201

193202
public static Dictionary<Chain, string> ChainIdOf = new Dictionary<Chain, string>()
@@ -217,6 +226,8 @@ public static class ChainDictionaries
217226
{ Chain.Soneium, "1868" },
218227
{ Chain.Telos, "40" },
219228
{ Chain.Moonbeam, "1284" },
229+
{ Chain.Etherlink, "42793" },
230+
{ Chain.XR1, "273" },
220231

221232
{ Chain.TestnetSepolia, "11155111" },
222233
{ Chain.TestnetPolygonAmoy, "80002" },
@@ -240,7 +251,8 @@ public static class ChainDictionaries
240251
{ Chain.TestnetRootPorcini, "7672" },
241252
{ Chain.TestnetLAOSSigma, "62850" },
242253
{ Chain.TestnetTelos, "41" },
243-
{ Chain.TestnetMoonbaseAlpha, "1287" }
254+
{ Chain.TestnetMoonbaseAlpha, "1287" },
255+
{ Chain.TestnetEtherlink, "128123" },
244256
};
245257

246258
public static Dictionary<string, Chain> ChainById = new Dictionary<string, Chain>()
@@ -268,6 +280,8 @@ public static class ChainDictionaries
268280
{ "1868", Chain.Soneium },
269281
{ "40", Chain.Telos },
270282
{ "1284", Chain.Moonbeam },
283+
{ "42793", Chain.Etherlink },
284+
{ "273", Chain.XR1 },
271285

272286
{ "11155111", Chain.TestnetSepolia },
273287
{ "80002", Chain.TestnetPolygonAmoy },
@@ -291,7 +305,8 @@ public static class ChainDictionaries
291305
{ "7672", Chain.TestnetRootPorcini },
292306
{ "62850", Chain.TestnetLAOSSigma },
293307
{ "41", Chain.TestnetTelos },
294-
{ "1287", Chain.TestnetMoonbaseAlpha }
308+
{ "1287", Chain.TestnetMoonbaseAlpha },
309+
{ "128123", Chain.TestnetEtherlink },
295310
};
296311

297312
public static Dictionary<Chain, string> PathOf = new Dictionary<Chain, string>()
@@ -319,6 +334,8 @@ public static class ChainDictionaries
319334
{ Chain.Soneium, "soneium" },
320335
{ Chain.Telos, "telos" },
321336
{ Chain.Moonbeam, "moonbeam" },
337+
{ Chain.Etherlink, "etherlink" },
338+
{ Chain.XR1, "xr1" },
322339

323340
{ Chain.TestnetSepolia, "sepolia" },
324341
{ Chain.TestnetArbitrumSepolia, "arbitrum-sepolia" },
@@ -342,7 +359,8 @@ public static class ChainDictionaries
342359
{ Chain.TestnetRootPorcini, "rootnet-porcini" },
343360
{ Chain.TestnetLAOSSigma, "laos-sigma-testnet" },
344361
{ Chain.TestnetTelos, "telos-testnet" },
345-
{ Chain.TestnetMoonbaseAlpha, "moonbase-alpha" }
362+
{ Chain.TestnetMoonbaseAlpha, "moonbase-alpha" },
363+
{ Chain.TestnetEtherlink, "etherlink-testnet" },
346364
};
347365
}
348366
}

Packages/Sequence-Unity/Sequence/SequenceSDK/Indexer/Indexer.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ internal static readonly Dictionary<string, string> IndexerNames
9191
{ Chain.Soneium.GetChainId(), "soneium" },
9292
{ Chain.Telos.GetChainId(), "telos" },
9393
{ Chain.Moonbeam.GetChainId(), "moonbeam" },
94+
{ Chain.Etherlink.GetChainId(), "etherlink" },
95+
{ Chain.XR1.GetChainId(), "xr1" },
9496

9597
{ Chain.TestnetSepolia.GetChainId(), "sepolia" },
9698
{ Chain.TestnetArbitrumSepolia.GetChainId(), "arbitrum-sepolia" },
@@ -114,7 +116,8 @@ internal static readonly Dictionary<string, string> IndexerNames
114116
{ Chain.TestnetRootPorcini.GetChainId(), "rootnet-porcini" },
115117
{ Chain.TestnetLAOSSigma.GetChainId(), "laos-sigma-testnet" },
116118
{ Chain.TestnetTelos.GetChainId(), "telos-testnet" },
117-
{ Chain.TestnetMoonbaseAlpha.GetChainId(), "moonbase-alpha" }
119+
{ Chain.TestnetMoonbaseAlpha.GetChainId(), "moonbase-alpha" },
120+
{ Chain.TestnetEtherlink.GetChainId(), "etherlink-testnet" }
118121
};
119122

120123
private static string _builderApiKey = SequenceConfig.GetConfig().BuilderAPIKey;

Packages/Sequence-Unity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xyz.0xsequence.waas-unity",
3-
"version": "3.19.1",
3+
"version": "3.19.2",
44
"displayName": "Sequence Embedded Wallet SDK",
55
"description": "A Unity SDK for the Sequence WaaS API",
66
"unity": "2021.3",

0 commit comments

Comments
 (0)