From 2f514c009e11b8554def5ca803bcdeb181878854 Mon Sep 17 00:00:00 2001 From: Mario Rivera Date: Mon, 21 Oct 2024 20:33:54 -0400 Subject: [PATCH] Include more Alchemy networks --- packages/web3-rpc-providers/src/types.ts | 67 +++++++++++++++++++ .../src/web3_provider_alchemy.ts | 47 +++++++++++++ 2 files changed, 114 insertions(+) diff --git a/packages/web3-rpc-providers/src/types.ts b/packages/web3-rpc-providers/src/types.ts index 366f4c35583..1f92c23bc84 100644 --- a/packages/web3-rpc-providers/src/types.ts +++ b/packages/web3-rpc-providers/src/types.ts @@ -33,9 +33,13 @@ export enum Network { POLYGON_MUMBAI = 'polygon_mumbai', POLYGON_AMONY = 'polygon_amony', POLYGON_AMOY = 'polygon_amoy', + POLYGON_POS_MAINNET = 'polygon_pos_mainnet', + POLYGON_ZKEVM_MAINNET = 'polygon_zkevm_mainnet', + POLYGON_ZKEVM_CARDONA = 'polygon_zkevm_cardona', ARBITRUM_MAINNET = 'arbitrum_mainnet', ARBITRUM_SEPOLIA = 'arbitrum_sepolia', + ARBITRUM_NOVA_MAINNET = 'arbitrum_nova_mainnet', BASE_MAINNET = 'base_mainnet', BASE_SEPOLIA = 'base_sepolia', @@ -45,6 +49,69 @@ export enum Network { BNB_MAINNET = 'bnb_mainnet', BNB_TESTNET = 'bnb_testnet', + + WORLD_CHAIN_MAINNET = 'world_chain_mainnet', + WORLD_CHAIN_SEPOLIA = 'world_chain_sepolia', + + SHAPE_MAINNET = 'shape_mainnet', + SHAPE_SEPOLIA = 'shape_sepolia', + + ZKSYNC_MAINNET = 'zksync_mainnet', + ZKSYNC_SEPOLIA = 'zksync_sepolia', + + STARKNET_MAINNET = 'starknet_mainnet', + STARKNET_SEPOLIA = 'starknet_sepolia', + + ZETACHAIN_MAINNET = 'zetachain_mainnet', + ZETACHAIN_TESTNET = 'zetachain_testnet', + + FANTOM_OPERA_MAINNET = 'fantom_opera_mainnet', + FANTOM_OPERA_TESTNET = 'fantom_opera_testnet', + + MANTLE_MAINNET = 'mantle_mainnet', + + BERACHAIN_ARTIO = 'berachain_artio', + + BLAST_MAINNET = 'blast_mainnet', + BLAST_SEPOLIA = 'blast_sepolia', + + LINEA_MAINNET = 'linea_mainnet', + LINEA_SEPOLIA = 'linea_sepolia', + + ZORA_MAINNET = 'zora_mainnet', + ZORA_SEPOLIA = 'zora_sepolia', + + POLYNOMIAL_MAINNET = 'polynomial_mainnet', + POLYNOMIAL_SEPOLIA = 'polynomial_sepolia', + + SCROLL_MAINNET = 'scroll_mainnet', + SCROLL_SEPOLIA = 'scroll_sepolia', + + FRAX_MAINNET = 'frax_mainnet', + FRAX_SEPOLIA = 'frax_sepolia', + + SOLANA_MAINNET = 'solana_mainnet', + SOLANA_DEVNET = 'solana_devnet', + + OPBNB_MAINNET = 'opbnb_mainnet', + OPBNB_TESTNET = 'opbnb_testnet', + + CROSSFI_TESTNET = 'crossfi_testnet', + + ASTAR_MAINNET = 'astar_mainnet', + + FLOW_EVM_TESTNET = 'flow_evm_testnet', + + SONEIUM_MINATO = 'soneium_minato', + + GEIST_POLTER = 'geist_polter', + + ROOTSTOCK_MAINNET = 'rootstock_mainnet', + ROOTSTOCK_TESTNET = 'rootstock_testnet', + + UNICHAIN_SEPOLIA = 'unichain_sepolia', + + GNOSIS_MAINNET = 'gnosis_mainnet', } // Combining the ws types diff --git a/packages/web3-rpc-providers/src/web3_provider_alchemy.ts b/packages/web3-rpc-providers/src/web3_provider_alchemy.ts index bf97c5fe5eb..8d62e38f644 100644 --- a/packages/web3-rpc-providers/src/web3_provider_alchemy.ts +++ b/packages/web3-rpc-providers/src/web3_provider_alchemy.ts @@ -37,14 +37,61 @@ export class AlchemyProvider extends Web3ExternalProvider { [Network.ETH_MAINNET]: 'eth-mainnet.g.alchemy.com', [Network.ETH_SEPOLIA]: 'eth-sepolia.g.alchemy.com', [Network.ETH_GOERLI]: 'eth-goerli.g.alchemy.com', + [Network.ETH_HOLESKY]: 'eth-holesky.g.alchemy.com', [Network.ARBITRUM_MAINNET]: 'arb-mainnet.g.alchemy.com', [Network.ARBITRUM_SEPOLIA]: 'arb-sepolia.g.alchemy.com', + [Network.ARBITRUM_NOVA_MAINNET]: 'arb-nova.g.alchemy.com', [Network.BASE_MAINNET]: 'base-mainnet.g.alchemy.com', [Network.BASE_SEPOLIA]: 'base-sepolia.g.alchemy.com', [Network.POLYGON_MAINNET]: 'polygon-mainnet.g.alchemy.com', + [Network.POLYGON_MUMBAI]: 'polygon-mumbai.g.alchemy.com', [Network.POLYGON_AMOY]: 'polygon-amoy.g.alchemy.com', + [Network.POLYGON_POS_MAINNET]: 'polygon-mainnet.g.alchemy.com', + [Network.POLYGON_ZKEVM_MAINNET]: 'polygonzkevm-mainnet.g.alchemy.com', + [Network.POLYGON_ZKEVM_CARDONA]: 'polygonzkevm-cardona.g.alchemy.com', [Network.OPTIMISM_MAINNET]: 'opt-mainnet.g.alchemy.com', [Network.OPTIMISM_SEPOLIA]: 'opt-sepolia.g.alchemy.com', + [Network.ASTAR_MAINNET]: 'astar-mainnet.g.alchemy.com', + [Network.WORLD_CHAIN_MAINNET]: 'worldchain-mainnet.g.alchemy.com', + [Network.WORLD_CHAIN_SEPOLIA]: 'worldchain-sepolia.g.alchemy.com', + [Network.SHAPE_MAINNET]: 'shape-mainnet.g.alchemy.com', + [Network.SHAPE_SEPOLIA]: 'shape-sepolia.g.alchemy.com', + [Network.ZKSYNC_MAINNET]: 'zksync-mainnet.g.alchemy.com', + [Network.ZKSYNC_SEPOLIA]: 'zksync-sepolia.g.alchemy.com', + [Network.STARKNET_MAINNET]: 'starknet-mainnet.g.alchemy.com', + [Network.STARKNET_SEPOLIA]: 'starknet-sepolia.g.alchemy.com', + [Network.ZETACHAIN_MAINNET]: 'zetachain-mainnet.g.alchemy.com', + [Network.ZETACHAIN_TESTNET]: 'zetachain-testnet.g.alchemy.com', + [Network.FANTOM_OPERA_MAINNET]: 'fantom-mainnet.g.alchemy.com', + [Network.FANTOM_OPERA_TESTNET]: 'fantom-testnet.g.alchemy.com', + [Network.MANTLE_MAINNET]: 'mantle-mainnet.g.alchemy.com', + [Network.BERACHAIN_ARTIO]: 'berachain-artio.g.alchemy.com', + [Network.BLAST_MAINNET]: 'blast-mainnet.g.alchemy.com', + [Network.BLAST_SEPOLIA]: 'blast-sepolia.g.alchemy.com', + [Network.LINEA_MAINNET]: 'linea-mainnet.g.alchemy.com', + [Network.LINEA_SEPOLIA]: 'linea-sepolia.g.alchemy.com', + [Network.ZORA_MAINNET]: 'zora-mainnet.g.alchemy.com', + [Network.ZORA_SEPOLIA]: 'zora-sepolia.g.alchemy.com', + [Network.POLYNOMIAL_MAINNET]: 'polynomial-mainnet.g.alchemy.com', + [Network.POLYNOMIAL_SEPOLIA]: 'polynomial-sepolia.g.alchemy.com', + [Network.SCROLL_MAINNET]: 'scroll-mainnet.g.alchemy.com', + [Network.SCROLL_SEPOLIA]: 'scroll-sepolia.g.alchemy.com', + [Network.FRAX_MAINNET]: 'frax-mainnet.g.alchemy.com', + [Network.FRAX_SEPOLIA]: 'frax-sepolia.g.alchemy.com', + [Network.SOLANA_MAINNET]: 'solana-mainnet.g.alchemy.com', + [Network.SOLANA_DEVNET]: 'solana-devnet.g.alchemy.com', + [Network.CROSSFI_TESTNET]: 'crossfi-testnet.g.alchemy.com', + [Network.FLOW_EVM_TESTNET]: 'flow-testnet.g.alchemy.com', + [Network.SONEIUM_MINATO]: 'soneium-minato.g.alchemy.com', + [Network.GEIST_POLTER]: 'geist-polter.g.alchemy.com', + [Network.ROOTSTOCK_MAINNET]: 'rootstock-mainnet.g.alchemy.com', + [Network.ROOTSTOCK_TESTNET]: 'rootstock-testnet.g.alchemy.com', + [Network.UNICHAIN_SEPOLIA]: 'unichain-sepolia.g.alchemy.com', + [Network.GNOSIS_MAINNET]: 'gnosis-mainnet.g.alchemy.com', + [Network.BNB_MAINNET]: 'bnb-mainnet.g.alchemy.com', + [Network.BNB_TESTNET]: 'bnb-testnet.g.alchemy.com', + [Network.OPBNB_MAINNET]: 'opbnb-mainnet.g.alchemy.com', + [Network.OPBNB_TESTNET]: 'opbnb-testnet.g.alchemy.com', }; // eslint-disable-next-line class-methods-use-this