Skip to content

Commit

Permalink
Merge pull request #18 from rain-zxn/main
Browse files Browse the repository at this point in the history
add bytom testnet
  • Loading branch information
wuyachi authored Mar 3, 2022
2 parents 6ba35dd + de8f29c commit 111eb66
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 4 additions & 2 deletions base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand All @@ -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
Expand All @@ -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
Expand Down
7 changes: 5 additions & 2 deletions base/devnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@ const (
PIXIE uint64 = 316
RINKEBY uint64 = 402
HSC uint64 = 603
BYTOM uint64 = 700

SWITCHEO uint64 = 1000
HARMONY uint64 = 2000001

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,
}
5 changes: 3 additions & 2 deletions base/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
5 changes: 3 additions & 2 deletions base/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,17 @@ const (
OASIS uint64 = 500
HSC uint64 = 603
HARMONY uint64 = 801
BYTOM uint64 = 700

SWITCHEO uint64 = 1000

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

0 comments on commit 111eb66

Please sign in to comment.