@aztec-foundation/l1-artifacts 6.0.0-rc.6 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/dest/HonkVerifierBytecode.d.ts +1 -1
  2. package/dest/HonkVerifierBytecode.js +1 -1
  3. package/l1-contracts/cache/solidity-files-cache.json +1 -1
  4. package/l1-contracts/foundry.toml +1 -0
  5. package/l1-contracts/generated/HonkVerifier.sol +45 -45
  6. package/l1-contracts/out/AddressSnapshotLib.sol/AddressSnapshotLib.json +1 -1
  7. package/l1-contracts/out/AttestationLib.sol/AttestationLib.json +1 -1
  8. package/l1-contracts/out/AttesterExitExtLib.sol/AttesterExitExtLib.json +1 -1
  9. package/l1-contracts/out/BN254Lib.sol/BN254Lib.json +1 -1
  10. package/l1-contracts/out/Ballot.sol/BallotLib.json +1 -1
  11. package/l1-contracts/out/BlobLib.sol/BlobLib.json +1 -1
  12. package/l1-contracts/out/Bn254LibWrapper.sol/Bn254LibWrapper.json +1 -1
  13. package/l1-contracts/out/CheckpointLog.sol/CompressedTempCheckpointLogLib.json +1 -1
  14. package/l1-contracts/out/CheckpointedUintLib.sol/CheckpointedUintLib.json +1 -1
  15. package/l1-contracts/out/CoinIssuer.sol/CoinIssuer.json +1 -1
  16. package/l1-contracts/out/CompressedTimeMath.sol/CompressedTimeMath.json +1 -1
  17. package/l1-contracts/out/Configuration.sol/CompressedConfigurationLib.json +1 -1
  18. package/l1-contracts/out/ConfigurationLib.sol/ConfigurationLib.json +1 -1
  19. package/l1-contracts/out/ConstantsGen.sol/Constants.json +1 -1
  20. package/l1-contracts/out/CoordinationSignatureLib.sol/CoordinationSignatureLib.json +1 -1
  21. package/l1-contracts/out/DataStructures.sol/DataStructures.json +1 -1
  22. package/l1-contracts/out/DateGatedRelayer.sol/DateGatedRelayer.json +1 -1
  23. package/l1-contracts/out/DeployAztecL1Contracts.s.sol/DeployAztecL1Contracts.json +1 -1
  24. package/l1-contracts/out/DeployRollupForUpgrade.s.sol/DeployRollupForUpgrade.json +1 -1
  25. package/l1-contracts/out/DeployRollupForUpgradeV6.s.sol/DeployRollupForUpgradeV6.json +1 -0
  26. package/l1-contracts/out/DeployRollupLib.sol/DeployRollupLib.json +1 -1
  27. package/l1-contracts/out/DeploymentConfiguration.sol/DeploymentConfiguration.json +1 -1
  28. package/l1-contracts/out/DeploymentConfiguration.sol/IDeploymentConfiguration.json +1 -1
  29. package/l1-contracts/out/DepositDelegationLib.sol/DepositDelegationLib.json +1 -1
  30. package/l1-contracts/out/EmpireBase.sol/EmpireBase.json +1 -1
  31. package/l1-contracts/out/EpochProofExtLib.sol/EpochProofExtLib.json +1 -1
  32. package/l1-contracts/out/EpochProofLib.sol/EpochProofLib.json +1 -1
  33. package/l1-contracts/out/Errors.sol/Errors.json +1 -1
  34. package/l1-contracts/out/EscapeHatch.sol/EscapeHatch.json +1 -1
  35. package/l1-contracts/out/FeeAssetHandler.sol/FeeAssetHandler.json +1 -1
  36. package/l1-contracts/out/FeeAssetHandler.sol/IFeeAssetHandler.json +1 -1
  37. package/l1-contracts/out/FeeConfig.sol/FeeConfigLib.json +1 -1
  38. package/l1-contracts/out/FeeConfig.sol/PriceLib.json +1 -1
  39. package/l1-contracts/out/FeeJuicePortal.sol/FeeJuicePortal.json +1 -1
  40. package/l1-contracts/out/FeeLib.sol/FeeLib.json +1 -1
  41. package/l1-contracts/out/FeeStructs.sol/FeeHeaderLib.json +1 -1
  42. package/l1-contracts/out/FeeStructs.sol/FeeStructsLib.json +1 -1
  43. package/l1-contracts/out/FieldLib.sol/FieldLib.json +1 -1
  44. package/l1-contracts/out/FlushEntryQueue.s.sol/FlushEntryQueue.json +1 -1
  45. package/l1-contracts/out/FlushRewarder.sol/FlushRewarder.json +1 -1
  46. package/l1-contracts/out/GSE.sol/GSE.json +1 -1
  47. package/l1-contracts/out/GSE.sol/GSECore.json +1 -1
  48. package/l1-contracts/out/GSE.sol/IGSE.json +1 -1
  49. package/l1-contracts/out/GSE.sol/IGSECore.json +1 -1
  50. package/l1-contracts/out/GSEPayload.sol/GSEPayload.json +1 -1
  51. package/l1-contracts/out/Governance.sol/Governance.json +1 -1
  52. package/l1-contracts/out/GovernanceProposer.sol/GovernanceProposer.json +1 -1
  53. package/l1-contracts/out/Hash.sol/Hash.json +1 -1
  54. package/l1-contracts/out/HonkVerifier.sol/HonkVerifier.json +1 -1
  55. package/l1-contracts/out/HonkVerifier.sol/IVerifier.json +1 -1
  56. package/l1-contracts/out/IBn254LibWrapper.sol/IBn254LibWrapper.json +1 -1
  57. package/l1-contracts/out/ICoinIssuer.sol/ICoinIssuer.json +1 -1
  58. package/l1-contracts/out/IDateGatedRelayer.sol/IDateGatedRelayer.json +1 -1
  59. package/l1-contracts/out/IEmpire.sol/IEmperor.json +1 -1
  60. package/l1-contracts/out/IEmpire.sol/IEmpire.json +1 -1
  61. package/l1-contracts/out/IEscapeHatch.sol/IEscapeHatch.json +1 -1
  62. package/l1-contracts/out/IEscapeHatch.sol/IEscapeHatchCore.json +1 -1
  63. package/l1-contracts/out/IFeeJuicePortal.sol/IFeeJuicePortal.json +1 -1
  64. package/l1-contracts/out/IFlushRewarder.sol/IFlushRewarder.json +1 -1
  65. package/l1-contracts/out/IGovernance.sol/IGovernance.json +1 -1
  66. package/l1-contracts/out/IGovernanceProposer.sol/IGovernanceProposer.json +1 -1
  67. package/l1-contracts/out/IInbox.sol/IInbox.json +1 -1
  68. package/l1-contracts/out/IInstance.sol/IInstance.json +1 -1
  69. package/l1-contracts/out/IMintableERC20.sol/IMintableERC20.json +1 -1
  70. package/l1-contracts/out/IOutbox.sol/IOutbox.json +1 -1
  71. package/l1-contracts/out/IPayload.sol/IPayload.json +1 -1
  72. package/l1-contracts/out/IProposerPayload.sol/IProposerPayload.json +1 -1
  73. package/l1-contracts/out/IRegistry.sol/IHaveVersion.json +1 -1
  74. package/l1-contracts/out/IRegistry.sol/IRegistry.json +1 -1
  75. package/l1-contracts/out/IRewardDistributor.sol/IRewardDistributor.json +1 -1
  76. package/l1-contracts/out/IRollup.sol/IRollup.json +1 -1
  77. package/l1-contracts/out/IRollup.sol/IRollupCore.json +1 -1
  78. package/l1-contracts/out/IRootRegistry.sol/IRootRegistry.json +1 -1
  79. package/l1-contracts/out/ISequencerRewardCalculator.sol/ISequencerRewardCalculator.json +1 -1
  80. package/l1-contracts/out/ISlasher.sol/ISlasher.json +1 -1
  81. package/l1-contracts/out/IStaking.sol/IStaking.json +1 -1
  82. package/l1-contracts/out/IStaking.sol/IStakingCore.json +1 -1
  83. package/l1-contracts/out/IValidatorSelection.sol/IValidatorSelection.json +1 -1
  84. package/l1-contracts/out/IValidatorSelection.sol/IValidatorSelectionCore.json +1 -1
  85. package/l1-contracts/out/IVerifier.sol/IVerifier.json +1 -1
  86. package/l1-contracts/out/Inbox.sol/Inbox.json +1 -1
  87. package/l1-contracts/out/InputsExtractor.sol/InputsExtractor.json +1 -1
  88. package/l1-contracts/out/InvalidateLib.sol/InvalidateLib.json +1 -1
  89. package/l1-contracts/out/MerkleLib.sol/MerkleLib.json +1 -1
  90. package/l1-contracts/out/MockERC20.sol/MockERC20.json +1 -1
  91. package/l1-contracts/out/MockERC721.sol/MockERC721.json +1 -1
  92. package/l1-contracts/out/MockFeeJuicePortal.sol/MockFeeJuicePortal.json +1 -1
  93. package/l1-contracts/out/MockVerifier.sol/MockVerifier.json +1 -1
  94. package/l1-contracts/out/MockZKPassportVerifier.sol/IZKPassportVerifier.json +1 -1
  95. package/l1-contracts/out/MockZKPassportVerifier.sol/MockZKPassportVerifier.json +1 -1
  96. package/l1-contracts/out/MultiAdder.sol/IMultiAdder.json +1 -1
  97. package/l1-contracts/out/MultiAdder.sol/MultiAdder.json +1 -1
  98. package/l1-contracts/out/Outbox.sol/Outbox.json +1 -1
  99. package/l1-contracts/out/OuterCount8.sol/HonkVerifier.json +1 -1
  100. package/l1-contracts/out/Proposal.sol/CompressedProposalLib.json +1 -1
  101. package/l1-contracts/out/ProposalLib.sol/ProposalLib.json +1 -1
  102. package/l1-contracts/out/ProposeLib.sol/ProposeLib.json +1 -1
  103. package/l1-contracts/out/ProposedHeaderLib.sol/ProposedHeaderLib.json +1 -1
  104. package/l1-contracts/out/RegisterNewRollupVersionPayload.sol/RegisterNewRollupVersionPayload.json +1 -1
  105. package/l1-contracts/out/Registry.sol/Registry.json +1 -1
  106. package/l1-contracts/out/RewardBooster.sol/IBooster.json +1 -1
  107. package/l1-contracts/out/RewardBooster.sol/IBoosterCore.json +1 -1
  108. package/l1-contracts/out/RewardBooster.sol/RewardBooster.json +1 -1
  109. package/l1-contracts/out/RewardDistributor.sol/RewardDistributor.json +1 -1
  110. package/l1-contracts/out/RewardExtLib.sol/RewardExtLib.json +1 -1
  111. package/l1-contracts/out/RewardLib.sol/BpsLib.json +1 -1
  112. package/l1-contracts/out/RewardLib.sol/RewardLib.json +1 -1
  113. package/l1-contracts/out/Rollup.sol/Rollup.json +1 -1
  114. package/l1-contracts/out/RollupConfiguration.sol/IRollupConfiguration.json +1 -1
  115. package/l1-contracts/out/RollupConfiguration.sol/RollupConfiguration.json +1 -1
  116. package/l1-contracts/out/RollupCore.sol/RollupCore.json +1 -1
  117. package/l1-contracts/out/RollupOperationsExtLib.sol/RollupOperationsExtLib.json +1 -1
  118. package/l1-contracts/out/STFLib.sol/STFLib.json +1 -1
  119. package/l1-contracts/out/SampleLib.sol/SampleLib.json +1 -1
  120. package/l1-contracts/out/SequencerRewardCalculatorLib.sol/SequencerRewardCalculatorLib.json +1 -1
  121. package/l1-contracts/out/SignatureLib.sol/SignatureLib.json +1 -1
  122. package/l1-contracts/out/SlashPayload.sol/SlashPayload.json +1 -1
  123. package/l1-contracts/out/SlashPayloadCloneable.sol/SlashPayloadCloneable.json +1 -1
  124. package/l1-contracts/out/SlashPayloadLib.sol/SlashPayloadLib.json +1 -1
  125. package/l1-contracts/out/SlashRoundLib.sol/CompressedSlashRoundMath.json +1 -1
  126. package/l1-contracts/out/Slasher.sol/Slasher.json +1 -1
  127. package/l1-contracts/out/SlasherDeploymentExtLib.sol/SlasherDeploymentExtLib.json +1 -1
  128. package/l1-contracts/out/SlashingProposer.sol/SlashingProposer.json +1 -1
  129. package/l1-contracts/out/StakingAssetHandler.sol/IStakingAssetHandler.json +1 -1
  130. package/l1-contracts/out/StakingAssetHandler.sol/StakingAssetHandler.json +1 -1
  131. package/l1-contracts/out/StakingLib.sol/StakingLib.json +1 -1
  132. package/l1-contracts/out/StakingQueue.sol/StakingQueueLib.json +1 -1
  133. package/l1-contracts/out/StakingQueueConfig.sol/StakingQueueConfigLib.json +1 -1
  134. package/l1-contracts/out/StdError.sol/stdError.json +1 -1
  135. package/l1-contracts/out/TestERC20.sol/TestERC20.json +1 -1
  136. package/l1-contracts/out/TestPayloads.sol/CallAssetPayload.json +1 -1
  137. package/l1-contracts/out/TestPayloads.sol/CallRevertingPayload.json +1 -1
  138. package/l1-contracts/out/TestPayloads.sol/EmptyPayload.json +1 -1
  139. package/l1-contracts/out/TestPayloads.sol/FakeRollup.json +1 -1
  140. package/l1-contracts/out/TestPayloads.sol/RevertingCall.json +1 -1
  141. package/l1-contracts/out/TestPayloads.sol/UpgradePayload.json +1 -1
  142. package/l1-contracts/out/TimeLib.sol/TimeLib.json +1 -1
  143. package/l1-contracts/out/Tips.sol/ChainTipsLib.json +1 -1
  144. package/l1-contracts/out/V6UpgradePayload.sol/V6UpgradePayload.json +1 -0
  145. package/l1-contracts/out/V6UpgradeSimulation.sol/V6UpgradeSimulation.json +1 -0
  146. package/l1-contracts/out/ValidatorOperationsExtLib.sol/ValidatorOperationsExtLib.json +1 -1
  147. package/l1-contracts/out/ValidatorSelectionLib.sol/ValidatorSelectionLib.json +1 -1
  148. package/l1-contracts/out/ZKPassportHelper.sol/ZKPassportHelper.json +1 -1
  149. package/l1-contracts/out/ZKPassportRootVerifier.sol/ZKPassportRootVerifier.json +1 -1
  150. package/l1-contracts/out/ZKPassportSubVerifier.sol/ZKPassportSubVerifier.json +1 -1
  151. package/l1-contracts/out/build-info/ba785d07f217e383.json +1 -0
  152. package/l1-contracts/out/deploy/HonkVerifier.sol/HonkVerifier.json +1 -0
  153. package/l1-contracts/out/deploy/HonkVerifier.sol/IVerifier.json +1 -0
  154. package/l1-contracts/out/generated/HonkVerifier.sol/HonkVerifier.json +1 -1
  155. package/l1-contracts/out/libraries/Errors.sol/Errors.json +1 -1
  156. package/l1-contracts/out/rollup/BlobLib.sol/BlobLib.json +1 -1
  157. package/l1-contracts/out/src/ZKPassportHelper.sol/ZKPassportHelper.json +1 -1
  158. package/l1-contracts/out/src/ZKPassportRootVerifier.sol/ZKPassportRootVerifier.json +1 -1
  159. package/l1-contracts/out/src/ZKPassportSubVerifier.sol/ZKPassportSubVerifier.json +1 -1
  160. package/l1-contracts/script/deploy/DeployRollupForUpgradeV6.s.sol +688 -0
  161. package/l1-contracts/script/deploy/HonkVerifier.sol +5723 -0
  162. package/l1-contracts/script/deploy/V6UpgradeSimulation.sol +285 -0
  163. package/l1-contracts/script/deploy/V6_UPGRADE_RUNBOOK.md +441 -0
  164. package/l1-contracts/src/periphery/V6UpgradePayload.md +113 -0
  165. package/l1-contracts/src/periphery/V6UpgradePayload.sol +441 -0
  166. package/package.json +1 -1
  167. package/l1-contracts/out/build-info/018c24616ac5aeef.json +0 -1
