feat: Add arbitrum nova api and chain id 42170 (#2020)
* Add arbitrum nova api and chain id * chore: fmt Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
This commit is contained in:
parent
96f4723c13
commit
c684220144
|
@ -50,6 +50,7 @@ pub enum Chain {
|
||||||
Arbitrum = 42161,
|
Arbitrum = 42161,
|
||||||
ArbitrumTestnet = 421611,
|
ArbitrumTestnet = 421611,
|
||||||
ArbitrumGoerli = 421613,
|
ArbitrumGoerli = 421613,
|
||||||
|
ArbitrumNova = 42170,
|
||||||
|
|
||||||
Cronos = 25,
|
Cronos = 25,
|
||||||
CronosTestnet = 338,
|
CronosTestnet = 338,
|
||||||
|
@ -205,7 +206,7 @@ impl Chain {
|
||||||
use Chain::*;
|
use Chain::*;
|
||||||
|
|
||||||
let ms = match self {
|
let ms = match self {
|
||||||
Arbitrum | ArbitrumTestnet | ArbitrumGoerli => 1_300,
|
Arbitrum | ArbitrumTestnet | ArbitrumGoerli | ArbitrumNova => 1_300,
|
||||||
Mainnet | Optimism => 13_000,
|
Mainnet | Optimism => 13_000,
|
||||||
Polygon | PolygonMumbai => 2_100,
|
Polygon | PolygonMumbai => 2_100,
|
||||||
Moonbeam | Moonriver => 12_500,
|
Moonbeam | Moonriver => 12_500,
|
||||||
|
@ -276,6 +277,7 @@ impl Chain {
|
||||||
"https://goerli-rollup-explorer.arbitrum.io/api",
|
"https://goerli-rollup-explorer.arbitrum.io/api",
|
||||||
"https://goerli-rollup-explorer.arbitrum.io",
|
"https://goerli-rollup-explorer.arbitrum.io",
|
||||||
),
|
),
|
||||||
|
ArbitrumNova => ("https://api-nova.arbiscan.io/api", "https://nova.arbiscan.io/"),
|
||||||
Cronos => ("https://api.cronoscan.com/api", "https://cronoscan.com"),
|
Cronos => ("https://api.cronoscan.com/api", "https://cronoscan.com"),
|
||||||
CronosTestnet => {
|
CronosTestnet => {
|
||||||
("https://api-testnet.cronoscan.com/api", "https://testnet.cronoscan.com")
|
("https://api-testnet.cronoscan.com/api", "https://testnet.cronoscan.com")
|
||||||
|
@ -340,6 +342,7 @@ impl Chain {
|
||||||
Arbitrum |
|
Arbitrum |
|
||||||
ArbitrumTestnet |
|
ArbitrumTestnet |
|
||||||
ArbitrumGoerli |
|
ArbitrumGoerli |
|
||||||
|
ArbitrumNova |
|
||||||
Rsk |
|
Rsk |
|
||||||
Oasis |
|
Oasis |
|
||||||
Emerald |
|
Emerald |
|
||||||
|
|
|
@ -95,6 +95,7 @@ impl Client {
|
||||||
Chain::Arbitrum |
|
Chain::Arbitrum |
|
||||||
Chain::ArbitrumTestnet |
|
Chain::ArbitrumTestnet |
|
||||||
Chain::ArbitrumGoerli |
|
Chain::ArbitrumGoerli |
|
||||||
|
Chain::ArbitrumNova |
|
||||||
Chain::Cronos |
|
Chain::Cronos |
|
||||||
Chain::CronosTestnet |
|
Chain::CronosTestnet |
|
||||||
Chain::Aurora |
|
Chain::Aurora |
|
||||||
|
|
Loading…
Reference in New Issue