diff --git a/apps/contract-verification/src/app/utils/default-apis.json b/apps/contract-verification/src/app/utils/default-apis.json index 207f9cc3896..6d05e72c742 100644 --- a/apps/contract-verification/src/app/utils/default-apis.json +++ b/apps/contract-verification/src/app/utils/default-apis.json @@ -359,6 +359,9 @@ "5112": { "apiUrl": "https://explorer.ham.fun" }, + "57073": { + "apiUrl": "https://explorer.inkonchain.com" + }, "6398": { "apiUrl": "https://connext-sepolia.blockscout.com" }, @@ -497,6 +500,9 @@ "686868": { "apiUrl": "https://scan.wonnetwork.org" }, + "763373": { + "apiUrl": "https://explorer-sepolia.inkonchain.com" + }, "782251": { "apiUrl": "https://testnet.explorer.stack.so" }, @@ -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" }, diff --git a/apps/remix-dapp/src/utils/chains.ts b/apps/remix-dapp/src/utils/chains.ts index 3ddce33988f..4d05dc930f6 100644 --- a/apps/remix-dapp/src/utils/chains.ts +++ b/apps/remix-dapp/src/utils/chains.ts @@ -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', diff --git a/apps/remix-dapp/src/utils/constants.ts b/apps/remix-dapp/src/utils/constants.ts index 63def02f9b7..8f57c244c4c 100644 --- a/apps/remix-dapp/src/utils/constants.ts +++ b/apps/remix-dapp/src/utils/constants.ts @@ -16,6 +16,8 @@ import { bsc, celo, gnosis, + ink, + inkSepolia, zkSync, zora, } from './chains'; @@ -39,6 +41,8 @@ export const constants = { bsc, celo, gnosis, + ink, + inkSepolia, zkSync, zora, ], diff --git a/apps/remix-dapp/src/utils/metamask.ts b/apps/remix-dapp/src/utils/metamask.ts index 75f8cf5a7a0..dce5b3e6322 100644 --- a/apps/remix-dapp/src/utils/metamask.ts +++ b/apps/remix-dapp/src/utils/metamask.ts @@ -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 = [ diff --git a/apps/walletconnect/src/utils/chains.ts b/apps/walletconnect/src/utils/chains.ts index 783fed7032f..e9c5fe93475 100644 --- a/apps/walletconnect/src/utils/chains.ts +++ b/apps/walletconnect/src/utils/chains.ts @@ -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', @@ -148,4 +164,4 @@ export const saigon = { currency: 'RON', explorerUrl: 'https://saigon-explorer.roninchain.com', rpcUrl: 'https://saigon-testnet.roninchain.com/rpc' -} \ No newline at end of file +} diff --git a/apps/walletconnect/src/utils/constants.ts b/apps/walletconnect/src/utils/constants.ts index 84e806591d9..cfe628a487a 100644 --- a/apps/walletconnect/src/utils/constants.ts +++ b/apps/walletconnect/src/utils/constants.ts @@ -16,6 +16,8 @@ import { bsc, celo, gnosis, + ink, + inkSepolia, zkSync, zora, } from './chains' @@ -39,7 +41,9 @@ export const constants = { bsc, celo, gnosis, + ink, + inkSepolia, zkSync, zora, ] -} \ No newline at end of file +}