@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,420 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import {
|
5
|
+
Signer,
|
6
|
+
utils,
|
7
|
+
Contract,
|
8
|
+
ContractFactory,
|
9
|
+
BigNumberish,
|
10
|
+
Overrides,
|
11
|
+
} from "ethers";
|
12
|
+
import type { Provider, TransactionRequest } from "@ethersproject/providers";
|
13
|
+
import type {
|
14
|
+
ERC20PresetFixedSupply,
|
15
|
+
ERC20PresetFixedSupplyInterface,
|
16
|
+
} from "../../../../../../@openzeppelin/contracts/token/ERC20/presets/ERC20PresetFixedSupply";
|
17
|
+
|
18
|
+
const _abi = [
|
19
|
+
{
|
20
|
+
inputs: [
|
21
|
+
{
|
22
|
+
internalType: "string",
|
23
|
+
name: "name",
|
24
|
+
type: "string",
|
25
|
+
},
|
26
|
+
{
|
27
|
+
internalType: "string",
|
28
|
+
name: "symbol",
|
29
|
+
type: "string",
|
30
|
+
},
|
31
|
+
{
|
32
|
+
internalType: "uint256",
|
33
|
+
name: "initialSupply",
|
34
|
+
type: "uint256",
|
35
|
+
},
|
36
|
+
{
|
37
|
+
internalType: "address",
|
38
|
+
name: "owner",
|
39
|
+
type: "address",
|
40
|
+
},
|
41
|
+
],
|
42
|
+
stateMutability: "nonpayable",
|
43
|
+
type: "constructor",
|
44
|
+
},
|
45
|
+
{
|
46
|
+
anonymous: false,
|
47
|
+
inputs: [
|
48
|
+
{
|
49
|
+
indexed: true,
|
50
|
+
internalType: "address",
|
51
|
+
name: "owner",
|
52
|
+
type: "address",
|
53
|
+
},
|
54
|
+
{
|
55
|
+
indexed: true,
|
56
|
+
internalType: "address",
|
57
|
+
name: "spender",
|
58
|
+
type: "address",
|
59
|
+
},
|
60
|
+
{
|
61
|
+
indexed: false,
|
62
|
+
internalType: "uint256",
|
63
|
+
name: "value",
|
64
|
+
type: "uint256",
|
65
|
+
},
|
66
|
+
],
|
67
|
+
name: "Approval",
|
68
|
+
type: "event",
|
69
|
+
},
|
70
|
+
{
|
71
|
+
anonymous: false,
|
72
|
+
inputs: [
|
73
|
+
{
|
74
|
+
indexed: true,
|
75
|
+
internalType: "address",
|
76
|
+
name: "from",
|
77
|
+
type: "address",
|
78
|
+
},
|
79
|
+
{
|
80
|
+
indexed: true,
|
81
|
+
internalType: "address",
|
82
|
+
name: "to",
|
83
|
+
type: "address",
|
84
|
+
},
|
85
|
+
{
|
86
|
+
indexed: false,
|
87
|
+
internalType: "uint256",
|
88
|
+
name: "value",
|
89
|
+
type: "uint256",
|
90
|
+
},
|
91
|
+
],
|
92
|
+
name: "Transfer",
|
93
|
+
type: "event",
|
94
|
+
},
|
95
|
+
{
|
96
|
+
inputs: [
|
97
|
+
{
|
98
|
+
internalType: "address",
|
99
|
+
name: "owner",
|
100
|
+
type: "address",
|
101
|
+
},
|
102
|
+
{
|
103
|
+
internalType: "address",
|
104
|
+
name: "spender",
|
105
|
+
type: "address",
|
106
|
+
},
|
107
|
+
],
|
108
|
+
name: "allowance",
|
109
|
+
outputs: [
|
110
|
+
{
|
111
|
+
internalType: "uint256",
|
112
|
+
name: "",
|
113
|
+
type: "uint256",
|
114
|
+
},
|
115
|
+
],
|
116
|
+
stateMutability: "view",
|
117
|
+
type: "function",
|
118
|
+
},
|
119
|
+
{
|
120
|
+
inputs: [
|
121
|
+
{
|
122
|
+
internalType: "address",
|
123
|
+
name: "spender",
|
124
|
+
type: "address",
|
125
|
+
},
|
126
|
+
{
|
127
|
+
internalType: "uint256",
|
128
|
+
name: "amount",
|
129
|
+
type: "uint256",
|
130
|
+
},
|
131
|
+
],
|
132
|
+
name: "approve",
|
133
|
+
outputs: [
|
134
|
+
{
|
135
|
+
internalType: "bool",
|
136
|
+
name: "",
|
137
|
+
type: "bool",
|
138
|
+
},
|
139
|
+
],
|
140
|
+
stateMutability: "nonpayable",
|
141
|
+
type: "function",
|
142
|
+
},
|
143
|
+
{
|
144
|
+
inputs: [
|
145
|
+
{
|
146
|
+
internalType: "address",
|
147
|
+
name: "account",
|
148
|
+
type: "address",
|
149
|
+
},
|
150
|
+
],
|
151
|
+
name: "balanceOf",
|
152
|
+
outputs: [
|
153
|
+
{
|
154
|
+
internalType: "uint256",
|
155
|
+
name: "",
|
156
|
+
type: "uint256",
|
157
|
+
},
|
158
|
+
],
|
159
|
+
stateMutability: "view",
|
160
|
+
type: "function",
|
161
|
+
},
|
162
|
+
{
|
163
|
+
inputs: [
|
164
|
+
{
|
165
|
+
internalType: "uint256",
|
166
|
+
name: "amount",
|
167
|
+
type: "uint256",
|
168
|
+
},
|
169
|
+
],
|
170
|
+
name: "burn",
|
171
|
+
outputs: [],
|
172
|
+
stateMutability: "nonpayable",
|
173
|
+
type: "function",
|
174
|
+
},
|
175
|
+
{
|
176
|
+
inputs: [
|
177
|
+
{
|
178
|
+
internalType: "address",
|
179
|
+
name: "account",
|
180
|
+
type: "address",
|
181
|
+
},
|
182
|
+
{
|
183
|
+
internalType: "uint256",
|
184
|
+
name: "amount",
|
185
|
+
type: "uint256",
|
186
|
+
},
|
187
|
+
],
|
188
|
+
name: "burnFrom",
|
189
|
+
outputs: [],
|
190
|
+
stateMutability: "nonpayable",
|
191
|
+
type: "function",
|
192
|
+
},
|
193
|
+
{
|
194
|
+
inputs: [],
|
195
|
+
name: "decimals",
|
196
|
+
outputs: [
|
197
|
+
{
|
198
|
+
internalType: "uint8",
|
199
|
+
name: "",
|
200
|
+
type: "uint8",
|
201
|
+
},
|
202
|
+
],
|
203
|
+
stateMutability: "view",
|
204
|
+
type: "function",
|
205
|
+
},
|
206
|
+
{
|
207
|
+
inputs: [
|
208
|
+
{
|
209
|
+
internalType: "address",
|
210
|
+
name: "spender",
|
211
|
+
type: "address",
|
212
|
+
},
|
213
|
+
{
|
214
|
+
internalType: "uint256",
|
215
|
+
name: "subtractedValue",
|
216
|
+
type: "uint256",
|
217
|
+
},
|
218
|
+
],
|
219
|
+
name: "decreaseAllowance",
|
220
|
+
outputs: [
|
221
|
+
{
|
222
|
+
internalType: "bool",
|
223
|
+
name: "",
|
224
|
+
type: "bool",
|
225
|
+
},
|
226
|
+
],
|
227
|
+
stateMutability: "nonpayable",
|
228
|
+
type: "function",
|
229
|
+
},
|
230
|
+
{
|
231
|
+
inputs: [
|
232
|
+
{
|
233
|
+
internalType: "address",
|
234
|
+
name: "spender",
|
235
|
+
type: "address",
|
236
|
+
},
|
237
|
+
{
|
238
|
+
internalType: "uint256",
|
239
|
+
name: "addedValue",
|
240
|
+
type: "uint256",
|
241
|
+
},
|
242
|
+
],
|
243
|
+
name: "increaseAllowance",
|
244
|
+
outputs: [
|
245
|
+
{
|
246
|
+
internalType: "bool",
|
247
|
+
name: "",
|
248
|
+
type: "bool",
|
249
|
+
},
|
250
|
+
],
|
251
|
+
stateMutability: "nonpayable",
|
252
|
+
type: "function",
|
253
|
+
},
|
254
|
+
{
|
255
|
+
inputs: [],
|
256
|
+
name: "name",
|
257
|
+
outputs: [
|
258
|
+
{
|
259
|
+
internalType: "string",
|
260
|
+
name: "",
|
261
|
+
type: "string",
|
262
|
+
},
|
263
|
+
],
|
264
|
+
stateMutability: "view",
|
265
|
+
type: "function",
|
266
|
+
},
|
267
|
+
{
|
268
|
+
inputs: [],
|
269
|
+
name: "symbol",
|
270
|
+
outputs: [
|
271
|
+
{
|
272
|
+
internalType: "string",
|
273
|
+
name: "",
|
274
|
+
type: "string",
|
275
|
+
},
|
276
|
+
],
|
277
|
+
stateMutability: "view",
|
278
|
+
type: "function",
|
279
|
+
},
|
280
|
+
{
|
281
|
+
inputs: [],
|
282
|
+
name: "totalSupply",
|
283
|
+
outputs: [
|
284
|
+
{
|
285
|
+
internalType: "uint256",
|
286
|
+
name: "",
|
287
|
+
type: "uint256",
|
288
|
+
},
|
289
|
+
],
|
290
|
+
stateMutability: "view",
|
291
|
+
type: "function",
|
292
|
+
},
|
293
|
+
{
|
294
|
+
inputs: [
|
295
|
+
{
|
296
|
+
internalType: "address",
|
297
|
+
name: "to",
|
298
|
+
type: "address",
|
299
|
+
},
|
300
|
+
{
|
301
|
+
internalType: "uint256",
|
302
|
+
name: "amount",
|
303
|
+
type: "uint256",
|
304
|
+
},
|
305
|
+
],
|
306
|
+
name: "transfer",
|
307
|
+
outputs: [
|
308
|
+
{
|
309
|
+
internalType: "bool",
|
310
|
+
name: "",
|
311
|
+
type: "bool",
|
312
|
+
},
|
313
|
+
],
|
314
|
+
stateMutability: "nonpayable",
|
315
|
+
type: "function",
|
316
|
+
},
|
317
|
+
{
|
318
|
+
inputs: [
|
319
|
+
{
|
320
|
+
internalType: "address",
|
321
|
+
name: "from",
|
322
|
+
type: "address",
|
323
|
+
},
|
324
|
+
{
|
325
|
+
internalType: "address",
|
326
|
+
name: "to",
|
327
|
+
type: "address",
|
328
|
+
},
|
329
|
+
{
|
330
|
+
internalType: "uint256",
|
331
|
+
name: "amount",
|
332
|
+
type: "uint256",
|
333
|
+
},
|
334
|
+
],
|
335
|
+
name: "transferFrom",
|
336
|
+
outputs: [
|
337
|
+
{
|
338
|
+
internalType: "bool",
|
339
|
+
name: "",
|
340
|
+
type: "bool",
|
341
|
+
},
|
342
|
+
],
|
343
|
+
stateMutability: "nonpayable",
|
344
|
+
type: "function",
|
345
|
+
},
|
346
|
+
];
|
347
|
+
|
348
|
+
const _bytecode =
|
349
|
+
"0x60806040523480156200001157600080fd5b5060405162000e8438038062000e848339810160408190526200003491620002dd565b8351849084906200004d9060039060208501906200016a565b508051620000639060049060208401906200016a565b5050506200007881836200008260201b60201c565b50505050620003d6565b6001600160a01b038216620000dd5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640160405180910390fd5b8060026000828254620000f1919062000372565b90915550506001600160a01b038216600090815260208190526040812080548392906200012090849062000372565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b828054620001789062000399565b90600052602060002090601f0160209004810192826200019c5760008555620001e7565b82601f10620001b757805160ff1916838001178555620001e7565b82800160010185558215620001e7579182015b82811115620001e7578251825591602001919060010190620001ca565b50620001f5929150620001f9565b5090565b5b80821115620001f55760008155600101620001fa565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200023857600080fd5b81516001600160401b038082111562000255576200025562000210565b604051601f8301601f19908116603f0116810190828211818310171562000280576200028062000210565b816040528381526020925086838588010111156200029d57600080fd5b600091505b83821015620002c15785820183015181830184015290820190620002a2565b83821115620002d35760008385830101525b9695505050505050565b60008060008060808587031215620002f457600080fd5b84516001600160401b03808211156200030c57600080fd5b6200031a8883890162000226565b955060208701519150808211156200033157600080fd5b50620003408782880162000226565b60408701516060880151919550935090506001600160a01b03811681146200036757600080fd5b939692955090935050565b600082198211156200039457634e487b7160e01b600052601160045260246000fd5b500190565b600181811c90821680620003ae57607f821691505b60208210811415620003d057634e487b7160e01b600052602260045260246000fd5b50919050565b610a9e80620003e66000396000f3fe608060405234801561001057600080fd5b50600436106100bf5760003560e01c806342966c681161007c57806342966c681461014c57806370a082311461016157806379cc67901461018a57806395d89b411461019d578063a457c2d7146101a5578063a9059cbb146101b8578063dd62ed3e146101cb57600080fd5b806306fdde03146100c4578063095ea7b3146100e257806318160ddd1461010557806323b872dd14610117578063313ce5671461012a5780633950935114610139575b600080fd5b6100cc6101de565b6040516100d991906108a3565b60405180910390f35b6100f56100f0366004610914565b610270565b60405190151581526020016100d9565b6002545b6040519081526020016100d9565b6100f561012536600461093e565b610288565b604051601281526020016100d9565b6100f5610147366004610914565b6102ac565b61015f61015a36600461097a565b6102eb565b005b61010961016f366004610993565b6001600160a01b031660009081526020819052604090205490565b61015f610198366004610914565b6102f8565b6100cc610311565b6100f56101b3366004610914565b610320565b6100f56101c6366004610914565b6103b7565b6101096101d93660046109b5565b6103c5565b6060600380546101ed906109e8565b80601f0160208091040260200160405190810160405280929190818152602001828054610219906109e8565b80156102665780601f1061023b57610100808354040283529160200191610266565b820191906000526020600020905b81548152906001019060200180831161024957829003601f168201915b5050505050905090565b60003361027e8185856103f0565b5060019392505050565b600033610296858285610515565b6102a185858561058f565b506001949350505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061027e90829086906102e6908790610a39565b6103f0565b6102f5338261075d565b50565b610303823383610515565b61030d828261075d565b5050565b6060600480546101ed906109e8565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156103aa5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b60648201526084015b60405180910390fd5b6102a182868684036103f0565b60003361027e81858561058f565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6001600160a01b0383166104525760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b60648201526084016103a1565b6001600160a01b0382166104b35760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b60648201526084016103a1565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b600061052184846103c5565b90506000198114610589578181101561057c5760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103a1565b61058984848484036103f0565b50505050565b6001600160a01b0383166105f35760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b60648201526084016103a1565b6001600160a01b0382166106555760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b60648201526084016103a1565b6001600160a01b038316600090815260208190526040902054818110156106cd5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b60648201526084016103a1565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610704908490610a39565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161075091815260200190565b60405180910390a3610589565b6001600160a01b0382166107bd5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b60648201526084016103a1565b6001600160a01b038216600090815260208190526040902054818110156108315760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b60648201526084016103a1565b6001600160a01b0383166000908152602081905260408120838303905560028054849290610860908490610a51565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610508565b600060208083528351808285015260005b818110156108d0578581018301518582016040015282016108b4565b818111156108e2576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461090f57600080fd5b919050565b6000806040838503121561092757600080fd5b610930836108f8565b946020939093013593505050565b60008060006060848603121561095357600080fd5b61095c846108f8565b925061096a602085016108f8565b9150604084013590509250925092565b60006020828403121561098c57600080fd5b5035919050565b6000602082840312156109a557600080fd5b6109ae826108f8565b9392505050565b600080604083850312156109c857600080fd5b6109d1836108f8565b91506109df602084016108f8565b90509250929050565b600181811c908216806109fc57607f821691505b60208210811415610a1d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115610a4c57610a4c610a23565b500190565b600082821015610a6357610a63610a23565b50039056fea2646970667358221220326885e24941580d22a76d80c9319fa5de060bb11b16d473cdecedb26a327f0f64736f6c63430008090033";
|
350
|
+
|
351
|
+
type ERC20PresetFixedSupplyConstructorParams =
|
352
|
+
| [signer?: Signer]
|
353
|
+
| ConstructorParameters<typeof ContractFactory>;
|
354
|
+
|
355
|
+
const isSuperArgs = (
|
356
|
+
xs: ERC20PresetFixedSupplyConstructorParams
|
357
|
+
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
|
358
|
+
|
359
|
+
export class ERC20PresetFixedSupply__factory extends ContractFactory {
|
360
|
+
constructor(...args: ERC20PresetFixedSupplyConstructorParams) {
|
361
|
+
if (isSuperArgs(args)) {
|
362
|
+
super(...args);
|
363
|
+
} else {
|
364
|
+
super(_abi, _bytecode, args[0]);
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
368
|
+
override deploy(
|
369
|
+
name: string,
|
370
|
+
symbol: string,
|
371
|
+
initialSupply: BigNumberish,
|
372
|
+
owner: string,
|
373
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
374
|
+
): Promise<ERC20PresetFixedSupply> {
|
375
|
+
return super.deploy(
|
376
|
+
name,
|
377
|
+
symbol,
|
378
|
+
initialSupply,
|
379
|
+
owner,
|
380
|
+
overrides || {}
|
381
|
+
) as Promise<ERC20PresetFixedSupply>;
|
382
|
+
}
|
383
|
+
override getDeployTransaction(
|
384
|
+
name: string,
|
385
|
+
symbol: string,
|
386
|
+
initialSupply: BigNumberish,
|
387
|
+
owner: string,
|
388
|
+
overrides?: Overrides & { from?: string | Promise<string> }
|
389
|
+
): TransactionRequest {
|
390
|
+
return super.getDeployTransaction(
|
391
|
+
name,
|
392
|
+
symbol,
|
393
|
+
initialSupply,
|
394
|
+
owner,
|
395
|
+
overrides || {}
|
396
|
+
);
|
397
|
+
}
|
398
|
+
override attach(address: string): ERC20PresetFixedSupply {
|
399
|
+
return super.attach(address) as ERC20PresetFixedSupply;
|
400
|
+
}
|
401
|
+
override connect(signer: Signer): ERC20PresetFixedSupply__factory {
|
402
|
+
return super.connect(signer) as ERC20PresetFixedSupply__factory;
|
403
|
+
}
|
404
|
+
|
405
|
+
static readonly bytecode = _bytecode;
|
406
|
+
static readonly abi = _abi;
|
407
|
+
static createInterface(): ERC20PresetFixedSupplyInterface {
|
408
|
+
return new utils.Interface(_abi) as ERC20PresetFixedSupplyInterface;
|
409
|
+
}
|
410
|
+
static connect(
|
411
|
+
address: string,
|
412
|
+
signerOrProvider: Signer | Provider
|
413
|
+
): ERC20PresetFixedSupply {
|
414
|
+
return new Contract(
|
415
|
+
address,
|
416
|
+
_abi,
|
417
|
+
signerOrProvider
|
418
|
+
) as ERC20PresetFixedSupply;
|
419
|
+
}
|
420
|
+
}
|
@@ -0,0 +1,78 @@
|
|
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
|
+
OwnableUpgradeable,
|
9
|
+
OwnableUpgradeableInterface,
|
10
|
+
} from "../../../../@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable";
|
11
|
+
|
12
|
+
const _abi = [
|
13
|
+
{
|
14
|
+
anonymous: false,
|
15
|
+
inputs: [
|
16
|
+
{
|
17
|
+
indexed: true,
|
18
|
+
internalType: "address",
|
19
|
+
name: "previousOwner",
|
20
|
+
type: "address",
|
21
|
+
},
|
22
|
+
{
|
23
|
+
indexed: true,
|
24
|
+
internalType: "address",
|
25
|
+
name: "newOwner",
|
26
|
+
type: "address",
|
27
|
+
},
|
28
|
+
],
|
29
|
+
name: "OwnershipTransferred",
|
30
|
+
type: "event",
|
31
|
+
},
|
32
|
+
{
|
33
|
+
inputs: [],
|
34
|
+
name: "owner",
|
35
|
+
outputs: [
|
36
|
+
{
|
37
|
+
internalType: "address",
|
38
|
+
name: "",
|
39
|
+
type: "address",
|
40
|
+
},
|
41
|
+
],
|
42
|
+
stateMutability: "view",
|
43
|
+
type: "function",
|
44
|
+
},
|
45
|
+
{
|
46
|
+
inputs: [],
|
47
|
+
name: "renounceOwnership",
|
48
|
+
outputs: [],
|
49
|
+
stateMutability: "nonpayable",
|
50
|
+
type: "function",
|
51
|
+
},
|
52
|
+
{
|
53
|
+
inputs: [
|
54
|
+
{
|
55
|
+
internalType: "address",
|
56
|
+
name: "newOwner",
|
57
|
+
type: "address",
|
58
|
+
},
|
59
|
+
],
|
60
|
+
name: "transferOwnership",
|
61
|
+
outputs: [],
|
62
|
+
stateMutability: "nonpayable",
|
63
|
+
type: "function",
|
64
|
+
},
|
65
|
+
];
|
66
|
+
|
67
|
+
export class OwnableUpgradeable__factory {
|
68
|
+
static readonly abi = _abi;
|
69
|
+
static createInterface(): OwnableUpgradeableInterface {
|
70
|
+
return new utils.Interface(_abi) as OwnableUpgradeableInterface;
|
71
|
+
}
|
72
|
+
static connect(
|
73
|
+
address: string,
|
74
|
+
signerOrProvider: Signer | Provider
|
75
|
+
): OwnableUpgradeable {
|
76
|
+
return new Contract(address, _abi, signerOrProvider) as OwnableUpgradeable;
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,65 @@
|
|
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
|
+
PausableUpgradeable,
|
9
|
+
PausableUpgradeableInterface,
|
10
|
+
} from "../../../../@openzeppelin/contracts-upgradeable/security/PausableUpgradeable";
|
11
|
+
|
12
|
+
const _abi = [
|
13
|
+
{
|
14
|
+
anonymous: false,
|
15
|
+
inputs: [
|
16
|
+
{
|
17
|
+
indexed: false,
|
18
|
+
internalType: "address",
|
19
|
+
name: "account",
|
20
|
+
type: "address",
|
21
|
+
},
|
22
|
+
],
|
23
|
+
name: "Paused",
|
24
|
+
type: "event",
|
25
|
+
},
|
26
|
+
{
|
27
|
+
anonymous: false,
|
28
|
+
inputs: [
|
29
|
+
{
|
30
|
+
indexed: false,
|
31
|
+
internalType: "address",
|
32
|
+
name: "account",
|
33
|
+
type: "address",
|
34
|
+
},
|
35
|
+
],
|
36
|
+
name: "Unpaused",
|
37
|
+
type: "event",
|
38
|
+
},
|
39
|
+
{
|
40
|
+
inputs: [],
|
41
|
+
name: "paused",
|
42
|
+
outputs: [
|
43
|
+
{
|
44
|
+
internalType: "bool",
|
45
|
+
name: "",
|
46
|
+
type: "bool",
|
47
|
+
},
|
48
|
+
],
|
49
|
+
stateMutability: "view",
|
50
|
+
type: "function",
|
51
|
+
},
|
52
|
+
];
|
53
|
+
|
54
|
+
export class PausableUpgradeable__factory {
|
55
|
+
static readonly abi = _abi;
|
56
|
+
static createInterface(): PausableUpgradeableInterface {
|
57
|
+
return new utils.Interface(_abi) as PausableUpgradeableInterface;
|
58
|
+
}
|
59
|
+
static connect(
|
60
|
+
address: string,
|
61
|
+
signerOrProvider: Signer | Provider
|
62
|
+
): PausableUpgradeable {
|
63
|
+
return new Contract(address, _abi, signerOrProvider) as PausableUpgradeable;
|
64
|
+
}
|
65
|
+
}
|