Skip to content

Commit

Permalink
feat: add L3X Protocol (#2281)
Browse files Browse the repository at this point in the history
* Add L3X Protocol

* Add changeset

* Remove contracts section
  • Loading branch information
michaelotis committed May 21, 2024
1 parent 65e34e9 commit f4b0f7a
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-candles-visit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Add L3X Protocol
21 changes: 21 additions & 0 deletions src/chains/definitions/l3x.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const l3x = /*#__PURE__*/ defineChain({
id: 12324,
name: 'L3X Protocol',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-mainnet.l3x.com'],
webSocket: ['wss://rpc-mainnet.l3x.com'],
},
},
blockExplorers: {
default: {
name: 'L3X Mainnet Explorer',
url: 'https://explorer.l3x.com',
apiUrl: 'https://explorer.l3x.com/api/v2',
},
},
testnet: false,
})
21 changes: 21 additions & 0 deletions src/chains/definitions/l3xTestnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const l3xTestnet = /*#__PURE__*/ defineChain({
id: 12325,
name: 'L3X Protocol Testnet',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc-testnet.l3x.com'],
webSocket: ['wss://rpc-testnet.l3x.com'],
},
},
blockExplorers: {
default: {
name: 'L3X Testnet Explorer',
url: 'https://explorer-testnet.l3x.com',
apiUrl: 'https://explorer-testnet.l3x.com/api/v2',
},
},
testnet: true,
})
2 changes: 2 additions & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ export { klaytn } from './definitions/klaytn.js'
export { klaytnBaobab } from './definitions/klaytnBaobab.js'
export { kroma } from './definitions/kroma.js'
export { kromaSepolia } from './definitions/kromaSepolia.js'
export { l3x } from './definitions/l3x.js'
export { l3xTestnet } from './definitions/l3xTestnet.js'
export { lightlinkPegasus } from './definitions/lightlinkPegasus.js'
export { lightlinkPhoenix } from './definitions/lightlinkPhoenix.js'
export { linea } from './definitions/linea.js'
Expand Down

0 comments on commit f4b0f7a

Please sign in to comment.