diff --git a/base/base.go b/base/base.go index 529c39d..1b25113 100644 --- a/base/base.go +++ b/base/base.go @@ -120,6 +120,8 @@ func GetChainName(id uint64) string { return "Hsc" case HARMONY: return "Harmony" + case BYTOM: + return "Bytom" default: return fmt.Sprintf("Unknown(%d)", id) } @@ -131,7 +133,7 @@ func BlocksToSkip(chainId uint64) uint64 { return 120 case ETH: return 8 - case BSC, HECO, HSC: + case BSC, HECO, HSC, BYTOM: return 17 case O3: return 8 @@ -150,7 +152,7 @@ func BlocksToWait(chainId uint64) uint64 { switch chainId { case ETH: return 12 - case BSC, HECO, HSC: + case BSC, HECO, HSC, BYTOM: return 21 case ONT, NEO, NEO3, OK, SWITCHEO: return 1 diff --git a/base/devnet.go b/base/devnet.go index d9d601d..d3f826b 100644 --- a/base/devnet.go +++ b/base/devnet.go @@ -36,6 +36,7 @@ const ( PIXIE uint64 = 316 RINKEBY uint64 = 402 HSC uint64 = 603 + BYTOM uint64 = 700 SWITCHEO uint64 = 1000 HARMONY uint64 = 2000001 @@ -43,8 +44,10 @@ const ( ENV = "devnet" ) -var CHAINS = []uint64{POLY, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS, RINKEBY, PIXIE, HSC} +var CHAINS = []uint64{ + POLY, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, +} var ETH_CHAINS = []uint64{ - ETH, BSC, HECO, OK, MATIC, O3, METIS, RINKEBY, PIXIE, HSC, HARMONY, + ETH, BSC, HECO, OK, MATIC, O3, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, } diff --git a/base/mainnet.go b/base/mainnet.go index b2887b9..f122a07 100644 --- a/base/mainnet.go +++ b/base/mainnet.go @@ -50,14 +50,15 @@ const ( PIXIE uint64 = 2000000 HARMONY uint64 = 2000001 HSC uint64 = 3000000 + BYTOM uint64 = 7000001 ENV = "mainnet" ) 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, + 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, } var ETH_CHAINS = []uint64{ - ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, + ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, HARMONY, BYTOM, } diff --git a/base/testnet.go b/base/testnet.go index 868f70c..2e6ca51 100644 --- a/base/testnet.go +++ b/base/testnet.go @@ -47,6 +47,7 @@ const ( OASIS uint64 = 500 HSC uint64 = 603 HARMONY uint64 = 801 + BYTOM uint64 = 700 SWITCHEO uint64 = 1000 @@ -54,9 +55,9 @@ const ( ) var CHAINS = []uint64{ - POLY, ETH, BSC, HECO, OK, ONT, NEO, NEO3, HEIMDALL, MATIC, SWITCHEO, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, + POLY, ETH, BSC, HECO, OK, ONT, NEO, NEO3, HEIMDALL, MATIC, SWITCHEO, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, HARMONY, BYTOM, } var ETH_CHAINS = []uint64{ - ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, HARMONY, + ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, HARMONY, HARMONY, BYTOM, }