@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.
- package/LICENSE +114 -0
- package/README.md +2 -2
- package/build/types/@openzeppelin/contracts/access/Ownable.ts +175 -0
- package/build/types/@openzeppelin/contracts/access/index.ts +4 -0
- package/build/types/@openzeppelin/contracts/index.ts +11 -0
- package/build/types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.ts +87 -0
- package/build/types/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/build/types/@openzeppelin/contracts/interfaces/index.ts +5 -0
- package/build/types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.ts +108 -0
- package/build/types/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.ts +108 -0
- package/build/types/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/build/types/@openzeppelin/contracts/proxy/Proxy.ts +55 -0
- package/build/types/@openzeppelin/contracts/proxy/beacon/IBeacon.ts +87 -0
- package/build/types/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.ts +239 -0
- package/build/types/@openzeppelin/contracts/proxy/beacon/index.ts +5 -0
- package/build/types/@openzeppelin/contracts/proxy/index.ts +12 -0
- package/build/types/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.ts +359 -0
- package/build/types/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.ts +278 -0
- package/build/types/@openzeppelin/contracts/proxy/transparent/index.ts +5 -0
- package/build/types/@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.ts +216 -0
- package/build/types/@openzeppelin/contracts/proxy/utils/index.ts +4 -0
- package/build/types/@openzeppelin/contracts/token/ERC20/ERC20.ts +444 -0
- package/build/types/@openzeppelin/contracts/token/ERC20/IERC20.ts +322 -0
- package/build/types/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.ts +507 -0
- package/build/types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +364 -0
- package/build/types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +5 -0
- package/build/types/@openzeppelin/contracts/token/ERC20/index.ts +9 -0
- package/build/types/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply.ts +507 -0
- package/build/types/@openzeppelin/contracts/token/ERC20/presets/index.ts +4 -0
- package/build/types/@openzeppelin/contracts/token/index.ts +5 -0
- package/build/types/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +175 -0
- package/build/types/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
- package/build/types/@openzeppelin/contracts-upgradeable/index.ts +9 -0
- package/build/types/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.ts +111 -0
- package/build/types/@openzeppelin/contracts-upgradeable/security/index.ts +4 -0
- package/build/types/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +322 -0
- package/build/types/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +4 -0
- package/build/types/@openzeppelin/contracts-upgradeable/token/index.ts +5 -0
- package/build/types/@openzeppelin/index.ts +7 -0
- package/build/types/common.ts +44 -0
- package/build/types/factories/@openzeppelin/contracts/access/Ownable__factory.ts +78 -0
- package/build/types/factories/@openzeppelin/contracts/access/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts/index.ts +7 -0
- package/build/types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable__factory.ts +39 -0
- package/build/types/factories/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts/interfaces/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy__factory.ts +146 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts +71 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/ERC1967/index.ts +5 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/Proxy__factory.ts +31 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/beacon/IBeacon__factory.ts +39 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon__factory.ts +169 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/beacon/index.ts +5 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/index.ts +8 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/transparent/ProxyAdmin__factory.ts +211 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy__factory.ts +228 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/transparent/index.ts +5 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/utils/UUPSUpgradeable__factory.ts +115 -0
- package/build/types/factories/@openzeppelin/contracts/proxy/utils/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +349 -0
- package/build/types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +206 -0
- package/build/types/factories/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable__factory.ts +327 -0
- package/build/types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +248 -0
- package/build/types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +5 -0
- package/build/types/factories/@openzeppelin/contracts/token/ERC20/index.ts +7 -0
- package/build/types/factories/@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply__factory.ts +420 -0
- package/build/types/factories/@openzeppelin/contracts/token/ERC20/presets/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts/token/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +78 -0
- package/build/types/factories/@openzeppelin/contracts-upgradeable/access/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts-upgradeable/index.ts +6 -0
- package/build/types/factories/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable__factory.ts +65 -0
- package/build/types/factories/@openzeppelin/contracts-upgradeable/security/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +209 -0
- package/build/types/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +4 -0
- package/build/types/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
- package/build/types/factories/@openzeppelin/index.ts +5 -0
- package/build/types/factories/index.ts +5 -0
- package/build/types/factories/src/bridge/AbsBridge__factory.ts +612 -0
- package/build/types/factories/src/bridge/AbsInbox__factory.ts +455 -0
- package/build/types/factories/src/bridge/AbsOutbox__factory.ts +561 -0
- package/build/types/factories/src/bridge/Bridge__factory.ts +695 -0
- package/build/types/factories/src/bridge/ERC20Bridge__factory.ts +746 -0
- package/build/types/factories/src/bridge/ERC20Inbox__factory.ts +719 -0
- package/build/types/factories/src/bridge/ERC20Outbox__factory.ts +610 -0
- package/build/types/factories/src/bridge/IBridge__factory.ts +508 -0
- package/build/types/factories/src/bridge/IDelayedMessageProvider__factory.ts +62 -0
- package/build/types/factories/src/bridge/IERC20Bridge__factory.ts +576 -0
- package/build/types/factories/src/bridge/IERC20Inbox__factory.ts +461 -0
- package/build/types/factories/src/bridge/IEthBridge__factory.ts +553 -0
- package/build/types/factories/src/bridge/IEthInbox__factory.ts +653 -0
- package/build/types/factories/src/bridge/IInbox__factory.ts +318 -0
- package/build/types/factories/src/bridge/IOutbox__factory.ts +431 -0
- package/build/types/factories/src/bridge/IOwnable__factory.ts +36 -0
- package/build/types/factories/src/bridge/ISequencerInbox__factory.ts +666 -0
- package/build/types/factories/src/bridge/Inbox__factory.ts +999 -0
- package/build/types/factories/src/bridge/Outbox__factory.ts +591 -0
- package/build/types/factories/src/bridge/SequencerInbox__factory.ts +865 -0
- package/build/types/factories/src/bridge/index.ts +23 -0
- package/build/types/factories/src/challenge/ChallengeManager__factory.ts +720 -0
- package/build/types/factories/src/challenge/IChallengeManager__factory.ts +401 -0
- package/build/types/factories/src/challenge/IChallengeResultReceiver__factory.ts +53 -0
- package/build/types/factories/src/challenge/index.ts +6 -0
- package/build/types/factories/src/index.ts +12 -0
- package/build/types/factories/src/libraries/AdminFallbackProxy.sol/AdminFallbackProxy__factory.ts +128 -0
- package/build/types/factories/src/libraries/AdminFallbackProxy.sol/DoubleLogicERC1967Upgrade__factory.ts +88 -0
- package/build/types/factories/src/libraries/AdminFallbackProxy.sol/index.ts +5 -0
- package/build/types/factories/src/libraries/DoubleLogicUUPSUpgradeable__factory.ts +163 -0
- package/build/types/factories/src/libraries/IGasRefunder__factory.ts +55 -0
- package/build/types/factories/src/libraries/UUPSNotUpgradeable__factory.ts +97 -0
- package/build/types/factories/src/libraries/index.ts +7 -0
- package/build/types/factories/src/mocks/BridgeStub__factory.ts +612 -0
- package/build/types/factories/src/mocks/BridgeUnproxied__factory.ts +706 -0
- package/build/types/factories/src/mocks/InboxStub__factory.ts +702 -0
- package/build/types/factories/src/mocks/MockResultReceiver__factory.ts +244 -0
- package/build/types/factories/src/mocks/ProxyAdminForBinding__factory.ts +215 -0
- package/build/types/factories/src/mocks/SequencerInboxStub__factory.ts +938 -0
- package/build/types/factories/src/mocks/SimpleProxy__factory.ts +83 -0
- package/build/types/factories/src/mocks/Simple__factory.ts +287 -0
- package/build/types/factories/src/mocks/SingleExecutionChallenge__factory.ts +823 -0
- package/build/types/factories/src/mocks/TimedOutChallengeManager__factory.ts +724 -0
- package/build/types/factories/src/mocks/index.ts +13 -0
- package/build/types/factories/src/node-interface/NodeInterfaceDebug__factory.ts +82 -0
- package/build/types/factories/src/node-interface/NodeInterface__factory.ts +301 -0
- package/build/types/factories/src/node-interface/index.ts +5 -0
- package/build/types/factories/src/osp/HashProofHelper__factory.ts +216 -0
- package/build/types/factories/src/osp/IOneStepProofEntry__factory.ts +72 -0
- package/build/types/factories/src/osp/IOneStepProver__factory.ts +492 -0
- package/build/types/factories/src/osp/OneStepProofEntry__factory.ts +206 -0
- package/build/types/factories/src/osp/OneStepProver0__factory.ts +528 -0
- package/build/types/factories/src/osp/OneStepProverHostIo__factory.ts +528 -0
- package/build/types/factories/src/osp/OneStepProverMath__factory.ts +528 -0
- package/build/types/factories/src/osp/OneStepProverMemory__factory.ts +528 -0
- package/build/types/factories/src/osp/index.ts +11 -0
- package/build/types/factories/src/precompiles/ArbAddressTable__factory.ts +163 -0
- package/build/types/factories/src/precompiles/ArbAggregator__factory.ts +163 -0
- package/build/types/factories/src/precompiles/ArbDebug__factory.ts +208 -0
- package/build/types/factories/src/precompiles/ArbFunctionTable__factory.ts +92 -0
- package/build/types/factories/src/precompiles/ArbGasInfo__factory.ts +339 -0
- package/build/types/factories/src/precompiles/ArbInfo__factory.ts +64 -0
- package/build/types/factories/src/precompiles/ArbOwnerPublic__factory.ts +84 -0
- package/build/types/factories/src/precompiles/ArbOwner__factory.ts +393 -0
- package/build/types/factories/src/precompiles/ArbRetryableTx__factory.ts +321 -0
- package/build/types/factories/src/precompiles/ArbStatistics__factory.ts +64 -0
- package/build/types/factories/src/precompiles/ArbSys__factory.ts +389 -0
- package/build/types/factories/src/precompiles/ArbosActs__factory.ts +92 -0
- package/build/types/factories/src/precompiles/ArbosTest__factory.ts +39 -0
- package/build/types/factories/src/precompiles/index.ts +16 -0
- package/build/types/factories/src/rollup/AbsBridgeCreator__factory.ts +182 -0
- package/build/types/factories/src/rollup/AbsRollupCreator__factory.ts +285 -0
- package/build/types/factories/src/rollup/AbsRollupEventInbox__factory.ts +125 -0
- package/build/types/factories/src/rollup/BridgeCreator__factory.ts +294 -0
- package/build/types/factories/src/rollup/ERC20BridgeCreator__factory.ts +299 -0
- package/build/types/factories/src/rollup/ERC20RollupCreator__factory.ts +439 -0
- package/build/types/factories/src/rollup/ERC20RollupEventInbox__factory.ts +170 -0
- package/build/types/factories/src/rollup/IBridgeCreator.sol/IBridgeCreator__factory.ts +124 -0
- package/build/types/factories/src/rollup/IBridgeCreator.sol/IERC20BridgeCreator__factory.ts +200 -0
- package/build/types/factories/src/rollup/IBridgeCreator.sol/IEthBridgeCreator__factory.ts +195 -0
- package/build/types/factories/src/rollup/IBridgeCreator.sol/index.ts +6 -0
- package/build/types/factories/src/rollup/IRollupAdmin__factory.ts +559 -0
- package/build/types/factories/src/rollup/IRollupCore__factory.ts +904 -0
- package/build/types/factories/src/rollup/IRollupCreator.sol/IERC20RollupCreator__factory.ts +182 -0
- package/build/types/factories/src/rollup/IRollupCreator.sol/IEthRollupCreator__factory.ts +177 -0
- package/build/types/factories/src/rollup/IRollupCreator.sol/IRollupCreator__factory.ts +69 -0
- package/build/types/factories/src/rollup/IRollupCreator.sol/index.ts +6 -0
- package/build/types/factories/src/rollup/IRollupEventInbox__factory.ts +83 -0
- package/build/types/factories/src/rollup/IRollupLogic.sol/IRollupUserAbs__factory.ts +1324 -0
- package/build/types/factories/src/rollup/IRollupLogic.sol/IRollupUserERC20__factory.ts +1458 -0
- package/build/types/factories/src/rollup/IRollupLogic.sol/IRollupUser__factory.ts +1443 -0
- package/build/types/factories/src/rollup/IRollupLogic.sol/index.ts +6 -0
- package/build/types/factories/src/rollup/RollupAdminLogic__factory.ts +1859 -0
- package/build/types/factories/src/rollup/RollupCore__factory.ts +1066 -0
- package/build/types/factories/src/rollup/RollupCreator__factory.ts +434 -0
- package/build/types/factories/src/rollup/RollupEventInbox__factory.ts +166 -0
- package/build/types/factories/src/rollup/RollupProxy__factory.ts +277 -0
- package/build/types/factories/src/rollup/RollupUserLogic.sol/AbsRollupUserLogic__factory.ts +1593 -0
- package/build/types/factories/src/rollup/RollupUserLogic.sol/ERC20RollupUserLogic__factory.ts +1767 -0
- package/build/types/factories/src/rollup/RollupUserLogic.sol/RollupUserLogic__factory.ts +1748 -0
- package/build/types/factories/src/rollup/RollupUserLogic.sol/index.ts +6 -0
- package/build/types/factories/src/rollup/ValidatorUtils__factory.ts +430 -0
- package/build/types/factories/src/rollup/ValidatorWalletCreator__factory.ts +205 -0
- package/build/types/factories/src/rollup/ValidatorWallet__factory.ts +486 -0
- package/build/types/factories/src/rollup/index.ts +25 -0
- package/build/types/factories/src/test-helpers/BridgeTester__factory.ts +654 -0
- package/build/types/factories/src/test-helpers/CryptographyPrimitivesTester__factory.ts +111 -0
- package/build/types/factories/src/test-helpers/EthVault__factory.ts +95 -0
- package/build/types/factories/src/test-helpers/MessageTester__factory.ts +135 -0
- package/build/types/factories/src/test-helpers/OutboxWithoutOptTester__factory.ts +575 -0
- package/build/types/factories/src/test-helpers/RollupMock__factory.ts +100 -0
- package/build/types/factories/src/test-helpers/ValueArrayTester__factory.ts +69 -0
- package/build/types/factories/src/test-helpers/index.ts +10 -0
- package/build/types/index.ts +240 -0
- package/build/types/src/bridge/AbsBridge.ts +863 -0
- package/build/types/src/bridge/AbsInbox.ts +664 -0
- package/build/types/src/bridge/AbsOutbox.ts +700 -0
- package/build/types/src/bridge/Bridge.ts +934 -0
- package/build/types/src/bridge/ERC20Bridge.ts +970 -0
- package/build/types/src/bridge/ERC20Inbox.ts +869 -0
- package/build/types/src/bridge/ERC20Outbox.ts +722 -0
- package/build/types/src/bridge/IBridge.ts +799 -0
- package/build/types/src/bridge/IDelayedMessageProvider.ts +108 -0
- package/build/types/src/bridge/IERC20Bridge.ts +914 -0
- package/build/types/src/bridge/IERC20Inbox.ts +788 -0
- package/build/types/src/bridge/IEthBridge.ts +871 -0
- package/build/types/src/bridge/IEthInbox.ts +1081 -0
- package/build/types/src/bridge/IInbox.ts +583 -0
- package/build/types/src/bridge/IOutbox.ts +654 -0
- package/build/types/src/bridge/IOwnable.ts +81 -0
- package/build/types/src/bridge/ISequencerInbox.ts +1038 -0
- package/build/types/src/bridge/Inbox.ts +1279 -0
- package/build/types/src/bridge/Outbox.ts +700 -0
- package/build/types/src/bridge/SequencerInbox.ts +1138 -0
- package/build/types/src/bridge/index.ts +23 -0
- package/build/types/src/challenge/ChallengeManager.ts +889 -0
- package/build/types/src/challenge/IChallengeManager.ts +543 -0
- package/build/types/src/challenge/IChallengeResultReceiver.ts +115 -0
- package/build/types/src/challenge/index.ts +6 -0
- package/build/types/src/index.ts +21 -0
- package/build/types/src/libraries/AdminFallbackProxy.sol/AdminFallbackProxy.ts +128 -0
- package/build/types/src/libraries/AdminFallbackProxy.sol/DoubleLogicERC1967Upgrade.ts +128 -0
- package/build/types/src/libraries/AdminFallbackProxy.sol/index.ts +5 -0
- package/build/types/src/libraries/DoubleLogicUUPSUpgradeable.ts +314 -0
- package/build/types/src/libraries/IGasRefunder.ts +112 -0
- package/build/types/src/libraries/UUPSNotUpgradeable.ts +164 -0
- package/build/types/src/libraries/index.ts +8 -0
- package/build/types/src/mocks/BridgeStub.ts +887 -0
- package/build/types/src/mocks/BridgeUnproxied.ts +934 -0
- package/build/types/src/mocks/InboxStub.ts +1076 -0
- package/build/types/src/mocks/MockResultReceiver.ts +301 -0
- package/build/types/src/mocks/ProxyAdminForBinding.ts +359 -0
- package/build/types/src/mocks/SequencerInboxStub.ts +1173 -0
- package/build/types/src/mocks/Simple.ts +514 -0
- package/build/types/src/mocks/SimpleProxy.ts +55 -0
- package/build/types/src/mocks/SingleExecutionChallenge.ts +889 -0
- package/build/types/src/mocks/TimedOutChallengeManager.ts +883 -0
- package/build/types/src/mocks/index.ts +13 -0
- package/build/types/src/node-interface/NodeInterface.ts +502 -0
- package/build/types/src/node-interface/NodeInterfaceDebug.ts +137 -0
- package/build/types/src/node-interface/index.ts +5 -0
- package/build/types/src/osp/HashProofHelper.ts +308 -0
- package/build/types/src/osp/IOneStepProofEntry.ts +128 -0
- package/build/types/src/osp/IOneStepProver.ts +284 -0
- package/build/types/src/osp/OneStepProofEntry.ts +196 -0
- package/build/types/src/osp/OneStepProver0.ts +284 -0
- package/build/types/src/osp/OneStepProverHostIo.ts +284 -0
- package/build/types/src/osp/OneStepProverMath.ts +284 -0
- package/build/types/src/osp/OneStepProverMemory.ts +284 -0
- package/build/types/src/osp/index.ts +11 -0
- package/build/types/src/precompiles/ArbAddressTable.ts +248 -0
- package/build/types/src/precompiles/ArbAggregator.ts +335 -0
- package/build/types/src/precompiles/ArbDebug.ts +292 -0
- package/build/types/src/precompiles/ArbFunctionTable.ts +150 -0
- package/build/types/src/precompiles/ArbGasInfo.ts +494 -0
- package/build/types/src/precompiles/ArbInfo.ts +105 -0
- package/build/types/src/precompiles/ArbOwner.ts +928 -0
- package/build/types/src/precompiles/ArbOwnerPublic.ts +157 -0
- package/build/types/src/precompiles/ArbRetryableTx.ts +467 -0
- package/build/types/src/precompiles/ArbStatistics.ts +93 -0
- package/build/types/src/precompiles/ArbSys.ts +553 -0
- package/build/types/src/precompiles/ArbosActs.ts +173 -0
- package/build/types/src/precompiles/ArbosTest.ts +97 -0
- package/build/types/src/precompiles/index.ts +16 -0
- package/build/types/src/rollup/AbsBridgeCreator.ts +348 -0
- package/build/types/src/rollup/AbsRollupCreator.ts +449 -0
- package/build/types/src/rollup/AbsRollupEventInbox.ts +218 -0
- package/build/types/src/rollup/BridgeCreator.ts +415 -0
- package/build/types/src/rollup/ERC20BridgeCreator.ts +420 -0
- package/build/types/src/rollup/ERC20RollupCreator.ts +561 -0
- package/build/types/src/rollup/ERC20RollupEventInbox.ts +218 -0
- package/build/types/src/rollup/IBridgeCreator.sol/IBridgeCreator.ts +231 -0
- package/build/types/src/rollup/IBridgeCreator.sol/IERC20BridgeCreator.ts +303 -0
- package/build/types/src/rollup/IBridgeCreator.sol/IEthBridgeCreator.ts +298 -0
- package/build/types/src/rollup/IBridgeCreator.sol/index.ts +6 -0
- package/build/types/src/rollup/IRollupAdmin.ts +1003 -0
- package/build/types/src/rollup/IRollupCore.ts +1183 -0
- package/build/types/src/rollup/IRollupCreator.sol/IERC20RollupCreator.ts +247 -0
- package/build/types/src/rollup/IRollupCreator.sol/IEthRollupCreator.ts +242 -0
- package/build/types/src/rollup/IRollupCreator.sol/IRollupCreator.ts +134 -0
- package/build/types/src/rollup/IRollupCreator.sol/index.ts +6 -0
- package/build/types/src/rollup/IRollupEventInbox.ts +167 -0
- package/build/types/src/rollup/IRollupLogic.sol/IRollupUser.ts +2022 -0
- package/build/types/src/rollup/IRollupLogic.sol/IRollupUserAbs.ts +1901 -0
- package/build/types/src/rollup/IRollupLogic.sol/IRollupUserERC20.ts +2036 -0
- package/build/types/src/rollup/IRollupLogic.sol/index.ts +6 -0
- package/build/types/src/rollup/RollupAdminLogic.ts +2593 -0
- package/build/types/src/rollup/RollupCore.ts +1406 -0
- package/build/types/src/rollup/RollupCreator.ts +556 -0
- package/build/types/src/rollup/RollupEventInbox.ts +218 -0
- package/build/types/src/rollup/RollupProxy.ts +285 -0
- package/build/types/src/rollup/RollupUserLogic.sol/AbsRollupUserLogic.ts +2282 -0
- package/build/types/src/rollup/RollupUserLogic.sol/ERC20RollupUserLogic.ts +2417 -0
- package/build/types/src/rollup/RollupUserLogic.sol/RollupUserLogic.ts +2403 -0
- package/build/types/src/rollup/RollupUserLogic.sol/index.ts +6 -0
- package/build/types/src/rollup/ValidatorUtils.ts +561 -0
- package/build/types/src/rollup/ValidatorWallet.ts +751 -0
- package/build/types/src/rollup/ValidatorWalletCreator.ts +294 -0
- package/build/types/src/rollup/index.ts +29 -0
- package/build/types/src/test-helpers/BridgeTester.ts +899 -0
- package/build/types/src/test-helpers/CryptographyPrimitivesTester.ts +141 -0
- package/build/types/src/test-helpers/EthVault.ts +141 -0
- package/build/types/src/test-helpers/MessageTester.ts +182 -0
- package/build/types/src/test-helpers/OutboxWithoutOptTester.ts +700 -0
- package/build/types/src/test-helpers/RollupMock.ts +164 -0
- package/build/types/src/test-helpers/ValueArrayTester.ts +81 -0
- package/build/types/src/test-helpers/index.ts +10 -0
- package/package.json +9 -3
- package/src/bridge/AbsBridge.sol +302 -0
- package/src/bridge/AbsInbox.sol +335 -0
- package/src/bridge/AbsOutbox.sol +295 -0
- package/src/bridge/Bridge.sol +15 -244
- package/src/bridge/ERC20Bridge.sol +74 -0
- package/src/bridge/ERC20Inbox.sol +141 -0
- package/src/bridge/ERC20Outbox.sol +27 -0
- package/src/bridge/IBridge.sol +1 -16
- package/src/bridge/IDelayedMessageProvider.sol +1 -1
- package/src/bridge/IERC20Bridge.sol +35 -0
- package/src/bridge/IERC20Inbox.sol +75 -0
- package/src/bridge/IEthBridge.sol +26 -0
- package/src/bridge/IEthInbox.sol +133 -0
- package/src/bridge/IInbox.sol +13 -123
- package/src/bridge/IOutbox.sol +1 -1
- package/src/bridge/IOwnable.sol +1 -1
- package/src/bridge/ISequencerInbox.sol +12 -4
- package/src/bridge/Inbox.sol +46 -333
- package/src/bridge/Messages.sol +1 -1
- package/src/bridge/Outbox.sol +8 -265
- package/src/bridge/SequencerInbox.sol +29 -8
- package/src/challenge/ChallengeLib.sol +1 -1
- package/src/challenge/ChallengeManager.sol +1 -1
- package/src/challenge/IChallengeManager.sol +1 -1
- package/src/challenge/IChallengeResultReceiver.sol +1 -1
- package/src/libraries/AddressAliasHelper.sol +1 -1
- package/src/libraries/AdminFallbackProxy.sol +1 -1
- package/src/libraries/ArbitrumChecker.sol +16 -0
- package/src/libraries/Constants.sol +1 -4
- package/src/libraries/CryptographyPrimitives.sol +1 -1
- package/src/libraries/DelegateCallAware.sol +1 -1
- package/src/libraries/DoubleLogicUUPSUpgradeable.sol +1 -1
- package/src/libraries/Error.sol +9 -1
- package/src/libraries/IGasRefunder.sol +1 -1
- package/src/libraries/MerkleLib.sol +1 -1
- package/src/libraries/MessageTypes.sol +1 -1
- package/src/mocks/BridgeStub.sol +3 -2
- package/src/mocks/BridgeUnproxied.sol +1 -1
- package/src/mocks/InboxStub.sol +28 -5
- package/src/mocks/MockResultReceiver.sol +1 -1
- package/src/mocks/ProxyAdminForBinding.sol +1 -1
- package/src/mocks/SequencerInboxStub.sol +3 -2
- package/src/mocks/Simple.sol +3 -1
- package/src/mocks/SimpleProxy.sol +1 -1
- package/src/mocks/SingleExecutionChallenge.sol +1 -1
- package/src/mocks/TimedOutChallengeManager.sol +1 -1
- package/src/node-interface/NodeInterface.sol +1 -1
- package/src/node-interface/NodeInterfaceDebug.sol +1 -1
- package/src/osp/HashProofHelper.sol +1 -1
- package/src/osp/IOneStepProofEntry.sol +1 -1
- package/src/osp/IOneStepProver.sol +2 -1
- package/src/osp/OneStepProofEntry.sol +1 -1
- package/src/osp/OneStepProver0.sol +1 -1
- package/src/osp/OneStepProverHostIo.sol +2 -1
- package/src/osp/OneStepProverMath.sol +1 -1
- package/src/osp/OneStepProverMemory.sol +2 -1
- package/src/precompiles/ArbAddressTable.sol +1 -1
- package/src/precompiles/ArbAggregator.sol +1 -1
- package/src/precompiles/ArbBLS.sol +1 -1
- package/src/precompiles/ArbDebug.sol +1 -1
- package/src/precompiles/ArbFunctionTable.sol +1 -1
- package/src/precompiles/ArbGasInfo.sol +1 -1
- package/src/precompiles/ArbInfo.sol +1 -1
- package/src/precompiles/ArbOwner.sol +1 -1
- package/src/precompiles/ArbOwnerPublic.sol +1 -1
- package/src/precompiles/ArbRetryableTx.sol +1 -1
- package/src/precompiles/ArbStatistics.sol +1 -1
- package/src/precompiles/ArbSys.sol +1 -1
- package/src/precompiles/ArbosTest.sol +1 -1
- package/src/rollup/AbsBridgeCreator.sol +117 -0
- package/src/rollup/AbsRollupCreator.sol +164 -0
- package/src/rollup/AbsRollupEventInbox.sol +62 -0
- package/src/rollup/BridgeCreator.sol +17 -88
- package/src/rollup/Config.sol +43 -0
- package/src/rollup/ERC20BridgeCreator.sol +48 -0
- package/src/rollup/ERC20RollupCreator.sol +48 -0
- package/src/rollup/ERC20RollupEventInbox.sol +26 -0
- package/src/rollup/IBridgeCreator.sol +64 -0
- package/src/rollup/IRollupAdmin.sol +138 -0
- package/src/rollup/IRollupCore.sol +7 -3
- package/src/rollup/IRollupCreator.sol +40 -0
- package/src/rollup/IRollupEventInbox.sol +1 -1
- package/src/rollup/IRollupLogic.sol +4 -132
- package/src/rollup/Node.sol +15 -1
- package/src/rollup/RollupAdminLogic.sol +6 -8
- package/src/rollup/RollupCore.sol +4 -11
- package/src/rollup/RollupCreator.sol +22 -97
- package/src/rollup/RollupEventInbox.sol +12 -35
- package/src/rollup/RollupLib.sol +2 -41
- package/src/rollup/RollupProxy.sol +3 -2
- package/src/rollup/RollupUserLogic.sol +6 -4
- package/src/rollup/ValidatorUtils.sol +2 -1
- package/src/rollup/ValidatorWallet.sol +1 -1
- package/src/rollup/ValidatorWalletCreator.sol +1 -1
- package/src/state/Deserialize.sol +2 -2
- package/src/state/GlobalState.sol +1 -1
- package/src/state/Instructions.sol +1 -1
- package/src/state/Machine.sol +1 -1
- package/src/state/MerkleProof.sol +1 -1
- package/src/state/Module.sol +3 -3
- package/src/state/ModuleMemory.sol +3 -8
- package/src/state/ModuleMemoryCompact.sol +17 -0
- package/src/state/PcArray.sol +1 -1
- package/src/state/StackFrame.sol +1 -1
- package/src/state/Value.sol +1 -1
- package/src/state/ValueArray.sol +1 -1
- package/src/state/ValueStack.sol +1 -1
- package/src/test-helpers/BridgeTester.sol +3 -2
- package/src/test-helpers/CryptographyPrimitivesTester.sol +1 -1
- package/src/test-helpers/EthVault.sol +20 -0
- package/src/test-helpers/InterfaceCompatibilityTester.sol +1 -1
- package/src/test-helpers/MessageTester.sol +1 -1
- package/src/test-helpers/OutboxWithoutOptTester.sol +1 -1
- package/src/test-helpers/RollupMock.sol +1 -1
- package/src/test-helpers/ValueArrayTester.sol +1 -1
- package/hardhat.config.ts +0 -164
@@ -0,0 +1,575 @@
|
|
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
|
+
OutboxWithoutOptTester,
|
8
|
+
OutboxWithoutOptTesterInterface,
|
9
|
+
} from "../../../src/test-helpers/OutboxWithoutOptTester";
|
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
|
+
{
|
36
|
+
internalType: "uint256",
|
37
|
+
name: "actualLength",
|
38
|
+
type: "uint256",
|
39
|
+
},
|
40
|
+
{
|
41
|
+
internalType: "uint256",
|
42
|
+
name: "maxProofLength",
|
43
|
+
type: "uint256",
|
44
|
+
},
|
45
|
+
],
|
46
|
+
name: "MerkleProofTooLong",
|
47
|
+
type: "error",
|
48
|
+
},
|
49
|
+
{
|
50
|
+
inputs: [
|
51
|
+
{
|
52
|
+
internalType: "uint256",
|
53
|
+
name: "index",
|
54
|
+
type: "uint256",
|
55
|
+
},
|
56
|
+
{
|
57
|
+
internalType: "uint256",
|
58
|
+
name: "maxIndex",
|
59
|
+
type: "uint256",
|
60
|
+
},
|
61
|
+
],
|
62
|
+
name: "PathNotMinimal",
|
63
|
+
type: "error",
|
64
|
+
},
|
65
|
+
{
|
66
|
+
inputs: [
|
67
|
+
{
|
68
|
+
internalType: "uint256",
|
69
|
+
name: "proofLength",
|
70
|
+
type: "uint256",
|
71
|
+
},
|
72
|
+
],
|
73
|
+
name: "ProofTooLong",
|
74
|
+
type: "error",
|
75
|
+
},
|
76
|
+
{
|
77
|
+
inputs: [
|
78
|
+
{
|
79
|
+
internalType: "bytes32",
|
80
|
+
name: "root",
|
81
|
+
type: "bytes32",
|
82
|
+
},
|
83
|
+
],
|
84
|
+
name: "UnknownRoot",
|
85
|
+
type: "error",
|
86
|
+
},
|
87
|
+
{
|
88
|
+
anonymous: false,
|
89
|
+
inputs: [
|
90
|
+
{
|
91
|
+
indexed: true,
|
92
|
+
internalType: "address",
|
93
|
+
name: "to",
|
94
|
+
type: "address",
|
95
|
+
},
|
96
|
+
{
|
97
|
+
indexed: true,
|
98
|
+
internalType: "address",
|
99
|
+
name: "l2Sender",
|
100
|
+
type: "address",
|
101
|
+
},
|
102
|
+
{
|
103
|
+
indexed: true,
|
104
|
+
internalType: "uint256",
|
105
|
+
name: "zero",
|
106
|
+
type: "uint256",
|
107
|
+
},
|
108
|
+
{
|
109
|
+
indexed: false,
|
110
|
+
internalType: "uint256",
|
111
|
+
name: "transactionIndex",
|
112
|
+
type: "uint256",
|
113
|
+
},
|
114
|
+
],
|
115
|
+
name: "OutBoxTransactionExecuted",
|
116
|
+
type: "event",
|
117
|
+
},
|
118
|
+
{
|
119
|
+
anonymous: false,
|
120
|
+
inputs: [
|
121
|
+
{
|
122
|
+
indexed: true,
|
123
|
+
internalType: "bytes32",
|
124
|
+
name: "outputRoot",
|
125
|
+
type: "bytes32",
|
126
|
+
},
|
127
|
+
{
|
128
|
+
indexed: true,
|
129
|
+
internalType: "bytes32",
|
130
|
+
name: "l2BlockHash",
|
131
|
+
type: "bytes32",
|
132
|
+
},
|
133
|
+
],
|
134
|
+
name: "SendRootUpdated",
|
135
|
+
type: "event",
|
136
|
+
},
|
137
|
+
{
|
138
|
+
inputs: [],
|
139
|
+
name: "OUTBOX_VERSION",
|
140
|
+
outputs: [
|
141
|
+
{
|
142
|
+
internalType: "uint128",
|
143
|
+
name: "",
|
144
|
+
type: "uint128",
|
145
|
+
},
|
146
|
+
],
|
147
|
+
stateMutability: "view",
|
148
|
+
type: "function",
|
149
|
+
},
|
150
|
+
{
|
151
|
+
inputs: [],
|
152
|
+
name: "bridge",
|
153
|
+
outputs: [
|
154
|
+
{
|
155
|
+
internalType: "contract IBridge",
|
156
|
+
name: "",
|
157
|
+
type: "address",
|
158
|
+
},
|
159
|
+
],
|
160
|
+
stateMutability: "view",
|
161
|
+
type: "function",
|
162
|
+
},
|
163
|
+
{
|
164
|
+
inputs: [
|
165
|
+
{
|
166
|
+
internalType: "address",
|
167
|
+
name: "l2Sender",
|
168
|
+
type: "address",
|
169
|
+
},
|
170
|
+
{
|
171
|
+
internalType: "address",
|
172
|
+
name: "to",
|
173
|
+
type: "address",
|
174
|
+
},
|
175
|
+
{
|
176
|
+
internalType: "uint256",
|
177
|
+
name: "l2Block",
|
178
|
+
type: "uint256",
|
179
|
+
},
|
180
|
+
{
|
181
|
+
internalType: "uint256",
|
182
|
+
name: "l1Block",
|
183
|
+
type: "uint256",
|
184
|
+
},
|
185
|
+
{
|
186
|
+
internalType: "uint256",
|
187
|
+
name: "l2Timestamp",
|
188
|
+
type: "uint256",
|
189
|
+
},
|
190
|
+
{
|
191
|
+
internalType: "uint256",
|
192
|
+
name: "value",
|
193
|
+
type: "uint256",
|
194
|
+
},
|
195
|
+
{
|
196
|
+
internalType: "bytes",
|
197
|
+
name: "data",
|
198
|
+
type: "bytes",
|
199
|
+
},
|
200
|
+
],
|
201
|
+
name: "calculateItemHash",
|
202
|
+
outputs: [
|
203
|
+
{
|
204
|
+
internalType: "bytes32",
|
205
|
+
name: "",
|
206
|
+
type: "bytes32",
|
207
|
+
},
|
208
|
+
],
|
209
|
+
stateMutability: "pure",
|
210
|
+
type: "function",
|
211
|
+
},
|
212
|
+
{
|
213
|
+
inputs: [
|
214
|
+
{
|
215
|
+
internalType: "bytes32[]",
|
216
|
+
name: "proof",
|
217
|
+
type: "bytes32[]",
|
218
|
+
},
|
219
|
+
{
|
220
|
+
internalType: "uint256",
|
221
|
+
name: "path",
|
222
|
+
type: "uint256",
|
223
|
+
},
|
224
|
+
{
|
225
|
+
internalType: "bytes32",
|
226
|
+
name: "item",
|
227
|
+
type: "bytes32",
|
228
|
+
},
|
229
|
+
],
|
230
|
+
name: "calculateMerkleRoot",
|
231
|
+
outputs: [
|
232
|
+
{
|
233
|
+
internalType: "bytes32",
|
234
|
+
name: "",
|
235
|
+
type: "bytes32",
|
236
|
+
},
|
237
|
+
],
|
238
|
+
stateMutability: "pure",
|
239
|
+
type: "function",
|
240
|
+
},
|
241
|
+
{
|
242
|
+
inputs: [
|
243
|
+
{
|
244
|
+
internalType: "bytes32[]",
|
245
|
+
name: "proof",
|
246
|
+
type: "bytes32[]",
|
247
|
+
},
|
248
|
+
{
|
249
|
+
internalType: "uint256",
|
250
|
+
name: "index",
|
251
|
+
type: "uint256",
|
252
|
+
},
|
253
|
+
{
|
254
|
+
internalType: "address",
|
255
|
+
name: "l2Sender",
|
256
|
+
type: "address",
|
257
|
+
},
|
258
|
+
{
|
259
|
+
internalType: "address",
|
260
|
+
name: "to",
|
261
|
+
type: "address",
|
262
|
+
},
|
263
|
+
{
|
264
|
+
internalType: "uint256",
|
265
|
+
name: "l2Block",
|
266
|
+
type: "uint256",
|
267
|
+
},
|
268
|
+
{
|
269
|
+
internalType: "uint256",
|
270
|
+
name: "l1Block",
|
271
|
+
type: "uint256",
|
272
|
+
},
|
273
|
+
{
|
274
|
+
internalType: "uint256",
|
275
|
+
name: "l2Timestamp",
|
276
|
+
type: "uint256",
|
277
|
+
},
|
278
|
+
{
|
279
|
+
internalType: "uint256",
|
280
|
+
name: "value",
|
281
|
+
type: "uint256",
|
282
|
+
},
|
283
|
+
{
|
284
|
+
internalType: "bytes",
|
285
|
+
name: "data",
|
286
|
+
type: "bytes",
|
287
|
+
},
|
288
|
+
],
|
289
|
+
name: "executeTransaction",
|
290
|
+
outputs: [],
|
291
|
+
stateMutability: "nonpayable",
|
292
|
+
type: "function",
|
293
|
+
},
|
294
|
+
{
|
295
|
+
inputs: [
|
296
|
+
{
|
297
|
+
internalType: "uint256",
|
298
|
+
name: "",
|
299
|
+
type: "uint256",
|
300
|
+
},
|
301
|
+
{
|
302
|
+
internalType: "address",
|
303
|
+
name: "",
|
304
|
+
type: "address",
|
305
|
+
},
|
306
|
+
{
|
307
|
+
internalType: "address",
|
308
|
+
name: "",
|
309
|
+
type: "address",
|
310
|
+
},
|
311
|
+
{
|
312
|
+
internalType: "uint256",
|
313
|
+
name: "",
|
314
|
+
type: "uint256",
|
315
|
+
},
|
316
|
+
{
|
317
|
+
internalType: "uint256",
|
318
|
+
name: "",
|
319
|
+
type: "uint256",
|
320
|
+
},
|
321
|
+
{
|
322
|
+
internalType: "uint256",
|
323
|
+
name: "",
|
324
|
+
type: "uint256",
|
325
|
+
},
|
326
|
+
{
|
327
|
+
internalType: "uint256",
|
328
|
+
name: "",
|
329
|
+
type: "uint256",
|
330
|
+
},
|
331
|
+
{
|
332
|
+
internalType: "bytes",
|
333
|
+
name: "",
|
334
|
+
type: "bytes",
|
335
|
+
},
|
336
|
+
],
|
337
|
+
name: "executeTransactionSimulation",
|
338
|
+
outputs: [],
|
339
|
+
stateMutability: "pure",
|
340
|
+
type: "function",
|
341
|
+
},
|
342
|
+
{
|
343
|
+
inputs: [
|
344
|
+
{
|
345
|
+
internalType: "contract IBridge",
|
346
|
+
name: "_bridge",
|
347
|
+
type: "address",
|
348
|
+
},
|
349
|
+
],
|
350
|
+
name: "initialize",
|
351
|
+
outputs: [],
|
352
|
+
stateMutability: "nonpayable",
|
353
|
+
type: "function",
|
354
|
+
},
|
355
|
+
{
|
356
|
+
inputs: [
|
357
|
+
{
|
358
|
+
internalType: "uint256",
|
359
|
+
name: "",
|
360
|
+
type: "uint256",
|
361
|
+
},
|
362
|
+
],
|
363
|
+
name: "isSpent",
|
364
|
+
outputs: [
|
365
|
+
{
|
366
|
+
internalType: "bool",
|
367
|
+
name: "",
|
368
|
+
type: "bool",
|
369
|
+
},
|
370
|
+
],
|
371
|
+
stateMutability: "view",
|
372
|
+
type: "function",
|
373
|
+
},
|
374
|
+
{
|
375
|
+
inputs: [],
|
376
|
+
name: "l2ToL1BatchNum",
|
377
|
+
outputs: [
|
378
|
+
{
|
379
|
+
internalType: "uint256",
|
380
|
+
name: "",
|
381
|
+
type: "uint256",
|
382
|
+
},
|
383
|
+
],
|
384
|
+
stateMutability: "pure",
|
385
|
+
type: "function",
|
386
|
+
},
|
387
|
+
{
|
388
|
+
inputs: [],
|
389
|
+
name: "l2ToL1Block",
|
390
|
+
outputs: [
|
391
|
+
{
|
392
|
+
internalType: "uint256",
|
393
|
+
name: "",
|
394
|
+
type: "uint256",
|
395
|
+
},
|
396
|
+
],
|
397
|
+
stateMutability: "view",
|
398
|
+
type: "function",
|
399
|
+
},
|
400
|
+
{
|
401
|
+
inputs: [],
|
402
|
+
name: "l2ToL1EthBlock",
|
403
|
+
outputs: [
|
404
|
+
{
|
405
|
+
internalType: "uint256",
|
406
|
+
name: "",
|
407
|
+
type: "uint256",
|
408
|
+
},
|
409
|
+
],
|
410
|
+
stateMutability: "view",
|
411
|
+
type: "function",
|
412
|
+
},
|
413
|
+
{
|
414
|
+
inputs: [],
|
415
|
+
name: "l2ToL1OutputId",
|
416
|
+
outputs: [
|
417
|
+
{
|
418
|
+
internalType: "bytes32",
|
419
|
+
name: "",
|
420
|
+
type: "bytes32",
|
421
|
+
},
|
422
|
+
],
|
423
|
+
stateMutability: "view",
|
424
|
+
type: "function",
|
425
|
+
},
|
426
|
+
{
|
427
|
+
inputs: [],
|
428
|
+
name: "l2ToL1Sender",
|
429
|
+
outputs: [
|
430
|
+
{
|
431
|
+
internalType: "address",
|
432
|
+
name: "",
|
433
|
+
type: "address",
|
434
|
+
},
|
435
|
+
],
|
436
|
+
stateMutability: "view",
|
437
|
+
type: "function",
|
438
|
+
},
|
439
|
+
{
|
440
|
+
inputs: [],
|
441
|
+
name: "l2ToL1Timestamp",
|
442
|
+
outputs: [
|
443
|
+
{
|
444
|
+
internalType: "uint256",
|
445
|
+
name: "",
|
446
|
+
type: "uint256",
|
447
|
+
},
|
448
|
+
],
|
449
|
+
stateMutability: "view",
|
450
|
+
type: "function",
|
451
|
+
},
|
452
|
+
{
|
453
|
+
inputs: [],
|
454
|
+
name: "rollup",
|
455
|
+
outputs: [
|
456
|
+
{
|
457
|
+
internalType: "address",
|
458
|
+
name: "",
|
459
|
+
type: "address",
|
460
|
+
},
|
461
|
+
],
|
462
|
+
stateMutability: "view",
|
463
|
+
type: "function",
|
464
|
+
},
|
465
|
+
{
|
466
|
+
inputs: [
|
467
|
+
{
|
468
|
+
internalType: "bytes32",
|
469
|
+
name: "",
|
470
|
+
type: "bytes32",
|
471
|
+
},
|
472
|
+
],
|
473
|
+
name: "roots",
|
474
|
+
outputs: [
|
475
|
+
{
|
476
|
+
internalType: "bytes32",
|
477
|
+
name: "",
|
478
|
+
type: "bytes32",
|
479
|
+
},
|
480
|
+
],
|
481
|
+
stateMutability: "view",
|
482
|
+
type: "function",
|
483
|
+
},
|
484
|
+
{
|
485
|
+
inputs: [
|
486
|
+
{
|
487
|
+
internalType: "uint256",
|
488
|
+
name: "",
|
489
|
+
type: "uint256",
|
490
|
+
},
|
491
|
+
],
|
492
|
+
name: "spent",
|
493
|
+
outputs: [
|
494
|
+
{
|
495
|
+
internalType: "bytes32",
|
496
|
+
name: "",
|
497
|
+
type: "bytes32",
|
498
|
+
},
|
499
|
+
],
|
500
|
+
stateMutability: "pure",
|
501
|
+
type: "function",
|
502
|
+
},
|
503
|
+
{
|
504
|
+
inputs: [
|
505
|
+
{
|
506
|
+
internalType: "bytes32",
|
507
|
+
name: "root",
|
508
|
+
type: "bytes32",
|
509
|
+
},
|
510
|
+
{
|
511
|
+
internalType: "bytes32",
|
512
|
+
name: "l2BlockHash",
|
513
|
+
type: "bytes32",
|
514
|
+
},
|
515
|
+
],
|
516
|
+
name: "updateSendRoot",
|
517
|
+
outputs: [],
|
518
|
+
stateMutability: "nonpayable",
|
519
|
+
type: "function",
|
520
|
+
},
|
521
|
+
];
|
522
|
+
|
523
|
+
const _bytecode =
|
524
|
+
"0x60a06040523060805234801561001457600080fd5b5060805161113861002d600039600050506111386000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80639f0c04bf116100925780639f0c04bf146101d8578063a04cee60146101eb578063ae6dead7146101fe578063b0f305371461021e578063c4d66de81461022f578063c75184df14610242578063cb23bcb514610262578063d5b5cc2314610275578063e78cea921461028857600080fd5b80627436d3146100fa57806308635a95146101205780631198527114610135578063288e5b101461013c578063465477901461014f5780635a129efe1461016057806372f2a8c71461019357806380648b021461019b5780638515bc6a146101c0575b600080fd5b61010d610108366004610aa6565b61029b565b6040519081526020015b60405180910390f35b61013361012e366004610bcb565b6102d8565b005b600061010d565b61013361014a366004610cbf565b61061a565b6004546001600160801b031661010d565b61018361016e366004610d5a565b60026020526000908152604090205460ff1681565b6040519015158152602001610117565b60065461010d565b6007546001600160a01b03165b6040516001600160a01b039091168152602001610117565b600454600160801b90046001600160801b031661010d565b61010d6101e6366004610d73565b610659565b6101336101f9366004610e01565b61069e565b61010d61020c366004610d5a565b60036020526000908152604090205481565b6005546001600160801b031661010d565b61013361023d366004610e23565b6106dd565b61024a600281565b6040516001600160801b039091168152602001610117565b6000546101a8906001600160a01b031681565b61010d610283366004610d5a565b6107b6565b6001546101a8906001600160a01b031681565b60006102d08484846040516020016102b591815260200190565b604051602081830303815290604052805190602001206107f2565b949350505050565b6000806102eb8a8a8a8a8a8a8a8a610659565b905061032d8d8d808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508f92508591506108959050565b915060008a6001600160a01b03168a6001600160a01b03167f20af7f3bbfe38132b8900ae295cd9c8d1914be7052d061a511f3f728dab189648e60405161037691815260200190565b60405180910390a450600060046040518060a00160405290816000820160009054906101000a90046001600160801b03166001600160801b03166001600160801b031681526020016000820160109054906101000a90046001600160801b03166001600160801b03166001600160801b031681526020016001820160009054906101000a90046001600160801b03166001600160801b03166001600160801b03168152602001600282015481526020016003820160009054906101000a90046001600160a01b03166001600160a01b03166001600160a01b03168152505090506040518060a00160405280896001600160801b03168152602001886001600160801b03168152602001876001600160801b031681526020018381526020018b6001600160a01b0316815250600460008201518160000160006101000a8154816001600160801b0302191690836001600160801b0316021790555060208201518160000160106101000a8154816001600160801b0302191690836001600160801b0316021790555060408201518160010160006101000a8154816001600160801b0302191690836001600160801b031602179055506060820151816002015560808201518160030160006101000a8154816001600160a01b0302191690836001600160a01b031602179055509050506105a5898686868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061099892505050565b805160208201516001600160801b03918216600160801b91831691909102176004556040820151600580546001600160801b03191691909216179055606081015160065560800151600780546001600160a01b0319166001600160a01b03909216919091179055505050505050505050505050565b60405162461bcd60e51b815260206004820152600f60248201526e139bdd081a5b5c1b195b595b9d1959608a1b60448201526064015b60405180910390fd5b6000888888888888888860405160200161067a989796959493929190610e47565b60405160208183030381529060405280519060200120905098975050505050505050565b60008281526003602052604080822083905551829184917fb4df3847300f076a369cd76d2314b470a1194d9e8a6bb97f1860aee88a5f67489190a35050565b6001546001600160a01b03161561070757604051633bcd329760e21b815260040160405180910390fd5b600180546001600160a01b0319166001600160a01b0383169081179091556040805163cb23bcb560e01b8152905163cb23bcb591600480820192602092909190829003018186803b15801561075b57600080fd5b505afa15801561076f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107939190610ea0565b600080546001600160a01b0319166001600160a01b039290921691909117905550565b60405162461bcd60e51b815260206004820152600e60248201526d1393d517d253541311535155115160921b6044820152600090606401610650565b825160009061010081111561082557604051637ed6198f60e11b8152600481018290526101006024820152604401610650565b8260005b8281101561088b57600087828151811061084557610845610ebd565b60200260200101519050816001901b87166000141561087257826000528060205260406000209250610882565b8060005282602052604060002092505b50600101610829565b5095945050505050565b60006101008451106108bf57835160405163ab6a068360e01b815260040161065091815260200190565b83516108cc906002610fcf565b83106109035782845160026108e19190610fcf565b604051630b8a724b60e01b815260048101929092526024820152604401610650565b600061091085858561029b565b600081815260036020526040902054909150610942576040516310e61af960e31b815260048101829052602401610650565b60008481526002602052604090205460ff161561097557604051639715b8d360e01b815260048101859052602401610650565b50506000828152600260205260409020805460ff19166001179055819392505050565b600154604051639e5d4c4960e01b815260009182916001600160a01b0390911690639e5d4c49906109d19088908890889060040161100b565b600060405180830381600087803b1580156109eb57600080fd5b505af11580156109ff573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610a279190810190611054565b9150915081610a5957805115610a405780518082602001fd5b604051631bb7daad60e11b815260040160405180910390fd5b5050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610a9e57610a9e610a60565b604052919050565b600080600060608486031215610abb57600080fd5b83356001600160401b0380821115610ad257600080fd5b818601915086601f830112610ae657600080fd5b8135602082821115610afa57610afa610a60565b8160051b9250610b0b818401610a76565b828152928401810192818101908a851115610b2557600080fd5b948201945b84861015610b4357853582529482019490820190610b2a565b9a918901359950506040909701359695505050505050565b6001600160a01b0381168114610b7057600080fd5b50565b8035610b7e81610b5b565b919050565b60008083601f840112610b9557600080fd5b5081356001600160401b03811115610bac57600080fd5b602083019150836020828501011115610bc457600080fd5b9250929050565b60008060008060008060008060008060006101208c8e031215610bed57600080fd5b8b356001600160401b0380821115610c0457600080fd5b818e0191508e601f830112610c1857600080fd5b813581811115610c2757600080fd5b8f60208260051b8501011115610c3c57600080fd5b60208381019e50909c508e01359a50610c5760408f01610b73565b9950610c6560608f01610b73565b985060808e0135975060a08e0135965060c08e0135955060e08e013594506101008e0135915080821115610c9857600080fd5b50610ca58e828f01610b83565b915080935050809150509295989b509295989b9093969950565b60008060008060008060008060006101008a8c031215610cde57600080fd5b8935985060208a0135610cf081610b5b565b975060408a0135610d0081610b5b565b965060608a0135955060808a0135945060a08a0135935060c08a0135925060e08a01356001600160401b03811115610d3757600080fd5b610d438c828d01610b83565b915080935050809150509295985092959850929598565b600060208284031215610d6c57600080fd5b5035919050565b60008060008060008060008060e0898b031215610d8f57600080fd5b8835610d9a81610b5b565b97506020890135610daa81610b5b565b965060408901359550606089013594506080890135935060a0890135925060c08901356001600160401b03811115610de157600080fd5b610ded8b828c01610b83565b999c989b5096995094979396929594505050565b60008060408385031215610e1457600080fd5b50508035926020909101359150565b600060208284031215610e3557600080fd5b8135610e4081610b5b565b9392505050565b60006bffffffffffffffffffffffff19808b60601b168352808a60601b16601484015250876028830152866048830152856068830152846088830152828460a8840137506000910160a801908152979650505050505050565b600060208284031215610eb257600080fd5b8151610e4081610b5b565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600181815b80851115610f24578160001904821115610f0a57610f0a610ed3565b80851615610f1757918102915b93841c9390800290610eee565b509250929050565b600082610f3b57506001610fc9565b81610f4857506000610fc9565b8160018114610f5e5760028114610f6857610f84565b6001915050610fc9565b60ff841115610f7957610f79610ed3565b50506001821b610fc9565b5060208310610133831016604e8410600b8410161715610fa7575081810a610fc9565b610fb18383610ee9565b8060001904821115610fc557610fc5610ed3565b0290505b92915050565b6000610e408383610f2c565b60005b83811015610ff6578181015183820152602001610fde565b83811115611005576000848401525b50505050565b60018060a01b0384168152826020820152606060408201526000825180606084015261103e816080850160208701610fdb565b601f01601f191691909101608001949350505050565b6000806040838503121561106757600080fd5b8251801515811461107757600080fd5b60208401519092506001600160401b038082111561109457600080fd5b818501915085601f8301126110a857600080fd5b8151818111156110ba576110ba610a60565b6110cd601f8201601f1916602001610a76565b91508082528660208285010111156110e457600080fd5b6110f5816020840160208601610fdb565b508092505050925092905056fea264697066735822122005e69cc49990b667d0d7f4cef5cc53c8f8b527a25a8a3c6a1ea50dfdc21c6b0764736f6c63430008090033";
|
525
|
+
|
526
|
+
type OutboxWithoutOptTesterConstructorParams =
|
527
|
+
| [signer?: Signer]
|
528
|
+
| ConstructorParameters<typeof ContractFactory>;
|
529
|
+
|
530
|
+
const isSuperArgs = (
|
531
|
+
xs: OutboxWithoutOptTesterConstructorParams
|
532
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
533
|
+
|
534
|
+
export class OutboxWithoutOptTester__factory extends ContractFactory {
|
535
|
+
constructor(...args: OutboxWithoutOptTesterConstructorParams) {
|
536
|
+
if (isSuperArgs(args)) {
|
537
|
+
super(...args);
|
538
|
+
} else {
|
539
|
+
super(_abi, _bytecode, args[0]);
|
540
|
+
}
|
541
|
+
}
|
542
|
+
|
543
|
+
override deploy(
|
544
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
545
|
+
): Promise<OutboxWithoutOptTester> {
|
546
|
+
return super.deploy(overrides || {}) as Promise<OutboxWithoutOptTester>;
|
547
|
+
}
|
548
|
+
override getDeployTransaction(
|
549
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
550
|
+
): TransactionRequest {
|
551
|
+
return super.getDeployTransaction(overrides || {});
|
552
|
+
}
|
553
|
+
override attach(address: string): OutboxWithoutOptTester {
|
554
|
+
return super.attach(address) as OutboxWithoutOptTester;
|
555
|
+
}
|
556
|
+
override connect(signer: Signer): OutboxWithoutOptTester__factory {
|
557
|
+
return super.connect(signer) as OutboxWithoutOptTester__factory;
|
558
|
+
}
|
559
|
+
|
560
|
+
static readonly bytecode = _bytecode;
|
561
|
+
static readonly abi = _abi;
|
562
|
+
static createInterface(): OutboxWithoutOptTesterInterface {
|
563
|
+
return new utils.Interface(_abi) as OutboxWithoutOptTesterInterface;
|
564
|
+
}
|
565
|
+
static connect(
|
566
|
+
address: string,
|
567
|
+
signerOrProvider: Signer | Provider
|
568
|
+
): OutboxWithoutOptTester {
|
569
|
+
return new Contract(
|
570
|
+
address,
|
571
|
+
_abi,
|
572
|
+
signerOrProvider
|
573
|
+
) as OutboxWithoutOptTester;
|
574
|
+
}
|
575
|
+
}
|
@@ -0,0 +1,100 @@
|
|
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
|
+
RollupMock,
|
8
|
+
RollupMockInterface,
|
9
|
+
} from "../../../src/test-helpers/RollupMock";
|
10
|
+
|
11
|
+
const _abi = [
|
12
|
+
{
|
13
|
+
anonymous: false,
|
14
|
+
inputs: [],
|
15
|
+
name: "WithdrawTriggered",
|
16
|
+
type: "event",
|
17
|
+
},
|
18
|
+
{
|
19
|
+
anonymous: false,
|
20
|
+
inputs: [],
|
21
|
+
name: "ZombieTriggered",
|
22
|
+
type: "event",
|
23
|
+
},
|
24
|
+
{
|
25
|
+
inputs: [
|
26
|
+
{
|
27
|
+
internalType: "uint256",
|
28
|
+
name: "",
|
29
|
+
type: "uint256",
|
30
|
+
},
|
31
|
+
],
|
32
|
+
name: "removeOldZombies",
|
33
|
+
outputs: [],
|
34
|
+
stateMutability: "nonpayable",
|
35
|
+
type: "function",
|
36
|
+
},
|
37
|
+
{
|
38
|
+
inputs: [],
|
39
|
+
name: "withdrawStakerFunds",
|
40
|
+
outputs: [
|
41
|
+
{
|
42
|
+
internalType: "uint256",
|
43
|
+
name: "",
|
44
|
+
type: "uint256",
|
45
|
+
},
|
46
|
+
],
|
47
|
+
stateMutability: "nonpayable",
|
48
|
+
type: "function",
|
49
|
+
},
|
50
|
+
];
|
51
|
+
|
52
|
+
const _bytecode =
|
53
|
+
"0x608060405234801561001057600080fd5b5061010b806100206000396000f3fe6080604052348015600f57600080fd5b506004361060325760003560e01c806361373919146037578063edfd03ed14604f575b600080fd5b603d6060565b60405190815260200160405180910390f35b605e605a36600460bd565b6091565b005b6040516000907f1c09fbbf7cfd024f5e4e5472dd87afd5d67ee5db6a0ca715bf508d96abce309f908290a150600090565b6040517fb774f793432a37585a7638b9afe49e91c478887a2c0fef32877508bf2f76429d90600090a150565b60006020828403121560ce57600080fd5b503591905056fea2646970667358221220c46d0427a4468511d785384c621f054682d8867b2303d195d0989eab1818ca5664736f6c63430008090033";
|
54
|
+
|
55
|
+
type RollupMockConstructorParams =
|
56
|
+
| [signer?: Signer]
|
57
|
+
| ConstructorParameters<typeof ContractFactory>;
|
58
|
+
|
59
|
+
const isSuperArgs = (
|
60
|
+
xs: RollupMockConstructorParams
|
61
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
62
|
+
|
63
|
+
export class RollupMock__factory extends ContractFactory {
|
64
|
+
constructor(...args: RollupMockConstructorParams) {
|
65
|
+
if (isSuperArgs(args)) {
|
66
|
+
super(...args);
|
67
|
+
} else {
|
68
|
+
super(_abi, _bytecode, args[0]);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
override deploy(
|
73
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
74
|
+
): Promise<RollupMock> {
|
75
|
+
return super.deploy(overrides || {}) as Promise<RollupMock>;
|
76
|
+
}
|
77
|
+
override getDeployTransaction(
|
78
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
79
|
+
): TransactionRequest {
|
80
|
+
return super.getDeployTransaction(overrides || {});
|
81
|
+
}
|
82
|
+
override attach(address: string): RollupMock {
|
83
|
+
return super.attach(address) as RollupMock;
|
84
|
+
}
|
85
|
+
override connect(signer: Signer): RollupMock__factory {
|
86
|
+
return super.connect(signer) as RollupMock__factory;
|
87
|
+
}
|
88
|
+
|
89
|
+
static readonly bytecode = _bytecode;
|
90
|
+
static readonly abi = _abi;
|
91
|
+
static createInterface(): RollupMockInterface {
|
92
|
+
return new utils.Interface(_abi) as RollupMockInterface;
|
93
|
+
}
|
94
|
+
static connect(
|
95
|
+
address: string,
|
96
|
+
signerOrProvider: Signer | Provider
|
97
|
+
): RollupMock {
|
98
|
+
return new Contract(address, _abi, signerOrProvider) as RollupMock;
|
99
|
+
}
|
100
|
+
}
|