diff --git a/public/assets/chains/polygon.svg b/public/assets/chains/polygon.svg index a5bb6124fc3..35deb43a90d 100644 --- a/public/assets/chains/polygon.svg +++ b/public/assets/chains/polygon.svg @@ -1,16 +1,62 @@ - - - - - - - + + + + + + + + + + + diff --git a/public/assets/chains/polygonzkevm.svg b/public/assets/chains/polygonzkevm.svg new file mode 100644 index 00000000000..b40b6b18788 --- /dev/null +++ b/public/assets/chains/polygonzkevm.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/src/config/data/chain-to-technology.json b/src/config/data/chain-to-technology.json index 8e6e4260b68..aa8a31d63ae 100644 --- a/src/config/data/chain-to-technology.json +++ b/src/config/data/chain-to-technology.json @@ -23,6 +23,7 @@ "METIS_MAINNET": "METIS", "CELO_MAINNET": "CELO", "CELO_ALFAJORES": "CELO", + "POLYGON_ZKEVM_TESTNET": "POLYGON_ZKEVM", "SCROLL_MAINNET": "SCROLL", "SCROLL_SEPOLIA": "SCROLL", "LINEA_MAINNET": "LINEA", diff --git a/src/config/data/chains.json b/src/config/data/chains.json index 639a1d4671a..d2c9be7be33 100644 --- a/src/config/data/chains.json +++ b/src/config/data/chains.json @@ -264,7 +264,7 @@ "ZKSYNC_MAINNET": { "chainId": 324, "title": "zkSync mainnet", - "explorer": "https://explorer.zksync.io/", + "explorer": "https://explorer.zksync.io", "nativeCurrency": { "name": "zkSync Ether", "symbol": "ETH", "decimals": 18 } }, "ZKSYNC_GOERLI": { @@ -274,5 +274,23 @@ "nativeCurrency": { "name": "zkSync Ether", "symbol": "ETH", "decimals": 18 } } } + }, + "POLYGON_ZKEVM": { + "title": "Polygon zkEVM", + "icon": "/assets/chains/polygonzkevm.svg", + "chains": { + "POLYGON_ZKEVM_MAINNET": { + "chainId": 1101, + "title": "Polygon zkEVM mainnet", + "explorer": "https://zkevm.polygonscan.com", + "nativeCurrency": { "name": "Polygon zkEVM Ether", "symbol": "ETH", "decimals": 18 } + }, + "POLYGON_ZKEVM_TESTNET": { + "chainId": 1442, + "title": "Polygon zkEVM testnet", + "explorer": "https://testnet-zkevm.polygonscan.com", + "nativeCurrency": { "name": "Polygon zkEVM Ether", "symbol": "ETH", "decimals": 18 } + } + } } } diff --git a/src/config/types.ts b/src/config/types.ts index 901802cc1c8..df96d57dd65 100644 --- a/src/config/types.ts +++ b/src/config/types.ts @@ -12,6 +12,7 @@ export type SupportedTechnology = | "METIS" | "BASE" | "CELO" + | "POLYGON_ZKEVM" | "LINEA" | "SCROLL" @@ -46,6 +47,8 @@ export type SupportedChain = | "LINEA_GOERLI" | "ZKSYNC_MAINNET" | "ZKSYNC_GOERLI" + | "POLYGON_ZKEVM_MAINNET" + | "POLYGON_ZKEVM_TESTNET" export type Chains = Record< SupportedTechnology, diff --git a/src/config/web3Providers.ts b/src/config/web3Providers.ts index 02767997a24..5429c206db3 100644 --- a/src/config/web3Providers.ts +++ b/src/config/web3Providers.ts @@ -34,6 +34,8 @@ export const chainToProvider: Record providers.Provider> = 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://testnet.era.zksync.dev"), ZKSYNC_GOERLI: () => new providers.JsonRpcProvider("https://mainnet.era.zksync.io"), } diff --git a/src/content/resources/link-token-contracts.mdx b/src/content/resources/link-token-contracts.mdx index e034d107255..2e1d18efda4 100644 --- a/src/content/resources/link-token-contracts.mdx +++ b/src/content/resources/link-token-contracts.mdx @@ -484,6 +484,32 @@ Testnet LINK is available at [faucets.chain.link](https://faucets.chain.link/). | Decimals | 18 | | Network status | [uptime.com/statuspage/zkSync](https://uptime.com/statuspage/zkSync) | +## Polygon zkEVM + +### Polygon zkEVM mainnet + +Testnet ETH is used to pay for transactions on Polygon zkEVM testnet. Use the [Polygon zkEVM Bridge](https://wallet.polygon.technology/zkEVM-Bridge/bridge) to transfer ETH and LINK to Polygon zkEVM testnet. + +| Parameter | Value | +| :------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ETH_CHAIN_ID` | `1101` | +| Address |
| +| Name | Chainlink Token on Polygon zkEVM testnet | +| Symbol | LINK | +| Decimals | 18 | + +### Polygon zkEVM testnet + +Testnet ETH is used to pay for transactions on Polygon zkEVM testnet. Use the [Polygon zkEVM Bridge](https://wallet.polygon.technology/zkEVM-Bridge/bridge) to transfer ETH and LINK to Polygon zkEVM testnet. + +| Parameter | Value | +| :------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ETH_CHAIN_ID` | `1442` | +| Address |
| +| Name | Chainlink Token on Polygon zkEVM testnet | +| Symbol | LINK | +| Decimals | 18 | + ## Solana ### Solana Mainnet diff --git a/src/features/data/chains.ts b/src/features/data/chains.ts index b59d7b5a64f..5927c867b8f 100644 --- a/src/features/data/chains.ts +++ b/src/features/data/chains.ts @@ -421,6 +421,33 @@ export const CHAINS: Chain[] = [ }, ], }, + { + page: "polygonzkevm", + label: "Polygon zkEVM", + title: "Polygon zkEVM", + img: "/assets/chains/polygonzkevm.svg", + networkStatusUrl: "https://polygonscan.freshstatus.io/", + tags: ["default"], + supportedFeatures: ["feeds"], + networks: [ + { + name: "Polygon zkEVM Mainnet", + explorerUrl: "https://zkevm.polygonscan.com/address/%s", + networkType: "mainnet", + rddUrl: + "https://reference-data-directory-qy7u5hvya-chainlinklabs.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-qy7u5hvya-chainlinklabs.vercel.app/feeds-ethereum-testnet-goerli-polygon-zkevm-1.json", + queryString: "polygon-zkevm-testnet", + }, + ], + }, { page: "starknet", label: "StarkNet", @@ -594,12 +621,12 @@ export const ALL_CHAINS: Chain[] = [ queryString: "zksync-mainnet", }, { - name: "zkSync Goerli testnet", - explorerUrl: "https://goerli.explorer.zksync.io/address/%s", - networkType: "testnet", + name: "Polygon zkEVM Mainnet", + explorerUrl: "https://zkevm.polygonscan.com/address/%s", + networkType: "mainnet", rddUrl: - "https://reference-data-directory-qy7u5hvya-chainlinklabs.vercel.app/feeds-ethereum-testnet-goerli-zksync-1.json", - queryString: "zksync-goerli-testnet", + "https://reference-data-directory-qy7u5hvya-chainlinklabs.vercel.app/feeds-ethereum-mainnet-polygon-zkevm-1.json", + queryString: "polygon-zkevm-mainnet", }, { name: "Solana Mainnet", diff --git a/src/features/landing/data/index.ts b/src/features/landing/data/index.ts index 1f4d8912a35..532d8e944ec 100644 --- a/src/features/landing/data/index.ts +++ b/src/features/landing/data/index.ts @@ -53,6 +53,7 @@ export const evmProducts = [ { id: "moonriver", title: "Moonriver" }, { id: "base", title: "BASE" }, { id: "celo", title: "Celo" }, + { id: "polygonzkevm", title: "Polgyon zkEVM" }, { id: "scroll", title: "Scroll" }, { id: "linea", title: "Linea" }, { id: "zksync", title: "zkSync" }, diff --git a/src/scripts/reference/chains.json b/src/scripts/reference/chains.json index 368a3bef238..d5927cdcf58 100644 --- a/src/scripts/reference/chains.json +++ b/src/scripts/reference/chains.json @@ -223,6 +223,49 @@ { "name": "dexguru", "url": "https://fantom.dex.guru", "icon": "dexguru", "standard": "EIP3091" } ] }, + { + "name": "zkSync Era Goerli Testnet (deprecated)", + "status": "deprecated", + "chain": "ETH", + "rpc": ["https://testnet.era.zksync.dev"], + "faucets": [], + "nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 }, + "infoURL": "https://zksync.io/", + "shortName": "zksync-goerli", + "chainId": 280, + "networkId": 280, + "icon": "zksync-era", + "explorers": [ + { + "name": "zkSync Era Block Explorer", + "url": "https://goerli.explorer.zksync.io", + "icon": "zksync-era", + "standard": "EIP3091" + } + ], + "parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://bridge.zksync.io/" }] } + }, + { + "name": "zkSync Mainnet", + "chain": "ETH", + "rpc": ["https://mainnet.era.zksync.io"], + "faucets": [], + "nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 }, + "infoURL": "https://zksync.io/", + "shortName": "zksync", + "chainId": 324, + "networkId": 324, + "icon": "zksync-era", + "explorers": [ + { + "name": "zkSync Era Block Explorer", + "url": "https://explorer.zksync.io", + "icon": "zksync-era", + "standard": "EIP3091" + } + ], + "parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://bridge.zksync.io/" }] } + }, { "name": "Optimism Goerli Testnet", "chain": "ETH", @@ -261,6 +304,23 @@ "explorers": [{ "name": "blockscout", "url": "https://andromeda-explorer.metis.io", "standard": "EIP3091" }], "parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://bridge.metis.io" }] } }, + { + "name": "Polygon zkEVM", + "title": "Polygon zkEVM", + "chain": "Polygon", + "rpc": ["https://zkevm-rpc.com"], + "faucets": [], + "nativeCurrency": { "name": "Ether", "symbol": "ETH", "decimals": 18 }, + "infoURL": "https://polygon.technology/polygon-zkevm", + "shortName": "zkevm", + "chainId": 1101, + "networkId": 1101, + "icon": "zkevm", + "explorers": [ + { "name": "blockscout", "url": "https://zkevm.polygonscan.com", "icon": "zkevm", "standard": "EIP3091" } + ], + "parent": { "type": "L2", "chain": "eip155-1", "bridges": [{ "url": "https://bridge.zkevm-rpc.com" }] } + }, { "name": "Moonbeam", "chain": "MOON", diff --git a/src/scripts/reference/linkNameSymbol.json b/src/scripts/reference/linkNameSymbol.json index 48fc7e01ffe..095756fe7fa 100644 --- a/src/scripts/reference/linkNameSymbol.json +++ b/src/scripts/reference/linkNameSymbol.json @@ -23,6 +23,7 @@ "421613": { "name": "ChainLink Token", "symbol": "LINK" }, "42220": { "name": "ChainLink Token", "symbol": "LINK" }, "44787": { "name": "ChainLink Token", "symbol": "LINK" }, + "1101": { "name": "ChainLink Token", "symbol": "LINK" }, "1442": { "name": "ChainLink Token", "symbol": "LINK" }, "534352": { "name": "ChainLink Token", "symbol": "LINK" }, "534351": { "name": "ChainLink Token", "symbol": "LINK" },