diff --git a/base/base.go b/base/base.go index f163873..f3c4895 100644 --- a/base/base.go +++ b/base/base.go @@ -130,6 +130,8 @@ func GetChainName(id uint64) string { return "Starcoin" case ONTEVM: return "ONTEVM" + case MILKO: + return "Milkomeda" default: return fmt.Sprintf("Unknown(%d)", id) } diff --git a/base/mainnet.go b/base/mainnet.go index 369fff2..59c235e 100644 --- a/base/mainnet.go +++ b/base/mainnet.go @@ -55,15 +55,16 @@ const ( BCSPALETTE uint64 = 1001001 STARCOIN uint64 = 1001002 ONTEVM uint64 = 1001333 + MILKO uint64 = 1001335 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, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, + METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, MILKO, } var ETH_CHAINS = []uint64{ - ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, HARMONY, BYTOM, BCSPALETTE, KCC, ONTEVM, + ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, HARMONY, BYTOM, BCSPALETTE, KCC, ONTEVM, MILKO, } diff --git a/base/testnet.go b/base/testnet.go index aefe348..0d643a4 100644 --- a/base/testnet.go +++ b/base/testnet.go @@ -50,6 +50,7 @@ const ( HARMONY uint64 = 800 KCC uint64 = 900 ONTEVM uint64 = 333 + MILKO uint64 = 810 SWITCHEO uint64 = 1000 BCSPALETTE uint64 = 1001 @@ -60,10 +61,10 @@ 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, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, + METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, MILKO, } var ETH_CHAINS = []uint64{ ETH, BSC, HECO, OK, MATIC, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, - HARMONY, HARMONY, BYTOM, BCSPALETTE, KCC, ONTEVM, + HARMONY, HARMONY, BYTOM, BCSPALETTE, KCC, ONTEVM, MILKO, }