Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zkSync/Celo/Clover chain #30

Merged
merged 1 commit into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,12 @@ func GetChainName(id uint64) string {
return "Cube"
case KAVA:
return "Kava"
case ZKSYNC:
return "zkSync"
case CELO:
return "Celo"
case CLOVER:
return "CLV P-Chain"
default:
return fmt.Sprintf("Unknown(%d)", id)
}
Expand Down
7 changes: 5 additions & 2 deletions base/devnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,17 @@ const (
HARMONY uint64 = 801
BCSPALETTE uint64 = 1001
STARCOIN uint64 = 318
ZKSYNC uint64 = 940
CELO uint64 = 960
CLOVER uint64 = 970

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,
POLY, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, STARCOIN, ONTEVM, CUBE, KAVA, FLOW, ZKSYNC, CELO, CLOVER,
}

var ETH_CHAINS = []uint64{
ETH, BSC, HECO, OK, MATIC, O3, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, KCC, ONTEVM, CUBE, KAVA,
ETH, BSC, HECO, OK, MATIC, O3, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, KCC, ONTEVM, CUBE, KAVA, ZKSYNC, CELO, CLOVER,
}
9 changes: 7 additions & 2 deletions base/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const (
KAVA uint64 = 32
MILKO uint64 = 34
CUBE uint64 = 35
ZKSYNC uint64 = 100940
CELO uint64 = 100960
CLOVER uint64 = 100970

// Invalid chain IDs
RINKEBY uint64 = 1000000
Expand All @@ -65,9 +68,11 @@ 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,
METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, MILKO, CUBE, KAVA, FLOW, ZKSYNC,
CELO, CLOVER,
}

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,
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,
}
6 changes: 5 additions & 1 deletion base/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ const (
FLOW uint64 = 910
KAVA uint64 = 920
CUBE uint64 = 930
ZKSYNC uint64 = 940
CELO uint64 = 960
CLOVER uint64 = 970

SWITCHEO uint64 = 1000
BCSPALETTE uint64 = 1001
Expand All @@ -65,9 +68,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, MILKO, CUBE, KAVA, FLOW,
ZKSYNC, CELO, CLOVER,
}

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