Skip to content

Commit

Permalink
fix: Mode and Lisk chain definitions (#2817)
Browse files Browse the repository at this point in the history
* fix: mode and link chain definitions

* chore: run changeset
  • Loading branch information
0xArdy authored Oct 3, 2024
1 parent 0b4eb81 commit 7c3653b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hip-moons-grow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Fixed Mode and Lisk chain definitions
19 changes: 19 additions & 0 deletions src/chains/definitions/lisk.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { chainConfig } from '../../op-stack/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 1 // mainnet

export const lisk = /*#__PURE__*/ defineChain({
...chainConfig,
id: 1135,
Expand All @@ -24,8 +26,25 @@ export const lisk = /*#__PURE__*/ defineChain({
},
},
contracts: {
...chainConfig.contracts,
multicall3: {
address: '0xA9d71E1dd7ca26F26e656E66d6AA81ed7f745bf0',
},
l2OutputOracle: {
[sourceId]: {
address: '0x113cB99283AF242Da0A0C54347667edF531Aa7d6',
},
},
portal: {
[sourceId]: {
address: '0x26dB93F8b8b4f7016240af62F7730979d353f9A7',
},
},
l1StandardBridge: {
[sourceId]: {
address: '0x2658723Bf70c7667De6B25F99fcce13A16D25d08',
},
},
},
sourceId,
})
3 changes: 3 additions & 0 deletions src/chains/definitions/mode.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { chainConfig } from '../../op-stack/chainConfig.js'
import { defineChain } from '../../utils/chain/defineChain.js'

const sourceId = 1 // mainnet

export const mode = /*#__PURE__*/ defineChain({
...chainConfig,
id: 34443,
name: 'Mode Mainnet',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
Expand All @@ -18,6 +20,7 @@ export const mode = /*#__PURE__*/ defineChain({
},
},
contracts: {
...chainConfig.contracts,
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 2465882,
Expand Down

0 comments on commit 7c3653b

Please sign in to comment.