mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-03 06:25:10 +03:00
Add CELO network
This commit is contained in:
parent
3203f93740
commit
80381f4c9a
@ -11,6 +11,7 @@ enum EthereumChain: Int {
|
||||
case avalanche = 43114
|
||||
case gnosisChain = 100
|
||||
case fantomOpera = 250
|
||||
case celo = 42220
|
||||
|
||||
// Testnets
|
||||
case arbitrumRinkeby = 421611
|
||||
@ -34,7 +35,7 @@ enum EthereumChain: Int {
|
||||
return "0x" + String(id, radix: 16, uppercase: false)
|
||||
}
|
||||
|
||||
static let allMainnets: [EthereumChain] = [.ethereum, .polygon, .optimism, .binance, .arbitrum, .avalanche, .gnosisChain, .fantomOpera]
|
||||
static let allMainnets: [EthereumChain] = [.ethereum, .polygon, .optimism, .binance, .arbitrum, .avalanche, .gnosisChain, .fantomOpera, .celo]
|
||||
static let allTestnets: [EthereumChain] = [.ethereumRopsten, .ethereumKovan, .ethereumRinkeby, .ethereumGoerli, .optimisticKovan, .arbitrumKovan, .arbitrumRinkeby, .polygonMumbai, .binanceTestnet, .avalancheFuji, .fantomTestnet, .neonDevnet]
|
||||
|
||||
var name: String {
|
||||
@ -47,6 +48,7 @@ enum EthereumChain: Int {
|
||||
case .avalanche: return "Avalanche"
|
||||
case .gnosisChain: return "Gnosis Chain"
|
||||
case .fantomOpera: return "Fantom Opera"
|
||||
case .celo: return "Celo"
|
||||
|
||||
case .arbitrumRinkeby: return "Arbitrum Rinkeby"
|
||||
case .optimisticKovan: return "Optimistic Kovan"
|
||||
@ -77,6 +79,8 @@ enum EthereumChain: Int {
|
||||
return "xDai"
|
||||
case .fantomOpera, .fantomTestnet:
|
||||
return "FTM"
|
||||
case .celo:
|
||||
return "CELO"
|
||||
case .neonDevnet:
|
||||
return "NEON"
|
||||
}
|
||||
@ -105,6 +109,7 @@ enum EthereumChain: Int {
|
||||
case .avalanche: return "https://api.avax.network/ext/bc/C/rpc"
|
||||
case .gnosisChain: return "https://rpc.gnosischain.com/"
|
||||
case .fantomOpera: return "https://rpc.ftm.tools/"
|
||||
case .celo: return "https://rpc.ankr.com/celo"
|
||||
|
||||
case .arbitrumRinkeby: return "https://rinkeby.arbitrum.io/rpc"
|
||||
case .arbitrumKovan: return "https://kovan5.arbitrum.io/rpc"
|
||||
|
Loading…
Reference in New Issue
Block a user