Skip to content

Commit

Permalink
feat: add shibarium testnet, multicall3 contract to dogechain, fix do…
Browse files Browse the repository at this point in the history
…gechain nativeCurrency name and symbol (#2451)

* fix: wrong native currency and symbol dogechain

fixed incorrect native currency and symbol on Dogechain network

* feat: add multicall3 contract to dogechain

* feat: add shibarium testnet chain definition

* feat: add shibarium testnet chain definition

* Update shibariumTestnet.ts

* Update shibariumTestnet.ts

* Create light-donuts-flash.md

---------

Co-authored-by: jxom <j@wevm.dev>
  • Loading branch information
ChewySwap and jxom authored Jun 29, 2024
1 parent 0f087ba commit 40f9a0f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/light-donuts-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"viem": patch
---

Added Dogechain multicall address.
Added Puppynet Shibarium chain.
10 changes: 8 additions & 2 deletions src/chains/definitions/dogechain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export const dogechain = /*#__PURE__*/ defineChain({
name: 'Dogechain',
nativeCurrency: {
decimals: 18,
name: 'Dogechain',
symbol: 'DC',
name: 'Wrapped Dogecoin',
symbol: 'WDOGE',
},
rpcUrls: {
default: { http: ['https://rpc.dogechain.dog'] },
Expand All @@ -18,4 +18,10 @@ export const dogechain = /*#__PURE__*/ defineChain({
apiUrl: 'https://explorer.dogechain.dog/api',
},
},
contracts: {
multicall3: {
address: '0x68a8609a60a008EFA633dfdec592c03B030cC508',
blockCreated: 25384031,
},
},
})
28 changes: 28 additions & 0 deletions src/chains/definitions/shibariumTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const bscTestnet = /*#__PURE__*/ defineChain({
id: 157,
name: 'Puppynet Shibarium',
nativeCurrency: {
decimals: 18,
name: 'Bone',
symbol: 'BONE',
},
rpcUrls: {
default: { http: ['https://puppynet.shibrpc.com'] },
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://puppyscan.shib.io',
apiUrl: 'https://puppyscan.shib.io/api',
},
},
contracts: {
multicall3: {
address: '0xA4029b74FBA366c926eDFA7Dd10B21C621170a4c',
blockCreated: 3035769,
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ export { songbirdTestnet } from './definitions/songbirdTestnet.js'
export { spicy } from './definitions/spicy.js'
export { shardeumSphinx } from './definitions/shardeumSphinx.js'
export { shibarium } from './definitions/shibarium.js'
export { shibariumTestnet } from './definitions/shibariumTestnet.js'

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (bun)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (node-18)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (node-20)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (node-latest)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Test Environments (tsc)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Build

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.0.4)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.1.6)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.2.2)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.3.3)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.

Check failure on line 254 in src/chains/index.ts

View workflow job for this annotation

GitHub Actions / Verify / Types (5.4.5)

Module '"./definitions/shibariumTestnet.js"' has no exported member 'shibariumTestnet'.
export { stratis } from './definitions/stratis.js'
export { syscoin } from './definitions/syscoin.js'
export { syscoinTestnet } from './definitions/syscoinTestnet.js'
Expand Down

0 comments on commit 40f9a0f

Please sign in to comment.