Skip to content

Commit

Permalink
Add Goerli
Browse files Browse the repository at this point in the history
  • Loading branch information
wuyachi committed Oct 13, 2022
1 parent d99dadd commit f3644b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 2 additions & 0 deletions base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ func GetChainName(id uint64) string {
return "Cube"
case KAVA:
return "Kava"
case GOERLI:
return "Goerli"
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 @@ -67,9 +67,10 @@ const (
)

var CHAINS = []uint64{
ZION, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, STARCOIN, ONTEVM, CUBE, KAVA, FLOW,
ZION, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS, RINKEBY, PIXIE, HSC, HARMONY, BYTOM, STARCOIN, ONTEVM, CUBE,
KAVA, FLOW, GOERLI,
}

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, GOERLI,
}
6 changes: 4 additions & 2 deletions base/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,17 @@ const (
BCSPALETTE uint64 = 1001001
ONTEVM uint64 = 1001333
FLOW uint64 = 1000444
GOERLI uint64 = 1000502

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,
METIS, BOBA, PIXIE, OASIS, HSC, HARMONY, BYTOM, BCSPALETTE, STARCOIN, ONTEVM, KCC, MILKO, CUBE, KAVA, FLOW, GOERLI,
}

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, GOERLI,
}
7 changes: 4 additions & 3 deletions base/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,25 @@ const (
FLOW uint64 = 910
KAVA uint64 = 920
CUBE uint64 = 930
GOERLI uint64 = 502

SWITCHEO uint64 = 1000
BCSPALETTE uint64 = 1001
STARCOIN uint64 = 318

// Invalid chain ids
KOVAN uint64 = 9000002
GOERLI uint64 = 9000003
KOVAN uint64 = 9000002

ENV = "testnet"
)

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,
GOERLI,
}

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, GOERLI,
}

0 comments on commit f3644b6

Please sign in to comment.