@arbitrum/nitro-contracts 2.1.1-beta.0 → 3.0.0-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (541) hide show
  1. package/build/contracts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
  2. package/build/contracts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +1 -1
  3. package/build/contracts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.dbg.json +1 -1
  4. package/build/contracts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json +2 -2
  5. package/build/contracts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +1 -1
  6. package/build/contracts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.dbg.json +1 -1
  7. package/build/contracts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +1 -1
  8. package/build/contracts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.dbg.json +1 -1
  9. package/build/contracts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.json +2 -2
  10. package/build/contracts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.dbg.json +1 -1
  11. package/build/contracts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +2 -2
  12. package/build/contracts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.dbg.json +1 -1
  13. package/build/contracts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +2 -2
  14. package/build/contracts/@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol/UUPSUpgradeable.dbg.json +1 -1
  15. package/build/contracts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +1 -1
  16. package/build/contracts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
  17. package/build/contracts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +2 -2
  18. package/build/contracts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  19. package/build/contracts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
  20. package/build/contracts/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.dbg.json +4 -0
  21. package/build/contracts/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.json +86 -0
  22. package/build/contracts/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol/SafeERC20.dbg.json +1 -1
  23. package/build/contracts/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol/SafeERC20.json +2 -2
  24. package/build/contracts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +1 -1
  25. package/build/contracts/@openzeppelin/contracts/utils/Address.sol/Address.json +2 -2
  26. package/build/contracts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  27. package/build/contracts/@openzeppelin/contracts/utils/Create2.sol/Create2.dbg.json +4 -0
  28. package/build/contracts/{src/express-lane-auction/ELCRound.sol/LatestELCRoundsLib.json → @openzeppelin/contracts/utils/Create2.sol/Create2.json} +4 -4
  29. package/build/contracts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json +1 -1
  30. package/build/contracts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +2 -2
  31. package/build/contracts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +1 -1
  32. package/build/contracts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +2 -2
  33. package/build/contracts/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol/AccessControlUpgradeable.dbg.json +1 -1
  34. package/build/contracts/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol/AccessControlUpgradeable.json +13 -0
  35. package/build/contracts/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol/IAccessControlUpgradeable.dbg.json +1 -1
  36. package/build/contracts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  37. package/build/contracts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.json +13 -0
  38. package/build/contracts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  39. package/build/contracts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.json +15 -1
  40. package/build/contracts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
  41. package/build/contracts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.json +13 -0
  42. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  43. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +2 -2
  44. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  45. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.json +15 -1
  46. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/Create2Upgradeable.sol/Create2Upgradeable.dbg.json +4 -0
  47. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/Create2Upgradeable.sol/Create2Upgradeable.json +10 -0
  48. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol/StorageSlotUpgradeable.dbg.json +1 -1
  49. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol/StorageSlotUpgradeable.json +2 -2
  50. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol/StringsUpgradeable.dbg.json +1 -1
  51. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol/StringsUpgradeable.json +2 -2
  52. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol/ERC165Upgradeable.dbg.json +1 -1
  53. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol/ERC165Upgradeable.json +13 -0
  54. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol/IERC165Upgradeable.dbg.json +1 -1
  55. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol/EnumerableSetUpgradeable.dbg.json +1 -1
  56. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol/EnumerableSetUpgradeable.json +2 -2
  57. package/build/contracts/src/assertionStakingPool/AbsBoldStakingPool.sol/AbsBoldStakingPool.dbg.json +4 -0
  58. package/build/contracts/{@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.json → src/assertionStakingPool/AbsBoldStakingPool.sol/AbsBoldStakingPool.json} +41 -95
  59. package/build/contracts/src/assertionStakingPool/AssertionStakingPool.sol/AssertionStakingPool.dbg.json +4 -0
  60. package/build/contracts/src/assertionStakingPool/AssertionStakingPool.sol/AssertionStakingPool.json +340 -0
  61. package/build/contracts/src/assertionStakingPool/AssertionStakingPoolCreator.sol/AssertionStakingPoolCreator.dbg.json +4 -0
  62. package/build/contracts/src/assertionStakingPool/AssertionStakingPoolCreator.sol/AssertionStakingPoolCreator.json +89 -0
  63. package/build/contracts/src/assertionStakingPool/EdgeStakingPool.sol/EdgeStakingPool.dbg.json +4 -0
  64. package/build/contracts/src/assertionStakingPool/EdgeStakingPool.sol/EdgeStakingPool.json +248 -0
  65. package/build/contracts/src/assertionStakingPool/EdgeStakingPoolCreator.sol/EdgeStakingPoolCreator.dbg.json +4 -0
  66. package/build/contracts/src/assertionStakingPool/EdgeStakingPoolCreator.sol/EdgeStakingPoolCreator.json +83 -0
  67. package/build/contracts/src/assertionStakingPool/StakingPoolCreatorUtils.sol/StakingPoolCreatorUtils.dbg.json +4 -0
  68. package/build/contracts/src/assertionStakingPool/StakingPoolCreatorUtils.sol/StakingPoolCreatorUtils.json +16 -0
  69. package/build/contracts/src/assertionStakingPool/interfaces/IAbsBoldStakingPool.sol/IAbsBoldStakingPool.dbg.json +4 -0
  70. package/build/contracts/src/assertionStakingPool/interfaces/IAbsBoldStakingPool.sol/IAbsBoldStakingPool.json +140 -0
  71. package/build/contracts/src/assertionStakingPool/interfaces/IAssertionStakingPool.sol/IAssertionStakingPool.dbg.json +4 -0
  72. package/build/contracts/src/assertionStakingPool/interfaces/IAssertionStakingPool.sol/IAssertionStakingPool.json +324 -0
  73. package/build/contracts/src/assertionStakingPool/interfaces/IAssertionStakingPoolCreator.sol/IAssertionStakingPoolCreator.dbg.json +4 -0
  74. package/build/contracts/src/assertionStakingPool/interfaces/IAssertionStakingPoolCreator.sol/IAssertionStakingPoolCreator.json +84 -0
  75. package/build/contracts/src/assertionStakingPool/interfaces/IEdgeStakingPool.sol/IEdgeStakingPool.dbg.json +4 -0
  76. package/build/contracts/{@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol/IERC20MetadataUpgradeable.json → src/assertionStakingPool/interfaces/IEdgeStakingPool.sol/IEdgeStakingPool.json} +109 -110
  77. package/build/contracts/src/assertionStakingPool/interfaces/IEdgeStakingPoolCreator.sol/IEdgeStakingPoolCreator.dbg.json +4 -0
  78. package/build/contracts/src/assertionStakingPool/interfaces/IEdgeStakingPoolCreator.sol/IEdgeStakingPoolCreator.json +78 -0
  79. package/build/contracts/src/bridge/AbsBridge.sol/AbsBridge.dbg.json +1 -1
  80. package/build/contracts/src/bridge/AbsBridge.sol/AbsBridge.json +13 -0
  81. package/build/contracts/src/bridge/AbsInbox.sol/AbsInbox.dbg.json +1 -1
  82. package/build/contracts/src/bridge/AbsInbox.sol/AbsInbox.json +14 -1
  83. package/build/contracts/src/bridge/AbsOutbox.sol/AbsOutbox.dbg.json +1 -1
  84. package/build/contracts/src/bridge/Bridge.sol/Bridge.dbg.json +1 -1
  85. package/build/contracts/src/bridge/Bridge.sol/Bridge.json +15 -2
  86. package/build/contracts/src/bridge/DelayBuffer.sol/DelayBuffer.dbg.json +4 -0
  87. package/build/contracts/src/bridge/DelayBuffer.sol/DelayBuffer.json +24 -0
  88. package/build/contracts/src/bridge/ERC20Bridge.sol/ERC20Bridge.dbg.json +1 -1
  89. package/build/contracts/src/bridge/ERC20Bridge.sol/ERC20Bridge.json +15 -2
  90. package/build/contracts/src/bridge/ERC20Inbox.sol/ERC20Inbox.dbg.json +1 -1
  91. package/build/contracts/src/bridge/ERC20Inbox.sol/ERC20Inbox.json +16 -3
  92. package/build/contracts/src/bridge/ERC20Outbox.sol/ERC20Outbox.dbg.json +1 -1
  93. package/build/contracts/src/bridge/ERC20Outbox.sol/ERC20Outbox.json +2 -2
  94. package/build/contracts/src/bridge/GasRefunder.sol/GasRefunder.dbg.json +1 -1
  95. package/build/contracts/src/bridge/GasRefunder.sol/GasRefunder.json +2 -2
  96. package/build/contracts/src/bridge/IBridge.sol/IBridge.dbg.json +1 -1
  97. package/build/contracts/src/bridge/IDelayedMessageProvider.sol/IDelayedMessageProvider.dbg.json +1 -1
  98. package/build/contracts/src/bridge/IERC20Bridge.sol/IERC20Bridge.dbg.json +1 -1
  99. package/build/contracts/src/bridge/IERC20Inbox.sol/IERC20Inbox.dbg.json +1 -1
  100. package/build/contracts/src/bridge/IEthBridge.sol/IEthBridge.dbg.json +1 -1
  101. package/build/contracts/src/bridge/IInbox.sol/IInbox.dbg.json +1 -1
  102. package/build/contracts/src/bridge/IInboxBase.sol/IInboxBase.dbg.json +1 -1
  103. package/build/contracts/src/bridge/IOutbox.sol/IOutbox.dbg.json +1 -1
  104. package/build/contracts/src/bridge/IOwnable.sol/IOwnable.dbg.json +1 -1
  105. package/build/contracts/src/bridge/ISequencerInbox.sol/ISequencerInbox.dbg.json +1 -1
  106. package/build/contracts/src/bridge/ISequencerInbox.sol/ISequencerInbox.json +441 -0
  107. package/build/contracts/src/bridge/Inbox.sol/Inbox.dbg.json +1 -1
  108. package/build/contracts/src/bridge/Inbox.sol/Inbox.json +20 -2
  109. package/build/contracts/src/bridge/Messages.sol/Messages.dbg.json +1 -1
  110. package/build/contracts/src/bridge/Messages.sol/Messages.json +2 -2
  111. package/build/contracts/src/bridge/Outbox.sol/Outbox.dbg.json +1 -1
  112. package/build/contracts/src/bridge/Outbox.sol/Outbox.json +2 -2
  113. package/build/contracts/src/bridge/SequencerInbox.sol/SequencerInbox.dbg.json +1 -1
  114. package/build/contracts/src/bridge/SequencerInbox.sol/SequencerInbox.json +566 -9
  115. package/build/contracts/src/chain/CacheManager.sol/CacheManager.dbg.json +1 -1
  116. package/build/contracts/src/chain/CacheManager.sol/CacheManager.json +15 -2
  117. package/build/contracts/src/challengeV2/EdgeChallengeManager.sol/EdgeChallengeManager.dbg.json +4 -0
  118. package/build/contracts/src/challengeV2/EdgeChallengeManager.sol/EdgeChallengeManager.json +1631 -0
  119. package/build/contracts/src/challengeV2/IAssertionChain.sol/IAssertionChain.dbg.json +4 -0
  120. package/build/contracts/src/challengeV2/IAssertionChain.sol/IAssertionChain.json +247 -0
  121. package/build/contracts/src/challengeV2/IEdgeChallengeManager.sol/IEdgeChallengeManager.dbg.json +4 -0
  122. package/build/contracts/src/challengeV2/IEdgeChallengeManager.sol/IEdgeChallengeManager.json +762 -0
  123. package/build/contracts/src/challengeV2/libraries/ArrayUtilsLib.sol/ArrayUtilsLib.dbg.json +4 -0
  124. package/build/contracts/src/challengeV2/libraries/ArrayUtilsLib.sol/ArrayUtilsLib.json +10 -0
  125. package/build/contracts/src/challengeV2/libraries/ChallengeEdgeLib.sol/ChallengeEdgeLib.dbg.json +4 -0
  126. package/build/contracts/{@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json → src/challengeV2/libraries/ChallengeEdgeLib.sol/ChallengeEdgeLib.json} +4 -4
  127. package/build/contracts/src/challengeV2/libraries/EdgeChallengeManagerLib.sol/EdgeChallengeManagerLib.dbg.json +4 -0
  128. package/build/contracts/src/challengeV2/libraries/EdgeChallengeManagerLib.sol/EdgeChallengeManagerLib.json +24 -0
  129. package/build/contracts/src/challengeV2/libraries/MerkleTreeAccumulatorLib.sol/MerkleTreeAccumulatorLib.dbg.json +4 -0
  130. package/build/contracts/src/challengeV2/libraries/MerkleTreeAccumulatorLib.sol/MerkleTreeAccumulatorLib.json +24 -0
  131. package/build/contracts/src/challengeV2/libraries/UintUtilsLib.sol/UintUtilsLib.dbg.json +4 -0
  132. package/build/contracts/src/challengeV2/libraries/UintUtilsLib.sol/UintUtilsLib.json +10 -0
  133. package/build/contracts/src/libraries/AddressAliasHelper.sol/AddressAliasHelper.dbg.json +1 -1
  134. package/build/contracts/src/libraries/AddressAliasHelper.sol/AddressAliasHelper.json +2 -2
  135. package/build/contracts/src/libraries/AdminFallbackProxy.sol/AdminFallbackProxy.dbg.json +1 -1
  136. package/build/contracts/src/libraries/AdminFallbackProxy.sol/AdminFallbackProxy.json +2 -2
  137. package/build/contracts/src/libraries/AdminFallbackProxy.sol/DoubleLogicERC1967Upgrade.dbg.json +1 -1
  138. package/build/contracts/src/libraries/ArbitrumChecker.sol/ArbitrumChecker.dbg.json +1 -1
  139. package/build/contracts/src/libraries/ArbitrumChecker.sol/ArbitrumChecker.json +2 -2
  140. package/build/contracts/src/libraries/CallerChecker.sol/CallerChecker.dbg.json +4 -0
  141. package/build/contracts/src/{challenge/ChallengeLib.sol/ChallengeLib.json → libraries/CallerChecker.sol/CallerChecker.json} +4 -4
  142. package/build/contracts/src/libraries/CryptographyPrimitives.sol/CryptographyPrimitives.dbg.json +1 -1
  143. package/build/contracts/src/libraries/CryptographyPrimitives.sol/CryptographyPrimitives.json +2 -2
  144. package/build/contracts/src/libraries/DecimalsConverterHelper.sol/DecimalsConverterHelper.dbg.json +1 -1
  145. package/build/contracts/src/libraries/DecimalsConverterHelper.sol/DecimalsConverterHelper.json +2 -2
  146. package/build/contracts/src/libraries/DelegateCallAware.sol/DelegateCallAware.dbg.json +1 -1
  147. package/build/contracts/src/libraries/DoubleLogicUUPSUpgradeable.sol/DoubleLogicUUPSUpgradeable.dbg.json +1 -1
  148. package/build/contracts/src/libraries/GasRefundEnabled.sol/GasRefundEnabled.dbg.json +1 -1
  149. package/build/contracts/src/libraries/IGasRefunder.sol/IGasRefunder.dbg.json +1 -1
  150. package/build/contracts/src/libraries/IReader4844.sol/IReader4844.dbg.json +1 -1
  151. package/build/contracts/src/libraries/MerkleLib.sol/MerkleLib.dbg.json +1 -1
  152. package/build/contracts/src/libraries/MerkleLib.sol/MerkleLib.json +2 -2
  153. package/build/contracts/src/libraries/UUPSNotUpgradeable.sol/UUPSNotUpgradeable.dbg.json +1 -1
  154. package/build/contracts/src/mocks/Benchmarks.sol/Benchmarks.dbg.json +1 -1
  155. package/build/contracts/src/mocks/Benchmarks.sol/Benchmarks.json +2 -2
  156. package/build/contracts/src/mocks/BridgeStub.sol/BridgeStub.dbg.json +1 -1
  157. package/build/contracts/src/mocks/BridgeStub.sol/BridgeStub.json +8 -8
  158. package/build/contracts/src/mocks/BridgeUnproxied.sol/BridgeUnproxied.dbg.json +1 -1
  159. package/build/contracts/src/mocks/BridgeUnproxied.sol/BridgeUnproxied.json +15 -2
  160. package/build/contracts/src/mocks/CreateTest.sol/CreateTest.dbg.json +1 -1
  161. package/build/contracts/src/mocks/CreateTest.sol/CreateTest.json +2 -2
  162. package/build/contracts/src/mocks/HostioTest.sol/HostioTest.dbg.json +1 -1
  163. package/build/contracts/src/mocks/HostioTest.sol/HostioTest.json +2 -2
  164. package/build/contracts/src/mocks/InboxStub.sol/InboxStub.dbg.json +1 -1
  165. package/build/contracts/src/mocks/InboxStub.sol/InboxStub.json +2 -2
  166. package/build/contracts/src/mocks/MerkleTreeAccess.sol/MerkleTreeAccess.dbg.json +4 -0
  167. package/build/contracts/src/mocks/MerkleTreeAccess.sol/MerkleTreeAccess.json +227 -0
  168. package/build/contracts/src/mocks/MockRollupEventInbox.sol/MockRollupEventInbox.dbg.json +4 -0
  169. package/build/contracts/src/mocks/MockRollupEventInbox.sol/MockRollupEventInbox.json +133 -0
  170. package/build/contracts/src/mocks/MultiCallTest.sol/MultiCallTest.dbg.json +1 -1
  171. package/build/contracts/src/mocks/MultiCallTest.sol/MultiCallTest.json +2 -2
  172. package/build/contracts/src/mocks/PendingBlkTimeAndNrAdvanceCheck.sol/PendingBlkTimeAndNrAdvanceCheck.dbg.json +1 -1
  173. package/build/contracts/src/mocks/PendingBlkTimeAndNrAdvanceCheck.sol/PendingBlkTimeAndNrAdvanceCheck.json +2 -2
  174. package/build/contracts/src/mocks/Program.sol/ProgramTest.dbg.json +1 -1
  175. package/build/contracts/src/mocks/Program.sol/ProgramTest.json +2 -2
  176. package/build/contracts/src/mocks/ProxyAdminForBinding.sol/ProxyAdminForBinding.dbg.json +1 -1
  177. package/build/contracts/src/mocks/ProxyAdminForBinding.sol/ProxyAdminForBinding.json +2 -2
  178. package/build/contracts/src/mocks/SdkStorage.sol/SdkStorage.dbg.json +1 -1
  179. package/build/contracts/src/mocks/SdkStorage.sol/SdkStorage.json +2 -2
  180. package/build/contracts/src/mocks/SequencerInboxBlobMock.sol/SequencerInboxBlobMock.dbg.json +4 -0
  181. package/build/contracts/src/mocks/SequencerInboxBlobMock.sol/SequencerInboxBlobMock.json +1632 -0
  182. package/build/contracts/src/mocks/SequencerInboxStub.sol/SequencerInboxStub.dbg.json +1 -1
  183. package/build/contracts/src/mocks/SequencerInboxStub.sol/SequencerInboxStub.json +566 -9
  184. package/build/contracts/src/mocks/Simple.sol/Simple.dbg.json +1 -1
  185. package/build/contracts/src/mocks/Simple.sol/Simple.json +2 -2
  186. package/build/contracts/src/mocks/SimpleCacheManager.sol/SimpleCacheManager.dbg.json +1 -1
  187. package/build/contracts/src/mocks/SimpleCacheManager.sol/SimpleCacheManager.json +2 -2
  188. package/build/contracts/src/mocks/SimpleOneStepProofEntry.sol/SimpleOneStepProofEntry.dbg.json +4 -0
  189. package/build/contracts/src/mocks/SimpleOneStepProofEntry.sol/SimpleOneStepProofEntry.json +142 -0
  190. package/build/contracts/src/mocks/SimpleProxy.sol/SimpleProxy.dbg.json +1 -1
  191. package/build/contracts/src/mocks/SimpleProxy.sol/SimpleProxy.json +2 -2
  192. package/build/contracts/src/mocks/TestWETH9.sol/IWETH9.dbg.json +4 -0
  193. package/build/contracts/src/mocks/TestWETH9.sol/IWETH9.json +31 -0
  194. package/build/contracts/src/mocks/TestWETH9.sol/TestWETH9.dbg.json +4 -0
  195. package/build/contracts/src/mocks/TestWETH9.sol/TestWETH9.json +317 -0
  196. package/build/contracts/src/mocks/UpgradeExecutorMock.sol/UpgradeExecutorMock.dbg.json +1 -1
  197. package/build/contracts/src/mocks/UpgradeExecutorMock.sol/UpgradeExecutorMock.json +15 -2
  198. package/build/contracts/src/node-interface/NodeInterface.sol/NodeInterface.dbg.json +1 -1
  199. package/build/contracts/src/node-interface/NodeInterfaceDebug.sol/NodeInterfaceDebug.dbg.json +1 -1
  200. package/build/contracts/src/osp/HashProofHelper.sol/HashProofHelper.dbg.json +1 -1
  201. package/build/contracts/src/osp/HashProofHelper.sol/HashProofHelper.json +2 -2
  202. package/build/contracts/src/osp/IOneStepProofEntry.sol/IOneStepProofEntry.dbg.json +1 -1
  203. package/build/contracts/src/osp/IOneStepProofEntry.sol/IOneStepProofEntry.json +33 -9
  204. package/build/contracts/src/osp/IOneStepProofEntry.sol/OneStepProofEntryLib.dbg.json +1 -1
  205. package/build/contracts/src/osp/IOneStepProofEntry.sol/OneStepProofEntryLib.json +2 -2
  206. package/build/contracts/src/osp/IOneStepProver.sol/IOneStepProver.dbg.json +1 -1
  207. package/build/contracts/src/osp/IOneStepProver.sol/IOneStepProver.json +5 -0
  208. package/build/contracts/src/osp/OneStepProofEntry.sol/OneStepProofEntry.dbg.json +1 -1
  209. package/build/contracts/src/osp/OneStepProofEntry.sol/OneStepProofEntry.json +35 -11
  210. package/build/contracts/src/osp/OneStepProver0.sol/OneStepProver0.dbg.json +1 -1
  211. package/build/contracts/src/osp/OneStepProver0.sol/OneStepProver0.json +7 -2
  212. package/build/contracts/src/osp/OneStepProverHostIo.sol/OneStepProverHostIo.dbg.json +1 -1
  213. package/build/contracts/src/osp/OneStepProverHostIo.sol/OneStepProverHostIo.json +7 -2
  214. package/build/contracts/src/osp/OneStepProverMath.sol/OneStepProverMath.dbg.json +1 -1
  215. package/build/contracts/src/osp/OneStepProverMath.sol/OneStepProverMath.json +7 -2
  216. package/build/contracts/src/osp/OneStepProverMemory.sol/OneStepProverMemory.dbg.json +1 -1
  217. package/build/contracts/src/osp/OneStepProverMemory.sol/OneStepProverMemory.json +7 -2
  218. package/build/contracts/src/precompiles/ArbAddressTable.sol/ArbAddressTable.dbg.json +1 -1
  219. package/build/contracts/src/precompiles/ArbAggregator.sol/ArbAggregator.dbg.json +1 -1
  220. package/build/contracts/src/precompiles/ArbBLS.sol/ArbBLS.dbg.json +1 -1
  221. package/build/contracts/src/precompiles/ArbDebug.sol/ArbDebug.dbg.json +1 -1
  222. package/build/contracts/src/precompiles/ArbFunctionTable.sol/ArbFunctionTable.dbg.json +1 -1
  223. package/build/contracts/src/precompiles/ArbGasInfo.sol/ArbGasInfo.dbg.json +1 -1
  224. package/build/contracts/src/precompiles/ArbInfo.sol/ArbInfo.dbg.json +1 -1
  225. package/build/contracts/src/precompiles/ArbOwner.sol/ArbOwner.dbg.json +1 -1
  226. package/build/contracts/src/precompiles/ArbOwnerPublic.sol/ArbOwnerPublic.dbg.json +1 -1
  227. package/build/contracts/src/precompiles/ArbRetryableTx.sol/ArbRetryableTx.dbg.json +1 -1
  228. package/build/contracts/src/precompiles/ArbStatistics.sol/ArbStatistics.dbg.json +1 -1
  229. package/build/contracts/src/precompiles/ArbSys.sol/ArbSys.dbg.json +1 -1
  230. package/build/contracts/src/precompiles/ArbWasm.sol/ArbWasm.dbg.json +1 -1
  231. package/build/contracts/src/precompiles/ArbWasmCache.sol/ArbWasmCache.dbg.json +1 -1
  232. package/build/contracts/src/precompiles/ArbosActs.sol/ArbosActs.dbg.json +1 -1
  233. package/build/contracts/src/precompiles/ArbosTest.sol/ArbosTest.dbg.json +1 -1
  234. package/build/contracts/src/rollup/AbsRollupEventInbox.sol/AbsRollupEventInbox.dbg.json +1 -1
  235. package/build/contracts/src/rollup/Assertion.sol/AssertionNodeLib.dbg.json +4 -0
  236. package/build/contracts/src/rollup/{Node.sol/NodeLib.json → Assertion.sol/AssertionNodeLib.json} +4 -4
  237. package/build/contracts/src/rollup/AssertionState.sol/AssertionStateLib.dbg.json +4 -0
  238. package/build/contracts/src/{express-lane-auction/Balance.sol/BalanceLib.json → rollup/AssertionState.sol/AssertionStateLib.json} +4 -4
  239. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/BOLDUpgradeAction.dbg.json +4 -0
  240. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/BOLDUpgradeAction.json +807 -0
  241. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/ConstantArrayStorage.dbg.json +4 -0
  242. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/ConstantArrayStorage.json +35 -0
  243. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/IOldRollup.dbg.json +4 -0
  244. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/IOldRollup.json +361 -0
  245. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/IOldRollupAdmin.dbg.json +4 -0
  246. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/IOldRollupAdmin.json +38 -0
  247. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/ISeqInboxPostUpgradeInit.dbg.json +4 -0
  248. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/ISeqInboxPostUpgradeInit.json +41 -0
  249. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/RollupReader.dbg.json +4 -0
  250. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/RollupReader.json +385 -0
  251. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/StateHashPreImageLookup.dbg.json +4 -0
  252. package/build/contracts/src/rollup/BOLDUpgradeAction.sol/StateHashPreImageLookup.json +203 -0
  253. package/build/contracts/src/rollup/BridgeCreator.sol/BridgeCreator.dbg.json +1 -1
  254. package/build/contracts/src/rollup/BridgeCreator.sol/BridgeCreator.json +62 -10
  255. package/build/contracts/src/rollup/DeployHelper.sol/DeployHelper.dbg.json +1 -1
  256. package/build/contracts/src/rollup/DeployHelper.sol/DeployHelper.json +2 -2
  257. package/build/contracts/src/rollup/ERC20RollupEventInbox.sol/ERC20RollupEventInbox.dbg.json +1 -1
  258. package/build/contracts/src/rollup/ERC20RollupEventInbox.sol/ERC20RollupEventInbox.json +2 -2
  259. package/build/contracts/src/rollup/FactoryDeployerHelper.sol/FactoryDeployerHelper.dbg.json +1 -1
  260. package/build/contracts/src/rollup/FactoryDeployerHelper.sol/FactoryDeployerHelper.json +2 -2
  261. package/build/contracts/src/rollup/FactoryDeployerHelper.sol/IDeployHelper.dbg.json +1 -1
  262. package/build/contracts/src/rollup/FactoryDeployerHelper.sol/IERC20.dbg.json +1 -1
  263. package/build/contracts/src/rollup/FactoryDeployerHelper.sol/IERC20Bridge.dbg.json +1 -1
  264. package/build/contracts/src/rollup/FactoryDeployerHelper.sol/IInboxBase.dbg.json +1 -1
  265. package/build/contracts/src/rollup/IRollupAdmin.sol/IRollupAdmin.dbg.json +1 -1
  266. package/build/contracts/src/rollup/IRollupAdmin.sol/IRollupAdmin.json +473 -99
  267. package/build/contracts/src/rollup/IRollupCore.sol/IRollupCore.dbg.json +1 -1
  268. package/build/contracts/src/rollup/IRollupCore.sol/IRollupCore.json +315 -221
  269. package/build/contracts/src/rollup/IRollupEventInbox.sol/IRollupEventInbox.dbg.json +1 -1
  270. package/build/contracts/src/rollup/IRollupLogic.sol/IRollupUser.dbg.json +1 -1
  271. package/build/contracts/src/rollup/IRollupLogic.sol/IRollupUser.json +678 -499
  272. package/build/contracts/src/rollup/RollupAdminLogic.sol/RollupAdminLogic.dbg.json +1 -1
  273. package/build/contracts/src/rollup/RollupAdminLogic.sol/RollupAdminLogic.json +806 -435
  274. package/build/contracts/src/rollup/RollupCore.sol/RollupCore.dbg.json +1 -1
  275. package/build/contracts/src/rollup/RollupCore.sol/RollupCore.json +323 -235
  276. package/build/contracts/src/rollup/RollupCreator.sol/RollupCreator.dbg.json +1 -1
  277. package/build/contracts/src/rollup/RollupCreator.sol/RollupCreator.json +98 -36
  278. package/build/contracts/src/rollup/RollupEventInbox.sol/RollupEventInbox.dbg.json +1 -1
  279. package/build/contracts/src/rollup/RollupEventInbox.sol/RollupEventInbox.json +2 -2
  280. package/build/contracts/src/rollup/RollupLib.sol/RollupLib.dbg.json +1 -1
  281. package/build/contracts/src/rollup/RollupLib.sol/RollupLib.json +2 -2
  282. package/build/contracts/src/rollup/RollupProxy.sol/RollupProxy.dbg.json +1 -1
  283. package/build/contracts/src/rollup/RollupProxy.sol/RollupProxy.json +97 -16
  284. package/build/contracts/src/rollup/RollupUserLogic.sol/RollupUserLogic.dbg.json +1 -1
  285. package/build/contracts/src/rollup/RollupUserLogic.sol/RollupUserLogic.json +924 -535
  286. package/build/contracts/src/rollup/ValidatorWallet.sol/ValidatorWallet.dbg.json +1 -1
  287. package/build/contracts/src/rollup/ValidatorWallet.sol/ValidatorWallet.json +15 -43
  288. package/build/contracts/src/rollup/ValidatorWalletCreator.sol/ValidatorWalletCreator.dbg.json +1 -1
  289. package/build/contracts/src/rollup/ValidatorWalletCreator.sol/ValidatorWalletCreator.json +2 -2
  290. package/build/contracts/src/state/Deserialize.sol/Deserialize.dbg.json +1 -1
  291. package/build/contracts/src/state/Deserialize.sol/Deserialize.json +2 -2
  292. package/build/contracts/src/state/GlobalState.sol/GlobalStateLib.dbg.json +1 -1
  293. package/build/contracts/src/state/GlobalState.sol/GlobalStateLib.json +2 -2
  294. package/build/contracts/src/state/Instructions.sol/Instructions.dbg.json +1 -1
  295. package/build/contracts/src/state/Instructions.sol/Instructions.json +2 -2
  296. package/build/contracts/src/state/Machine.sol/MachineLib.dbg.json +1 -1
  297. package/build/contracts/src/state/Machine.sol/MachineLib.json +2 -2
  298. package/build/contracts/src/state/MerkleProof.sol/MerkleProofLib.dbg.json +1 -1
  299. package/build/contracts/src/state/MerkleProof.sol/MerkleProofLib.json +2 -2
  300. package/build/contracts/src/state/Module.sol/ModuleLib.dbg.json +1 -1
  301. package/build/contracts/src/state/Module.sol/ModuleLib.json +2 -2
  302. package/build/contracts/src/state/ModuleMemory.sol/ModuleMemoryLib.dbg.json +1 -1
  303. package/build/contracts/src/state/ModuleMemory.sol/ModuleMemoryLib.json +2 -2
  304. package/build/contracts/src/state/ModuleMemoryCompact.sol/ModuleMemoryCompactLib.dbg.json +1 -1
  305. package/build/contracts/src/state/ModuleMemoryCompact.sol/ModuleMemoryCompactLib.json +2 -2
  306. package/build/contracts/src/state/MultiStack.sol/MultiStackLib.dbg.json +1 -1
  307. package/build/contracts/src/state/MultiStack.sol/MultiStackLib.json +2 -2
  308. package/build/contracts/src/state/PcArray.sol/PcArrayLib.dbg.json +1 -1
  309. package/build/contracts/src/state/PcArray.sol/PcArrayLib.json +2 -2
  310. package/build/contracts/src/state/StackFrame.sol/StackFrameLib.dbg.json +1 -1
  311. package/build/contracts/src/state/StackFrame.sol/StackFrameLib.json +2 -2
  312. package/build/contracts/src/state/Value.sol/ValueLib.dbg.json +1 -1
  313. package/build/contracts/src/state/Value.sol/ValueLib.json +2 -2
  314. package/build/contracts/src/state/ValueArray.sol/ValueArrayLib.dbg.json +1 -1
  315. package/build/contracts/src/state/ValueArray.sol/ValueArrayLib.json +2 -2
  316. package/build/contracts/src/state/ValueStack.sol/ValueStackLib.dbg.json +1 -1
  317. package/build/contracts/src/state/ValueStack.sol/ValueStackLib.json +2 -2
  318. package/build/contracts/src/test-helpers/BridgeTester.sol/BridgeTester.dbg.json +1 -1
  319. package/build/contracts/src/test-helpers/BridgeTester.sol/BridgeTester.json +15 -2
  320. package/build/contracts/src/test-helpers/CryptographyPrimitivesTester.sol/CryptographyPrimitivesTester.dbg.json +1 -1
  321. package/build/contracts/src/test-helpers/CryptographyPrimitivesTester.sol/CryptographyPrimitivesTester.json +2 -2
  322. package/build/contracts/src/test-helpers/EthVault.sol/EthVault.dbg.json +1 -1
  323. package/build/contracts/src/test-helpers/EthVault.sol/EthVault.json +2 -2
  324. package/build/contracts/src/test-helpers/MessageTester.sol/MessageTester.dbg.json +1 -1
  325. package/build/contracts/src/test-helpers/MessageTester.sol/MessageTester.json +2 -2
  326. package/build/contracts/src/test-helpers/OutboxWithoutOptTester.sol/OutboxWithoutOptTester.dbg.json +1 -1
  327. package/build/contracts/src/test-helpers/OutboxWithoutOptTester.sol/OutboxWithoutOptTester.json +2 -2
  328. package/build/contracts/src/test-helpers/RollupMock.sol/RollupMock.dbg.json +1 -1
  329. package/build/contracts/src/test-helpers/RollupMock.sol/RollupMock.json +2 -15
  330. package/build/contracts/src/test-helpers/TestToken.sol/TestToken.dbg.json +1 -1
  331. package/build/contracts/src/test-helpers/TestToken.sol/TestToken.json +2 -2
  332. package/build/contracts/src/test-helpers/ValueArrayTester.sol/ValueArrayTester.dbg.json +1 -1
  333. package/build/contracts/src/test-helpers/ValueArrayTester.sol/ValueArrayTester.json +2 -2
  334. package/out/yul/Reader4844.yul/Reader4844.json +1 -1
  335. package/package.json +11 -4
  336. package/src/assertionStakingPool/AbsBoldStakingPool.sol +66 -0
  337. package/src/assertionStakingPool/AssertionStakingPool.sol +70 -0
  338. package/src/assertionStakingPool/AssertionStakingPoolCreator.sol +35 -0
  339. package/src/assertionStakingPool/EdgeStakingPool.sol +57 -0
  340. package/src/assertionStakingPool/EdgeStakingPoolCreator.sol +34 -0
  341. package/src/assertionStakingPool/StakingPoolCreatorUtils.sol +25 -0
  342. package/src/assertionStakingPool/interfaces/IAbsBoldStakingPool.sol +41 -0
  343. package/src/assertionStakingPool/interfaces/IAssertionStakingPool.sol +36 -0
  344. package/src/assertionStakingPool/interfaces/IAssertionStakingPoolCreator.sol +31 -0
  345. package/src/assertionStakingPool/interfaces/IEdgeStakingPool.sol +27 -0
  346. package/src/assertionStakingPool/interfaces/IEdgeStakingPoolCreator.sol +28 -0
  347. package/src/bridge/AbsBridge.sol +38 -48
  348. package/src/bridge/AbsInbox.sol +89 -92
  349. package/src/bridge/AbsOutbox.sol +23 -37
  350. package/src/bridge/Bridge.sol +6 -4
  351. package/src/bridge/DelayBuffer.sol +123 -0
  352. package/src/bridge/DelayBufferTypes.sol +38 -0
  353. package/src/bridge/ERC20Bridge.sol +8 -4
  354. package/src/bridge/ERC20Inbox.sol +46 -53
  355. package/src/bridge/ERC20Outbox.sol +7 -3
  356. package/src/bridge/GasRefunder.sol +38 -24
  357. package/src/bridge/IBridge.sol +30 -21
  358. package/src/bridge/IERC20Bridge.sol +1 -1
  359. package/src/bridge/IERC20Inbox.sol +4 -2
  360. package/src/bridge/IEthBridge.sol +4 -2
  361. package/src/bridge/IInbox.sol +4 -2
  362. package/src/bridge/IInboxBase.sol +16 -8
  363. package/src/bridge/IOutbox.sol +13 -8
  364. package/src/bridge/ISequencerInbox.sol +118 -13
  365. package/src/bridge/Inbox.sol +134 -151
  366. package/src/bridge/Messages.sol +48 -18
  367. package/src/bridge/Outbox.sol +6 -2
  368. package/src/bridge/SequencerInbox.sol +343 -279
  369. package/src/chain/CacheManager.sol +49 -18
  370. package/src/challengeV2/EdgeChallengeManager.sol +559 -0
  371. package/src/challengeV2/IAssertionChain.sol +39 -0
  372. package/src/challengeV2/IEdgeChallengeManager.sol +233 -0
  373. package/src/challengeV2/libraries/ArrayUtilsLib.sol +61 -0
  374. package/src/challengeV2/libraries/ChallengeEdgeLib.sol +277 -0
  375. package/src/challengeV2/libraries/ChallengeErrors.sol +108 -0
  376. package/src/challengeV2/libraries/EdgeChallengeManagerLib.sol +819 -0
  377. package/src/challengeV2/libraries/Enums.sol +26 -0
  378. package/src/challengeV2/libraries/MerkleTreeAccumulatorLib.sol +390 -0
  379. package/src/challengeV2/libraries/Structs.sol +176 -0
  380. package/src/challengeV2/libraries/UintUtilsLib.sol +74 -0
  381. package/src/libraries/AddressAliasHelper.sol +6 -2
  382. package/src/libraries/AdminFallbackProxy.sol +8 -4
  383. package/src/libraries/ArbitrumChecker.sol +3 -4
  384. package/src/libraries/CallerChecker.sol +18 -0
  385. package/src/libraries/CryptographyPrimitives.sol +39 -46
  386. package/src/libraries/DecimalsConverterHelper.sol +2 -4
  387. package/src/libraries/DoubleLogicUUPSUpgradeable.sol +10 -7
  388. package/src/libraries/Error.sol +21 -3
  389. package/src/libraries/GasRefundEnabled.sol +5 -6
  390. package/src/libraries/MerkleLib.sol +6 -5
  391. package/src/libraries/UUPSNotUpgradeable.sol +2 -4
  392. package/src/mocks/BridgeStub.sol +50 -48
  393. package/src/mocks/CreateTest.sol +3 -1
  394. package/src/mocks/HostioTest.sol +20 -16
  395. package/src/mocks/InboxStub.sol +22 -17
  396. package/src/mocks/MerkleTreeAccess.sol +72 -0
  397. package/src/mocks/MockRollupEventInbox.sol +59 -0
  398. package/src/mocks/MultiCallTest.sol +3 -1
  399. package/src/mocks/PendingBlkTimeAndNrAdvanceCheck.sol +3 -1
  400. package/src/mocks/Program.sol +9 -7
  401. package/src/mocks/SequencerInboxBlobMock.sol +38 -0
  402. package/src/mocks/SequencerInboxStub.sol +9 -12
  403. package/src/mocks/Simple.sol +13 -25
  404. package/src/mocks/SimpleCacheManager.sol +10 -3
  405. package/src/mocks/SimpleOneStepProofEntry.sol +60 -0
  406. package/src/mocks/SimpleProxy.sol +3 -1
  407. package/src/mocks/TestWETH9.sol +30 -0
  408. package/src/mocks/UpgradeExecutorMock.sol +10 -17
  409. package/src/node-interface/NodeInterface.sol +23 -22
  410. package/src/node-interface/NodeInterfaceDebug.sol +5 -3
  411. package/src/osp/HashProofHelper.sol +9 -10
  412. package/src/osp/IOneStepProofEntry.sol +14 -9
  413. package/src/osp/IOneStepProver.sol +1 -0
  414. package/src/osp/OneStepProofEntry.sol +63 -54
  415. package/src/osp/OneStepProver0.sol +14 -27
  416. package/src/osp/OneStepProverHostIo.sol +31 -58
  417. package/src/osp/OneStepProverMath.sol +15 -23
  418. package/src/osp/OneStepProverMemory.sol +9 -23
  419. package/src/precompiles/ArbAddressTable.sol +19 -9
  420. package/src/precompiles/ArbAggregator.sol +12 -4
  421. package/src/precompiles/ArbBLS.sol +1 -3
  422. package/src/precompiles/ArbDebug.sol +5 -11
  423. package/src/precompiles/ArbFunctionTable.sol +7 -10
  424. package/src/precompiles/ArbGasInfo.sol +9 -43
  425. package/src/precompiles/ArbInfo.sol +6 -2
  426. package/src/precompiles/ArbOwner.sol +101 -34
  427. package/src/precompiles/ArbOwnerPublic.sol +6 -2
  428. package/src/precompiles/ArbRetryableTx.sol +15 -5
  429. package/src/precompiles/ArbStatistics.sol +1 -8
  430. package/src/precompiles/ArbSys.sol +16 -18
  431. package/src/precompiles/ArbWasm.sol +24 -14
  432. package/src/precompiles/ArbWasmCache.sol +15 -5
  433. package/src/precompiles/ArbosTest.sol +3 -1
  434. package/src/rollup/AbsRollupEventInbox.sol +15 -16
  435. package/src/rollup/Assertion.sol +100 -0
  436. package/src/rollup/AssertionState.sol +29 -0
  437. package/src/rollup/BOLDUpgradeAction.sol +631 -0
  438. package/src/rollup/BridgeCreator.sol +42 -15
  439. package/src/rollup/Config.sol +15 -7
  440. package/src/rollup/DeployHelper.sol +12 -31
  441. package/src/rollup/ERC20RollupEventInbox.sol +8 -9
  442. package/src/rollup/FactoryDeployerHelper.sol +8 -10
  443. package/src/rollup/IRollupAdmin.sol +127 -45
  444. package/src/rollup/IRollupCore.sol +64 -84
  445. package/src/rollup/IRollupEventInbox.sol +3 -1
  446. package/src/rollup/IRollupLogic.sol +35 -72
  447. package/src/rollup/RollupAdminLogic.sol +224 -203
  448. package/src/rollup/RollupCore.sol +407 -428
  449. package/src/rollup/RollupCreator.sol +84 -71
  450. package/src/rollup/RollupEventInbox.sol +7 -7
  451. package/src/rollup/RollupLib.sol +50 -86
  452. package/src/rollup/RollupProxy.sol +8 -12
  453. package/src/rollup/RollupUserLogic.sol +279 -644
  454. package/src/rollup/ValidatorUtils.sol +0 -242
  455. package/src/rollup/ValidatorWallet.sol +22 -38
  456. package/src/rollup/ValidatorWalletCreator.sol +8 -8
  457. package/src/state/Deserialize.sol +74 -96
  458. package/src/state/GlobalState.sol +74 -20
  459. package/src/state/Instructions.sol +4 -3
  460. package/src/state/Machine.sol +18 -19
  461. package/src/state/Module.sol +14 -13
  462. package/src/state/ModuleMemory.sol +6 -25
  463. package/src/state/ModuleMemoryCompact.sol +3 -1
  464. package/src/state/MultiStack.sol +16 -20
  465. package/src/state/PcArray.sol +7 -7
  466. package/src/state/StackFrame.sol +21 -14
  467. package/src/state/Value.sol +18 -6
  468. package/src/state/ValueArray.sol +7 -7
  469. package/src/state/ValueStack.sol +9 -3
  470. package/src/test-helpers/BridgeTester.sol +32 -42
  471. package/src/test-helpers/CryptographyPrimitivesTester.sol +12 -13
  472. package/src/test-helpers/EthVault.sol +4 -2
  473. package/src/test-helpers/InterfaceCompatibilityTester.sol +1 -1
  474. package/src/test-helpers/MessageTester.sol +3 -10
  475. package/src/test-helpers/OutboxWithoutOptTester.sol +12 -19
  476. package/src/test-helpers/RollupMock.sol +3 -7
  477. package/src/test-helpers/TestToken.sol +4 -2
  478. package/build/contracts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.dbg.json +0 -4
  479. package/build/contracts/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol/AccessControlEnumerableUpgradeable.dbg.json +0 -4
  480. package/build/contracts/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol/AccessControlEnumerableUpgradeable.json +0 -258
  481. package/build/contracts/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable.sol/IAccessControlEnumerableUpgradeable.dbg.json +0 -4
  482. package/build/contracts/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable.sol/IAccessControlEnumerableUpgradeable.json +0 -226
  483. package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.dbg.json +0 -4
  484. package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.json +0 -281
  485. package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +0 -4
  486. package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol/ERC20BurnableUpgradeable.dbg.json +0 -4
  487. package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol/ERC20BurnableUpgradeable.json +0 -312
  488. package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol/IERC20MetadataUpgradeable.dbg.json +0 -4
  489. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol/ECDSAUpgradeable.dbg.json +0 -4
  490. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol/ECDSAUpgradeable.json +0 -10
  491. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol/EIP712Upgradeable.dbg.json +0 -4
  492. package/build/contracts/@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol/EIP712Upgradeable.json +0 -10
  493. package/build/contracts/src/challenge/ChallengeLib.sol/ChallengeLib.dbg.json +0 -4
  494. package/build/contracts/src/challenge/ChallengeManager.sol/ChallengeManager.dbg.json +0 -4
  495. package/build/contracts/src/challenge/ChallengeManager.sol/ChallengeManager.json +0 -746
  496. package/build/contracts/src/challenge/IChallengeManager.sol/IChallengeManager.dbg.json +0 -4
  497. package/build/contracts/src/challenge/IChallengeManager.sol/IChallengeManager.json +0 -441
  498. package/build/contracts/src/challenge/IChallengeResultReceiver.sol/IChallengeResultReceiver.dbg.json +0 -4
  499. package/build/contracts/src/challenge/IChallengeResultReceiver.sol/IChallengeResultReceiver.json +0 -34
  500. package/build/contracts/src/express-lane-auction/Balance.sol/BalanceLib.dbg.json +0 -4
  501. package/build/contracts/src/express-lane-auction/Burner.sol/Burner.dbg.json +0 -4
  502. package/build/contracts/src/express-lane-auction/Burner.sol/Burner.json +0 -47
  503. package/build/contracts/src/express-lane-auction/ELCRound.sol/LatestELCRoundsLib.dbg.json +0 -4
  504. package/build/contracts/src/express-lane-auction/ExpressLaneAuction.sol/ExpressLaneAuction.dbg.json +0 -4
  505. package/build/contracts/src/express-lane-auction/ExpressLaneAuction.sol/ExpressLaneAuction.json +0 -1588
  506. package/build/contracts/src/express-lane-auction/IExpressLaneAuction.sol/IExpressLaneAuction.dbg.json +0 -4
  507. package/build/contracts/src/express-lane-auction/IExpressLaneAuction.sol/IExpressLaneAuction.json +0 -1296
  508. package/build/contracts/src/express-lane-auction/RoundTimingInfo.sol/RoundTimingInfoLib.dbg.json +0 -4
  509. package/build/contracts/src/express-lane-auction/RoundTimingInfo.sol/RoundTimingInfoLib.json +0 -10
  510. package/build/contracts/src/mocks/MockResultReceiver.sol/MockResultReceiver.dbg.json +0 -4
  511. package/build/contracts/src/mocks/MockResultReceiver.sol/MockResultReceiver.json +0 -188
  512. package/build/contracts/src/mocks/SingleExecutionChallenge.sol/SingleExecutionChallenge.dbg.json +0 -4
  513. package/build/contracts/src/mocks/SingleExecutionChallenge.sol/SingleExecutionChallenge.json +0 -797
  514. package/build/contracts/src/mocks/TimedOutChallengeManager.sol/TimedOutChallengeManager.dbg.json +0 -4
  515. package/build/contracts/src/mocks/TimedOutChallengeManager.sol/TimedOutChallengeManager.json +0 -746
  516. package/build/contracts/src/rollup/IRollupLogic.sol/IRollupUserAbs.dbg.json +0 -4
  517. package/build/contracts/src/rollup/IRollupLogic.sol/IRollupUserAbs.json +0 -1332
  518. package/build/contracts/src/rollup/IRollupLogic.sol/IRollupUserERC20.dbg.json +0 -4
  519. package/build/contracts/src/rollup/IRollupLogic.sol/IRollupUserERC20.json +0 -1466
  520. package/build/contracts/src/rollup/Node.sol/NodeLib.dbg.json +0 -4
  521. package/build/contracts/src/rollup/RollupUserLogic.sol/AbsRollupUserLogic.dbg.json +0 -4
  522. package/build/contracts/src/rollup/RollupUserLogic.sol/AbsRollupUserLogic.json +0 -1614
  523. package/build/contracts/src/rollup/RollupUserLogic.sol/ERC20RollupUserLogic.dbg.json +0 -4
  524. package/build/contracts/src/rollup/RollupUserLogic.sol/ERC20RollupUserLogic.json +0 -1748
  525. package/build/contracts/src/rollup/ValidatorUtils.sol/ValidatorUtils.dbg.json +0 -4
  526. package/build/contracts/src/rollup/ValidatorUtils.sol/ValidatorUtils.json +0 -379
  527. package/src/challenge/ChallengeLib.sol +0 -88
  528. package/src/challenge/ChallengeManager.sol +0 -375
  529. package/src/challenge/IChallengeManager.sol +0 -86
  530. package/src/challenge/IChallengeResultReceiver.sol +0 -13
  531. package/src/express-lane-auction/Balance.sol +0 -142
  532. package/src/express-lane-auction/Burner.sol +0 -25
  533. package/src/express-lane-auction/ELCRound.sol +0 -73
  534. package/src/express-lane-auction/Errors.sol +0 -31
  535. package/src/express-lane-auction/ExpressLaneAuction.sol +0 -565
  536. package/src/express-lane-auction/IExpressLaneAuction.sol +0 -421
  537. package/src/express-lane-auction/RoundTimingInfo.sol +0 -115
  538. package/src/mocks/MockResultReceiver.sol +0 -59
  539. package/src/mocks/SingleExecutionChallenge.sol +0 -41
  540. package/src/mocks/TimedOutChallengeManager.sol +0 -13
  541. package/src/rollup/Node.sol +0 -113
