Skip to content

Commit 7487580

Browse files
feat: add lens mainnet (#3553)
add lens
1 parent 6a1bce6 commit 7487580

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.changeset/great-jars-hammer.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+
Added Lens mainnet.

src/chains/definitions/lens.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { defineChain } from '../../utils/chain/defineChain.js'
2+
3+
export const lens = /*#__PURE__*/ defineChain({
4+
id: 232,
5+
name: 'Lens',
6+
nativeCurrency: { name: 'GHO', symbol: 'GHO', decimals: 18 },
7+
rpcUrls: {
8+
default: {
9+
http: ['https://rpc.lens.xyz'],
10+
},
11+
},
12+
blockExplorers: {
13+
default: {
14+
name: 'Lens Block Explorer',
15+
url: 'https://explorer.lens.xyz',
16+
apiUrl: 'https://explorer.lens.xyz/api',
17+
},
18+
},
19+
})

src/chains/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ export { kromaSepolia } from './definitions/kromaSepolia.js'
284284
export { l3x } from './definitions/l3x.js'
285285
export { l3xTestnet } from './definitions/l3xTestnet.js'
286286
export { lavita } from './definitions/lavita.js'
287+
export { lens } from './definitions/lens.js'
287288
export { lensTestnet } from './definitions/lensTestnet.js'
288289
export { lightlinkPegasus } from './definitions/lightlinkPegasus.js'
289290
export { lightlinkPhoenix } from './definitions/lightlinkPhoenix.js'

0 commit comments

Comments
 (0)