Skip to content

Commit

Permalink
feat: add sonic mainnet (#3107)
Browse files Browse the repository at this point in the history
Co-authored-by: Peng Ke <pk-850@users.noreply.github.com>
  • Loading branch information
pk-850 and pk-850 authored Dec 8, 2024
1 parent e7e6cc1 commit f8c002f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-guests-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const sonic = /*#__PURE__*/ defineChain({
id: 146,
name: 'Sonic',
nativeCurrency: {
decimals: 18,
name: 'Sonic',
symbol: 'S',
},
rpcUrls: {
default: { http: ['https://rpc.soniclabs.com'] },
},
blockExplorers: {
default: {
name: 'Sonic Explorer',
url: 'https://explorer.soniclabs.com',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@ export { sketchpad } from './definitions/sketchpad.js'
export { snax } from './definitions/snax.js'
export { snaxTestnet } from './definitions/snaxTestnet.js'
export { soneiumMinato } from './definitions/soneiumMinato.js'
export { sonic } from './definitions/sonic.js'
export { sonicTestnet } from './definitions/sonicTestnet.js'
export { songbird } from './definitions/songbird.js'
export { songbirdTestnet } from './definitions/songbirdTestnet.js'
Expand Down

0 comments on commit f8c002f

Please sign in to comment.