From 694306909ee93813828c0125b60cdd37d47fbfd3 Mon Sep 17 00:00:00 2001 From: gzeon Date: Wed, 8 Jan 2025 16:25:11 +0800 Subject: [PATCH 1/3] chore: EdgeChallengeManager metadata --- scripts/printMetadataHashes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/printMetadataHashes.ts b/scripts/printMetadataHashes.ts index b1e1b876d..d05412279 100644 --- a/scripts/printMetadataHashes.ts +++ b/scripts/printMetadataHashes.ts @@ -23,7 +23,7 @@ async function main() { 'RollupProxy', 'RollupAdminLogic', 'RollupUserLogic', - 'ChallengeManager', + 'EdgeChallengeManager', ] // Print the current git tag From 1524061047fbf2a672f4633563b0b27f3d95e4e9 Mon Sep 17 00:00:00 2001 From: gzeon Date: Wed, 8 Jan 2025 16:51:03 +0800 Subject: [PATCH 2/3] chore: add rei meta --- scripts/printMetadataHashes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/printMetadataHashes.ts b/scripts/printMetadataHashes.ts index d05412279..07fcae425 100644 --- a/scripts/printMetadataHashes.ts +++ b/scripts/printMetadataHashes.ts @@ -16,10 +16,12 @@ async function main() { 'Outbox', 'SequencerInbox', 'Bridge', + 'RollupEventInbox', 'ERC20Inbox', 'ERC20Outbox', 'SequencerInbox', 'ERC20Bridge', + 'ERC20RollupEventInbox', 'RollupProxy', 'RollupAdminLogic', 'RollupUserLogic', From 329af9fc6010fc2b31e52dc15e9506630bc44bf4 Mon Sep 17 00:00:00 2001 From: Pepper Lebeck-Jobe Date: Thu, 6 Feb 2025 19:04:43 +0100 Subject: [PATCH 3/3] Add a BigMap contract for testing the storage trie (#295) Co-authored-by: gzeon --- src/mocks/BigMap.sol | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/mocks/BigMap.sol diff --git a/src/mocks/BigMap.sol b/src/mocks/BigMap.sol new file mode 100644 index 000000000..95eea1955 --- /dev/null +++ b/src/mocks/BigMap.sol @@ -0,0 +1,23 @@ +// Copyright 2025, Offchain Labs, Inc. +// For license information, see: +// https://github.com/OffchainLabs/nitro/blob/master/LICENSE.md +// SPDX-License-Identifier: BUSL-1.1 + +pragma solidity ^0.8.0; + +contract BigMap { + mapping(uint256 => uint256) public data; + uint256 size; + + function clearAndAddValues(uint256 clear, uint256 add) external { + uint256 i = size; + while (i < size + add) { + data[i] = 8675309; + i++; + } + size = i; + for (uint256 j = 0; j < clear; j++) { + data[j] = 0; + } + } +}