From 51b137d3498a5d6235938cb93dc06ed0131fd7be Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Tue, 7 May 2024 17:14:21 +0100 Subject: [PATCH] fix(common): extend OP contracts, add redstone ones (#2792) --- .changeset/plenty-peas-love.md | 5 +++++ packages/common/src/chains/garnet.ts | 1 + packages/common/src/chains/redstone.ts | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 .changeset/plenty-peas-love.md diff --git a/.changeset/plenty-peas-love.md b/.changeset/plenty-peas-love.md new file mode 100644 index 0000000000..27ca0eb4e6 --- /dev/null +++ b/.changeset/plenty-peas-love.md @@ -0,0 +1,5 @@ +--- +"@latticexyz/common": patch +--- + +Added OP predeploy contracts for Redstone and Garnet chain configs and added chain-specific contracts for Redstone chain config. diff --git a/packages/common/src/chains/garnet.ts b/packages/common/src/chains/garnet.ts index 6e6de8b439..ddc9487ec8 100644 --- a/packages/common/src/chains/garnet.ts +++ b/packages/common/src/chains/garnet.ts @@ -23,6 +23,7 @@ export const garnet = { }, }, contracts: { + ...chainConfig.contracts, multicall3: { address: "0xca11bde05977b3631167028862be2a173976ca11", }, diff --git a/packages/common/src/chains/redstone.ts b/packages/common/src/chains/redstone.ts index e9feb4ff6e..41853a842c 100644 --- a/packages/common/src/chains/redstone.ts +++ b/packages/common/src/chains/redstone.ts @@ -22,9 +22,28 @@ export const redstone = { }, }, contracts: { + ...chainConfig.contracts, multicall3: { address: "0xca11bde05977b3631167028862be2a173976ca11", }, + portal: { + [sourceId]: { + address: "0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae", + blockCreated: 19578329, + }, + }, + l2OutputOracle: { + [sourceId]: { + address: "0xa426A052f657AEEefc298b3B5c35a470e4739d69", + blockCreated: 19578337, + }, + }, + l1StandardBridge: { + [sourceId]: { + address: "0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69", + blockCreated: 19578331, + }, + }, }, iconUrls: ["https://redstone.xyz/chain-icons/redstone.png"], indexerUrl: "https://indexer.mud.redstonechain.com",