Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 33 additions & 33 deletions l1-contracts/gas_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,52 +4,52 @@
| 589795 | 2886 | | | | |
| Function Name | min | avg | median | max | # calls |
| L2_TOKEN_ADDRESS | 194 | 194 | 194 | 194 | 256 |
| UNDERLYING | 270 | 270 | 270 | 270 | 3075 |
| canonicalRollup | 1016 | 3620 | 5516 | 5516 | 5538 |
| UNDERLYING | 270 | 270 | 270 | 270 | 3031 |
| canonicalRollup | 1016 | 3632 | 5516 | 5516 | 5574 |
| depositToAztecPublic | 42812 | 127386 | 128025 | 128025 | 258 |
| distributeFees | 27333 | 56798 | 57006 | 57006 | 258 |
| initialize | 49029 | 49029 | 49029 | 49029 | 1566 |
| src/core/Rollup.sol:Rollup contract | | | | | |
|-------------------------------------|-----------------|---------|---------|----------|---------|
| Deployment Cost | Deployment Size | | | | |
| 7867837 | 37972 | | | | |
| 7965416 | 38750 | | | | |
| Function Name | min | avg | median | max | # calls |
| archive | 605 | 605 | 605 | 605 | 2475 |
| archive | 605 | 605 | 605 | 605 | 2474 |
| cheat__InitialiseValidatorSet | 752109 | 7052330 | 752133 | 13524799 | 519 |
| claimProverRewards | 31794 | 53315 | 34239 | 93914 | 3 |
| claimSequencerRewards | 57174 | 57174 | 57174 | 57174 | 1 |
| deposit | 169778 | 328470 | 342652 | 342652 | 256 |
| getAttesters | 1970 | 26343 | 26629 | 26629 | 259 |
| getBlock | 1230 | 1230 | 1230 | 1230 | 874 |
| getBlock | 1230 | 1230 | 1230 | 1230 | 910 |
| getCollectiveProverRewardsForEpoch | 636 | 1636 | 1636 | 2636 | 4 |
| getCurrentEpoch | 1017 | 1017 | 1017 | 1017 | 1032 |
| getCurrentEpochCommittee | 42004 | 42004 | 42004 | 42004 | 1 |
| getCurrentProposer | 44246 | 117399 | 52217 | 263958 | 795 |
| getCurrentProposer | 44246 | 117396 | 52217 | 263958 | 795 |
| getCurrentSlot | 823 | 1442 | 823 | 4823 | 142 |
| getEpochCommittee | 2010 | 14068 | 14218 | 14218 | 520 |
| getEpochDuration | 439 | 439 | 439 | 439 | 256 |
| getFeeAssetPerEth | 1423 | 1423 | 1423 | 1423 | 1 |
| getFeeAssetPerEth | 1440 | 1440 | 1440 | 1440 | 1 |
| getHasSubmitted | 942 | 1192 | 942 | 2942 | 8 |
| getInbox | 476 | 581 | 476 | 2476 | 4926 |
| getInfo | 1527 | 1527 | 1527 | 1527 | 16 |
| getManaBaseFeeAt | 7834 | 15768 | 16535 | 16545 | 2333 |
| getManaBaseFeeAt | 7834 | 15737 | 16504 | 16514 | 2333 |
| getOutbox | 496 | 873 | 496 | 2496 | 5434 |
| getPendingBlockNumber | 507 | 507 | 507 | 507 | 1546 |
| getProofSubmissionWindow | 404 | 404 | 404 | 404 | 4 |
| getProvenBlockNumber | 490 | 762 | 490 | 2490 | 7553 |
| getProvenBlockNumber | 490 | 762 | 490 | 2490 | 7551 |
| getProvingCostPerManaInEth | 429 | 429 | 429 | 429 | 1 |
| getProvingCostPerManaInFeeAsset | 4147 | 4147 | 4147 | 4147 | 1 |
| getProvingCostPerManaInFeeAsset | 4164 | 4164 | 4164 | 4164 | 1 |
| getSequencerRewards | 671 | 1071 | 671 | 2671 | 5 |
| getSlasher | 496 | 496 | 496 | 496 | 518 |
| getSlotDuration | 421 | 421 | 421 | 421 | 256 |
| getSpecificProverRewardsForEpoch | 822 | 2130 | 1634 | 3634 | 5 |
| getTargetCommitteeSize | 462 | 462 | 462 | 462 | 768 |
| getTimestampForSlot | 887 | 888 | 887 | 4887 | 2462 |
| propose | 129177 | 378015 | 379855 | 589127 | 2601 |
| propose | 129177 | 362294 | 363530 | 572838 | 2601 |
| prune | 25731 | 36205 | 37466 | 41951 | 6 |
| setProvingCostPerMana | 28691 | 28691 | 28691 | 28691 | 2 |
| setupEpoch | 208152 | 1372793 | 1400090 | 1400090 | 262 |
| submitEpochRootProof | 64866 | 426881 | 424689 | 456422 | 873 |
| submitEpochRootProof | 64866 | 421855 | 420725 | 448480 | 909 |
| src/core/messagebridge/Inbox.sol:Inbox contract | | | | | |
|-------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
Expand All @@ -64,10 +64,10 @@
| Deployment Cost | Deployment Size | | | | |
| 586673 | 2646 | | | | |
| Function Name | min | avg | median | max | # calls |
| consume | 28894 | 72075 | 73128 | 73400 | 4705 |
| getRootData | 940 | 1343 | 1149 | 3217 | 2733 |
| consume | 28894 | 72192 | 73138 | 73400 | 4546 |
| getRootData | 940 | 1343 | 1149 | 3217 | 2732 |
| hasMessageBeenConsumedAtBlockAndIndex | 591 | 2583 | 2591 | 2591 | 259 |
| insert | 22188 | 57527 | 68264 | 68264 | 1099 |
| insert | 22188 | 57508 | 68252 | 68264 | 1097 |
| src/core/staking/Slasher.sol:Slasher contract | | | | | |
|-----------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
Expand All @@ -85,7 +85,7 @@
| src/governance/CoinIssuer.sol:CoinIssuer contract | | | | | |
|---------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 326385 | 1465 | | | | |
| 326553 | 1465 | | | | |
| Function Name | min | avg | median | max | # calls |
| RATE | 239 | 239 | 239 | 239 | 768 |
| mint | 23901 | 43850 | 26637 | 81131 | 768 |
Expand All @@ -96,47 +96,47 @@
| Deployment Cost | Deployment Size | | | | |
| 2332350 | 10841 | | | | |
| Function Name | min | avg | median | max | # calls |
| deposit | 27965 | 171786 | 186596 | 188519 | 9729 |
| deposit | 27965 | 171787 | 186596 | 188519 | 9729 |
| dropProposal | 23739 | 40533 | 33600 | 63600 | 2307 |
| execute | 26209 | 71295 | 71327 | 161717 | 3076 |
| finaliseWithdraw | 23757 | 45165 | 48283 | 65383 | 6093 |
| finaliseWithdraw | 23757 | 45164 | 48283 | 65383 | 6033 |
| getConfiguration | 1913 | 12163 | 19913 | 19913 | 5396 |
| getProposal | 3523 | 8023 | 3523 | 31523 | 10590 |
| getProposalState | 469 | 11470 | 13558 | 21242 | 23311 |
| getWithdrawal | 1075 | 1075 | 1075 | 1075 | 10202 |
| getWithdrawal | 1075 | 1075 | 1075 | 1075 | 10124 |
| governanceProposer | 424 | 1418 | 424 | 2424 | 515 |
| initiateWithdraw | 30945 | 199307 | 211342 | 228958 | 7601 |
| initiateWithdraw | 30945 | 199150 | 211342 | 228958 | 7551 |
| powerAt | 1042 | 1412 | 1042 | 3029 | 4608 |
| proposalCount | 338 | 1714 | 2338 | 2338 | 1116 |
| propose | 23763 | 321925 | 320487 | 337587 | 606 |
| proposeWithLock | 26545 | 421001 | 422627 | 422627 | 257 |
| totalPowerAt | 612 | 1567 | 883 | 3568 | 6083 |
| updateConfiguration | 23457 | 32912 | 24180 | 48186 | 6145 |
| updateGovernanceProposer | 21693 | 27183 | 28016 | 28028 | 2048 |
| propose | 23763 | 321926 | 320487 | 337587 | 606 |
| proposeWithLock | 26545 | 421004 | 422627 | 422627 | 257 |
| totalPowerAt | 612 | 1567 | 883 | 3568 | 6087 |
| updateConfiguration | 23457 | 32910 | 24180 | 48186 | 6145 |
| updateGovernanceProposer | 21705 | 27186 | 28016 | 28028 | 2048 |
| vote | 30670 | 87818 | 94478 | 94500 | 12289 |
| withdrawalCount | 383 | 391 | 383 | 2383 | 2498 |
| withdrawalCount | 383 | 391 | 383 | 2383 | 2502 |
| src/governance/Registry.sol:Registry contract | | | | | |
|-----------------------------------------------|-----------------|--------|--------|--------|---------|
| Deployment Cost | Deployment Size | | | | |
| 500615 | 2063 | | | | |
| Function Name | min | avg | median | max | # calls |
| getCurrentSnapshot | 664 | 2664 | 2664 | 4664 | 514 |
| getGovernance | 341 | 2159 | 2341 | 2341 | 2829 |
| getRollup | 374 | 2358 | 2374 | 2374 | 873549 |
| getRollup | 374 | 2358 | 2374 | 2374 | 870225 |
| getSnapshot | 4740 | 4740 | 4740 | 4740 | 257 |
| getVersionFor | 743 | 3527 | 2927 | 4927 | 773 |
| isRollupRegistered | 657 | 3805 | 2812 | 4812 | 515 |
| numberOfVersions | 350 | 1685 | 2350 | 2350 | 770 |
| transferOwnership | 28592 | 28592 | 28592 | 28592 | 106 |
| upgrade | 23672 | 103310 | 106801 | 106801 | 6171 |
| upgrade | 23672 | 103284 | 106801 | 106801 | 6127 |
| src/governance/RewardDistributor.sol:RewardDistributor contract | | | | | |
|-----------------------------------------------------------------|-----------------|-------|--------|-------|---------|
| Deployment Cost | Deployment Size | | | | |
| 513664 | 2360 | | | | |
| Function Name | min | avg | median | max | # calls |
| BLOCK_REWARD | 238 | 238 | 238 | 238 | 378 |
| canonicalRollup | 1143 | 3143 | 3143 | 5643 | 868 |
| claim | 30122 | 45875 | 35665 | 64090 | 513 |
| BLOCK_REWARD | 238 | 238 | 238 | 238 | 377 |
| canonicalRollup | 1143 | 3143 | 3143 | 5643 | 904 |
| claim | 30122 | 45867 | 35665 | 64090 | 513 |
| owner | 2384 | 2384 | 2384 | 2384 | 257 |
| registry | 347 | 1347 | 1347 | 2347 | 2 |
| updateRegistry | 23757 | 23781 | 23757 | 30119 | 257 |
Expand All @@ -150,11 +150,11 @@
| N | 260 | 260 | 260 | 260 | 1949 |
| REGISTRY | 205 | 205 | 205 | 205 | 256 |
| computeRound | 435 | 435 | 435 | 435 | 266 |
| executeProposal | 29491 | 43507 | 37213 | 366485 | 2053 |
| executeProposal | 29491 | 43508 | 37213 | 366485 | 2053 |
| getExecutor | 3397 | 3397 | 3397 | 3397 | 256 |
| getInstance | 951 | 951 | 951 | 951 | 256 |
| rounds | 865 | 865 | 865 | 865 | 522 |
| vote | 29794 | 50139 | 50074 | 126085 | 859503 |
| vote | 29794 | 50139 | 50074 | 126085 | 856035 |
| yeaCount | 851 | 851 | 851 | 851 | 16 |
| src/periphery/Forwarder.sol:Forwarder contract | | | | | |
|------------------------------------------------|-----------------|-------|--------|--------|---------|
Expand Down
6 changes: 4 additions & 2 deletions l1-contracts/src/core/Rollup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ import {
EnumerableSet
} from "@aztec/core/interfaces/IStaking.sol";
import {IValidatorSelection} from "@aztec/core/interfaces/IValidatorSelection.sol";
import {FeeLib, FeeAssetValue, PriceLib} from "@aztec/core/libraries/rollup/FeeLib.sol";
import {
FeeLib, FeeHeaderLib, FeeAssetValue, PriceLib
} from "@aztec/core/libraries/rollup/FeeLib.sol";
import {HeaderLib} from "@aztec/core/libraries/rollup/HeaderLib.sol";
import {EpochProofLib} from "./libraries/rollup/EpochProofLib.sol";
import {ProposeLib, ValidateHeaderArgs} from "./libraries/rollup/ProposeLib.sol";
Expand Down Expand Up @@ -339,7 +341,7 @@ contract Rollup is IStaking, IValidatorSelection, IRollup, RollupCore {
override(IRollup)
returns (FeeHeader memory)
{
return FeeLib.getStorage().feeHeaders[_blockNumber];
return FeeHeaderLib.decompress(FeeLib.getStorage().feeHeaders[_blockNumber]);
}

function getBlobPublicInputsHash(uint256 _blockNumber)
Expand Down
Loading