Skip to content

Commit

Permalink
feat: add Chang Chain Foundation Mainnet (#2867)
Browse files Browse the repository at this point in the history
  • Loading branch information
qi-0826 authored Oct 15, 2024
1 parent 5889209 commit 6761751
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-wasps-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Chang Chain Foundation Mainnet.
22 changes: 22 additions & 0 deletions src/chains/definitions/chang.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const chang = /*#__PURE__*/ defineChain({
id: 5858,
name: 'Chang Chain Foundation Mainnet',
nativeCurrency: {
decimals: 18,
name: 'CTH',
symbol: 'CTH',
},
rpcUrls: {
default: {
http: ['https://rpc.cthscan.com'],
},
},
blockExplorers: {
default: {
name: 'Chang Chain explorer',
url: 'https://cthscan.com',
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export { cannon } from './definitions/cannon.js'
export { canto } from './definitions/canto.js'
export { celo } from './definitions/celo.js'
export { celoAlfajores } from './definitions/celoAlfajores.js'
export { chang } from './definitions/chang.js'
export { chiliz } from './definitions/chiliz.js'
export { chips } from './definitions/chips.js'
export { classic } from './definitions/classic.js'
Expand Down

0 comments on commit 6761751

Please sign in to comment.