From 3d34796c7ca34eebfb11f4311a5f07cbeacf19f3 Mon Sep 17 00:00:00 2001 From: wuyachi Date: Wed, 26 Apr 2023 12:00:19 +0800 Subject: [PATCH] Add XinFin chain --- base/base.go | 2 ++ base/devnet.go | 5 +++-- base/mainnet.go | 5 +++-- base/testnet.go | 5 +++-- 4 files changed, 11 insertions(+), 6 deletions(-) diff --git a/base/base.go b/base/base.go index dc09c0c..68b512a 100644 --- a/base/base.go +++ b/base/base.go @@ -156,6 +156,8 @@ func GetChainName(id uint64) string { return "Dexit" case CLOUDTX: return "CloudTx" + case XINFIN: + return "XinFin" default: return fmt.Sprintf("Unknown(%d)", id) diff --git a/base/devnet.go b/base/devnet.go index e091404..728ff55 100644 --- a/base/devnet.go +++ b/base/devnet.go @@ -55,6 +55,7 @@ const ( APTOS uint64 = 998 DEXIT uint64 = 1020 CLOUDTX uint64 = 1030 + XINFIN uint64 = 1050 ENV = "devnet" ) @@ -62,11 +63,11 @@ const ( var CHAINS = []uint64{ POLY, ETH, BSC, HECO, OK, ONT, NEO, NEO3, HEIMDALL, MATIC, SWITCHEO, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, POLY, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS, RINKEBY, GOERLI, PIXIE, HSC, HARMONY, BYTOM, STARCOIN, ONTEVM, - CUBE, KAVA, FLOW, RIPPLE, ZKSYNC, CELO, CLOVER, CONFLUX, ASTAR, BRISE, APTOS, DEXIT, CLOUDTX, + CUBE, KAVA, FLOW, RIPPLE, ZKSYNC, CELO, CLOVER, CONFLUX, ASTAR, BRISE, APTOS, DEXIT, CLOUDTX, XINFIN, } var ETH_CHAINS = []uint64{ ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, RINKEBY, GOERLI, BOBA, PIXIE, OASIS, HSC, ETH, BSC, HECO, OK, MATIC, O3, METIS, RINKEBY, GOERLI, PIXIE, HSC, HARMONY, BYTOM, KCC, ONTEVM, CUBE, KAVA, ZKSYNC, - CELO, CLOVER, CONFLUX, ASTAR, BRISE, DEXIT, CLOUDTX, + CELO, CLOVER, CONFLUX, ASTAR, BRISE, DEXIT, CLOUDTX, XINFIN, } diff --git a/base/mainnet.go b/base/mainnet.go index 0d5ebda..dbfaae0 100644 --- a/base/mainnet.go +++ b/base/mainnet.go @@ -61,6 +61,7 @@ const ( DEXIT uint64 = 43 CLOUDTX uint64 = 44 ZKSYNC uint64 = 45 + XINFIN uint64 = 46 // Invalid chain IDs RINKEBY uint64 = 1000000 @@ -76,10 +77,10 @@ const ( var CHAINS = []uint64{ POLY, ETH, BSC, HECO, OK, ONT, NEO, NEO3, HEIMDALL, MATIC, SWITCHEO, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, MILKO, CUBE, KAVA, FLOW, ZKSYNC, - ZKSYNC, CELO, CLOVER, CONFLUX, ASTAR, BRISE, APTOS, DEXIT, CLOUDTX, + ZKSYNC, CELO, CLOVER, CONFLUX, ASTAR, BRISE, APTOS, DEXIT, CLOUDTX, XINFIN, } var ETH_CHAINS = []uint64{ ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, - BYTOM, BCSPALETTE, KCC, ONTEVM, MILKO, CUBE, KAVA, ZKSYNC, CELO, CLOVER, CONFLUX, ASTAR, BRISE, DEXIT, CLOUDTX, + BYTOM, BCSPALETTE, KCC, ONTEVM, MILKO, CUBE, KAVA, ZKSYNC, CELO, CLOVER, CONFLUX, ASTAR, BRISE, DEXIT, CLOUDTX, XINFIN, } diff --git a/base/testnet.go b/base/testnet.go index 1934a08..4a0e059 100644 --- a/base/testnet.go +++ b/base/testnet.go @@ -64,6 +64,7 @@ const ( BRISE uint64 = 1010 DEXIT uint64 = 1020 CLOUDTX uint64 = 1030 + XINFIN uint64 = 1050 SWITCHEO uint64 = 1000 BCSPALETTE uint64 = 1001 @@ -75,11 +76,11 @@ const ( var CHAINS = []uint64{ POLY, ETH, BSC, HECO, OK, ONT, NEO, NEO3, HEIMDALL, MATIC, SWITCHEO, O3, PLT, PLT2, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, MILKO, CUBE, KAVA, FLOW, ZKSYNC, - CELO, CLOVER, CONFLUX, ASTAR, BRISE, DEXIT, CLOUDTX, + CELO, CLOVER, CONFLUX, ASTAR, BRISE, DEXIT, CLOUDTX, XINFIN, } var ETH_CHAINS = []uint64{ ETH, BSC, HECO, OK, MATIC, O3, PLT, PLT2, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, HARMONY, HARMONY, BYTOM, BCSPALETTE, KCC, ONTEVM, MILKO, CUBE, KAVA, ZKSYNC, CELO, CLOVER, CONFLUX, ASTAR, BRISE, DEXIT, - CLOUDTX, + CLOUDTX, XINFIN, }