Skip to content

Commit

Permalink
Update Chains on EthereumNetwork (#452)
Browse files Browse the repository at this point in the history
* Update chains from ethereum chain list

* Update MATIC name to POLYGON

* Update XDAI name to GNOSIS

* Update name ARBITRUM to ARBITRUM_ONE

* Update name AVALANCHE to AVALANCHE_C_CHAIN

* Update name BINANCE to BINANCE_SMART_CHAIN_MAINNET

* Update name VOLTA to ENERGY_WEB_VOLTA_TESTNET

* Update OPTIMISTIC to OPTIMISM
Also change FANTOM, MOON_MOONRIVER, OLIMPUS

* Update name CELO to CELO_MAINNET

* Update name BOBA_NETWORK_BOBABEAM, BOBA_RINKEBY, MOON_MOONBEAM and OKEXCHAIN

* Updated name to several chains following ethereum list

* Update AURORA to AURORA_MAINNET
Rever ganache chain
  • Loading branch information
moisses89 committed Feb 3, 2023
1 parent 0eccb7a commit c189994
Show file tree
Hide file tree
Showing 11 changed files with 743 additions and 475 deletions.
50 changes: 25 additions & 25 deletions gnosis/eth/clients/blockscout_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,43 +19,43 @@ class BlockScoutConfigurationProblem(BlockscoutClientException):

class BlockscoutClient:
NETWORK_WITH_URL = {
EthereumNetwork.XDAI: "https://blockscout.com/poa/xdai/",
EthereumNetwork.MATIC: "https://polygon-explorer-mainnet.chainstacklabs.com/",
EthereumNetwork.GNOSIS: "https://blockscout.com/poa/xdai/",
EthereumNetwork.POLYGON: "https://polygon-explorer-mainnet.chainstacklabs.com/",
EthereumNetwork.MUMBAI: "https://polygon-explorer-mumbai.chainstacklabs.com/",
EthereumNetwork.ENERGY_WEB_CHAIN: "https://explorer.energyweb.org/",
EthereumNetwork.VOLTA: "https://volta-explorer.energyweb.org/",
EthereumNetwork.OLYMPUS: "https://explorer.polis.tech",
EthereumNetwork.BOBA_NETWORK_BOBABEAM: "https://blockexplorer.bobabeam.boba.network/",
EthereumNetwork.BOBA_RINKEBY: "https://blockexplorer.rinkeby.boba.network/",
EthereumNetwork.BOBA: "https://blockexplorer.boba.network/",
EthereumNetwork.GATHER_DEVNET: "https://devnet-explorer.gather.network/",
EthereumNetwork.GATHER_TESTNET: "https://testnet-explorer.gather.network/",
EthereumNetwork.GATHER_MAINNET: "https://explorer.gather.network/",
EthereumNetwork.METIS_TESTNET: "https://stardust-explorer.metis.io/",
EthereumNetwork.ENERGY_WEB_VOLTA_TESTNET: "https://volta-explorer.energyweb.org/",
EthereumNetwork.POLIS_MAINNET: "https://explorer.polis.tech",
EthereumNetwork.BOBABEAM: "https://blockexplorer.bobabeam.boba.network/",
EthereumNetwork.BOBA_NETWORK_RINKEBY_TESTNET: "https://blockexplorer.rinkeby.boba.network/",
EthereumNetwork.BOBA_NETWORK: "https://blockexplorer.boba.network/",
EthereumNetwork.GATHER_DEVNET_NETWORK: "https://devnet-explorer.gather.network/",
EthereumNetwork.GATHER_TESTNET_NETWORK: "https://testnet-explorer.gather.network/",
EthereumNetwork.GATHER_MAINNET_NETWORK: "https://explorer.gather.network/",
EthereumNetwork.METIS_STARDUST_TESTNET: "https://stardust-explorer.metis.io/",
EthereumNetwork.METIS_GOERLI_TESTNET: "https://goerli.explorer.metisdevops.link/",
EthereumNetwork.METIS: "https://andromeda-explorer.metis.io/",
EthereumNetwork.METIS_ANDROMEDA_MAINNET: "https://andromeda-explorer.metis.io/",
EthereumNetwork.FUSE_MAINNET: "https://explorer.fuse.io/",
EthereumNetwork.VELAS_MAINNET: "https://evmexplorer.velas.com/",
EthereumNetwork.REI_MAINNET: "https://scan.rei.network/",
EthereumNetwork.REI_TESTNET: "https://scan-test.rei.network/",
EthereumNetwork.METER: "https://scan.meter.io/",
EthereumNetwork.VELAS_EVM_MAINNET: "https://evmexplorer.velas.com/",
EthereumNetwork.REI_NETWORK: "https://scan.rei.network/",
EthereumNetwork.REI_CHAIN_TESTNET: "https://scan-test.rei.network/",
EthereumNetwork.METER_MAINNET: "https://scan.meter.io/",
EthereumNetwork.METER_TESTNET: "https://scan-warringstakes.meter.io/",
EthereumNetwork.GODWOKEN_TESTNET: "https://v1.betanet.gwscan.com/",
EthereumNetwork.GODWOKEN: "https://v1.gwscan.com/",
EthereumNetwork.GODWOKEN_TESTNET_V1: "https://v1.betanet.gwscan.com/",
EthereumNetwork.GODWOKEN_MAINNET: "https://v1.gwscan.com/",
EthereumNetwork.VENIDIUM_TESTNET: "https://evm-testnet.venidiumexplorer.com/",
EthereumNetwork.VENIDIUM: "https://evm.venidiumexplorer.com/",
EthereumNetwork.KLAY_BAOBAB: "https://baobab.scope.klaytn.com/",
EthereumNetwork.KLAY_CYPRESS: "https://scope.klaytn.com/",
EthereumNetwork.ACA: "https://blockscout.acala.network/",
EthereumNetwork.VENIDIUM_MAINNET: "https://evm.venidiumexplorer.com/",
EthereumNetwork.KLAYTN_TESTNET_BAOBAB: "https://baobab.scope.klaytn.com/",
EthereumNetwork.KLAYTN_MAINNET_CYPRESS: "https://scope.klaytn.com/",
EthereumNetwork.ACALA_NETWORK: "https://blockscout.acala.network/",
EthereumNetwork.KARURA_NETWORK_TESTNET: "https://blockscout.karura.network/",
EthereumNetwork.ACALA_NETWORK_TESTNET: "https://blockscout.mandala.acala.network/",
EthereumNetwork.ASTAR: "https://blockscout.com/astar/",
EthereumNetwork.EVMOS_MAINNET: "https://evm.evmos.org",
EthereumNetwork.EVMOS: "https://evm.evmos.org",
EthereumNetwork.EVMOS_TESTNET: "https://evm.evmos.dev",
EthereumNetwork.RABBIT: "https://rabbit.analogscan.com",
EthereumNetwork.RABBIT_ANALOG_TESTNET_CHAIN: "https://rabbit.analogscan.com",
EthereumNetwork.KCC_MAINNET: "https://scan.kcc.io/",
EthereumNetwork.KCC_TESTNET: "https://scan-testnet.kcc.network/",
EthereumNetwork.ARBITRUM: "https://explorer.arbitrum.io",
EthereumNetwork.ARBITRUM_ONE: "https://explorer.arbitrum.io",
EthereumNetwork.ARBITRUM_NOVA: "https://nova-explorer.arbitrum.io",
EthereumNetwork.ARBITRUM_GOERLI: "https://goerli-rollup-explorer.arbitrum.io",
}
Expand Down
40 changes: 20 additions & 20 deletions gnosis/eth/clients/etherscan_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ class EtherscanClient:
EthereumNetwork.ROPSTEN: "https://ropsten.etherscan.io",
EthereumNetwork.GOERLI: "https://goerli.etherscan.io",
EthereumNetwork.KOVAN: "https://kovan.etherscan.io",
EthereumNetwork.BINANCE: "https://bscscan.com",
EthereumNetwork.MATIC: "https://polygonscan.com",
EthereumNetwork.OPTIMISTIC: "https://optimistic.etherscan.io",
EthereumNetwork.ARBITRUM: "https://arbiscan.io",
EthereumNetwork.BINANCE_SMART_CHAIN_MAINNET: "https://bscscan.com",
EthereumNetwork.POLYGON: "https://polygonscan.com",
EthereumNetwork.OPTIMISM: "https://optimistic.etherscan.io",
EthereumNetwork.ARBITRUM_ONE: "https://arbiscan.io",
EthereumNetwork.ARBITRUM_NOVA: "https://nova.arbiscan.io",
EthereumNetwork.ARBITRUM_GOERLI: "https://goerli.arbiscan.io",
EthereumNetwork.AVALANCHE: "https://snowtrace.io",
EthereumNetwork.MOON_MOONBEAM: "https://moonscan.io",
EthereumNetwork.MOON_MOONRIVER: "https://moonriver.moonscan.io",
EthereumNetwork.MOON_MOONBASE: "https://moonbase.moonscan.io",
EthereumNetwork.CRONOS_MAINNET: "https://cronoscan.com",
EthereumNetwork.AVALANCHE_C_CHAIN: "https://snowtrace.io",
EthereumNetwork.MOONBEAM: "https://moonscan.io",
EthereumNetwork.MOONRIVER: "https://moonriver.moonscan.io",
EthereumNetwork.MOONBASE_ALPHA: "https://moonbase.moonscan.io",
EthereumNetwork.CRONOS_MAINNET_BETA: "https://cronoscan.com",
EthereumNetwork.CRONOS_TESTNET: "https://testnet.cronoscan.com",
EthereumNetwork.CELO: "https://celoscan.io",
EthereumNetwork.CELO_MAINNET: "https://celoscan.io",
}

