Skip to content

Commit

Permalink
Add avalanche chain
Browse files Browse the repository at this point in the history
  • Loading branch information
devfans committed Nov 2, 2021
1 parent 6cc85f4 commit f9475a6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 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 AVA:
return "Avalanche"
default:
return fmt.Sprintf("Unknown(%d)", id)
}
Expand Down
3 changes: 2 additions & 1 deletion base/mainnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ var (
XDAI uint64 = 20
OPTIMISM uint64 = 200007
FANTOM uint64 = 200008
AVA uint64 = 200009

ENV = "mainnet"
)

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

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

0 comments on commit f9475a6

Please sign in to comment.