@@ -1,421 +0,0 @@
1
- // SPDX-License-Identifier: BUSL-1.1
2
- pragma solidity ^0.8.0;
3
-
4
- import {IERC20} from "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
5
- import {RoundTimingInfo} from "./RoundTimingInfo.sol";
6
- import {ELCRound} from "./ELCRound.sol";
7
- import {
8
- IAccessControlEnumerableUpgradeable
9
- } from "@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable.sol";
10
- import {
11
- IERC165Upgradeable
12
- } from "@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol";
13
-
14
- /// @notice A bid to control the express lane for a specific round
15
- struct Bid {
16
- /// @notice The address to be set as the express lane controller if this bid wins the auction round
17
- address expressLaneController;
18
- /// @notice The maximum amount the bidder is willing to pay if they win the round
19
- /// The auction is a second price auction, so the winner may end up paying less than this amount
20
- /// however this is the maximum amount up to which they may have to pay
21
- uint256 amount;
22
- /// @notice Authentication of this bid by the bidder.
23
- /// The bidder signs over a hash of the following
24
- /// keccak256("\x19Ethereum Signed Message:\n144" ++ keccak256("TIMEBOOST_BID") ++ chainId ++ auctionContractAddress ++ auctionRound ++ bidAmount ++ expressLaneController)
25
- bytes signature;
26
- }
27
-
28
- /// @notice Sets a transferor for an express lane controller
29
- /// The transferor is an address that will have the right to transfer express lane controller rights
30
- /// on behalf an express lane controller.
31
- struct Transferor {
32
- /// @notice The address of the transferor
33
- address addr;
34
- /// @notice The express lane controller can choose to fix the transferor until a future round number
35
- /// This gives them ability to guarantee to other parties that they will not change transferor during an ongoing round
36
- /// The express lane controller can ignore this feature by setting this value to 0.
37
- uint64 fixedUntilRound;
38
- }
39
-
40
- /// @notice The arguments used to initialize an express lane auction
41
- struct InitArgs {
42
- /// @notice The address who can resolve auctions
43
- address _auctioneer;
44
- /// @notice The ERC20 token that bids will be made in
45
- /// It is assumed that this token does NOT have fee-on-transfer, rebasing,
46
- /// transfer hooks or otherwise non-standard ERC20 logic.
47
- address _biddingToken;
48
- /// @notice The address to which auction winners will pay the bid
49
- address _beneficiary;
50
- /// @notice Round timing components: offset, auction closing, round duration, reserve submission
51
- RoundTimingInfo _roundTimingInfo;
52
- /// @notice The minimum reserve price, also used to set the initial reserve price
53
- uint256 _minReservePrice;
54
- /// @notice Can update the auctioneer address
55
- address _auctioneerAdmin;
56
- /// @notice The address given the rights to change the min reserve price
57
- address _minReservePriceSetter;
58
- /// @notice The address given the rights to change the reserve price
59
- address _reservePriceSetter;
60
- /// @notice Can update the reserve price setter address
61
- address _reservePriceSetterAdmin;
62
- /// @notice The address given the rights to change the beneficiary address
63
- address _beneficiarySetter;
64
- /// @notice _roundTimingSetter The address given the rights to update the round timing info
65
- address _roundTimingSetter;
66
- /// @notice The admin that can manage all the admin roles in the contract
67
- address _masterAdmin;
68
- }
69
-
70
- interface IExpressLaneAuction is IAccessControlEnumerableUpgradeable, IERC165Upgradeable {
71
- /// @notice An account has deposited funds to be used for bidding in the auction
72
- /// @param account The account that deposited funds
73
- /// @param amount The amount deposited by that account
74
- event Deposit(address indexed account, uint256 amount);
75
-
76
- /// @notice An account has initiated a withdrawal of funds from the auction
77
- /// @param account The account withdrawing the funds
78
- /// @param withdrawalAmount The amount beind withdrawn
79
- /// @param roundWithdrawable The round the funds will become withdrawable in
80
- event WithdrawalInitiated(
81
- address indexed account,
82
- uint256 withdrawalAmount,
83
- uint256 roundWithdrawable
84
- );
85
-
86
- /// @notice An account has finalized a withdrawal
87
- /// @param account The account that finalized the withdrawal
88
- /// @param withdrawalAmount The amount that was withdrawn
89
- event WithdrawalFinalized(address indexed account, uint256 withdrawalAmount);
90
-
91
- /// @notice An auction was resolved and a new express lane controller was set
92
- /// @param isMultiBidAuction Whether there was more than one bid in the auction
93
- /// @param round The round for which the rights were being auctioned
94
- /// @param firstPriceBidder The bidder who won the auction
95
- /// @param firstPriceExpressLaneController The address that will have express lane control in the specified round
96
- /// @param firstPriceAmount The price in the winning bid
97
- /// @param price The price paid by the winning bidder
98
- /// @param roundStartTimestamp The time at which the round will start
99
- /// @param roundEndTimestamp The time at which the round will end
100
- event AuctionResolved(
101
- bool indexed isMultiBidAuction,
102
- uint64 round,
103
- address indexed firstPriceBidder,
104
- address indexed firstPriceExpressLaneController,
105
- uint256 firstPriceAmount,
106
- uint256 price,
107
- uint64 roundStartTimestamp,
108
- uint64 roundEndTimestamp
109
- );
110
-
111
- /// @notice A new express lane controller was set
112
- /// @param round The round which the express lane controller will control
113
- /// @param previousExpressLaneController The previous express lane controller
114
- /// @param newExpressLaneController The new express lane controller
115
- /// @param transferor The address that transferored the controller rights. The transferor if set, otherwise the express lane controller
116
- /// @param startTimestamp The timestamp at which the new express lane controller takes over
117
- /// @param endTimestamp The timestamp at which the new express lane controller's rights are expected to cease. They can cease earlier if
118
- /// if they are transfered before the end of the round
119
- event SetExpressLaneController(
120
- uint64 round,
121
- address indexed previousExpressLaneController,
122
- address indexed newExpressLaneController,
123
- address indexed transferor,
124
- uint64 startTimestamp,
125
- uint64 endTimestamp
126
- );
127
-
128
- /// @notice A new transferor has been set for
129
- /// @param expressLaneController The express lane controller that has a transferor
130
- /// @param transferor The transferor chosen
131
- /// @param fixedUntilRound The round until which this transferor is fixed for this controller
132
- event SetTransferor(
133
- address indexed expressLaneController,
134
- address indexed transferor,
135
- uint64 fixedUntilRound
136
- );
137
-
138
- /// @notice The minimum reserve price was set
139
- /// @param oldPrice The previous minimum reserve price
140
- /// @param newPrice The new minimum reserve price
141
- event SetMinReservePrice(uint256 oldPrice, uint256 newPrice);
142
-
143
- /// @notice A new reserve price was set
144
- /// @param oldReservePrice Previous reserve price
145
- /// @param newReservePrice New reserve price
146
- event SetReservePrice(uint256 oldReservePrice, uint256 newReservePrice);
147
-
148
- /// @notice A new beneficiary was set
149
- /// @param oldBeneficiary The previous beneficiary
150
- /// @param newBeneficiary The new beneficiary
151
- event SetBeneficiary(address oldBeneficiary, address newBeneficiary);
152
-
153
- /// @notice A new round timing info has been set
154
- /// @param currentRound The round during which the timing info was set
155
- /// @param offsetTimestamp The new offset timestamp
156
- /// @param roundDurationSeconds The new round duration seconds
157
- /// @param auctionClosingSeconds The new auction closing seconds
158
- /// @param reserveSubmissionSeconds The new reserve submission seconds
159
- event SetRoundTimingInfo(
160
- uint64 currentRound,
161
- int64 offsetTimestamp,
162
- uint64 roundDurationSeconds,
163
- uint64 auctionClosingSeconds,
164
- uint64 reserveSubmissionSeconds
165
- );
166
-
167
- /// @notice The role given to the address that can resolve auctions
168
- function AUCTIONEER_ROLE() external returns (bytes32);
169
-
170
- /// @notice The role that administers AUCTIONEER_ROLE
171
- function AUCTIONEER_ADMIN_ROLE() external returns (bytes32);
172
-
173
- /// @notice The role given to the address that can set the minimum reserve
174
- function MIN_RESERVE_SETTER_ROLE() external returns (bytes32);
175
-
176
- /// @notice The role given to the address that can set the reserve
177
- function RESERVE_SETTER_ROLE() external returns (bytes32);
178
-
179
- /// @notice The role that administers the RESERVE_SETTER_ROLE
180
- function RESERVE_SETTER_ADMIN_ROLE() external returns (bytes32);
181
-
182
- /// @notice The role given to the address that can set the beneficiary
183
- function BENEFICIARY_SETTER_ROLE() external returns (bytes32);
184
-
185
- /// @notice The role given to addresses that can set round timing info
186
- function ROUND_TIMING_SETTER_ROLE() external returns (bytes32);
187
-
188
- /// @notice The beneficiary who receives the funds that are paid by the auction winners
189
- function beneficiary() external returns (address);
190
-
191
- /// @notice The ERC20 token that can be used for bidding
192
- /// It is assumed that the this token does NOT have fee-on-transfer, rebasing,
193
- /// transfer hooks or otherwise non-standard ERC20 logic.
194
- function biddingToken() external returns (IERC20);
195
-
196
- /// @notice The reserve price for the auctions. The reserve price setter can update this value
197
- /// to ensure that controlling rights are auctioned off at a reasonable value
198
- function reservePrice() external returns (uint256);
199
-
200
- /// @notice The minimum amount the reserve can be set to. This ensures that reserve prices cannot be
201
- /// set too low
202
- function minReservePrice() external returns (uint256);
203
-
204
- /// @notice Returns the currently unflushed balance of the beneficiary
205
- /// Anyone can call flushBalance to transfer this balance from the auction to the beneficiary
206
- /// This is a gas optimisation to avoid making a transfer every time an auction is resolved
207
- function beneficiaryBalance() external returns (uint256);
208
-
209
- /// @notice Express lane controllers can optionally set a transferor address that has the rights
210
- /// to transfer their controller rights. This function returns the transferor if one has been set
211
- /// Returns the transferor for the supplied controller, and the round until which this
212
- /// transferor is fixed if set.
213
- function transferorOf(address expressLaneController)
214
- external
215
- returns (address addr, uint64 fixedUntil);
216
-
217
- /// @notice Initialize the auction
218
- /// @param args Initialization parameters
219
- function initialize(InitArgs memory args) external;
220
-
221
- /// @notice Round timing components: offset, auction closing, round duration and reserve submission
222
- function roundTimingInfo()
223
- external
224
- view
225
- returns (
226
- int64 offsetTimestamp,
227
- uint64 roundDurationSeconds,
228
- uint64 auctionClosingSeconds,
229
- uint64 reserveSubmissionSeconds
230
- );
231
-
232
- /// @notice The current auction round that we're in
233
- /// Bidding for control of the next round occurs in the current round
234
- function currentRound() external view returns (uint64);
235
-
236
- /// @notice Is the current auction round closed for bidding
237
- /// After the round has closed the auctioneer can resolve it with the highest bids
238
- /// Note. This can change unexpectedly if a round timing info is updated
239
- function isAuctionRoundClosed() external view returns (bool);
240
-
241
- /// @notice The auction reserve cannot be updated during the blackout period
242
- /// This starts ReserveSubmissionSeconds before the round closes and ends when the round is resolved, or the round ends
243
- /// Note. This can change unexpectedly if a round timing info is updated
244
- function isReserveBlackout() external view returns (bool);
245
-
246
- /// @notice Gets the start and end timestamps for a given round
247
- /// This only returns the start and end timestamps given the current round timing info, which can be updated
248
- /// Historical round timestamp can be found by checking the logs for round timing info updates, or by looking
249
- /// at the timing info emitted in events from resolved auctions
250
- /// Since it is possible to set a negative offset, the start and end time may also be negative
251
- /// In this case requesting roundTimestamps will revert.
252
- /// @param round The round to find the timestamps for
253
- /// @return start The start of the round in seconds, inclusive
254
- /// @return end The end of the round in seconds, inclusive
255
- function roundTimestamps(uint64 round) external view returns (uint64 start, uint64 end);
256
-
257
- /// @notice Update the beneficiary to a new address
258
- /// Setting the beneficiary does not flush any pending balance, so anyone calling this function should consider
259
- /// whether they want to flush before calling set.
260
- /// It is expected that the DAO will have the rights to set beneficiary, and since they execute calls via
261
- /// action contract they can atomically call flush and set beneficiary together.
262
- /// @param newBeneficiary The new beneficiary
263
- function setBeneficiary(address newBeneficiary) external;
264
-
265
- /// @notice Set the minimum reserve. The reserve cannot be set below this value
266
- /// Having a minimum reserve ensures that the reserve setter doesn't set the reserve too low
267
- /// If the new minimum reserve is greater than the current reserve then the reserve will also be set,
268
- /// this will happen regardless of whether we are in a reserve blackout period or not.
269
- /// The min reserve setter is therefore trusted to either give bidders plenty of notice that they may change the min
270
- /// reserve, or do so outside of the blackout window. It is expected that the min reserve setter will be controlled by
271
- /// Arbitrum DAO who can only make changes via timelocks, thereby providing the notice to bidders.
272
- /// If the new minimum reserve is set to a very high value eg max(uint) then the auction will never be able to resolve
273
- /// the min reserve setter is therefore trusted not to do this as it would DOS the auction. Note that even if this occurs
274
- /// bidders will not lose their funds and will still be able to withdraw them.
275
- /// @param newMinReservePrice The new minimum reserve
276
- function setMinReservePrice(uint256 newMinReservePrice) external;
277
-
278
- /// @notice Set the auction reserve price. Must be greater than or equal the minimum reserve.
279
- /// A reserve price setter is given the ability to change the reserve price to ensure that express lane control rights
280
- /// are not sold off too cheaply. They are trusted to set realistic values for this.
281
- /// However they can only change this value when not in the blackout period, which occurs before at the auction close
282
- /// This ensures that bidders will have plenty of time to observe the reserve before the auction closes, and that
283
- /// the reserve cannot be changed at the last second. One exception to this is if the minimum reserve changes, see the setMinReservePrice
284
- /// documentation for more details.
285
- /// If the new reserve is set to a very high value eg max(uint) then the auction will never be able to resolve
286
- /// the reserve setter is therefore trusted not to do this as it would DOS the auction. Note that even if this occurs
287
- /// bidders will not lose their funds and will still be able to withdraw them.
288
- /// Note to reserve price setter, setting reserve price is dependent on the time into the round, which can change if the round timing info is updated
289
- /// @param newReservePrice The price to set the reserve to
290
- function setReservePrice(uint256 newReservePrice) external;
291
-
292
- /// @notice Sets new round timing info. When setting a new round timing info the current round and the start
293
- /// timestamp of the next round cannot change. The caller can ensure this by dynamically calculating
294
- /// the correct offset which will produce this for the specified round duration seconds in the new timing info.
295
- /// Changing timing info affects the current ongoing auction, given that the round may already have been resolved
296
- /// this could result in bidders paying for a round that is longer or shorter than they expected. To that end
297
- /// the round timing setter is trusted not to set this function too often, and any observers who depend upon this timing info
298
- /// (eg bidders, auctioneer, reserve price setter etc) should be able to see when this is going to happen.
299
- /// On Arbitrum One the expected round timing setter is the Arbitrum DAO, that can only
300
- /// make changes by passing proposals through timelocks, therefore providing the notice to bidders.
301
- /// Since the next round of the new info must be the same as the next round of the current info, it follows
302
- /// that the update can only be made within min(roundDuration, newRoundDuration) of the end of the round, making
303
- /// an update outside of this will cause a revert.
304
- /// If necessary negative offsets can be set in order to achieve the next round number, given that
305
- /// the maximum round duration is 1 day it should be possible to have many thousands of years worth of
306
- /// rounds before it is not longer possible (due to int underflow) to change from 1 second to 1 day duration
307
- /// @param newRoundTimingInfo The new timing info to set
308
- function setRoundTimingInfo(RoundTimingInfo calldata newRoundTimingInfo) external;
309
-
310
- /// @notice Get the current balance of specified account.
311
- /// If a withdrawal is initiated this balance will reduce in current round + 2
312
- /// @param account The specified account
313
- function balanceOf(address account) external view returns (uint256);
314
-
315
- /// @notice Get what the balance will be at some future round
316
- /// Since withdrawals are scheduled for future rounds it is possible to see that a balance
317
- /// will reduce at some future round, this method provides a way to query that.
318
- /// Specifically this will return 0 if the withdrawal round has been set, and is < the supplied round
319
- /// Will revert if a round from the past is supplied
320
- /// @param account The specified account
321
- /// @param round The round to query the balance at
322
- function balanceOfAtRound(address account, uint64 round) external view returns (uint256);
323
-
324
- /// @notice The amount of balance that can currently be withdrawn via the finalize method
325
- /// This balance only increases current round + 2 after a withdrawal is initiated
326
- /// @param account The account the check the withdrawable balance for
327
- function withdrawableBalance(address account) external view returns (uint256);
328
-
329
- /// @notice The amount of balance that can currently be withdrawn via the finalize method
330
- /// Since withdrawals are scheduled for future rounds it is possible to see that a withdrawal balance
331
- /// will increase at some future round, this method provides a way to query that.
332
- /// Specifically this will return 0 unless the withdrawal round has been set, and is >= the supplied round
333
- /// Will revert if a round from the past is supplied
334
- /// This balance only increases current round + 2 after a withdrawal is initiated
335
- /// @param account The account the check the withdrawable balance for
336
- /// @param round The round to query the withdrawable balance at
337
- function withdrawableBalanceAtRound(address account, uint64 round)
338
- external
339
- view
340
- returns (uint256);
341
-
342
- /// @notice Deposit an amount of ERC20 token to the auction to make bids with
343
- /// Deposits must be submitted prior to bidding.
344
- /// When withdrawing the full balance must be withdrawn. This is done via a two step process
345
- /// of initialization and finalization, which takes at least 2 rounds to complete.
346
- /// The round timing info offset timestamp is the start of the zeroth round, so if deposits
347
- /// are made before that time they will need to wait until 2 rounds after that offset has occurred
348
- /// @dev Deposits are submitted first so that the auctioneer can be sure that the accepted bids can actually be paid
349
- /// @param amount The amount to deposit.
350
- function deposit(uint256 amount) external;
351
-
352
- /// @notice Initiate a withdrawal of the full account balance of the message sender
353
- /// Once funds have been deposited they can only be retrieved by initiating + finalizing a withdrawal
354
- /// There is a delay between initializing and finalizing a withdrawal so that the auctioneer can be sure
355
- /// that value cannot be removed before an auction is resolved. The timeline is as follows:
356
- /// 1. Initiate a withdrawal at some time in round r
357
- /// 2. During round r the balance is still available and can be used in an auction
358
- /// 3. During round r+1 the auctioneer should consider any accounts that have been initiated for withdrawal as having zero balance
359
- /// However if a bid is submitted the balance will be available for use
360
- /// 4. During round r+2 the bidder can finalize a withdrawal and remove their funds
361
- /// A bidder may have only one withdrawal being processed at any one time, and that withdrawal will be for the full balance
362
- function initiateWithdrawal() external;
363
-
364
- /// @notice Finalizes a withdrawal and transfers the funds to the msg.sender
365
- /// Withdrawals can only be finalized 2 rounds after being initiated
366
- function finalizeWithdrawal() external;
367
-
368
- /// @notice Can be called by anyone to transfer any beneficiary balance from the auction contract to the beneficiary
369
- /// This is not done separately so that it does not need to be done during auction resolution, thus saving some gas costs there
370
- function flushBeneficiaryBalance() external;
371
-
372
- /// @notice The domain separator used in the 712 signing hash
373
- function domainSeparator() external view returns (bytes32);
374
-
375
- /// @notice Get the 712 hash of a bid used for signing
376
- /// @param round The round the bid is for the control of
377
- /// @param expressLaneController The address that will be the express lane controller if the bid wins
378
- /// @param amount The amount being bid
379
- function getBidHash(
380
- uint64 round,
381
- address expressLaneController,
382
- uint256 amount
383
- ) external view returns (bytes32);
384
-
385
- /// @notice Resolve the auction with just a single bid. The auctioneer is trusted to call this only when there are
386
- /// less than two bids higher than the reserve price for an auction round.
387
- /// In this case the highest bidder will pay the reserve price for the round
388
- /// @dev We do not enforce it, but the following accounts or their sybils, are trusted not to send bids to the auctioneer
389
- /// Auctioneer, beneficiary, beneficiary setter, reserve price setter, min reserve price setter, role admin, round timing info setter
390
- /// @param firstPriceBid The highest price bid. Must have a price higher than the reserve. Price paid is the reserve
391
- function resolveSingleBidAuction(Bid calldata firstPriceBid) external;
392
-
393
- /// @notice Resolves the auction round with the two highest bids for that round
394
- /// The highest price bidder pays the price of the second highest bid
395
- /// Both bids must be higher than the reserve
396
- /// @dev We do not enforce it, but the following accounts or their sybils, are trusted not to send bids to the auctioneer
397
- /// Auctioneer, beneficiary, beneficiary setter, reserve price setter, min reserve price setter, role admin, round timing info setter
398
- /// @param firstPriceBid The highest price bid
399
- /// @param secondPriceBid The second highest price bid
400
- function resolveMultiBidAuction(Bid calldata firstPriceBid, Bid calldata secondPriceBid)
401
- external;
402
-
403
- /// @notice Sets a transferor for an express lane controller
404
- /// The transferor is an address that will have the right to transfer express lane controller rights
405
- /// on behalf an express lane controller.
406
- /// @param transferor The transferor to set
407
- function setTransferor(Transferor calldata transferor) external;
408
-
409
- /// @notice Express lane controllers are allowed to transfer their express lane rights for the current or future
410
- /// round to another address. They may use this for reselling their rights after purchasing them
411
- /// Again, the priviledged accounts mentioned in resolve documentation are trusted not to try to receive rights via this message.
412
- /// Although they cannot stop someone transferring the rights to them, they should not use the controller rights if that does occur
413
- /// @param round The round to transfer rights for
414
- /// @param newExpressLaneController The new express lane controller to transfer the rights to
415
- function transferExpressLaneController(uint64 round, address newExpressLaneController) external;
416
-
417
- /// @notice The last two auction rounds that were resolved
418
- /// @return The most recent resolved auction round
419
- /// @return The second most recent resolved auction round
420
- function resolvedRounds() external view returns (ELCRound memory, ELCRound memory);
421
- }
@@ -1,115 +0,0 @@
1
- // SPDX-License-Identifier: BUSL-1.1
2
- pragma solidity ^0.8.0;
3
-
4
- import {NegativeRoundStart} from "./Errors.sol";
5
-
6
- /// @notice Information about the timings of auction round. All timings measured in seconds
7
- /// Bids can be submitted to the offchain autonomous auctioneer until the auction round closes
8
- /// after which the auctioneer can submit the two highest bids to the auction contract to resolve the auction
9
- struct RoundTimingInfo {
10
- /// @notice The timestamp when round 0 starts
11
- /// We allow this to be negative so that later when setting new round timing info
12
- /// we can use offsets very far in the past. This combined with the maxium that we allow
13
- /// on round duration ensures that we can always set a new round duration within the possible range
14
- int64 offsetTimestamp;
15
- /// @notice The total duration (in seconds) of the round. Always less than 86400 and greater than 0
16
- uint64 roundDurationSeconds;
17
- /// @notice The number of seconds before the end of the round that the auction round closes. Cannot be 0
18
- uint64 auctionClosingSeconds;
19
- /// @notice A reserve setter account has the rights to set a reserve for a round,
20
- /// however they cannot do this within a reserve blackout period.
21
- /// The blackout period starts at RoundDuration - AuctionClosingSeconds - ReserveSubmissionSeconds,
22
- /// and ends when the auction round is resolved, or the round ends.
23
- uint64 reserveSubmissionSeconds;
24
- }
25
-
26
- library RoundTimingInfoLib {
27
- /// @dev Using signed offset involves a lot of casting when comparing the to the block timestamp
28
- /// so we provide a helper method here
29
- function blockTimestampBeforeOffset(int64 offsetTimestamp) private view returns (bool) {
30
- return int64(uint64(block.timestamp)) < offsetTimestamp;
31
- }
32
-
33
- /// @dev Using signed offset involves a lot of casting when comparing the to the block timestamp
34
- /// so we provide a helper method here
35
- /// Notice! this helper method should not be used before checking that the offset is less than the timestamp
36
- function unsignedSinceTimestamp(int64 offsetTimestamp) private view returns (uint64) {
37
- return uint64(int64(uint64(block.timestamp)) - offsetTimestamp);
38
- }
39
-
40
- /// @notice The current round, given the current timestamp, the offset and the round duration
41
- function currentRound(RoundTimingInfo memory info) internal view returns (uint64) {
42
- if (blockTimestampBeforeOffset(info.offsetTimestamp)) {
43
- return 0;
44
- }
45
-
46
- return (unsignedSinceTimestamp(info.offsetTimestamp)) / info.roundDurationSeconds;
47
- }
48
-
49
- /// @notice Has the current auction round closed
50
- function isAuctionRoundClosed(RoundTimingInfo memory info) internal view returns (bool) {
51
- if (blockTimestampBeforeOffset(info.offsetTimestamp)) {
52
- return false;
53
- }
54
-
55
- uint64 timeSinceOffset = unsignedSinceTimestamp(info.offsetTimestamp);
56
- uint64 timeInRound = timeSinceOffset % info.roundDurationSeconds;
57
- // round closes at AuctionClosedSeconds before the end of the round
58
- return timeInRound >= info.roundDurationSeconds - info.auctionClosingSeconds;
59
- }
60
-
61
- /// @notice The reserve cannot be set during the blackout period
62
- /// This period runs from ReserveSubmissionSeconds before the auction closes and ends when the round resolves, or when the round ends.
63
- /// @param info Round timing info
64
- /// @param latestResolvedRound The last auction round number that was resolved
65
- function isReserveBlackout(RoundTimingInfo memory info, uint64 latestResolvedRound)
66
- internal
67
- view
68
- returns (bool)
69
- {
70
- if (blockTimestampBeforeOffset(info.offsetTimestamp)) {
71
- // no rounds have started, can't be in blackout
72
- return false;
73
- }
74
-
75
- // if we're in round r, we are selling the rights for r+1
76
- // if the latest round is r+1 that means we've already resolved the auction in r
77
- // so we are no longer in the blackout period
78
- uint64 curRound = currentRound(info);
79
- if (latestResolvedRound >= curRound + 1) {
80
- return false;
81
- }
82
-
83
- // the round in question hasnt been resolved
84
- // therefore if we're within ReserveSubmissionSeconds of the auction close then we're in blackout
85
- // otherwise we're not
86
- uint64 timeSinceOffset = unsignedSinceTimestamp(info.offsetTimestamp);
87
- uint64 timeInRound = timeSinceOffset % info.roundDurationSeconds;
88
- return
89
- timeInRound >=
90
- (info.roundDurationSeconds -
91
- info.auctionClosingSeconds -
92
- info.reserveSubmissionSeconds);
93
- }
94
-
95
- /// @notice Gets the start and end timestamps (seconds) of a specified round
96
- /// Since it is possible to set a negative offset, the start and end time may also be negative
97
- /// In this case requesting roundTimestamps will revert.
98
- /// @param info Round timing info
99
- /// @param round The specified round
100
- /// @return The timestamp at which the round starts
101
- /// @return The timestamp at which the round ends
102
- function roundTimestamps(RoundTimingInfo memory info, uint64 round)
103
- internal
104
- pure
105
- returns (uint64, uint64)
106
- {
107
- int64 intRoundStart = info.offsetTimestamp + int64(info.roundDurationSeconds * round);
108
- if (intRoundStart < 0) {
109
- revert NegativeRoundStart(intRoundStart);
110
- }
111
- uint64 roundStart = uint64(intRoundStart);
112
- uint64 roundEnd = roundStart + info.roundDurationSeconds - 1;
113
- return (roundStart, roundEnd);
114
- }
115
- }
@@ -1,59 +0,0 @@
1
- // Copyright 2021-2022, Offchain Labs, Inc.
2
- // For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE
3
- // SPDX-License-Identifier: BUSL-1.1
4
-
5
- pragma solidity ^0.8.0;
6
-
7
- import "../challenge/IChallengeResultReceiver.sol";
8
- import "../challenge/IChallengeManager.sol";
9
-
10
- contract MockResultReceiver is IChallengeResultReceiver {
11
- IChallengeManager public manager;
12
- address public winner;
13
- address public loser;
14
- uint256 public challengeIndex;
15
-
16
- event ChallengeCompleted(
17
- uint256 indexed challengeIndex,
18
- address indexed winner,
19
- address indexed loser
20
- );
21
-
22
- constructor(IChallengeManager manager_) {
23
- manager = manager_;
24
- }
25
-
26
- function createChallenge(
27
- bytes32 wasmModuleRoot_,
28
- MachineStatus[2] calldata startAndEndMachineStatuses_,
29
- GlobalState[2] calldata startAndEndGlobalStates_,
30
- uint64 numBlocks,
31
- address asserter_,
32
- address challenger_,
33
- uint256 asserterTimeLeft_,
34
- uint256 challengerTimeLeft_
35
- ) external returns (uint64) {
36
- return
37
- manager.createChallenge(
38
- wasmModuleRoot_,
39
- startAndEndMachineStatuses_,
40
- startAndEndGlobalStates_,
41
- numBlocks,
42
- asserter_,
43
- challenger_,
44
- asserterTimeLeft_,
45
- challengerTimeLeft_
46
- );
47
- }
48
-
49
- function completeChallenge(
50
- uint256 challengeIndex_,
51
- address winner_,
52
- address loser_
53
- ) external override {
54
- winner = winner_;
55
- loser = loser_;
56
- challengeIndex = challengeIndex_;
57
- emit ChallengeCompleted(challengeIndex, winner_, loser_);
58
- }
59
- }
@@ -1,41 +0,0 @@
1
- // Copyright 2021-2022, Offchain Labs, Inc.
2
- // For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE
3
- // SPDX-License-Identifier: BUSL-1.1
4
-
5
- pragma solidity ^0.8.0;
6
-
7
- import "../challenge/ChallengeManager.sol";
8
-
9
- contract SingleExecutionChallenge is ChallengeManager {
10
- constructor(
11
- IOneStepProofEntry osp_,
12
- IChallengeResultReceiver resultReceiver_,
13
- uint64 maxInboxMessagesRead_,
14
- bytes32[2] memory startAndEndHashes,
15
- uint256 numSteps_,
16
- address asserter_,
17
- address challenger_,
18
- uint256 asserterTimeLeft_,
19
- uint256 challengerTimeLeft_
20
- ) {
21
- osp = osp_;
22
- resultReceiver = resultReceiver_;
23
- uint64 challengeIndex = ++totalChallengesCreated;
24
- ChallengeLib.Challenge storage challenge = challenges[challengeIndex];
25
- challenge.maxInboxMessages = maxInboxMessagesRead_;
26
- bytes32[] memory segments = new bytes32[](2);
27
- segments[0] = startAndEndHashes[0];
28
- segments[1] = startAndEndHashes[1];
29
- bytes32 challengeStateHash = ChallengeLib.hashChallengeState(0, numSteps_, segments);
30
- challenge.challengeStateHash = challengeStateHash;
31
- challenge.next = ChallengeLib.Participant({addr: asserter_, timeLeft: asserterTimeLeft_});
32
- challenge.current = ChallengeLib.Participant({
33
- addr: challenger_,
34
- timeLeft: challengerTimeLeft_
35
- });
36
- challenge.lastMoveTimestamp = block.timestamp;
37
- challenge.mode = ChallengeLib.ChallengeMode.EXECUTION;
38
-
39
- emit Bisected(challengeIndex, challengeStateHash, 0, numSteps_, segments);
40
- }
41
- }
@@ -1,13 +0,0 @@
1
- // Copyright 2021-2022, Offchain Labs, Inc.
2
- // For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE
3
- // SPDX-License-Identifier: BUSL-1.1
4
-
5
- pragma solidity ^0.8.0;
6
-
7
- import "../challenge/ChallengeManager.sol";
8
-
9
- contract TimedOutChallengeManager is ChallengeManager {
10
- function isTimedOut(uint64) public pure override returns (bool) {
11
- return true;
12
- }
13
- }