Skip to content

Commit 5e66493

Browse files
jadeydili
andauthored
add avalanche c (#272)
Co-authored-by: li <yuqlee@mixin.one>
1 parent a2a097a commit 5e66493

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

chain.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const (
5656
KusamaChainId = "9d29e4f6-d67c-4c4b-9525-604b04afbe9f"
5757
AlgorandChainId = "706b6f84-3333-4e55-8e89-275e71ce9803"
5858
AvalancheChainId = "cbc77539-0a20-4666-8c8a-4ded62b36f0a"
59+
AvalancheCChainId = "1f67ac58-87ba-3571-9781-e9413c046f34"
5960
XDCChainId = "b12bb04a-1cea-401c-a086-0be61f544889"
6061
AptosChainId = "d2c1c7e1-a1a9-4f88-b282-d93b0a08b42b"
6162
TONChainId = "ef660437-d915-4e27-ad3f-632bfb6ba0ee"
@@ -162,6 +163,8 @@ func GetChainName(chainId string) string {
162163
return "Zcash"
163164
case AvalancheChainId:
164165
return "Avalanche"
166+
case AvalancheCChainId:
167+
return "Avalanche C-Chain"
165168
case MoneroChainId:
166169
return "Monero"
167170
case NEMChainId:
@@ -276,6 +279,7 @@ var validChainMap = map[string]bool{
276279
AlgorandChainId: true,
277280
NearChainId: true,
278281
AvalancheChainId: true,
282+
AvalancheCChainId: true,
279283
XDCChainId: true,
280284
AptosChainId: true,
281285

@@ -336,6 +340,7 @@ func GetFullChains() map[string]bool {
336340
KusamaChainId: true,
337341
AlgorandChainId: true,
338342
AvalancheChainId: true,
343+
AvalancheCChainId: true,
339344
XDCChainId: true,
340345
AptosChainId: true,
341346
TONChainId: true,

0 commit comments

Comments
 (0)