-
Notifications
You must be signed in to change notification settings - Fork 598
feat(contracts): static + snapshotted validator set #13046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
7374db1
validator snapshots
Maddiaa0 e74a472
test: add cheating time
Maddiaa0 dfbddb2
checkpoint
Maddiaa0 0b4038a
chore: shift sampling
Maddiaa0 50d96e3
fix: other tests
Maddiaa0 642572d
clean
Maddiaa0 0829959
include tree
Maddiaa0 6f72dd2
chore: remove redundant test
Maddiaa0 30bbf83
clean
Maddiaa0 a9c4263
fix: post rebase
Maddiaa0 93c6939
chore: embed time cheater into staking cheater + prev linting rules
Maddiaa0 76b0454
include: benchmarks, it gets worse before it gets better
Maddiaa0 3c85b8f
chore: include setupepoch in view function
Maddiaa0 d166a5f
chore: more isolated tree testing
Maddiaa0 7243887
Merge branch 'master' into md/val-snapshot
Maddiaa0 ee20cc5
chore: remove old tests
Maddiaa0 633839c
feat: also snapshot size of set
Maddiaa0 bb0868a
chore: update other tests
Maddiaa0 b485608
fix: staking asset handler tests
Maddiaa0 dd2869d
fmt
Maddiaa0 80160f5
fix: bench test
Maddiaa0 90200fd
Merge branch 'master' into md/val-snapshot
Maddiaa0 91796ff
chore: update bench
Maddiaa0 5186c39
chore: add length and values at epoch test
Maddiaa0 999c6b7
chore: less optimizer runs
Maddiaa0 2b111ed
chore: remove bytecode hash
Maddiaa0 c912aa1
chore: remove unneeded setup epoch calls
Maddiaa0 1c9822d
chore: expect revert wrapper lib
Maddiaa0 52050cf
Merge branch 'master' into md/val-snapshot
Maddiaa0 4869a41
fix: merge update
Maddiaa0 c57c437
Merge branch 'master' into md/val-snapshot
Maddiaa0 8eb8e35
fix: migrate to checkpoint lib
Maddiaa0 8d774e7
exp: remove foundry changes
Maddiaa0 e2213d1
comments
Maddiaa0 d165b11
fmt
Maddiaa0 2141087
WARNING: NO ATTESTERS ON THE ORIGINAL COMMITTEE
Maddiaa0 42c147f
Merge branch 'master' into md/val-snapshot
Maddiaa0 9e7579c
fix: update slashing tesst
Maddiaa0 698e969
fix: slashing test take 2
Maddiaa0 4c5086c
chore: update
Maddiaa0 86b1bd3
fmt
Maddiaa0 5de3410
test: add tests for new guards
Maddiaa0 c082c86
chore: extra test case
Maddiaa0 0500342
chore: remove length query from future epoch
Maddiaa0 28cc590
chore: fuzz tests for add.t.sol
Maddiaa0 b51dcd5
fix: prop test suite
Maddiaa0 39de094
ordering
Maddiaa0 8fa9dc9
chore: use l1 tx utils
Maddiaa0 001c2b4
Merge branch 'master' into md/val-snapshot
Maddiaa0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,62 +1,34 @@ | ||
| | src/core/Rollup.sol:Rollup Contract | | | | | | | ||
| | src/core/Rollup.sol:Rollup contract | | | | | | | ||
| |-------------------------------------|-----------------|----------|----------|----------|---------| | ||
| | Deployment Cost | Deployment Size | | | | | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | 13939212 | 72687 | | | | | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | | | | | | | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | Function Name | Min | Avg | Median | Max | # Calls | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | cheat__InitialiseValidatorSet | 13825170 | 13825170 | 13825170 | 13825170 | 1 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getBlock | 2028 | 2028 | 2028 | 2028 | 12 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getBurnAddress | 543 | 543 | 543 | 543 | 1 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getCurrentEpoch | 1662 | 1662 | 1662 | 1662 | 397 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getCurrentProposer | 142276 | 147339 | 142555 | 304940 | 200 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getCurrentSlot | 1308 | 1318 | 1308 | 5308 | 397 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getEpochCommittee | 147323 | 152191 | 147335 | 309356 | 100 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getEpochForBlock | 1776 | 1776 | 1776 | 1776 | 196 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getFeeAssetPortal | 881 | 881 | 881 | 881 | 1 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getFeeHeader | 2890 | 2890 | 2890 | 2890 | 95 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getManaBaseFeeAt | 33313 | 53419 | 54478 | 55593 | 195 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getPendingBlockNumber | 666 | 670 | 666 | 2666 | 401 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getProvenBlockNumber | 644 | 644 | 644 | 644 | 3 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getTimestampForSlot | 1599 | 1599 | 1599 | 1599 | 195 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | getVersion | 648 | 668 | 648 | 2648 | 100 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | setProvingCostPerMana | 26257 | 26284 | 26257 | 29057 | 101 | | ||
| |-------------------------------------+-----------------+----------+----------+----------+---------| | ||
| | submitEpochRootProof | 1189968 | 1200782 | 1189992 | 1222388 | 3 | | ||
| | src/core/messagebridge/Inbox.sol:Inbox Contract | | | | | | | ||
| | 8905012 | 44009 | | | | | | ||
| | Function Name | min | avg | median | max | # calls | | ||
| | cheat__InitialiseValidatorSet | 14773538 | 14773538 | 14773538 | 14773538 | 1 | | ||
| | getBlock | 1252 | 1252 | 1252 | 1252 | 12 | | ||
| | getBurnAddress | 280 | 280 | 280 | 280 | 1 | | ||
| | getCurrentEpoch | 870 | 870 | 870 | 870 | 490 | | ||
| | getCurrentProposer | 137000 | 164906 | 137000 | 1532365 | 200 | | ||
| | getCurrentSlot | 625 | 629 | 625 | 2625 | 490 | | ||
| | getEpochCommittee | 138682 | 138682 | 138682 | 138682 | 100 | | ||
| | getEpochForBlock | 1087 | 1087 | 1087 | 1087 | 196 | | ||
| | getFeeAssetPortal | 541 | 541 | 541 | 541 | 1 | | ||
| | getFeeHeader | 1479 | 1479 | 1479 | 1479 | 95 | | ||
| | getManaBaseFeeAt | 15466 | 20025 | 20350 | 24662 | 195 | | ||
| | getPendingBlockNumber | 398 | 402 | 398 | 2398 | 494 | | ||
| | getProvenBlockNumber | 512 | 512 | 512 | 512 | 3 | | ||
| | getTimestampForSlot | 824 | 824 | 824 | 824 | 195 | | ||
| | getVersion | 404 | 424 | 404 | 2404 | 100 | | ||
| | setProvingCostPerMana | 25937 | 25964 | 25937 | 28737 | 101 | | ||
| | submitEpochRootProof | 783299 | 796011 | 783311 | 821423 | 3 | | ||
| | src/core/messagebridge/Inbox.sol:Inbox contract | | | | | | | ||
| |-------------------------------------------------|-----------------|-----|--------|-----|---------| | ||
| | Deployment Cost | Deployment Size | | | | | | ||
| |-------------------------------------------------+-----------------+-----+--------+-----+---------| | ||
| | 0 | 12636 | | | | | | ||
| |-------------------------------------------------+-----------------+-----+--------+-----+---------| | ||
| | | | | | | | | ||
| |-------------------------------------------------+-----------------+-----+--------+-----+---------| | ||
| | Function Name | Min | Avg | Median | Max | # Calls | | ||
| |-------------------------------------------------+-----------------+-----+--------+-----+---------| | ||
| | getFeeAssetPortal | 402 | 402 | 402 | 402 | 1 | | ||
| | src/periphery/Forwarder.sol:Forwarder Contract | | | | | | | ||
| | Deployment Cost | Deployment Size | | | | | | ||
| |------------------------------------------------+-----------------+--------+--------+---------+---------| | ||
| | 583246 | 2909 | | | | | | ||
| |------------------------------------------------+-----------------+--------+--------+---------+---------| | ||
| | | | | | | | | ||
| |------------------------------------------------+-----------------+--------+--------+---------+---------| | ||
| | Function Name | Min | Avg | Median | Max | # Calls | | ||
| |------------------------------------------------+-----------------+--------+--------+---------+---------| | ||
| | forward | 758446 | 831897 | 792800 | 2103821 | 100 | | ||
| | 0 | 0 | | | | | | ||
| | Function Name | min | avg | median | max | # calls | | ||
| | getFeeAssetPortal | 234 | 234 | 234 | 234 | 1 | | ||
| | src/periphery/Forwarder.sol:Forwarder contract | | | | | | | ||
| |------------------------------------------------|-----------------|--------|--------|--------|---------| | ||
| | Deployment Cost | Deployment Size | | | | | | ||
| | 358690 | 1553 | | | | | | ||
| | Function Name | min | avg | median | max | # calls | | ||
| | forward | 624506 | 630841 | 629469 | 640840 | 100 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.