Skip to content

Commit 9ae2d59

Browse files
authored
feat: add Lens Testnet chain (#3250)
* Add Lens Mainnet and Testnet chains * add changeset * Drop the mainnet. Just Lens, It's cleaner * Remove Lens mainnet until rpc has been provided
1 parent 3fb5ec9 commit 9ae2d59

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

.changeset/silly-dogs-sit.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 Lens Testnet chains
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const lensTestnet = /*#__PURE__*/ defineChain({
4+
id: 37_111,
5+
name: 'Lens Testnet',
6+
nativeCurrency: { name: 'GRASS', symbol: 'GRASS', decimals: 18 },
7+
rpcUrls: {
8+
default: {
9+
http: ['https://rpc.testnet.lens.dev'],
10+
webSocket: ['wss://rpc.testnet.lens.dev/ws'],
11+
},
12+
},
13+
blockExplorers: {
14+
default: {
15+
name: 'Lens Block Explorer',
16+
url: 'https://block-explorer.testnet.lens.dev',
17+
apiUrl: 'https://block-explorer-api.staging.lens.dev/api',
18+
},
19+
},
20+
testnet: true,
21+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ export { kromaSepolia } from './definitions/kromaSepolia.js'
246246
export { l3x } from './definitions/l3x.js'
247247
export { l3xTestnet } from './definitions/l3xTestnet.js'
248248
export { lavita } from './definitions/lavita.js'
249+
export { lensTestnet } from './definitions/lensTestnet.js'
249250
export { lightlinkPegasus } from './definitions/lightlinkPegasus.js'
250251
export { lightlinkPhoenix } from './definitions/lightlinkPhoenix.js'
251252
export { linea } from './definitions/linea.js'

0 commit comments

Comments
 (0)