UNPKG

@arbitrum/sdk

Version:

Typescript library client-side interactions with Arbitrum

455 lines (454 loc) 10.9 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.IOutbox__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: true, internalType: "address", name: "l2Sender", type: "address", }, { indexed: true, internalType: "uint256", name: "zero", type: "uint256", }, { indexed: false, internalType: "uint256", name: "transactionIndex", type: "uint256", }, ], name: "OutBoxTransactionExecuted", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "bytes32", name: "outputRoot", type: "bytes32", }, { indexed: true, internalType: "bytes32", name: "l2BlockHash", type: "bytes32", }, ], name: "SendRootUpdated", type: "event", }, { inputs: [], name: "OUTBOX_VERSION", outputs: [ { internalType: "uint128", name: "", type: "uint128", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "bridge", outputs: [ { internalType: "contract IBridge", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "l2Sender", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "l2Block", type: "uint256", }, { internalType: "uint256", name: "l1Block", type: "uint256", }, { internalType: "uint256", name: "l2Timestamp", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "calculateItemHash", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "bytes32[]", name: "proof", type: "bytes32[]", }, { internalType: "uint256", name: "path", type: "uint256", }, { internalType: "bytes32", name: "item", type: "bytes32", }, ], name: "calculateMerkleRoot", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "bytes32[]", name: "proof", type: "bytes32[]", }, { internalType: "uint256", name: "index", type: "uint256", }, { internalType: "address", name: "l2Sender", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "l2Block", type: "uint256", }, { internalType: "uint256", name: "l1Block", type: "uint256", }, { internalType: "uint256", name: "l2Timestamp", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "executeTransaction", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "index", type: "uint256", }, { internalType: "address", name: "l2Sender", type: "address", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "l2Block", type: "uint256", }, { internalType: "uint256", name: "l1Block", type: "uint256", }, { internalType: "uint256", name: "l2Timestamp", type: "uint256", }, { internalType: "uint256", name: "value", type: "uint256", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "executeTransactionSimulation", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "contract IBridge", name: "_bridge", type: "address", }, ], name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint256", name: "index", type: "uint256", }, ], name: "isSpent", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "l2ToL1Block", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "l2ToL1EthBlock", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "l2ToL1OutputId", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "l2ToL1Sender", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "l2ToL1Timestamp", outputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "postUpgradeInit", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], name: "rollup", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], name: "roots", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "", type: "uint256", }, ], name: "spent", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "updateRollupAddress", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "sendRoot", type: "bytes32", }, { internalType: "bytes32", name: "l2BlockHash", type: "bytes32", }, ], name: "updateSendRoot", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class IOutbox__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.IOutbox__factory = IOutbox__factory; IOutbox__factory.abi = _abi;