Skip to content

Commit

Permalink
feat: add coinex chain
Browse files Browse the repository at this point in the history
  • Loading branch information
pk-850 committed Oct 26, 2024
1 parent 8e45821 commit f656976
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 @@ -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'
Expand Down

0 comments on commit f656976

Please sign in to comment.