Skip to content

Commit

Permalink
feat: add diode prenet (#2972)
Browse files Browse the repository at this point in the history
  • Loading branch information
qi-0826 authored Nov 6, 2024
1 parent fd3547b commit a25864b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/two-onions-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const diode = /*#__PURE__*/ defineChain({
id: 15,
name: 'Diode Prenet',
nativeCurrency: {
decimals: 18,
name: 'DIODE',
symbol: 'DIODE',
},
rpcUrls: {
default: {
http: ['https://prenet.diode.io:8443'],
webSocket: ['wss://prenet.diode.io:8443/ws'],
},
},
blockExplorers: {
default: {
name: 'Diode Explorer',
url: 'https://diode.io/prenet',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export { defichainEvm } from './definitions/defichainEvm.js'
export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js'
export { degen } from './definitions/degen.js'
export { dfk } from './definitions/dfk.js'
export { diode } from './definitions/diode.js'
export { dodochainTestnet } from './definitions/dodochainTestnet.js'
export { dogechain } from './definitions/dogechain.js'
export { dosChain } from './definitions/dosChain.js'
Expand Down

0 comments on commit a25864b

Please sign in to comment.