Skip to content

Commit

Permalink
2b89ccf6
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Mar 28, 2024
1 parent 299d38f commit 1201ad5
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
Empty file removed test/signatures/ChallengeManager
Empty file.
33 changes: 33 additions & 0 deletions test/signatures/EdgeChallengeManager
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion test/signatures/test-sigs.bash
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Empty file removed test/storage/ChallengeManager
Empty file.
15 changes: 15 additions & 0 deletions test/storage/EdgeChallengeManager
Original file line number Diff line number Diff line change
@@ -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 |
2 changes: 1 addition & 1 deletion test/storage/test.bash
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 1201ad5

Please sign in to comment.