Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polygon zkevm #1695

Merged
merged 15 commits into from
Dec 14, 2023
Merged
76 changes: 61 additions & 15 deletions public/assets/chains/polygon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions public/assets/chains/polygonzkevm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/config/data/chain-to-technology.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
20 changes: 19 additions & 1 deletion src/config/data/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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 }
}
}
}
}
3 changes: 3 additions & 0 deletions src/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type SupportedTechnology =
| "METIS"
| "BASE"
| "CELO"
| "POLYGON_ZKEVM"
| "LINEA"
| "SCROLL"

Expand Down Expand Up @@ -46,6 +47,8 @@ export type SupportedChain =
| "LINEA_GOERLI"
| "ZKSYNC_MAINNET"
| "ZKSYNC_GOERLI"
| "POLYGON_ZKEVM_MAINNET"
| "POLYGON_ZKEVM_TESTNET"

export type Chains = Record<
SupportedTechnology,
Expand Down
2 changes: 2 additions & 0 deletions src/config/web3Providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export const chainToProvider: Record<SupportedChain, () => 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"),
}
26 changes: 26 additions & 0 deletions src/content/resources/link-token-contracts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 | <Address contractUrl="https://zkevm.polygonscan.com/address/0xdB7A504CF869484dd6aC5FaF925c8386CBF7573D" urlId="1101_0xdB7A504CF869484dd6aC5FaF925c8386CBF7573D" urlClass="erc-token-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 | <Address contractUrl="https://testnet-zkevm.polygonscan.com/address/0xa375fEfcA27a639361139718145dffc29A44cB6d" urlId="1442_0xa375fEfcA27a639361139718145dffc29A44cB6d" urlClass="erc-token-address"/> |
| Name | Chainlink Token on Polygon zkEVM testnet |
| Symbol | LINK |
| Decimals | 18 |

## Solana

### Solana Mainnet
Expand Down
37 changes: 32 additions & 5 deletions src/features/data/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/features/landing/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
60 changes: 60 additions & 0 deletions src/scripts/reference/chains.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/scripts/reference/linkNameSymbol.json
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down
Loading