Skip to content

Commit 57ca162

Browse files
Add telos support (#232)
1 parent d88c252 commit 57ca162

5 files changed

Lines changed: 26 additions & 6 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ MonoBehaviour:
5555
Value: {fileID: 21300000, guid: e623433d012824a3d8c0861b03013af9, type: 3}
5656
- Key: 1868
5757
Value: {fileID: 21300000, guid: bd5c36b9fb9f344faac5498fb1ef8adf, type: 3}
58+
- Key: 40
59+
Value: {fileID: 21300000, guid: fca1fb969526641ab92a7dadb3373992, type: 3}
5860
- Key: 11155111
5961
Value: {fileID: 21300000, guid: 3e21b6696eaaa46b1b176b8b5e6254a3, type: 3}
6062
- Key: 80002
@@ -97,3 +99,5 @@ MonoBehaviour:
9799
Value: {fileID: 21300000, guid: a8156bec3ad414f97ba84819675b6003, type: 3}
98100
- Key: -1
99101
Value: {fileID: 21300000, guid: 636803a1680c145c99675de2aaf50a81, type: 3}
102+
- Key: 41
103+
Value: {fileID: 21300000, guid: fca1fb969526641ab92a7dadb3373992, type: 3}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public enum Chain
2828
Root = 7668,
2929
LAOS = 6283,
3030
Soneium = 1868,
31+
Telos = 40,
3132

3233
// Testnets
3334
TestnetSepolia = 11155111,
@@ -52,6 +53,7 @@ public enum Chain
5253
TestnetImmutableZkEvm = 13473,
5354
TestnetRootPorcini = 7672,
5455
TestnetLAOSSigma = 62850,
56+
TestnetTelos = 41,
5557

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

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

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public static class ChainDictionaries
2727
{ Chain.Root, "Root" },
2828
{ Chain.LAOS, "LAOS" },
2929
{ Chain.Soneium, "Soneium" },
30+
{ Chain.Telos, "Telos" },
3031

3132
{ Chain.TestnetSepolia, "Sepolia" },
3233
{ Chain.TestnetArbitrumSepolia, "Arbitrum Sepolia" },
@@ -49,6 +50,7 @@ public static class ChainDictionaries
4950
{ Chain.TestnetImmutableZkEvm, "Immutable zkEVM Testnet" },
5051
{ Chain.TestnetRootPorcini, "Root Porcini Testnet" },
5152
{ Chain.TestnetLAOSSigma, "LAOS Sigma Testnet" },
53+
{ Chain.TestnetTelos, "Telos Testnet" },
5254
};
5355

5456
public static Dictionary<Chain, string> GasCurrencyOf = new Dictionary<Chain, string>()
@@ -74,6 +76,7 @@ public static class ChainDictionaries
7476
{ Chain.Root, "XRP" },
7577
{ Chain.LAOS, "LAOS" },
7678
{ Chain.Soneium, "ETH" },
79+
{ Chain.Telos, "TLOS" },
7780

7881
{ Chain.TestnetSepolia, "ETH" },
7982
{ Chain.TestnetArbitrumSepolia, "AETH" },
@@ -96,6 +99,7 @@ public static class ChainDictionaries
9699
{ Chain.TestnetImmutableZkEvm, "IMX" },
97100
{ Chain.TestnetRootPorcini, "XRP" },
98101
{ Chain.TestnetLAOSSigma, "SIGMA" },
102+
{ Chain.TestnetTelos, "TLOS" }
99103
};
100104

101105
public static Dictionary<Chain, string> NativeTokenAddressOf = new Dictionary<Chain, string>()
@@ -154,6 +158,7 @@ public static class ChainDictionaries
154158
{ Chain.Root, "https://rootscan.io/" },
155159
{ Chain.LAOS, "https://blockscout.laos.laosfoundation.io/" },
156160
{ Chain.Soneium, "https://vk9a3tgpne6qmub8.blockscout.com/" },
161+
{ Chain.Telos, "https://www.teloscan.io/" },
157162

158163
{ Chain.TestnetSepolia, "https://sepolia.etherscan.io/" },
159164
{ Chain.TestnetArbitrumSepolia, "https://sepolia.arbiscan.io/" },
@@ -175,7 +180,8 @@ public static class ChainDictionaries
175180
{ Chain.TestnetToy, "https://toy-chain-testnet.explorer.caldera.xyz/" },
176181
{ Chain.TestnetImmutableZkEvm, "https://explorer.testnet.immutable.com/" },
177182
{ Chain.TestnetRootPorcini, "https://porcini.rootscan.io/" },
178-
{ Chain.TestnetLAOSSigma, "https://sigma.explorer.laosnetwork.io/" }
183+
{ Chain.TestnetLAOSSigma, "https://sigma.explorer.laosnetwork.io/" },
184+
{ Chain.TestnetTelos, "https://testnet.teloscan.io/" },
179185
};
180186

