Skip to content

Commit

Permalink
feat: add ThunderCore Mainnet (#2884)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengbaolong authored Oct 19, 2024
1 parent 67e664c commit 1a4c081
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/rotten-moles-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const thunderCore = /*#__PURE__*/ defineChain({
id: 108,
name: 'ThunderCore Mainnet',
nativeCurrency: { name: 'TT', symbol: 'TT', decimals: 18 },
rpcUrls: {
default: {
http: ['https://mainnet-rpc.thundercore.com'],
},
},
blockExplorers: {
default: {
name: 'ThunderCore Explorer',
url: 'https://viewblock.io/thundercore',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export { telos } from './definitions/telos.js'
export { telosTestnet } from './definitions/telosTestnet.js'
export { tenet } from './definitions/tenet.js'
export { thaiChain } from './definitions/thaiChain.js'
export { thunderCore } from './definitions/thunderCore.js'
export { thunderTestnet } from './definitions/thunderTestnet.js'
export { tiktrixTestnet } from './definitions/tiktrixTestnet.js'
export { tron } from './definitions/tron.js'
Expand Down

0 comments on commit 1a4c081

Please sign in to comment.