@arbitrum/nitro-contracts 1.1.0-alpha.1 → 1.1.0-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. package/LICENSE +114 -0
  2. package/README.md +2 -2
  3. package/build/types/@openzeppelin/contracts/access/Ownable.ts +175 -0
  4. package/build/types/@openzeppelin/contracts/access/index.ts +4 -0
  5. package/build/types/@openzeppelin/contracts/index.ts +11 -0
  6. package/build/types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts +87 -0
  7. package/build/types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  8. package/build/types/@openzeppelin/contracts/interfaces/index.ts +5 -0
  9. package/build/types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +108 -0
  10. package/build/types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.ts +108 -0
  11. package/build/types/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
  12. package/build/types/@openzeppelin/contracts/proxy/Proxy.ts +55 -0
  13. package/build/types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +87 -0
  14. package/build/types/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.ts +239 -0
  15. package/build/types/@openzeppelin/contracts/proxy/beacon/index.ts +5 -0
  16. package/build/types/@openzeppelin/contracts/proxy/index.ts +12 -0
  17. package/build/types/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.ts +359 -0
  18. package/build/types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.ts +278 -0
  19. package/build/types/@openzeppelin/contracts/proxy/transparent/index.ts +5 -0
  20. package/build/types/@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.ts +216 -0
  21. package/build/types/@openzeppelin/contracts/proxy/utils/index.ts +4 -0
  22. package/build/types/@openzeppelin/contracts/token/ERC20/ERC20.ts +444 -0
  23. package/build/types/@openzeppelin/contracts/token/ERC20/IERC20.ts +322 -0
  24. package/build/types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.ts +507 -0
  25. package/build/types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +364 -0
  26. package/build/types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +5 -0
  27. package/build/types/@openzeppelin/contracts/token/ERC20/index.ts +9 -0
  28. package/build/types/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.ts +507 -0
  29. package/build/types/@openzeppelin/contracts/token/ERC20/presets/index.ts +4 -0
  30. package/build/types/@openzeppelin/contracts/token/index.ts +5 -0
  31. package/build/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +175 -0
  32. package/build/types/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
  33. package/build/types/@openzeppelin/contracts-upgradeable/index.ts +9 -0
  34. package/build/types/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.ts +111 -0
  35. package/build/types/@openzeppelin/contracts-upgradeable/security/index.ts +4 -0
  36. package/build/types/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +322 -0
  37. package/build/types/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +4 -0
  38. package/build/types/@openzeppelin/contracts-upgradeable/token/index.ts +5 -0
  39. package/build/types/@openzeppelin/index.ts +7 -0
  40. package/build/types/common.ts +44 -0
  41. package/build/types/factories/@openzeppelin/contracts/access/Ownable__factory.ts +78 -0
  42. package/build/types/factories/@openzeppelin/contracts/access/index.ts +4 -0
  43. package/build/types/factories/@openzeppelin/contracts/index.ts +7 -0
  44. package/build/types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +39 -0
  45. package/build/types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
  46. package/build/types/factories/@openzeppelin/contracts/interfaces/index.ts +4 -0
  47. package/build/types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +146 -0
  48. package/build/types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts +71 -0
  49. package/build/types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
  50. package/build/types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +31 -0
  51. package/build/types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +39 -0
  52. package/build/types/factories/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon__factory.ts +169 -0
  53. package/build/types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +5 -0
  54. package/build/types/factories/@openzeppelin/contracts/proxy/index.ts +8 -0
  55. package/build/types/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.ts +211 -0
  56. package/build/types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.ts +228 -0
  57. package/build/types/factories/@openzeppelin/contracts/proxy/transparent/index.ts +5 -0
  58. package/build/types/factories/@openzeppelin/contracts/proxy/utils/UUPSUpgradeable__factory.ts +115 -0
  59. package/build/types/factories/@openzeppelin/contracts/proxy/utils/index.ts +4 -0
  60. package/build/types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +349 -0
  61. package/build/types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +206 -0
  62. package/build/types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.ts +327 -0
  63. package/build/types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +248 -0
  64. package/build/types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +5 -0
  65. package/build/types/factories/@openzeppelin/contracts/token/ERC20/index.ts +7 -0
  66. package/build/types/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply__factory.ts +420 -0
  67. package/build/types/factories/@openzeppelin/contracts/token/ERC20/presets/index.ts +4 -0
  68. package/build/types/factories/@openzeppelin/contracts/token/index.ts +4 -0
  69. package/build/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +78 -0
  70. package/build/types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
  71. package/build/types/factories/@openzeppelin/contracts-upgradeable/index.ts +6 -0
  72. package/build/types/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.ts +65 -0
  73. package/build/types/factories/@openzeppelin/contracts-upgradeable/security/index.ts +4 -0
  74. package/build/types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +209 -0
  75. package/build/types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +4 -0
  76. package/build/types/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
  77. package/build/types/factories/@openzeppelin/index.ts +5 -0
  78. package/build/types/factories/index.ts +5 -0
  79. package/build/types/factories/src/bridge/AbsBridge__factory.ts +612 -0
  80. package/build/types/factories/src/bridge/AbsInbox__factory.ts +455 -0
  81. package/build/types/factories/src/bridge/AbsOutbox__factory.ts +561 -0
  82. package/build/types/factories/src/bridge/Bridge__factory.ts +695 -0
  83. package/build/types/factories/src/bridge/ERC20Bridge__factory.ts +746 -0
  84. package/build/types/factories/src/bridge/ERC20Inbox__factory.ts +719 -0
  85. package/build/types/factories/src/bridge/ERC20Outbox__factory.ts +610 -0
  86. package/build/types/factories/src/bridge/IBridge__factory.ts +508 -0
  87. package/build/types/factories/src/bridge/IDelayedMessageProvider__factory.ts +62 -0
  88. package/build/types/factories/src/bridge/IERC20Bridge__factory.ts +576 -0
  89. package/build/types/factories/src/bridge/IERC20Inbox__factory.ts +461 -0
  90. package/build/types/factories/src/bridge/IEthBridge__factory.ts +553 -0
  91. package/build/types/factories/src/bridge/IEthInbox__factory.ts +653 -0
  92. package/build/types/factories/src/bridge/IInbox__factory.ts +318 -0
  93. package/build/types/factories/src/bridge/IOutbox__factory.ts +431 -0
  94. package/build/types/factories/src/bridge/IOwnable__factory.ts +36 -0
  95. package/build/types/factories/src/bridge/ISequencerInbox__factory.ts +666 -0
  96. package/build/types/factories/src/bridge/Inbox__factory.ts +999 -0
  97. package/build/types/factories/src/bridge/Outbox__factory.ts +591 -0
  98. package/build/types/factories/src/bridge/SequencerInbox__factory.ts +865 -0
  99. package/build/types/factories/src/bridge/index.ts +23 -0
  100. package/build/types/factories/src/challenge/ChallengeManager__factory.ts +720 -0
  101. package/build/types/factories/src/challenge/IChallengeManager__factory.ts +401 -0
  102. package/build/types/factories/src/challenge/IChallengeResultReceiver__factory.ts +53 -0
  103. package/build/types/factories/src/challenge/index.ts +6 -0
  104. package/build/types/factories/src/index.ts +12 -0
  105. package/build/types/factories/src/libraries/AdminFallbackProxy.sol/AdminFallbackProxy__factory.ts +128 -0
  106. package/build/types/factories/src/libraries/AdminFallbackProxy.sol/DoubleLogicERC1967Upgrade__factory.ts +88 -0
  107. package/build/types/factories/src/libraries/AdminFallbackProxy.sol/index.ts +5 -0
  108. package/build/types/factories/src/libraries/DoubleLogicUUPSUpgradeable__factory.ts +163 -0
  109. package/build/types/factories/src/libraries/IGasRefunder__factory.ts +55 -0
  110. package/build/types/factories/src/libraries/UUPSNotUpgradeable__factory.ts +97 -0
  111. package/build/types/factories/src/libraries/index.ts +7 -0
  112. package/build/types/factories/src/mocks/BridgeStub__factory.ts +612 -0
  113. package/build/types/factories/src/mocks/BridgeUnproxied__factory.ts +706 -0
  114. package/build/types/factories/src/mocks/InboxStub__factory.ts +702 -0
  115. package/build/types/factories/src/mocks/MockResultReceiver__factory.ts +244 -0
  116. package/build/types/factories/src/mocks/ProxyAdminForBinding__factory.ts +215 -0
  117. package/build/types/factories/src/mocks/SequencerInboxStub__factory.ts +938 -0
  118. package/build/types/factories/src/mocks/SimpleProxy__factory.ts +83 -0
  119. package/build/types/factories/src/mocks/Simple__factory.ts +287 -0
  120. package/build/types/factories/src/mocks/SingleExecutionChallenge__factory.ts +823 -0
  121. package/build/types/factories/src/mocks/TimedOutChallengeManager__factory.ts +724 -0
  122. package/build/types/factories/src/mocks/index.ts +13 -0
  123. package/build/types/factories/src/node-interface/NodeInterfaceDebug__factory.ts +82 -0
  124. package/build/types/factories/src/node-interface/NodeInterface__factory.ts +301 -0
  125. package/build/types/factories/src/node-interface/index.ts +5 -0
  126. package/build/types/factories/src/osp/HashProofHelper__factory.ts +216 -0
  127. package/build/types/factories/src/osp/IOneStepProofEntry__factory.ts +72 -0
  128. package/build/types/factories/src/osp/IOneStepProver__factory.ts +492 -0
  129. package/build/types/factories/src/osp/OneStepProofEntry__factory.ts +206 -0
  130. package/build/types/factories/src/osp/OneStepProver0__factory.ts +528 -0
  131. package/build/types/factories/src/osp/OneStepProverHostIo__factory.ts +528 -0
  132. package/build/types/factories/src/osp/OneStepProverMath__factory.ts +528 -0
  133. package/build/types/factories/src/osp/OneStepProverMemory__factory.ts +528 -0
  134. package/build/types/factories/src/osp/index.ts +11 -0
  135. package/build/types/factories/src/precompiles/ArbAddressTable__factory.ts +163 -0
  136. package/build/types/factories/src/precompiles/ArbAggregator__factory.ts +163 -0
  137. package/build/types/factories/src/precompiles/ArbDebug__factory.ts +208 -0
  138. package/build/types/factories/src/precompiles/ArbFunctionTable__factory.ts +92 -0
  139. package/build/types/factories/src/precompiles/ArbGasInfo__factory.ts +339 -0
  140. package/build/types/factories/src/precompiles/ArbInfo__factory.ts +64 -0
  141. package/build/types/factories/src/precompiles/ArbOwnerPublic__factory.ts +84 -0
  142. package/build/types/factories/src/precompiles/ArbOwner__factory.ts +393 -0
  143. package/build/types/factories/src/precompiles/ArbRetryableTx__factory.ts +321 -0
  144. package/build/types/factories/src/precompiles/ArbStatistics__factory.ts +64 -0
  145. package/build/types/factories/src/precompiles/ArbSys__factory.ts +389 -0
  146. package/build/types/factories/src/precompiles/ArbosActs__factory.ts +92 -0
  147. package/build/types/factories/src/precompiles/ArbosTest__factory.ts +39 -0
  148. package/build/types/factories/src/precompiles/index.ts +16 -0
  149. package/build/types/factories/src/rollup/AbsBridgeCreator__factory.ts +182 -0
  150. package/build/types/factories/src/rollup/AbsRollupCreator__factory.ts +285 -0
  151. package/build/types/factories/src/rollup/AbsRollupEventInbox__factory.ts +125 -0
  152. package/build/types/factories/src/rollup/BridgeCreator__factory.ts +294 -0
  153. package/build/types/factories/src/rollup/ERC20BridgeCreator__factory.ts +299 -0
  154. package/build/types/factories/src/rollup/ERC20RollupCreator__factory.ts +439 -0
  155. package/build/types/factories/src/rollup/ERC20RollupEventInbox__factory.ts +170 -0
  156. package/build/types/factories/src/rollup/IBridgeCreator.sol/IBridgeCreator__factory.ts +124 -0
  157. package/build/types/factories/src/rollup/IBridgeCreator.sol/IERC20BridgeCreator__factory.ts +200 -0
  158. package/build/types/factories/src/rollup/IBridgeCreator.sol/IEthBridgeCreator__factory.ts +195 -0
  159. package/build/types/factories/src/rollup/IBridgeCreator.sol/index.ts +6 -0
  160. package/build/types/factories/src/rollup/IRollupAdmin__factory.ts +559 -0
  161. package/build/types/factories/src/rollup/IRollupCore__factory.ts +904 -0
  162. package/build/types/factories/src/rollup/IRollupCreator.sol/IERC20RollupCreator__factory.ts +182 -0
  163. package/build/types/factories/src/rollup/IRollupCreator.sol/IEthRollupCreator__factory.ts +177 -0
  164. package/build/types/factories/src/rollup/IRollupCreator.sol/IRollupCreator__factory.ts +69 -0
  165. package/build/types/factories/src/rollup/IRollupCreator.sol/index.ts +6 -0
  166. package/build/types/factories/src/rollup/IRollupEventInbox__factory.ts +83 -0
  167. package/build/types/factories/src/rollup/IRollupLogic.sol/IRollupUserAbs__factory.ts +1324 -0
  168. package/build/types/factories/src/rollup/IRollupLogic.sol/IRollupUserERC20__factory.ts +1458 -0
  169. package/build/types/factories/src/rollup/IRollupLogic.sol/IRollupUser__factory.ts +1443 -0
  170. package/build/types/factories/src/rollup/IRollupLogic.sol/index.ts +6 -0
  171. package/build/types/factories/src/rollup/RollupAdminLogic__factory.ts +1859 -0
  172. package/build/types/factories/src/rollup/RollupCore__factory.ts +1066 -0
  173. package/build/types/factories/src/rollup/RollupCreator__factory.ts +434 -0
  174. package/build/types/factories/src/rollup/RollupEventInbox__factory.ts +166 -0
  175. package/build/types/factories/src/rollup/RollupProxy__factory.ts +277 -0
  176. package/build/types/factories/src/rollup/RollupUserLogic.sol/AbsRollupUserLogic__factory.ts +1593 -0
  177. package/build/types/factories/src/rollup/RollupUserLogic.sol/ERC20RollupUserLogic__factory.ts +1767 -0
  178. package/build/types/factories/src/rollup/RollupUserLogic.sol/RollupUserLogic__factory.ts +1748 -0
  179. package/build/types/factories/src/rollup/RollupUserLogic.sol/index.ts +6 -0
  180. package/build/types/factories/src/rollup/ValidatorUtils__factory.ts +430 -0
  181. package/build/types/factories/src/rollup/ValidatorWalletCreator__factory.ts +205 -0
  182. package/build/types/factories/src/rollup/ValidatorWallet__factory.ts +486 -0
  183. package/build/types/factories/src/rollup/index.ts +25 -0
  184. package/build/types/factories/src/test-helpers/BridgeTester__factory.ts +654 -0
  185. package/build/types/factories/src/test-helpers/CryptographyPrimitivesTester__factory.ts +111 -0
  186. package/build/types/factories/src/test-helpers/EthVault__factory.ts +95 -0
  187. package/build/types/factories/src/test-helpers/MessageTester__factory.ts +135 -0
  188. package/build/types/factories/src/test-helpers/OutboxWithoutOptTester__factory.ts +575 -0
  189. package/build/types/factories/src/test-helpers/RollupMock__factory.ts +100 -0
  190. package/build/types/factories/src/test-helpers/ValueArrayTester__factory.ts +69 -0
  191. package/build/types/factories/src/test-helpers/index.ts +10 -0
  192. package/build/types/index.ts +240 -0
  193. package/build/types/src/bridge/AbsBridge.ts +863 -0
  194. package/build/types/src/bridge/AbsInbox.ts +664 -0
  195. package/build/types/src/bridge/AbsOutbox.ts +700 -0
  196. package/build/types/src/bridge/Bridge.ts +934 -0
  197. package/build/types/src/bridge/ERC20Bridge.ts +970 -0
  198. package/build/types/src/bridge/ERC20Inbox.ts +869 -0
  199. package/build/types/src/bridge/ERC20Outbox.ts +722 -0
  200. package/build/types/src/bridge/IBridge.ts +799 -0
  201. package/build/types/src/bridge/IDelayedMessageProvider.ts +108 -0
  202. package/build/types/src/bridge/IERC20Bridge.ts +914 -0
  203. package/build/types/src/bridge/IERC20Inbox.ts +788 -0
  204. package/build/types/src/bridge/IEthBridge.ts +871 -0
  205. package/build/types/src/bridge/IEthInbox.ts +1081 -0
  206. package/build/types/src/bridge/IInbox.ts +583 -0
  207. package/build/types/src/bridge/IOutbox.ts +654 -0
  208. package/build/types/src/bridge/IOwnable.ts +81 -0
  209. package/build/types/src/bridge/ISequencerInbox.ts +1038 -0
  210. package/build/types/src/bridge/Inbox.ts +1279 -0
  211. package/build/types/src/bridge/Outbox.ts +700 -0
  212. package/build/types/src/bridge/SequencerInbox.ts +1138 -0
  213. package/build/types/src/bridge/index.ts +23 -0
  214. package/build/types/src/challenge/ChallengeManager.ts +889 -0
  215. package/build/types/src/challenge/IChallengeManager.ts +543 -0
  216. package/build/types/src/challenge/IChallengeResultReceiver.ts +115 -0
  217. package/build/types/src/challenge/index.ts +6 -0
  218. package/build/types/src/index.ts +21 -0
  219. package/build/types/src/libraries/AdminFallbackProxy.sol/AdminFallbackProxy.ts +128 -0
  220. package/build/types/src/libraries/AdminFallbackProxy.sol/DoubleLogicERC1967Upgrade.ts +128 -0
  221. package/build/types/src/libraries/AdminFallbackProxy.sol/index.ts +5 -0
  222. package/build/types/src/libraries/DoubleLogicUUPSUpgradeable.ts +314 -0
  223. package/build/types/src/libraries/IGasRefunder.ts +112 -0
  224. package/build/types/src/libraries/UUPSNotUpgradeable.ts +164 -0
  225. package/build/types/src/libraries/index.ts +8 -0
  226. package/build/types/src/mocks/BridgeStub.ts +887 -0
  227. package/build/types/src/mocks/BridgeUnproxied.ts +934 -0
  228. package/build/types/src/mocks/InboxStub.ts +1076 -0
  229. package/build/types/src/mocks/MockResultReceiver.ts +301 -0
  230. package/build/types/src/mocks/ProxyAdminForBinding.ts +359 -0
  231. package/build/types/src/mocks/SequencerInboxStub.ts +1173 -0
  232. package/build/types/src/mocks/Simple.ts +514 -0
  233. package/build/types/src/mocks/SimpleProxy.ts +55 -0
  234. package/build/types/src/mocks/SingleExecutionChallenge.ts +889 -0
  235. package/build/types/src/mocks/TimedOutChallengeManager.ts +883 -0
  236. package/build/types/src/mocks/index.ts +13 -0
  237. package/build/types/src/node-interface/NodeInterface.ts +502 -0
  238. package/build/types/src/node-interface/NodeInterfaceDebug.ts +137 -0
  239. package/build/types/src/node-interface/index.ts +5 -0
  240. package/build/types/src/osp/HashProofHelper.ts +308 -0
  241. package/build/types/src/osp/IOneStepProofEntry.ts +128 -0
  242. package/build/types/src/osp/IOneStepProver.ts +284 -0
  243. package/build/types/src/osp/OneStepProofEntry.ts +196 -0
  244. package/build/types/src/osp/OneStepProver0.ts +284 -0
  245. package/build/types/src/osp/OneStepProverHostIo.ts +284 -0
  246. package/build/types/src/osp/OneStepProverMath.ts +284 -0
  247. package/build/types/src/osp/OneStepProverMemory.ts +284 -0
  248. package/build/types/src/osp/index.ts +11 -0
  249. package/build/types/src/precompiles/ArbAddressTable.ts +248 -0
  250. package/build/types/src/precompiles/ArbAggregator.ts +335 -0
  251. package/build/types/src/precompiles/ArbDebug.ts +292 -0
  252. package/build/types/src/precompiles/ArbFunctionTable.ts +150 -0
  253. package/build/types/src/precompiles/ArbGasInfo.ts +494 -0
  254. package/build/types/src/precompiles/ArbInfo.ts +105 -0
  255. package/build/types/src/precompiles/ArbOwner.ts +928 -0
  256. package/build/types/src/precompiles/ArbOwnerPublic.ts +157 -0
  257. package/build/types/src/precompiles/ArbRetryableTx.ts +467 -0
  258. package/build/types/src/precompiles/ArbStatistics.ts +93 -0
  259. package/build/types/src/precompiles/ArbSys.ts +553 -0
  260. package/build/types/src/precompiles/ArbosActs.ts +173 -0
  261. package/build/types/src/precompiles/ArbosTest.ts +97 -0
  262. package/build/types/src/precompiles/index.ts +16 -0
  263. package/build/types/src/rollup/AbsBridgeCreator.ts +348 -0
  264. package/build/types/src/rollup/AbsRollupCreator.ts +449 -0
  265. package/build/types/src/rollup/AbsRollupEventInbox.ts +218 -0
  266. package/build/types/src/rollup/BridgeCreator.ts +415 -0
  267. package/build/types/src/rollup/ERC20BridgeCreator.ts +420 -0
  268. package/build/types/src/rollup/ERC20RollupCreator.ts +561 -0
  269. package/build/types/src/rollup/ERC20RollupEventInbox.ts +218 -0
  270. package/build/types/src/rollup/IBridgeCreator.sol/IBridgeCreator.ts +231 -0
  271. package/build/types/src/rollup/IBridgeCreator.sol/IERC20BridgeCreator.ts +303 -0
  272. package/build/types/src/rollup/IBridgeCreator.sol/IEthBridgeCreator.ts +298 -0
  273. package/build/types/src/rollup/IBridgeCreator.sol/index.ts +6 -0
  274. package/build/types/src/rollup/IRollupAdmin.ts +1003 -0
  275. package/build/types/src/rollup/IRollupCore.ts +1183 -0
  276. package/build/types/src/rollup/IRollupCreator.sol/IERC20RollupCreator.ts +247 -0
  277. package/build/types/src/rollup/IRollupCreator.sol/IEthRollupCreator.ts +242 -0
  278. package/build/types/src/rollup/IRollupCreator.sol/IRollupCreator.ts +134 -0
  279. package/build/types/src/rollup/IRollupCreator.sol/index.ts +6 -0
  280. package/build/types/src/rollup/IRollupEventInbox.ts +167 -0
  281. package/build/types/src/rollup/IRollupLogic.sol/IRollupUser.ts +2022 -0
  282. package/build/types/src/rollup/IRollupLogic.sol/IRollupUserAbs.ts +1901 -0
  283. package/build/types/src/rollup/IRollupLogic.sol/IRollupUserERC20.ts +2036 -0
  284. package/build/types/src/rollup/IRollupLogic.sol/index.ts +6 -0
  285. package/build/types/src/rollup/RollupAdminLogic.ts +2593 -0
  286. package/build/types/src/rollup/RollupCore.ts +1406 -0
  287. package/build/types/src/rollup/RollupCreator.ts +556 -0
  288. package/build/types/src/rollup/RollupEventInbox.ts +218 -0
  289. package/build/types/src/rollup/RollupProxy.ts +285 -0
  290. package/build/types/src/rollup/RollupUserLogic.sol/AbsRollupUserLogic.ts +2282 -0
  291. package/build/types/src/rollup/RollupUserLogic.sol/ERC20RollupUserLogic.ts +2417 -0
  292. package/build/types/src/rollup/RollupUserLogic.sol/RollupUserLogic.ts +2403 -0
  293. package/build/types/src/rollup/RollupUserLogic.sol/index.ts +6 -0
  294. package/build/types/src/rollup/ValidatorUtils.ts +561 -0
  295. package/build/types/src/rollup/ValidatorWallet.ts +751 -0
  296. package/build/types/src/rollup/ValidatorWalletCreator.ts +294 -0
  297. package/build/types/src/rollup/index.ts +29 -0
  298. package/build/types/src/test-helpers/BridgeTester.ts +899 -0
  299. package/build/types/src/test-helpers/CryptographyPrimitivesTester.ts +141 -0
  300. package/build/types/src/test-helpers/EthVault.ts +141 -0
  301. package/build/types/src/test-helpers/MessageTester.ts +182 -0
  302. package/build/types/src/test-helpers/OutboxWithoutOptTester.ts +700 -0
  303. package/build/types/src/test-helpers/RollupMock.ts +164 -0
  304. package/build/types/src/test-helpers/ValueArrayTester.ts +81 -0
  305. package/build/types/src/test-helpers/index.ts +10 -0
  306. package/package.json +9 -3
  307. package/src/bridge/AbsBridge.sol +302 -0
  308. package/src/bridge/AbsInbox.sol +335 -0
  309. package/src/bridge/AbsOutbox.sol +295 -0
  310. package/src/bridge/Bridge.sol +15 -244
  311. package/src/bridge/ERC20Bridge.sol +74 -0
  312. package/src/bridge/ERC20Inbox.sol +141 -0
  313. package/src/bridge/ERC20Outbox.sol +27 -0
  314. package/src/bridge/IBridge.sol +1 -16
  315. package/src/bridge/IDelayedMessageProvider.sol +1 -1
  316. package/src/bridge/IERC20Bridge.sol +35 -0
  317. package/src/bridge/IERC20Inbox.sol +75 -0
  318. package/src/bridge/IEthBridge.sol +26 -0
  319. package/src/bridge/IEthInbox.sol +133 -0
  320. package/src/bridge/IInbox.sol +13 -123
  321. package/src/bridge/IOutbox.sol +1 -1
  322. package/src/bridge/IOwnable.sol +1 -1
  323. package/src/bridge/ISequencerInbox.sol +12 -4
  324. package/src/bridge/Inbox.sol +46 -333
  325. package/src/bridge/Messages.sol +1 -1
  326. package/src/bridge/Outbox.sol +8 -265
  327. package/src/bridge/SequencerInbox.sol +29 -8
  328. package/src/challenge/ChallengeLib.sol +1 -1
  329. package/src/challenge/ChallengeManager.sol +1 -1
  330. package/src/challenge/IChallengeManager.sol +1 -1
  331. package/src/challenge/IChallengeResultReceiver.sol +1 -1
  332. package/src/libraries/AddressAliasHelper.sol +1 -1
  333. package/src/libraries/AdminFallbackProxy.sol +1 -1
  334. package/src/libraries/ArbitrumChecker.sol +16 -0
  335. package/src/libraries/Constants.sol +1 -4
  336. package/src/libraries/CryptographyPrimitives.sol +1 -1
  337. package/src/libraries/DelegateCallAware.sol +1 -1
  338. package/src/libraries/DoubleLogicUUPSUpgradeable.sol +1 -1
  339. package/src/libraries/Error.sol +9 -1
  340. package/src/libraries/IGasRefunder.sol +1 -1
  341. package/src/libraries/MerkleLib.sol +1 -1
  342. package/src/libraries/MessageTypes.sol +1 -1
  343. package/src/mocks/BridgeStub.sol +3 -2
  344. package/src/mocks/BridgeUnproxied.sol +1 -1
  345. package/src/mocks/InboxStub.sol +28 -5
  346. package/src/mocks/MockResultReceiver.sol +1 -1
  347. package/src/mocks/ProxyAdminForBinding.sol +1 -1
  348. package/src/mocks/SequencerInboxStub.sol +3 -2
  349. package/src/mocks/Simple.sol +3 -1
  350. package/src/mocks/SimpleProxy.sol +1 -1
  351. package/src/mocks/SingleExecutionChallenge.sol +1 -1
  352. package/src/mocks/TimedOutChallengeManager.sol +1 -1
  353. package/src/node-interface/NodeInterface.sol +1 -1
  354. package/src/node-interface/NodeInterfaceDebug.sol +1 -1
  355. package/src/osp/HashProofHelper.sol +1 -1
  356. package/src/osp/IOneStepProofEntry.sol +1 -1
  357. package/src/osp/IOneStepProver.sol +2 -1
  358. package/src/osp/OneStepProofEntry.sol +1 -1
  359. package/src/osp/OneStepProver0.sol +1 -1
  360. package/src/osp/OneStepProverHostIo.sol +2 -1
  361. package/src/osp/OneStepProverMath.sol +1 -1
  362. package/src/osp/OneStepProverMemory.sol +2 -1
  363. package/src/precompiles/ArbAddressTable.sol +1 -1
  364. package/src/precompiles/ArbAggregator.sol +1 -1
  365. package/src/precompiles/ArbBLS.sol +1 -1
  366. package/src/precompiles/ArbDebug.sol +1 -1
  367. package/src/precompiles/ArbFunctionTable.sol +1 -1
  368. package/src/precompiles/ArbGasInfo.sol +1 -1
  369. package/src/precompiles/ArbInfo.sol +1 -1
  370. package/src/precompiles/ArbOwner.sol +1 -1
  371. package/src/precompiles/ArbOwnerPublic.sol +1 -1
  372. package/src/precompiles/ArbRetryableTx.sol +1 -1
  373. package/src/precompiles/ArbStatistics.sol +1 -1
  374. package/src/precompiles/ArbSys.sol +1 -1
  375. package/src/precompiles/ArbosTest.sol +1 -1
  376. package/src/rollup/AbsBridgeCreator.sol +117 -0
  377. package/src/rollup/AbsRollupCreator.sol +164 -0
  378. package/src/rollup/AbsRollupEventInbox.sol +62 -0
  379. package/src/rollup/BridgeCreator.sol +17 -88
  380. package/src/rollup/Config.sol +43 -0
  381. package/src/rollup/ERC20BridgeCreator.sol +48 -0
  382. package/src/rollup/ERC20RollupCreator.sol +48 -0
  383. package/src/rollup/ERC20RollupEventInbox.sol +26 -0
  384. package/src/rollup/IBridgeCreator.sol +64 -0
  385. package/src/rollup/IRollupAdmin.sol +138 -0
  386. package/src/rollup/IRollupCore.sol +7 -3
  387. package/src/rollup/IRollupCreator.sol +40 -0
  388. package/src/rollup/IRollupEventInbox.sol +1 -1
  389. package/src/rollup/IRollupLogic.sol +4 -132
  390. package/src/rollup/Node.sol +15 -1
  391. package/src/rollup/RollupAdminLogic.sol +6 -8
  392. package/src/rollup/RollupCore.sol +4 -11
  393. package/src/rollup/RollupCreator.sol +22 -97
  394. package/src/rollup/RollupEventInbox.sol +12 -35
  395. package/src/rollup/RollupLib.sol +2 -41
  396. package/src/rollup/RollupProxy.sol +3 -2
  397. package/src/rollup/RollupUserLogic.sol +6 -4
  398. package/src/rollup/ValidatorUtils.sol +2 -1
  399. package/src/rollup/ValidatorWallet.sol +1 -1
  400. package/src/rollup/ValidatorWalletCreator.sol +1 -1
  401. package/src/state/Deserialize.sol +2 -2
  402. package/src/state/GlobalState.sol +1 -1
  403. package/src/state/Instructions.sol +1 -1
  404. package/src/state/Machine.sol +1 -1
  405. package/src/state/MerkleProof.sol +1 -1
  406. package/src/state/Module.sol +3 -3
  407. package/src/state/ModuleMemory.sol +3 -8
  408. package/src/state/ModuleMemoryCompact.sol +17 -0
  409. package/src/state/PcArray.sol +1 -1
  410. package/src/state/StackFrame.sol +1 -1
  411. package/src/state/Value.sol +1 -1
  412. package/src/state/ValueArray.sol +1 -1
  413. package/src/state/ValueStack.sol +1 -1
  414. package/src/test-helpers/BridgeTester.sol +3 -2
  415. package/src/test-helpers/CryptographyPrimitivesTester.sol +1 -1
  416. package/src/test-helpers/EthVault.sol +20 -0
  417. package/src/test-helpers/InterfaceCompatibilityTester.sol +1 -1
  418. package/src/test-helpers/MessageTester.sol +1 -1
  419. package/src/test-helpers/OutboxWithoutOptTester.sol +1 -1
  420. package/src/test-helpers/RollupMock.sol +1 -1
  421. package/src/test-helpers/ValueArrayTester.sol +1 -1
  422. package/hardhat.config.ts +0 -164
