Skip to content

Commit

Permalink
feat: add Lisk Sepolia definition (#1872)
Browse files Browse the repository at this point in the history
* Add Lisk Sepolia definition

* Add contract info

* Add changeset
  • Loading branch information
Tschakki authored Feb 28, 2024
1 parent 88af955 commit 5986ba1
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/weak-pears-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Lisk Sepolia
47 changes: 47 additions & 0 deletions src/chains/definitions/liskSepolia.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
import { defineChain } from '../../utils/chain/defineChain.js'
import { chainConfig } from '../opStack/chainConfig.js'

const sourceId = 11_155_111 // sepolia

export const liskSepolia = /*#__PURE__*/ defineChain({
...chainConfig,
id: 4202,
network: 'lisk-sepolia',
name: 'Lisk Sepolia',
nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.sepolia-api.lisk.com'],
},
},
blockExplorers: {
default: {
name: 'Blockscout',
url: 'https://sepolia-blockscout.lisk.com',
apiUrl: 'https://sepolia-blockscout.lisk.com/api',
},
},
contracts: {
...chainConfig.contracts,
l2OutputOracle: {
[sourceId]: {
address: '0xA0E35F56C318DE1bD5D9ca6A94Fe7e37C5663348',
},
},
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
},
portal: {
[sourceId]: {
address: '0xe3d90F21490686Ec7eF37BE788E02dfC12787264',
},
},
l1StandardBridge: {
[sourceId]: {
address: '0x1Fb30e446eA791cd1f011675E5F3f5311b70faF5',
},
},
},
testnet: true,
sourceId,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export { lightlinkPegasus } from './definitions/lightlinkPegasus.js'
export { lightlinkPhoenix } from './definitions/lightlinkPhoenix.js'
export { linea } from './definitions/linea.js'
export { lineaTestnet } from './definitions/lineaTestnet.js'
export { liskSepolia } from './definitions/liskSepolia.js'
export { localhost } from './definitions/localhost.js'
export { lukso } from './definitions/lukso.js'
export { mainnet } from './definitions/mainnet.js'
Expand Down

0 comments on commit 5986ba1

Please sign in to comment.