Skip to content

Commit

Permalink
feat: add energy chain (#3018)
Browse files Browse the repository at this point in the history
Co-authored-by: Peng Ke <[email protected]>
  • Loading branch information
pk-850 and pk-850 authored Nov 18, 2024
1 parent b4a05d6 commit 42ea113
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-cougars-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const energy = /*#__PURE__*/ defineChain({
id: 246,
name: 'Energy Mainnet',
nativeCurrency: { name: 'EWT', symbol: 'EWT', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.energyweb.org'],
},
},
blockExplorers: {
default: {
name: 'EnergyWeb Explorer',
url: 'https://explorer.energyweb.org',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ export { elastosTestnet } from './definitions/elastosTestnet.js'
export { electroneum } from './definitions/electroneum.js'
export { electroneumTestnet } from './definitions/electroneumTestnet.js'
export { elysiumTestnet } from './definitions/elysiumTestnet.js'
export { energy } from './definitions/energy.js'
export { enuls } from './definitions/enuls.js'
export { eon } from './definitions/eon.js'
export { eos } from './definitions/eos.js'
Expand Down

0 comments on commit 42ea113

Please sign in to comment.