Skip to content

Commit 05b3fb7

Browse files
CruzMolinaAniket-Engg
authored andcommitted
feat: add ink & ink sepolia support to remix-dapp
1 parent 9b7ccdc commit 05b3fb7

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

apps/remix-dapp/src/utils/chains.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,22 @@ export const bsc = {
5454
rpcUrl: 'https://rpc.ankr.com/bsc',
5555
};
5656

57+
export const ink = {
58+
chainId: 57073,
59+
name: 'Ink',
60+
currency: 'ETH',
61+
explorerUrl: 'https://explorer.inkonchain.com',
62+
rpcUrl: 'https://rpc-gel.inkonchain.com',
63+
};
64+
65+
export const inkSepolia = {
66+
chainId: 763373,
67+
name: 'Ink Sepolia',
68+
currency: 'ETH',
69+
explorerUrl: 'https://explorer-sepolia.inkonchain.com',
70+
rpcUrl: 'https://rpc-gel-sepolia.inkonchain.com',
71+
};
72+
5773
export const optimism = {
5874
chainId: 10,
5975
name: 'Optimism',

apps/remix-dapp/src/utils/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ import {
1616
bsc,
1717
celo,
1818
gnosis,
19+
ink,
20+
inkSepolia,
1921
zkSync,
2022
zora,
2123
} from './chains';
@@ -39,6 +41,8 @@ export const constants = {
3941
bsc,
4042
celo,
4143
gnosis,
44+
ink,
45+
inkSepolia,
4246
zkSync,
4347
zora,
4448
],

apps/remix-dapp/src/utils/metamask.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ class MetaMask {
1111
paramsObj.chainName = 'Arbitrum One';
1212
paramsObj.rpcUrls = ['https://arb1.arbitrum.io/rpc'];
1313
}
14+
if (chainId === '0xdef1') {
15+
paramsObj.chainName = 'Ink';
16+
paramsObj.rpcUrls = ['https://rpc-gel.inkonchain.com'];
17+
}
18+
if (chainId === '0xba5ed') {
19+
paramsObj.chainName = 'Ink Sepolia';
20+
paramsObj.rpcUrls = ['https://rpc-gel-sepolia.inkonchain.com'];
21+
}
1422
if (chainId === '0x50877ed6') {
1523
paramsObj.chainName = 'SKALE Chaos Testnet';
1624
paramsObj.rpcUrls = [

0 commit comments

Comments
 (0)