181187
public static Dictionary<Chain, string> ChainIdOf = new Dictionary<Chain, string>()
@@ -203,6 +209,7 @@ public static class ChainDictionaries
203209
{ Chain.Root, "7668" },
204210
{ Chain.LAOS, "6283" },
205211
{ Chain.Soneium, "1868" },
212+
{ Chain.Telos, "40" },
206213

207214
{ Chain.TestnetSepolia, "11155111" },
208215
{ Chain.TestnetPolygonAmoy, "80002" },
@@ -224,7 +231,8 @@ public static class ChainDictionaries
224231
{ Chain.TestnetToy, "21000000" },
225232
{ Chain.TestnetImmutableZkEvm, "13473" },
226233
{ Chain.TestnetRootPorcini, "7672" },
227-
{ Chain.TestnetLAOSSigma, "62850" }
234+
{ Chain.TestnetLAOSSigma, "62850" },
235+
{ Chain.TestnetTelos, "41" }
228236
};
229237

230238
public static Dictionary<string, Chain> ChainById = new Dictionary<string, Chain>()
@@ -250,6 +258,7 @@ public static class ChainDictionaries
250258
{ "7668", Chain.Root },
251259
{ "6283", Chain.LAOS },
252260
{ "1868", Chain.Soneium },
261+
{ "40", Chain.Telos },
253262

254263
{ "11155111", Chain.TestnetSepolia },
255264
{ "80002", Chain.TestnetPolygonAmoy },
@@ -271,7 +280,8 @@ public static class ChainDictionaries
271280
{ "21000000", Chain.TestnetToy },
272281
{ "13473", Chain.TestnetImmutableZkEvm },
273282
{ "7672", Chain.TestnetRootPorcini },
274-
{ "62850", Chain.TestnetLAOSSigma }
283+
{ "62850", Chain.TestnetLAOSSigma },
284+
{ "41", Chain.TestnetTelos }
275285
};
276286

277287
public static Dictionary<Chain, string> PathOf = new Dictionary<Chain, string>()
@@ -297,6 +307,7 @@ public static class ChainDictionaries
297307
{ Chain.Root, "rootnet" },
298308
{ Chain.LAOS, "laos" },
299309
{ Chain.Soneium, "soneium" },
310+
{ Chain.Telos, "telos" },
300311

301312
{ Chain.TestnetSepolia, "sepolia" },
302313
{ Chain.TestnetArbitrumSepolia, "arbitrum-sepolia" },
@@ -318,7 +329,8 @@ public static class ChainDictionaries
318329
{ Chain.TestnetToy, "toy-testnet" },
319330
{ Chain.TestnetImmutableZkEvm, "immutable-zkevm-testnet" },
320331
{ Chain.TestnetRootPorcini, "rootnet-porcini" },
321-
{ Chain.TestnetLAOSSigma, "laos-sigma-testnet" }
332+
{ Chain.TestnetLAOSSigma, "laos-sigma-testnet" },
333+
{ Chain.TestnetTelos, "telos-testnet" }
322334
};
323335
}
324336
}

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ internal static readonly Dictionary<string, string> IndexerNames
8888
{ Chain.Root.GetChainId(), "rootnet" },
8989
{ Chain.LAOS.GetChainId(), "laos" },
9090
{ Chain.Soneium.GetChainId(), "soneium" },
91+
{ Chain.Telos.GetChainId(), "telos" },
9192

9293
{ Chain.TestnetSepolia.GetChainId(), "sepolia" },
9394
{ Chain.TestnetArbitrumSepolia.GetChainId(), "arbitrum-sepolia" },
@@ -109,7 +110,8 @@ internal static readonly Dictionary<string, string> IndexerNames
109110
{ Chain.TestnetToy.GetChainId(), "toy-testnet" },
110111
{ Chain.TestnetImmutableZkEvm.GetChainId(), "immutable-zkevm-testnet" },
111112
{ Chain.TestnetRootPorcini.GetChainId(), "rootnet-porcini" },
112-
{ Chain.TestnetLAOSSigma.GetChainId(), "laos-sigma-testnet" }
113+
{ Chain.TestnetLAOSSigma.GetChainId(), "laos-sigma-testnet" },
114+
{ Chain.TestnetTelos.GetChainId(), "telos-testnet" }
113115
};
114116

115117
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.15.0",
3+
"version": "3.16.0",
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)