From 1201ad5185a18bb24503a7049ea0b1b6273cbd59 Mon Sep 17 00:00:00 2001 From: gzeon Date: Thu, 28 Mar 2024 12:20:48 +0000 Subject: [PATCH] 2b89ccf6 --- test/signatures/ChallengeManager | 0 test/signatures/EdgeChallengeManager | 33 ++++++++++++++++++++++++++++ test/signatures/test-sigs.bash | 2 +- test/storage/ChallengeManager | 0 test/storage/EdgeChallengeManager | 15 +++++++++++++ test/storage/test.bash | 2 +- 6 files changed, 50 insertions(+), 2 deletions(-) delete mode 100644 test/signatures/ChallengeManager create mode 100644 test/signatures/EdgeChallengeManager delete mode 100644 test/storage/ChallengeManager create mode 100644 test/storage/EdgeChallengeManager diff --git a/test/signatures/ChallengeManager b/test/signatures/ChallengeManager deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/signatures/EdgeChallengeManager b/test/signatures/EdgeChallengeManager new file mode 100644 index 000000000..d0378e90b --- /dev/null +++ b/test/signatures/EdgeChallengeManager @@ -0,0 +1,33 @@ +{ + "LAYERZERO_BIGSTEPEDGE_HEIGHT()": "416e6657", + "LAYERZERO_BLOCKEDGE_HEIGHT()": "1dce5166", + "LAYERZERO_SMALLSTEPEDGE_HEIGHT()": "f8ee77d6", + "NUM_BIGSTEP_LEVEL()": "5d9e2444", + "assertionChain()": "48dd2924", + "bisectEdge(bytes32,bytes32,bytes)": "c8bc4e43", + "calculateEdgeId(uint8,bytes32,uint256,bytes32,uint256,bytes32)": "004d8efe", + "calculateMutualId(uint8,bytes32,uint256,bytes32,uint256)": "c32d8c63", + "challengePeriodBlocks()": "46c2781a", + "confirmEdgeByOneStepProof(bytes32,(bytes32,bytes),(bytes32,uint256,address,uint64,uint64),bytes32[],bytes32[])": "8c1b3a40", + "confirmEdgeByTime(bytes32,(((bytes32[2],uint64[2]),uint8,bytes32),bytes32,bytes32))": "b2a1408e", + "confirmedRival(bytes32)": "e5b123da", + "createLayerZeroEdge((uint8,bytes32,uint256,bytes32,bytes,bytes))": "05fae141", + "edgeExists(bytes32)": "750e0c0f", + "edgeLength(bytes32)": "eae0328b", + "excessStakeReceiver()": "e94e051e", + "firstRival(bytes32)": "bce6f54f", + "getEdge(bytes32)": "fda2892e", + "getLayerZeroEndHeight(uint8)": "42e1aaa8", + "getPrevAssertionHash(bytes32)": "5a48e0f4", + "hasLengthOneRival(bytes32)": "54b64151", + "hasRival(bytes32)": "908517e9", + "initialize(address,uint64,address,uint256,uint256,uint256,address,address,uint8,uint256[])": "1a72d54c", + "multiUpdateTimeCacheByChildren(bytes32[])": "eb82415c", + "oneStepProofEntry()": "48923bc5", + "refundStake(bytes32)": "748926f3", + "stakeAmounts(uint256)": "1c1b4f3a", + "stakeToken()": "51ed6a30", + "timeUnrivaled(bytes32)": "3e35f5e8", + "updateTimerCacheByChildren(bytes32)": "1e5a3553", + "updateTimerCacheByClaim(bytes32,bytes32)": "4056b2ce" +} diff --git a/test/signatures/test-sigs.bash b/test/signatures/test-sigs.bash index 4ff16cc3b..5933708da 100755 --- a/test/signatures/test-sigs.bash +++ b/test/signatures/test-sigs.bash @@ -1,6 +1,6 @@ #!/bin/bash output_dir="./test/signatures" -for CONTRACTNAME in Bridge Inbox Outbox RollupCore RollupUserLogic RollupAdminLogic SequencerInbox ChallengeManager ERC20Bridge ERC20Inbox ERC20Outbox BridgeCreator DeployHelper RollupCreator +for CONTRACTNAME in Bridge Inbox Outbox RollupCore RollupUserLogic RollupAdminLogic SequencerInbox EdgeChallengeManager ERC20Bridge ERC20Inbox ERC20Outbox BridgeCreator DeployHelper RollupCreator do echo "Checking for signature changes in $CONTRACTNAME" [ -f "$output_dir/$CONTRACTNAME" ] && mv "$output_dir/$CONTRACTNAME" "$output_dir/$CONTRACTNAME-old" diff --git a/test/storage/ChallengeManager b/test/storage/ChallengeManager deleted file mode 100644 index e69de29bb..000000000 diff --git a/test/storage/EdgeChallengeManager b/test/storage/EdgeChallengeManager new file mode 100644 index 000000000..33f50221f --- /dev/null +++ b/test/storage/EdgeChallengeManager @@ -0,0 +1,15 @@ +| Name | Type | Slot | Offset | Bytes | Contract | +|--------------------------------|-----------------------------|------|--------|-------|---------------------------------------------------------------| +| _initialized | uint8 | 0 | 0 | 1 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| _initializing | bool | 0 | 1 | 1 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| store | struct EdgeStore | 1 | 0 | 96 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| excessStakeReceiver | address | 4 | 0 | 20 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| stakeToken | contract IERC20 | 5 | 0 | 20 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| stakeAmounts | uint256[] | 6 | 0 | 32 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| challengePeriodBlocks | uint64 | 7 | 0 | 8 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| assertionChain | contract IAssertionChain | 7 | 8 | 20 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| oneStepProofEntry | contract IOneStepProofEntry | 8 | 0 | 20 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| LAYERZERO_BLOCKEDGE_HEIGHT | uint256 | 9 | 0 | 32 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| LAYERZERO_BIGSTEPEDGE_HEIGHT | uint256 | 10 | 0 | 32 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| LAYERZERO_SMALLSTEPEDGE_HEIGHT | uint256 | 11 | 0 | 32 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | +| NUM_BIGSTEP_LEVEL | uint8 | 12 | 0 | 1 | src/challengeV2/EdgeChallengeManager.sol:EdgeChallengeManager | diff --git a/test/storage/test.bash b/test/storage/test.bash index 562deb0f2..7cca014b6 100755 --- a/test/storage/test.bash +++ b/test/storage/test.bash @@ -1,6 +1,6 @@ #!/bin/bash output_dir="./test/storage" -for CONTRACTNAME in Bridge Inbox Outbox RollupCore RollupUserLogic RollupAdminLogic SequencerInbox ChallengeManager ERC20Bridge ERC20Inbox ERC20Outbox +for CONTRACTNAME in Bridge Inbox Outbox RollupCore RollupUserLogic RollupAdminLogic SequencerInbox EdgeChallengeManager ERC20Bridge ERC20Inbox ERC20Outbox do echo "Checking storage change of $CONTRACTNAME" [ -f "$output_dir/$CONTRACTNAME" ] && mv "$output_dir/$CONTRACTNAME" "$output_dir/$CONTRACTNAME-old"