Skip to content

Commit

Permalink
feat: add coinex chain (#2982)
Browse files Browse the repository at this point in the history
Co-authored-by: Peng Ke <pk-850@users.noreply.github.com>
  • Loading branch information
pk-850 and pk-850 authored Nov 7, 2024
1 parent dce1a72 commit 7d9ec2e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/itchy-papayas-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added CoinEx Mainnet.
19 changes: 19 additions & 0 deletions src/chains/definitions/coinex.ts
Original file line number Diff line number Diff line change
@@ -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,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,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'
Expand Down

0 comments on commit 7d9ec2e

Please sign in to comment.