Skip to content

Commit

Permalink
feat: add sonic testnet
Browse files Browse the repository at this point in the history
Co-Authored-By: Mejuck <neroke@outlook.com>
  • Loading branch information
jxom and Mejuck committed Nov 26, 2024
1 parent 875de75 commit 2498543
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-clocks-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const sonicTestnet = /*#__PURE__*/ defineChain({
id: 64_165,
name: 'Sonic Testnet',
nativeCurrency: {
decimals: 18,
name: 'Sonic',
symbol: 'S',
},
rpcUrls: {
default: { http: ['https://rpc.testnet.soniclabs.com'] },
},
blockExplorers: {
default: {
name: 'Sonic Testnet Explorer',
url: 'https://testnet.soniclabs.com/',
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ export { evmosTestnet } from './definitions/evmosTestnet.js'
export { excelonMainnet } from './definitions/excelonMainnet.js'
export { expanse } from './definitions/expanse.js'
export { fantom } from './definitions/fantom.js'
/** @deprecated Use `sonicTestnet` instead. */
export { fantomSonicTestnet } from './definitions/fantomSonicTestnet.js'
export { fantomTestnet } from './definitions/fantomTestnet.js'
export { fibo } from './definitions/fibo.js'
Expand Down

0 comments on commit 2498543

Please sign in to comment.