From 257065f094bbecba9e5874e94a505109d65872b4 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Tue, 22 Oct 2024 13:48:00 +0100 Subject: [PATCH] evp chain map --- .../run-tab/src/lib/actions/evmmap.ts | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 libs/remix-ui/run-tab/src/lib/actions/evmmap.ts diff --git a/libs/remix-ui/run-tab/src/lib/actions/evmmap.ts b/libs/remix-ui/run-tab/src/lib/actions/evmmap.ts new file mode 100644 index 0000000000..05c672e283 --- /dev/null +++ b/libs/remix-ui/run-tab/src/lib/actions/evmmap.ts @@ -0,0 +1,132 @@ +type ChainInfo = { + id: number; + name: string; +}; + +type HardFork = + | 'berlin' + | 'byzantium' + | 'cancun' + | 'constantinople' + | 'homestead' + | 'istanbul' + | 'london' + | 'paris' + | 'petersburg' + | 'shanghai' + | 'spuriousDragon' + | 'tangarineWhistle'; + +const evmMap: Map = new Map([ + ['berlin', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 11155111, name: "Sepolia" } + ] + }], + ['byzantium', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" } + ] + }], + ['cancun', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 11155111, name: "Sepolia" }, + ] + }], + ['constantinople', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 11155111, name: "Sepolia" } + ] + }], + ['homestead', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 11155111, name: "Sepolia" } + ] + }], + ['istanbul', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 11155111, name: "Sepolia" } + ] + }], + ['london', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 10, name: "Optimism" }, + { id: 25, name: "Cronos Mainnet" }, + { id: 30, name: "Rootstock Mainnet" }, + { id: 56, name: "BNB Smart Chain Mainnet" }, + { id: 100, name: "Gnosis Chain" }, + { id: 137, name: "Polygon Mainnet" }, + { id: 250, name: "Fantom Opera" }, + { id: 1280, name: "HALO Mainnet" }, + { id: 42161, name: "Arbitrum One" }, + { id: 42220, name: "Celo Mainnet" } + ] + }], + ['paris', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 10, name: "Optimism" }, + { id: 30, name: "Rootstock Mainnet" }, + { id: 56, name: "BNB Smart Chain Mainnet" }, + { id: 100, name: "Gnosis Chain" }, + { id: 137, name: "Polygon Mainnet" }, + { id: 300, name: "zkSync Sepolia Testnet" }, + { id: 302, name: "zkSync Era Testnet" }, + { id: 314, name: "Filecoin - Mainnet" }, + { id: 324, name: "zkSync Mainnet" }, + { id: 369, name: "PulseChain" }, + { id: 388, name: "HALO Mainnet" }, + { id: 1101, name: "Polygon zkEVM" }, + { id: 1284, name: "Moonbeam" }, + { id: 2000, name: "Dogechain Mainnet" }, + { id: 42220, name: "Celo Mainnet" }, + { id: 42161, name: "Arbitrum One" }, + { id: 42170, name: "Arbitrum Nova" }, + { id: 44787, name: "Celo Alfajores Testnet" }, + { id: 59144, name: "Linea Mainnet" }, + { id: 59141, name: "Linea Testnet" }, + { id: 11155111, name: "Sepolia" }, + { id: 11155420, name: "Optimism Sepolia Testnet" }, + { id: 1666600000, name: "Harmony Mainnet Shard 0" } + ] + }], + ['petersburg', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 11155111, name: "Sepolia" } + ] + }], + ['shanghai', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" }, + { id: 5, name: "Goerli" }, + { id: 11155111, name: "Sepolia" } + ] + }], + ['spuriousDragon', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" } + ] + }], + ['tangarineWhistle', { + chainId: [ + { id: 1, name: "Ethereum Mainnet" } + ] + }] +]); + +export default evmMap