Skip to content

Commit

Permalink
feat: add sophon testnet (#2644)
Browse files Browse the repository at this point in the history
* config: add sophon testnet

* Update sophonTestnet.ts

* Create honest-zoos-look.md

---------

Co-authored-by: jxom <jakemoxey@gmail.com>
  • Loading branch information
RobbyUitbeijerse and jxom committed Aug 22, 2024
1 parent 50bde96 commit 2eb817a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-zoos-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const sophonTestnet = /*#__PURE__*/ defineChain({
id: 531_050_104,
name: 'Sophon Testnet',
nativeCurrency: {
decimals: 18,
name: 'Sophon',
symbol: 'ETH',
},
rpcUrls: {
default: {
http: ['https://rpc.testnet.sophon.xyz'],
webSocket: ['wss://rpc.testnet.sophon.xyz/ws'],
},
},
blockExplorers: {
default: {
name: 'Sophon Block Explorer',
url: 'https://explorer.testnet.sophon.xyz',
},
},
testnet: true,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ export { skaleTitanTestnet } from './definitions/skale/titanTestnet.js'
export { sketchpad } from './definitions/sketchpad.js'
export { songbird } from './definitions/songbird.js'
export { songbirdTestnet } from './definitions/songbirdTestnet.js'
export { sophonTestnet } from './definitions/sophonTestnet.js'
export { spicy } from './definitions/spicy.js'
export { shardeumSphinx } from './definitions/shardeumSphinx.js'
export { shibarium } from './definitions/shibarium.js'
Expand Down

0 comments on commit 2eb817a

Please sign in to comment.