feat(etherscan): add moonbeam urls (#1232)

This commit is contained in:
Matthias Seitz 2022-05-06 20:34:09 +02:00 committed by GitHub
parent 18b4ef4e47
commit c7765e1721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -257,6 +257,12 @@ impl ClientBuilder {
urls("https://api-testnet.arbiscan.io/api", "https://testnet.arbiscan.io") urls("https://api-testnet.arbiscan.io/api", "https://testnet.arbiscan.io")
} }
Chain::Cronos => urls("https://api.cronoscan.com/api", "https://cronoscan.com"), Chain::Cronos => urls("https://api.cronoscan.com/api", "https://cronoscan.com"),
Chain::Moonbeam => {
urls("https://api-moonbeam.moonscan.io/api", "https://moonbeam.moonscan.io/")
}
Chain::Moonriver => {
urls("https://api-moonriver.moonscan.io/api", "https://moonriver.moonscan.io")
}
Chain::Dev => return Err(EtherscanError::LocalNetworksNotSupported), Chain::Dev => return Err(EtherscanError::LocalNetworksNotSupported),
chain => return Err(EtherscanError::ChainNotSupported(chain)), chain => return Err(EtherscanError::ChainNotSupported(chain)),
}; };