Skip to content

Commit

Permalink
add conflux testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
rain-zxn committed Jul 19, 2022
1 parent f4ffa08 commit 161307e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
3 changes: 3 additions & 0 deletions base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ func GetChainName(id uint64) string {
return "Celo"
case CLOVER:
return "CLV P-Chain"
case CONFLUX:
return "Conflux"

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 @@ -50,14 +50,15 @@ const (
ZKSYNC uint64 = 940
CELO uint64 = 960
CLOVER uint64 = 970
CONFLUX uint64 = 980

ENV = "devnet"
)

var CHAINS = []uint64{
POLY, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, STARCOIN, ONTEVM, CUBE, KAVA, FLOW, RIPPLE, ZKSYNC, CELO, CLOVER,
POLY, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, STARCOIN, ONTEVM, CUBE, KAVA, FLOW, RIPPLE, ZKSYNC, CELO, CLOVER, CONFLUX,
}

var ETH_CHAINS = []uint64{
ETH, BSC, HECO, OK, MATIC, O3, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, KCC, ONTEVM, CUBE, KAVA, ZKSYNC, CELO, CLOVER,
ETH, BSC, HECO, OK, MATIC, O3, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, KCC, ONTEVM, CUBE, KAVA, ZKSYNC, CELO, CLOVER, CONFLUX,
}
15 changes: 8 additions & 7 deletions base/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,31 @@ const (
KCC uint64 = 30
STARCOIN uint64 = 31
KAVA uint64 = 32
MILKO uint64 = 34
CUBE uint64 = 35
ZKSYNC uint64 = 100940
CELO uint64 = 36
CLOVER uint64 = 37

// Invalid chain IDs
RINKEBY uint64 = 1000000
PIXIE uint64 = 2000000
BCSPALETTE uint64 = 1001001
ONTEVM uint64 = 1001333
MILKO uint64 = 1001335
CUBE uint64 = 1001336
FLOW uint64 = 1000444
RIPPLE uint64 = 1001223
ZKSYNC uint64 = 100940
CELO uint64 = 100960
CLOVER uint64 = 100970
CONFLUX uint64 = 1000980

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, MILKO, CUBE, KAVA, FLOW, RIPPLE,
ZKSYNC, CELO, CLOVER,
ZKSYNC, CELO, CLOVER, CONFLUX,
}

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,
BYTOM, BCSPALETTE, KCC, ONTEVM, MILKO, CUBE, KAVA, ZKSYNC, CELO, CLOVER, CONFLUX,
}
7 changes: 4 additions & 3 deletions base/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const (
ZKSYNC uint64 = 940
CELO uint64 = 960
CLOVER uint64 = 970
CONFLUX uint64 = 980

SWITCHEO uint64 = 1000
BCSPALETTE uint64 = 1001
Expand All @@ -68,11 +69,11 @@ 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, MILKO, CUBE, KAVA, FLOW,
RIPPLE, ZKSYNC, CELO, CLOVER,
METIS, RINKEBY, BOBA, PIXIE, OASIS, HSC, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, MILKO, CUBE, KAVA, FLOW,
RIPPLE, ZKSYNC, CELO, CLOVER, CONFLUX,
}

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, MILKO, CUBE, KAVA, ZKSYNC, CELO, CLOVER,
HARMONY, HARMONY, BYTOM, BCSPALETTE, KCC, ONTEVM, MILKO, CUBE, KAVA, ZKSYNC, CELO, CLOVER, CONFLUX,
}

0 comments on commit 161307e

Please sign in to comment.