Skip to content

Commit

Permalink
Add telos support
Browse files Browse the repository at this point in the history
  • Loading branch information
BellringerQuinn committed Jan 16, 2025
1 parent 566ab21 commit f933442
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ MonoBehaviour:
Value: {fileID: 21300000, guid: e623433d012824a3d8c0861b03013af9, type: 3}
- Key: 1868
Value: {fileID: 21300000, guid: bd5c36b9fb9f344faac5498fb1ef8adf, type: 3}
- Key: 40
Value: {fileID: 21300000, guid: fca1fb969526641ab92a7dadb3373992, type: 3}
- Key: 11155111
Value: {fileID: 21300000, guid: 3e21b6696eaaa46b1b176b8b5e6254a3, type: 3}
- Key: 80002
Expand Down Expand Up @@ -97,3 +99,5 @@ MonoBehaviour:
Value: {fileID: 21300000, guid: a8156bec3ad414f97ba84819675b6003, type: 3}
- Key: -1
Value: {fileID: 21300000, guid: 636803a1680c145c99675de2aaf50a81, type: 3}
- Key: 41
Value: {fileID: 21300000, guid: fca1fb969526641ab92a7dadb3373992, type: 3}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public enum Chain
Root = 7668,
LAOS = 6283,
Soneium = 1868,
Telos = 40,

// Testnets
TestnetSepolia = 11155111,
Expand All @@ -52,6 +53,7 @@ public enum Chain
TestnetImmutableZkEvm = 13473,
TestnetRootPorcini = 7672,
TestnetLAOSSigma = 62850,
TestnetTelos = 41,

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static class ChainDictionaries
{ Chain.Root, "Root" },
{ Chain.LAOS, "LAOS" },
{ Chain.Soneium, "Soneium" },
{ Chain.Telos, "Telos" },

{ Chain.TestnetSepolia, "Sepolia" },
{ Chain.TestnetArbitrumSepolia, "Arbitrum Sepolia" },
Expand All @@ -49,6 +50,7 @@ public static class ChainDictionaries
{ Chain.TestnetImmutableZkEvm, "Immutable zkEVM Testnet" },
{ Chain.TestnetRootPorcini, "Root Porcini Testnet" },
{ Chain.TestnetLAOSSigma, "LAOS Sigma Testnet" },
{ Chain.TestnetTelos, "Telos Testnet" },
};

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

{ Chain.TestnetSepolia, "ETH" },
{ Chain.TestnetArbitrumSepolia, "AETH" },
Expand All @@ -96,6 +99,7 @@ public static class ChainDictionaries
{ Chain.TestnetImmutableZkEvm, "IMX" },
{ Chain.TestnetRootPorcini, "XRP" },
{ Chain.TestnetLAOSSigma, "SIGMA" },
{ Chain.TestnetTelos, "TLOS" }
};

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

{ Chain.TestnetSepolia, "https://sepolia.etherscan.io/" },
{ Chain.TestnetArbitrumSepolia, "https://sepolia.arbiscan.io/" },
Expand All @@ -175,7 +180,8 @@ public static class ChainDictionaries
{ Chain.TestnetToy, "https://toy-chain-testnet.explorer.caldera.xyz/" },
{ Chain.TestnetImmutableZkEvm, "https://explorer.testnet.immutable.com/" },
{ Chain.TestnetRootPorcini, "https://porcini.rootscan.io/" },
{ Chain.TestnetLAOSSigma, "https://sigma.explorer.laosnetwork.io/" }
{ Chain.TestnetLAOSSigma, "https://sigma.explorer.laosnetwork.io/" },
{ Chain.TestnetTelos, "https://testnet.teloscan.io/" },
};

public static Dictionary<Chain, string> ChainIdOf = new Dictionary<Chain, string>()
Expand Down Expand Up @@ -203,6 +209,7 @@ public static class ChainDictionaries
{ Chain.Root, "7668" },
{ Chain.LAOS, "6283" },
{ Chain.Soneium, "1868" },
{ Chain.Telos, "40" },

{ Chain.TestnetSepolia, "11155111" },
{ Chain.TestnetPolygonAmoy, "80002" },
Expand All @@ -224,7 +231,8 @@ public static class ChainDictionaries
{ Chain.TestnetToy, "21000000" },
{ Chain.TestnetImmutableZkEvm, "13473" },
{ Chain.TestnetRootPorcini, "7672" },
{ Chain.TestnetLAOSSigma, "62850" }
{ Chain.TestnetLAOSSigma, "62850" },
{ Chain.TestnetTelos, "41" }
};

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

{ "11155111", Chain.TestnetSepolia },
{ "80002", Chain.TestnetPolygonAmoy },
Expand All @@ -271,7 +280,8 @@ public static class ChainDictionaries
{ "21000000", Chain.TestnetToy },
{ "13473", Chain.TestnetImmutableZkEvm },
{ "7672", Chain.TestnetRootPorcini },
{ "62850", Chain.TestnetLAOSSigma }
{ "62850", Chain.TestnetLAOSSigma },
{ "41", Chain.TestnetTelos }
};

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

{ Chain.TestnetSepolia, "sepolia" },
{ Chain.TestnetArbitrumSepolia, "arbitrum-sepolia" },
Expand All @@ -318,7 +329,8 @@ public static class ChainDictionaries
{ Chain.TestnetToy, "toy-testnet" },
{ Chain.TestnetImmutableZkEvm, "immutable-zkevm-testnet" },
{ Chain.TestnetRootPorcini, "rootnet-porcini" },
{ Chain.TestnetLAOSSigma, "laos-sigma-testnet" }
{ Chain.TestnetLAOSSigma, "laos-sigma-testnet" },
{ Chain.TestnetTelos, "telos-testnet" }
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ internal static readonly Dictionary<string, string> IndexerNames
{ Chain.Root.GetChainId(), "rootnet" },
{ Chain.LAOS.GetChainId(), "laos" },
{ Chain.Soneium.GetChainId(), "soneium" },
{ Chain.Telos.GetChainId(), "telos" },

{ Chain.TestnetSepolia.GetChainId(), "sepolia" },
{ Chain.TestnetArbitrumSepolia.GetChainId(), "arbitrum-sepolia" },
Expand All @@ -109,7 +110,8 @@ internal static readonly Dictionary<string, string> IndexerNames
{ Chain.TestnetToy.GetChainId(), "toy-testnet" },
{ Chain.TestnetImmutableZkEvm.GetChainId(), "immutable-zkevm-testnet" },
{ Chain.TestnetRootPorcini.GetChainId(), "rootnet-porcini" },
{ Chain.TestnetLAOSSigma.GetChainId(), "laos-sigma-testnet" }
{ Chain.TestnetLAOSSigma.GetChainId(), "laos-sigma-testnet" },
{ Chain.TestnetTelos.GetChainId(), "telos-testnet" }
};

private static string _builderApiKey = SequenceConfig.GetConfig().BuilderAPIKey;
Expand Down
2 changes: 1 addition & 1 deletion Packages/Sequence-Unity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xyz.0xsequence.waas-unity",
"version": "3.15.0",
"version": "3.16.0",
"displayName": "Sequence Embedded Wallet SDK",
"description": "A Unity SDK for the Sequence WaaS API",
"unity": "2021.3",
Expand Down

0 comments on commit f933442

Please sign in to comment.