@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,904 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
|
5
|
+
import { Contract, Signer, utils } from "ethers";
|
6
|
+
import type { Provider } from "@ethersproject/providers";
|
7
|
+
import type {
|
8
|
+
IRollupCore,
|
9
|
+
IRollupCoreInterface,
|
10
|
+
} from "../../../src/rollup/IRollupCore";
|
11
|
+
|
12
|
+
const _abi = [
|
13
|
+
{
|
14
|
+
anonymous: false,
|
15
|
+
inputs: [
|
16
|
+
{
|
17
|
+
indexed: true,
|
18
|
+
internalType: "uint64",
|
19
|
+
name: "nodeNum",
|
20
|
+
type: "uint64",
|
21
|
+
},
|
22
|
+
{
|
23
|
+
indexed: false,
|
24
|
+
internalType: "bytes32",
|
25
|
+
name: "blockHash",
|
26
|
+
type: "bytes32",
|
27
|
+
},
|
28
|
+
{
|
29
|
+
indexed: false,
|
30
|
+
internalType: "bytes32",
|
31
|
+
name: "sendRoot",
|
32
|
+
type: "bytes32",
|
33
|
+
},
|
34
|
+
],
|
35
|
+
name: "NodeConfirmed",
|
36
|
+
type: "event",
|
37
|
+
},
|
38
|
+
{
|
39
|
+
anonymous: false,
|
40
|
+
inputs: [
|
41
|
+
{
|
42
|
+
indexed: true,
|
43
|
+
internalType: "uint64",
|
44
|
+
name: "nodeNum",
|
45
|
+
type: "uint64",
|
46
|
+
},
|
47
|
+
{
|
48
|
+
indexed: true,
|
49
|
+
internalType: "bytes32",
|
50
|
+
name: "parentNodeHash",
|
51
|
+
type: "bytes32",
|
52
|
+
},
|
53
|
+
{
|
54
|
+
indexed: true,
|
55
|
+
internalType: "bytes32",
|
56
|
+
name: "nodeHash",
|
57
|
+
type: "bytes32",
|
58
|
+
},
|
59
|
+
{
|
60
|
+
indexed: false,
|
61
|
+
internalType: "bytes32",
|
62
|
+
name: "executionHash",
|
63
|
+
type: "bytes32",
|
64
|
+
},
|
65
|
+
{
|
66
|
+
components: [
|
67
|
+
{
|
68
|
+
components: [
|
69
|
+
{
|
70
|
+
components: [
|
71
|
+
{
|
72
|
+
internalType: "bytes32[2]",
|
73
|
+
name: "bytes32Vals",
|
74
|
+
type: "bytes32[2]",
|
75
|
+
},
|
76
|
+
{
|
77
|
+
internalType: "uint64[2]",
|
78
|
+
name: "u64Vals",
|
79
|
+
type: "uint64[2]",
|
80
|
+
},
|
81
|
+
],
|
82
|
+
internalType: "struct GlobalState",
|
83
|
+
name: "globalState",
|
84
|
+
type: "tuple",
|
85
|
+
},
|
86
|
+
{
|
87
|
+
internalType: "enum MachineStatus",
|
88
|
+
name: "machineStatus",
|
89
|
+
type: "uint8",
|
90
|
+
},
|
91
|
+
],
|
92
|
+
internalType: "struct ExecutionState",
|
93
|
+
name: "beforeState",
|
94
|
+
type: "tuple",
|
95
|
+
},
|
96
|
+
{
|
97
|
+
components: [
|
98
|
+
{
|
99
|
+
components: [
|
100
|
+
{
|
101
|
+
internalType: "bytes32[2]",
|
102
|
+
name: "bytes32Vals",
|
103
|
+
type: "bytes32[2]",
|
104
|
+
},
|
105
|
+
{
|
106
|
+
internalType: "uint64[2]",
|
107
|
+
name: "u64Vals",
|
108
|
+
type: "uint64[2]",
|
109
|
+
},
|
110
|
+
],
|
111
|
+
internalType: "struct GlobalState",
|
112
|
+
name: "globalState",
|
113
|
+
type: "tuple",
|
114
|
+
},
|
115
|
+
{
|
116
|
+
internalType: "enum MachineStatus",
|
117
|
+
name: "machineStatus",
|
118
|
+
type: "uint8",
|
119
|
+
},
|
120
|
+
],
|
121
|
+
internalType: "struct ExecutionState",
|
122
|
+
name: "afterState",
|
123
|
+
type: "tuple",
|
124
|
+
},
|
125
|
+
{
|
126
|
+
internalType: "uint64",
|
127
|
+
name: "numBlocks",
|
128
|
+
type: "uint64",
|
129
|
+
},
|
130
|
+
],
|
131
|
+
indexed: false,
|
132
|
+
internalType: "struct Assertion",
|
133
|
+
name: "assertion",
|
134
|
+
type: "tuple",
|
135
|
+
},
|
136
|
+
{
|
137
|
+
indexed: false,
|
138
|
+
internalType: "bytes32",
|
139
|
+
name: "afterInboxBatchAcc",
|
140
|
+
type: "bytes32",
|
141
|
+
},
|
142
|
+
{
|
143
|
+
indexed: false,
|
144
|
+
internalType: "bytes32",
|
145
|
+
name: "wasmModuleRoot",
|
146
|
+
type: "bytes32",
|
147
|
+
},
|
148
|
+
{
|
149
|
+
indexed: false,
|
150
|
+
internalType: "uint256",
|
151
|
+
name: "inboxMaxCount",
|
152
|
+
type: "uint256",
|
153
|
+
},
|
154
|
+
],
|
155
|
+
name: "NodeCreated",
|
156
|
+
type: "event",
|
157
|
+
},
|
158
|
+
{
|
159
|
+
anonymous: false,
|
160
|
+
inputs: [
|
161
|
+
{
|
162
|
+
indexed: true,
|
163
|
+
internalType: "uint64",
|
164
|
+
name: "nodeNum",
|
165
|
+
type: "uint64",
|
166
|
+
},
|
167
|
+
],
|
168
|
+
name: "NodeRejected",
|
169
|
+
type: "event",
|
170
|
+
},
|
171
|
+
{
|
172
|
+
anonymous: false,
|
173
|
+
inputs: [
|
174
|
+
{
|
175
|
+
indexed: true,
|
176
|
+
internalType: "uint64",
|
177
|
+
name: "challengeIndex",
|
178
|
+
type: "uint64",
|
179
|
+
},
|
180
|
+
{
|
181
|
+
indexed: false,
|
182
|
+
internalType: "address",
|
183
|
+
name: "asserter",
|
184
|
+
type: "address",
|
185
|
+
},
|
186
|
+
{
|
187
|
+
indexed: false,
|
188
|
+
internalType: "address",
|
189
|
+
name: "challenger",
|
190
|
+
type: "address",
|
191
|
+
},
|
192
|
+
{
|
193
|
+
indexed: false,
|
194
|
+
internalType: "uint64",
|
195
|
+
name: "challengedNode",
|
196
|
+
type: "uint64",
|
197
|
+
},
|
198
|
+
],
|
199
|
+
name: "RollupChallengeStarted",
|
200
|
+
type: "event",
|
201
|
+
},
|
202
|
+
{
|
203
|
+
anonymous: false,
|
204
|
+
inputs: [
|
205
|
+
{
|
206
|
+
indexed: false,
|
207
|
+
internalType: "bytes32",
|
208
|
+
name: "machineHash",
|
209
|
+
type: "bytes32",
|
210
|
+
},
|
211
|
+
{
|
212
|
+
indexed: false,
|
213
|
+
internalType: "uint256",
|
214
|
+
name: "chainId",
|
215
|
+
type: "uint256",
|
216
|
+
},
|
217
|
+
],
|
218
|
+
name: "RollupInitialized",
|
219
|
+
type: "event",
|
220
|
+
},
|
221
|
+
{
|
222
|
+
anonymous: false,
|
223
|
+
inputs: [
|
224
|
+
{
|
225
|
+
indexed: true,
|
226
|
+
internalType: "address",
|
227
|
+
name: "user",
|
228
|
+
type: "address",
|
229
|
+
},
|
230
|
+
{
|
231
|
+
indexed: false,
|
232
|
+
internalType: "uint256",
|
233
|
+
name: "initialBalance",
|
234
|
+
type: "uint256",
|
235
|
+
},
|
236
|
+
{
|
237
|
+
indexed: false,
|
238
|
+
internalType: "uint256",
|
239
|
+
name: "finalBalance",
|
240
|
+
type: "uint256",
|
241
|
+
},
|
242
|
+
],
|
243
|
+
name: "UserStakeUpdated",
|
244
|
+
type: "event",
|
245
|
+
},
|
246
|
+
{
|
247
|
+
anonymous: false,
|
248
|
+
inputs: [
|
249
|
+
{
|
250
|
+
indexed: true,
|
251
|
+
internalType: "address",
|
252
|
+
name: "user",
|
253
|
+
type: "address",
|
254
|
+
},
|
255
|
+
{
|
256
|
+
indexed: false,
|
257
|
+
internalType: "uint256",
|
258
|
+
name: "initialBalance",
|
259
|
+
type: "uint256",
|
260
|
+
},
|
261
|
+
{
|
262
|
+
indexed: false,
|
263
|
+
internalType: "uint256",
|
264
|
+
name: "finalBalance",
|
265
|
+
type: "uint256",
|
266
|
+
},
|
267
|
+
],
|
268
|
+
name: "UserWithdrawableFundsUpdated",
|
269
|
+
type: "event",
|
270
|
+
},
|
271
|
+
{
|
272
|
+
inputs: [
|
273
|
+
{
|
274
|
+
internalType: "address",
|
275
|
+
name: "staker",
|
276
|
+
type: "address",
|
277
|
+
},
|
278
|
+
],
|
279
|
+
name: "amountStaked",
|
280
|
+
outputs: [
|
281
|
+
{
|
282
|
+
internalType: "uint256",
|
283
|
+
name: "",
|
284
|
+
type: "uint256",
|
285
|
+
},
|
286
|
+
],
|
287
|
+
stateMutability: "view",
|
288
|
+
type: "function",
|
289
|
+
},
|
290
|
+
{
|
291
|
+
inputs: [],
|
292
|
+
name: "baseStake",
|
293
|
+
outputs: [
|
294
|
+
{
|
295
|
+
internalType: "uint256",
|
296
|
+
name: "",
|
297
|
+
type: "uint256",
|
298
|
+
},
|
299
|
+
],
|
300
|
+
stateMutability: "view",
|
301
|
+
type: "function",
|
302
|
+
},
|
303
|
+
{
|
304
|
+
inputs: [],
|
305
|
+
name: "bridge",
|
306
|
+
outputs: [
|
307
|
+
{
|
308
|
+
internalType: "contract IBridge",
|
309
|
+
name: "",
|
310
|
+
type: "address",
|
311
|
+
},
|
312
|
+
],
|
313
|
+
stateMutability: "view",
|
314
|
+
type: "function",
|
315
|
+
},
|
316
|
+
{
|
317
|
+
inputs: [],
|
318
|
+
name: "chainId",
|
319
|
+
outputs: [
|
320
|
+
{
|
321
|
+
internalType: "uint256",
|
322
|
+
name: "",
|
323
|
+
type: "uint256",
|
324
|
+
},
|
325
|
+
],
|
326
|
+
stateMutability: "view",
|
327
|
+
type: "function",
|
328
|
+
},
|
329
|
+
{
|
330
|
+
inputs: [],
|
331
|
+
name: "challengeManager",
|
332
|
+
outputs: [
|
333
|
+
{
|
334
|
+
internalType: "contract IChallengeManager",
|
335
|
+
name: "",
|
336
|
+
type: "address",
|
337
|
+
},
|
338
|
+
],
|
339
|
+
stateMutability: "view",
|
340
|
+
type: "function",
|
341
|
+
},
|
342
|
+
{
|
343
|
+
inputs: [],
|
344
|
+
name: "confirmPeriodBlocks",
|
345
|
+
outputs: [
|
346
|
+
{
|
347
|
+
internalType: "uint64",
|
348
|
+
name: "",
|
349
|
+
type: "uint64",
|
350
|
+
},
|
351
|
+
],
|
352
|
+
stateMutability: "view",
|
353
|
+
type: "function",
|
354
|
+
},
|
355
|
+
{
|
356
|
+
inputs: [
|
357
|
+
{
|
358
|
+
internalType: "address",
|
359
|
+
name: "staker",
|
360
|
+
type: "address",
|
361
|
+
},
|
362
|
+
],
|
363
|
+
name: "currentChallenge",
|
364
|
+
outputs: [
|
365
|
+
{
|
366
|
+
internalType: "uint64",
|
367
|
+
name: "",
|
368
|
+
type: "uint64",
|
369
|
+
},
|
370
|
+
],
|
371
|
+
stateMutability: "view",
|
372
|
+
type: "function",
|
373
|
+
},
|
374
|
+
{
|
375
|
+
inputs: [],
|
376
|
+
name: "extraChallengeTimeBlocks",
|
377
|
+
outputs: [
|
378
|
+
{
|
379
|
+
internalType: "uint64",
|
380
|
+
name: "",
|
381
|
+
type: "uint64",
|
382
|
+
},
|
383
|
+
],
|
384
|
+
stateMutability: "view",
|
385
|
+
type: "function",
|
386
|
+
},
|
387
|
+
{
|
388
|
+
inputs: [],
|
389
|
+
name: "firstUnresolvedNode",
|
390
|
+
outputs: [
|
391
|
+
{
|
392
|
+
internalType: "uint64",
|
393
|
+
name: "",
|
394
|
+
type: "uint64",
|
395
|
+
},
|
396
|
+
],
|
397
|
+
stateMutability: "view",
|
398
|
+
type: "function",
|
399
|
+
},
|
400
|
+
{
|
401
|
+
inputs: [
|
402
|
+
{
|
403
|
+
internalType: "uint64",
|
404
|
+
name: "nodeNum",
|
405
|
+
type: "uint64",
|
406
|
+
},
|
407
|
+
],
|
408
|
+
name: "getNode",
|
409
|
+
outputs: [
|
410
|
+
{
|
411
|
+
components: [
|
412
|
+
{
|
413
|
+
internalType: "bytes32",
|
414
|
+
name: "stateHash",
|
415
|
+
type: "bytes32",
|
416
|
+
},
|
417
|
+
{
|
418
|
+
internalType: "bytes32",
|
419
|
+
name: "challengeHash",
|
420
|
+
type: "bytes32",
|
421
|
+
},
|
422
|
+
{
|
423
|
+
internalType: "bytes32",
|
424
|
+
name: "confirmData",
|
425
|
+
type: "bytes32",
|
426
|
+
},
|
427
|
+
{
|
428
|
+
internalType: "uint64",
|
429
|
+
name: "prevNum",
|
430
|
+
type: "uint64",
|
431
|
+
},
|
432
|
+
{
|
433
|
+
internalType: "uint64",
|
434
|
+
name: "deadlineBlock",
|
435
|
+
type: "uint64",
|
436
|
+
},
|
437
|
+
{
|
438
|
+
internalType: "uint64",
|
439
|
+
name: "noChildConfirmedBeforeBlock",
|
440
|
+
type: "uint64",
|
441
|
+
},
|
442
|
+
{
|
443
|
+
internalType: "uint64",
|
444
|
+
name: "stakerCount",
|
445
|
+
type: "uint64",
|
446
|
+
},
|
447
|
+
{
|
448
|
+
internalType: "uint64",
|
449
|
+
name: "childStakerCount",
|
450
|
+
type: "uint64",
|
451
|
+
},
|
452
|
+
{
|
453
|
+
internalType: "uint64",
|
454
|
+
name: "firstChildBlock",
|
455
|
+
type: "uint64",
|
456
|
+
},
|
457
|
+
{
|
458
|
+
internalType: "uint64",
|
459
|
+
name: "latestChildNumber",
|
460
|
+
type: "uint64",
|
461
|
+
},
|
462
|
+
{
|
463
|
+
internalType: "uint64",
|
464
|
+
name: "createdAtBlock",
|
465
|
+
type: "uint64",
|
466
|
+
},
|
467
|
+
{
|
468
|
+
internalType: "bytes32",
|
469
|
+
name: "nodeHash",
|
470
|
+
type: "bytes32",
|
471
|
+
},
|
472
|
+
],
|
473
|
+
internalType: "struct Node",
|
474
|
+
name: "",
|
475
|
+
type: "tuple",
|
476
|
+
},
|
477
|
+
],
|
478
|
+
stateMutability: "view",
|
479
|
+
type: "function",
|
480
|
+
},
|
481
|
+
{
|
482
|
+
inputs: [
|
483
|
+
{
|
484
|
+
internalType: "uint64",
|
485
|
+
name: "nodeNum",
|
486
|
+
type: "uint64",
|
487
|
+
},
|
488
|
+
],
|
489
|
+
name: "getNodeCreationBlockForLogLookup",
|
490
|
+
outputs: [
|
491
|
+
{
|
492
|
+
internalType: "uint256",
|
493
|
+
name: "",
|
494
|
+
type: "uint256",
|
495
|
+
},
|
496
|
+
],
|
497
|
+
stateMutability: "view",
|
498
|
+
type: "function",
|
499
|
+
},
|
500
|
+
{
|
501
|
+
inputs: [
|
502
|
+
{
|
503
|
+
internalType: "address",
|
504
|
+
name: "staker",
|
505
|
+
type: "address",
|
506
|
+
},
|
507
|
+
],
|
508
|
+
name: "getStaker",
|
509
|
+
outputs: [
|
510
|
+
{
|
511
|
+
components: [
|
512
|
+
{
|
513
|
+
internalType: "uint256",
|
514
|
+
name: "amountStaked",
|
515
|
+
type: "uint256",
|
516
|
+
},
|
517
|
+
{
|
518
|
+
internalType: "uint64",
|
519
|
+
name: "index",
|
520
|
+
type: "uint64",
|
521
|
+
},
|
522
|
+
{
|
523
|
+
internalType: "uint64",
|
524
|
+
name: "latestStakedNode",
|
525
|
+
type: "uint64",
|
526
|
+
},
|
527
|
+
{
|
528
|
+
internalType: "uint64",
|
529
|
+
name: "currentChallenge",
|
530
|
+
type: "uint64",
|
531
|
+
},
|
532
|
+
{
|
533
|
+
internalType: "bool",
|
534
|
+
name: "isStaked",
|
535
|
+
type: "bool",
|
536
|
+
},
|
537
|
+
],
|
538
|
+
internalType: "struct IRollupCore.Staker",
|
539
|
+
name: "",
|
540
|
+
type: "tuple",
|
541
|
+
},
|
542
|
+
],
|
543
|
+
stateMutability: "view",
|
544
|
+
type: "function",
|
545
|
+
},
|
546
|
+
{
|
547
|
+
inputs: [
|
548
|
+
{
|
549
|
+
internalType: "uint64",
|
550
|
+
name: "stakerNum",
|
551
|
+
type: "uint64",
|
552
|
+
},
|
553
|
+
],
|
554
|
+
name: "getStakerAddress",
|
555
|
+
outputs: [
|
556
|
+
{
|
557
|
+
internalType: "address",
|
558
|
+
name: "",
|
559
|
+
type: "address",
|
560
|
+
},
|
561
|
+
],
|
562
|
+
stateMutability: "view",
|
563
|
+
type: "function",
|
564
|
+
},
|
565
|
+
{
|
566
|
+
inputs: [
|
567
|
+
{
|
568
|
+
internalType: "address",
|
569
|
+
name: "staker",
|
570
|
+
type: "address",
|
571
|
+
},
|
572
|
+
],
|
573
|
+
name: "isStaked",
|
574
|
+
outputs: [
|
575
|
+
{
|
576
|
+
internalType: "bool",
|
577
|
+
name: "",
|
578
|
+
type: "bool",
|
579
|
+
},
|
580
|
+
],
|
581
|
+
stateMutability: "view",
|
582
|
+
type: "function",
|
583
|
+
},
|
584
|
+
{
|
585
|
+
inputs: [
|
586
|
+
{
|
587
|
+
internalType: "address",
|
588
|
+
name: "",
|
589
|
+
type: "address",
|
590
|
+
},
|
591
|
+
],
|
592
|
+
name: "isValidator",
|
593
|
+
outputs: [
|
594
|
+
{
|
595
|
+
internalType: "bool",
|
596
|
+
name: "",
|
597
|
+
type: "bool",
|
598
|
+
},
|
599
|
+
],
|
600
|
+
stateMutability: "view",
|
601
|
+
type: "function",
|
602
|
+
},
|
603
|
+
{
|
604
|
+
inputs: [
|
605
|
+
{
|
606
|
+
internalType: "address",
|
607
|
+
name: "staker",
|
608
|
+
type: "address",
|
609
|
+
},
|
610
|
+
],
|
611
|
+
name: "isZombie",
|
612
|
+
outputs: [
|
613
|
+
{
|
614
|
+
internalType: "bool",
|
615
|
+
name: "",
|
616
|
+
type: "bool",
|
617
|
+
},
|
618
|
+
],
|
619
|
+
stateMutability: "view",
|
620
|
+
type: "function",
|
621
|
+
},
|
622
|
+
{
|
623
|
+
inputs: [],
|
624
|
+
name: "lastStakeBlock",
|
625
|
+
outputs: [
|
626
|
+
{
|
627
|
+
internalType: "uint64",
|
628
|
+
name: "",
|
629
|
+
type: "uint64",
|
630
|
+
},
|
631
|
+
],
|
632
|
+
stateMutability: "view",
|
633
|
+
type: "function",
|
634
|
+
},
|
635
|
+
{
|
636
|
+
inputs: [],
|
637
|
+
name: "latestConfirmed",
|
638
|
+
outputs: [
|
639
|
+
{
|
640
|
+
internalType: "uint64",
|
641
|
+
name: "",
|
642
|
+
type: "uint64",
|
643
|
+
},
|
644
|
+
],
|
645
|
+
stateMutability: "view",
|
646
|
+
type: "function",
|
647
|
+
},
|
648
|
+
{
|
649
|
+
inputs: [],
|
650
|
+
name: "latestNodeCreated",
|
651
|
+
outputs: [
|
652
|
+
{
|
653
|
+
internalType: "uint64",
|
654
|
+
name: "",
|
655
|
+
type: "uint64",
|
656
|
+
},
|
657
|
+
],
|
658
|
+
stateMutability: "view",
|
659
|
+
type: "function",
|
660
|
+
},
|
661
|
+
{
|
662
|
+
inputs: [
|
663
|
+
{
|
664
|
+
internalType: "address",
|
665
|
+
name: "staker",
|
666
|
+
type: "address",
|
667
|
+
},
|
668
|
+
],
|
669
|
+
name: "latestStakedNode",
|
670
|
+
outputs: [
|
671
|
+
{
|
672
|
+
internalType: "uint64",
|
673
|
+
name: "",
|
674
|
+
type: "uint64",
|
675
|
+
},
|
676
|
+
],
|
677
|
+
stateMutability: "view",
|
678
|
+
type: "function",
|
679
|
+
},
|
680
|
+
{
|
681
|
+
inputs: [],
|
682
|
+
name: "loserStakeEscrow",
|
683
|
+
outputs: [
|
684
|
+
{
|
685
|
+
internalType: "address",
|
686
|
+
name: "",
|
687
|
+
type: "address",
|
688
|
+
},
|
689
|
+
],
|
690
|
+
stateMutability: "view",
|
691
|
+
type: "function",
|
692
|
+
},
|
693
|
+
{
|
694
|
+
inputs: [],
|
695
|
+
name: "minimumAssertionPeriod",
|
696
|
+
outputs: [
|
697
|
+
{
|
698
|
+
internalType: "uint256",
|
699
|
+
name: "",
|
700
|
+
type: "uint256",
|
701
|
+
},
|
702
|
+
],
|
703
|
+
stateMutability: "view",
|
704
|
+
type: "function",
|
705
|
+
},
|
706
|
+
{
|
707
|
+
inputs: [
|
708
|
+
{
|
709
|
+
internalType: "uint64",
|
710
|
+
name: "nodeNum",
|
711
|
+
type: "uint64",
|
712
|
+
},
|
713
|
+
{
|
714
|
+
internalType: "address",
|
715
|
+
name: "staker",
|
716
|
+
type: "address",
|
717
|
+
},
|
718
|
+
],
|
719
|
+
name: "nodeHasStaker",
|
720
|
+
outputs: [
|
721
|
+
{
|
722
|
+
internalType: "bool",
|
723
|
+
name: "",
|
724
|
+
type: "bool",
|
725
|
+
},
|
726
|
+
],
|
727
|
+
stateMutability: "view",
|
728
|
+
type: "function",
|
729
|
+
},
|
730
|
+
{
|
731
|
+
inputs: [],
|
732
|
+
name: "outbox",
|
733
|
+
outputs: [
|
734
|
+
{
|
735
|
+
internalType: "contract IOutbox",
|
736
|
+
name: "",
|
737
|
+
type: "address",
|
738
|
+
},
|
739
|
+
],
|
740
|
+
stateMutability: "view",
|
741
|
+
type: "function",
|
742
|
+
},
|
743
|
+
{
|
744
|
+
inputs: [],
|
745
|
+
name: "rollupEventInbox",
|
746
|
+
outputs: [
|
747
|
+
{
|
748
|
+
internalType: "contract IRollupEventInbox",
|
749
|
+
name: "",
|
750
|
+
type: "address",
|
751
|
+
},
|
752
|
+
],
|
753
|
+
stateMutability: "view",
|
754
|
+
type: "function",
|
755
|
+
},
|
756
|
+
{
|
757
|
+
inputs: [],
|
758
|
+
name: "sequencerInbox",
|
759
|
+
outputs: [
|
760
|
+
{
|
761
|
+
internalType: "contract ISequencerInbox",
|
762
|
+
name: "",
|
763
|
+
type: "address",
|
764
|
+
},
|
765
|
+
],
|
766
|
+
stateMutability: "view",
|
767
|
+
type: "function",
|
768
|
+
},
|
769
|
+
{
|
770
|
+
inputs: [],
|
771
|
+
name: "stakeToken",
|
772
|
+
outputs: [
|
773
|
+
{
|
774
|
+
internalType: "address",
|
775
|
+
name: "",
|
776
|
+
type: "address",
|
777
|
+
},
|
778
|
+
],
|
779
|
+
stateMutability: "view",
|
780
|
+
type: "function",
|
781
|
+
},
|
782
|
+
{
|
783
|
+
inputs: [],
|
784
|
+
name: "stakerCount",
|
785
|
+
outputs: [
|
786
|
+
{
|
787
|
+
internalType: "uint64",
|
788
|
+
name: "",
|
789
|
+
type: "uint64",
|
790
|
+
},
|
791
|
+
],
|
792
|
+
stateMutability: "view",
|
793
|
+
type: "function",
|
794
|
+
},
|
795
|
+
{
|
796
|
+
inputs: [],
|
797
|
+
name: "validatorWhitelistDisabled",
|
798
|
+
outputs: [
|
799
|
+
{
|
800
|
+
internalType: "bool",
|
801
|
+
name: "",
|
802
|
+
type: "bool",
|
803
|
+
},
|
804
|
+
],
|
805
|
+
stateMutability: "view",
|
806
|
+
type: "function",
|
807
|
+
},
|
808
|
+
{
|
809
|
+
inputs: [],
|
810
|
+
name: "wasmModuleRoot",
|
811
|
+
outputs: [
|
812
|
+
{
|
813
|
+
internalType: "bytes32",
|
814
|
+
name: "",
|
815
|
+
type: "bytes32",
|
816
|
+
},
|
817
|
+
],
|
818
|
+
stateMutability: "view",
|
819
|
+
type: "function",
|
820
|
+
},
|
821
|
+
{
|
822
|
+
inputs: [
|
823
|
+
{
|
824
|
+
internalType: "address",
|
825
|
+
name: "owner",
|
826
|
+
type: "address",
|
827
|
+
},
|
828
|
+
],
|
829
|
+
name: "withdrawableFunds",
|
830
|
+
outputs: [
|
831
|
+
{
|
832
|
+
internalType: "uint256",
|
833
|
+
name: "",
|
834
|
+
type: "uint256",
|
835
|
+
},
|
836
|
+
],
|
837
|
+
stateMutability: "view",
|
838
|
+
type: "function",
|
839
|
+
},
|
840
|
+
{
|
841
|
+
inputs: [
|
842
|
+
{
|
843
|
+
internalType: "uint256",
|
844
|
+
name: "zombieNum",
|
845
|
+
type: "uint256",
|
846
|
+
},
|
847
|
+
],
|
848
|
+
name: "zombieAddress",
|
849
|
+
outputs: [
|
850
|
+
{
|
851
|
+
internalType: "address",
|
852
|
+
name: "",
|
853
|
+
type: "address",
|
854
|
+
},
|
855
|
+
],
|
856
|
+
stateMutability: "view",
|
857
|
+
type: "function",
|
858
|
+
},
|
859
|
+
{
|
860
|
+
inputs: [],
|
861
|
+
name: "zombieCount",
|
862
|
+
outputs: [
|
863
|
+
{
|
864
|
+
internalType: "uint256",
|
865
|
+
name: "",
|
866
|
+
type: "uint256",
|
867
|
+
},
|
868
|
+
],
|
869
|
+
stateMutability: "view",
|
870
|
+
type: "function",
|
871
|
+
},
|
872
|
+
{
|
873
|
+
inputs: [
|
874
|
+
{
|
875
|
+
internalType: "uint256",
|
876
|
+
name: "zombieNum",
|
877
|
+
type: "uint256",
|
878
|
+
},
|
879
|
+
],
|
880
|
+
name: "zombieLatestStakedNode",
|
881
|
+
outputs: [
|
882
|
+
{
|
883
|
+
internalType: "uint64",
|
884
|
+
name: "",
|
885
|
+
type: "uint64",
|
886
|
+
},
|
887
|
+
],
|
888
|
+
stateMutability: "view",
|
889
|
+
type: "function",
|
890
|
+
},
|
891
|
+
];
|
892
|
+
|
893
|
+
export class IRollupCore__factory {
|
894
|
+
static readonly abi = _abi;
|
895
|
+
static createInterface(): IRollupCoreInterface {
|
896
|
+
return new utils.Interface(_abi) as IRollupCoreInterface;
|
897
|
+
}
|
898
|
+
static connect(
|
899
|
+
address: string,
|
900
|
+
signerOrProvider: Signer | Provider
|
901
|
+
): IRollupCore {
|
902
|
+
return new Contract(address, _abi, signerOrProvider) as IRollupCore;
|
903
|
+
}
|
904
|
+
}
|