Skip to content

Commit

Permalink
Add metis chain
Browse files Browse the repository at this point in the history
  • Loading branch information
devfans committed Dec 9, 2021
1 parent 6868709 commit 9154197
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 2 additions & 0 deletions base/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ func GetChainName(id uint64) string {
return "Optimism"
case FANTOM:
return "Fantom"
case METIS:
return "Metis"
case AVA:
return "Avalanche"
default:
Expand Down
3 changes: 2 additions & 1 deletion base/devnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ var (
NEO3 uint64 = 88
OK uint64 = 90
MATIC uint64 = 13
METIS uint64 = 300

SWITCHEO uint64 = 1000

ENV = "devnet"
)
var CHAINS = []uint64{POLY, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC}
var CHAINS = []uint64{POLY, ETH, ONT, NEO, BSC, HECO, O3, OK, MATIC, METIS}
3 changes: 2 additions & 1 deletion base/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ var (
OPTIMISM uint64 = 23
FANTOM uint64 = 22
AVA uint64 = 21
METIS uint64 = 300

ENV = "mainnet"
)

var CHAINS = []uint64{
POLY, ETH, BSC, HECO, OK, ONT, NEO, NEO3, HEIMDALL, MATIC, SWITCHEO, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA,
POLY, ETH, BSC, HECO, OK, ONT, NEO, NEO3, HEIMDALL, MATIC, SWITCHEO, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS,
}
3 changes: 2 additions & 1 deletion base/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ var (
OPTIMISM uint64 = 207
FANTOM uint64 = 208
AVA uint64 = 209
METIS uint64 = 300

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,
POLY, ETH, BSC, HECO, OK, ONT, NEO, NEO3, HEIMDALL, MATIC, SWITCHEO, O3, PLT, ARBITRUM, XDAI, OPTIMISM, FANTOM, AVA, METIS,
}

0 comments on commit 9154197

Please sign in to comment.