From 4de57adc4c7e098558ab4e14be7c41a8e740100b Mon Sep 17 00:00:00 2001 From: Oren Date: Tue, 9 Jan 2024 17:49:21 +0200 Subject: [PATCH] Add chains (#18) --- src/constants.ts | 25 ++++++++++++++++++++++++- src/types.ts | 23 +++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/src/constants.ts b/src/constants.ts index eb9ca66..9ac3ae4 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -28,7 +28,30 @@ export const ASSETS: { [key: string]: Asset } = { [ChainId.CELO_ALF]: { assetId: 'CELO_ALF', rpcUrl: "https://alfajores-forno.celo-testnet.org/api/eth-rpc" }, [ChainId.OPTIMISM]: { assetId: 'ETH-OPT', rpcUrl: "https://rpc.ankr.com/optimism" }, [ChainId.OPTIMISM_KOVAN]: { assetId: 'ETH-OPT_KOV', rpcUrl: "https://kovan.optimism.io/" }, - [ChainId.RONIN]: { assetId: 'RON', rpcUrl: "https://api.roninchain.com/rpc" } + [ChainId.RONIN]: { assetId: 'RON', rpcUrl: "https://api.roninchain.com/rpc" }, + [ChainId.CANTO]: { assetId: 'CANTO', rpcUrl: "https://canto.gravitychain.io" }, + [ChainId.CANTO_TEST]: { assetId: 'CANTO_TEST', rpcUrl: "https://testnet-archive.plexnode.wtf" }, + [ChainId.POLYGON_ZKEVM]: { assetId: 'ETH_ZKEVM', rpcUrl: "https://zkevm-rpc.com" }, + [ChainId.POLYGON_ZKEVM_TEST]: { assetId: 'ETH_ZKEVM_TEST', rpcUrl: "https://rpc.public.zkevm-test.net" }, + [ChainId.KAVA]: { assetId: 'KAVA_KAVA', rpcUrl: "https://evm.kava.io" }, + [ChainId.SMARTBCH]: { assetId: 'SMARTBCH', rpcUrl: "https://smartbch.greyh.at" }, + [ChainId.SMARTBCH_TEST]: { assetId: 'ETHW', rpcUrl: "https://rpc-testnet.smartbch.org" }, + [ChainId.HECO]: { assetId: 'HT_CHAIN', rpcUrl: "https://http-mainnet.hecochain.com" }, + [ChainId.AURORA]: { assetId: 'AURORA_DEV', rpcUrl: "https://mainnet.aurora.dev" }, + [ChainId.RISEOFTHEWARBOTSTESTNET]: { assetId: 'TKX', rpcUrl: "https://testnet1.rotw.games" }, + [ChainId.EVMOS]: { assetId: 'EVMOS', rpcUrl: "https://eth.bd.evmos.org" }, + [ChainId.ASTAR]: { assetId: 'ASTR_ASTR', rpcUrl: "https://evm.astar.network" }, + [ChainId.VELAS]: { assetId: 'VLX_VLX', rpcUrl: "https://evmexplorer.velas.com/rpc" }, + [ChainId.ARB_GOERLI]: { assetId: 'ETH-AETH_GOERLI', rpcUrl: "https://endpoints.omniatech.io/v1/arbitrum/goerli/public" }, + [ChainId.XDC]: { assetId: 'XDC', rpcUrl: "https://rpc.xdcrpc.com" }, + [ChainId.BASE]: { assetId: 'BASECHAIN_ETH', rpcUrl: "https://mainnet.base.org" }, + [ChainId.IVAR]: { assetId: 'CHZ_CHZ2', rpcUrl: "https://mainnet-rpc.ivarex.com" }, + [ChainId.JOC]: { assetId: 'ASTR_TEST', rpcUrl: "https://rpc-1.japanopenchain.org:8545" }, + [ChainId.OASYS]: { assetId: 'OAS', rpcUrl: "https://oasys.blockpi.network/v1/rpc/public" }, + [ChainId.SHIMMEREVM]: { assetId: 'SMR_SMR', rpcUrl: "https://json-rpc.evm.shimmer.network" }, + [ChainId.LINEA]: { assetId: 'LINEA', rpcUrl: "https://rpc.linea.build" }, + [ChainId.LINEA_TEST]: { assetId: 'LINEA_TEST', rpcUrl: "https://rpc.goerli.linea.build" }, + [ChainId.FLARE]: { assetId: 'FLR', rpcUrl: "https://flare-api.flare.network/ext/C/rpc" }, } export const SIGNER_METHODS = [ diff --git a/src/types.ts b/src/types.ts index 309a47c..c74a1ac 100644 --- a/src/types.ts +++ b/src/types.ts @@ -29,6 +29,29 @@ export enum ChainId { OPTIMISM = 10, OPTIMISM_KOVAN = 69, RONIN = 2020, + CANTO = 7700, + CANTO_TEST = 7701, + POLYGON_ZKEVM_TEST = 1442, + POLYGON_ZKEVM = 1101, + KAVA = 2222, + SMARTBCH = 10000, + SMARTBCH_TEST = 10001, + HECO = 128, + AURORA = 1313161554, + RISEOFTHEWARBOTSTESTNET = 7777, + EVMOS = 9001, + ASTAR = 592, + VELAS = 106, + ARB_GOERLI = 421613, + XDC = 50, + BASE = 8453, + IVAR = 88888, + JOC = 81, + OASYS = 248, + SHIMMEREVM = 148, + LINEA = 59144, + LINEA_TEST = 59140, + FLARE = 14, } export enum ApiBaseUrl {