Skip to content

Commit

Permalink
Add XinFin chain
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyachi committed Apr 26, 2023
1 parent 5603b4d commit 3d34796
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 2 additions & 0 deletions base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions base/devnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,19 @@ const (
APTOS uint64 = 998
DEXIT uint64 = 1020
CLOUDTX uint64 = 1030
XINFIN uint64 = 1050

ENV = "devnet"
)

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,
}
5 changes: 3 additions & 2 deletions base/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const (
DEXIT uint64 = 43
CLOUDTX uint64 = 44
ZKSYNC uint64 = 45
XINFIN uint64 = 46

// Invalid chain IDs
RINKEBY uint64 = 1000000
Expand All @@ -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,
}
5 changes: 3 additions & 2 deletions base/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const (
BRISE uint64 = 1010
DEXIT uint64 = 1020
CLOUDTX uint64 = 1030
XINFIN uint64 = 1050

SWITCHEO uint64 = 1000
BCSPALETTE uint64 = 1001
Expand All @@ -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,
}

0 comments on commit 3d34796

Please sign in to comment.