UNPKG

@arbitrum/sdk

Version:

Typescript library client-side interactions with Arbitrum

537 lines (536 loc) 13.5 kB
"use strict"; /* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ Object.defineProperty(exports, "__esModule", { value: true }); exports.L1ArbitrumExtendedGateway__factory = void 0; const ethers_1 = require("ethers"); const _abi = [ { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "l1Token", type: "address", }, { indexed: true, internalType: "address", name: "_from", type: "address", }, { indexed: true, internalType: "address", name: "_to", type: "address", }, { indexed: true, internalType: "uint256", name: "_sequenceNumber", type: "uint256", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "DepositInitiated", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "_from", type: "address", }, { indexed: true, internalType: "address", name: "_to", type: "address", }, { indexed: true, internalType: "uint256", name: "_seqNum", type: "uint256", }, { indexed: false, internalType: "bytes", name: "_data", type: "bytes", }, ], name: "TxToL2", type: "event", }, { anonymous: false, inputs: [ { indexed: true, internalType: "address", name: "from", type: "address", }, { indexed: true, internalType: "address", name: "to", type: "address", }, { indexed: true, internalType: "uint256", name: "exitNum", type: "uint256", }, { indexed: false, internalType: "bytes", name: "newData", type: "bytes", }, { indexed: false, internalType: "bytes", name: "data", type: "bytes", }, { indexed: false, internalType: "bool", name: "madeExternalCall", type: "bool", }, ], name: "WithdrawRedirected", type: "event", }, { anonymous: false, inputs: [ { indexed: false, internalType: "address", name: "l1Token", type: "address", }, { indexed: true, internalType: "address", name: "_from", type: "address", }, { indexed: true, internalType: "address", name: "_to", type: "address", }, { indexed: true, internalType: "uint256", name: "_exitNum", type: "uint256", }, { indexed: false, internalType: "uint256", name: "_amount", type: "uint256", }, ], name: "WithdrawalFinalized", type: "event", }, { inputs: [ { internalType: "address", name: "l1ERC20", type: "address", }, ], name: "calculateL2TokenAddress", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "counterpartGateway", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_exitNum", type: "uint256", }, { internalType: "address", name: "_initialDestination", type: "address", }, ], name: "encodeWithdrawal", outputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], stateMutability: "pure", type: "function", }, { inputs: [ { internalType: "address", name: "_token", type: "address", }, { internalType: "address", name: "_from", type: "address", }, { internalType: "address", name: "_to", type: "address", }, { internalType: "uint256", name: "_amount", type: "uint256", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "finalizeInboundTransfer", outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "uint256", name: "_exitNum", type: "uint256", }, { internalType: "address", name: "_initialDestination", type: "address", }, { internalType: "bytes", name: "_initialData", type: "bytes", }, ], name: "getExternalCall", outputs: [ { internalType: "address", name: "target", type: "address", }, { internalType: "bytes", name: "data", type: "bytes", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_l1Token", type: "address", }, { internalType: "address", name: "_from", type: "address", }, { internalType: "address", name: "_to", type: "address", }, { internalType: "uint256", name: "_amount", type: "uint256", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "getOutboundCalldata", outputs: [ { internalType: "bytes", name: "outboundCalldata", type: "bytes", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "inbox", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "address", name: "_l1Token", type: "address", }, { internalType: "address", name: "_to", type: "address", }, { internalType: "uint256", name: "_amount", type: "uint256", }, { internalType: "uint256", name: "_maxGas", type: "uint256", }, { internalType: "uint256", name: "_gasPriceBid", type: "uint256", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "outboundTransfer", outputs: [ { internalType: "bytes", name: "res", type: "bytes", }, ], stateMutability: "payable", type: "function", }, { inputs: [ { internalType: "address", name: "_l1Token", type: "address", }, { internalType: "address", name: "_refundTo", type: "address", }, { internalType: "address", name: "_to", type: "address", }, { internalType: "uint256", name: "_amount", type: "uint256", }, { internalType: "uint256", name: "_maxGas", type: "uint256", }, { internalType: "uint256", name: "_gasPriceBid", type: "uint256", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "outboundTransferCustomRefund", outputs: [ { internalType: "bytes", name: "res", type: "bytes", }, ], stateMutability: "payable", type: "function", }, { inputs: [], name: "postUpgradeInit", outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { internalType: "bytes32", name: "", type: "bytes32", }, ], name: "redirectedExits", outputs: [ { internalType: "bool", name: "isExit", type: "bool", }, { internalType: "address", name: "_newTo", type: "address", }, { internalType: "bytes", name: "_newData", type: "bytes", }, ], stateMutability: "view", type: "function", }, { inputs: [], name: "router", outputs: [ { internalType: "address", name: "", type: "address", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "bytes4", name: "interfaceId", type: "bytes4", }, ], name: "supportsInterface", outputs: [ { internalType: "bool", name: "", type: "bool", }, ], stateMutability: "view", type: "function", }, { inputs: [ { internalType: "uint256", name: "_exitNum", type: "uint256", }, { internalType: "address", name: "_initialDestination", type: "address", }, { internalType: "address", name: "_newDestination", type: "address", }, { internalType: "bytes", name: "_newData", type: "bytes", }, { internalType: "bytes", name: "_data", type: "bytes", }, ], name: "transferExitAndCall", outputs: [], stateMutability: "nonpayable", type: "function", }, ]; class L1ArbitrumExtendedGateway__factory { static createInterface() { return new ethers_1.utils.Interface(_abi); } static connect(address, signerOrProvider) { return new ethers_1.Contract(address, _abi, signerOrProvider); } } exports.L1ArbitrumExtendedGateway__factory = L1ArbitrumExtendedGateway__factory; L1ArbitrumExtendedGateway__factory.abi = _abi;