@@ -0,0 +1,1443 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ import { Contract, Signer, utils } from "ethers";
6
+ import type { Provider } from "@ethersproject/providers";
7
+ import type {
8
+ IRollupUser,
9
+ IRollupUserInterface,
10
+ } from "../../../../src/rollup/IRollupLogic.sol/IRollupUser";
11
+
12
+ const _abi = [
13
+ {
14
+ anonymous: false,
15
+ inputs: [
16
+ {
17
+ indexed: true,
18
+ internalType: "uint64",
19
+ name: "nodeNum",
20
+ type: "uint64",
21
+ },
22
+ {
23
+ indexed: false,
24
+ internalType: "bytes32",
25
+ name: "blockHash",
26
+ type: "bytes32",
27
+ },
28
+ {
29
+ indexed: false,
30
+ internalType: "bytes32",
31
+ name: "sendRoot",
32
+ type: "bytes32",
33
+ },
34
+ ],
35
+ name: "NodeConfirmed",
36
+ type: "event",
37
+ },
38
+ {
39
+ anonymous: false,
40
+ inputs: [
41
+ {
42
+ indexed: true,
43
+ internalType: "uint64",
44
+ name: "nodeNum",
45
+ type: "uint64",
46
+ },
47
+ {
48
+ indexed: true,
49
+ internalType: "bytes32",
50
+ name: "parentNodeHash",
51
+ type: "bytes32",
52
+ },
53
+ {
54
+ indexed: true,
55
+ internalType: "bytes32",
56
+ name: "nodeHash",
57
+ type: "bytes32",
58
+ },
59
+ {
60
+ indexed: false,
61
+ internalType: "bytes32",
62
+ name: "executionHash",
63
+ type: "bytes32",
64
+ },
65
+ {
66
+ components: [
67
+ {
68
+ components: [
69
+ {
70
+ components: [
71
+ {
72
+ internalType: "bytes32[2]",
73
+ name: "bytes32Vals",
74
+ type: "bytes32[2]",
75
+ },
76
+ {
77
+ internalType: "uint64[2]",
78
+ name: "u64Vals",
79
+ type: "uint64[2]",
80
+ },
81
+ ],
82
+ internalType: "struct GlobalState",
83
+ name: "globalState",
84
+ type: "tuple",
85
+ },
86
+ {
87
+ internalType: "enum MachineStatus",
88
+ name: "machineStatus",
89
+ type: "uint8",
90
+ },
91
+ ],
92
+ internalType: "struct ExecutionState",
93
+ name: "beforeState",
94
+ type: "tuple",
95
+ },
96
+ {
97
+ components: [
98
+ {
99
+ components: [
100
+ {
101
+ internalType: "bytes32[2]",
102
+ name: "bytes32Vals",
103
+ type: "bytes32[2]",
104
+ },
105
+ {
106
+ internalType: "uint64[2]",
107
+ name: "u64Vals",
108
+ type: "uint64[2]",
109
+ },
110
+ ],
111
+ internalType: "struct GlobalState",
112
+ name: "globalState",
113
+ type: "tuple",
114
+ },
115
+ {
116
+ internalType: "enum MachineStatus",
117
+ name: "machineStatus",
118
+ type: "uint8",
119
+ },
120
+ ],
121
+ internalType: "struct ExecutionState",
122
+ name: "afterState",
123
+ type: "tuple",
124
+ },
125
+ {
126
+ internalType: "uint64",
127
+ name: "numBlocks",
128
+ type: "uint64",
129
+ },
130
+ ],
131
+ indexed: false,
132
+ internalType: "struct Assertion",
133
+ name: "assertion",
134
+ type: "tuple",
135
+ },
136
+ {
137
+ indexed: false,
138
+ internalType: "bytes32",
139
+ name: "afterInboxBatchAcc",
140
+ type: "bytes32",
141
+ },
142
+ {
143
+ indexed: false,
144
+ internalType: "bytes32",
145
+ name: "wasmModuleRoot",
146
+ type: "bytes32",
147
+ },
148
+ {
149
+ indexed: false,
150
+ internalType: "uint256",
151
+ name: "inboxMaxCount",
152
+ type: "uint256",
153
+ },
154
+ ],
155
+ name: "NodeCreated",
156
+ type: "event",
157
+ },
158
+ {
159
+ anonymous: false,
160
+ inputs: [
161
+ {
162
+ indexed: true,
163
+ internalType: "uint64",
164
+ name: "nodeNum",
165
+ type: "uint64",
166
+ },
167
+ ],
168
+ name: "NodeRejected",
169
+ type: "event",
170
+ },
171
+ {
172
+ anonymous: false,
173
+ inputs: [
174
+ {
175
+ indexed: true,
176
+ internalType: "uint64",
177
+ name: "challengeIndex",
178
+ type: "uint64",
179
+ },
180
+ {
181
+ indexed: false,
182
+ internalType: "address",
183
+ name: "asserter",
184
+ type: "address",
185
+ },
186
+ {
187
+ indexed: false,
188
+ internalType: "address",
189
+ name: "challenger",
190
+ type: "address",
191
+ },
192
+ {
193
+ indexed: false,
194
+ internalType: "uint64",
195
+ name: "challengedNode",
196
+ type: "uint64",
197
+ },
198
+ ],
199
+ name: "RollupChallengeStarted",
200
+ type: "event",
201
+ },
202
+ {
203
+ anonymous: false,
204
+ inputs: [
205
+ {
206
+ indexed: false,
207
+ internalType: "bytes32",
208
+ name: "machineHash",
209
+ type: "bytes32",
210
+ },
211
+ {
212
+ indexed: false,
213
+ internalType: "uint256",
214
+ name: "chainId",
215
+ type: "uint256",
216
+ },
217
+ ],
218
+ name: "RollupInitialized",
219
+ type: "event",
220
+ },
221
+ {
222
+ anonymous: false,
223
+ inputs: [
224
+ {
225
+ indexed: true,
226
+ internalType: "address",
227
+ name: "user",
228
+ type: "address",
229
+ },
230
+ {
231
+ indexed: false,
232
+ internalType: "uint256",
233
+ name: "initialBalance",
234
+ type: "uint256",
235
+ },
236
+ {
237
+ indexed: false,
238
+ internalType: "uint256",
239
+ name: "finalBalance",
240
+ type: "uint256",
241
+ },
242
+ ],
243
+ name: "UserStakeUpdated",
244
+ type: "event",
245
+ },
246
+ {
247
+ anonymous: false,
248
+ inputs: [
249
+ {
250
+ indexed: true,
251
+ internalType: "address",
252
+ name: "user",
253
+ type: "address",
254
+ },
255
+ {
256
+ indexed: false,
257
+ internalType: "uint256",
258
+ name: "initialBalance",
259
+ type: "uint256",
260
+ },
261
+ {
262
+ indexed: false,
263
+ internalType: "uint256",
264
+ name: "finalBalance",
265
+ type: "uint256",
266
+ },
267
+ ],
268
+ name: "UserWithdrawableFundsUpdated",
269
+ type: "event",
270
+ },
271
+ {
272
+ inputs: [
273
+ {
274
+ internalType: "address",
275
+ name: "stakerAddress",
276
+ type: "address",
277
+ },
278
+ ],
279
+ name: "addToDeposit",
280
+ outputs: [],
281
+ stateMutability: "payable",
282
+ type: "function",
283
+ },
284
+ {
285
+ inputs: [
286
+ {
287
+ internalType: "address",
288
+ name: "staker",
289
+ type: "address",
290
+ },
291
+ ],
292
+ name: "amountStaked",
293
+ outputs: [
294
+ {
295
+ internalType: "uint256",
296
+ name: "",
297
+ type: "uint256",
298
+ },
299
+ ],
300
+ stateMutability: "view",
301
+ type: "function",
302
+ },
303
+ {
304
+ inputs: [],
305
+ name: "baseStake",
306
+ outputs: [
307
+ {
308
+ internalType: "uint256",
309
+ name: "",
310
+ type: "uint256",
311
+ },
312
+ ],
313
+ stateMutability: "view",
314
+ type: "function",
315
+ },
316
+ {
317
+ inputs: [],
318
+ name: "bridge",
319
+ outputs: [
320
+ {
321
+ internalType: "contract IBridge",
322
+ name: "",
323
+ type: "address",
324
+ },
325
+ ],
326
+ stateMutability: "view",
327
+ type: "function",
328
+ },
329
+ {
330
+ inputs: [],
331
+ name: "chainId",
332
+ outputs: [
333
+ {
334
+ internalType: "uint256",
335
+ name: "",
336
+ type: "uint256",
337
+ },
338
+ ],
339
+ stateMutability: "view",
340
+ type: "function",
341
+ },
342
+ {
343
+ inputs: [],
344
+ name: "challengeManager",
345
+ outputs: [
346
+ {
347
+ internalType: "contract IChallengeManager",
348
+ name: "",
349
+ type: "address",
350
+ },
351
+ ],
352
+ stateMutability: "view",
353
+ type: "function",
354
+ },
355
+ {
356
+ inputs: [
357
+ {
358
+ internalType: "bytes32",
359
+ name: "blockHash",
360
+ type: "bytes32",
361
+ },
362
+ {
363
+ internalType: "bytes32",
364
+ name: "sendRoot",
365
+ type: "bytes32",
366
+ },
367
+ ],
368
+ name: "confirmNextNode",
369
+ outputs: [],
370
+ stateMutability: "nonpayable",
371
+ type: "function",
372
+ },
373
+ {
374
+ inputs: [],
375
+ name: "confirmPeriodBlocks",
376
+ outputs: [
377
+ {
378
+ internalType: "uint64",
379
+ name: "",
380
+ type: "uint64",
381
+ },
382
+ ],
383
+ stateMutability: "view",
384
+ type: "function",
385
+ },
386
+ {
387
+ inputs: [
388
+ {
389
+ internalType: "uint64",
390
+ name: "nodeNum",
391
+ type: "uint64",
392
+ },
393
+ ],
394
+ name: "countStakedZombies",
395
+ outputs: [
396
+ {
397
+ internalType: "uint256",
398
+ name: "",
399
+ type: "uint256",
400
+ },
401
+ ],
402
+ stateMutability: "view",
403
+ type: "function",
404
+ },
405
+ {
406
+ inputs: [
407
+ {
408
+ internalType: "uint64",
409
+ name: "nodeNum",
410
+ type: "uint64",
411
+ },
412
+ ],
413
+ name: "countZombiesStakedOnChildren",
414
+ outputs: [
415
+ {
416
+ internalType: "uint256",
417
+ name: "",
418
+ type: "uint256",
419
+ },
420
+ ],
421
+ stateMutability: "view",
422
+ type: "function",
423
+ },
424
+ {
425
+ inputs: [
426
+ {
427
+ internalType: "address[2]",
428
+ name: "stakers",
429
+ type: "address[2]",
430
+ },
431
+ {
432
+ internalType: "uint64[2]",
433
+ name: "nodeNums",
434
+ type: "uint64[2]",
435
+ },
436
+ {
437
+ internalType: "enum MachineStatus[2]",
438
+ name: "machineStatuses",
439
+ type: "uint8[2]",
440
+ },
441
+ {
442
+ components: [
443
+ {
444
+ internalType: "bytes32[2]",
445
+ name: "bytes32Vals",
446
+ type: "bytes32[2]",
447
+ },
448
+ {
449
+ internalType: "uint64[2]",
450
+ name: "u64Vals",
451
+ type: "uint64[2]",
452
+ },
453
+ ],
454
+ internalType: "struct GlobalState[2]",
455
+ name: "globalStates",
456
+ type: "tuple[2]",
457
+ },
458
+ {
459
+ internalType: "uint64",
460
+ name: "numBlocks",
461
+ type: "uint64",
462
+ },
463
+ {
464
+ internalType: "bytes32",
465
+ name: "secondExecutionHash",
466
+ type: "bytes32",
467
+ },
468
+ {
469
+ internalType: "uint256[2]",
470
+ name: "proposedTimes",
471
+ type: "uint256[2]",
472
+ },
473
+ {
474
+ internalType: "bytes32[2]",
475
+ name: "wasmModuleRoots",
476
+ type: "bytes32[2]",
477
+ },
478
+ ],
479
+ name: "createChallenge",
480
+ outputs: [],
481
+ stateMutability: "nonpayable",
482
+ type: "function",
483
+ },
484
+ {
485
+ inputs: [
486
+ {
487
+ internalType: "address",
488
+ name: "staker",
489
+ type: "address",
490
+ },
491
+ ],
492
+ name: "currentChallenge",
493
+ outputs: [
494
+ {
495
+ internalType: "uint64",
496
+ name: "",
497
+ type: "uint64",
498
+ },
499
+ ],
500
+ stateMutability: "view",
501
+ type: "function",
502
+ },
503
+ {
504
+ inputs: [],
505
+ name: "currentRequiredStake",
506
+ outputs: [
507
+ {
508
+ internalType: "uint256",
509
+ name: "",
510
+ type: "uint256",
511
+ },
512
+ ],
513
+ stateMutability: "view",
514
+ type: "function",
515
+ },
516
+ {
517
+ inputs: [],
518
+ name: "extraChallengeTimeBlocks",
519
+ outputs: [
520
+ {
521
+ internalType: "uint64",
522
+ name: "",
523
+ type: "uint64",
524
+ },
525
+ ],
526
+ stateMutability: "view",
527
+ type: "function",
528
+ },
529
+ {
530
+ inputs: [],
531
+ name: "firstUnresolvedNode",
532
+ outputs: [
533
+ {
534
+ internalType: "uint64",
535
+ name: "",
536
+ type: "uint64",
537
+ },
538
+ ],
539
+ stateMutability: "view",
540
+ type: "function",
541
+ },
542
+ {
543
+ inputs: [
544
+ {
545
+ internalType: "uint64",
546
+ name: "nodeNum",
547
+ type: "uint64",
548
+ },
549
+ ],
550
+ name: "getNode",
551
+ outputs: [
552
+ {
553
+ components: [
554
+ {
555
+ internalType: "bytes32",
556
+ name: "stateHash",
557
+ type: "bytes32",
558
+ },
559
+ {
560
+ internalType: "bytes32",
561
+ name: "challengeHash",
562
+ type: "bytes32",
563
+ },
564
+ {
565
+ internalType: "bytes32",
566
+ name: "confirmData",
567
+ type: "bytes32",
568
+ },
569
+ {
570
+ internalType: "uint64",
571
+ name: "prevNum",
572
+ type: "uint64",
573
+ },
574
+ {
575
+ internalType: "uint64",
576
+ name: "deadlineBlock",
577
+ type: "uint64",
578
+ },
579
+ {
580
+ internalType: "uint64",
581
+ name: "noChildConfirmedBeforeBlock",
582
+ type: "uint64",
583
+ },
584
+ {
585
+ internalType: "uint64",
586
+ name: "stakerCount",
587
+ type: "uint64",
588
+ },
589
+ {
590
+ internalType: "uint64",
591
+ name: "childStakerCount",
592
+ type: "uint64",
593
+ },
594
+ {
595
+ internalType: "uint64",
596
+ name: "firstChildBlock",
597
+ type: "uint64",
598
+ },
599
+ {
600
+ internalType: "uint64",
601
+ name: "latestChildNumber",
602
+ type: "uint64",
603
+ },
604
+ {
605
+ internalType: "uint64",
606
+ name: "createdAtBlock",
607
+ type: "uint64",
608
+ },
609
+ {
610
+ internalType: "bytes32",
611
+ name: "nodeHash",
612
+ type: "bytes32",
613
+ },
614
+ ],
615
+ internalType: "struct Node",
616
+ name: "",
617
+ type: "tuple",
618
+ },
619
+ ],
620
+ stateMutability: "view",
621
+ type: "function",
622
+ },
623
+ {
624
+ inputs: [
625
+ {
626
+ internalType: "uint64",
627
+ name: "nodeNum",
628
+ type: "uint64",
629
+ },
630
+ ],
631
+ name: "getNodeCreationBlockForLogLookup",
632
+ outputs: [
633
+ {
634
+ internalType: "uint256",
635
+ name: "",
636
+ type: "uint256",
637
+ },
638
+ ],
639
+ stateMutability: "view",
640
+ type: "function",
641
+ },
642
+ {
643
+ inputs: [
644
+ {
645
+ internalType: "address",
646
+ name: "staker",
647
+ type: "address",
648
+ },
649
+ ],
650
+ name: "getStaker",
651
+ outputs: [
652
+ {
653
+ components: [
654
+ {
655
+ internalType: "uint256",
656
+ name: "amountStaked",
657
+ type: "uint256",
658
+ },
659
+ {
660
+ internalType: "uint64",
661
+ name: "index",
662
+ type: "uint64",
663
+ },
664
+ {
665
+ internalType: "uint64",
666
+ name: "latestStakedNode",
667
+ type: "uint64",
668
+ },
669
+ {
670
+ internalType: "uint64",
671
+ name: "currentChallenge",
672
+ type: "uint64",
673
+ },
674
+ {
675
+ internalType: "bool",
676
+ name: "isStaked",
677
+ type: "bool",
678
+ },
679
+ ],
680
+ internalType: "struct IRollupCore.Staker",
681
+ name: "",
682
+ type: "tuple",
683
+ },
684
+ ],
685
+ stateMutability: "view",
686
+ type: "function",
687
+ },
688
+ {
689
+ inputs: [
690
+ {
691
+ internalType: "uint64",
692
+ name: "stakerNum",
693
+ type: "uint64",
694
+ },
695
+ ],
696
+ name: "getStakerAddress",
697
+ outputs: [
698
+ {
699
+ internalType: "address",
700
+ name: "",
701
+ type: "address",
702
+ },
703
+ ],
704
+ stateMutability: "view",
705
+ type: "function",
706
+ },
707
+ {
708
+ inputs: [
709
+ {
710
+ internalType: "address",
711
+ name: "stakeToken",
712
+ type: "address",
713
+ },
714
+ ],
715
+ name: "initialize",
716
+ outputs: [],
717
+ stateMutability: "view",
718
+ type: "function",
719
+ },
720
+ {
721
+ inputs: [],
722
+ name: "isERC20Enabled",
723
+ outputs: [
724
+ {
725
+ internalType: "bool",
726
+ name: "",
727
+ type: "bool",
728
+ },
729
+ ],
730
+ stateMutability: "view",
731
+ type: "function",
732
+ },
733
+ {
734
+ inputs: [
735
+ {
736
+ internalType: "address",
737
+ name: "staker",
738
+ type: "address",
739
+ },
740
+ ],
741
+ name: "isStaked",
742
+ outputs: [
743
+ {
744
+ internalType: "bool",
745
+ name: "",
746
+ type: "bool",
747
+ },
748
+ ],
749
+ stateMutability: "view",
750
+ type: "function",
751
+ },
752
+ {
753
+ inputs: [
754
+ {
755
+ internalType: "address",
756
+ name: "",
757
+ type: "address",
758
+ },
759
+ ],
760
+ name: "isValidator",
761
+ outputs: [
762
+ {
763
+ internalType: "bool",
764
+ name: "",
765
+ type: "bool",
766
+ },
767
+ ],
768
+ stateMutability: "view",
769
+ type: "function",
770
+ },
771
+ {
772
+ inputs: [
773
+ {
774
+ internalType: "address",
775
+ name: "staker",
776
+ type: "address",
777
+ },
778
+ ],
779
+ name: "isZombie",
780
+ outputs: [
781
+ {
782
+ internalType: "bool",
783
+ name: "",
784
+ type: "bool",
785
+ },
786
+ ],
787
+ stateMutability: "view",
788
+ type: "function",
789
+ },
790
+ {
791
+ inputs: [],
792
+ name: "lastStakeBlock",
793
+ outputs: [
794
+ {
795
+ internalType: "uint64",
796
+ name: "",
797
+ type: "uint64",
798
+ },
799
+ ],
800
+ stateMutability: "view",
801
+ type: "function",
802
+ },
803
+ {
804
+ inputs: [],
805
+ name: "latestConfirmed",
806
+ outputs: [
807
+ {
808
+ internalType: "uint64",
809
+ name: "",
810
+ type: "uint64",
811
+ },
812
+ ],
813
+ stateMutability: "view",
814
+ type: "function",
815
+ },
816
+ {
817
+ inputs: [],
818
+ name: "latestNodeCreated",
819
+ outputs: [
820
+ {
821
+ internalType: "uint64",
822
+ name: "",
823
+ type: "uint64",
824
+ },
825
+ ],
826
+ stateMutability: "view",
827
+ type: "function",
828
+ },
829
+ {
830
+ inputs: [
831
+ {
832
+ internalType: "address",
833
+ name: "staker",
834
+ type: "address",
835
+ },
836
+ ],
837
+ name: "latestStakedNode",
838
+ outputs: [
839
+ {
840
+ internalType: "uint64",
841
+ name: "",
842
+ type: "uint64",
843
+ },
844
+ ],
845
+ stateMutability: "view",
846
+ type: "function",
847
+ },
848
+ {
849
+ inputs: [],
850
+ name: "loserStakeEscrow",
851
+ outputs: [
852
+ {
853
+ internalType: "address",
854
+ name: "",
855
+ type: "address",
856
+ },
857
+ ],
858
+ stateMutability: "view",
859
+ type: "function",
860
+ },
861
+ {
862
+ inputs: [],
863
+ name: "minimumAssertionPeriod",
864
+ outputs: [
865
+ {
866
+ internalType: "uint256",
867
+ name: "",
868
+ type: "uint256",
869
+ },
870
+ ],
871
+ stateMutability: "view",
872
+ type: "function",
873
+ },
874
+ {
875
+ inputs: [
876
+ {
877
+ internalType: "uint64",
878
+ name: "nodeNum",
879
+ type: "uint64",
880
+ },
881
+ {
882
+ internalType: "bytes32",
883
+ name: "nodeHash",
884
+ type: "bytes32",
885
+ },
886
+ ],
887
+ name: "newStakeOnExistingNode",
888
+ outputs: [],
889
+ stateMutability: "payable",
890
+ type: "function",
891
+ },
892
+ {
893
+ inputs: [
894
+ {
895
+ components: [
896
+ {
897
+ components: [
898
+ {
899
+ components: [
900
+ {
901
+ internalType: "bytes32[2]",
902
+ name: "bytes32Vals",
903
+ type: "bytes32[2]",
904
+ },
905
+ {
906
+ internalType: "uint64[2]",
907
+ name: "u64Vals",
908
+ type: "uint64[2]",
909
+ },
910
+ ],
911
+ internalType: "struct GlobalState",
912
+ name: "globalState",
913
+ type: "tuple",
914
+ },
915
+ {
916
+ internalType: "enum MachineStatus",
917
+ name: "machineStatus",
918
+ type: "uint8",
919
+ },
920
+ ],
921
+ internalType: "struct ExecutionState",
922
+ name: "beforeState",
923
+ type: "tuple",
924
+ },
925
+ {
926
+ components: [
927
+ {
928
+ components: [
929
+ {
930
+ internalType: "bytes32[2]",
931
+ name: "bytes32Vals",
932
+ type: "bytes32[2]",
933
+ },
934
+ {
935
+ internalType: "uint64[2]",
936
+ name: "u64Vals",
937
+ type: "uint64[2]",
938
+ },
939
+ ],
940
+ internalType: "struct GlobalState",
941
+ name: "globalState",
942
+ type: "tuple",
943
+ },
944
+ {
945
+ internalType: "enum MachineStatus",
946
+ name: "machineStatus",
947
+ type: "uint8",
948
+ },
949
+ ],
950
+ internalType: "struct ExecutionState",
951
+ name: "afterState",
952
+ type: "tuple",
953
+ },
954
+ {
955
+ internalType: "uint64",
956
+ name: "numBlocks",
957
+ type: "uint64",
958
+ },
959
+ ],
960
+ internalType: "struct Assertion",
961
+ name: "assertion",
962
+ type: "tuple",
963
+ },
964
+ {
965
+ internalType: "bytes32",
966
+ name: "expectedNodeHash",
967
+ type: "bytes32",
968
+ },
969
+ {
970
+ internalType: "uint256",
971
+ name: "prevNodeInboxMaxCount",
972
+ type: "uint256",
973
+ },
974
+ ],
975
+ name: "newStakeOnNewNode",
976
+ outputs: [],
977
+ stateMutability: "payable",
978
+ type: "function",
979
+ },
980
+ {
981
+ inputs: [
982
+ {
983
+ internalType: "uint64",
984
+ name: "nodeNum",
985
+ type: "uint64",
986
+ },
987
+ {
988
+ internalType: "address",
989
+ name: "staker",
990
+ type: "address",
991
+ },
992
+ ],
993
+ name: "nodeHasStaker",
994
+ outputs: [
995
+ {
996
+ internalType: "bool",
997
+ name: "",
998
+ type: "bool",
999
+ },
1000
+ ],
1001
+ stateMutability: "view",
1002
+ type: "function",
1003
+ },
1004
+ {
1005
+ inputs: [],
1006
+ name: "outbox",
1007
+ outputs: [
1008
+ {
1009
+ internalType: "contract IOutbox",
1010
+ name: "",
1011
+ type: "address",
1012
+ },
1013
+ ],
1014
+ stateMutability: "view",
1015
+ type: "function",
1016
+ },
1017
+ {
1018
+ inputs: [],
1019
+ name: "owner",
1020
+ outputs: [
1021
+ {
1022
+ internalType: "address",
1023
+ name: "",
1024
+ type: "address",
1025
+ },
1026
+ ],
1027
+ stateMutability: "view",
1028
+ type: "function",
1029
+ },
1030
+ {
1031
+ inputs: [
1032
+ {
1033
+ internalType: "uint256",
1034
+ name: "target",
1035
+ type: "uint256",
1036
+ },
1037
+ ],
1038
+ name: "reduceDeposit",
1039
+ outputs: [],
1040
+ stateMutability: "nonpayable",
1041
+ type: "function",
1042
+ },
1043
+ {
1044
+ inputs: [
1045
+ {
1046
+ internalType: "address",
1047
+ name: "stakerAddress",
1048
+ type: "address",
1049
+ },
1050
+ ],
1051
+ name: "rejectNextNode",
1052
+ outputs: [],
1053
+ stateMutability: "nonpayable",
1054
+ type: "function",
1055
+ },
1056
+ {
1057
+ inputs: [
1058
+ {
1059
+ internalType: "uint256",
1060
+ name: "startIndex",
1061
+ type: "uint256",
1062
+ },
1063
+ ],
1064
+ name: "removeOldZombies",
1065
+ outputs: [],
1066
+ stateMutability: "nonpayable",
1067
+ type: "function",
1068
+ },
1069
+ {
1070
+ inputs: [],
1071
+ name: "removeWhitelistAfterFork",
1072
+ outputs: [],
1073
+ stateMutability: "nonpayable",
1074
+ type: "function",
1075
+ },
1076
+ {
1077
+ inputs: [],
1078
+ name: "removeWhitelistAfterValidatorAfk",
1079
+ outputs: [],
1080
+ stateMutability: "nonpayable",
1081
+ type: "function",
1082
+ },
1083
+ {
1084
+ inputs: [
1085
+ {
1086
+ internalType: "uint256",
1087
+ name: "zombieNum",
1088
+ type: "uint256",
1089
+ },
1090
+ {
1091
+ internalType: "uint256",
1092
+ name: "maxNodes",
1093
+ type: "uint256",
1094
+ },
1095
+ ],
1096
+ name: "removeZombie",
1097
+ outputs: [],
1098
+ stateMutability: "nonpayable",
1099
+ type: "function",
1100
+ },
1101
+ {
1102
+ inputs: [
1103
+ {
1104
+ internalType: "uint256",
1105
+ name: "nodeNum",
1106
+ type: "uint256",
1107
+ },
1108
+ ],
1109
+ name: "requireUnresolved",
1110
+ outputs: [],
1111
+ stateMutability: "view",
1112
+ type: "function",
1113
+ },
1114
+ {
1115
+ inputs: [],
1116
+ name: "requireUnresolvedExists",
1117
+ outputs: [],
1118
+ stateMutability: "view",
1119
+ type: "function",
1120
+ },
1121
+ {
1122
+ inputs: [
1123
+ {
1124
+ internalType: "uint256",
1125
+ name: "blockNumber",
1126
+ type: "uint256",
1127
+ },
1128
+ {
1129
+ internalType: "uint64",
1130
+ name: "firstUnresolvedNodeNum",
1131
+ type: "uint64",
1132
+ },
1133
+ {
1134
+ internalType: "uint64",
1135
+ name: "latestCreatedNode",
1136
+ type: "uint64",
1137
+ },
1138
+ ],
1139
+ name: "requiredStake",
1140
+ outputs: [
1141
+ {
1142
+ internalType: "uint256",
1143
+ name: "",
1144
+ type: "uint256",
1145
+ },
1146
+ ],
1147
+ stateMutability: "view",
1148
+ type: "function",
1149
+ },
1150
+ {
1151
+ inputs: [
1152
+ {
1153
+ internalType: "address",
1154
+ name: "stakerAddress",
1155
+ type: "address",
1156
+ },
1157
+ ],
1158
+ name: "returnOldDeposit",
1159
+ outputs: [],
1160
+ stateMutability: "nonpayable",
1161
+ type: "function",
1162
+ },
1163
+ {
1164
+ inputs: [],
1165
+ name: "rollupEventInbox",
1166
+ outputs: [
1167
+ {
1168
+ internalType: "contract IRollupEventInbox",
1169
+ name: "",
1170
+ type: "address",
1171
+ },
1172
+ ],
1173
+ stateMutability: "view",
1174
+ type: "function",
1175
+ },
1176
+ {
1177
+ inputs: [],
1178
+ name: "sequencerInbox",
1179
+ outputs: [
1180
+ {
1181
+ internalType: "contract ISequencerInbox",
1182
+ name: "",
1183
+ type: "address",
1184
+ },
1185
+ ],
1186
+ stateMutability: "view",
1187
+ type: "function",
1188
+ },
1189
+ {
1190
+ inputs: [
1191
+ {
1192
+ internalType: "uint64",
1193
+ name: "nodeNum",
1194
+ type: "uint64",
1195
+ },
1196
+ {
1197
+ internalType: "bytes32",
1198
+ name: "nodeHash",
1199
+ type: "bytes32",
1200
+ },
1201
+ ],
1202
+ name: "stakeOnExistingNode",
1203
+ outputs: [],
1204
+ stateMutability: "nonpayable",
1205
+ type: "function",
1206
+ },
1207
+ {
1208
+ inputs: [
1209
+ {
1210
+ components: [
1211
+ {
1212
+ components: [
1213
+ {
1214
+ components: [
1215
+ {
1216
+ internalType: "bytes32[2]",
1217
+ name: "bytes32Vals",
1218
+ type: "bytes32[2]",
1219
+ },
1220
+ {
1221
+ internalType: "uint64[2]",
1222
+ name: "u64Vals",
1223
+ type: "uint64[2]",
1224
+ },
1225
+ ],
1226
+ internalType: "struct GlobalState",
1227
+ name: "globalState",
1228
+ type: "tuple",
1229
+ },
1230
+ {
1231
+ internalType: "enum MachineStatus",
1232
+ name: "machineStatus",
1233
+ type: "uint8",
1234
+ },
1235
+ ],
1236
+ internalType: "struct ExecutionState",
1237
+ name: "beforeState",
1238
+ type: "tuple",
1239
+ },
1240
+ {
1241
+ components: [
1242
+ {
1243
+ components: [
1244
+ {
1245
+ internalType: "bytes32[2]",
1246
+ name: "bytes32Vals",
1247
+ type: "bytes32[2]",
1248
+ },
1249
+ {
1250
+ internalType: "uint64[2]",
1251
+ name: "u64Vals",
1252
+ type: "uint64[2]",
1253
+ },
1254
+ ],
1255
+ internalType: "struct GlobalState",
1256
+ name: "globalState",
1257
+ type: "tuple",
1258
+ },
1259
+ {
1260
+ internalType: "enum MachineStatus",
1261
+ name: "machineStatus",
1262
+ type: "uint8",
1263
+ },
1264
+ ],
1265
+ internalType: "struct ExecutionState",
1266
+ name: "afterState",
1267
+ type: "tuple",
1268
+ },
1269
+ {
1270
+ internalType: "uint64",
1271
+ name: "numBlocks",
1272
+ type: "uint64",
1273
+ },
1274
+ ],
1275
+ internalType: "struct Assertion",
1276
+ name: "assertion",
1277
+ type: "tuple",
1278
+ },
1279
+ {
1280
+ internalType: "bytes32",
1281
+ name: "expectedNodeHash",
1282
+ type: "bytes32",
1283
+ },
1284
+ {
1285
+ internalType: "uint256",
1286
+ name: "prevNodeInboxMaxCount",
1287
+ type: "uint256",
1288
+ },
1289
+ ],
1290
+ name: "stakeOnNewNode",
1291
+ outputs: [],
1292
+ stateMutability: "nonpayable",
1293
+ type: "function",
1294
+ },
1295
+ {
1296
+ inputs: [],
1297
+ name: "stakeToken",
1298
+ outputs: [
1299
+ {
1300
+ internalType: "address",
1301
+ name: "",
1302
+ type: "address",
1303
+ },
1304
+ ],
1305
+ stateMutability: "view",
1306
+ type: "function",
1307
+ },
1308
+ {
1309
+ inputs: [],
1310
+ name: "stakerCount",
1311
+ outputs: [
1312
+ {
1313
+ internalType: "uint64",
1314
+ name: "",
1315
+ type: "uint64",
1316
+ },
1317
+ ],
1318
+ stateMutability: "view",
1319
+ type: "function",
1320
+ },
1321
+ {
1322
+ inputs: [],
1323
+ name: "validatorWhitelistDisabled",
1324
+ outputs: [
1325
+ {
1326
+ internalType: "bool",
1327
+ name: "",
1328
+ type: "bool",
1329
+ },
1330
+ ],
1331
+ stateMutability: "view",
1332
+ type: "function",
1333
+ },
1334
+ {
1335
+ inputs: [],
1336
+ name: "wasmModuleRoot",
1337
+ outputs: [
1338
+ {
1339
+ internalType: "bytes32",
1340
+ name: "",
1341
+ type: "bytes32",
1342
+ },
1343
+ ],
1344
+ stateMutability: "view",
1345
+ type: "function",
1346
+ },
1347
+ {
1348
+ inputs: [],
1349
+ name: "withdrawStakerFunds",
1350
+ outputs: [
1351
+ {
1352
+ internalType: "uint256",
1353
+ name: "",
1354
+ type: "uint256",
1355
+ },
1356
+ ],
1357
+ stateMutability: "nonpayable",
1358
+ type: "function",
1359
+ },
1360
+ {
1361
+ inputs: [
1362
+ {
1363
+ internalType: "address",
1364
+ name: "owner",
1365
+ type: "address",
1366
+ },
1367
+ ],
1368
+ name: "withdrawableFunds",
1369
+ outputs: [
1370
+ {
1371
+ internalType: "uint256",
1372
+ name: "",
1373
+ type: "uint256",
1374
+ },
1375
+ ],
1376
+ stateMutability: "view",
1377
+ type: "function",
1378
+ },
1379
+ {
1380
+ inputs: [
1381
+ {
1382
+ internalType: "uint256",
1383
+ name: "zombieNum",
1384
+ type: "uint256",
1385
+ },
1386
+ ],
1387
+ name: "zombieAddress",
1388
+ outputs: [
1389
+ {
1390
+ internalType: "address",
1391
+ name: "",
1392
+ type: "address",
1393
+ },
1394
+ ],
1395
+ stateMutability: "view",
1396
+ type: "function",
1397
+ },
1398
+ {
1399
+ inputs: [],
1400
+ name: "zombieCount",
1401
+ outputs: [
1402
+ {
1403
+ internalType: "uint256",
1404
+ name: "",
1405
+ type: "uint256",
1406
+ },
1407
+ ],
1408
+ stateMutability: "view",
1409
+ type: "function",
1410
+ },
1411
+ {
1412
+ inputs: [
1413
+ {
1414
+ internalType: "uint256",
1415
+ name: "zombieNum",
1416
+ type: "uint256",
1417
+ },
1418
+ ],
1419
+ name: "zombieLatestStakedNode",
1420
+ outputs: [
1421
+ {
1422
+ internalType: "uint64",
1423
+ name: "",
1424
+ type: "uint64",
1425
+ },
1426
+ ],
1427
+ stateMutability: "view",
1428
+ type: "function",
1429
+ },
1430
+ ];
1431
+
1432
+ export class IRollupUser__factory {
1433
+ static readonly abi = _abi;
1434
+ static createInterface(): IRollupUserInterface {
1435
+ return new utils.Interface(_abi) as IRollupUserInterface;
1436
+ }
1437
+ static connect(
1438
+ address: string,
1439
+ signerOrProvider: Signer | Provider
1440
+ ): IRollupUser {
1441
+ return new Contract(address, _abi, signerOrProvider) as IRollupUser;
1442
+ }
1443
+ }