order map chronologically

pull/5367/head
Joseph Izang 4 weeks ago committed by Aniket
parent b775d9d52b
commit 028b1f5dbb
  1. 119
      libs/remix-ui/run-tab/src/lib/actions/evmmap.ts

@ -1,79 +1,37 @@
type ChainInfo = { export type ChainInfo = {
id: number; id: number
name: string; name: string
}; }
type HardFork = export type HardFork =
| 'berlin'
| 'byzantium'
| 'cancun' | 'cancun'
| 'constantinople' | 'shanghai'
| 'homestead'
| 'istanbul'
| 'london'
| 'paris' | 'paris'
| 'london'
| 'berlin'
| 'istanbul'
| 'petersburg' | 'petersburg'
| 'shanghai' | 'constantinople'
| 'byzantium'
| 'spuriousDragon' | 'spuriousDragon'
| 'tangarineWhistle'; | 'tangerineWhistle'
| 'homestead'
export const evmMap: Map<HardFork, { chainId: ChainInfo[] }> = new Map([ export const evmMap: Map<HardFork, { chainId: ChainInfo[] }> = 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', { ['cancun', {
chainId: [
{ id: 1, name: "Ethereum Mainnet" },
{ id: 5, name: "Goerli" },
{ id: 11155111, name: "Sepolia" },
]
}],
['constantinople', {
chainId: [ chainId: [
{ id: 1, name: "Ethereum Mainnet" }, { id: 1, name: "Ethereum Mainnet" },
{ id: 5, name: "Goerli" }, { id: 5, name: "Goerli" },
{ id: 11155111, name: "Sepolia" } { id: 11155111, name: "Sepolia" }
] ]
}], }],
['homestead', { ['shanghai', {
chainId: [
{ id: 1, name: "Ethereum Mainnet" },
{ id: 5, name: "Goerli" },
{ id: 11155111, name: "Sepolia" }
]
}],
['istanbul', {
chainId: [ chainId: [
{ id: 1, name: "Ethereum Mainnet" }, { id: 1, name: "Ethereum Mainnet" },
{ id: 5, name: "Goerli" }, { id: 5, name: "Goerli" },
{ id: 11155111, name: "Sepolia" } { 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', { ['paris', {
chainId: [ chainId: [
{ id: 1, name: "Ethereum Mainnet" }, { id: 1, name: "Ethereum Mainnet" },
@ -83,10 +41,10 @@ export const evmMap: Map<HardFork, { chainId: ChainInfo[] }> = new Map([
{ id: 56, name: "BNB Smart Chain Mainnet" }, { id: 56, name: "BNB Smart Chain Mainnet" },
{ id: 100, name: "Gnosis Chain" }, { id: 100, name: "Gnosis Chain" },
{ id: 137, name: "Polygon Mainnet" }, { id: 137, name: "Polygon Mainnet" },
{ id: 300, name: "zkSync Sepolia Testnet" }, { id: 300, name: "zkSync Era Mainnet" },
{ id: 302, name: "zkSync Era Testnet" }, { id: 302, name: "zkSync Era Testnet" },
{ id: 314, name: "Filecoin - Mainnet" }, { id: 314, name: "Filecoin - Mainnet" },
{ id: 324, name: "zkSync Mainnet" }, { id: 324, name: "zkSync Era Mainnet" },
{ id: 369, name: "PulseChain" }, { id: 369, name: "PulseChain" },
{ id: 388, name: "HALO Mainnet" }, { id: 388, name: "HALO Mainnet" },
{ id: 1101, name: "Polygon zkEVM" }, { id: 1101, name: "Polygon zkEVM" },
@ -103,6 +61,35 @@ export const evmMap: Map<HardFork, { chainId: ChainInfo[] }> = new Map([
{ id: 1666600000, name: "Harmony Mainnet Shard 0" } { id: 1666600000, name: "Harmony Mainnet Shard 0" }
] ]
}], }],
['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: 137, name: "Polygon Mainnet" },
{ id: 250, name: "Fantom Opera" },
{ id: 1280, name: "HALO Mainnet" },
{ id: 42161, name: "Arbitrum One" },
{ id: 42220, name: "Celo Mainnet" }
]
}],
['berlin', {
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" }
]
}],
['petersburg', { ['petersburg', {
chainId: [ chainId: [
{ id: 1, name: "Ethereum Mainnet" }, { id: 1, name: "Ethereum Mainnet" },
@ -110,22 +97,34 @@ export const evmMap: Map<HardFork, { chainId: ChainInfo[] }> = new Map([
{ id: 11155111, name: "Sepolia" } { id: 11155111, name: "Sepolia" }
] ]
}], }],
['shanghai', { ['constantinople', {
chainId: [ chainId: [
{ id: 1, name: "Ethereum Mainnet" }, { id: 1, name: "Ethereum Mainnet" },
{ id: 5, name: "Goerli" }, { id: 5, name: "Goerli" },
{ id: 11155111, name: "Sepolia" } { id: 11155111, name: "Sepolia" }
] ]
}], }],
['byzantium', {
chainId: [
{ id: 1, name: "Ethereum Mainnet" }
]
}],
['spuriousDragon', { ['spuriousDragon', {
chainId: [ chainId: [
{ id: 1, name: "Ethereum Mainnet" } { id: 1, name: "Ethereum Mainnet" }
] ]
}], }],
['tangarineWhistle', { ['tangerineWhistle', {
chainId: [ chainId: [
{ id: 1, name: "Ethereum Mainnet" } { id: 1, name: "Ethereum Mainnet" }
] ]
}],
['homestead', {
chainId: [
{ id: 1, name: "Ethereum Mainnet" },
{ id: 5, name: "Goerli" },
{ id: 11155111, name: "Sepolia" }
]
}] }]
]) ])

Loading…
Cancel
Save