Skip to content

Commit

Permalink
Add DOSChain and DOSChain Testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
dienho12 committed Oct 11, 2024
1 parent c777dbe commit a5dcbde
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/thirty-carrots-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added DOSChain and DOSChain Testnet chain.
13 changes: 10 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

export const dosChain = /*#__PURE__*/ defineChain({
id: 7979,
name: 'DOS Chain',
nativeCurrency: {
decimals: 18,
name: 'DOS Chain',
symbol: 'DOS',
},
rpcUrls: {
default: { http: ['https://main.doschain.com'] },
},
blockExplorers: {
default: {
name: 'DOS Chain Explorer',
url: 'https://doscan.io',
apiUrl: 'https://api.doscan.io',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 161908,
},
},
})
28 changes: 28 additions & 0 deletions src/chains/definitions/dosChainTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const dosChainTestnet = /*#__PURE__*/ defineChain({
id: 3939,
name: 'DOS Chain Testnet',
nativeCurrency: {
decimals: 18,
name: 'DOS Chain Testnet',
symbol: 'DOS',
},
rpcUrls: {
default: { http: ['https://test.doschain.com'] },
},
blockExplorers: {
default: {
name: 'DOS Chain Testnet Explorer',
url: 'https://test.doscan.io',
apiUrl: 'https://api-test.doscan.io',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 69623,
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ export { zoraSepolia } from './definitions/zoraSepolia.js'
export { zoraTestnet } from './definitions/zoraTestnet.js'
export { zircuit } from './definitions/zircuit.js'
export { zircuitTestnet } from './definitions/zircuitTestnet.js'
export { dosChain } from './definitions/dosChain.js'
export { dosChainTestnet } from './definitions/dosChainTestnet.js'

//////////////////////////////////////////////////////////////////////////////////////
// Required type exports to prevent TypeScript error "TS2742".
Expand Down

0 comments on commit a5dcbde

Please sign in to comment.