Skip to content

Commit 4172928

Browse files
authored
feat: add Abstract Testnet chain (#2576)
* added Abstract Testnet chain * Update abstractTestnet.ts
1 parent e68f188 commit 4172928

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.changeset/real-cherries-scream.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"viem": patch
3+
---
4+
5+
Added Abstract Testnet
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const abstractTestnet = /*#__PURE__*/ defineChain({
4+
id: 11_124,
5+
name: 'Abstract Testnet',
6+
nativeCurrency: {
7+
decimals: 18,
8+
name: 'ETH',
9+
symbol: 'ETH',
10+
},
11+
rpcUrls: {
12+
default: { http: ['https://api.testnet.abs.xyz'] },
13+
},
14+
blockExplorers: {
15+
default: {
16+
name: 'Abstract Block Explorer',
17+
url: 'https://explorer.testnet.abs.xyz',
18+
},
19+
},
20+
testnet: true,
21+
})

src/chains/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export type { Chain } from '../types/chain.js'
22

33
// biome-ignore lint/performance/noBarrelFile: entrypoint module
4+
export { abstractTestnet } from './definitions/abstractTestnet.js'
45
export { acala } from './definitions/acala.js'
56
export { ancient8 } from './definitions/ancient8.js'
67
export { ancient8Sepolia } from './definitions/ancient8Sepolia.js'

0 commit comments

Comments
 (0)