Skip to content

Commit 18008bf

Browse files
committed
feat: Add Stable Testnet
Signed-off-by: Chawye Hsu <su+git@chawyehsu.com>
1 parent 00dd2e8 commit 18008bf

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

.changeset/dry-beers-love.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Add Stable Testnet
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const stableTestnet = /*#__PURE__*/ defineChain({
4+
id: 2201,
5+
name: 'Stable Testnet',
6+
nativeCurrency: {
7+
decimals: 18,
8+
name: 'USDT',
9+
symbol: 'USDT',
10+
},
11+
rpcUrls: {
12+
default: {
13+
http: ['https://stable-jsonrpc.testnet.chain0.dev'],
14+
},
15+
},
16+
blockExplorers: {
17+
default: {
18+
name: 'Blockscout Explorer',
19+
url: 'https://stable-explorer.testnet.chain0.dev',
20+
apiUrl: 'https://stable-explorer.testnet.chain0.dev/api/v2',
21+
},
22+
},
23+
testnet: true,
24+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ export { sophonTestnet } from './definitions/sophonTestnet.js'
552552
export { sova } from './definitions/sova.js'
553553
export { sovaSepolia } from './definitions/sovaSepolia.js'
554554
export { spicy } from './definitions/spicy.js'
555+
export { stableTestnet } from './definitions/stableTestnet.js'
555556
export {
556557
statusSepolia,
557558
statusSepolia as statusNetworkSepolia,

0 commit comments

Comments
 (0)