Skip to content

Feat: Add Ink & Ink Sepolia chain configs #5820

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 7 additions & 0 deletions apps/contract-verification/src/app/utils/default-apis.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@
"5112": {
"apiUrl": "https://explorer.ham.fun"
},
"57073": {
"apiUrl": "https://explorer.inkonchain.com"
},
"6398": {
"apiUrl": "https://connext-sepolia.blockscout.com"
},
Expand Down Expand Up @@ -497,6 +500,9 @@
"686868": {
"apiUrl": "https://scan.wonnetwork.org"
},
"763373": {
"apiUrl": "https://explorer-sepolia.inkonchain.com"
},
"782251": {
"apiUrl": "https://testnet.explorer.stack.so"
},
Expand Down Expand Up @@ -627,6 +633,7 @@
"151": { "type": "mainnet" },
"62707": { "type": "mainnet" },
"70953": { "type": "mainnet" },
"57073": { "type": "mainnet" },
"64165": { "type": "testnet" },
"49321": { "type": "testnet" },
"80084": { "type": "testnet" },
Expand Down
16 changes: 16 additions & 0 deletions apps/remix-dapp/src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ export const bsc = {
rpcUrl: 'https://rpc.ankr.com/bsc',
};

export const ink = {
chainId: 57073,
name: 'Ink',
currency: 'ETH',
explorerUrl: 'https://explorer.inkonchain.com',
rpcUrl: 'https://rpc-gel.inkonchain.com',
};

export const inkSepolia = {
chainId: 763373,
name: 'Ink Sepolia',
currency: 'ETH',
explorerUrl: 'https://explorer-sepolia.inkonchain.com',
rpcUrl: 'https://rpc-gel-sepolia.inkonchain.com',
};

export const optimism = {
chainId: 10,
name: 'Optimism',
Expand Down
4 changes: 4 additions & 0 deletions apps/remix-dapp/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import {
bsc,
celo,
gnosis,
ink,
inkSepolia,
zkSync,
zora,
} from './chains';
Expand All @@ -39,6 +41,8 @@ export const constants = {
bsc,
celo,
gnosis,
ink,
inkSepolia,
zkSync,
zora,
],
Expand Down
8 changes: 8 additions & 0 deletions apps/remix-dapp/src/utils/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ class MetaMask {
paramsObj.chainName = 'Arbitrum One';
paramsObj.rpcUrls = ['https://arb1.arbitrum.io/rpc'];
}
if (chainId === '0xdef1') {
paramsObj.chainName = 'Ink';
paramsObj.rpcUrls = ['https://rpc-gel.inkonchain.com'];
}
if (chainId === '0xba5ed') {
paramsObj.chainName = 'Ink Sepolia';
paramsObj.rpcUrls = ['https://rpc-gel-sepolia.inkonchain.com'];
}
if (chainId === '0x50877ed6') {
paramsObj.chainName = 'SKALE Chaos Testnet';
paramsObj.rpcUrls = [
Expand Down
18 changes: 17 additions & 1 deletion apps/walletconnect/src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ export const bsc = {
rpcUrl: 'https://rpc.ankr.com/bsc'
}

export const ink = {
chainId: 57073,
name: 'Ink',
currency: 'ETH',
explorerUrl: 'https://explorer.inkonchain.com',
rpcUrl: 'https://rpc-gel.inkonchain.com'
}

export const inkSepolia = {
chainId: 763373,
name: 'Ink Sepolia',
currency: 'ETH',
explorerUrl: 'https://explorer-sepolia.inkonchain.com',
rpcUrl: 'https://rpc-gel-sepolia.inkonchain.com'
}

export const optimism = {
chainId: 10,
name: 'Optimism',
Expand Down Expand Up @@ -148,4 +164,4 @@ export const saigon = {
currency: 'RON',
explorerUrl: 'https://saigon-explorer.roninchain.com',
rpcUrl: 'https://saigon-testnet.roninchain.com/rpc'
}
}
6 changes: 5 additions & 1 deletion apps/walletconnect/src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import {
bsc,
celo,
gnosis,
ink,
inkSepolia,
zkSync,
zora,
} from './chains'
Expand All @@ -39,7 +41,9 @@ export const constants = {
bsc,
celo,
gnosis,
ink,
inkSepolia,
zkSync,
zora,
]
}
}