UNPKG

@arbitrum/sdk

Version:

Typescript library client-side interactions with Arbitrum

338 lines (337 loc) 8.57 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.NodeInterface__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { inputs: [ { internalType: "uint64", name: "l2BlockNum", type: "uint64", }, ], name: "blockL1Num", outputs: [ { internalType: "uint64", name: "l1BlockNum", type: "uint64", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint64", name: "size", type: "uint64", }, { internalType: "uint64", name: "leaf", type: "uint64", }, ], name: "constructOutboxProof", outputs: [ { internalType: "bytes32", name: "send", type: "bytes32", }, { internalType: "bytes32", name: "root", type: "bytes32", }, { internalType: "bytes32[]", name: "proof", type: "bytes32[]", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "sender", type: "address", }, { internalType: "uint256", name: "deposit", type: "uint256", }, { internalType: "address", name: "to", type: "address", }, { internalType: "uint256", name: "l2CallValue", type: "uint256", }, { internalType: "address", name: "excessFeeRefundAddress", type: "address", }, { internalType: "address", name: "callValueRefundAddress", type: "address", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "estimateRetryableTicket", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "uint64", name: "blockNum", type: "uint64", }, ], name: "findBatchContainingBlock", outputs: [ { internalType: "uint64", name: "batch", type: "uint64", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, { internalType: "bool", name: "contractCreation", type: "bool", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "gasEstimateComponents", outputs: [ { internalType: "uint64", name: "gasEstimate", type: "uint64", }, { internalType: "uint64", name: "gasEstimateForL1", type: "uint64", }, { internalType: "uint256", name: "baseFee", type: "uint256", }, { internalType: "uint256", name: "l1BaseFeeEstimate", type: "uint256", }, ], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "to", type: "address", }, { internalType: "bool", name: "contractCreation", type: "bool", }, { internalType: "bytes", name: "data", type: "bytes", }, ], name: "gasEstimateL1Component", outputs: [ { internalType: "uint64", name: "gasEstimateForL1", type: "uint64", }, { internalType: "uint256", name: "baseFee", type: "uint256", }, { internalType: "uint256", name: "l1BaseFeeEstimate", type: "uint256", }, ], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "blockHash", type: "bytes32", }, ], name: "getL1Confirmations", outputs: [ { internalType: "uint64", name: "confirmations", type: "uint64", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint64", name: "blockNum", type: "uint64", }, ], name: "l2BlockRangeForL1", outputs: [ { internalType: "uint64", name: "firstBlock", type: "uint64", }, { internalType: "uint64", name: "lastBlock", type: "uint64", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "batchNum", type: "uint256", }, { internalType: "uint64", name: "index", type: "uint64", }, ], name: "legacyLookupMessageBatchProof", outputs: [ { internalType: "bytes32[]", name: "proof", type: "bytes32[]", }, { internalType: "uint256", name: "path", type: "uint256", }, { internalType: "address", name: "l2Sender", type: "address", }, { internalType: "address", name: "l1Dest", type: "address", }, { internalType: "uint256", name: "l2Block", type: "uint256", }, { internalType: "uint256", name: "l1Block", type: "uint256", }, { internalType: "uint256", name: "timestamp", type: "uint256", }, { internalType: "uint256", name: "amount", type: "uint256", }, { internalType: "bytes", name: "calldataForL1", type: "bytes", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "nitroGenesisBlock", outputs: [ { internalType: "uint256", name: "number", type: "uint256", }, ], stateMutability: "pure", type: "function", }, ]; class NodeInterface__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.NodeInterface__factory = NodeInterface__factory; NodeInterface__factory.abi = _abi;