@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,610 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
5
+ import type { Provider, TransactionRequest } from "@ethersproject/providers";
6
+ import type {
7
+ ERC20Outbox,
8
+ ERC20OutboxInterface,
9
+ } from "../../../src/bridge/ERC20Outbox";
10
+
11
+ const _abi = [
12
+ {
13
+ inputs: [],
14
+ name: "AlreadyInit",
15
+ type: "error",
16
+ },
17
+ {
18
+ inputs: [
19
+ {
20
+ internalType: "uint256",
21
+ name: "index",
22
+ type: "uint256",
23
+ },
24
+ ],
25
+ name: "AlreadySpent",
26
+ type: "error",
27
+ },
28
+ {
29
+ inputs: [],
30
+ name: "BridgeCallFailed",
31
+ type: "error",
32
+ },
33
+ {
34
+ inputs: [],
35
+ name: "HadZeroInit",
36
+ type: "error",
37
+ },
38
+ {
39
+ inputs: [
40
+ {
41
+ internalType: "uint256",
42
+ name: "actualLength",
43
+ type: "uint256",
44
+ },
45
+ {
46
+ internalType: "uint256",
47
+ name: "maxProofLength",
48
+ type: "uint256",
49
+ },
50
+ ],
51
+ name: "MerkleProofTooLong",
52
+ type: "error",
53
+ },
54
+ {
55
+ inputs: [
56
+ {
57
+ internalType: "address",
58
+ name: "sender",
59
+ type: "address",
60
+ },
61
+ {
62
+ internalType: "address",
63
+ name: "rollup",
64
+ type: "address",
65
+ },
66
+ ],
67
+ name: "NotRollup",
68
+ type: "error",
69
+ },
70
+ {
71
+ inputs: [
72
+ {
73
+ internalType: "uint256",
74
+ name: "index",
75
+ type: "uint256",
76
+ },
77
+ {
78
+ internalType: "uint256",
79
+ name: "maxIndex",
80
+ type: "uint256",
81
+ },
82
+ ],
83
+ name: "PathNotMinimal",
84
+ type: "error",
85
+ },
86
+ {
87
+ inputs: [
88
+ {
89
+ internalType: "uint256",
90
+ name: "proofLength",
91
+ type: "uint256",
92
+ },
93
+ ],
94
+ name: "ProofTooLong",
95
+ type: "error",
96
+ },
97
+ {
98
+ inputs: [],
99
+ name: "SimulationOnlyEntrypoint",
100
+ type: "error",
101
+ },
102
+ {
103
+ inputs: [
104
+ {
105
+ internalType: "bytes32",
106
+ name: "root",
107
+ type: "bytes32",
108
+ },
109
+ ],
110
+ name: "UnknownRoot",
111
+ type: "error",
112
+ },
113
+ {
114
+ anonymous: false,
115
+ inputs: [
116
+ {
117
+ indexed: true,
118
+ internalType: "address",
119
+ name: "to",
120
+ type: "address",
121
+ },
122
+ {
123
+ indexed: true,
124
+ internalType: "address",
125
+ name: "l2Sender",
126
+ type: "address",
127
+ },
128
+ {
129
+ indexed: true,
130
+ internalType: "uint256",
131
+ name: "zero",
132
+ type: "uint256",
133
+ },
134
+ {
135
+ indexed: false,
136
+ internalType: "uint256",
137
+ name: "transactionIndex",
138
+ type: "uint256",
139
+ },
140
+ ],
141
+ name: "OutBoxTransactionExecuted",
142
+ type: "event",
143
+ },
144
+ {
145
+ anonymous: false,
146
+ inputs: [
147
+ {
148
+ indexed: true,
149
+ internalType: "bytes32",
150
+ name: "outputRoot",
151
+ type: "bytes32",
152
+ },
153
+ {
154
+ indexed: true,
155
+ internalType: "bytes32",
156
+ name: "l2BlockHash",
157
+ type: "bytes32",
158
+ },
159
+ ],
160
+ name: "SendRootUpdated",
161
+ type: "event",
162
+ },
163
+ {
164
+ inputs: [],
165
+ name: "OUTBOX_VERSION",
166
+ outputs: [
167
+ {
168
+ internalType: "uint128",
169
+ name: "",
170
+ type: "uint128",
171
+ },
172
+ ],
173
+ stateMutability: "view",
174
+ type: "function",
175
+ },
176
+ {
177
+ inputs: [],
178
+ name: "bridge",
179
+ outputs: [
180
+ {
181
+ internalType: "contract IBridge",
182
+ name: "",
183
+ type: "address",
184
+ },
185
+ ],
186
+ stateMutability: "view",
187
+ type: "function",
188
+ },
189
+ {
190
+ inputs: [
191
+ {
192
+ internalType: "address",
193
+ name: "l2Sender",
194
+ type: "address",
195
+ },
196
+ {
197
+ internalType: "address",
198
+ name: "to",
199
+ type: "address",
200
+ },
201
+ {
202
+ internalType: "uint256",
203
+ name: "l2Block",
204
+ type: "uint256",
205
+ },
206
+ {
207
+ internalType: "uint256",
208
+ name: "l1Block",
209
+ type: "uint256",
210
+ },
211
+ {
212
+ internalType: "uint256",
213
+ name: "l2Timestamp",
214
+ type: "uint256",
215
+ },
216
+ {
217
+ internalType: "uint256",
218
+ name: "value",
219
+ type: "uint256",
220
+ },
221
+ {
222
+ internalType: "bytes",
223
+ name: "data",
224
+ type: "bytes",
225
+ },
226
+ ],
227
+ name: "calculateItemHash",
228
+ outputs: [
229
+ {
230
+ internalType: "bytes32",
231
+ name: "",
232
+ type: "bytes32",
233
+ },
234
+ ],
235
+ stateMutability: "pure",
236
+ type: "function",
237
+ },
238
+ {
239
+ inputs: [
240
+ {
241
+ internalType: "bytes32[]",
242
+ name: "proof",
243
+ type: "bytes32[]",
244
+ },
245
+ {
246
+ internalType: "uint256",
247
+ name: "path",
248
+ type: "uint256",
249
+ },
250
+ {
251
+ internalType: "bytes32",
252
+ name: "item",
253
+ type: "bytes32",
254
+ },
255
+ ],
256
+ name: "calculateMerkleRoot",
257
+ outputs: [
258
+ {
259
+ internalType: "bytes32",
260
+ name: "",
261
+ type: "bytes32",
262
+ },
263
+ ],
264
+ stateMutability: "pure",
265
+ type: "function",
266
+ },
267
+ {
268
+ inputs: [
269
+ {
270
+ internalType: "bytes32[]",
271
+ name: "proof",
272
+ type: "bytes32[]",
273
+ },
274
+ {
275
+ internalType: "uint256",
276
+ name: "index",
277
+ type: "uint256",
278
+ },
279
+ {
280
+ internalType: "address",
281
+ name: "l2Sender",
282
+ type: "address",
283
+ },
284
+ {
285
+ internalType: "address",
286
+ name: "to",
287
+ type: "address",
288
+ },
289
+ {
290
+ internalType: "uint256",
291
+ name: "l2Block",
292
+ type: "uint256",
293
+ },
294
+ {
295
+ internalType: "uint256",
296
+ name: "l1Block",
297
+ type: "uint256",
298
+ },
299
+ {
300
+ internalType: "uint256",
301
+ name: "l2Timestamp",
302
+ type: "uint256",
303
+ },
304
+ {
305
+ internalType: "uint256",
306
+ name: "value",
307
+ type: "uint256",
308
+ },
309
+ {
310
+ internalType: "bytes",
311
+ name: "data",
312
+ type: "bytes",
313
+ },
314
+ ],
315
+ name: "executeTransaction",
316
+ outputs: [],
317
+ stateMutability: "nonpayable",
318
+ type: "function",
319
+ },
320
+ {
321
+ inputs: [
322
+ {
323
+ internalType: "uint256",
324
+ name: "index",
325
+ type: "uint256",
326
+ },
327
+ {
328
+ internalType: "address",
329
+ name: "l2Sender",
330
+ type: "address",
331
+ },
332
+ {
333
+ internalType: "address",
334
+ name: "to",
335
+ type: "address",
336
+ },
337
+ {
338
+ internalType: "uint256",
339
+ name: "l2Block",
340
+ type: "uint256",
341
+ },
342
+ {
343
+ internalType: "uint256",
344
+ name: "l1Block",
345
+ type: "uint256",
346
+ },
347
+ {
348
+ internalType: "uint256",
349
+ name: "l2Timestamp",
350
+ type: "uint256",
351
+ },
352
+ {
353
+ internalType: "uint256",
354
+ name: "value",
355
+ type: "uint256",
356
+ },
357
+ {
358
+ internalType: "bytes",
359
+ name: "data",
360
+ type: "bytes",
361
+ },
362
+ ],
363
+ name: "executeTransactionSimulation",
364
+ outputs: [],
365
+ stateMutability: "nonpayable",
366
+ type: "function",
367
+ },
368
+ {
369
+ inputs: [
370
+ {
371
+ internalType: "contract IBridge",
372
+ name: "_bridge",
373
+ type: "address",
374
+ },
375
+ ],
376
+ name: "initialize",
377
+ outputs: [],
378
+ stateMutability: "nonpayable",
379
+ type: "function",
380
+ },
381
+ {
382
+ inputs: [
383
+ {
384
+ internalType: "uint256",
385
+ name: "index",
386
+ type: "uint256",
387
+ },
388
+ ],
389
+ name: "isSpent",
390
+ outputs: [
391
+ {
392
+ internalType: "bool",
393
+ name: "",
394
+ type: "bool",
395
+ },
396
+ ],
397
+ stateMutability: "view",
398
+ type: "function",
399
+ },
400
+ {
401
+ inputs: [],
402
+ name: "l2ToL1BatchNum",
403
+ outputs: [
404
+ {
405
+ internalType: "uint256",
406
+ name: "",
407
+ type: "uint256",
408
+ },
409
+ ],
410
+ stateMutability: "pure",
411
+ type: "function",
412
+ },
413
+ {
414
+ inputs: [],
415
+ name: "l2ToL1Block",
416
+ outputs: [
417
+ {
418
+ internalType: "uint256",
419
+ name: "",
420
+ type: "uint256",
421
+ },
422
+ ],
423
+ stateMutability: "view",
424
+ type: "function",
425
+ },
426
+ {
427
+ inputs: [],
428
+ name: "l2ToL1EthBlock",
429
+ outputs: [
430
+ {
431
+ internalType: "uint256",
432
+ name: "",
433
+ type: "uint256",
434
+ },
435
+ ],
436
+ stateMutability: "view",
437
+ type: "function",
438
+ },
439
+ {
440
+ inputs: [],
441
+ name: "l2ToL1OutputId",
442
+ outputs: [
443
+ {
444
+ internalType: "bytes32",
445
+ name: "",
446
+ type: "bytes32",
447
+ },
448
+ ],
449
+ stateMutability: "view",
450
+ type: "function",
451
+ },
452
+ {
453
+ inputs: [],
454
+ name: "l2ToL1Sender",
455
+ outputs: [
456
+ {
457
+ internalType: "address",
458
+ name: "",
459
+ type: "address",
460
+ },
461
+ ],
462
+ stateMutability: "view",
463
+ type: "function",
464
+ },
465
+ {
466
+ inputs: [],
467
+ name: "l2ToL1Timestamp",
468
+ outputs: [
469
+ {
470
+ internalType: "uint256",
471
+ name: "",
472
+ type: "uint256",
473
+ },
474
+ ],
475
+ stateMutability: "view",
476
+ type: "function",
477
+ },
478
+ {
479
+ inputs: [],
480
+ name: "l2ToL1WithdrawalAmount",
481
+ outputs: [
482
+ {
483
+ internalType: "uint256",
484
+ name: "",
485
+ type: "uint256",
486
+ },
487
+ ],
488
+ stateMutability: "view",
489
+ type: "function",
490
+ },
491
+ {
492
+ inputs: [],
493
+ name: "rollup",
494
+ outputs: [
495
+ {
496
+ internalType: "address",
497
+ name: "",
498
+ type: "address",
499
+ },
500
+ ],
501
+ stateMutability: "view",
502
+ type: "function",
503
+ },
504
+ {
505
+ inputs: [
506
+ {
507
+ internalType: "bytes32",
508
+ name: "",
509
+ type: "bytes32",
510
+ },
511
+ ],
512
+ name: "roots",
513
+ outputs: [
514
+ {
515
+ internalType: "bytes32",
516
+ name: "",
517
+ type: "bytes32",
518
+ },
519
+ ],
520
+ stateMutability: "view",
521
+ type: "function",
522
+ },
523
+ {
524
+ inputs: [
525
+ {
526
+ internalType: "uint256",
527
+ name: "",
528
+ type: "uint256",
529
+ },
530
+ ],
531
+ name: "spent",
532
+ outputs: [
533
+ {
534
+ internalType: "bytes32",
535
+ name: "",
536
+ type: "bytes32",
537
+ },
538
+ ],
539
+ stateMutability: "view",
540
+ type: "function",
541
+ },
542
+ {
543
+ inputs: [
544
+ {
545
+ internalType: "bytes32",
546
+ name: "root",
547
+ type: "bytes32",
548
+ },
549
+ {
550
+ internalType: "bytes32",
551
+ name: "l2BlockHash",
552
+ type: "bytes32",
553
+ },
554
+ ],
555
+ name: "updateSendRoot",
556
+ outputs: [],
557
+ stateMutability: "nonpayable",
558
+ type: "function",
559
+ },
560
+ ];
561
+
562
+ const _bytecode =
563
+ "0x60a06040523060805234801561001457600080fd5b50608051611376610030600039600061053b01526113766000f3fe608060405234801561001057600080fd5b50600436106101105760003560e01c80639f0c04bf116100ad578063c75184df11610071578063c75184df14610226578063cb23bcb514610246578063cbf96f6314610259578063d5b5cc2314610261578063e78cea921461028157600080fd5b80639f0c04bf146101c5578063a04cee60146101d8578063ae6dead7146101eb578063b0f305371461020b578063c4d66de81461021357600080fd5b80627436d31461011557806308635a951461013b5780631198527114610150578063288e5b1014610157578063465477901461016a5780635a129efe1461017257806372f2a8c71461019557806380648b021461019d5780638515bc6a146101bd575b600080fd5b610128610123366004610cb2565b610294565b6040519081526020015b60405180910390f35b61014e610149366004610dd2565b6102d1565b005b6000610128565b61014e610165366004610ec6565b610344565b61012861037f565b610185610180366004610f61565b6103ae565b6040519015158152602001610132565b6101286103cb565b6101a56103e8565b6040516001600160a01b039091168152602001610132565b610128610409565b6101286101d3366004610f7a565b61043f565b61014e6101e6366004611008565b610484565b6101286101f9366004610f61565b60036020526000908152604090205481565b610128610508565b61014e61022136600461102a565b610530565b61022e600281565b6040516001600160801b039091168152602001610132565b6000546101a5906001600160a01b031681565b610128610711565b61012861026f366004610f61565b60026020526000908152604090205481565b6001546101a5906001600160a01b031681565b60006102c98484846040516020016102ae91815260200190565b60405160208183030381529060405280519060200120610729565b949350505050565b60006102e3898989898989898961043f565b90506103258c8c808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508e92508591506107cc9050565b6103368a8a8a8a8a8a8a8a8a6108d5565b505050505050505050505050565b331561036357604051630e13b69d60e01b815260040160405180910390fd5b6103748989898989898989896108d5565b505050505050505050565b6004546000906001600160801b03908116908114156103a057600091505090565b6001600160801b0316919050565b60008060006103bc84610b58565b92509250506102c98282610b95565b6005546000906000198114156103e357506000919050565b919050565b6006546000906001600160a01b03908116908114156103e357600091505090565b6006546000906001600160601b03600160a01b90910481169081141561043157600091505090565b6001600160601b0316919050565b6000888888888888888860405160200161046098979695949392919061104e565b60405160208183030381529060405280519060200120905098975050505050505050565b6000546001600160a01b031633146104c957600054604051630e4cf1bf60e21b81523360048201526001600160a01b0390911660248201526044015b60405180910390fd5b60008281526003602052604080822083905551829184917fb4df3847300f076a369cd76d2314b470a1194d9e8a6bb97f1860aee88a5f67489190a35050565b6004546000906001600160801b03600160801b9091048116908114156103a057600091505090565b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156105be5760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b60648201526084016104c0565b6001600160a01b0381166105e557604051631ad0f74360e01b815260040160405180910390fd5b6001546001600160a01b03161561060f57604051633bcd329760e21b815260040160405180910390fd5b6040805160c0810182526001600160801b038082526020808301919091526000198284018190526001600160a01b03606084018190526001600160601b03608085015260a0909301819052600481815560058290556006829055600791909155600180546001600160a01b0319169386169384179055835163cb23bcb560e01b81529351929363cb23bcb59381830193929091829003018186803b1580156106b657600080fd5b505afa1580156106ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106ee91906110a2565b600080546001600160a01b0319166001600160a01b039290921691909117905550565b6007546000906000198114156103e357600091505090565b825160009061010081111561075c57604051637ed6198f60e11b81526004810182905261010060248201526044016104c0565b8260005b828110156107c257600087828151811061077c5761077c6110bf565b60200260200101519050816001901b8716600014156107a9578260005280602052604060002092506107b9565b8060005282602052604060002092505b50600101610760565b5095945050505050565b6101008351106107f457825160405163ab6a068360e01b81526004016104c091815260200190565b82516108019060026111cf565b821061083857818351600261081691906111cf565b604051630b8a724b60e01b8152600481019290925260248201526044016104c0565b6000610845848484610294565b600081815260036020526040902054909150610877576040516310e61af960e31b8152600481018290526024016104c0565b600080600061088586610b58565b9250925092506108958282610b95565b156108b657604051639715b8d360e01b8152600481018790526024016104c0565b600092835260026020526040909220600190911b909117905550505050565b6000886001600160a01b0316886001600160a01b03167f20af7f3bbfe38132b8900ae295cd9c8d1914be7052d061a511f3f728dab189648c60405161091c91815260200190565b60405180910390a4600060046040518060c00160405290816000820160009054906101000a90046001600160801b03166001600160801b03166001600160801b031681526020016000820160109054906101000a90046001600160801b03166001600160801b03166001600160801b03168152602001600182015481526020016002820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b031681526020016002820160149054906101000a90046001600160601b03166001600160601b03166001600160601b0316815260200160038201548152505090506040518060c00160405280886001600160801b03168152602001866001600160801b031681526020018b60001b81526020018a6001600160a01b03168152602001876001600160601b03168152602001610a5c8690565b905280516020808301516001600160801b03908116600160801b02921691909117600455604080830151600555606083015160808401516001600160601b0316600160a01b026001600160a01b039091161760065560a0909201516007558151601f8501829004820281018201909252838252610af8918a918791908790879081908401838280828437600092019190915250610ba492505050565b805160208201516001600160801b03908116600160801b029116176004556040810151600555606081015160808201516001600160601b0316600160a01b026001600160a01b039091161760065560a00151600755505050505050505050565b6000808080610b6860ff866111f1565b90506000610b7760ff87611205565b60008381526002602052604090205492979096509194509092505050565b80821c60011615155b92915050565b600154604051639e5d4c4960e01b815260009182916001600160a01b0390911690639e5d4c4990610bdd90889088908890600401611249565b600060405180830381600087803b158015610bf757600080fd5b505af1158015610c0b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610c339190810190611292565b9150915081610c6557805115610c4c5780518082602001fd5b604051631bb7daad60e11b815260040160405180910390fd5b5050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610caa57610caa610c6c565b604052919050565b600080600060608486031215610cc757600080fd5b83356001600160401b0380821115610cde57600080fd5b818601915086601f830112610cf257600080fd5b8135602082821115610d0657610d06610c6c565b8160051b9250610d17818401610c82565b828152928401810192818101908a851115610d3157600080fd5b948201945b84861015610d4f57853582529482019490820190610d36565b9a918901359950506040909701359695505050505050565b6001600160a01b0381168114610d7c57600080fd5b50565b80356103e381610d67565b60008083601f840112610d9c57600080fd5b5081356001600160401b03811115610db357600080fd5b602083019150836020828501011115610dcb57600080fd5b9250929050565b60008060008060008060008060008060006101208c8e031215610df457600080fd5b8b356001600160401b0380821115610e0b57600080fd5b818e0191508e601f830112610e1f57600080fd5b813581811115610e2e57600080fd5b8f60208260051b8501011115610e4357600080fd5b60208381019e50909c508e01359a50610e5e60408f01610d7f565b9950610e6c60608f01610d7f565b985060808e0135975060a08e0135965060c08e0135955060e08e013594506101008e0135915080821115610e9f57600080fd5b50610eac8e828f01610d8a565b915080935050809150509295989b509295989b9093969950565b60008060008060008060008060006101008a8c031215610ee557600080fd5b8935985060208a0135610ef781610d67565b975060408a0135610f0781610d67565b965060608a0135955060808a0135945060a08a0135935060c08a0135925060e08a01356001600160401b03811115610f3e57600080fd5b610f4a8c828d01610d8a565b915080935050809150509295985092959850929598565b600060208284031215610f7357600080fd5b5035919050565b60008060008060008060008060e0898b031215610f9657600080fd5b8835610fa181610d67565b97506020890135610fb181610d67565b965060408901359550606089013594506080890135935060a0890135925060c08901356001600160401b03811115610fe857600080fd5b610ff48b828c01610d8a565b999c989b5096995094979396929594505050565b6000806040838503121561101b57600080fd5b50508035926020909101359150565b60006020828403121561103c57600080fd5b813561104781610d67565b9392505050565b60006001600160601b0319808b60601b168352808a60601b16601484015250876028830152866048830152856068830152846088830152828460a8840137506000910160a801908152979650505050505050565b6000602082840312156110b457600080fd5b815161104781610d67565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600181815b8085111561112657816000190482111561110c5761110c6110d5565b8085161561111957918102915b93841c93908002906110f0565b509250929050565b60008261113d57506001610b9e565b8161114a57506000610b9e565b8160018114611160576002811461116a57611186565b6001915050610b9e565b60ff84111561117b5761117b6110d5565b50506001821b610b9e565b5060208310610133831016604e8410600b84101617156111a9575081810a610b9e565b6111b383836110eb565b80600019048211156111c7576111c76110d5565b029392505050565b6000611047838361112e565b634e487b7160e01b600052601260045260246000fd5b600082611200576112006111db565b500490565b600082611214576112146111db565b500690565b60005b8381101561123457818101518382015260200161121c565b83811115611243576000848401525b50505050565b60018060a01b0384168152826020820152606060408201526000825180606084015261127c816080850160208701611219565b601f01601f191691909101608001949350505050565b600080604083850312156112a557600080fd5b825180151581146112b557600080fd5b60208401519092506001600160401b03808211156112d257600080fd5b818501915085601f8301126112e657600080fd5b8151818111156112f8576112f8610c6c565b61130b601f8201601f1916602001610c82565b915080825286602082850101111561132257600080fd5b611333816020840160208601611219565b508092505050925092905056fea264697066735822122008348309d2dac257b5277b01e7919ab78e0699fbb3515168c134a03fd147b20564736f6c63430008090033";
564
+
565
+ type ERC20OutboxConstructorParams =
566
+ | [signer?: Signer]
567
+ | ConstructorParameters<typeof ContractFactory>;
568
+
569
+ const isSuperArgs = (
570
+ xs: ERC20OutboxConstructorParams
571
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
572
+
573
+ export class ERC20Outbox__factory extends ContractFactory {
574
+ constructor(...args: ERC20OutboxConstructorParams) {
575
+ if (isSuperArgs(args)) {
576
+ super(...args);
577
+ } else {
578
+ super(_abi, _bytecode, args[0]);
579
+ }
580
+ }
581
+
582
+ override deploy(
583
+ overrides?: Overrides & { from?: string | Promise<string> }
584
+ ): Promise<ERC20Outbox> {
585
+ return super.deploy(overrides || {}) as Promise<ERC20Outbox>;
586
+ }
587
+ override getDeployTransaction(
588
+ overrides?: Overrides & { from?: string | Promise<string> }
589
+ ): TransactionRequest {
590
+ return super.getDeployTransaction(overrides || {});
591
+ }
592
+ override attach(address: string): ERC20Outbox {
593
+ return super.attach(address) as ERC20Outbox;
594
+ }
595
+ override connect(signer: Signer): ERC20Outbox__factory {
596
+ return super.connect(signer) as ERC20Outbox__factory;
597
+ }
598
+
599
+ static readonly bytecode = _bytecode;
600
+ static readonly abi = _abi;
601
+ static createInterface(): ERC20OutboxInterface {
602
+ return new utils.Interface(_abi) as ERC20OutboxInterface;
603
+ }
604
+ static connect(
605
+ address: string,
606
+ signerOrProvider: Signer | Provider
607
+ ): ERC20Outbox {
608
+ return new Contract(address, _abi, signerOrProvider) as ERC20Outbox;
609
+ }
610
+ }