@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,719 @@
|
|
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
|
+
ERC20Inbox,
|
8
|
+
ERC20InboxInterface,
|
9
|
+
} from "../../../src/bridge/ERC20Inbox";
|
10
|
+
|
11
|
+
const _abi = [
|
12
|
+
{
|
13
|
+
inputs: [
|
14
|
+
{
|
15
|
+
internalType: "uint256",
|
16
|
+
name: "dataLength",
|
17
|
+
type: "uint256",
|
18
|
+
},
|
19
|
+
{
|
20
|
+
internalType: "uint256",
|
21
|
+
name: "maxDataLength",
|
22
|
+
type: "uint256",
|
23
|
+
},
|
24
|
+
],
|
25
|
+
name: "DataTooLarge",
|
26
|
+
type: "error",
|
27
|
+
},
|
28
|
+
{
|
29
|
+
inputs: [],
|
30
|
+
name: "GasLimitTooLarge",
|
31
|
+
type: "error",
|
32
|
+
},
|
33
|
+
{
|
34
|
+
inputs: [
|
35
|
+
{
|
36
|
+
internalType: "uint256",
|
37
|
+
name: "expected",
|
38
|
+
type: "uint256",
|
39
|
+
},
|
40
|
+
{
|
41
|
+
internalType: "uint256",
|
42
|
+
name: "actual",
|
43
|
+
type: "uint256",
|
44
|
+
},
|
45
|
+
],
|
46
|
+
name: "InsufficientSubmissionCost",
|
47
|
+
type: "error",
|
48
|
+
},
|
49
|
+
{
|
50
|
+
inputs: [
|
51
|
+
{
|
52
|
+
internalType: "uint256",
|
53
|
+
name: "expected",
|
54
|
+
type: "uint256",
|
55
|
+
},
|
56
|
+
{
|
57
|
+
internalType: "uint256",
|
58
|
+
name: "actual",
|
59
|
+
type: "uint256",
|
60
|
+
},
|
61
|
+
],
|
62
|
+
name: "InsufficientValue",
|
63
|
+
type: "error",
|
64
|
+
},
|
65
|
+
{
|
66
|
+
inputs: [],
|
67
|
+
name: "L1Forked",
|
68
|
+
type: "error",
|
69
|
+
},
|
70
|
+
{
|
71
|
+
inputs: [
|
72
|
+
{
|
73
|
+
internalType: "address",
|
74
|
+
name: "origin",
|
75
|
+
type: "address",
|
76
|
+
},
|
77
|
+
],
|
78
|
+
name: "NotAllowedOrigin",
|
79
|
+
type: "error",
|
80
|
+
},
|
81
|
+
{
|
82
|
+
inputs: [],
|
83
|
+
name: "NotOrigin",
|
84
|
+
type: "error",
|
85
|
+
},
|
86
|
+
{
|
87
|
+
inputs: [
|
88
|
+
{
|
89
|
+
internalType: "address",
|
90
|
+
name: "sender",
|
91
|
+
type: "address",
|
92
|
+
},
|
93
|
+
{
|
94
|
+
internalType: "address",
|
95
|
+
name: "rollup",
|
96
|
+
type: "address",
|
97
|
+
},
|
98
|
+
{
|
99
|
+
internalType: "address",
|
100
|
+
name: "owner",
|
101
|
+
type: "address",
|
102
|
+
},
|
103
|
+
],
|
104
|
+
name: "NotRollupOrOwner",
|
105
|
+
type: "error",
|
106
|
+
},
|
107
|
+
{
|
108
|
+
inputs: [
|
109
|
+
{
|
110
|
+
internalType: "address",
|
111
|
+
name: "from",
|
112
|
+
type: "address",
|
113
|
+
},
|
114
|
+
{
|
115
|
+
internalType: "address",
|
116
|
+
name: "to",
|
117
|
+
type: "address",
|
118
|
+
},
|
119
|
+
{
|
120
|
+
internalType: "uint256",
|
121
|
+
name: "l2CallValue",
|
122
|
+
type: "uint256",
|
123
|
+
},
|
124
|
+
{
|
125
|
+
internalType: "uint256",
|
126
|
+
name: "deposit",
|
127
|
+
type: "uint256",
|
128
|
+
},
|
129
|
+
{
|
130
|
+
internalType: "uint256",
|
131
|
+
name: "maxSubmissionCost",
|
132
|
+
type: "uint256",
|
133
|
+
},
|
134
|
+
{
|
135
|
+
internalType: "address",
|
136
|
+
name: "excessFeeRefundAddress",
|
137
|
+
type: "address",
|
138
|
+
},
|
139
|
+
{
|
140
|
+
internalType: "address",
|
141
|
+
name: "callValueRefundAddress",
|
142
|
+
type: "address",
|
143
|
+
},
|
144
|
+
{
|
145
|
+
internalType: "uint256",
|
146
|
+
name: "gasLimit",
|
147
|
+
type: "uint256",
|
148
|
+
},
|
149
|
+
{
|
150
|
+
internalType: "uint256",
|
151
|
+
name: "maxFeePerGas",
|
152
|
+
type: "uint256",
|
153
|
+
},
|
154
|
+
{
|
155
|
+
internalType: "bytes",
|
156
|
+
name: "data",
|
157
|
+
type: "bytes",
|
158
|
+
},
|
159
|
+
],
|
160
|
+
name: "RetryableData",
|
161
|
+
type: "error",
|
162
|
+
},
|
163
|
+
{
|
164
|
+
anonymous: false,
|
165
|
+
inputs: [
|
166
|
+
{
|
167
|
+
indexed: true,
|
168
|
+
internalType: "address",
|
169
|
+
name: "user",
|
170
|
+
type: "address",
|
171
|
+
},
|
172
|
+
{
|
173
|
+
indexed: false,
|
174
|
+
internalType: "bool",
|
175
|
+
name: "val",
|
176
|
+
type: "bool",
|
177
|
+
},
|
178
|
+
],
|
179
|
+
name: "AllowListAddressSet",
|
180
|
+
type: "event",
|
181
|
+
},
|
182
|
+
{
|
183
|
+
anonymous: false,
|
184
|
+
inputs: [
|
185
|
+
{
|
186
|
+
indexed: false,
|
187
|
+
internalType: "bool",
|
188
|
+
name: "isEnabled",
|
189
|
+
type: "bool",
|
190
|
+
},
|
191
|
+
],
|
192
|
+
name: "AllowListEnabledUpdated",
|
193
|
+
type: "event",
|
194
|
+
},
|
195
|
+
{
|
196
|
+
anonymous: false,
|
197
|
+
inputs: [
|
198
|
+
{
|
199
|
+
indexed: true,
|
200
|
+
internalType: "uint256",
|
201
|
+
name: "messageNum",
|
202
|
+
type: "uint256",
|
203
|
+
},
|
204
|
+
{
|
205
|
+
indexed: false,
|
206
|
+
internalType: "bytes",
|
207
|
+
name: "data",
|
208
|
+
type: "bytes",
|
209
|
+
},
|
210
|
+
],
|
211
|
+
name: "InboxMessageDelivered",
|
212
|
+
type: "event",
|
213
|
+
},
|
214
|
+
{
|
215
|
+
anonymous: false,
|
216
|
+
inputs: [
|
217
|
+
{
|
218
|
+
indexed: true,
|
219
|
+
internalType: "uint256",
|
220
|
+
name: "messageNum",
|
221
|
+
type: "uint256",
|
222
|
+
},
|
223
|
+
],
|
224
|
+
name: "InboxMessageDeliveredFromOrigin",
|
225
|
+
type: "event",
|
226
|
+
},
|
227
|
+
{
|
228
|
+
anonymous: false,
|
229
|
+
inputs: [
|
230
|
+
{
|
231
|
+
indexed: false,
|
232
|
+
internalType: "address",
|
233
|
+
name: "account",
|
234
|
+
type: "address",
|
235
|
+
},
|
236
|
+
],
|
237
|
+
name: "Paused",
|
238
|
+
type: "event",
|
239
|
+
},
|
240
|
+
{
|
241
|
+
anonymous: false,
|
242
|
+
inputs: [
|
243
|
+
{
|
244
|
+
indexed: false,
|
245
|
+
internalType: "address",
|
246
|
+
name: "account",
|
247
|
+
type: "address",
|
248
|
+
},
|
249
|
+
],
|
250
|
+
name: "Unpaused",
|
251
|
+
type: "event",
|
252
|
+
},
|
253
|
+
{
|
254
|
+
inputs: [],
|
255
|
+
name: "allowListEnabled",
|
256
|
+
outputs: [
|
257
|
+
{
|
258
|
+
internalType: "bool",
|
259
|
+
name: "",
|
260
|
+
type: "bool",
|
261
|
+
},
|
262
|
+
],
|
263
|
+
stateMutability: "view",
|
264
|
+
type: "function",
|
265
|
+
},
|
266
|
+
{
|
267
|
+
inputs: [],
|
268
|
+
name: "bridge",
|
269
|
+
outputs: [
|
270
|
+
{
|
271
|
+
internalType: "contract IBridge",
|
272
|
+
name: "",
|
273
|
+
type: "address",
|
274
|
+
},
|
275
|
+
],
|
276
|
+
stateMutability: "view",
|
277
|
+
type: "function",
|
278
|
+
},
|
279
|
+
{
|
280
|
+
inputs: [
|
281
|
+
{
|
282
|
+
internalType: "uint256",
|
283
|
+
name: "",
|
284
|
+
type: "uint256",
|
285
|
+
},
|
286
|
+
{
|
287
|
+
internalType: "uint256",
|
288
|
+
name: "",
|
289
|
+
type: "uint256",
|
290
|
+
},
|
291
|
+
],
|
292
|
+
name: "calculateRetryableSubmissionFee",
|
293
|
+
outputs: [
|
294
|
+
{
|
295
|
+
internalType: "uint256",
|
296
|
+
name: "",
|
297
|
+
type: "uint256",
|
298
|
+
},
|
299
|
+
],
|
300
|
+
stateMutability: "pure",
|
301
|
+
type: "function",
|
302
|
+
},
|
303
|
+
{
|
304
|
+
inputs: [
|
305
|
+
{
|
306
|
+
internalType: "address",
|
307
|
+
name: "to",
|
308
|
+
type: "address",
|
309
|
+
},
|
310
|
+
{
|
311
|
+
internalType: "uint256",
|
312
|
+
name: "l2CallValue",
|
313
|
+
type: "uint256",
|
314
|
+
},
|
315
|
+
{
|
316
|
+
internalType: "uint256",
|
317
|
+
name: "maxSubmissionCost",
|
318
|
+
type: "uint256",
|
319
|
+
},
|
320
|
+
{
|
321
|
+
internalType: "address",
|
322
|
+
name: "excessFeeRefundAddress",
|
323
|
+
type: "address",
|
324
|
+
},
|
325
|
+
{
|
326
|
+
internalType: "address",
|
327
|
+
name: "callValueRefundAddress",
|
328
|
+
type: "address",
|
329
|
+
},
|
330
|
+
{
|
331
|
+
internalType: "uint256",
|
332
|
+
name: "gasLimit",
|
333
|
+
type: "uint256",
|
334
|
+
},
|
335
|
+
{
|
336
|
+
internalType: "uint256",
|
337
|
+
name: "maxFeePerGas",
|
338
|
+
type: "uint256",
|
339
|
+
},
|
340
|
+
{
|
341
|
+
internalType: "uint256",
|
342
|
+
name: "tokenTotalFeeAmount",
|
343
|
+
type: "uint256",
|
344
|
+
},
|
345
|
+
{
|
346
|
+
internalType: "bytes",
|
347
|
+
name: "data",
|
348
|
+
type: "bytes",
|
349
|
+
},
|
350
|
+
],
|
351
|
+
name: "createRetryableTicket",
|
352
|
+
outputs: [
|
353
|
+
{
|
354
|
+
internalType: "uint256",
|
355
|
+
name: "",
|
356
|
+
type: "uint256",
|
357
|
+
},
|
358
|
+
],
|
359
|
+
stateMutability: "nonpayable",
|
360
|
+
type: "function",
|
361
|
+
},
|
362
|
+
{
|
363
|
+
inputs: [
|
364
|
+
{
|
365
|
+
internalType: "uint256",
|
366
|
+
name: "amount",
|
367
|
+
type: "uint256",
|
368
|
+
},
|
369
|
+
],
|
370
|
+
name: "depositERC20",
|
371
|
+
outputs: [
|
372
|
+
{
|
373
|
+
internalType: "uint256",
|
374
|
+
name: "",
|
375
|
+
type: "uint256",
|
376
|
+
},
|
377
|
+
],
|
378
|
+
stateMutability: "nonpayable",
|
379
|
+
type: "function",
|
380
|
+
},
|
381
|
+
{
|
382
|
+
inputs: [
|
383
|
+
{
|
384
|
+
internalType: "contract IBridge",
|
385
|
+
name: "_bridge",
|
386
|
+
type: "address",
|
387
|
+
},
|
388
|
+
{
|
389
|
+
internalType: "contract ISequencerInbox",
|
390
|
+
name: "_sequencerInbox",
|
391
|
+
type: "address",
|
392
|
+
},
|
393
|
+
],
|
394
|
+
name: "initialize",
|
395
|
+
outputs: [],
|
396
|
+
stateMutability: "nonpayable",
|
397
|
+
type: "function",
|
398
|
+
},
|
399
|
+
{
|
400
|
+
inputs: [
|
401
|
+
{
|
402
|
+
internalType: "address",
|
403
|
+
name: "",
|
404
|
+
type: "address",
|
405
|
+
},
|
406
|
+
],
|
407
|
+
name: "isAllowed",
|
408
|
+
outputs: [
|
409
|
+
{
|
410
|
+
internalType: "bool",
|
411
|
+
name: "",
|
412
|
+
type: "bool",
|
413
|
+
},
|
414
|
+
],
|
415
|
+
stateMutability: "view",
|
416
|
+
type: "function",
|
417
|
+
},
|
418
|
+
{
|
419
|
+
inputs: [],
|
420
|
+
name: "pause",
|
421
|
+
outputs: [],
|
422
|
+
stateMutability: "nonpayable",
|
423
|
+
type: "function",
|
424
|
+
},
|
425
|
+
{
|
426
|
+
inputs: [],
|
427
|
+
name: "paused",
|
428
|
+
outputs: [
|
429
|
+
{
|
430
|
+
internalType: "bool",
|
431
|
+
name: "",
|
432
|
+
type: "bool",
|
433
|
+
},
|
434
|
+
],
|
435
|
+
stateMutability: "view",
|
436
|
+
type: "function",
|
437
|
+
},
|
438
|
+
{
|
439
|
+
inputs: [
|
440
|
+
{
|
441
|
+
internalType: "uint256",
|
442
|
+
name: "gasLimit",
|
443
|
+
type: "uint256",
|
444
|
+
},
|
445
|
+
{
|
446
|
+
internalType: "uint256",
|
447
|
+
name: "maxFeePerGas",
|
448
|
+
type: "uint256",
|
449
|
+
},
|
450
|
+
{
|
451
|
+
internalType: "address",
|
452
|
+
name: "to",
|
453
|
+
type: "address",
|
454
|
+
},
|
455
|
+
{
|
456
|
+
internalType: "uint256",
|
457
|
+
name: "value",
|
458
|
+
type: "uint256",
|
459
|
+
},
|
460
|
+
{
|
461
|
+
internalType: "bytes",
|
462
|
+
name: "data",
|
463
|
+
type: "bytes",
|
464
|
+
},
|
465
|
+
],
|
466
|
+
name: "sendContractTransaction",
|
467
|
+
outputs: [
|
468
|
+
{
|
469
|
+
internalType: "uint256",
|
470
|
+
name: "",
|
471
|
+
type: "uint256",
|
472
|
+
},
|
473
|
+
],
|
474
|
+
stateMutability: "nonpayable",
|
475
|
+
type: "function",
|
476
|
+
},
|
477
|
+
{
|
478
|
+
inputs: [
|
479
|
+
{
|
480
|
+
internalType: "bytes",
|
481
|
+
name: "messageData",
|
482
|
+
type: "bytes",
|
483
|
+
},
|
484
|
+
],
|
485
|
+
name: "sendL2Message",
|
486
|
+
outputs: [
|
487
|
+
{
|
488
|
+
internalType: "uint256",
|
489
|
+
name: "",
|
490
|
+
type: "uint256",
|
491
|
+
},
|
492
|
+
],
|
493
|
+
stateMutability: "nonpayable",
|
494
|
+
type: "function",
|
495
|
+
},
|
496
|
+
{
|
497
|
+
inputs: [
|
498
|
+
{
|
499
|
+
internalType: "bytes",
|
500
|
+
name: "messageData",
|
501
|
+
type: "bytes",
|
502
|
+
},
|
503
|
+
],
|
504
|
+
name: "sendL2MessageFromOrigin",
|
505
|
+
outputs: [
|
506
|
+
{
|
507
|
+
internalType: "uint256",
|
508
|
+
name: "",
|
509
|
+
type: "uint256",
|
510
|
+
},
|
511
|
+
],
|
512
|
+
stateMutability: "nonpayable",
|
513
|
+
type: "function",
|
514
|
+
},
|
515
|
+
{
|
516
|
+
inputs: [
|
517
|
+
{
|
518
|
+
internalType: "uint256",
|
519
|
+
name: "gasLimit",
|
520
|
+
type: "uint256",
|
521
|
+
},
|
522
|
+
{
|
523
|
+
internalType: "uint256",
|
524
|
+
name: "maxFeePerGas",
|
525
|
+
type: "uint256",
|
526
|
+
},
|
527
|
+
{
|
528
|
+
internalType: "uint256",
|
529
|
+
name: "nonce",
|
530
|
+
type: "uint256",
|
531
|
+
},
|
532
|
+
{
|
533
|
+
internalType: "address",
|
534
|
+
name: "to",
|
535
|
+
type: "address",
|
536
|
+
},
|
537
|
+
{
|
538
|
+
internalType: "uint256",
|
539
|
+
name: "value",
|
540
|
+
type: "uint256",
|
541
|
+
},
|
542
|
+
{
|
543
|
+
internalType: "bytes",
|
544
|
+
name: "data",
|
545
|
+
type: "bytes",
|
546
|
+
},
|
547
|
+
],
|
548
|
+
name: "sendUnsignedTransaction",
|
549
|
+
outputs: [
|
550
|
+
{
|
551
|
+
internalType: "uint256",
|
552
|
+
name: "",
|
553
|
+
type: "uint256",
|
554
|
+
},
|
555
|
+
],
|
556
|
+
stateMutability: "nonpayable",
|
557
|
+
type: "function",
|
558
|
+
},
|
559
|
+
{
|
560
|
+
inputs: [],
|
561
|
+
name: "sequencerInbox",
|
562
|
+
outputs: [
|
563
|
+
{
|
564
|
+
internalType: "contract ISequencerInbox",
|
565
|
+
name: "",
|
566
|
+
type: "address",
|
567
|
+
},
|
568
|
+
],
|
569
|
+
stateMutability: "view",
|
570
|
+
type: "function",
|
571
|
+
},
|
572
|
+
{
|
573
|
+
inputs: [
|
574
|
+
{
|
575
|
+
internalType: "address[]",
|
576
|
+
name: "user",
|
577
|
+
type: "address[]",
|
578
|
+
},
|
579
|
+
{
|
580
|
+
internalType: "bool[]",
|
581
|
+
name: "val",
|
582
|
+
type: "bool[]",
|
583
|
+
},
|
584
|
+
],
|
585
|
+
name: "setAllowList",
|
586
|
+
outputs: [],
|
587
|
+
stateMutability: "nonpayable",
|
588
|
+
type: "function",
|
589
|
+
},
|
590
|
+
{
|
591
|
+
inputs: [
|
592
|
+
{
|
593
|
+
internalType: "bool",
|
594
|
+
name: "_allowListEnabled",
|
595
|
+
type: "bool",
|
596
|
+
},
|
597
|
+
],
|
598
|
+
name: "setAllowListEnabled",
|
599
|
+
outputs: [],
|
600
|
+
stateMutability: "nonpayable",
|
601
|
+
type: "function",
|
602
|
+
},
|
603
|
+
{
|
604
|
+
inputs: [],
|
605
|
+
name: "unpause",
|
606
|
+
outputs: [],
|
607
|
+
stateMutability: "nonpayable",
|
608
|
+
type: "function",
|
609
|
+
},
|
610
|
+
{
|
611
|
+
inputs: [
|
612
|
+
{
|
613
|
+
internalType: "address",
|
614
|
+
name: "to",
|
615
|
+
type: "address",
|
616
|
+
},
|
617
|
+
{
|
618
|
+
internalType: "uint256",
|
619
|
+
name: "l2CallValue",
|
620
|
+
type: "uint256",
|
621
|
+
},
|
622
|
+
{
|
623
|
+
internalType: "uint256",
|
624
|
+
name: "maxSubmissionCost",
|
625
|
+
type: "uint256",
|
626
|
+
},
|
627
|
+
{
|
628
|
+
internalType: "address",
|
629
|
+
name: "excessFeeRefundAddress",
|
630
|
+
type: "address",
|
631
|
+
},
|
632
|
+
{
|
633
|
+
internalType: "address",
|
634
|
+
name: "callValueRefundAddress",
|
635
|
+
type: "address",
|
636
|
+
},
|
637
|
+
{
|
638
|
+
internalType: "uint256",
|
639
|
+
name: "gasLimit",
|
640
|
+
type: "uint256",
|
641
|
+
},
|
642
|
+
{
|
643
|
+
internalType: "uint256",
|
644
|
+
name: "maxFeePerGas",
|
645
|
+
type: "uint256",
|
646
|
+
},
|
647
|
+
{
|
648
|
+
internalType: "uint256",
|
649
|
+
name: "tokenTotalFeeAmount",
|
650
|
+
type: "uint256",
|
651
|
+
},
|
652
|
+
{
|
653
|
+
internalType: "bytes",
|
654
|
+
name: "data",
|
655
|
+
type: "bytes",
|
656
|
+
},
|
657
|
+
],
|
658
|
+
name: "unsafeCreateRetryableTicket",
|
659
|
+
outputs: [
|
660
|
+
{
|
661
|
+
internalType: "uint256",
|
662
|
+
name: "",
|
663
|
+
type: "uint256",
|
664
|
+
},
|
665
|
+
],
|
666
|
+
stateMutability: "nonpayable",
|
667
|
+
type: "function",
|
668
|
+
},
|
669
|
+
];
|
670
|
+
|
671
|
+
const _bytecode =
|
672
|
+
"0x60c0604052306080524660a05234801561001857600080fd5b5060805160a0516122ab610045600039600081816102f90152610b8c015260006105d501526122ab6000f3fe608060405234801561001057600080fd5b50600436106100f65760003560e01c8063a66b327d11610092578063a66b327d146101ae578063b75436bb146101c4578063b79092fd146101d7578063b9b9a688146101ea578063babcc539146101fd578063e3de72a514610220578063e78cea9214610233578063ee35f32714610253578063efeadb6d1461026657600080fd5b80631fe927cf146100fb57806322bd5c1c146101215780633f4ba83a14610145578063485cc9551461014f5780635075788b14610162578063549e8426146101755780635c975abb146101885780638456cb59146101935780638a631aa61461019b575b600080fd5b61010e610109366004611a95565b610279565b6040519081526020015b60405180910390f35b60665461013590600160a01b900460ff1681565b6040519015158152602001610118565b61014d6103e2565b005b61014d61015d366004611aeb565b610522565b61010e610170366004611b24565b610782565b61010e610183366004611ba0565b61086f565b60335460ff16610135565b61014d610904565b61010e6101a9366004611c4f565b610a41565b61010e6101bc366004611cc1565b600092915050565b61010e6101d2366004611a95565b610b15565b61010e6101e5366004611ce3565b610c12565b61010e6101f8366004611ba0565b610cf2565b61013561020b366004611cfc565b60676020526000908152604090205460ff1681565b61014d61022e366004611e04565b610d78565b606554610246906001600160a01b031681565b6040516101189190611ec5565b606654610246906001600160a01b031681565b61014d610274366004611ed9565b610ff8565b600061028760335460ff1690565b156102ad5760405162461bcd60e51b81526004016102a490611ef6565b60405180910390fd5b606654600160a01b900460ff1680156102d657503260009081526067602052604090205460ff16155b156102f65732604051630f51ed7160e41b81526004016102a49190611ec5565b467f0000000000000000000000000000000000000000000000000000000000000000146103365760405163c6ea680360e01b815260040160405180910390fd5b3332146103565760405163feb3d07160e01b815260040160405180910390fd5b6201cccc82111561038657604051634634691b60e01b8152600481018390526201cccc60248201526044016102a4565b60006103ad600333868660405161039e929190611f20565b604051809103902060006111d7565b60405190915081907fab532385be8f1005a4b6ba8fa20a2245facb346134ac739fe9a5198dc1580b9c90600090a29392505050565b6065546040805163cb23bcb560e01b815290516000926001600160a01b03169163cb23bcb5916004808301926020929190829003018186803b15801561042757600080fd5b505afa15801561043b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061045f9190611f30565b9050336001600160a01b03821614610517576000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156104ac57600080fd5b505afa1580156104c0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e49190611f30565b9050336001600160a01b0382161461051557338282604051630739600760e01b81526004016102a493929190611f4d565b505b61051f6113be565b50565b600054610100900460ff1661053d5760005460ff1615610545565b61054561144b565b6105a85760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084016102a4565b600054610100900460ff161580156105ca576000805461ffff19166101011790555b306001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614156106585760405162461bcd60e51b815260206004820152602c60248201527f46756e6374696f6e206d7573742062652063616c6c6564207468726f7567682060448201526b19195b1959d85d1958d85b1b60a21b60648201526084016102a4565b610662838361145c565b60655460408051631c2eb17b60e31b815290516000926001600160a01b03169163e1758bd891600480830192602092919082900301818787803b1580156106a857600080fd5b505af11580156106bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106e09190611f30565b60655460405163095ea7b360e01b81526001600160a01b039182166004820152600019602482015291925082169063095ea7b390604401602060405180830381600087803b15801561073157600080fd5b505af1158015610745573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107699190611f70565b5050801561077d576000805461ff00191690555b505050565b600061079060335460ff1690565b156107ad5760405162461bcd60e51b81526004016102a490611ef6565b606654600160a01b900460ff1680156107d657503260009081526067602052604090205460ff16155b156107f65732604051630f51ed7160e41b81526004016102a49190611ec5565b6001600160401b0388111561081e5760405163107c527b60e01b815260040160405180910390fd5b61086360033360008b8b8b8b6001600160a01b03168b8b8b60405160200161084d989796959493929190611f8d565b60405160208183030381529060405260006114c8565b98975050505050505050565b600061087d60335460ff1690565b1561089a5760405162461bcd60e51b81526004016102a490611ef6565b606654600160a01b900460ff1680156108c357503260009081526067602052604090205460ff16155b156108e35732604051630f51ed7160e41b81526004016102a49190611ec5565b6108f58b8b8b8b8b8b8b8b8b8b611556565b9b9a5050505050505050505050565b6065546040805163cb23bcb560e01b815290516000926001600160a01b03169163cb23bcb5916004808301926020929190829003018186803b15801561094957600080fd5b505afa15801561095d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109819190611f30565b9050336001600160a01b03821614610a39576000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156109ce57600080fd5b505afa1580156109e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a069190611f30565b9050336001600160a01b03821614610a3757338282604051630739600760e01b81526004016102a493929190611f4d565b505b61051f61160a565b6000610a4f60335460ff1690565b15610a6c5760405162461bcd60e51b81526004016102a490611ef6565b606654600160a01b900460ff168015610a9557503260009081526067602052604090205460ff16155b15610ab55732604051630f51ed7160e41b81526004016102a49190611ec5565b6001600160401b03871115610add5760405163107c527b60e01b815260040160405180910390fd5b610b0a60033360018a8a8a6001600160a01b03168a8a8a60405160200161084d9796959493929190611fd3565b979650505050505050565b6000610b2360335460ff1690565b15610b405760405162461bcd60e51b81526004016102a490611ef6565b606654600160a01b900460ff168015610b6957503260009081526067602052604090205460ff16155b15610b895732604051630f51ed7160e41b81526004016102a49190611ec5565b467f000000000000000000000000000000000000000000000000000000000000000014610bc95760405163c6ea680360e01b815260040160405180910390fd5b610c0b60033385858080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525092506114c8915050565b9392505050565b6000610c2060335460ff1690565b15610c3d5760405162461bcd60e51b81526004016102a490611ef6565b606654600160a01b900460ff168015610c6657503260009081526067602052604090205460ff16155b15610c865732604051630f51ed7160e41b81526004016102a49190611ec5565b33610c9081611662565b80610c9b5750323314155b15610cae57503361111161111160901b01015b6040516bffffffffffffffffffffffff19606083901b16602082015260348101849052610c0b90600c903390605401604051602081830303815290604052866114c8565b6000610d0060335460ff1690565b15610d1d5760405162461bcd60e51b81526004016102a490611ef6565b606654600160a01b900460ff168015610d4657503260009081526067602052604090205460ff16155b15610d665732604051630f51ed7160e41b81526004016102a49190611ec5565b6108f58b8b8b8b8b8b8b8b8b8b611671565b6065546040805163cb23bcb560e01b815290516000926001600160a01b03169163cb23bcb5916004808301926020929190829003018186803b158015610dbd57600080fd5b505afa158015610dd1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df59190611f30565b9050336001600160a01b03821614610ead576000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610e4257600080fd5b505afa158015610e56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e7a9190611f30565b9050336001600160a01b03821614610eab57338282604051630739600760e01b81526004016102a493929190611f4d565b505b8151835114610eee5760405162461bcd60e51b815260206004820152600d60248201526c1253959053125117d253941555609a1b60448201526064016102a4565b60005b8351811015610ff257828181518110610f0c57610f0c612012565b602002602001015160676000868481518110610f2a57610f2a612012565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a81548160ff021916908315150217905550838181518110610f7b57610f7b612012565b60200260200101516001600160a01b03167fd9739f45a01ce092c5cdb3d68f63d63d21676b1c6c0b4f9cbc6be4cf5449595a848381518110610fbf57610fbf612012565b6020026020010151604051610fd8911515815260200190565b60405180910390a280610fea8161203e565b915050610ef1565b50505050565b6065546040805163cb23bcb560e01b815290516000926001600160a01b03169163cb23bcb5916004808301926020929190829003018186803b15801561103d57600080fd5b505afa158015611051573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110759190611f30565b9050336001600160a01b0382161461112d576000816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156110c257600080fd5b505afa1580156110d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110fa9190611f30565b9050336001600160a01b0382161461112b57338282604051630739600760e01b81526004016102a493929190611f4d565b505b606660149054906101000a900460ff161515821515141561117e5760405162461bcd60e51b815260206004820152600b60248201526a1053149150511657d4d15560aa1b60448201526064016102a4565b60668054831515600160a01b0260ff60a01b199091161790556040517f16435b45f7482047f839a6a19d291442627200f52cad2803c595150d0d440eb3906111cb90841515815260200190565b60405180910390a15050565b600080606560009054906101000a90046001600160a01b03166001600160a01b031663e1758bd86040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561122a57600080fd5b505af115801561123e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112629190611f30565b90506000816001600160a01b03166370a08231306040518263ffffffff1660e01b81526004016112929190611ec5565b60206040518083038186803b1580156112aa57600080fd5b505afa1580156112be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112e29190612059565b9050838110156113115760006112f88286612072565b905061130f6001600160a01b03841633308461174e565b505b6065546001600160a01b03166375d81e258861111161111160901b0189016040516001600160e01b031960e085901b16815260ff90921660048301526001600160a01b031660248201526044810188905260648101879052608401602060405180830381600087803b15801561138657600080fd5b505af115801561139a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b0a9190612059565b60335460ff166114075760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016102a4565b6033805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516114419190611ec5565b60405180910390a1565b600061145630611662565b15905090565b600054610100900460ff166114835760405162461bcd60e51b81526004016102a490612089565b606580546001600160a01b038085166001600160a01b031990921691909117909155606680546001600160a81b0319169183169190911790556114c46117a8565b5050565b60006201cccc835111156114fe578251604051634634691b60e01b815260048101919091526201cccc60248201526044016102a4565b600061151386868680519060200120866111d7565b9050807fff64905f73a67fb594e0f940a8075a860db489ad991e032f48c81123eb52d60b85604051611545919061212c565b60405180910390a295945050505050565b6000611562858761213f565b61156c8b8b61215e565b611576919061215e565b8410156115bf57611587858761213f565b6115918b8b61215e565b61159b919061215e565b604051631c102d6360e21b81526004810191909152602481018590526044016102a4565b6115c888611662565b156115dc5761111161111160901b01880197505b6115e587611662565b15610d665761111161111160901b01870196506108f58b8b8b8b8b8b8b8b8b8b611671565b60335460ff161561162d5760405162461bcd60e51b81526004016102a490611ef6565b6033805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586114343390565b6001600160a01b03163b151590565b600085600114806116825750846001145b156116b657338b8b868c8c8c8c8c8b8b6040516307c266e360e01b81526004016102a49b9a99989796959493929190612176565b6001600160401b038611156116de5760405163107c527b60e01b815260040160405180910390fd5b600061173e6009338e6001600160a01b03168e898f8f6001600160a01b03168f6001600160a01b03168f8f8e8e90508f8f6040516020016117299b9a999897969594939291906121ff565b604051602081830303815290604052886114c8565b9c9b505050505050505050505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b179052610ff29085906117d9565b600054610100900460ff166117cf5760405162461bcd60e51b81526004016102a490612089565b6117d76118ab565b565b600061182e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166118de9092919063ffffffff16565b80519091501561077d578080602001905181019061184c9190611f70565b61077d5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016102a4565b600054610100900460ff166118d25760405162461bcd60e51b81526004016102a490612089565b6033805460ff19169055565b60606118ed84846000856118f5565b949350505050565b6060824710156119565760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016102a4565b61195f85611662565b6119ab5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016102a4565b600080866001600160a01b031685876040516119c79190612259565b60006040518083038185875af1925050503d8060008114611a04576040519150601f19603f3d011682016040523d82523d6000602084013e611a09565b606091505b5091509150610b0a82828660608315611a23575081610c0b565b825115611a335782518084602001fd5b8160405162461bcd60e51b81526004016102a4919061212c565b60008083601f840112611a5f57600080fd5b5081356001600160401b03811115611a7657600080fd5b602083019150836020828501011115611a8e57600080fd5b9250929050565b60008060208385031215611aa857600080fd5b82356001600160401b03811115611abe57600080fd5b611aca85828601611a4d565b90969095509350505050565b6001600160a01b038116811461051f57600080fd5b60008060408385031215611afe57600080fd5b8235611b0981611ad6565b91506020830135611b1981611ad6565b809150509250929050565b600080600080600080600060c0888a031215611b3f57600080fd5b8735965060208801359550604088013594506060880135611b5f81611ad6565b93506080880135925060a08801356001600160401b03811115611b8157600080fd5b611b8d8a828b01611a4d565b989b979a50959850939692959293505050565b6000806000806000806000806000806101208b8d031215611bc057600080fd5b8a35611bcb81611ad6565b995060208b0135985060408b0135975060608b0135611be981611ad6565b965060808b0135611bf981611ad6565b955060a08b0135945060c08b0135935060e08b013592506101008b01356001600160401b03811115611c2a57600080fd5b611c368d828e01611a4d565b915080935050809150509295989b9194979a5092959850565b60008060008060008060a08789031215611c6857600080fd5b86359550602087013594506040870135611c8181611ad6565b93506060870135925060808701356001600160401b03811115611ca357600080fd5b611caf89828a01611a4d565b979a9699509497509295939492505050565b60008060408385031215611cd457600080fd5b50508035926020909101359150565b600060208284031215611cf557600080fd5b5035919050565b600060208284031215611d0e57600080fd5b8135610c0b81611ad6565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715611d5757611d57611d19565b604052919050565b60006001600160401b03821115611d7857611d78611d19565b5060051b60200190565b801515811461051f57600080fd5b600082601f830112611da157600080fd5b81356020611db6611db183611d5f565b611d2f565b82815260059290921b84018101918181019086841115611dd557600080fd5b8286015b84811015611df9578035611dec81611d82565b8352918301918301611dd9565b509695505050505050565b60008060408385031215611e1757600080fd5b82356001600160401b0380821115611e2e57600080fd5b818501915085601f830112611e4257600080fd5b81356020611e52611db183611d5f565b82815260059290921b84018101918181019089841115611e7157600080fd5b948201945b83861015611e98578535611e8981611ad6565b82529482019490820190611e76565b96505086013592505080821115611eae57600080fd5b50611ebb85828601611d90565b9150509250929050565b6001600160a01b0391909116815260200190565b600060208284031215611eeb57600080fd5b8135610c0b81611d82565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b8183823760009101908152919050565b600060208284031215611f4257600080fd5b8151610c0b81611ad6565b6001600160a01b0393841681529183166020830152909116604082015260600190565b600060208284031215611f8257600080fd5b8151610c0b81611d82565b60ff60f81b8960f81b168152876001820152866021820152856041820152846061820152836081820152818360a18301376000910160a101908152979650505050505050565b60ff60f81b8860f81b16815286600182015285602182015284604182015283606182015281836081830137600091016081019081529695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561205257612052612028565b5060010190565b60006020828403121561206b57600080fd5b5051919050565b60008282101561208457612084612028565b500390565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b60005b838110156120ef5781810151838201526020016120d7565b83811115610ff25750506000910152565b600081518084526121188160208601602086016120d4565b601f01601f19169290920160200192915050565b602081526000610c0b6020830184612100565b600081600019048311821515161561215957612159612028565b500290565b6000821982111561217157612171612028565b500190565b6001600160a01b038c811682528b81166020830152604082018b9052606082018a90526080820189905287811660a0830152861660c082015260e0810185905261010081018490526101406101208201819052810182905260006101608385828501376000838501820152601f909301601f19169091019091019b9a5050505050505050505050565b8b81528a60208201528960408201528860608201528760808201528660a08201528560c08201528460e08201528361010082015260006101208385828501376000929093019092019081529b9a5050505050505050505050565b6000825161226b8184602087016120d4565b919091019291505056fea264697066735822122051f8791e1522b257c3f5394b74e992c820eb8dd6ff20e81a30068992f0cd456864736f6c63430008090033";
|
673
|
+
|
674
|
+
type ERC20InboxConstructorParams =
|
675
|
+
| [signer?: Signer]
|
676
|
+
| ConstructorParameters<typeof ContractFactory>;
|
677
|
+
|
678
|
+
const isSuperArgs = (
|
679
|
+
xs: ERC20InboxConstructorParams
|
680
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
681
|
+
|
682
|
+
export class ERC20Inbox__factory extends ContractFactory {
|
683
|
+
constructor(...args: ERC20InboxConstructorParams) {
|
684
|
+
if (isSuperArgs(args)) {
|
685
|
+
super(...args);
|
686
|
+
} else {
|
687
|
+
super(_abi, _bytecode, args[0]);
|
688
|
+
}
|
689
|
+
}
|
690
|
+
|
691
|
+
override deploy(
|
692
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
693
|
+
): Promise<ERC20Inbox> {
|
694
|
+
return super.deploy(overrides || {}) as Promise<ERC20Inbox>;
|
695
|
+
}
|
696
|
+
override getDeployTransaction(
|
697
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
698
|
+
): TransactionRequest {
|
699
|
+
return super.getDeployTransaction(overrides || {});
|
700
|
+
}
|
701
|
+
override attach(address: string): ERC20Inbox {
|
702
|
+
return super.attach(address) as ERC20Inbox;
|
703
|
+
}
|
704
|
+
override connect(signer: Signer): ERC20Inbox__factory {
|
705
|
+
return super.connect(signer) as ERC20Inbox__factory;
|
706
|
+
}
|
707
|
+
|
708
|
+
static readonly bytecode = _bytecode;
|
709
|
+
static readonly abi = _abi;
|
710
|
+
static createInterface(): ERC20InboxInterface {
|
711
|
+
return new utils.Interface(_abi) as ERC20InboxInterface;
|
712
|
+
}
|
713
|
+
static connect(
|
714
|
+
address: string,
|
715
|
+
signerOrProvider: Signer | Provider
|
716
|
+
): ERC20Inbox {
|
717
|
+
return new Contract(address, _abi, signerOrProvider) as ERC20Inbox;
|
718
|
+
}
|
719
|
+
}
|