@@ -0,0 +1,441 @@
1
+ // SPDX-License-Identifier: Apache-2.0
2
+ // Copyright 2024 Aztec Labs.
3
+ pragma solidity >=0.8.27;
4
+
5
+ import {IEscapeHatch} from "@aztec/core/interfaces/IEscapeHatch.sol";
6
+ import {IInstance} from "@aztec/core/interfaces/IInstance.sol";
7
+ import {IRollupCore} from "@aztec/core/interfaces/IRollup.sol";
8
+ import {IValidatorSelectionCore} from "@aztec/core/interfaces/IValidatorSelection.sol";
9
+ import {Bps, MutableRewardConfig} from "@aztec/core/libraries/rollup/RewardLib.sol";
10
+ import {IGSECore} from "@aztec/governance/GSE.sol";
11
+ import {IPayload} from "@aztec/governance/interfaces/IPayload.sol";
12
+ import {IRegistry} from "@aztec/governance/interfaces/IRegistry.sol";
13
+ import {IRewardDistributor} from "@aztec/governance/interfaces/IRewardDistributor.sol";
14
+ import {FlushRewarder} from "@aztec/periphery/FlushRewarder.sol";
15
+ import {IERC20} from "@oz/token/ERC20/IERC20.sol";
16
+
17
+ /**
18
+ * @title V6UpgradePayload
19
+ * @author Aztec Labs
20
+ * @notice The payload governance executes to make the v6 rollup canonical.
21
+ * @dev Governance executes each action as `target.call(data)` from its own address, in order, in a
22
+ * single transaction that reverts as a whole if any action fails. Every target below is
23
+ * `onlyOwner` and governance owns all of them, which is what makes this payload the only way
24
+ * to perform these steps.
25
+ *
26
+ * Extend `getActions` to bundle further governance-gated calls (for example
27
+ * `setProtocolFeeRecipient` / `setProtocolFeeMargin`, which cannot be set any other way because
28
+ * the rollup is owned by governance from construction).
29
+ */
30
+ contract V6UpgradePayload is IPayload {
31
+ /// @notice London-local hour the window opens, inclusive.
32
+ uint256 public constant WINDOW_OPEN_HOUR = 8;
33
+
34
+ /// @notice London-local hour the window closes, exclusive.
35
+ uint256 public constant WINDOW_CLOSE_HOUR = 17;
36
+
37
+ /// @notice The registry that resolves the canonical rollup for the protocol.
38
+ IRegistry public immutable REGISTRY;
39
+
40
+ /// @notice The rollup being made canonical.
41
+ IInstance public immutable ROLLUP;
42
+
43
+ /// @notice The canonical rollup at deployment -- the one {ROLLUP} is built to succeed.
44
+ /// @dev Public so it can be checked before signalling: a payload whose PREDECESSOR is no longer
45
+ /// canonical can never execute, and that is readable on-chain before any vote is committed.
46
+ address public immutable PREDECESSOR;
47
+
48
+ /// @notice The escape hatch this payload installs on {ROLLUP}.
49
+ /// @dev Installed HERE rather than during the deploy. `setEscapeHatch` is `onlyOwner`, and the
50
+ /// rollup is constructed owned by governance -- because that same constructor argument also
51
+ /// becomes the Slasher's immutable GOVERNANCE, which can slash any attester with no vote.
52
+ /// Constructing with the deployer to do owner-gated setup would hand that power to the
53
+ /// deploy key permanently, and no later `transferOwnership` could take it back.
54
+ address public immutable ESCAPE_HATCH;
55
+
56
+ /// @notice The flush rewarder serving the outgoing rollup, or zero on a chain that has none.
57
+ FlushRewarder public immutable OLD_FLUSH_REWARDER;
58
+
59
+ /// @notice The replacement flush rewarder, deployed by this constructor and bound to {ROLLUP}.
60
+ /// Zero when {OLD_FLUSH_REWARDER} is zero.
61
+ FlushRewarder public immutable NEW_FLUSH_REWARDER;
62
+
63
+ /// @notice Whether execution is restricted to UK office hours. Set per chain by the deploy script.
64
+ bool public immutable ENFORCE_EXECUTION_WINDOW;
65
+
66
+ /// @notice The distributor holding the reward pool, read off the registry at construction.
67
+ /// @dev Zero when {EARMARK_AMOUNT} is zero: a payload that reserves nothing has no business
68
+ /// requiring the chain to have a distributor at all.
69
+ IRewardDistributor public immutable REWARD_DISTRIBUTOR;
70
+
71
+ /// @notice The asset that distributor pays out, read off {ROLLUP} at construction.
72
+ /// @dev Derived rather than configured: mainnet and Sepolia use different distributors and
73
+ /// different fee assets, and both follow from the registry and the rollup, so they cannot
74
+ /// drift from the chain the payload is actually pointed at.
75
+ IERC20 public immutable REWARD_ASSET;
76
+
77
+ /// @notice Reward-pool balance to reserve for {PREDECESSOR} before it stops being canonical.
78
+ /// Zero omits the reservation entirely.
79
+ /// @dev The recipient is {PREDECESSOR} -- the OUTGOING rollup -- not {ROLLUP}. Earmarking to the
80
+ /// incoming rollup would be pointless: it becomes canonical and gains the whole implicit
81
+ /// pool regardless. The outgoing rollup is the one that loses implicit-pool access the
82
+ /// moment `Registry.addRollup` runs, because the distributor resolves `canonicalRollup()`
83
+ /// live off the registry, so anything it should keep has to be moved into its own earmarked
84
+ /// bucket first. Whatever is reserved here is subtracted from what {ROLLUP} can claim.
85
+ uint256 public immutable EARMARK_AMOUNT;
86
+
87
+ /// @notice Whether to retune {PREDECESSOR}'s reward split before it stops being canonical.
88
+ bool public immutable RETUNE_PREDECESSOR_REWARDS;
89
+
90
+ /// @notice The sequencer share, in basis points, to leave {PREDECESSOR} on.
91
+ /// @dev Applies to the OUTGOING rollup only. {ROLLUP} keeps whatever the deploy script gave it.
92
+ /// A flag gates this rather than a sentinel value, because both zero and 10000 are
93
+ /// meaningful splits and neither can stand in for "leave it alone".
94
+ uint16 public immutable PREDECESSOR_SEQUENCER_BPS;
95
+
96
+ /// @notice The checkpoint reward to leave {PREDECESSOR} on.
97
+ uint96 public immutable PREDECESSOR_CHECKPOINT_REWARD;
98
+
99
+ /// @notice The proof-of-possession gas cap to set on the GSE. Zero omits the action entirely.
100
+ /// @dev The GSE verifies each new attester's BLS proof of possession in a sub-call capped at this
101
+ /// much gas, and a deposit whose verification does not fit is refunded and dropped. The
102
+ /// verification cost varies per key, because `BN254Lib.hashToPoint` is a rejection-sampling
103
+ /// loop with an unbounded tail, and the Osaka modexp repricing (EIP-7883) raised the cost of
104
+ /// each of its iterations. Under that pricing about 1 in 28.6k honestly generated keys cost
105
+ /// more than the GSE's original 250k cap, and about 1 in 2.5M cost more than 300k. The price
106
+ /// of a higher cap is that an entry whose verification fails can burn more gas in the flush
107
+ /// that processes it.
108
+ ///
109
+ /// The GSE is shared, so the new cap applies to every rollup it serves, {PREDECESSOR}
110
+ /// included, from the moment the payload executes.
111
+ uint64 public immutable PROOF_OF_POSSESSION_GAS_LIMIT;
112
+
113
+ /// @notice Thrown when the supplied flush rewarder serves a rollup other than the outgoing one.
114
+ error V6UpgradePayload__FlushRewarderRollupMismatch(address served, address outgoing);
115
+
116
+ /// @notice Thrown when governance executes outside the permitted window.
117
+ error V6UpgradePayload__OutsideExecutionWindow(uint256 timestamp);
118
+
119
+ /// @notice Thrown when the rollup this payload was built to succeed is no longer canonical.
120
+ error V6UpgradePayload__PredecessorNotCanonical(address expected, address actual);
121
+
122
+ /// @notice Thrown when the supplied escape hatch was built for a different rollup.
123
+ error V6UpgradePayload__EscapeHatchRollupMismatch(address served, address expected);
124
+
125
+ /// @notice Thrown when a non-zero proof-of-possession gas cap does not exceed the GSE's current one.
126
+ error V6UpgradePayload__ProofOfPossessionGasLimitNotRaised(uint64 current, uint64 proposed);
127
+
128
+ /**
129
+ * @notice Binds the payload to the rollup it will make canonical, and deploys the replacement
130
+ * flush rewarder when there is an outgoing one to migrate.
131
+ * @param _registry The registry to register the rollup in
132
+ * @param _rollup The newly deployed rollup
133
+ * @param _escapeHatch The escape hatch built for {_rollup}, installed by this payload
134
+ * @param _oldFlushRewarder The flush rewarder serving the outgoing rollup, or zero to skip the
135
+ * flush-incentive migration entirely
136
+ * @param _enforceExecutionWindow Whether to restrict execution to UK office hours
137
+ * @param _earmarkAmount Reward-pool balance to reserve for the outgoing rollup, or zero for none
138
+ * @param _retunePredecessorRewards Whether to rewrite the outgoing rollup's reward split
139
+ * @param _predecessorSequencerBps The sequencer share to leave the outgoing rollup on
140
+ * @param _predecessorCheckpointReward The checkpoint reward to leave the outgoing rollup on
141
+ * @param _proofOfPossessionGasLimit The proof-of-possession gas cap to set on the GSE, or zero to
142
+ * leave it unchanged. When non-zero it must exceed the GSE's cap at deployment
143
+ */
144
+ constructor(
145
+ IRegistry _registry,
146
+ IInstance _rollup,
147
+ IEscapeHatch _escapeHatch,
148
+ FlushRewarder _oldFlushRewarder,
149
+ bool _enforceExecutionWindow,
150
+ uint256 _earmarkAmount,
151
+ bool _retunePredecessorRewards,
152
+ uint16 _predecessorSequencerBps,
153
+ uint96 _predecessorCheckpointReward,
154
+ uint64 _proofOfPossessionGasLimit
155
+ ) {
156
+ REGISTRY = _registry;
157
+ ROLLUP = _rollup;
158
+
159
+ // The hatch names the rollup it was built for, and `setEscapeHatch` is one-shot, so a hatch
160
+ // bound elsewhere would burn the only chance to install one.
161
+ address hatchRollup = _escapeHatch.getRollup();
162
+ require(hatchRollup == address(_rollup), V6UpgradePayload__EscapeHatchRollupMismatch(hatchRollup, address(_rollup)));
163
+ ESCAPE_HATCH = address(_escapeHatch);
164
+ OLD_FLUSH_REWARDER = _oldFlushRewarder;
165
+ ENFORCE_EXECUTION_WINDOW = _enforceExecutionWindow;
166
+ // Only reached for when the reservation is actually used, so a payload without one stays
167
+ // constructible against a registry or rollup that does not answer these.
168
+ EARMARK_AMOUNT = _earmarkAmount;
169
+ REWARD_DISTRIBUTOR = _earmarkAmount > 0 ? _registry.getRewardDistributor() : IRewardDistributor(address(0));
170
+ REWARD_ASSET = _earmarkAmount > 0 ? _rollup.getFeeAsset() : IERC20(address(0));
171
+ RETUNE_PREDECESSOR_REWARDS = _retunePredecessorRewards;
172
+ PREDECESSOR_SEQUENCER_BPS = _predecessorSequencerBps;
173
+ PREDECESSOR_CHECKPOINT_REWARD = _predecessorCheckpointReward;
174
+
175
+ // The GSE accepts any value, and a cap below the cost of keys that verify today would start
176
+ // rejecting deposits that currently succeed, so this only ever raises it. Checked against the
177
+ // cap at deployment, because that is what voters compare the payload against. Like the other
178
+ // optional actions, the GSE is only read when the action is used.
179
+ if (_proofOfPossessionGasLimit > 0) {
180
+ uint64 currentLimit = _rollup.getGSE().proofOfPossessionGasLimit();
181
+ require(
182
+ _proofOfPossessionGasLimit > currentLimit,
183
+ V6UpgradePayload__ProofOfPossessionGasLimitNotRaised(currentLimit, _proofOfPossessionGasLimit)
184
+ );
185
+ }
186
+ PROOF_OF_POSSESSION_GAS_LIMIT = _proofOfPossessionGasLimit;
187
+
188
+ // Read ONCE and bound as an immutable, so the rewarder check below and the execution-time
189
+ // guard are talking about the same rollup by construction. Unconditional, so this reverts
190
+ // with `Registry__NoRollupsRegistered` against an empty registry -- this payload succeeds a
191
+ // rollup and cannot be used for a first registration.
192
+ address outgoingRollup = address(_registry.getCanonicalRollup());
193
+ PREDECESSOR = outgoingRollup;
194
+
195
+ // Nothing on the rollup points back at its flush rewarder -- a FlushRewarder is a
196
+ // permissionless wrapper around the permissionless `flushEntryQueue`, so a rollup may have
197
+ // any number of them and knows about none. The address therefore has to be supplied, but it
198
+ // can be checked: the rewarder names the rollup it serves, which must be the one being
199
+ // replaced. This rejects a rewarder for a foreign or already-retired rollup.
200
+ if (address(_oldFlushRewarder) != address(0)) {
201
+ address servedRollup = address(_oldFlushRewarder.ROLLUP());
202
+ require(
203
+ servedRollup == outgoingRollup, V6UpgradePayload__FlushRewarderRollupMismatch(servedRollup, outgoingRollup)
204
+ );
205
+ }
206
+
207
+ // A FlushRewarder's `ROLLUP` is immutable, so the incentive cannot follow the upgrade: the
208
+ // replacement has to be a new contract. Asset and rate are mirrored off the outgoing one so
209
+ // the incentive carries over unchanged, and governance owns it so it stays adjustable.
210
+ NEW_FLUSH_REWARDER = address(_oldFlushRewarder) == address(0)
211
+ ? FlushRewarder(address(0))
212
+ : new FlushRewarder(
213
+ _registry.getGovernance(), _rollup, _oldFlushRewarder.REWARD_ASSET(), _oldFlushRewarder.rewardPerInsertion()
214
+ );
215
+ }
216
+
217
+ /// @notice Moves everything this payload holds into the distributor, reserved for {PREDECESSOR}.
218
+ /// @dev Reads its own balance rather than taking an amount, so it cannot disagree with the
219
+ /// `recoverFrom` action that funds it. Permissionless by design: it can only ever push the
220
+ /// payload's own balance to one fixed recipient, and leaving it callable means a stray
221
+ /// transfer here is recoverable rather than stranded.
222
+ // solhint-disable-next-line comprehensive-interface
223
+ function forwardEarmark() external {
224
+ uint256 amount = REWARD_ASSET.balanceOf(address(this));
225
+ REWARD_ASSET.approve(address(REWARD_DISTRIBUTOR), amount);
226
+ REWARD_DISTRIBUTOR.subsidizeAddress(PREDECESSOR, amount);
227
+ }
228
+
229
+ /// @inheritdoc IPayload
230
+ function getActions() external view override(IPayload) returns (IPayload.Action[] memory) {
231
+ bool migrateFlushRewarder = address(OLD_FLUSH_REWARDER) != address(0);
232
+ uint256 next = 0;
233
+
234
+ bool earmark = EARMARK_AMOUNT > 0;
235
+ bool raiseProofOfPossessionGasLimit = PROOF_OF_POSSESSION_GAS_LIMIT > 0;
236
+
237
+ // Always: predecessor guard, setEscapeHatch, Registry.addRollup, GSE.addRollup.
238
+ IPayload.Action[] memory res = new IPayload
239
+ .Action[](
240
+ 4 + (ENFORCE_EXECUTION_WINDOW ? 1 : 0) + (earmark ? 2 : 0) + (RETUNE_PREDECESSOR_REWARDS ? 1 : 0)
241
+ + (migrateFlushRewarder ? 1 : 0) + (raiseProofOfPossessionGasLimit ? 1 : 0)
242
+ );
243
+
244
+ // FIRST, before the window and before anything is written: this payload only authorises a
245
+ // transition FROM the rollup that was canonical when it was deployed.
246
+ //
247
+ // Registration is append-only with last-write-wins, and `execute` is permissionless, so two
248
+ // accepted registrations are a hazard: if this one is abandoned and a replacement executes
249
+ // first, anyone could later execute this one and demote the replacement -- permanently, since
250
+ // neither registry re-admits a rollup it already holds. Binding the predecessor makes a stale
251
+ // payload inert instead: it reverts, the proposal stays Executable until it expires, and
252
+ // nothing moves.
253
+ //
254
+ // Ahead of the window check deliberately. Both are non-mutating so the order is free, and of
255
+ // the two failures "this payload must never run" is the one worth surfacing over "come back
256
+ // on Monday".
257
+ res[next++] =
258
+ Action({target: address(this), data: abi.encodeWithSelector(this.assertPredecessorIsCanonical.selector)});
259
+
260
+ // The window is enforced as its own action rather than inside `getActions` so that reading the
261
+ // proposal stays possible at any time -- explorers, `GSEPayload.amIValid` and the deploy
262
+ // script's simulation all call `getActions`, and a revert here would break them out of hours.
263
+ // The same is true of the guard above, which is why it is an action too: a stale payload must
264
+ // still be READABLE, so that what it would do stays inspectable after it can no longer do it.
265
+ // Governance reverts the whole execution on any failed action and rolls back the Executed flag
266
+ // with it, so a rejected attempt leaves the proposal executable again once the window opens.
267
+ if (ENFORCE_EXECUTION_WINDOW) {
268
+ res[next++] =
269
+ Action({target: address(this), data: abi.encodeWithSelector(this.assertWithinExecutionWindow.selector)});
270
+ }
271
+
272
+ if (earmark) {
273
+ // Reserves part of the reward pool for the OUTGOING rollup, and must run before
274
+ // `Registry.addRollup` below. The distributor resolves `canonicalRollup()` live, so
275
+ // {PREDECESSOR} can only reach the implicit (un-earmarked) pool while it is still canonical;
276
+ // one action later that access is gone for good.
277
+ //
278
+ // Drawing FROM {PREDECESSOR} and earmarking back TO {PREDECESSOR} reads like a no-op and is
279
+ // not: it converts pool access that is about to lapse into a balance that survives, because
280
+ // `specificRecipientBalance` is keyed by address and is indifferent to which rollup is
281
+ // canonical. The predecessor guard above is what makes the draw safe -- it has already
282
+ // established that {PREDECESSOR} is canonical at this point.
283
+ res[next++] = Action({
284
+ target: address(REWARD_DISTRIBUTOR),
285
+ data: abi.encodeWithSelector(
286
+ IRewardDistributor.recoverFrom.selector, PREDECESSOR, address(this), EARMARK_AMOUNT
287
+ )
288
+ });
289
+
290
+ // `subsidizeAddress` pulls via `transferFrom`, so it needs an allowance from the holder, and
291
+ // governance can never grant one: `Governance.execute` refuses any action targeting the
292
+ // asset. Routing through this contract is what makes the round trip possible at all.
293
+ res[next++] = Action({target: address(this), data: abi.encodeWithSelector(this.forwardEarmark.selector)});
294
+ }
295
+
296
+ if (RETUNE_PREDECESSOR_REWARDS) {
297
+ // Retunes the OUTGOING rollup's split, and must also land before `Registry.addRollup`: the
298
+ // point is for it to be in force for whatever {PREDECESSOR} still settles on its way out.
299
+ // {ROLLUP} is untouched and keeps the values it was constructed with.
300
+ //
301
+ // `setRewardConfig` has no cooldown and no step cap -- unlike `setProvingCostPerMana` and
302
+ // `setProtocolFeeMargin`, which are both rate limited -- so this lands the moment the payload
303
+ // executes. The split is read at PROOF time, so it also reaches checkpoints already proposed
304
+ // under the old split but not yet proven.
305
+ res[next++] = Action({
306
+ target: PREDECESSOR,
307
+ data: abi.encodeWithSelector(
308
+ IRollupCore.setRewardConfig.selector,
309
+ MutableRewardConfig({
310
+ sequencerBps: Bps.wrap(PREDECESSOR_SEQUENCER_BPS), checkpointReward: PREDECESSOR_CHECKPOINT_REWARD
311
+ })
312
+ )
313
+ });
314
+ }
315
+
316
+ // Installs the escape hatch, BEFORE the rollup becomes canonical. `setEscapeHatch` is
317
+ // `onlyOwner` and one-shot, and governance has owned this rollup since construction -- see
318
+ // {ESCAPE_HATCH} for why it is not owned by the deployer even briefly.
319
+ res[next++] = Action({
320
+ target: address(ROLLUP),
321
+ data: abi.encodeWithSelector(IValidatorSelectionCore.setEscapeHatch.selector, ESCAPE_HATCH)
322
+ });
323
+
324
+ // Registers the rollup under its own version, making it the canonical rollup. Reverts if that
325
+ // version is already registered.
326
+ res[next++] =
327
+ Action({target: address(REGISTRY), data: abi.encodeWithSelector(IRegistry.addRollup.selector, address(ROLLUP))});
328
+
329
+ // Lets the GSE recognise the rollup as a valid instance, so existing attesters follow the
330
+ // upgrade without withdrawing and redepositing their stake.
331
+ res[next++] = Action({
332
+ target: address(ROLLUP.getGSE()), data: abi.encodeWithSelector(IGSECore.addRollup.selector, address(ROLLUP))
333
+ });
334
+
335
+ if (migrateFlushRewarder) {
336
+ // Moves the outgoing rewarder's unowed balance to the replacement. `recover` caps the
337
+ // reward asset at `rewardsAvailable()` (balance minus rewards already accrued to flushers
338
+ // who have not claimed), so the outgoing rewarder deliberately keeps that remainder and
339
+ // must stay callable for `claimRewards`. Read at execution time, not at deploy time.
340
+ res[next++] = Action({
341
+ target: address(OLD_FLUSH_REWARDER),
342
+ data: abi.encodeWithSelector(
343
+ FlushRewarder.recover.selector,
344
+ address(NEW_FLUSH_REWARDER.REWARD_ASSET()),
345
+ address(NEW_FLUSH_REWARDER),
346
+ OLD_FLUSH_REWARDER.rewardsAvailable()
347
+ )
348
+ });
349
+ }
350
+
351
+ if (raiseProofOfPossessionGasLimit) {
352
+ // Raises the GSE's proof-of-possession gas cap; see {PROOF_OF_POSSESSION_GAS_LIMIT}. It does
353
+ // not depend on the registrations above and nothing above depends on it: the cap is read
354
+ // only when an entry queue is flushed, which cannot happen inside this transaction. It goes
355
+ // last so the transition's own actions keep their positions whether or not it is present.
356
+ res[next++] = Action({
357
+ target: address(ROLLUP.getGSE()),
358
+ data: abi.encodeCall(IGSECore.setProofOfPossessionGasLimit, (PROOF_OF_POSSESSION_GAS_LIMIT))
359
+ });
360
+ }
361
+
362
+ return res;
363
+ }
364
+
365
+ /// @notice Reverts unless {PREDECESSOR} is still the canonical rollup.
366
+ /// @dev Targeted by the first action. Voters can also call it directly before signalling to
367
+ /// confirm the payload is still live.
368
+ // solhint-disable-next-line comprehensive-interface
369
+ function assertPredecessorIsCanonical() external view {
370
+ address canonical = address(REGISTRY.getCanonicalRollup());
371
+ require(canonical == PREDECESSOR, V6UpgradePayload__PredecessorNotCanonical(PREDECESSOR, canonical));
372
+ }
373
+
374
+ /// @notice Reverts unless the current time is inside the permitted execution window.
375
+ /// @dev Targeted by an action, after the predecessor guard, when {ENFORCE_EXECUTION_WINDOW} is set.
376
+ // solhint-disable-next-line comprehensive-interface
377
+ function assertWithinExecutionWindow() external view {
378
+ require(isWithinExecutionWindow(block.timestamp), V6UpgradePayload__OutsideExecutionWindow(block.timestamp));
379
+ }
380
+
381
+ /// @inheritdoc IPayload
382
+ function getURI() external pure override(IPayload) returns (string memory) {
383
+ return "V6UpgradePayload";
384
+ }
385
+
386
+ /// @notice Whether `_timestamp` falls on a UK weekday between 08:00 (inclusive) and 17:00
387
+ /// (exclusive) London time.
388
+ /// @dev Public so the window can be queried before proposing or executing.
389
+ // solhint-disable-next-line comprehensive-interface
390
+ function isWithinExecutionWindow(uint256 _timestamp) public pure returns (bool) {
391
+ uint256 london = _timestamp + (_isBritishSummerTime(_timestamp) ? 1 hours : 0);
392
+
393
+ // 1970-01-01 was a Thursday, so adding 4 puts Sunday at 0 and Saturday at 6.
394
+ uint256 weekday = (london / 1 days + 4) % 7;
395
+ if (weekday == 0 || weekday == 6) {
396
+ return false;
397
+ }
398
+
399
+ uint256 hourOfDay = (london % 1 days) / 1 hours;
400
+ return hourOfDay >= WINDOW_OPEN_HOUR && hourOfDay < WINDOW_CLOSE_HOUR;
401
+ }
402
+
403
+ /// @dev British Summer Time runs from 01:00 UTC on the last Sunday of March to 01:00 UTC on the
404
+ /// last Sunday of October. Derived rather than tabulated so the payload has no expiry date.
405
+ function _isBritishSummerTime(uint256 _timestamp) private pure returns (bool) {
406
+ uint256 year = _yearFromDays(_timestamp / 1 days);
407
+ uint256 start = _lastSundayOfMonth(year, 3) * 1 days + 1 hours;
408
+ uint256 end = _lastSundayOfMonth(year, 10) * 1 days + 1 hours;
409
+ return _timestamp >= start && _timestamp < end;
410
+ }
411
+
412
+ /// @dev Days since the epoch of the last Sunday in `_month` of `_year`. Only used for March and
413
+ /// October, which both have 31 days, so the month length needs no lookup.
414
+ function _lastSundayOfMonth(uint256 _year, uint256 _month) private pure returns (uint256) {
415
+ uint256 lastDay = _daysFromCivil(_year, _month, 31);
416
+ return lastDay - ((lastDay + 4) % 7);
417
+ }
418
+
419
+ /// @dev Days since 1970-01-01 for a proleptic Gregorian date. Howard Hinnant's `days_from_civil`,
420
+ /// valid for every date this contract can see.
421
+ function _daysFromCivil(uint256 _year, uint256 _month, uint256 _day) private pure returns (uint256) {
422
+ uint256 y = _year - (_month <= 2 ? 1 : 0);
423
+ uint256 era = y / 400;
424
+ uint256 yoe = y - era * 400;
425
+ uint256 doy = (153 * (_month > 2 ? _month - 3 : _month + 9) + 2) / 5 + _day - 1;
426
+ uint256 doe = yoe * 365 + yoe / 4 - yoe / 100 + doy;
427
+ return era * 146_097 + doe - 719_468;
428
+ }
429
+
430
+ /// @dev Calendar year containing `_days` days since 1970-01-01. The inverse of {_daysFromCivil},
431
+ /// keeping only the year.
432
+ function _yearFromDays(uint256 _days) private pure returns (uint256) {
433
+ uint256 z = _days + 719_468;
434
+ uint256 era = z / 146_097;
435
+ uint256 doe = z - era * 146_097;
436
+ uint256 yoe = (doe - doe / 1460 + doe / 36_524 - doe / 146_096) / 365;
437
+ uint256 doy = doe - (365 * yoe + yoe / 4 - yoe / 100);
438
+ uint256 mp = (5 * doy + 2) / 153;
439
+ return (mp < 10 ? mp + 3 : mp - 9) <= 2 ? yoe + era * 400 + 1 : yoe + era * 400;
440
+ }
441
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec-foundation/l1-artifacts",
3
- "version": "6.0.0-rc.6",
3
+ "version": "6.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./network-defaults.json": "./l1-contracts/scripts/network-defaults.json",
@@ -1 +0,0 @@
1
- {"id":"018c24616ac5aeef","source_id_to_path":{"0":"generated/HonkVerifier.sol","1":"lib/circuits/src/solidity/src/Constants.sol","2":"lib/circuits/src/solidity/src/DateUtils.sol","3":"lib/circuits/src/solidity/src/IProofVerifier.sol","4":"lib/circuits/src/solidity/src/IRootRegistry.sol","5":"lib/circuits/src/solidity/src/InputsExtractor.sol","6":"lib/circuits/src/solidity/src/StringUtils.sol","7":"lib/circuits/src/solidity/src/Types.sol","8":"lib/circuits/src/solidity/src/ZKPassportHelper.sol","9":"lib/circuits/src/solidity/src/ZKPassportRootVerifier.sol","10":"lib/circuits/src/solidity/src/ZKPassportSubVerifier.sol","11":"lib/forge-std/src/Base.sol","12":"lib/forge-std/src/Script.sol","13":"lib/forge-std/src/StdAssertions.sol","14":"lib/forge-std/src/StdChains.sol","15":"lib/forge-std/src/StdCheats.sol","16":"lib/forge-std/src/StdError.sol","17":"lib/forge-std/src/StdInvariant.sol","18":"lib/forge-std/src/StdJson.sol","19":"lib/forge-std/src/StdMath.sol","20":"lib/forge-std/src/StdStorage.sol","21":"lib/forge-std/src/StdStyle.sol","22":"lib/forge-std/src/StdToml.sol","23":"lib/forge-std/src/StdUtils.sol","24":"lib/forge-std/src/Test.sol","25":"lib/forge-std/src/Vm.sol","26":"lib/forge-std/src/console.sol","27":"lib/forge-std/src/console2.sol","28":"lib/forge-std/src/interfaces/IERC165.sol","29":"lib/forge-std/src/interfaces/IERC20.sol","30":"lib/forge-std/src/interfaces/IERC721.sol","31":"lib/forge-std/src/interfaces/IMulticall3.sol","32":"lib/forge-std/src/mocks/MockERC20.sol","33":"lib/forge-std/src/mocks/MockERC721.sol","34":"lib/forge-std/src/safeconsole.sol","35":"lib/openzeppelin-contracts/contracts/access/Ownable.sol","36":"lib/openzeppelin-contracts/contracts/access/Ownable2Step.sol","37":"lib/openzeppelin-contracts/contracts/interfaces/IERC1363.sol","38":"lib/openzeppelin-contracts/contracts/interfaces/IERC165.sol","39":"lib/openzeppelin-contracts/contracts/interfaces/IERC20.sol","40":"lib/openzeppelin-contracts/contracts/interfaces/IERC5267.sol","41":"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC6093.sol","42":"lib/openzeppelin-contracts/contracts/proxy/Clones.sol","43":"lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol","44":"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol","45":"lib/openzeppelin-contracts/contracts/token/ERC20/extensions/IERC20Metadata.sol","46":"lib/openzeppelin-contracts/contracts/token/ERC20/utils/SafeERC20.sol","47":"lib/openzeppelin-contracts/contracts/utils/Address.sol","48":"lib/openzeppelin-contracts/contracts/utils/Context.sol","49":"lib/openzeppelin-contracts/contracts/utils/Create2.sol","50":"lib/openzeppelin-contracts/contracts/utils/Errors.sol","51":"lib/openzeppelin-contracts/contracts/utils/Panic.sol","52":"lib/openzeppelin-contracts/contracts/utils/ShortStrings.sol","53":"lib/openzeppelin-contracts/contracts/utils/SlotDerivation.sol","54":"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol","55":"lib/openzeppelin-contracts/contracts/utils/Strings.sol","56":"lib/openzeppelin-contracts/contracts/utils/TransientSlot.sol","57":"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol","58":"lib/openzeppelin-contracts/contracts/utils/cryptography/EIP712.sol","59":"lib/openzeppelin-contracts/contracts/utils/cryptography/MessageHashUtils.sol","60":"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol","61":"lib/openzeppelin-contracts/contracts/utils/math/Math.sol","62":"lib/openzeppelin-contracts/contracts/utils/math/SafeCast.sol","63":"lib/openzeppelin-contracts/contracts/utils/math/SignedMath.sol","64":"lib/openzeppelin-contracts/contracts/utils/structs/BitMaps.sol","65":"lib/openzeppelin-contracts/contracts/utils/structs/Checkpoints.sol","66":"lib/openzeppelin-contracts/contracts/utils/structs/EnumerableSet.sol","67":"script/deploy/DeployAztecL1Contracts.s.sol","68":"script/deploy/DeployRollupForUpgrade.s.sol","69":"script/deploy/DeployRollupLib.sol","70":"script/deploy/DeploymentConfiguration.sol","71":"script/deploy/FlushEntryQueue.s.sol","72":"script/deploy/RollupConfiguration.sol","73":"src/core/EscapeHatch.sol","74":"src/core/Rollup.sol","75":"src/core/RollupCore.sol","76":"src/core/interfaces/IEscapeHatch.sol","77":"src/core/interfaces/IFeeJuicePortal.sol","78":"src/core/interfaces/IInstance.sol","79":"src/core/interfaces/IRollup.sol","80":"src/core/interfaces/ISequencerRewardCalculator.sol","81":"src/core/interfaces/ISlasher.sol","82":"src/core/interfaces/IStaking.sol","83":"src/core/interfaces/IValidatorSelection.sol","84":"src/core/interfaces/IVerifier.sol","85":"src/core/interfaces/messagebridge/IInbox.sol","86":"src/core/interfaces/messagebridge/IOutbox.sol","87":"src/core/libraries/ConstantsGen.sol","88":"src/core/libraries/DataStructures.sol","89":"src/core/libraries/Errors.sol","90":"src/core/libraries/HatchMath.sol","91":"src/core/libraries/SlashPayloadLib.sol","92":"src/core/libraries/SlashRoundLib.sol","93":"src/core/libraries/StakingQueue.sol","94":"src/core/libraries/TimeLib.sol","95":"src/core/libraries/compressed-data/CheckpointLog.sol","96":"src/core/libraries/compressed-data/StakingQueueConfig.sol","97":"src/core/libraries/compressed-data/Tips.sol","98":"src/core/libraries/compressed-data/fees/FeeConfig.sol","99":"src/core/libraries/compressed-data/fees/FeeStructs.sol","100":"src/core/libraries/crypto/Hash.sol","101":"src/core/libraries/crypto/MerkleLib.sol","102":"src/core/libraries/crypto/SampleLib.sol","103":"src/core/libraries/rollup/AttestationLib.sol","104":"src/core/libraries/rollup/AttesterExitExtLib.sol","105":"src/core/libraries/rollup/BlobLib.sol","106":"src/core/libraries/rollup/CoordinationSignatureLib.sol","107":"src/core/libraries/rollup/EpochProofExtLib.sol","108":"src/core/libraries/rollup/EpochProofLib.sol","109":"src/core/libraries/rollup/FeeLib.sol","110":"src/core/libraries/rollup/FieldLib.sol","111":"src/core/libraries/rollup/InvalidateLib.sol","112":"src/core/libraries/rollup/ProposeLib.sol","113":"src/core/libraries/rollup/ProposedHeaderLib.sol","114":"src/core/libraries/rollup/RewardExtLib.sol","115":"src/core/libraries/rollup/RewardLib.sol","116":"src/core/libraries/rollup/RollupOperationsExtLib.sol","117":"src/core/libraries/rollup/STFLib.sol","118":"src/core/libraries/rollup/SequencerRewardCalculatorLib.sol","119":"src/core/libraries/rollup/SlasherDeploymentExtLib.sol","120":"src/core/libraries/rollup/StakingLib.sol","121":"src/core/libraries/rollup/ValidatorOperationsExtLib.sol","122":"src/core/libraries/rollup/ValidatorSelectionLib.sol","123":"src/core/messagebridge/FeeJuicePortal.sol","124":"src/core/messagebridge/Inbox.sol","125":"src/core/messagebridge/Outbox.sol","126":"src/core/reward-boost/RewardBooster.sol","127":"src/core/slashing/Slasher.sol","128":"src/core/slashing/SlashingProposer.sol","129":"src/governance/Bn254LibWrapper.sol","130":"src/governance/CoinIssuer.sol","131":"src/governance/GSE.sol","132":"src/governance/GSEPayload.sol","133":"src/governance/Governance.sol","134":"src/governance/Registry.sol","135":"src/governance/RewardDistributor.sol","136":"src/governance/interfaces/IBn254LibWrapper.sol","137":"src/governance/interfaces/ICoinIssuer.sol","138":"src/governance/interfaces/IEmpire.sol","139":"src/governance/interfaces/IGovernance.sol","140":"src/governance/interfaces/IGovernanceProposer.sol","141":"src/governance/interfaces/IPayload.sol","142":"src/governance/interfaces/IProposerPayload.sol","143":"src/governance/interfaces/IRegistry.sol","144":"src/governance/interfaces/IRewardDistributor.sol","145":"src/governance/libraries/AddressSnapshotLib.sol","146":"src/governance/libraries/CheckpointedUintLib.sol","147":"src/governance/libraries/ConfigurationLib.sol","148":"src/governance/libraries/DepositDelegationLib.sol","149":"src/governance/libraries/Errors.sol","150":"src/governance/libraries/ProposalLib.sol","151":"src/governance/libraries/compressed-data/Ballot.sol","152":"src/governance/libraries/compressed-data/Configuration.sol","153":"src/governance/libraries/compressed-data/Proposal.sol","154":"src/governance/proposer/EmpireBase.sol","155":"src/governance/proposer/GovernanceProposer.sol","156":"src/mock/FeeAssetHandler.sol","157":"src/mock/MockFeeJuicePortal.sol","158":"src/mock/MockVerifier.sol","159":"src/mock/MultiAdder.sol","160":"src/mock/StakingAssetHandler.sol","161":"src/mock/TestERC20.sol","162":"src/mock/coverage/generated/HonkVerifier.sol","163":"src/mock/coverage/zkpassport/Constants.sol","164":"src/mock/coverage/zkpassport/IRootRegistry.sol","165":"src/mock/coverage/zkpassport/Types.sol","166":"src/mock/coverage/zkpassport/ZKPassportHelper.sol","167":"src/mock/coverage/zkpassport/ZKPassportRootVerifier.sol","168":"src/mock/coverage/zkpassport/ZKPassportSubVerifier.sol","169":"src/mock/coverage/zkpassport/ultra-honk-verifiers/OuterCount8.sol","170":"src/mock/libraries/BlobLib.sol","171":"src/mock/staking_asset_handler/MockZKPassportVerifier.sol","172":"src/periphery/DateGatedRelayer.sol","173":"src/periphery/FlushRewarder.sol","174":"src/periphery/RegisterNewRollupVersionPayload.sol","175":"src/periphery/SlashPayload.sol","176":"src/periphery/SlashPayloadCloneable.sol","177":"src/periphery/interfaces/IDateGatedRelayer.sol","178":"src/periphery/interfaces/IFlushRewarder.sol","179":"src/shared/interfaces/IMintableERC20.sol","180":"src/shared/libraries/BN254Lib.sol","181":"src/shared/libraries/CompressedTimeMath.sol","182":"src/shared/libraries/SignatureLib.sol","183":"src/shared/libraries/TimeMath.sol","184":"test/governance/governance/TestPayloads.sol"},"language":"Solidity"}