NETWORK_WITH_API_URL = {
Expand All @@ -49,19 +49,19 @@ class EtherscanClient:
EthereumNetwork.ROPSTEN: "https://api-ropsten.etherscan.io",
EthereumNetwork.GOERLI: "https://api-goerli.etherscan.io/",
EthereumNetwork.KOVAN: "https://api-kovan.etherscan.io",
EthereumNetwork.BINANCE: "https://api.bscscan.com",
EthereumNetwork.MATIC: "https://api.polygonscan.com",
EthereumNetwork.OPTIMISTIC: "https://api-optimistic.etherscan.io",
EthereumNetwork.ARBITRUM: "https://api.arbiscan.io",
EthereumNetwork.BINANCE_SMART_CHAIN_MAINNET: "https://api.bscscan.com",
EthereumNetwork.POLYGON: "https://api.polygonscan.com",
EthereumNetwork.OPTIMISM: "https://api-optimistic.etherscan.io",
EthereumNetwork.ARBITRUM_ONE: "https://api.arbiscan.io",
EthereumNetwork.ARBITRUM_NOVA: "https://api-nova.arbiscan.io",
EthereumNetwork.ARBITRUM_GOERLI: "https://api-goerli.arbiscan.io",
EthereumNetwork.AVALANCHE: "https://api.snowtrace.io",
EthereumNetwork.MOON_MOONBEAM: "https://api-moonbeam.moonscan.io",
EthereumNetwork.MOON_MOONRIVER: "https://api-moonriver.moonscan.io",
EthereumNetwork.MOON_MOONBASE: "https://api-moonbase.moonscan.io",
EthereumNetwork.CRONOS_MAINNET: "https://api.cronoscan.com",
EthereumNetwork.AVALANCHE_C_CHAIN: "https://api.snowtrace.io",
EthereumNetwork.MOONBEAM: "https://api-moonbeam.moonscan.io",
EthereumNetwork.MOONRIVER: "https://api-moonriver.moonscan.io",
EthereumNetwork.MOONBASE_ALPHA: "https://api-moonbase.moonscan.io",
EthereumNetwork.CRONOS_MAINNET_BETA: "https://api.cronoscan.com",
EthereumNetwork.CRONOS_TESTNET: "https://api-testnet.cronoscan.com",
EthereumNetwork.CELO: "https://api.celoscan.io",
EthereumNetwork.CELO_MAINNET: "https://api.celoscan.io",
}
HTTP_HEADERS = {
"User-Agent": "curl/7.77.0",
Expand Down
Loading

0 comments on commit c189994

Please sign in to comment.