@arbitrum/nitro-contracts 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/contracts/@openzeppelin/contracts/access/Ownable.sol/Ownable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/interfaces/draft-IERC1822.sol/IERC1822Proxiable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Upgrade.sol/ERC1967Upgrade.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/proxy/Proxy.sol/Proxy.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/proxy/beacon/IBeacon.sol/IBeacon.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol/UpgradeableBeacon.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/proxy/utils/UUPSUpgradeable.sol/UUPSUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/security/ReentrancyGuard.sol/ReentrancyGuard.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol/IERC20Permit.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol/SafeERC20.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/utils/Address.sol/Address.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/utils/Create2.sol/Create2.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/access/AccessControlEnumerableUpgradeable.sol/AccessControlEnumerableUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol/AccessControlUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/access/IAccessControlEnumerableUpgradeable.sol/IAccessControlEnumerableUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/access/IAccessControlUpgradeable.sol/IAccessControlUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/ERC20BurnableUpgradeable.sol/ERC20BurnableUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/IERC20MetadataUpgradeable.sol/IERC20MetadataUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/Create2Upgradeable.sol/Create2Upgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/StorageSlotUpgradeable.sol/StorageSlotUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol/StringsUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol/ECDSAUpgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/cryptography/draft-EIP712Upgradeable.sol/EIP712Upgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/introspection/ERC165Upgradeable.sol/ERC165Upgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/introspection/IERC165Upgradeable.sol/IERC165Upgradeable.dbg.json +1 -1
- package/build/contracts/@openzeppelin/contracts-upgradeable/utils/structs/EnumerableSetUpgradeable.sol/EnumerableSetUpgradeable.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/AbsBoldStakingPool.sol/AbsBoldStakingPool.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/AssertionStakingPool.sol/AssertionStakingPool.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/AssertionStakingPoolCreator.sol/AssertionStakingPoolCreator.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/EdgeStakingPool.sol/EdgeStakingPool.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/EdgeStakingPoolCreator.sol/EdgeStakingPoolCreator.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/StakingPoolCreatorUtils.sol/StakingPoolCreatorUtils.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/interfaces/IAbsBoldStakingPool.sol/IAbsBoldStakingPool.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/interfaces/IAssertionStakingPool.sol/IAssertionStakingPool.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/interfaces/IAssertionStakingPoolCreator.sol/IAssertionStakingPoolCreator.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/interfaces/IEdgeStakingPool.sol/IEdgeStakingPool.dbg.json +1 -1
- package/build/contracts/src/assertionStakingPool/interfaces/IEdgeStakingPoolCreator.sol/IEdgeStakingPoolCreator.dbg.json +1 -1
- package/build/contracts/src/bridge/AbsBridge.sol/AbsBridge.dbg.json +1 -1
- package/build/contracts/src/bridge/AbsInbox.sol/AbsInbox.dbg.json +1 -1
- package/build/contracts/src/bridge/AbsOutbox.sol/AbsOutbox.dbg.json +1 -1
- package/build/contracts/src/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/src/bridge/DelayBuffer.sol/DelayBuffer.dbg.json +1 -1
- package/build/contracts/src/bridge/ERC20Bridge.sol/ERC20Bridge.dbg.json +1 -1
- package/build/contracts/src/bridge/ERC20Inbox.sol/ERC20Inbox.dbg.json +1 -1
- package/build/contracts/src/bridge/ERC20Outbox.sol/ERC20Outbox.dbg.json +1 -1
- package/build/contracts/src/bridge/GasRefunder.sol/GasRefunder.dbg.json +1 -1
- package/build/contracts/src/bridge/IBridge.sol/IBridge.dbg.json +1 -1
- package/build/contracts/src/bridge/IDelayedMessageProvider.sol/IDelayedMessageProvider.dbg.json +1 -1
- package/build/contracts/src/bridge/IERC20Bridge.sol/IERC20Bridge.dbg.json +1 -1
- package/build/contracts/src/bridge/IERC20Inbox.sol/IERC20Inbox.dbg.json +1 -1
- package/build/contracts/src/bridge/IEthBridge.sol/IEthBridge.dbg.json +1 -1
- package/build/contracts/src/bridge/IInbox.sol/IInbox.dbg.json +1 -1
- package/build/contracts/src/bridge/IInboxBase.sol/IInboxBase.dbg.json +1 -1
- package/build/contracts/src/bridge/IOutbox.sol/IOutbox.dbg.json +1 -1
- package/build/contracts/src/bridge/IOwnable.sol/IOwnable.dbg.json +1 -1
- package/build/contracts/src/bridge/ISequencerInbox.sol/IFeeTokenPricer.dbg.json +1 -1
- package/build/contracts/src/bridge/ISequencerInbox.sol/ISequencerInbox.dbg.json +1 -1
- package/build/contracts/src/bridge/Inbox.sol/Inbox.dbg.json +1 -1
- package/build/contracts/src/bridge/Messages.sol/Messages.dbg.json +1 -1
- package/build/contracts/src/bridge/Outbox.sol/Outbox.dbg.json +1 -1
- package/build/contracts/src/bridge/SequencerInbox.sol/SequencerInbox.dbg.json +1 -1
- package/build/contracts/src/bridge/extra/ERC20MigrationOutbox.sol/ERC20MigrationOutbox.dbg.json +4 -0
- package/build/contracts/src/bridge/extra/ERC20MigrationOutbox.sol/ERC20MigrationOutbox.json +113 -0
- package/build/contracts/src/bridge/extra/IERC20MigrationOutbox.sol/IERC20MigrationOutbox.dbg.json +4 -0
- package/build/contracts/src/bridge/extra/IERC20MigrationOutbox.sol/IERC20MigrationOutbox.json +97 -0
- package/build/contracts/src/chain/CacheManager.sol/CacheManager.dbg.json +1 -1
- package/build/contracts/src/chain/CacheManager.sol/CacheManager.json +2 -2
- package/build/contracts/src/challengeV2/IAssertionChain.sol/IAssertionChain.dbg.json +1 -1
- package/build/contracts/src/challengeV2/IEdgeChallengeManager.sol/IEdgeChallengeManager.dbg.json +1 -1
- package/build/contracts/src/challengeV2/libraries/ArrayUtilsLib.sol/ArrayUtilsLib.dbg.json +1 -1
- package/build/contracts/src/challengeV2/libraries/ChallengeEdgeLib.sol/ChallengeEdgeLib.dbg.json +1 -1
- package/build/contracts/src/challengeV2/libraries/EdgeChallengeManagerLib.sol/EdgeChallengeManagerLib.dbg.json +1 -1
- package/build/contracts/src/challengeV2/libraries/MerkleTreeAccumulatorLib.sol/MerkleTreeAccumulatorLib.dbg.json +1 -1
- package/build/contracts/src/challengeV2/libraries/UintUtilsLib.sol/UintUtilsLib.dbg.json +1 -1
- package/build/contracts/src/express-lane-auction/Balance.sol/BalanceLib.dbg.json +1 -1
- package/build/contracts/src/express-lane-auction/Burner.sol/Burner.dbg.json +1 -1
- package/build/contracts/src/express-lane-auction/ELCRound.sol/LatestELCRoundsLib.dbg.json +1 -1
- package/build/contracts/src/express-lane-auction/ExpressLaneAuction.sol/ExpressLaneAuction.dbg.json +1 -1
- package/build/contracts/src/express-lane-auction/ExpressLaneAuction.sol/ExpressLaneAuction.json +2 -2
- package/build/contracts/src/express-lane-auction/IExpressLaneAuction.sol/IExpressLaneAuction.dbg.json +1 -1
- package/build/contracts/src/express-lane-auction/RoundTimingInfo.sol/RoundTimingInfoLib.dbg.json +1 -1
- package/build/contracts/src/libraries/AddressAliasHelper.sol/AddressAliasHelper.dbg.json +1 -1
- package/build/contracts/src/libraries/AdminFallbackProxy.sol/AdminFallbackProxy.dbg.json +1 -1
- package/build/contracts/src/libraries/AdminFallbackProxy.sol/DoubleLogicERC1967Upgrade.dbg.json +1 -1
- package/build/contracts/src/libraries/ArbitrumChecker.sol/ArbitrumChecker.dbg.json +1 -1
- package/build/contracts/src/libraries/CallerChecker.sol/CallerChecker.dbg.json +1 -1
- package/build/contracts/src/libraries/CryptographyPrimitives.sol/CryptographyPrimitives.dbg.json +1 -1
- package/build/contracts/src/libraries/DecimalsConverterHelper.sol/DecimalsConverterHelper.dbg.json +1 -1
- package/build/contracts/src/libraries/DelegateCallAware.sol/DelegateCallAware.dbg.json +1 -1
- package/build/contracts/src/libraries/DoubleLogicUUPSUpgradeable.sol/DoubleLogicUUPSUpgradeable.dbg.json +1 -1
- package/build/contracts/src/libraries/GasRefundEnabled.sol/GasRefundEnabled.dbg.json +1 -1
- package/build/contracts/src/libraries/IGasRefunder.sol/IGasRefunder.dbg.json +1 -1
- package/build/contracts/src/libraries/IReader4844.sol/IReader4844.dbg.json +1 -1
- package/build/contracts/src/libraries/MerkleLib.sol/MerkleLib.dbg.json +1 -1
- package/build/contracts/src/libraries/UUPSNotUpgradeable.sol/UUPSNotUpgradeable.dbg.json +1 -1
- package/build/contracts/src/mocks/BridgeStub.sol/BridgeStub.dbg.json +1 -1
- package/build/contracts/src/mocks/BridgeUnproxied.sol/BridgeUnproxied.dbg.json +1 -1
- package/build/contracts/src/mocks/InboxStub.sol/InboxStub.dbg.json +1 -1
- package/build/contracts/src/mocks/MerkleTreeAccess.sol/MerkleTreeAccess.dbg.json +1 -1
- package/build/contracts/src/mocks/MockRollupEventInbox.sol/MockRollupEventInbox.dbg.json +1 -1
- package/build/contracts/src/mocks/SequencerInboxBlobMock.sol/SequencerInboxBlobMock.dbg.json +1 -1
- package/build/contracts/src/mocks/SequencerInboxStub.sol/SequencerInboxStub.dbg.json +1 -1
- package/build/contracts/src/mocks/SimpleOneStepProofEntry.sol/SimpleOneStepProofEntry.dbg.json +1 -1
- package/build/contracts/src/mocks/TestWETH9.sol/IWETH9.dbg.json +1 -1
- package/build/contracts/src/mocks/TestWETH9.sol/TestWETH9.dbg.json +1 -1
- package/build/contracts/src/mocks/UpgradeExecutorMock.sol/UpgradeExecutorMock.dbg.json +1 -1
- package/build/contracts/src/node-interface/NodeInterface.sol/NodeInterface.dbg.json +1 -1
- package/build/contracts/src/node-interface/NodeInterfaceDebug.sol/NodeInterfaceDebug.dbg.json +1 -1
- package/build/contracts/src/osp/HashProofHelper.sol/HashProofHelper.dbg.json +1 -1
- package/build/contracts/src/osp/IOneStepProofEntry.sol/IOneStepProofEntry.dbg.json +1 -1
- package/build/contracts/src/osp/IOneStepProofEntry.sol/OneStepProofEntryLib.dbg.json +1 -1
- package/build/contracts/src/osp/IOneStepProver.sol/IOneStepProver.dbg.json +1 -1
- package/build/contracts/src/osp/OneStepProofEntry.sol/OneStepProofEntry.dbg.json +1 -1
- package/build/contracts/src/osp/OneStepProver0.sol/OneStepProver0.dbg.json +1 -1
- package/build/contracts/src/osp/OneStepProverHostIo.sol/OneStepProverHostIo.dbg.json +1 -1
- package/build/contracts/src/osp/OneStepProverMath.sol/OneStepProverMath.dbg.json +1 -1
- package/build/contracts/src/osp/OneStepProverMemory.sol/OneStepProverMemory.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbAddressTable.sol/ArbAddressTable.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbAggregator.sol/ArbAggregator.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbBLS.sol/ArbBLS.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbDebug.sol/ArbDebug.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbFunctionTable.sol/ArbFunctionTable.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbGasInfo.sol/ArbGasInfo.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbInfo.sol/ArbInfo.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbNativeTokenManager.sol/ArbNativeTokenManager.dbg.json +4 -0
- package/build/contracts/src/precompiles/ArbNativeTokenManager.sol/ArbNativeTokenManager.json +75 -0
- package/build/contracts/src/precompiles/ArbOwner.sol/ArbOwner.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbOwner.sol/ArbOwner.json +71 -0
- package/build/contracts/src/precompiles/ArbOwnerPublic.sol/ArbOwnerPublic.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbOwnerPublic.sol/ArbOwnerPublic.json +32 -0
- package/build/contracts/src/precompiles/ArbRetryableTx.sol/ArbRetryableTx.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbStatistics.sol/ArbStatistics.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbSys.sol/ArbSys.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbWasm.sol/ArbWasm.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbWasmCache.sol/ArbWasmCache.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbosActs.sol/ArbosActs.dbg.json +1 -1
- package/build/contracts/src/precompiles/ArbosTest.sol/ArbosTest.dbg.json +1 -1
- package/build/contracts/src/rollup/AbsRollupEventInbox.sol/AbsRollupEventInbox.dbg.json +1 -1
- package/build/contracts/src/rollup/Assertion.sol/AssertionNodeLib.dbg.json +1 -1
- package/build/contracts/src/rollup/AssertionState.sol/AssertionStateLib.dbg.json +1 -1
- package/build/contracts/src/rollup/BOLDUpgradeAction.sol/BOLDUpgradeAction.dbg.json +1 -1
- package/build/contracts/src/rollup/BOLDUpgradeAction.sol/ConstantArrayStorage.dbg.json +1 -1
- package/build/contracts/src/rollup/BOLDUpgradeAction.sol/IOldRollup.dbg.json +1 -1
- package/build/contracts/src/rollup/BOLDUpgradeAction.sol/IOldRollupAdmin.dbg.json +1 -1
- package/build/contracts/src/rollup/BOLDUpgradeAction.sol/ISeqInboxPostUpgradeInit.dbg.json +1 -1
- package/build/contracts/src/rollup/BOLDUpgradeAction.sol/StateHashPreImageLookup.dbg.json +1 -1
- package/build/contracts/src/rollup/BridgeCreator.sol/BridgeCreator.dbg.json +1 -1
- package/build/contracts/src/rollup/DeployHelper.sol/DeployHelper.dbg.json +1 -1
- package/build/contracts/src/rollup/ERC20RollupEventInbox.sol/ERC20RollupEventInbox.dbg.json +1 -1
- package/build/contracts/src/rollup/FactoryDeployerHelper.sol/FactoryDeployerHelper.dbg.json +1 -1
- package/build/contracts/src/rollup/FactoryDeployerHelper.sol/IDeployHelper.dbg.json +1 -1
- package/build/contracts/src/rollup/FactoryDeployerHelper.sol/IERC20.dbg.json +1 -1
- package/build/contracts/src/rollup/FactoryDeployerHelper.sol/IERC20Bridge.dbg.json +1 -1
- package/build/contracts/src/rollup/FactoryDeployerHelper.sol/IInboxBase.dbg.json +1 -1
- package/build/contracts/src/rollup/IRollupAdmin.sol/IRollupAdmin.dbg.json +1 -1
- package/build/contracts/src/rollup/IRollupCore.sol/IRollupCore.dbg.json +1 -1
- package/build/contracts/src/rollup/IRollupEventInbox.sol/IRollupEventInbox.dbg.json +1 -1
- package/build/contracts/src/rollup/IRollupLogic.sol/IRollupUser.dbg.json +1 -1
- package/build/contracts/src/rollup/RollupAdminLogic.sol/RollupAdminLogic.dbg.json +1 -1
- package/build/contracts/src/rollup/RollupCore.sol/RollupCore.dbg.json +1 -1
- package/build/contracts/src/rollup/RollupCreator.sol/RollupCreator.dbg.json +1 -1
- package/build/contracts/src/rollup/RollupEventInbox.sol/RollupEventInbox.dbg.json +1 -1
- package/build/contracts/src/rollup/RollupLib.sol/RollupLib.dbg.json +1 -1
- package/build/contracts/src/rollup/RollupProxy.sol/RollupProxy.dbg.json +1 -1
- package/build/contracts/src/rollup/ValidatorWallet.sol/ValidatorWallet.dbg.json +1 -1
- package/build/contracts/src/rollup/ValidatorWalletCreator.sol/ValidatorWalletCreator.dbg.json +1 -1
- package/build/contracts/src/state/Deserialize.sol/Deserialize.dbg.json +1 -1
- package/build/contracts/src/state/GlobalState.sol/GlobalStateLib.dbg.json +1 -1
- package/build/contracts/src/state/Instructions.sol/Instructions.dbg.json +1 -1
- package/build/contracts/src/state/Machine.sol/MachineLib.dbg.json +1 -1
- package/build/contracts/src/state/MerkleProof.sol/MerkleProofLib.dbg.json +1 -1
- package/build/contracts/src/state/Module.sol/ModuleLib.dbg.json +1 -1
- package/build/contracts/src/state/ModuleMemory.sol/ModuleMemoryLib.dbg.json +1 -1
- package/build/contracts/src/state/ModuleMemoryCompact.sol/ModuleMemoryCompactLib.dbg.json +1 -1
- package/build/contracts/src/state/MultiStack.sol/MultiStackLib.dbg.json +1 -1
- package/build/contracts/src/state/PcArray.sol/PcArrayLib.dbg.json +1 -1
- package/build/contracts/src/state/StackFrame.sol/StackFrameLib.dbg.json +1 -1
- package/build/contracts/src/state/Value.sol/ValueLib.dbg.json +1 -1
- package/build/contracts/src/state/ValueArray.sol/ValueArrayLib.dbg.json +1 -1
- package/build/contracts/src/state/ValueStack.sol/ValueStackLib.dbg.json +1 -1
- package/build/contracts/src/stylus/StylusDeployer.sol/StylusDeployer.dbg.json +1 -1
- package/build/contracts/src/stylus/StylusDeployer.sol/StylusDeployer.json +7 -2
- package/build/contracts/src/test-helpers/BridgeTester.sol/BridgeTester.dbg.json +1 -1
- package/build/contracts/src/test-helpers/CryptographyPrimitivesTester.sol/CryptographyPrimitivesTester.dbg.json +1 -1
- package/build/contracts/src/test-helpers/EthVault.sol/EthVault.dbg.json +1 -1
- package/build/contracts/src/test-helpers/MessageTester.sol/MessageTester.dbg.json +1 -1
- package/build/contracts/src/test-helpers/NoReceiveForwarder.sol/ConstructorError.dbg.json +1 -1
- package/build/contracts/src/test-helpers/NoReceiveForwarder.sol/ConstructorFine.dbg.json +1 -1
- package/build/contracts/src/test-helpers/NoReceiveForwarder.sol/NoReceiveForwarder.dbg.json +1 -1
- package/build/contracts/src/test-helpers/NoReceiveForwarder.sol/ReceivingForwarder.dbg.json +1 -1
- package/build/contracts/src/test-helpers/OutboxWithoutOptTester.sol/OutboxWithoutOptTester.dbg.json +1 -1
- package/build/contracts/src/test-helpers/RollupMock.sol/RollupMock.dbg.json +1 -1
- package/build/contracts/src/test-helpers/TestToken.sol/TestToken.dbg.json +1 -1
- package/build/contracts/src/test-helpers/ValueArrayTester.sol/ValueArrayTester.dbg.json +1 -1
- package/package.json +1 -1
- package/src/bridge/extra/ERC20MigrationOutbox.sol +44 -0
- package/src/bridge/extra/IERC20MigrationOutbox.sol +38 -0
- package/src/express-lane-auction/IExpressLaneAuction.sol +4 -0
- package/src/precompiles/ArbNativeTokenManager.sol +39 -0
- package/src/precompiles/ArbOwner.sol +28 -0
- package/src/precompiles/ArbOwnerPublic.sol +10 -0
- package/src/stylus/StylusDeployer.sol +4 -3
- package/build/contracts/src/mocks/ArbOS11To32UpgradeTest.sol/ArbOS11To32UpgradeTest.dbg.json +0 -4
- package/build/contracts/src/mocks/ArbOS11To32UpgradeTest.sol/ArbOS11To32UpgradeTest.json +0 -24
- package/build/contracts/src/mocks/Benchmarks.sol/Benchmarks.dbg.json +0 -4
- package/build/contracts/src/mocks/Benchmarks.sol/Benchmarks.json +0 -46
- package/build/contracts/src/mocks/BigMap.sol/BigMap.dbg.json +0 -4
- package/build/contracts/src/mocks/BigMap.sol/BigMap.json +0 -48
- package/build/contracts/src/mocks/CreateTest.sol/CreateTest.dbg.json +0 -4
- package/build/contracts/src/mocks/CreateTest.sol/CreateTest.json +0 -15
- package/build/contracts/src/mocks/HostioTest.sol/HostioTest.dbg.json +0 -4
- package/build/contracts/src/mocks/HostioTest.sol/HostioTest.json +0 -513
- package/build/contracts/src/mocks/MultiCallTest.sol/MultiCallTest.dbg.json +0 -4
- package/build/contracts/src/mocks/MultiCallTest.sol/MultiCallTest.json +0 -71
- package/build/contracts/src/mocks/PendingBlkTimeAndNrAdvanceCheck.sol/PendingBlkTimeAndNrAdvanceCheck.dbg.json +0 -4
- package/build/contracts/src/mocks/PendingBlkTimeAndNrAdvanceCheck.sol/PendingBlkTimeAndNrAdvanceCheck.json +0 -36
- package/build/contracts/src/mocks/Program.sol/ProgramTest.dbg.json +0 -4
- package/build/contracts/src/mocks/Program.sol/ProgramTest.json +0 -142
- package/build/contracts/src/mocks/ProxyAdminForBinding.sol/ProxyAdminForBinding.dbg.json +0 -4
- package/build/contracts/src/mocks/ProxyAdminForBinding.sol/ProxyAdminForBinding.json +0 -160
- package/build/contracts/src/mocks/SdkStorage.sol/SdkStorage.dbg.json +0 -4
- package/build/contracts/src/mocks/SdkStorage.sol/SdkStorage.json +0 -25
- package/build/contracts/src/mocks/SelfDestruct.sol/SelfDestructInConstructorWithDestination.dbg.json +0 -4
- package/build/contracts/src/mocks/SelfDestruct.sol/SelfDestructInConstructorWithDestination.json +0 -22
- package/build/contracts/src/mocks/SelfDestruct.sol/SelfDestructInConstructorWithoutDestination.dbg.json +0 -4
- package/build/contracts/src/mocks/SelfDestruct.sol/SelfDestructInConstructorWithoutDestination.json +0 -16
- package/build/contracts/src/mocks/SelfDestruct.sol/SelfDestructOutsideConstructor.dbg.json +0 -4
- package/build/contracts/src/mocks/SelfDestruct.sol/SelfDestructOutsideConstructor.json +0 -36
- package/build/contracts/src/mocks/Simple.sol/Simple.dbg.json +0 -4
- package/build/contracts/src/mocks/Simple.sol/Simple.json +0 -303
- package/build/contracts/src/mocks/SimpleCacheManager.sol/SimpleCacheManager.dbg.json +0 -4
- package/build/contracts/src/mocks/SimpleCacheManager.sol/SimpleCacheManager.json +0 -37
- package/build/contracts/src/mocks/SimpleProxy.sol/SimpleProxy.dbg.json +0 -4
- package/build/contracts/src/mocks/SimpleProxy.sol/SimpleProxy.json +0 -30
- package/src/mocks/ArbOS11To32UpgradeTest.sol +0 -18
- package/src/mocks/Benchmarks.sol +0 -52
- package/src/mocks/BigMap.sol +0 -23
- package/src/mocks/CreateTest.sol +0 -44
- package/src/mocks/HostioTest.sol +0 -200
- package/src/mocks/MultiCallTest.sol +0 -119
- package/src/mocks/PendingBlkTimeAndNrAdvanceCheck.sol +0 -31
- package/src/mocks/Program.sol +0 -128
- package/src/mocks/ProxyAdminForBinding.sol +0 -9
- package/src/mocks/SdkStorage.sol +0 -176
- package/src/mocks/SelfDestruct.sol +0 -33
- package/src/mocks/Simple.sol +0 -168
- package/src/mocks/SimpleCacheManager.sol +0 -29
- package/src/mocks/SimpleProxy.sol +0 -21
@@ -1,303 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "Simple",
|
4
|
-
"sourceName": "src/mocks/Simple.sol",
|
5
|
-
"abi": [
|
6
|
-
{
|
7
|
-
"anonymous": false,
|
8
|
-
"inputs": [
|
9
|
-
{
|
10
|
-
"indexed": false,
|
11
|
-
"internalType": "uint64",
|
12
|
-
"name": "count",
|
13
|
-
"type": "uint64"
|
14
|
-
}
|
15
|
-
],
|
16
|
-
"name": "CounterEvent",
|
17
|
-
"type": "event"
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"anonymous": false,
|
21
|
-
"inputs": [
|
22
|
-
{
|
23
|
-
"indexed": false,
|
24
|
-
"internalType": "uint256",
|
25
|
-
"name": "expected",
|
26
|
-
"type": "uint256"
|
27
|
-
},
|
28
|
-
{
|
29
|
-
"indexed": false,
|
30
|
-
"internalType": "uint256",
|
31
|
-
"name": "have",
|
32
|
-
"type": "uint256"
|
33
|
-
}
|
34
|
-
],
|
35
|
-
"name": "LogAndIncrementCalled",
|
36
|
-
"type": "event"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"anonymous": false,
|
40
|
-
"inputs": [],
|
41
|
-
"name": "NullEvent",
|
42
|
-
"type": "event"
|
43
|
-
},
|
44
|
-
{
|
45
|
-
"anonymous": false,
|
46
|
-
"inputs": [
|
47
|
-
{
|
48
|
-
"indexed": false,
|
49
|
-
"internalType": "address",
|
50
|
-
"name": "caller",
|
51
|
-
"type": "address"
|
52
|
-
},
|
53
|
-
{
|
54
|
-
"indexed": false,
|
55
|
-
"internalType": "address",
|
56
|
-
"name": "redeemer",
|
57
|
-
"type": "address"
|
58
|
-
}
|
59
|
-
],
|
60
|
-
"name": "RedeemedEvent",
|
61
|
-
"type": "event"
|
62
|
-
},
|
63
|
-
{
|
64
|
-
"inputs": [],
|
65
|
-
"name": "checkBlockHashes",
|
66
|
-
"outputs": [
|
67
|
-
{
|
68
|
-
"internalType": "uint256",
|
69
|
-
"name": "",
|
70
|
-
"type": "uint256"
|
71
|
-
}
|
72
|
-
],
|
73
|
-
"stateMutability": "view",
|
74
|
-
"type": "function"
|
75
|
-
},
|
76
|
-
{
|
77
|
-
"inputs": [
|
78
|
-
{
|
79
|
-
"internalType": "bool",
|
80
|
-
"name": "useTopLevel",
|
81
|
-
"type": "bool"
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"internalType": "bool",
|
85
|
-
"name": "directCase",
|
86
|
-
"type": "bool"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"internalType": "bool",
|
90
|
-
"name": "staticCase",
|
91
|
-
"type": "bool"
|
92
|
-
},
|
93
|
-
{
|
94
|
-
"internalType": "bool",
|
95
|
-
"name": "delegateCase",
|
96
|
-
"type": "bool"
|
97
|
-
},
|
98
|
-
{
|
99
|
-
"internalType": "bool",
|
100
|
-
"name": "callcodeCase",
|
101
|
-
"type": "bool"
|
102
|
-
},
|
103
|
-
{
|
104
|
-
"internalType": "bool",
|
105
|
-
"name": "callCase",
|
106
|
-
"type": "bool"
|
107
|
-
}
|
108
|
-
],
|
109
|
-
"name": "checkCalls",
|
110
|
-
"outputs": [],
|
111
|
-
"stateMutability": "nonpayable",
|
112
|
-
"type": "function"
|
113
|
-
},
|
114
|
-
{
|
115
|
-
"inputs": [
|
116
|
-
{
|
117
|
-
"internalType": "address",
|
118
|
-
"name": "to",
|
119
|
-
"type": "address"
|
120
|
-
},
|
121
|
-
{
|
122
|
-
"internalType": "bytes",
|
123
|
-
"name": "input",
|
124
|
-
"type": "bytes"
|
125
|
-
}
|
126
|
-
],
|
127
|
-
"name": "checkGasUsed",
|
128
|
-
"outputs": [
|
129
|
-
{
|
130
|
-
"internalType": "uint256",
|
131
|
-
"name": "",
|
132
|
-
"type": "uint256"
|
133
|
-
}
|
134
|
-
],
|
135
|
-
"stateMutability": "view",
|
136
|
-
"type": "function"
|
137
|
-
},
|
138
|
-
{
|
139
|
-
"inputs": [
|
140
|
-
{
|
141
|
-
"internalType": "bool",
|
142
|
-
"name": "useTopLevel",
|
143
|
-
"type": "bool"
|
144
|
-
},
|
145
|
-
{
|
146
|
-
"internalType": "bool",
|
147
|
-
"name": "expected",
|
148
|
-
"type": "bool"
|
149
|
-
}
|
150
|
-
],
|
151
|
-
"name": "checkIsTopLevelOrWasAliased",
|
152
|
-
"outputs": [],
|
153
|
-
"stateMutability": "view",
|
154
|
-
"type": "function"
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"inputs": [],
|
158
|
-
"name": "counter",
|
159
|
-
"outputs": [
|
160
|
-
{
|
161
|
-
"internalType": "uint64",
|
162
|
-
"name": "",
|
163
|
-
"type": "uint64"
|
164
|
-
}
|
165
|
-
],
|
166
|
-
"stateMutability": "view",
|
167
|
-
"type": "function"
|
168
|
-
},
|
169
|
-
{
|
170
|
-
"inputs": [],
|
171
|
-
"name": "difficulty",
|
172
|
-
"outputs": [
|
173
|
-
{
|
174
|
-
"internalType": "uint256",
|
175
|
-
"name": "",
|
176
|
-
"type": "uint256"
|
177
|
-
}
|
178
|
-
],
|
179
|
-
"stateMutability": "view",
|
180
|
-
"type": "function"
|
181
|
-
},
|
182
|
-
{
|
183
|
-
"inputs": [],
|
184
|
-
"name": "emitNullEvent",
|
185
|
-
"outputs": [],
|
186
|
-
"stateMutability": "nonpayable",
|
187
|
-
"type": "function"
|
188
|
-
},
|
189
|
-
{
|
190
|
-
"inputs": [],
|
191
|
-
"name": "getBlockDifficulty",
|
192
|
-
"outputs": [
|
193
|
-
{
|
194
|
-
"internalType": "uint256",
|
195
|
-
"name": "",
|
196
|
-
"type": "uint256"
|
197
|
-
}
|
198
|
-
],
|
199
|
-
"stateMutability": "view",
|
200
|
-
"type": "function"
|
201
|
-
},
|
202
|
-
{
|
203
|
-
"inputs": [],
|
204
|
-
"name": "increment",
|
205
|
-
"outputs": [],
|
206
|
-
"stateMutability": "nonpayable",
|
207
|
-
"type": "function"
|
208
|
-
},
|
209
|
-
{
|
210
|
-
"inputs": [],
|
211
|
-
"name": "incrementEmit",
|
212
|
-
"outputs": [],
|
213
|
-
"stateMutability": "nonpayable",
|
214
|
-
"type": "function"
|
215
|
-
},
|
216
|
-
{
|
217
|
-
"inputs": [],
|
218
|
-
"name": "incrementRedeem",
|
219
|
-
"outputs": [],
|
220
|
-
"stateMutability": "nonpayable",
|
221
|
-
"type": "function"
|
222
|
-
},
|
223
|
-
{
|
224
|
-
"inputs": [
|
225
|
-
{
|
226
|
-
"internalType": "uint256",
|
227
|
-
"name": "expected",
|
228
|
-
"type": "uint256"
|
229
|
-
}
|
230
|
-
],
|
231
|
-
"name": "logAndIncrement",
|
232
|
-
"outputs": [],
|
233
|
-
"stateMutability": "nonpayable",
|
234
|
-
"type": "function"
|
235
|
-
},
|
236
|
-
{
|
237
|
-
"inputs": [],
|
238
|
-
"name": "noop",
|
239
|
-
"outputs": [],
|
240
|
-
"stateMutability": "pure",
|
241
|
-
"type": "function"
|
242
|
-
},
|
243
|
-
{
|
244
|
-
"inputs": [],
|
245
|
-
"name": "pleaseRevert",
|
246
|
-
"outputs": [],
|
247
|
-
"stateMutability": "pure",
|
248
|
-
"type": "function"
|
249
|
-
},
|
250
|
-
{
|
251
|
-
"inputs": [
|
252
|
-
{
|
253
|
-
"internalType": "contract ISequencerInbox",
|
254
|
-
"name": "sequencerInbox",
|
255
|
-
"type": "address"
|
256
|
-
},
|
257
|
-
{
|
258
|
-
"internalType": "bytes",
|
259
|
-
"name": "batchData",
|
260
|
-
"type": "bytes"
|
261
|
-
},
|
262
|
-
{
|
263
|
-
"internalType": "uint256",
|
264
|
-
"name": "numberToPost",
|
265
|
-
"type": "uint256"
|
266
|
-
}
|
267
|
-
],
|
268
|
-
"name": "postManyBatches",
|
269
|
-
"outputs": [],
|
270
|
-
"stateMutability": "nonpayable",
|
271
|
-
"type": "function"
|
272
|
-
},
|
273
|
-
{
|
274
|
-
"inputs": [
|
275
|
-
{
|
276
|
-
"internalType": "bytes32[]",
|
277
|
-
"name": "ticketIds",
|
278
|
-
"type": "bytes32[]"
|
279
|
-
},
|
280
|
-
{
|
281
|
-
"internalType": "address payable[]",
|
282
|
-
"name": "addresses",
|
283
|
-
"type": "address[]"
|
284
|
-
}
|
285
|
-
],
|
286
|
-
"name": "redeemAllAndCreateAddresses",
|
287
|
-
"outputs": [],
|
288
|
-
"stateMutability": "payable",
|
289
|
-
"type": "function"
|
290
|
-
},
|
291
|
-
{
|
292
|
-
"inputs": [],
|
293
|
-
"name": "storeDifficulty",
|
294
|
-
"outputs": [],
|
295
|
-
"stateMutability": "nonpayable",
|
296
|
-
"type": "function"
|
297
|
-
}
|
298
|
-
],
|
299
|
-
"bytecode": "0x608060405234801561001057600080fd5b5061155b806100206000396000f3fe60806040526004361061010e5760003560e01c806361bc221a116100a5578063b226a96411610074578063cff36f2d11610059578063cff36f2d14610291578063d09de08a146102a7578063ded5ecad146102bc57600080fd5b8063b226a96414610269578063b2b6f0901461027e57600080fd5b806361bc221a146101da5780638a390877146102145780639ff5ccac14610234578063b1948fc31461024957600080fd5b80631a2f8a92116100e15780631a2f8a921461017957806344c25fba146101995780635677c11e146101b95780635dfc2e4a146101ce57600080fd5b806305795f73146101135780630e8c389f1461012a57806312e05dd11461013f57806319cae46214610163575b600080fd5b34801561011f57600080fd5b506101286102dc565b005b34801561013657600080fd5b50610128610329565b34801561014b57600080fd5b506001545b6040519081526020015b60405180910390f35b34801561016f57600080fd5b5061015060015481565b34801561018557600080fd5b50610150610194366004611059565b610512565b3480156101a557600080fd5b506101286101b43660046110ec565b610596565b3480156101c557600080fd5b50610150610a1f565b34801561012857600080fd5b3480156101e657600080fd5b506000546101fb9067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161015a565b34801561022057600080fd5b5061012861022f36600461116e565b610a8b565b34801561024057600080fd5b50610128610b14565b34801561025557600080fd5b5061012861026436600461119d565b610b83565b34801561027557600080fd5b50610128610d05565b61012861028c3660046112b6565b610d30565b34801561029d57600080fd5b5061012844600155565b3480156102b357600080fd5b50610128610efe565b3480156102c857600080fd5b506101286102d7366004611322565b610f40565b60405162461bcd60e51b815260206004820152601260248201527f534f4c49444954595f524556455254494e47000000000000000000000000000060448201526064015b60405180910390fd5b3332146103785760405162461bcd60e51b815260206004820152601160248201527f53454e4445525f4e4f545f4f524947494e0000000000000000000000000000006044820152606401610320565b60646001600160a01b031663175a260b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103db919061135b565b6104275760405162461bcd60e51b815260206004820152600b60248201527f4e4f545f414c49415345440000000000000000000000000000000000000000006044820152606401610320565b6000805467ffffffffffffffff16908061044083611395565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550507f773c78bf96e65f61c1a2622b47d76e78bfe70dd59cf4f11470c4c121c315941333606e6001600160a01b031663de4ba2b36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ec91906113bc565b604080516001600160a01b039384168152929091166020830152015b60405180910390a1565b6000805a90506001600160a01b03851661052e612710836113d9565b858560405161053e9291906113f2565b6000604051808303818686fa925050503d806000811461057a576040519150601f19603f3d011682016040523d82523d6000602084013e61057f565b606091505b5050505a61058d90826113d9565b95945050505050565b85156106565784151560646001600160a01b03166308bd624c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610602919061135b565b1515146106515760405162461bcd60e51b815260206004820152601160248201527f554e45585045435445445f524553554c540000000000000000000000000000006044820152606401610320565b61070b565b84151560646001600160a01b031663175a260b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610698573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bc919061135b565b15151461070b5760405162461bcd60e51b815260206004820152601160248201527f554e45585045435445445f524553554c540000000000000000000000000000006044820152606401610320565b60405163ded5ecad60e01b815286151560048201528415156024820152309063ded5ecad9060440160006040518083038186803b15801561074b57600080fd5b505afa15801561075f573d6000803e3d6000fd5b505060408051891515602482015286151560448083019190915282518083039091018152606490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663ded5ecad60e01b17905290519092506000915030906107cf908490611426565b600060405180830381855af49150503d806000811461080a576040519150601f19603f3d011682016040523d82523d6000602084013e61080f565b606091505b50509050806108605760405162461bcd60e51b815260206004820152601460248201527f44454c45474154455f43414c4c5f4641494c45440000000000000000000000006044820152606401610320565b6040805189151560248201528515156044808301919091528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663ded5ecad60e01b1781528151919350600091829182305af29050806109165760405162461bcd60e51b815260206004820152600f60248201527f43414c4c434f44455f4641494c454400000000000000000000000000000000006044820152606401610320565b60408051891515602482015284151560448083019190915282518083039091018152606490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663ded5ecad60e01b17905290519092503090610980908490611426565b6000604051808303816000865af19150503d80600081146109bd576040519150601f19603f3d011682016040523d82523d6000602084013e6109c2565b606091505b50508091505080610a155760405162461bcd60e51b815260206004820152600b60248201527f43414c4c5f4641494c45440000000000000000000000000000000000000000006044820152606401610320565b5050505050505050565b6000610a2c6002436113d9565b40610a386001436113d9565b4003610a865760405162461bcd60e51b815260206004820152600f60248201527f53414d455f424c4f434b5f4841534800000000000000000000000000000000006044820152606401610320565b504390565b6000546040805183815267ffffffffffffffff90921660208301527f8df8e492f407b078593c5d8fd7e65ef68505999d911d5b99b017c0b7077398b9910160405180910390a16000805467ffffffffffffffff169080610aea83611395565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b6000805467ffffffffffffffff169080610b2d83611395565b82546101009290920a67ffffffffffffffff818102199093169183160217909155600054604051911681527fa45d7e79cb3c6044f30c8dd891e6571301d6b8b6618df519c987905ec70742e79150602001610508565b6000836001600160a01b03166306f130566040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190611442565b90506000846001600160a01b0316637fa3a40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4d9190611442565b905060005b83811015610cfd576040517fe0bc97290000000000000000000000000000000000000000000000000000000081526001600160a01b0387169063e0bc972990610caa908690899087906000908190819060040161145b565b600060405180830381600087803b158015610cc457600080fd5b505af1158015610cd8573d6000803e3d6000fd5b505050508280610ce7906114ba565b9350508080610cf5906114ba565b915050610c52565b505050505050565b6040517f6f59c82101949290205a9ae9d0c657e6dae1a71c301ae76d385c2792294585fe90600090a1565b60005b83811015610e7d57606e63eda1122c620186a0878785818110610d5857610d586114f2565b905060200201356040518363ffffffff1660e01b8152600401610d7d91815260200190565b60206040518083038160008887f193505050508015610db9575060408051601f3d908101601f19168201909252610db691810190611442565b60015b610e2a5760405162461bcd60e51b8152602060048201526024808201527f4661696c656420746f2072656465656d206f6e65206f72206d6f72652074696360448201527f6b657473000000000000000000000000000000000000000000000000000000006064820152608401610320565b506000805467ffffffffffffffff169080610e4483611395565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505080610e75816114ba565b915050610d33565b5060005b81811015610ef757828282818110610e9b57610e9b6114f2565b9050602002016020810190610eb09190611508565b6040516001600160a01b03919091169060009060019082818181858883f19350505050158015610ee4573d6000803e3d6000fd5b5080610eef816114ba565b915050610e81565b5050505050565b6000805467ffffffffffffffff169080610f1783611395565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b8115610fff5780151560646001600160a01b03166308bd624c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fac919061135b565b151514610ffb5760405162461bcd60e51b815260206004820152601160248201527f554e45585045435445445f524553554c540000000000000000000000000000006044820152606401610320565b5050565b80151560646001600160a01b031663175a260b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f88573d6000803e3d6000fd5b6001600160a01b038116811461105657600080fd5b50565b60008060006040848603121561106e57600080fd5b833561107981611041565b9250602084013567ffffffffffffffff8082111561109657600080fd5b818601915086601f8301126110aa57600080fd5b8135818111156110b957600080fd5b8760208285010111156110cb57600080fd5b6020830194508093505050509250925092565b801515811461105657600080fd5b60008060008060008060c0878903121561110557600080fd5b8635611110816110de565b95506020870135611120816110de565b94506040870135611130816110de565b93506060870135611140816110de565b92506080870135611150816110de565b915060a0870135611160816110de565b809150509295509295509295565b60006020828403121561118057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156111b257600080fd5b83356111bd81611041565b9250602084013567ffffffffffffffff808211156111da57600080fd5b818601915086601f8301126111ee57600080fd5b81358181111561120057611200611187565b604051601f8201601f19908116603f0116810190838211818310171561122857611228611187565b8160405282815289602084870101111561124157600080fd5b826020860160208301376000602084830101528096505050505050604084013590509250925092565b60008083601f84011261127c57600080fd5b50813567ffffffffffffffff81111561129457600080fd5b6020830191508360208260051b85010111156112af57600080fd5b9250929050565b600080600080604085870312156112cc57600080fd5b843567ffffffffffffffff808211156112e457600080fd5b6112f08883890161126a565b9096509450602087013591508082111561130957600080fd5b506113168782880161126a565b95989497509550505050565b6000806040838503121561133557600080fd5b8235611340816110de565b91506020830135611350816110de565b809150509250929050565b60006020828403121561136d57600080fd5b8151611378816110de565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600067ffffffffffffffff8083168181036113b2576113b261137f565b6001019392505050565b6000602082840312156113ce57600080fd5b815161137881611041565b818103818111156113ec576113ec61137f565b92915050565b8183823760009101908152919050565b60005b8381101561141d578181015183820152602001611405565b50506000910152565b60008251611438818460208701611402565b9190910192915050565b60006020828403121561145457600080fd5b5051919050565b86815260c06020820152600086518060c08401526114808160e0850160208b01611402565b6040830196909652506001600160a01b03939093166060840152608083019190915260a082015260e0601f909201601f1916010192915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114eb576114eb61137f565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561151a57600080fd5b81356113788161104156fea2646970667358221220cc2304f3f5e5a961a2bcb37934cea36c9c89daa2cdf43066d1dbc6e942f36c5a64736f6c63430008110033",
|
300
|
-
"deployedBytecode": "0x60806040526004361061010e5760003560e01c806361bc221a116100a5578063b226a96411610074578063cff36f2d11610059578063cff36f2d14610291578063d09de08a146102a7578063ded5ecad146102bc57600080fd5b8063b226a96414610269578063b2b6f0901461027e57600080fd5b806361bc221a146101da5780638a390877146102145780639ff5ccac14610234578063b1948fc31461024957600080fd5b80631a2f8a92116100e15780631a2f8a921461017957806344c25fba146101995780635677c11e146101b95780635dfc2e4a146101ce57600080fd5b806305795f73146101135780630e8c389f1461012a57806312e05dd11461013f57806319cae46214610163575b600080fd5b34801561011f57600080fd5b506101286102dc565b005b34801561013657600080fd5b50610128610329565b34801561014b57600080fd5b506001545b6040519081526020015b60405180910390f35b34801561016f57600080fd5b5061015060015481565b34801561018557600080fd5b50610150610194366004611059565b610512565b3480156101a557600080fd5b506101286101b43660046110ec565b610596565b3480156101c557600080fd5b50610150610a1f565b34801561012857600080fd5b3480156101e657600080fd5b506000546101fb9067ffffffffffffffff1681565b60405167ffffffffffffffff909116815260200161015a565b34801561022057600080fd5b5061012861022f36600461116e565b610a8b565b34801561024057600080fd5b50610128610b14565b34801561025557600080fd5b5061012861026436600461119d565b610b83565b34801561027557600080fd5b50610128610d05565b61012861028c3660046112b6565b610d30565b34801561029d57600080fd5b5061012844600155565b3480156102b357600080fd5b50610128610efe565b3480156102c857600080fd5b506101286102d7366004611322565b610f40565b60405162461bcd60e51b815260206004820152601260248201527f534f4c49444954595f524556455254494e47000000000000000000000000000060448201526064015b60405180910390fd5b3332146103785760405162461bcd60e51b815260206004820152601160248201527f53454e4445525f4e4f545f4f524947494e0000000000000000000000000000006044820152606401610320565b60646001600160a01b031663175a260b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103db919061135b565b6104275760405162461bcd60e51b815260206004820152600b60248201527f4e4f545f414c49415345440000000000000000000000000000000000000000006044820152606401610320565b6000805467ffffffffffffffff16908061044083611395565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550507f773c78bf96e65f61c1a2622b47d76e78bfe70dd59cf4f11470c4c121c315941333606e6001600160a01b031663de4ba2b36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156104c8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ec91906113bc565b604080516001600160a01b039384168152929091166020830152015b60405180910390a1565b6000805a90506001600160a01b03851661052e612710836113d9565b858560405161053e9291906113f2565b6000604051808303818686fa925050503d806000811461057a576040519150601f19603f3d011682016040523d82523d6000602084013e61057f565b606091505b5050505a61058d90826113d9565b95945050505050565b85156106565784151560646001600160a01b03166308bd624c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105de573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610602919061135b565b1515146106515760405162461bcd60e51b815260206004820152601160248201527f554e45585045435445445f524553554c540000000000000000000000000000006044820152606401610320565b61070b565b84151560646001600160a01b031663175a260b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610698573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106bc919061135b565b15151461070b5760405162461bcd60e51b815260206004820152601160248201527f554e45585045435445445f524553554c540000000000000000000000000000006044820152606401610320565b60405163ded5ecad60e01b815286151560048201528415156024820152309063ded5ecad9060440160006040518083038186803b15801561074b57600080fd5b505afa15801561075f573d6000803e3d6000fd5b505060408051891515602482015286151560448083019190915282518083039091018152606490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663ded5ecad60e01b17905290519092506000915030906107cf908490611426565b600060405180830381855af49150503d806000811461080a576040519150601f19603f3d011682016040523d82523d6000602084013e61080f565b606091505b50509050806108605760405162461bcd60e51b815260206004820152601460248201527f44454c45474154455f43414c4c5f4641494c45440000000000000000000000006044820152606401610320565b6040805189151560248201528515156044808301919091528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663ded5ecad60e01b1781528151919350600091829182305af29050806109165760405162461bcd60e51b815260206004820152600f60248201527f43414c4c434f44455f4641494c454400000000000000000000000000000000006044820152606401610320565b60408051891515602482015284151560448083019190915282518083039091018152606490910182526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663ded5ecad60e01b17905290519092503090610980908490611426565b6000604051808303816000865af19150503d80600081146109bd576040519150601f19603f3d011682016040523d82523d6000602084013e6109c2565b606091505b50508091505080610a155760405162461bcd60e51b815260206004820152600b60248201527f43414c4c5f4641494c45440000000000000000000000000000000000000000006044820152606401610320565b5050505050505050565b6000610a2c6002436113d9565b40610a386001436113d9565b4003610a865760405162461bcd60e51b815260206004820152600f60248201527f53414d455f424c4f434b5f4841534800000000000000000000000000000000006044820152606401610320565b504390565b6000546040805183815267ffffffffffffffff90921660208301527f8df8e492f407b078593c5d8fd7e65ef68505999d911d5b99b017c0b7077398b9910160405180910390a16000805467ffffffffffffffff169080610aea83611395565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505050565b6000805467ffffffffffffffff169080610b2d83611395565b82546101009290920a67ffffffffffffffff818102199093169183160217909155600054604051911681527fa45d7e79cb3c6044f30c8dd891e6571301d6b8b6618df519c987905ec70742e79150602001610508565b6000836001600160a01b03166306f130566040518163ffffffff1660e01b8152600401602060405180830381865afa158015610bc3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610be79190611442565b90506000846001600160a01b0316637fa3a40e6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c4d9190611442565b905060005b83811015610cfd576040517fe0bc97290000000000000000000000000000000000000000000000000000000081526001600160a01b0387169063e0bc972990610caa908690899087906000908190819060040161145b565b600060405180830381600087803b158015610cc457600080fd5b505af1158015610cd8573d6000803e3d6000fd5b505050508280610ce7906114ba565b9350508080610cf5906114ba565b915050610c52565b505050505050565b6040517f6f59c82101949290205a9ae9d0c657e6dae1a71c301ae76d385c2792294585fe90600090a1565b60005b83811015610e7d57606e63eda1122c620186a0878785818110610d5857610d586114f2565b905060200201356040518363ffffffff1660e01b8152600401610d7d91815260200190565b60206040518083038160008887f193505050508015610db9575060408051601f3d908101601f19168201909252610db691810190611442565b60015b610e2a5760405162461bcd60e51b8152602060048201526024808201527f4661696c656420746f2072656465656d206f6e65206f72206d6f72652074696360448201527f6b657473000000000000000000000000000000000000000000000000000000006064820152608401610320565b506000805467ffffffffffffffff169080610e4483611395565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505080610e75816114ba565b915050610d33565b5060005b81811015610ef757828282818110610e9b57610e9b6114f2565b9050602002016020810190610eb09190611508565b6040516001600160a01b03919091169060009060019082818181858883f19350505050158015610ee4573d6000803e3d6000fd5b5080610eef816114ba565b915050610e81565b5050505050565b6000805467ffffffffffffffff169080610f1783611395565b91906101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555050565b8115610fff5780151560646001600160a01b03166308bd624c6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f88573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fac919061135b565b151514610ffb5760405162461bcd60e51b815260206004820152601160248201527f554e45585045435445445f524553554c540000000000000000000000000000006044820152606401610320565b5050565b80151560646001600160a01b031663175a260b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f88573d6000803e3d6000fd5b6001600160a01b038116811461105657600080fd5b50565b60008060006040848603121561106e57600080fd5b833561107981611041565b9250602084013567ffffffffffffffff8082111561109657600080fd5b818601915086601f8301126110aa57600080fd5b8135818111156110b957600080fd5b8760208285010111156110cb57600080fd5b6020830194508093505050509250925092565b801515811461105657600080fd5b60008060008060008060c0878903121561110557600080fd5b8635611110816110de565b95506020870135611120816110de565b94506040870135611130816110de565b93506060870135611140816110de565b92506080870135611150816110de565b915060a0870135611160816110de565b809150509295509295509295565b60006020828403121561118057600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b6000806000606084860312156111b257600080fd5b83356111bd81611041565b9250602084013567ffffffffffffffff808211156111da57600080fd5b818601915086601f8301126111ee57600080fd5b81358181111561120057611200611187565b604051601f8201601f19908116603f0116810190838211818310171561122857611228611187565b8160405282815289602084870101111561124157600080fd5b826020860160208301376000602084830101528096505050505050604084013590509250925092565b60008083601f84011261127c57600080fd5b50813567ffffffffffffffff81111561129457600080fd5b6020830191508360208260051b85010111156112af57600080fd5b9250929050565b600080600080604085870312156112cc57600080fd5b843567ffffffffffffffff808211156112e457600080fd5b6112f08883890161126a565b9096509450602087013591508082111561130957600080fd5b506113168782880161126a565b95989497509550505050565b6000806040838503121561133557600080fd5b8235611340816110de565b91506020830135611350816110de565b809150509250929050565b60006020828403121561136d57600080fd5b8151611378816110de565b9392505050565b634e487b7160e01b600052601160045260246000fd5b600067ffffffffffffffff8083168181036113b2576113b261137f565b6001019392505050565b6000602082840312156113ce57600080fd5b815161137881611041565b818103818111156113ec576113ec61137f565b92915050565b8183823760009101908152919050565b60005b8381101561141d578181015183820152602001611405565b50506000910152565b60008251611438818460208701611402565b9190910192915050565b60006020828403121561145457600080fd5b5051919050565b86815260c06020820152600086518060c08401526114808160e0850160208b01611402565b6040830196909652506001600160a01b03939093166060840152608083019190915260a082015260e0601f909201601f1916010192915050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114eb576114eb61137f565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60006020828403121561151a57600080fd5b81356113788161104156fea2646970667358221220cc2304f3f5e5a961a2bcb37934cea36c9c89daa2cdf43066d1dbc6e942f36c5a64736f6c63430008110033",
|
301
|
-
"linkReferences": {},
|
302
|
-
"deployedLinkReferences": {}
|
303
|
-
}
|
@@ -1,37 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "SimpleCacheManager",
|
4
|
-
"sourceName": "src/mocks/SimpleCacheManager.sol",
|
5
|
-
"abi": [
|
6
|
-
{
|
7
|
-
"inputs": [
|
8
|
-
{
|
9
|
-
"internalType": "address",
|
10
|
-
"name": "program",
|
11
|
-
"type": "address"
|
12
|
-
}
|
13
|
-
],
|
14
|
-
"name": "cacheProgram",
|
15
|
-
"outputs": [],
|
16
|
-
"stateMutability": "nonpayable",
|
17
|
-
"type": "function"
|
18
|
-
},
|
19
|
-
{
|
20
|
-
"inputs": [
|
21
|
-
{
|
22
|
-
"internalType": "address",
|
23
|
-
"name": "program",
|
24
|
-
"type": "address"
|
25
|
-
}
|
26
|
-
],
|
27
|
-
"name": "evictProgram",
|
28
|
-
"outputs": [],
|
29
|
-
"stateMutability": "nonpayable",
|
30
|
-
"type": "function"
|
31
|
-
}
|
32
|
-
],
|
33
|
-
"bytecode": "0x608060405234801561001057600080fd5b50610198806100206000396000f3fe608060405234801561001057600080fd5b50600436106100365760003560e01c80636c769c091461003b578063e73ac9f214610050575b600080fd5b61004e610049366004610125565b610063565b005b61004e61005e366004610125565b6100d2565b6040517fce972013000000000000000000000000000000000000000000000000000000008152813f600482015260729063ce972013906024015b600060405180830381600087803b1580156100b757600080fd5b505af11580156100cb573d6000803e3d6000fd5b5050505050565b6040517fe73ac9f200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8216600482015260729063e73ac9f29060240161009d565b60006020828403121561013757600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461015b57600080fd5b939250505056fea26469706673582212207872da7a71ed940a972ebcf425cf787b977fab5cf910d13b185b764629096e0264736f6c63430008110033",
|
34
|
-
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100365760003560e01c80636c769c091461003b578063e73ac9f214610050575b600080fd5b61004e610049366004610125565b610063565b005b61004e61005e366004610125565b6100d2565b6040517fce972013000000000000000000000000000000000000000000000000000000008152813f600482015260729063ce972013906024015b600060405180830381600087803b1580156100b757600080fd5b505af11580156100cb573d6000803e3d6000fd5b5050505050565b6040517fe73ac9f200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8216600482015260729063e73ac9f29060240161009d565b60006020828403121561013757600080fd5b813573ffffffffffffffffffffffffffffffffffffffff8116811461015b57600080fd5b939250505056fea26469706673582212207872da7a71ed940a972ebcf425cf787b977fab5cf910d13b185b764629096e0264736f6c63430008110033",
|
35
|
-
"linkReferences": {},
|
36
|
-
"deployedLinkReferences": {}
|
37
|
-
}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"_format": "hh-sol-artifact-1",
|
3
|
-
"contractName": "SimpleProxy",
|
4
|
-
"sourceName": "src/mocks/SimpleProxy.sol",
|
5
|
-
"abi": [
|
6
|
-
{
|
7
|
-
"inputs": [
|
8
|
-
{
|
9
|
-
"internalType": "address",
|
10
|
-
"name": "impl_",
|
11
|
-
"type": "address"
|
12
|
-
}
|
13
|
-
],
|
14
|
-
"stateMutability": "nonpayable",
|
15
|
-
"type": "constructor"
|
16
|
-
},
|
17
|
-
{
|
18
|
-
"stateMutability": "payable",
|
19
|
-
"type": "fallback"
|
20
|
-
},
|
21
|
-
{
|
22
|
-
"stateMutability": "payable",
|
23
|
-
"type": "receive"
|
24
|
-
}
|
25
|
-
],
|
26
|
-
"bytecode": "0x60a060405234801561001057600080fd5b5060405161011d38038061011d83398101604081905261002f91610040565b6001600160a01b0316608052610070565b60006020828403121561005257600080fd5b81516001600160a01b038116811461006957600080fd5b9392505050565b608051609561008860003960006017015260956000f3fe608060405236601057600e6013565b005b600e5b603a7f0000000000000000000000000000000000000000000000000000000000000000603c565b565b3660008037600080366000845af43d6000803e808015605a573d6000f35b3d6000fdfea2646970667358221220fd97eb7ab561ce9de75836f84b9a83564b7717b6ab82a9c6dbfb2cadebc7610b64736f6c63430008110033",
|
27
|
-
"deployedBytecode": "0x608060405236601057600e6013565b005b600e5b603a7f0000000000000000000000000000000000000000000000000000000000000000603c565b565b3660008037600080366000845af43d6000803e808015605a573d6000f35b3d6000fdfea2646970667358221220fd97eb7ab561ce9de75836f84b9a83564b7717b6ab82a9c6dbfb2cadebc7610b64736f6c63430008110033",
|
28
|
-
"linkReferences": {},
|
29
|
-
"deployedLinkReferences": {}
|
30
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// Copyright 2024, Offchain Labs, Inc.
|
2
|
-
// For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE
|
3
|
-
// SPDX-License-Identifier: BUSL-1.1
|
4
|
-
|
5
|
-
pragma solidity ^0.8.24;
|
6
|
-
|
7
|
-
import "../precompiles/ArbSys.sol";
|
8
|
-
|
9
|
-
contract ArbOS11To32UpgradeTest {
|
10
|
-
function mcopy() external returns (bytes32 x) {
|
11
|
-
assembly {
|
12
|
-
mstore(0x20, 0x9) // Store 0x9 at word 1 in memory
|
13
|
-
mcopy(0, 0x20, 0x20) // Copies 0x9 to word 0 in memory
|
14
|
-
x := mload(0) // Returns 32 bytes "0x9"
|
15
|
-
}
|
16
|
-
require(ArbSys(address(0x64)).arbOSVersion() == 55 + 32, "EXPECTED_ARBOS_32");
|
17
|
-
}
|
18
|
-
}
|
package/src/mocks/Benchmarks.sol
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
// Copyright 2022-2023, Offchain Labs, Inc.
|
2
|
-
// For license information, see https://github.com/nitro/blob/master/LICENSE
|
3
|
-
// SPDX-License-Identifier: BUSL-1.1
|
4
|
-
|
5
|
-
pragma solidity ^0.8.0;
|
6
|
-
|
7
|
-
contract Benchmarks {
|
8
|
-
function fillBlockRecover() external payable {
|
9
|
-
bytes32 bridgeToNova = 0xeddecf107b5740cef7f5a01e3ea7e287665c4e75a8eb6afae2fda2e3d4367786;
|
10
|
-
address cryptoIsCute = 0x361594F5429D23ECE0A88E4fBE529E1c49D524d8;
|
11
|
-
uint8 v = 27;
|
12
|
-
bytes32 r = 0xc6178c2de1078cd36c3bd302cde755340d7f17fcb3fcc0b9c333ba03b217029f;
|
13
|
-
bytes32 s = 0x5fdbcefe2675e96219cdae57a7894280bf80fd40d44ce146a35e169ea6a78fd3;
|
14
|
-
while (true) {
|
15
|
-
require(ecrecover(bridgeToNova, v, r, s) == cryptoIsCute, "WRONG_ARBINAUT");
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
function fillBlockMulMod() external payable {
|
20
|
-
uint256 value = 0xeddecf107b5740cef7f5a01e3ea7e287665c4e75a8eb6afae2fda2e3d4367786;
|
21
|
-
while (true) {
|
22
|
-
value = mulmod(
|
23
|
-
value,
|
24
|
-
0xc6178c2de1078cd36c3bd302cde755340d7f17fcb3fcc0b9c333ba03b217029f,
|
25
|
-
0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f
|
26
|
-
);
|
27
|
-
}
|
28
|
-
}
|
29
|
-
|
30
|
-
function fillBlockHash() external payable {
|
31
|
-
bytes32 hash = 0xeddecf107b5740cef7f5a01e3ea7e287665c4e75a8eb6afae2fda2e3d4367786;
|
32
|
-
while (true) {
|
33
|
-
hash = keccak256(abi.encodePacked(hash));
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
function fillBlockAdd() external payable {
|
38
|
-
uint256 value = 0;
|
39
|
-
while (true) {
|
40
|
-
unchecked {
|
41
|
-
value += 0xeddecf107b5740cef7f5a01e3ea7e287665c4e75a8eb6afae2fda2e3d4367786;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
function fillBlockQuickStep() external payable {
|
47
|
-
uint256 value = 0;
|
48
|
-
while (true) {
|
49
|
-
value = msg.value;
|
50
|
-
}
|
51
|
-
}
|
52
|
-
}
|
package/src/mocks/BigMap.sol
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
// Copyright 2025, Offchain Labs, Inc.
|
2
|
-
// For license information, see:
|
3
|
-
// https://github.com/OffchainLabs/nitro/blob/master/LICENSE.md
|
4
|
-
// SPDX-License-Identifier: BUSL-1.1
|
5
|
-
|
6
|
-
pragma solidity ^0.8.0;
|
7
|
-
|
8
|
-
contract BigMap {
|
9
|
-
mapping(uint256 => uint256) public data;
|
10
|
-
uint256 size;
|
11
|
-
|
12
|
-
function clearAndAddValues(uint256 clear, uint256 add) external {
|
13
|
-
uint256 i = size;
|
14
|
-
while (i < size + add) {
|
15
|
-
data[i] = 8675309;
|
16
|
-
i++;
|
17
|
-
}
|
18
|
-
size = i;
|
19
|
-
for (uint256 j = 0; j < clear; j++) {
|
20
|
-
data[j] = 0;
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
package/src/mocks/CreateTest.sol
DELETED
@@ -1,44 +0,0 @@
|
|
1
|
-
// Copyright 2024, Offchain Labs, Inc.
|
2
|
-
// For license information, see https://github.com/nitro/blob/master/LICENSE
|
3
|
-
// SPDX-License-Identifier: BUSL-1.1
|
4
|
-
|
5
|
-
pragma solidity ^0.8.0;
|
6
|
-
|
7
|
-
/*
|
8
|
-
* This contract is the solidity equivalent of the stylus create test contract.
|
9
|
-
*/
|
10
|
-
contract CreateTest {
|
11
|
-
// solhint-disable no-complex-fallback
|
12
|
-
// solhint-disable reason-string
|
13
|
-
// solhint-disable avoid-low-level-calls
|
14
|
-
// solhint-disable-next-line prettier/prettier
|
15
|
-
fallback(
|
16
|
-
bytes calldata input
|
17
|
-
) external returns (bytes memory) {
|
18
|
-
uint8 kind = uint8(input[0]);
|
19
|
-
input = input[1:];
|
20
|
-
|
21
|
-
bytes32 endowment = bytes32(input[:32]);
|
22
|
-
input = input[32:];
|
23
|
-
|
24
|
-
address addr;
|
25
|
-
|
26
|
-
if (kind == 2) {
|
27
|
-
bytes32 salt = bytes32(input[:32]);
|
28
|
-
input = input[32:];
|
29
|
-
bytes memory code = input;
|
30
|
-
assembly {
|
31
|
-
addr := create2(endowment, add(code, 32), mload(code), salt)
|
32
|
-
}
|
33
|
-
} else {
|
34
|
-
bytes memory code = input;
|
35
|
-
assembly {
|
36
|
-
addr := create(endowment, add(code, 32), mload(code))
|
37
|
-
}
|
38
|
-
}
|
39
|
-
if (addr == address(0)) {
|
40
|
-
revert("failed to create");
|
41
|
-
}
|
42
|
-
return addr.code;
|
43
|
-
}
|
44
|
-
}
|