From 7affe0c08fa7bd74c3cf813772d0dd554bb76bbf Mon Sep 17 00:00:00 2001 From: Dwight Lyle Date: Wed, 10 Apr 2024 10:24:44 -0600 Subject: [PATCH 1/2] Remove Linea Goerli testnet from Data Feeds --- src/config/data/chain-to-technology.json | 1 - src/config/types.ts | 1 - src/config/web3Providers.ts | 1 - src/content/data-feeds/ens.mdx | 2 +- src/features/data/chains.ts | 14 -------- src/scripts/reference/chains.json | 44 ++--------------------- src/scripts/reference/linkNameSymbol.json | 1 - 7 files changed, 4 insertions(+), 60 deletions(-) diff --git a/src/config/data/chain-to-technology.json b/src/config/data/chain-to-technology.json index 739149cf2be..e977f369d38 100644 --- a/src/config/data/chain-to-technology.json +++ b/src/config/data/chain-to-technology.json @@ -27,7 +27,6 @@ "SCROLL_MAINNET": "SCROLL", "SCROLL_SEPOLIA": "SCROLL", "LINEA_MAINNET": "LINEA", - "LINEA_GOERLI": "LINEA", "ZKSYNC_MAINNET": "ZKSYNC", "ZKSYNC_SEPOLIA": "ZKSYNC", "WEMIX_MAINNET": "WEMIX", diff --git a/src/config/types.ts b/src/config/types.ts index 4ba656bc864..1afc186289a 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -45,7 +45,6 @@ export type SupportedChain = | "SCROLL_MAINNET" | "SCROLL_SEPOLIA" | "LINEA_MAINNET" - | "LINEA_GOERLI" | "ZKSYNC_MAINNET" | "ZKSYNC_SEPOLIA" | "POLYGON_ZKEVM_MAINNET" diff --git a/src/config/web3Providers.ts b/src/config/web3Providers.ts index 088fb6ecc71..67c27aa11f0 100644 --- a/src/config/web3Providers.ts +++ b/src/config/web3Providers.ts @@ -30,7 +30,6 @@ export const chainToProvider: Record providers.Provider> = CELO_MAINNET: () => new providers.JsonRpcProvider("https://alfajores-forno.celo-testnet.org"), CELO_ALFAJORES: () => new providers.JsonRpcProvider("https://forno.celo.org"), LINEA_MAINNET: () => new providers.JsonRpcProvider("https://rpc.linea.build"), - LINEA_GOERLI: () => new providers.JsonRpcProvider("https://rpc.goerli.linea.build"), POLYGON_ZKEVM_MAINNET: () => new providers.JsonRpcProvider("https://zkevm-rpc.com"), POLYGON_ZKEVM_TESTNET: () => new providers.JsonRpcProvider("https://rpc.public.zkevm-test.net"), ZKSYNC_MAINNET: () => new providers.JsonRpcProvider("https://mainnet.era.zksync.io"), diff --git a/src/content/data-feeds/ens.mdx b/src/content/data-feeds/ens.mdx index a529b96fe50..fc8e733a9f4 100644 --- a/src/content/data-feeds/ens.mdx +++ b/src/content/data-feeds/ens.mdx @@ -71,7 +71,7 @@ This example logs the address of the data feed on the Ethereum mainnet for ETH / ### Solidity -In Solidity, the address of the ENS registry must be known. According to [ENS documentation](https://docs.ens.domains/ens-deployments), this address is the same across Mainnet and Goerli networks: +In Solidity, the address of the ENS registry must be known. According to [ENS documentation](https://docs.ens.domains/ens-deployments), this address is the same across Mainnet and testnet: ENS registry address: [0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e](https://etherscan.io/address/0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e). diff --git a/src/features/data/chains.ts b/src/features/data/chains.ts index 4717143e766..efb5be255a4 100644 --- a/src/features/data/chains.ts +++ b/src/features/data/chains.ts @@ -377,13 +377,6 @@ export const CHAINS: Chain[] = [ rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-mainnet-linea-1.json", queryString: "linea-mainnet", }, - { - name: "Linea Goerli testnet", - explorerUrl: "https://goerli.lineascan.build/address/%s", - networkType: "testnet", - rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-testnet-goerli-linea-1.json", - queryString: "linea-goerli-testnet", - }, ], }, { @@ -427,13 +420,6 @@ export const CHAINS: Chain[] = [ rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-mainnet-polygon-zkevm-1.json", queryString: "polygon-zkevm-mainnet", }, - { - name: "Polygon zkEVM testnet", - explorerUrl: "https://testnet-zkevm.polygonscan.com/address/%s", - networkType: "testnet", - rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-testnet-goerli-polygon-zkevm-1.json", - queryString: "polygon-zkevm-testnet", - }, ], }, { diff --git a/src/scripts/reference/chains.json b/src/scripts/reference/chains.json index f5f04c6cdfd..5f5f7f276d3 100644 --- a/src/scripts/reference/chains.json +++ b/src/scripts/reference/chains.json @@ -568,35 +568,6 @@ "infoURL": "https://docs.celo.org/", "explorers": [{ "name": "Alfajoresscan", "url": "https://alfajores.celoscan.io", "standard": "EIP3091" }] }, - { - "name": "Linea Testnet", - "title": "Linea Goerli Testnet", - "chain": "ETH", - "rpc": [ - "https://rpc.goerli.linea.build", - "wss://rpc.goerli.linea.build", - "https://linea-goerli.infura.io/v3/${INFURA_API_KEY}", - "wss://linea-goerli.infura.io/ws/v3/${INFURA_API_KEY}" - ], - "faucets": ["https://faucetlink.to/goerli"], - "nativeCurrency": { "name": "Linea Ether", "symbol": "ETH", "decimals": 18 }, - "infoURL": "https://linea.build", - "shortName": "linea-testnet", - "chainId": 59140, - "networkId": 59140, - "slip44": 1, - "icon": "linea", - "parent": { - "type": "L2", - "chain": "eip155-5", - "bridges": [{ "url": "https://goerli.hop.exchange/#/send?token=ETH&sourceNetwork=ethereum&destNetwork=linea" }] - }, - "explorers": [ - { "name": "Etherscan", "url": "https://goerli.lineascan.build", "standard": "EIP3091", "icon": "linea" }, - { "name": "Blockscout", "url": "https://explorer.goerli.linea.build", "standard": "EIP3091", "icon": "linea" } - ], - "status": "active" - }, { "name": "Linea", "title": "Linea Mainnet", @@ -702,8 +673,7 @@ "networkId": 534351, "slip44": 1, "explorers": [ - { "name": "Scroll Sepolia Etherscan", "url": "https://sepolia.scrollscan.com", "standard": "EIP3091" }, - { "name": "Scroll Sepolia Blockscout", "url": "https://sepolia-blockscout.scroll.io", "standard": "EIP3091" } + { "name": "Scroll Sepolia Etherscan", "url": "https://sepolia.scrollscan.com", "standard": "EIP3091" } ], "parent": { "type": "L2", "chain": "eip155-11155111", "bridges": [{ "url": "https://sepolia.scroll.io/bridge" }] } }, @@ -711,22 +681,14 @@ "name": "Scroll", "chain": "ETH", "status": "active", - "rpc": [ - "https://rpc.scroll.io", - "https://rpc-scroll.icecreamswap.com", - "https://rpc.ankr.com/scroll", - "https://scroll-mainnet.chainstacklabs.com" - ], + "rpc": ["https://rpc.scroll.io", "https://rpc.ankr.com/scroll", "https://scroll-mainnet.chainstacklabs.com"], "faucets": [], "nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 }, "infoURL": "https://scroll.io", "shortName": "scr", "chainId": 534352, "networkId": 534352, - "explorers": [ - { "name": "Scrollscan", "url": "https://scrollscan.com", "standard": "EIP3091" }, - { "name": "Blockscout", "url": "https://blockscout.scroll.io", "standard": "EIP3091" } - ], + "explorers": [{ "name": "Scrollscan", "url": "https://scrollscan.com", "standard": "EIP3091" }], "parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://scroll.io/bridge" }] } }, { diff --git a/src/scripts/reference/linkNameSymbol.json b/src/scripts/reference/linkNameSymbol.json index 6911e5129c7..03584b87e84 100644 --- a/src/scripts/reference/linkNameSymbol.json +++ b/src/scripts/reference/linkNameSymbol.json @@ -26,7 +26,6 @@ "534352": { "name": "ChainLink Token", "symbol": "LINK" }, "534351": { "name": "ChainLink Token", "symbol": "LINK" }, "59144": { "name": "ChainLink Token", "symbol": "LINK" }, - "59140": { "name": "ChainLink Token", "symbol": "LINK" }, "324": { "name": "ChainLink Token", "symbol": "LINK" }, "300": { "name": "ChainLink Token", From 22ca2858093d0a358fbaaed9dbac77077a124244 Mon Sep 17 00:00:00 2001 From: Dwight Lyle Date: Wed, 10 Apr 2024 10:26:57 -0600 Subject: [PATCH 2/2] Fix --- src/features/data/chains.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/features/data/chains.ts b/src/features/data/chains.ts index efb5be255a4..320daa88ea0 100644 --- a/src/features/data/chains.ts +++ b/src/features/data/chains.ts @@ -420,6 +420,13 @@ export const CHAINS: Chain[] = [ rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-mainnet-polygon-zkevm-1.json", queryString: "polygon-zkevm-mainnet", }, + { + name: "Polygon zkEVM testnet", + explorerUrl: "https://testnet-zkevm.polygonscan.com/address/%s", + networkType: "testnet", + rddUrl: "https://reference-data-directory.vercel.app/feeds-ethereum-testnet-goerli-polygon-zkevm-1.json", + queryString: "polygon-zkevm-testnet", + }, ], }, {