From f65697681827d447da454233f88f2af901d3cc62 Mon Sep 17 00:00:00 2001 From: Peng Ke Date: Sat, 26 Oct 2024 21:44:27 +0800 Subject: [PATCH] feat: add coinex chain --- .changeset/itchy-papayas-push.md | 5 +++++ src/chains/definitions/coinex.ts | 19 +++++++++++++++++++ src/chains/index.ts | 1 + 3 files changed, 25 insertions(+) create mode 100644 .changeset/itchy-papayas-push.md create mode 100644 src/chains/definitions/coinex.ts diff --git a/.changeset/itchy-papayas-push.md b/.changeset/itchy-papayas-push.md new file mode 100644 index 0000000000..20b1c878f8 --- /dev/null +++ b/.changeset/itchy-papayas-push.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added CoinEx Mainnet. diff --git a/src/chains/definitions/coinex.ts b/src/chains/definitions/coinex.ts new file mode 100644 index 0000000000..09c1f33fdd --- /dev/null +++ b/src/chains/definitions/coinex.ts @@ -0,0 +1,19 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const coinex = /*#__PURE__*/ defineChain({ + id: 52, + name: 'CoinEx Mainnet', + nativeCurrency: { name: 'cet', symbol: 'cet', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.coinex.net'], + }, + }, + blockExplorers: { + default: { + name: 'CoinEx Explorer', + url: 'https://www.coinex.net', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 58be9dcbe9..122a64cb35 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -75,6 +75,7 @@ export { chang } from './definitions/chang.js' export { chiliz } from './definitions/chiliz.js' export { chips } from './definitions/chips.js' export { classic } from './definitions/classic.js' +export { coinex } from './definitions/coinex.js' export { confluxESpace } from './definitions/confluxESpace.js' export { confluxESpaceTestnet } from './definitions/confluxESpaceTestnet.js' export { coreDao } from './definitions/coreDao.js'