UNPKG

@arbitrum/sdk

Version:

Typescript library client-side interactions with Arbitrum

553 lines (552 loc) 16.5 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.IRollupAdmin__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "uint256", name: "id", type: "uint256", }, ], name: "OwnerFunctionCalled", type: "event", }, { inputs: [ { internalType: "uint64", name: "nodeNum", type: "uint64", }, { internalType: "bytes32", name: "blockHash", type: "bytes32", }, { internalType: "bytes32", name: "sendRoot", type: "bytes32", }, ], name: "forceConfirmNode", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint64", name: "prevNode", type: "uint64", }, { internalType: "uint256", name: "prevNodeInboxMaxCount", type: "uint256", }, { components: [ { components: [ { components: [ { internalType: "bytes32[2]", name: "bytes32Vals", type: "bytes32[2]", }, { internalType: "uint64[2]", name: "u64Vals", type: "uint64[2]", }, ], internalType: "struct GlobalState", name: "globalState", type: "tuple", }, { internalType: "enum MachineStatus", name: "machineStatus", type: "uint8", }, ], internalType: "struct ExecutionState", name: "beforeState", type: "tuple", }, { components: [ { components: [ { internalType: "bytes32[2]", name: "bytes32Vals", type: "bytes32[2]", }, { internalType: "uint64[2]", name: "u64Vals", type: "uint64[2]", }, ], internalType: "struct GlobalState", name: "globalState", type: "tuple", }, { internalType: "enum MachineStatus", name: "machineStatus", type: "uint8", }, ], internalType: "struct ExecutionState", name: "afterState", type: "tuple", }, { internalType: "uint64", name: "numBlocks", type: "uint64", }, ], internalType: "struct Assertion", name: "assertion", type: "tuple", }, { internalType: "bytes32", name: "expectedNodeHash", type: "bytes32", }, ], name: "forceCreateNode", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address[]", name: "stacker", type: "address[]", }, ], name: "forceRefundStaker", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address[]", name: "stackerA", type: "address[]", }, { internalType: "address[]", name: "stackerB", type: "address[]", }, ], name: "forceResolveChallenge", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { components: [ { internalType: "uint64", name: "confirmPeriodBlocks", type: "uint64", }, { internalType: "uint64", name: "extraChallengeTimeBlocks", type: "uint64", }, { internalType: "address", name: "stakeToken", type: "address", }, { internalType: "uint256", name: "baseStake", type: "uint256", }, { internalType: "bytes32", name: "wasmModuleRoot", type: "bytes32", }, { internalType: "address", name: "owner", type: "address", }, { internalType: "address", name: "loserStakeEscrow", type: "address", }, { internalType: "uint256", name: "chainId", type: "uint256", }, { internalType: "string", name: "chainConfig", type: "string", }, { internalType: "uint64", name: "genesisBlockNum", type: "uint64", }, { components: [ { internalType: "uint256", name: "delayBlocks", type: "uint256", }, { internalType: "uint256", name: "futureBlocks", type: "uint256", }, { internalType: "uint256", name: "delaySeconds", type: "uint256", }, { internalType: "uint256", name: "futureSeconds", type: "uint256", }, ], internalType: "struct ISequencerInbox.MaxTimeVariation", name: "sequencerInboxMaxTimeVariation", type: "tuple", }, ], internalType: "struct Config", name: "config", type: "tuple", }, { components: [ { internalType: "contract IBridge", name: "bridge", type: "address", }, { internalType: "contract ISequencerInbox", name: "sequencerInbox", type: "address", }, { internalType: "contract IInboxBase", name: "inbox", type: "address", }, { internalType: "contract IOutbox", name: "outbox", type: "address", }, { internalType: "contract IRollupEventInbox", name: "rollupEventInbox", type: "address", }, { internalType: "contract IChallengeManager", name: "challengeManager", type: "address", }, { internalType: "address", name: "rollupAdminLogic", type: "address", }, { internalType: "contract IRollupUser", name: "rollupUserLogic", type: "address", }, { internalType: "address", name: "validatorUtils", type: "address", }, { internalType: "address", name: "validatorWalletCreator", type: "address", }, ], internalType: "struct ContractDependencies", name: "connectedContracts", type: "tuple", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "pause", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_outbox", type: "address", }, ], name: "removeOldOutbox", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "resume", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "newBaseStake", type: "uint256", }, ], name: "setBaseStake", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint64", name: "newConfirmPeriod", type: "uint64", }, ], name: "setConfirmPeriodBlocks", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_inbox", type: "address", }, { internalType: "bool", name: "_enabled", type: "bool", }, ], name: "setDelayedInbox", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint64", name: "newExtraTimeBlocks", type: "uint64", }, ], name: "setExtraChallengeTimeBlocks", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newLoserStakerEscrow", type: "address", }, ], name: "setLoserStakeEscrow", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "newPeriod", type: "uint256", }, ], name: "setMinimumAssertionPeriod", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "contract IOutbox", name: "_outbox", type: "address", }, ], name: "setOutbox", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newOwner", type: "address", }, ], name: "setOwner", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "_sequencerInbox", type: "address", }, ], name: "setSequencerInbox", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "newStakeToken", type: "address", }, ], name: "setStakeToken", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address[]", name: "_validator", type: "address[]", }, { internalType: "bool[]", name: "_val", type: "bool[]", }, ], name: "setValidator", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bool", name: "_validatorWhitelistDisabled", type: "bool", }, ], name: "setValidatorWhitelistDisabled", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "newWasmModuleRoot", type: "bytes32", }, ], name: "setWasmModuleRoot", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "address", name: "beacon", type: "address", }, { internalType: "address", name: "newImplementation", type: "address", }, ], name: "upgradeBeacon", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class IRollupAdmin__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.IRollupAdmin__factory = IRollupAdmin__factory; IRollupAdmin__factory.abi = _abi;