@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,1458 @@
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
+ IRollupUserERC20,
9
+ IRollupUserERC20Interface,
10
+ } from "../../../../src/rollup/IRollupLogic.sol/IRollupUserERC20";
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
+ internalType: "uint256",
280
+ name: "tokenAmount",
281
+ type: "uint256",
282
+ },
283
+ ],
284
+ name: "addToDeposit",
285
+ outputs: [],
286
+ stateMutability: "nonpayable",
287
+ type: "function",
288
+ },
289
+ {
290
+ inputs: [
291
+ {
292
+ internalType: "address",
293
+ name: "staker",
294
+ type: "address",
295
+ },
296
+ ],
297
+ name: "amountStaked",
298
+ outputs: [
299
+ {
300
+ internalType: "uint256",
301
+ name: "",
302
+ type: "uint256",
303
+ },
304
+ ],
305
+ stateMutability: "view",
306
+ type: "function",
307
+ },
308
+ {
309
+ inputs: [],
310
+ name: "baseStake",
311
+ outputs: [
312
+ {
313
+ internalType: "uint256",
314
+ name: "",
315
+ type: "uint256",
316
+ },
317
+ ],
318
+ stateMutability: "view",
319
+ type: "function",
320
+ },
321
+ {
322
+ inputs: [],
323
+ name: "bridge",
324
+ outputs: [
325
+ {
326
+ internalType: "contract IBridge",
327
+ name: "",
328
+ type: "address",
329
+ },
330
+ ],
331
+ stateMutability: "view",
332
+ type: "function",
333
+ },
334
+ {
335
+ inputs: [],
336
+ name: "chainId",
337
+ outputs: [
338
+ {
339
+ internalType: "uint256",
340
+ name: "",
341
+ type: "uint256",
342
+ },
343
+ ],
344
+ stateMutability: "view",
345
+ type: "function",
346
+ },
347
+ {
348
+ inputs: [],
349
+ name: "challengeManager",
350
+ outputs: [
351
+ {
352
+ internalType: "contract IChallengeManager",
353
+ name: "",
354
+ type: "address",
355
+ },
356
+ ],
357
+ stateMutability: "view",
358
+ type: "function",
359
+ },
360
+ {
361
+ inputs: [
362
+ {
363
+ internalType: "bytes32",
364
+ name: "blockHash",
365
+ type: "bytes32",
366
+ },
367
+ {
368
+ internalType: "bytes32",
369
+ name: "sendRoot",
370
+ type: "bytes32",
371
+ },
372
+ ],
373
+ name: "confirmNextNode",
374
+ outputs: [],
375
+ stateMutability: "nonpayable",
376
+ type: "function",
377
+ },
378
+ {
379
+ inputs: [],
380
+ name: "confirmPeriodBlocks",
381
+ outputs: [
382
+ {
383
+ internalType: "uint64",
384
+ name: "",
385
+ type: "uint64",
386
+ },
387
+ ],
388
+ stateMutability: "view",
389
+ type: "function",
390
+ },
391
+ {
392
+ inputs: [
393
+ {
394
+ internalType: "uint64",
395
+ name: "nodeNum",
396
+ type: "uint64",
397
+ },
398
+ ],
399
+ name: "countStakedZombies",
400
+ outputs: [
401
+ {
402
+ internalType: "uint256",
403
+ name: "",
404
+ type: "uint256",
405
+ },
406
+ ],
407
+ stateMutability: "view",
408
+ type: "function",
409
+ },
410
+ {
411
+ inputs: [
412
+ {
413
+ internalType: "uint64",
414
+ name: "nodeNum",
415
+ type: "uint64",
416
+ },
417
+ ],
418
+ name: "countZombiesStakedOnChildren",
419
+ outputs: [
420
+ {
421
+ internalType: "uint256",
422
+ name: "",
423
+ type: "uint256",
424
+ },
425
+ ],
426
+ stateMutability: "view",
427
+ type: "function",
428
+ },
429
+ {
430
+ inputs: [
431
+ {
432
+ internalType: "address[2]",
433
+ name: "stakers",
434
+ type: "address[2]",
435
+ },
436
+ {
437
+ internalType: "uint64[2]",
438
+ name: "nodeNums",
439
+ type: "uint64[2]",
440
+ },
441
+ {
442
+ internalType: "enum MachineStatus[2]",
443
+ name: "machineStatuses",
444
+ type: "uint8[2]",
445
+ },
446
+ {
447
+ components: [
448
+ {
449
+ internalType: "bytes32[2]",
450
+ name: "bytes32Vals",
451
+ type: "bytes32[2]",
452
+ },
453
+ {
454
+ internalType: "uint64[2]",
455
+ name: "u64Vals",
456
+ type: "uint64[2]",
457
+ },
458
+ ],
459
+ internalType: "struct GlobalState[2]",
460
+ name: "globalStates",
461
+ type: "tuple[2]",
462
+ },
463
+ {
464
+ internalType: "uint64",
465
+ name: "numBlocks",
466
+ type: "uint64",
467
+ },
468
+ {
469
+ internalType: "bytes32",
470
+ name: "secondExecutionHash",
471
+ type: "bytes32",
472
+ },
473
+ {
474
+ internalType: "uint256[2]",
475
+ name: "proposedTimes",
476
+ type: "uint256[2]",
477
+ },
478
+ {
479
+ internalType: "bytes32[2]",
480
+ name: "wasmModuleRoots",
481
+ type: "bytes32[2]",
482
+ },
483
+ ],
484
+ name: "createChallenge",
485
+ outputs: [],
486
+ stateMutability: "nonpayable",
487
+ type: "function",
488
+ },
489
+ {
490
+ inputs: [
491
+ {
492
+ internalType: "address",
493
+ name: "staker",
494
+ type: "address",
495
+ },
496
+ ],
497
+ name: "currentChallenge",
498
+ outputs: [
499
+ {
500
+ internalType: "uint64",
501
+ name: "",
502
+ type: "uint64",
503
+ },
504
+ ],
505
+ stateMutability: "view",
506
+ type: "function",
507
+ },
508
+ {
509
+ inputs: [],
510
+ name: "currentRequiredStake",
511
+ outputs: [
512
+ {
513
+ internalType: "uint256",
514
+ name: "",
515
+ type: "uint256",
516
+ },
517
+ ],
518
+ stateMutability: "view",
519
+ type: "function",
520
+ },
521
+ {
522
+ inputs: [],
523
+ name: "extraChallengeTimeBlocks",
524
+ outputs: [
525
+ {
526
+ internalType: "uint64",
527
+ name: "",
528
+ type: "uint64",
529
+ },
530
+ ],
531
+ stateMutability: "view",
532
+ type: "function",
533
+ },
534
+ {
535
+ inputs: [],
536
+ name: "firstUnresolvedNode",
537
+ outputs: [
538
+ {
539
+ internalType: "uint64",
540
+ name: "",
541
+ type: "uint64",
542
+ },
543
+ ],
544
+ stateMutability: "view",
545
+ type: "function",
546
+ },
547
+ {
548
+ inputs: [
549
+ {
550
+ internalType: "uint64",
551
+ name: "nodeNum",
552
+ type: "uint64",
553
+ },
554
+ ],
555
+ name: "getNode",
556
+ outputs: [
557
+ {
558
+ components: [
559
+ {
560
+ internalType: "bytes32",
561
+ name: "stateHash",
562
+ type: "bytes32",
563
+ },
564
+ {
565
+ internalType: "bytes32",
566
+ name: "challengeHash",
567
+ type: "bytes32",
568
+ },
569
+ {
570
+ internalType: "bytes32",
571
+ name: "confirmData",
572
+ type: "bytes32",
573
+ },
574
+ {
575
+ internalType: "uint64",
576
+ name: "prevNum",
577
+ type: "uint64",
578
+ },
579
+ {
580
+ internalType: "uint64",
581
+ name: "deadlineBlock",
582
+ type: "uint64",
583
+ },
584
+ {
585
+ internalType: "uint64",
586
+ name: "noChildConfirmedBeforeBlock",
587
+ type: "uint64",
588
+ },
589
+ {
590
+ internalType: "uint64",
591
+ name: "stakerCount",
592
+ type: "uint64",
593
+ },
594
+ {
595
+ internalType: "uint64",
596
+ name: "childStakerCount",
597
+ type: "uint64",
598
+ },
599
+ {
600
+ internalType: "uint64",
601
+ name: "firstChildBlock",
602
+ type: "uint64",
603
+ },
604
+ {
605
+ internalType: "uint64",
606
+ name: "latestChildNumber",
607
+ type: "uint64",
608
+ },
609
+ {
610
+ internalType: "uint64",
611
+ name: "createdAtBlock",
612
+ type: "uint64",
613
+ },
614
+ {
615
+ internalType: "bytes32",
616
+ name: "nodeHash",
617
+ type: "bytes32",
618
+ },
619
+ ],
620
+ internalType: "struct Node",
621
+ name: "",
622
+ type: "tuple",
623
+ },
624
+ ],
625
+ stateMutability: "view",
626
+ type: "function",
627
+ },
628
+ {
629
+ inputs: [
630
+ {
631
+ internalType: "uint64",
632
+ name: "nodeNum",
633
+ type: "uint64",
634
+ },
635
+ ],
636
+ name: "getNodeCreationBlockForLogLookup",
637
+ outputs: [
638
+ {
639
+ internalType: "uint256",
640
+ name: "",
641
+ type: "uint256",
642
+ },
643
+ ],
644
+ stateMutability: "view",
645
+ type: "function",
646
+ },
647
+ {
648
+ inputs: [
649
+ {
650
+ internalType: "address",
651
+ name: "staker",
652
+ type: "address",
653
+ },
654
+ ],
655
+ name: "getStaker",
656
+ outputs: [
657
+ {
658
+ components: [
659
+ {
660
+ internalType: "uint256",
661
+ name: "amountStaked",
662
+ type: "uint256",
663
+ },
664
+ {
665
+ internalType: "uint64",
666
+ name: "index",
667
+ type: "uint64",
668
+ },
669
+ {
670
+ internalType: "uint64",
671
+ name: "latestStakedNode",
672
+ type: "uint64",
673
+ },
674
+ {
675
+ internalType: "uint64",
676
+ name: "currentChallenge",
677
+ type: "uint64",
678
+ },
679
+ {
680
+ internalType: "bool",
681
+ name: "isStaked",
682
+ type: "bool",
683
+ },
684
+ ],
685
+ internalType: "struct IRollupCore.Staker",
686
+ name: "",
687
+ type: "tuple",
688
+ },
689
+ ],
690
+ stateMutability: "view",
691
+ type: "function",
692
+ },
693
+ {
694
+ inputs: [
695
+ {
696
+ internalType: "uint64",
697
+ name: "stakerNum",
698
+ type: "uint64",
699
+ },
700
+ ],
701
+ name: "getStakerAddress",
702
+ outputs: [
703
+ {
704
+ internalType: "address",
705
+ name: "",
706
+ type: "address",
707
+ },
708
+ ],
709
+ stateMutability: "view",
710
+ type: "function",
711
+ },
712
+ {
713
+ inputs: [
714
+ {
715
+ internalType: "address",
716
+ name: "stakeToken",
717
+ type: "address",
718
+ },
719
+ ],
720
+ name: "initialize",
721
+ outputs: [],
722
+ stateMutability: "view",
723
+ type: "function",
724
+ },
725
+ {
726
+ inputs: [],
727
+ name: "isERC20Enabled",
728
+ outputs: [
729
+ {
730
+ internalType: "bool",
731
+ name: "",
732
+ type: "bool",
733
+ },
734
+ ],
735
+ stateMutability: "view",
736
+ type: "function",
737
+ },
738
+ {
739
+ inputs: [
740
+ {
741
+ internalType: "address",
742
+ name: "staker",
743
+ type: "address",
744
+ },
745
+ ],
746
+ name: "isStaked",
747
+ outputs: [
748
+ {
749
+ internalType: "bool",
750
+ name: "",
751
+ type: "bool",
752
+ },
753
+ ],
754
+ stateMutability: "view",
755
+ type: "function",
756
+ },
757
+ {
758
+ inputs: [
759
+ {
760
+ internalType: "address",
761
+ name: "",
762
+ type: "address",
763
+ },
764
+ ],
765
+ name: "isValidator",
766
+ outputs: [
767
+ {
768
+ internalType: "bool",
769
+ name: "",
770
+ type: "bool",
771
+ },
772
+ ],
773
+ stateMutability: "view",
774
+ type: "function",
775
+ },
776
+ {
777
+ inputs: [
778
+ {
779
+ internalType: "address",
780
+ name: "staker",
781
+ type: "address",
782
+ },
783
+ ],
784
+ name: "isZombie",
785
+ outputs: [
786
+ {
787
+ internalType: "bool",
788
+ name: "",
789
+ type: "bool",
790
+ },
791
+ ],
792
+ stateMutability: "view",
793
+ type: "function",
794
+ },
795
+ {
796
+ inputs: [],
797
+ name: "lastStakeBlock",
798
+ outputs: [
799
+ {
800
+ internalType: "uint64",
801
+ name: "",
802
+ type: "uint64",
803
+ },
804
+ ],
805
+ stateMutability: "view",
806
+ type: "function",
807
+ },
808
+ {
809
+ inputs: [],
810
+ name: "latestConfirmed",
811
+ outputs: [
812
+ {
813
+ internalType: "uint64",
814
+ name: "",
815
+ type: "uint64",
816
+ },
817
+ ],
818
+ stateMutability: "view",
819
+ type: "function",
820
+ },
821
+ {
822
+ inputs: [],
823
+ name: "latestNodeCreated",
824
+ outputs: [
825
+ {
826
+ internalType: "uint64",
827
+ name: "",
828
+ type: "uint64",
829
+ },
830
+ ],
831
+ stateMutability: "view",
832
+ type: "function",
833
+ },
834
+ {
835
+ inputs: [
836
+ {
837
+ internalType: "address",
838
+ name: "staker",
839
+ type: "address",
840
+ },
841
+ ],
842
+ name: "latestStakedNode",
843
+ outputs: [
844
+ {
845
+ internalType: "uint64",
846
+ name: "",
847
+ type: "uint64",
848
+ },
849
+ ],
850
+ stateMutability: "view",
851
+ type: "function",
852
+ },
853
+ {
854
+ inputs: [],
855
+ name: "loserStakeEscrow",
856
+ outputs: [
857
+ {
858
+ internalType: "address",
859
+ name: "",
860
+ type: "address",
861
+ },
862
+ ],
863
+ stateMutability: "view",
864
+ type: "function",
865
+ },
866
+ {
867
+ inputs: [],
868
+ name: "minimumAssertionPeriod",
869
+ outputs: [
870
+ {
871
+ internalType: "uint256",
872
+ name: "",
873
+ type: "uint256",
874
+ },
875
+ ],
876
+ stateMutability: "view",
877
+ type: "function",
878
+ },
879
+ {
880
+ inputs: [
881
+ {
882
+ internalType: "uint256",
883
+ name: "tokenAmount",
884
+ type: "uint256",
885
+ },
886
+ {
887
+ internalType: "uint64",
888
+ name: "nodeNum",
889
+ type: "uint64",
890
+ },
891
+ {
892
+ internalType: "bytes32",
893
+ name: "nodeHash",
894
+ type: "bytes32",
895
+ },
896
+ ],
897
+ name: "newStakeOnExistingNode",
898
+ outputs: [],
899
+ stateMutability: "nonpayable",
900
+ type: "function",
901
+ },
902
+ {
903
+ inputs: [
904
+ {
905
+ internalType: "uint256",
906
+ name: "tokenAmount",
907
+ type: "uint256",
908
+ },
909
+ {
910
+ components: [
911
+ {
912
+ components: [
913
+ {
914
+ components: [
915
+ {
916
+ internalType: "bytes32[2]",
917
+ name: "bytes32Vals",
918
+ type: "bytes32[2]",
919
+ },
920
+ {
921
+ internalType: "uint64[2]",
922
+ name: "u64Vals",
923
+ type: "uint64[2]",
924
+ },
925
+ ],
926
+ internalType: "struct GlobalState",
927
+ name: "globalState",
928
+ type: "tuple",
929
+ },
930
+ {
931
+ internalType: "enum MachineStatus",
932
+ name: "machineStatus",
933
+ type: "uint8",
934
+ },
935
+ ],
936
+ internalType: "struct ExecutionState",
937
+ name: "beforeState",
938
+ type: "tuple",
939
+ },
940
+ {
941
+ components: [
942
+ {
943
+ components: [
944
+ {
945
+ internalType: "bytes32[2]",
946
+ name: "bytes32Vals",
947
+ type: "bytes32[2]",
948
+ },
949
+ {
950
+ internalType: "uint64[2]",
951
+ name: "u64Vals",
952
+ type: "uint64[2]",
953
+ },
954
+ ],
955
+ internalType: "struct GlobalState",
956
+ name: "globalState",
957
+ type: "tuple",
958
+ },
959
+ {
960
+ internalType: "enum MachineStatus",
961
+ name: "machineStatus",
962
+ type: "uint8",
963
+ },
964
+ ],
965
+ internalType: "struct ExecutionState",
966
+ name: "afterState",
967
+ type: "tuple",
968
+ },
969
+ {
970
+ internalType: "uint64",
971
+ name: "numBlocks",
972
+ type: "uint64",
973
+ },
974
+ ],
975
+ internalType: "struct Assertion",
976
+ name: "assertion",
977
+ type: "tuple",
978
+ },
979
+ {
980
+ internalType: "bytes32",
981
+ name: "expectedNodeHash",
982
+ type: "bytes32",
983
+ },
984
+ {
985
+ internalType: "uint256",
986
+ name: "prevNodeInboxMaxCount",
987
+ type: "uint256",
988
+ },
989
+ ],
990
+ name: "newStakeOnNewNode",
991
+ outputs: [],
992
+ stateMutability: "nonpayable",
993
+ type: "function",
994
+ },
995
+ {
996
+ inputs: [
997
+ {
998
+ internalType: "uint64",
999
+ name: "nodeNum",
1000
+ type: "uint64",
1001
+ },
1002
+ {
1003
+ internalType: "address",
1004
+ name: "staker",
1005
+ type: "address",
1006
+ },
1007
+ ],
1008
+ name: "nodeHasStaker",
1009
+ outputs: [
1010
+ {
1011
+ internalType: "bool",
1012
+ name: "",
1013
+ type: "bool",
1014
+ },
1015
+ ],
1016
+ stateMutability: "view",
1017
+ type: "function",
1018
+ },
1019
+ {
1020
+ inputs: [],
1021
+ name: "outbox",
1022
+ outputs: [
1023
+ {
1024
+ internalType: "contract IOutbox",
1025
+ name: "",
1026
+ type: "address",
1027
+ },
1028
+ ],
1029
+ stateMutability: "view",
1030
+ type: "function",
1031
+ },
1032
+ {
1033
+ inputs: [],
1034
+ name: "owner",
1035
+ outputs: [
1036
+ {
1037
+ internalType: "address",
1038
+ name: "",
1039
+ type: "address",
1040
+ },
1041
+ ],
1042
+ stateMutability: "view",
1043
+ type: "function",
1044
+ },
1045
+ {
1046
+ inputs: [
1047
+ {
1048
+ internalType: "uint256",
1049
+ name: "target",
1050
+ type: "uint256",
1051
+ },
1052
+ ],
1053
+ name: "reduceDeposit",
1054
+ outputs: [],
1055
+ stateMutability: "nonpayable",
1056
+ type: "function",
1057
+ },
1058
+ {
1059
+ inputs: [
1060
+ {
1061
+ internalType: "address",
1062
+ name: "stakerAddress",
1063
+ type: "address",
1064
+ },
1065
+ ],
1066
+ name: "rejectNextNode",
1067
+ outputs: [],
1068
+ stateMutability: "nonpayable",
1069
+ type: "function",
1070
+ },
1071
+ {
1072
+ inputs: [
1073
+ {
1074
+ internalType: "uint256",
1075
+ name: "startIndex",
1076
+ type: "uint256",
1077
+ },
1078
+ ],
1079
+ name: "removeOldZombies",
1080
+ outputs: [],
1081
+ stateMutability: "nonpayable",
1082
+ type: "function",
1083
+ },
1084
+ {
1085
+ inputs: [],
1086
+ name: "removeWhitelistAfterFork",
1087
+ outputs: [],
1088
+ stateMutability: "nonpayable",
1089
+ type: "function",
1090
+ },
1091
+ {
1092
+ inputs: [],
1093
+ name: "removeWhitelistAfterValidatorAfk",
1094
+ outputs: [],
1095
+ stateMutability: "nonpayable",
1096
+ type: "function",
1097
+ },
1098
+ {
1099
+ inputs: [
1100
+ {
1101
+ internalType: "uint256",
1102
+ name: "zombieNum",
1103
+ type: "uint256",
1104
+ },
1105
+ {
1106
+ internalType: "uint256",
1107
+ name: "maxNodes",
1108
+ type: "uint256",
1109
+ },
1110
+ ],
1111
+ name: "removeZombie",
1112
+ outputs: [],
1113
+ stateMutability: "nonpayable",
1114
+ type: "function",
1115
+ },
1116
+ {
1117
+ inputs: [
1118
+ {
1119
+ internalType: "uint256",
1120
+ name: "nodeNum",
1121
+ type: "uint256",
1122
+ },
1123
+ ],
1124
+ name: "requireUnresolved",
1125
+ outputs: [],
1126
+ stateMutability: "view",
1127
+ type: "function",
1128
+ },
1129
+ {
1130
+ inputs: [],
1131
+ name: "requireUnresolvedExists",
1132
+ outputs: [],
1133
+ stateMutability: "view",
1134
+ type: "function",
1135
+ },
1136
+ {
1137
+ inputs: [
1138
+ {
1139
+ internalType: "uint256",
1140
+ name: "blockNumber",
1141
+ type: "uint256",
1142
+ },
1143
+ {
1144
+ internalType: "uint64",
1145
+ name: "firstUnresolvedNodeNum",
1146
+ type: "uint64",
1147
+ },
1148
+ {
1149
+ internalType: "uint64",
1150
+ name: "latestCreatedNode",
1151
+ type: "uint64",
1152
+ },
1153
+ ],
1154
+ name: "requiredStake",
1155
+ outputs: [
1156
+ {
1157
+ internalType: "uint256",
1158
+ name: "",
1159
+ type: "uint256",
1160
+ },
1161
+ ],
1162
+ stateMutability: "view",
1163
+ type: "function",
1164
+ },
1165
+ {
1166
+ inputs: [
1167
+ {
1168
+ internalType: "address",
1169
+ name: "stakerAddress",
1170
+ type: "address",
1171
+ },
1172
+ ],
1173
+ name: "returnOldDeposit",
1174
+ outputs: [],
1175
+ stateMutability: "nonpayable",
1176
+ type: "function",
1177
+ },
1178
+ {
1179
+ inputs: [],
1180
+ name: "rollupEventInbox",
1181
+ outputs: [
1182
+ {
1183
+ internalType: "contract IRollupEventInbox",
1184
+ name: "",
1185
+ type: "address",
1186
+ },
1187
+ ],
1188
+ stateMutability: "view",
1189
+ type: "function",
1190
+ },
1191
+ {
1192
+ inputs: [],
1193
+ name: "sequencerInbox",
1194
+ outputs: [
1195
+ {
1196
+ internalType: "contract ISequencerInbox",
1197
+ name: "",
1198
+ type: "address",
1199
+ },
1200
+ ],
1201
+ stateMutability: "view",
1202
+ type: "function",
1203
+ },
1204
+ {
1205
+ inputs: [
1206
+ {
1207
+ internalType: "uint64",
1208
+ name: "nodeNum",
1209
+ type: "uint64",
1210
+ },
1211
+ {
1212
+ internalType: "bytes32",
1213
+ name: "nodeHash",
1214
+ type: "bytes32",
1215
+ },
1216
+ ],
1217
+ name: "stakeOnExistingNode",
1218
+ outputs: [],
1219
+ stateMutability: "nonpayable",
1220
+ type: "function",
1221
+ },
1222
+ {
1223
+ inputs: [
1224
+ {
1225
+ components: [
1226
+ {
1227
+ components: [
1228
+ {
1229
+ components: [
1230
+ {
1231
+ internalType: "bytes32[2]",
1232
+ name: "bytes32Vals",
1233
+ type: "bytes32[2]",
1234
+ },
1235
+ {
1236
+ internalType: "uint64[2]",
1237
+ name: "u64Vals",
1238
+ type: "uint64[2]",
1239
+ },
1240
+ ],
1241
+ internalType: "struct GlobalState",
1242
+ name: "globalState",
1243
+ type: "tuple",
1244
+ },
1245
+ {
1246
+ internalType: "enum MachineStatus",
1247
+ name: "machineStatus",
1248
+ type: "uint8",
1249
+ },
1250
+ ],
1251
+ internalType: "struct ExecutionState",
1252
+ name: "beforeState",
1253
+ type: "tuple",
1254
+ },
1255
+ {
1256
+ components: [
1257
+ {
1258
+ components: [
1259
+ {
1260
+ internalType: "bytes32[2]",
1261
+ name: "bytes32Vals",
1262
+ type: "bytes32[2]",
1263
+ },
1264
+ {
1265
+ internalType: "uint64[2]",
1266
+ name: "u64Vals",
1267
+ type: "uint64[2]",
1268
+ },
1269
+ ],
1270
+ internalType: "struct GlobalState",
1271
+ name: "globalState",
1272
+ type: "tuple",
1273
+ },
1274
+ {
1275
+ internalType: "enum MachineStatus",
1276
+ name: "machineStatus",
1277
+ type: "uint8",
1278
+ },
1279
+ ],
1280
+ internalType: "struct ExecutionState",
1281
+ name: "afterState",
1282
+ type: "tuple",
1283
+ },
1284
+ {
1285
+ internalType: "uint64",
1286
+ name: "numBlocks",
1287
+ type: "uint64",
1288
+ },
1289
+ ],
1290
+ internalType: "struct Assertion",
1291
+ name: "assertion",
1292
+ type: "tuple",
1293
+ },
1294
+ {
1295
+ internalType: "bytes32",
1296
+ name: "expectedNodeHash",
1297
+ type: "bytes32",
1298
+ },
1299
+ {
1300
+ internalType: "uint256",
1301
+ name: "prevNodeInboxMaxCount",
1302
+ type: "uint256",
1303
+ },
1304
+ ],
1305
+ name: "stakeOnNewNode",
1306
+ outputs: [],
1307
+ stateMutability: "nonpayable",
1308
+ type: "function",
1309
+ },
1310
+ {
1311
+ inputs: [],
1312
+ name: "stakeToken",
1313
+ outputs: [
1314
+ {
1315
+ internalType: "address",
1316
+ name: "",
1317
+ type: "address",
1318
+ },
1319
+ ],
1320
+ stateMutability: "view",
1321
+ type: "function",
1322
+ },
1323
+ {
1324
+ inputs: [],
1325
+ name: "stakerCount",
1326
+ outputs: [
1327
+ {
1328
+ internalType: "uint64",
1329
+ name: "",
1330
+ type: "uint64",
1331
+ },
1332
+ ],
1333
+ stateMutability: "view",
1334
+ type: "function",
1335
+ },
1336
+ {
1337
+ inputs: [],
1338
+ name: "validatorWhitelistDisabled",
1339
+ outputs: [
1340
+ {
1341
+ internalType: "bool",
1342
+ name: "",
1343
+ type: "bool",
1344
+ },
1345
+ ],
1346
+ stateMutability: "view",
1347
+ type: "function",
1348
+ },
1349
+ {
1350
+ inputs: [],
1351
+ name: "wasmModuleRoot",
1352
+ outputs: [
1353
+ {
1354
+ internalType: "bytes32",
1355
+ name: "",
1356
+ type: "bytes32",
1357
+ },
1358
+ ],
1359
+ stateMutability: "view",
1360
+ type: "function",
1361
+ },
1362
+ {
1363
+ inputs: [],
1364
+ name: "withdrawStakerFunds",
1365
+ outputs: [
1366
+ {
1367
+ internalType: "uint256",
1368
+ name: "",
1369
+ type: "uint256",
1370
+ },
1371
+ ],
1372
+ stateMutability: "nonpayable",
1373
+ type: "function",
1374
+ },
1375
+ {
1376
+ inputs: [
1377
+ {
1378
+ internalType: "address",
1379
+ name: "owner",
1380
+ type: "address",
1381
+ },
1382
+ ],
1383
+ name: "withdrawableFunds",
1384
+ outputs: [
1385
+ {
1386
+ internalType: "uint256",
1387
+ name: "",
1388
+ type: "uint256",
1389
+ },
1390
+ ],
1391
+ stateMutability: "view",
1392
+ type: "function",
1393
+ },
1394
+ {
1395
+ inputs: [
1396
+ {
1397
+ internalType: "uint256",
1398
+ name: "zombieNum",
1399
+ type: "uint256",
1400
+ },
1401
+ ],
1402
+ name: "zombieAddress",
1403
+ outputs: [
1404
+ {
1405
+ internalType: "address",
1406
+ name: "",
1407
+ type: "address",
1408
+ },
1409
+ ],
1410
+ stateMutability: "view",
1411
+ type: "function",
1412
+ },
1413
+ {
1414
+ inputs: [],
1415
+ name: "zombieCount",
1416
+ outputs: [
1417
+ {
1418
+ internalType: "uint256",
1419
+ name: "",
1420
+ type: "uint256",
1421
+ },
1422
+ ],
1423
+ stateMutability: "view",
1424
+ type: "function",
1425
+ },
1426
+ {
1427
+ inputs: [
1428
+ {
1429
+ internalType: "uint256",
1430
+ name: "zombieNum",
1431
+ type: "uint256",
1432
+ },
1433
+ ],
1434
+ name: "zombieLatestStakedNode",
1435
+ outputs: [
1436
+ {
1437
+ internalType: "uint64",
1438
+ name: "",
1439
+ type: "uint64",
1440
+ },
1441
+ ],
1442
+ stateMutability: "view",
1443
+ type: "function",
1444
+ },
1445
+ ];
1446
+
1447
+ export class IRollupUserERC20__factory {
1448
+ static readonly abi = _abi;
1449
+ static createInterface(): IRollupUserERC20Interface {
1450
+ return new utils.Interface(_abi) as IRollupUserERC20Interface;
1451
+ }
1452
+ static connect(
1453
+ address: string,
1454
+ signerOrProvider: Signer | Provider
1455
+ ): IRollupUserERC20 {
1456
+ return new Contract(address, _abi, signerOrProvider) as IRollupUserERC20;
1457
+ }
1458
+ }