@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,146 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import {
|
5
|
+
Signer,
|
6
|
+
utils,
|
7
|
+
Contract,
|
8
|
+
ContractFactory,
|
9
|
+
PayableOverrides,
|
10
|
+
BytesLike,
|
11
|
+
} from "ethers";
|
12
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
13
|
+
import type {
|
14
|
+
ERC1967Proxy,
|
15
|
+
ERC1967ProxyInterface,
|
16
|
+
} from "../../../../../@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy";
|
17
|
+
|
18
|
+
const _abi = [
|
19
|
+
{
|
20
|
+
inputs: [
|
21
|
+
{
|
22
|
+
internalType: "address",
|
23
|
+
name: "_logic",
|
24
|
+
type: "address",
|
25
|
+
},
|
26
|
+
{
|
27
|
+
internalType: "bytes",
|
28
|
+
name: "_data",
|
29
|
+
type: "bytes",
|
30
|
+
},
|
31
|
+
],
|
32
|
+
stateMutability: "payable",
|
33
|
+
type: "constructor",
|
34
|
+
},
|
35
|
+
{
|
36
|
+
anonymous: false,
|
37
|
+
inputs: [
|
38
|
+
{
|
39
|
+
indexed: false,
|
40
|
+
internalType: "address",
|
41
|
+
name: "previousAdmin",
|
42
|
+
type: "address",
|
43
|
+
},
|
44
|
+
{
|
45
|
+
indexed: false,
|
46
|
+
internalType: "address",
|
47
|
+
name: "newAdmin",
|
48
|
+
type: "address",
|
49
|
+
},
|
50
|
+
],
|
51
|
+
name: "AdminChanged",
|
52
|
+
type: "event",
|
53
|
+
},
|
54
|
+
{
|
55
|
+
anonymous: false,
|
56
|
+
inputs: [
|
57
|
+
{
|
58
|
+
indexed: true,
|
59
|
+
internalType: "address",
|
60
|
+
name: "beacon",
|
61
|
+
type: "address",
|
62
|
+
},
|
63
|
+
],
|
64
|
+
name: "BeaconUpgraded",
|
65
|
+
type: "event",
|
66
|
+
},
|
67
|
+
{
|
68
|
+
anonymous: false,
|
69
|
+
inputs: [
|
70
|
+
{
|
71
|
+
indexed: true,
|
72
|
+
internalType: "address",
|
73
|
+
name: "implementation",
|
74
|
+
type: "address",
|
75
|
+
},
|
76
|
+
],
|
77
|
+
name: "Upgraded",
|
78
|
+
type: "event",
|
79
|
+
},
|
80
|
+
{
|
81
|
+
stateMutability: "payable",
|
82
|
+
type: "fallback",
|
83
|
+
},
|
84
|
+
{
|
85
|
+
stateMutability: "payable",
|
86
|
+
type: "receive",
|
87
|
+
},
|
88
|
+
];
|
89
|
+
|
90
|
+
const _bytecode =
|
91
|
+
"0x60806040526040516107af3803806107af83398101604081905261002291610349565b61004d60017f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbd610417565b600080516020610768833981519152146100695761006961043c565b6100758282600061007c565b50506104a1565b610085836100b2565b6000825111806100925750805b156100ad576100ab83836100f260201b6100291760201c565b505b505050565b6100bb8161011e565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b60606101178383604051806060016040528060278152602001610788602791396101de565b9392505050565b610131816102bc60201b6100551760201c565b6101985760405162461bcd60e51b815260206004820152602d60248201527f455243313936373a206e657720696d706c656d656e746174696f6e206973206e60448201526c1bdd08184818dbdb9d1c9858dd609a1b60648201526084015b60405180910390fd5b806101bd60008051602061076883398151915260001b6102cb60201b6100641760201c565b80546001600160a01b0319166001600160a01b039290921691909117905550565b60606001600160a01b0384163b6102465760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b606482015260840161018f565b600080856001600160a01b0316856040516102619190610452565b600060405180830381855af49150503d806000811461029c576040519150601f19603f3d011682016040523d82523d6000602084013e6102a1565b606091505b5090925090506102b28282866102ce565b9695505050505050565b6001600160a01b03163b151590565b90565b606083156102dd575081610117565b8251156102ed5782518084602001fd5b8160405162461bcd60e51b815260040161018f919061046e565b634e487b7160e01b600052604160045260246000fd5b60005b83811015610338578181015183820152602001610320565b838111156100ab5750506000910152565b6000806040838503121561035c57600080fd5b82516001600160a01b038116811461037357600080fd5b60208401519092506001600160401b038082111561039057600080fd5b818501915085601f8301126103a457600080fd5b8151818111156103b6576103b6610307565b604051601f8201601f19908116603f011681019083821181831017156103de576103de610307565b816040528281528860208487010111156103f757600080fd5b61040883602083016020880161031d565b80955050505050509250929050565b60008282101561043757634e487b7160e01b600052601160045260246000fd5b500390565b634e487b7160e01b600052600160045260246000fd5b6000825161046481846020870161031d565b9190910192915050565b602081526000825180602084015261048d81604085016020870161031d565b601f01601f19169190910160400192915050565b6102b8806104b06000396000f3fe60806040523661001357610011610017565b005b6100115b610027610022610067565b61009f565b565b606061004e838360405180606001604052806027815260200161025c602791396100c3565b9392505050565b6001600160a01b03163b151590565b90565b600061009a7f360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc546001600160a01b031690565b905090565b3660008037600080366000845af43d6000803e8080156100be573d6000f35b3d6000fd5b60606100ce84610055565b61012e5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a2064656c65676174652063616c6c20746f206e6f6e2d636f6044820152651b9d1c9858dd60d21b60648201526084015b60405180910390fd5b600080856001600160a01b031685604051610149919061020c565b600060405180830381855af49150503d8060008114610184576040519150601f19603f3d011682016040523d82523d6000602084013e610189565b606091505b50915091506101998282866101a3565b9695505050505050565b606083156101b257508161004e565b8251156101c25782518084602001fd5b8160405162461bcd60e51b81526004016101259190610228565b60005b838110156101f75781810151838201526020016101df565b83811115610206576000848401525b50505050565b6000825161021e8184602087016101dc565b9190910192915050565b60208152600082518060208401526102478160408501602087016101dc565b601f01601f1916919091016040019291505056fe416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564a26469706673582212208498010d8542d7ac685735825da6c436b55d8d70a885ca2eb699aa05c30a0b2264736f6c63430008090033360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc416464726573733a206c6f772d6c6576656c2064656c65676174652063616c6c206661696c6564";
|
92
|
+
|
93
|
+
type ERC1967ProxyConstructorParams =
|
94
|
+
| [signer?: Signer]
|
95
|
+
| ConstructorParameters<typeof ContractFactory>;
|
96
|
+
|
97
|
+
const isSuperArgs = (
|
98
|
+
xs: ERC1967ProxyConstructorParams
|
99
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
100
|
+
|
101
|
+
export class ERC1967Proxy__factory extends ContractFactory {
|
102
|
+
constructor(...args: ERC1967ProxyConstructorParams) {
|
103
|
+
if (isSuperArgs(args)) {
|
104
|
+
super(...args);
|
105
|
+
} else {
|
106
|
+
super(_abi, _bytecode, args[0]);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
override deploy(
|
111
|
+
_logic: string,
|
112
|
+
_data: BytesLike,
|
113
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
114
|
+
): Promise<ERC1967Proxy> {
|
115
|
+
return super.deploy(
|
116
|
+
_logic,
|
117
|
+
_data,
|
118
|
+
overrides || {}
|
119
|
+
) as Promise<ERC1967Proxy>;
|
120
|
+
}
|
121
|
+
override getDeployTransaction(
|
122
|
+
_logic: string,
|
123
|
+
_data: BytesLike,
|
124
|
+
overrides?: PayableOverrides & { from?: string | Promise<string> }
|
125
|
+
): TransactionRequest {
|
126
|
+
return super.getDeployTransaction(_logic, _data, overrides || {});
|
127
|
+
}
|
128
|
+
override attach(address: string): ERC1967Proxy {
|
129
|
+
return super.attach(address) as ERC1967Proxy;
|
130
|
+
}
|
131
|
+
override connect(signer: Signer): ERC1967Proxy__factory {
|
132
|
+
return super.connect(signer) as ERC1967Proxy__factory;
|
133
|
+
}
|
134
|
+
|
135
|
+
static readonly bytecode = _bytecode;
|
136
|
+
static readonly abi = _abi;
|
137
|
+
static createInterface(): ERC1967ProxyInterface {
|
138
|
+
return new utils.Interface(_abi) as ERC1967ProxyInterface;
|
139
|
+
}
|
140
|
+
static connect(
|
141
|
+
address: string,
|
142
|
+
signerOrProvider: Signer | Provider
|
143
|
+
): ERC1967Proxy {
|
144
|
+
return new Contract(address, _abi, signerOrProvider) as ERC1967Proxy;
|
145
|
+
}
|
146
|
+
}
|
package/build/types/factories/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade__factory.ts
ADDED
@@ -0,0 +1,71 @@
|
|
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
|
+
ERC1967Upgrade,
|
9
|
+
ERC1967UpgradeInterface,
|
10
|
+
} from "../../../../../@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade";
|
11
|
+
|
12
|
+
const _abi = [
|
13
|
+
{
|
14
|
+
anonymous: false,
|
15
|
+
inputs: [
|
16
|
+
{
|
17
|
+
indexed: false,
|
18
|
+
internalType: "address",
|
19
|
+
name: "previousAdmin",
|
20
|
+
type: "address",
|
21
|
+
},
|
22
|
+
{
|
23
|
+
indexed: false,
|
24
|
+
internalType: "address",
|
25
|
+
name: "newAdmin",
|
26
|
+
type: "address",
|
27
|
+
},
|
28
|
+
],
|
29
|
+
name: "AdminChanged",
|
30
|
+
type: "event",
|
31
|
+
},
|
32
|
+
{
|
33
|
+
anonymous: false,
|
34
|
+
inputs: [
|
35
|
+
{
|
36
|
+
indexed: true,
|
37
|
+
internalType: "address",
|
38
|
+
name: "beacon",
|
39
|
+
type: "address",
|
40
|
+
},
|
41
|
+
],
|
42
|
+
name: "BeaconUpgraded",
|
43
|
+
type: "event",
|
44
|
+
},
|
45
|
+
{
|
46
|
+
anonymous: false,
|
47
|
+
inputs: [
|
48
|
+
{
|
49
|
+
indexed: true,
|
50
|
+
internalType: "address",
|
51
|
+
name: "implementation",
|
52
|
+
type: "address",
|
53
|
+
},
|
54
|
+
],
|
55
|
+
name: "Upgraded",
|
56
|
+
type: "event",
|
57
|
+
},
|
58
|
+
];
|
59
|
+
|
60
|
+
export class ERC1967Upgrade__factory {
|
61
|
+
static readonly abi = _abi;
|
62
|
+
static createInterface(): ERC1967UpgradeInterface {
|
63
|
+
return new utils.Interface(_abi) as ERC1967UpgradeInterface;
|
64
|
+
}
|
65
|
+
static connect(
|
66
|
+
address: string,
|
67
|
+
signerOrProvider: Signer | Provider
|
68
|
+
): ERC1967Upgrade {
|
69
|
+
return new Contract(address, _abi, signerOrProvider) as ERC1967Upgrade;
|
70
|
+
}
|
71
|
+
}
|
@@ -0,0 +1,31 @@
|
|
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
|
+
Proxy,
|
9
|
+
ProxyInterface,
|
10
|
+
} from "../../../../@openzeppelin/contracts/proxy/Proxy";
|
11
|
+
|
12
|
+
const _abi = [
|
13
|
+
{
|
14
|
+
stateMutability: "payable",
|
15
|
+
type: "fallback",
|
16
|
+
},
|
17
|
+
{
|
18
|
+
stateMutability: "payable",
|
19
|
+
type: "receive",
|
20
|
+
},
|
21
|
+
];
|
22
|
+
|
23
|
+
export class Proxy__factory {
|
24
|
+
static readonly abi = _abi;
|
25
|
+
static createInterface(): ProxyInterface {
|
26
|
+
return new utils.Interface(_abi) as ProxyInterface;
|
27
|
+
}
|
28
|
+
static connect(address: string, signerOrProvider: Signer | Provider): Proxy {
|
29
|
+
return new Contract(address, _abi, signerOrProvider) as Proxy;
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,39 @@
|
|
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
|
+
IBeacon,
|
9
|
+
IBeaconInterface,
|
10
|
+
} from "../../../../../@openzeppelin/contracts/proxy/beacon/IBeacon";
|
11
|
+
|
12
|
+
const _abi = [
|
13
|
+
{
|
14
|
+
inputs: [],
|
15
|
+
name: "implementation",
|
16
|
+
outputs: [
|
17
|
+
{
|
18
|
+
internalType: "address",
|
19
|
+
name: "",
|
20
|
+
type: "address",
|
21
|
+
},
|
22
|
+
],
|
23
|
+
stateMutability: "view",
|
24
|
+
type: "function",
|
25
|
+
},
|
26
|
+
];
|
27
|
+
|
28
|
+
export class IBeacon__factory {
|
29
|
+
static readonly abi = _abi;
|
30
|
+
static createInterface(): IBeaconInterface {
|
31
|
+
return new utils.Interface(_abi) as IBeaconInterface;
|
32
|
+
}
|
33
|
+
static connect(
|
34
|
+
address: string,
|
35
|
+
signerOrProvider: Signer | Provider
|
36
|
+
): IBeacon {
|
37
|
+
return new Contract(address, _abi, signerOrProvider) as IBeacon;
|
38
|
+
}
|
39
|
+
}
|
package/build/types/factories/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon__factory.ts
ADDED
@@ -0,0 +1,169 @@
|
|
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
|
+
UpgradeableBeacon,
|
8
|
+
UpgradeableBeaconInterface,
|
9
|
+
} from "../../../../../@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon";
|
10
|
+
|
11
|
+
const _abi = [
|
12
|
+
{
|
13
|
+
inputs: [
|
14
|
+
{
|
15
|
+
internalType: "address",
|
16
|
+
name: "implementation_",
|
17
|
+
type: "address",
|
18
|
+
},
|
19
|
+
],
|
20
|
+
stateMutability: "nonpayable",
|
21
|
+
type: "constructor",
|
22
|
+
},
|
23
|
+
{
|
24
|
+
anonymous: false,
|
25
|
+
inputs: [
|
26
|
+
{
|
27
|
+
indexed: true,
|
28
|
+
internalType: "address",
|
29
|
+
name: "previousOwner",
|
30
|
+
type: "address",
|
31
|
+
},
|
32
|
+
{
|
33
|
+
indexed: true,
|
34
|
+
internalType: "address",
|
35
|
+
name: "newOwner",
|
36
|
+
type: "address",
|
37
|
+
},
|
38
|
+
],
|
39
|
+
name: "OwnershipTransferred",
|
40
|
+
type: "event",
|
41
|
+
},
|
42
|
+
{
|
43
|
+
anonymous: false,
|
44
|
+
inputs: [
|
45
|
+
{
|
46
|
+
indexed: true,
|
47
|
+
internalType: "address",
|
48
|
+
name: "implementation",
|
49
|
+
type: "address",
|
50
|
+
},
|
51
|
+
],
|
52
|
+
name: "Upgraded",
|
53
|
+
type: "event",
|
54
|
+
},
|
55
|
+
{
|
56
|
+
inputs: [],
|
57
|
+
name: "implementation",
|
58
|
+
outputs: [
|
59
|
+
{
|
60
|
+
internalType: "address",
|
61
|
+
name: "",
|
62
|
+
type: "address",
|
63
|
+
},
|
64
|
+
],
|
65
|
+
stateMutability: "view",
|
66
|
+
type: "function",
|
67
|
+
},
|
68
|
+
{
|
69
|
+
inputs: [],
|
70
|
+
name: "owner",
|
71
|
+
outputs: [
|
72
|
+
{
|
73
|
+
internalType: "address",
|
74
|
+
name: "",
|
75
|
+
type: "address",
|
76
|
+
},
|
77
|
+
],
|
78
|
+
stateMutability: "view",
|
79
|
+
type: "function",
|
80
|
+
},
|
81
|
+
{
|
82
|
+
inputs: [],
|
83
|
+
name: "renounceOwnership",
|
84
|
+
outputs: [],
|
85
|
+
stateMutability: "nonpayable",
|
86
|
+
type: "function",
|
87
|
+
},
|
88
|
+
{
|
89
|
+
inputs: [
|
90
|
+
{
|
91
|
+
internalType: "address",
|
92
|
+
name: "newOwner",
|
93
|
+
type: "address",
|
94
|
+
},
|
95
|
+
],
|
96
|
+
name: "transferOwnership",
|
97
|
+
outputs: [],
|
98
|
+
stateMutability: "nonpayable",
|
99
|
+
type: "function",
|
100
|
+
},
|
101
|
+
{
|
102
|
+
inputs: [
|
103
|
+
{
|
104
|
+
internalType: "address",
|
105
|
+
name: "newImplementation",
|
106
|
+
type: "address",
|
107
|
+
},
|
108
|
+
],
|
109
|
+
name: "upgradeTo",
|
110
|
+
outputs: [],
|
111
|
+
stateMutability: "nonpayable",
|
112
|
+
type: "function",
|
113
|
+
},
|
114
|
+
];
|
115
|
+
|
116
|
+
const _bytecode =
|
117
|
+
"0x608060405234801561001057600080fd5b5060405161052738038061052783398101604081905261002f91610151565b61003833610047565b61004181610097565b50610181565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6100aa8161014260201b61020a1760201c565b6101205760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f60448201527f6e206973206e6f74206120636f6e747261637400000000000000000000000000606482015260840160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03163b151590565b60006020828403121561016357600080fd5b81516001600160a01b038116811461017a57600080fd5b9392505050565b610397806101906000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a61461009a5780638da5cb5b146100a2578063f2fde38b146100b3575b600080fd5b61006f61006a3660046102fc565b6100c6565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006f610139565b6000546001600160a01b031661007e565b61006f6100c13660046102fc565b61016f565b6000546001600160a01b031633146100f95760405162461bcd60e51b81526004016100f09061032c565b60405180910390fd5b61010281610219565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6000546001600160a01b031633146101635760405162461bcd60e51b81526004016100f09061032c565b61016d60006102ac565b565b6000546001600160a01b031633146101995760405162461bcd60e51b81526004016100f09061032c565b6001600160a01b0381166101fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016100f0565b610207816102ac565b50565b6001600160a01b03163b151590565b6102228161020a565b61028a5760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f6044820152721b881a5cc81b9bdd08184818dbdb9d1c9858dd606a1b60648201526084016100f0565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561030e57600080fd5b81356001600160a01b038116811461032557600080fd5b9392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260408201526060019056fea2646970667358221220791f11b0385ff4a001d4ed0faef3e5f2a532064a67177ab52f2c6da37212666a64736f6c63430008090033";
|
118
|
+
|
119
|
+
type UpgradeableBeaconConstructorParams =
|
120
|
+
| [signer?: Signer]
|
121
|
+
| ConstructorParameters<typeof ContractFactory>;
|
122
|
+
|
123
|
+
const isSuperArgs = (
|
124
|
+
xs: UpgradeableBeaconConstructorParams
|
125
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
126
|
+
|
127
|
+
export class UpgradeableBeacon__factory extends ContractFactory {
|
128
|
+
constructor(...args: UpgradeableBeaconConstructorParams) {
|
129
|
+
if (isSuperArgs(args)) {
|
130
|
+
super(...args);
|
131
|
+
} else {
|
132
|
+
super(_abi, _bytecode, args[0]);
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
override deploy(
|
137
|
+
implementation_: string,
|
138
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
139
|
+
): Promise<UpgradeableBeacon> {
|
140
|
+
return super.deploy(
|
141
|
+
implementation_,
|
142
|
+
overrides || {}
|
143
|
+
) as Promise<UpgradeableBeacon>;
|
144
|
+
}
|
145
|
+
override getDeployTransaction(
|
146
|
+
implementation_: string,
|
147
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
148
|
+
): TransactionRequest {
|
149
|
+
return super.getDeployTransaction(implementation_, overrides || {});
|
150
|
+
}
|
151
|
+
override attach(address: string): UpgradeableBeacon {
|
152
|
+
return super.attach(address) as UpgradeableBeacon;
|
153
|
+
}
|
154
|
+
override connect(signer: Signer): UpgradeableBeacon__factory {
|
155
|
+
return super.connect(signer) as UpgradeableBeacon__factory;
|
156
|
+
}
|
157
|
+
|
158
|
+
static readonly bytecode = _bytecode;
|
159
|
+
static readonly abi = _abi;
|
160
|
+
static createInterface(): UpgradeableBeaconInterface {
|
161
|
+
return new utils.Interface(_abi) as UpgradeableBeaconInterface;
|
162
|
+
}
|
163
|
+
static connect(
|
164
|
+
address: string,
|
165
|
+
signerOrProvider: Signer | Provider
|
166
|
+
): UpgradeableBeacon {
|
167
|
+
return new Contract(address, _abi, signerOrProvider) as UpgradeableBeacon;
|
168
|
+
}
|
169
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
export * as erc1967 from "./ERC1967";
|
5
|
+
export * as beacon from "./beacon";
|
6
|
+
export * as transparent from "./transparent";
|
7
|
+
export * as utils from "./utils";
|
8
|
+
export { Proxy__factory } from "./Proxy__factory";
|