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

Feat/migrate zkevm cardona #1497

Merged
merged 2 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
"@mui/icons-material": "^5.8.4",
"@mui/lab": "^5.0.0-alpha.72",
"@mui/material": "^5.5.0",
"@pushprotocol/restapi": "0.0.1-alpha.78",
"@pushprotocol/restapi": "1.7.10",
"@pushprotocol/socket": "0.5.3",
"@pushprotocol/uiweb": "1.3.1-alpha.16",
"@pushprotocol/uiweb": "1.2.8",
"@reduxjs/toolkit": "^1.7.1",
"@testing-library/dom": "^9.0.1",
"@testing-library/jest-dom": "^4.2.4",
Expand Down
4 changes: 2 additions & 2 deletions src/components/Faucets.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ const Faucets = () => {
link: "https://faucet.quicknode.com/optimism/sepolia",
},
{
id: "1442",
id: "2442",
value: "Polygon zkEVM",
title: "Polygon zkEVM Bridge",
function: () => {},
link: "https://public.zkevm-test.net/"
link: "https://faucet.polygon.technology/"
},
{
id: "421614",
Expand Down
4 changes: 2 additions & 2 deletions src/components/VerifyAlias.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ const VerifyAlias = ({ aliasEthAccount, setAliasVerified }) => {
label: "Sepolia OpETH",
url: "https://faucet.quicknode.com/optimism/sepolia"
},
1442: {
2442: {
label: "Polygon zkEVM ETH",
url: "https://public.zkevm-test.net/"
url: "https://faucet.polygon.technology/"
},
421614: {
label: "Sepolia ArbETH",
Expand Down
12 changes: 6 additions & 6 deletions src/config/config-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const config = {
80002, //for amoy polygon
97, // bnb testnet
11155420, // optimism sepolia testnet
1442, // polygon zkevm testnet
2442, // polygon zkevm cardona testnet
421614, // arbitrum testnet
123, // fuse testnet
],
Expand All @@ -43,7 +43,7 @@ export const config = {
80002: 'https://polygon-amoy.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7',
97: 'https://data-seed-prebsc-1-s1.binance.org:8545',
11155420: 'https://optimism-sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7',
1442: 'https://rpc.public.zkevm-test.net',
2442: 'https://rpc.cardona.zkevm-rpc.com',
421614: 'https://arbitrum-sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7',
},
infuraApiUrl: 'https:/infura-ipfs.io/ipfs/',
Expand Down Expand Up @@ -153,12 +153,12 @@ export const CHAIN_DETAILS = {
rpcUrl: 'https://optimism-sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7',
commAddress: '0x754787358fac861ef904c92d54f7adb659779317',
},
1442: {
2442: {
label: 'Polygon zkEVM Testnet',
name: 'POLYGON_ZK_EVM_TESTNET',
chainId: 1442,
rpcUrl: 'https://rpc.public.zkevm-test.net',
commAddress: '0x630b152e4185c63D7177c656b56b26f878C61572',
chainId: 2442,
rpcUrl: 'https://rpc.cardona.zkevm-rpc.com',
commAddress: '0x9cb3bd7550b5c92baa056fc0f08132f49508145f',
},
421614: {
label: 'Arbitrum Testnet',
Expand Down
12 changes: 6 additions & 6 deletions src/config/config-staging.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const config = {
80002, //for amoy polygon
97, // bnb testnet
11155420, // optimism sepolia testnet
1442, // polygon zkevm testnet
2442, // polygon zkevm cardona testnet
421614, // arbitrum testnet
123, // fuse testnet
],
Expand All @@ -44,7 +44,7 @@ export const config = {
80002: 'https://polygon-amoy.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7',
97: 'https://data-seed-prebsc-1-s1.binance.org:8545',
11155420: 'https://optimism-sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7',
1442: 'https://rpc.public.zkevm-test.net',
2442: 'https://rpc.cardona.zkevm-rpc.com',
421614: 'https://arbitrum-sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7',
},
infuraApiUrl: 'https:/infura-ipfs.io/ipfs/',
Expand Down Expand Up @@ -149,12 +149,12 @@ export const CHAIN_DETAILS = {
rpcUrl: 'https://optimism-sepolia.infura.io/v3/5524d420b29f4f7a8d8d2f582a0d43f7',
commAddress: '0x9Dc25996ba72A2FD7E64e7a674232a683f406F1A',
},
1442: {
2442: {
label: 'Polygon zkEVM Testnet',
name: 'POLYGON_ZK_EVM_TESTNET',
chainId: 1442,
rpcUrl: 'https://rpc.public.zkevm-test.net',
commAddress: '0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa',
chainId: 2442,
rpcUrl: 'https://rpc.cardona.zkevm-rpc.com',
commAddress: '0x6e489b7af21ceb969f49a90e481274966ce9d74d',
},
421614: {
label: 'Arbitrum Testnet',
Expand Down
6 changes: 3 additions & 3 deletions src/connectors/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ export const TESTNET_CHAINS: ChainConfig = {
nativeCurrency: BNB,
blockExplorerUrls: [],
},
1442: {
2442: {
name: 'Polygon zkEVM Testnet',
urls: ['https://rpc.public.zkevm-test.net'],
urls: ['https://rpc.cardona.zkevm-rpc.com'],
nativeCurrency: MATIC,
blockExplorerUrls: [],
blockExplorerUrls: ['https://cardona-zkevm.polygonscan.com/'],
},
123: {
name: 'Fuse Testnet',
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/CaipHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { appConfig } from '../config/index.js';

export const Eip155EnabledIds: Array<Number> = [
1, 56, 137, 10, 1101, 42161, 11155111, 97, 80002, 11155420, 1442, 421614, 122, 123,
1, 56, 137, 10, 1101, 42161, 11155111, 97, 80002, 11155420, 2442, 421614, 122, 123,
];

// Types
Expand Down
14 changes: 7 additions & 7 deletions src/helpers/UtilityHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const MaskedAliasChannels: {
97: {},
10: {},
11155420: {},
1442: {},
2442: {},
1101: {},
42161: {},
421614: {},
Expand Down Expand Up @@ -115,7 +115,7 @@ export const networkName = {
56: 'BNB Mainnet',
11155420: 'Optimism Sepolia',
10: 'Optimism Mainnet',
1442: 'Polygon zkEVM Testnet',
2442: 'Polygon zkEVM Testnet',
1101: 'Polygon zkEVM Mainnet',
42161: 'ArbitrumOne Mainnet',
421614: 'Arbitrum Testnet',
Expand All @@ -141,7 +141,7 @@ export const aliasChainIdToChainName = {
42161: 'ARBITRUMONE',
421614: 'ARBITRUMONE',
1101: 'POLYGONZKEVM',
1442: 'POLYGONZKEVM',
2442: 'POLYGONZKEVM',
122: 'FUSE',
123: 'FUSE',
};
Expand Down Expand Up @@ -197,11 +197,11 @@ export const NETWORK_DETAILS = {
blockExplorerUrls: ['https://optimistic.etherscan.io/'],
},
POLYGON_ZK_EVM_TESTNET: {
chainId: utils.hexValue(1442),
chainId: utils.hexValue(2442),
chainName: 'Polygon zkEVM Testnet',
nativeCurrency: { name: 'ETH', symbol: 'ETH', decimals: 18 },
rpcUrls: ['https://rpc.public.zkevm-test.net'],
blockExplorerUrls: ['https://testnet-zkevm.polygonscan.com'],
rpcUrls: ['https://rpc.cardona.zkevm-rpc.com'],
blockExplorerUrls: ['https://cardona-zkevm.polygonscan.com/'],
},
POLYGON_ZK_EVM_MAINNET: {
chainId: utils.hexValue(1101),
Expand Down Expand Up @@ -253,7 +253,7 @@ export const LOGO_FROM_CHAIN_ID: {
56: 'BNB.svg',
11155420: 'Optimism.svg',
10: 'Optimism.svg',
1442: 'PolygonZkEVM.svg',
2442: 'PolygonZkEVM.svg',
1101: 'PolygonZkEVM.svg',
42161: 'Arbitrum.svg',
421614: 'Arbitrum.svg',
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4215,9 +4215,9 @@ __metadata:
languageName: node
linkType: hard

"@pushprotocol/restapi@npm:0.0.1-alpha.78":
version: 0.0.1-alpha.78
resolution: "@pushprotocol/restapi@npm:0.0.1-alpha.78"
"@pushprotocol/restapi@npm:1.7.10":
version: 1.7.10
resolution: "@pushprotocol/restapi@npm:1.7.10"
dependencies:
"@metamask/eth-sig-util": ^5.0.2
axios: ^0.27.2
Expand All @@ -4240,7 +4240,7 @@ __metadata:
peerDependenciesMeta:
ethers:
optional: true
checksum: 10ab283ec990cf8db06c04dd53b0485583506d3bb858744433807b117468d11955581b9797dac5a00f6bbe30fddfab8b17fa018ca8fb1e36dc36aa44676e7b8e
checksum: 8077c74b994240eb39e261046d74a78d23c575c1e77fe79ad233f03e6947d29c84f83d969c9153a35cad2b753bd8c7832e3fb1bc83027c72eacbe6319fafeddb
languageName: node
linkType: hard

Expand All @@ -4256,9 +4256,9 @@ __metadata:
languageName: node
linkType: hard

"@pushprotocol/uiweb@npm:1.3.1-alpha.16":
version: 1.3.1-alpha.16
resolution: "@pushprotocol/uiweb@npm:1.3.1-alpha.16"
"@pushprotocol/uiweb@npm:1.2.8":
version: 1.2.8
resolution: "@pushprotocol/uiweb@npm:1.2.8"
dependencies:
"@livekit/components-react": ^1.2.2
"@livekit/components-styles": ^1.0.6
Expand Down Expand Up @@ -4291,7 +4291,7 @@ __metadata:
react: ">=16.8.0"
styled-components: ^6.0.8
viem: ^1.3.0
checksum: 67a2dc547d58decda56af4a0e1db54c01fe185a1664bdb7be6ce689eda3de33d971ea19ba3eeb785efc6f7cd7a81a799947f61ecbf1637598a56f67a2d13bd4a
checksum: de2f6f78a59cf4e2c1e58d2e9e93af20f67718537f7e3b3121852ee76bc0ab180e1ef539bff8064529c182c9d907683dff7b0950abc6ac769b2a3b36c865c2f3
languageName: node
linkType: hard

Expand Down Expand Up @@ -19322,9 +19322,9 @@ __metadata:
"@mui/icons-material": ^5.8.4
"@mui/lab": ^5.0.0-alpha.72
"@mui/material": ^5.5.0
"@pushprotocol/restapi": 0.0.1-alpha.78
"@pushprotocol/restapi": 1.7.10
"@pushprotocol/socket": 0.5.3
"@pushprotocol/uiweb": 1.3.1-alpha.16
"@pushprotocol/uiweb": 1.2.8
"@reduxjs/toolkit": ^1.7.1
"@testing-library/dom": ^9.0.1
"@testing-library/jest-dom": ^4.2.4
Expand Down
Loading