@arbitrum/sdk
Version:
Typescript library client-side interactions with Arbitrum
309 lines (308 loc) • 14 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.L2ForwarderFactory__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
{
inputs: [
{
internalType: "address",
name: "_impl",
type: "address",
},
{
internalType: "address",
name: "_aliasedL1Teleporter",
type: "address",
},
],
stateMutability: "nonpayable",
type: "constructor",
},
{
inputs: [],
name: "OnlyL1Teleporter",
type: "error",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "l2Forwarder",
type: "address",
},
{
components: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "l2Token",
type: "address",
},
{
internalType: "address",
name: "l3FeeTokenL2Addr",
type: "address",
},
{
internalType: "address",
name: "routerOrInbox",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "gasLimit",
type: "uint256",
},
{
internalType: "uint256",
name: "gasPriceBid",
type: "uint256",
},
{
internalType: "uint256",
name: "maxSubmissionCost",
type: "uint256",
},
],
indexed: false,
internalType: "struct IL2Forwarder.L2ForwarderParams",
name: "params",
type: "tuple",
},
],
name: "CalledL2Forwarder",
type: "event",
},
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "l2Forwarder",
type: "address",
},
{
indexed: true,
internalType: "address",
name: "owner",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "routerOrInbox",
type: "address",
},
{
indexed: false,
internalType: "address",
name: "to",
type: "address",
},
],
name: "CreatedL2Forwarder",
type: "event",
},
{
inputs: [],
name: "aliasedL1Teleporter",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [
{
components: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "l2Token",
type: "address",
},
{
internalType: "address",
name: "l3FeeTokenL2Addr",
type: "address",
},
{
internalType: "address",
name: "routerOrInbox",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
{
internalType: "uint256",
name: "gasLimit",
type: "uint256",
},
{
internalType: "uint256",
name: "gasPriceBid",
type: "uint256",
},
{
internalType: "uint256",
name: "maxSubmissionCost",
type: "uint256",
},
],
internalType: "struct IL2Forwarder.L2ForwarderParams",
name: "params",
type: "tuple",
},
],
name: "callForwarder",
outputs: [],
stateMutability: "payable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "routerOrInbox",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
],
name: "createL2Forwarder",
outputs: [
{
internalType: "contract IL2Forwarder",
name: "",
type: "address",
},
],
stateMutability: "nonpayable",
type: "function",
},
{
inputs: [
{
internalType: "address",
name: "owner",
type: "address",
},
{
internalType: "address",
name: "routerOrInbox",
type: "address",
},
{
internalType: "address",
name: "to",
type: "address",
},
],
name: "l2ForwarderAddress",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "l2ForwarderFactory",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
{
inputs: [],
name: "l2ForwarderImplementation",
outputs: [
{
internalType: "address",
name: "",
type: "address",
},
],
stateMutability: "view",
type: "function",
},
];
const _bytecode = "0x60e060405234801561001057600080fd5b50604051610a3c380380610a3c83398101604081905261002f91610066565b306080526001600160a01b0391821660a0521660c052610099565b80516001600160a01b038116811461006157600080fd5b919050565b6000806040838503121561007957600080fd5b6100828361004a565b91506100906020840161004a565b90509250929050565b60805160a05160c05161094b6100f16000396000818161010e01526103e901526000818161014201528181610210015281816102c5015261075101526000818160da015281816101d40152610715015261094b6000f3fe6080604052600436106100655760003560e01c8063e261911b11610043578063e261911b146100fc578063ec7d4abd14610130578063fbabf0841461016457600080fd5b806302e8e7831461006a57806327a01aa6146100b3578063377f017a146100c8575b600080fd5b34801561007657600080fd5b5061008a6100853660046107f8565b61026b565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b6100c66100c136600461083b565b6103d1565b005b3480156100d457600080fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561010857600080fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561013c57600080fd5b5061008a7f000000000000000000000000000000000000000000000000000000000000000081565b34801561017057600080fd5b5061008a61017f3660046107f8565b6040805173ffffffffffffffffffffffffffffffffffffffff948516602080830191909152938516818301529190931660608083019190915283518083039091018152608082019384905280519201919091207f000000000000000000000000000000000000000000000000000000000000000060b88301526f5af43d82803e903d91602b57fd5bf3ff60a48301527f00000000000000000000000000000000000000000000000000000000000000006094830152733d602d80600a3d3981f3363d3d373d3d3d363d7390925260d88101919091526037608c82012060f8820152605560c39091012090565b6040805173ffffffffffffffffffffffffffffffffffffffff80861660208084019190915281861683850152908416606080840191909152835180840390910181526080909201909252805191012060009081906102ea907f0000000000000000000000000000000000000000000000000000000000000000906105f6565b6040517fc4d66de800000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff87811660048301529192509082169063c4d66de890602401600060405180830381600087803b15801561035757600080fd5b505af115801561036b573d6000803e3d6000fd5b50506040805173ffffffffffffffffffffffffffffffffffffffff88811682528781166020830152808a169450851692507f99f6b41137c463e01337801d2b5ee9d1b5d057e4266739a17a3d50d2149ef9be910160405180910390a390505b9392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610440576040517fbf801ce900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006104598260000151836060015184608001516106c4565b604080517f822681f5000000000000000000000000000000000000000000000000000000008152845173ffffffffffffffffffffffffffffffffffffffff9081166004830152602086015181166024830152918501518216604482015260608501518216606482015260808501518216608482015260a085015160a482015260c085015160c482015260e085015160e482015291925082169063822681f5903490610104016000604051808303818588803b15801561051757600080fd5b505af115801561052b573d6000803e3d6000fd5b50505050508073ffffffffffffffffffffffffffffffffffffffff167f8f97dd18e7ab8f7c73e42de8cffe53e624385c58dce14058891e7f5eaba844aa836040516105ea919060006101008201905073ffffffffffffffffffffffffffffffffffffffff8084511683528060208501511660208401528060408501511660408401528060608501511660608401528060808501511660808401525060a083015160a083015260c083015160c083015260e083015160e083015292915050565b60405180910390a25050565b6000763d602d80600a3d3981f3363d3d373d3d3d363d730000008360601b60e81c176000526e5af43d82803e903d91602b57fd5bf38360781b1760205281603760096000f5905073ffffffffffffffffffffffffffffffffffffffff81166106be576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f455243313136373a2063726561746532206661696c6564000000000000000000604482015260640160405180910390fd5b92915050565b6040805173ffffffffffffffffffffffffffffffffffffffff8581166020808401919091528582168385015284821660608085019190915284518085039091018152608084019485905280519101207f000000000000000000000000000000000000000000000000000000000000000060b88401526f5af43d82803e903d91602b57fd5bf3ff60a48401527f00000000000000000000000000000000000000000000000000000000000000006094840152733d602d80600a3d3981f3363d3d373d3d3d363d7390935260d88201929092526037608c82012060f8820152605560c39091012060009181163b156107bb5790506103ca565b6107c685858561026b565b95945050505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146107f357600080fd5b919050565b60008060006060848603121561080d57600080fd5b610816846107cf565b9250610824602085016107cf565b9150610832604085016107cf565b90509250925092565b600061010080838503121561084f57600080fd5b6040519081019067ffffffffffffffff82118183101715610899577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b816040526108a6846107cf565b81526108b4602085016107cf565b60208201526108c5604085016107cf565b60408201526108d6606085016107cf565b60608201526108e7608085016107cf565b608082015260a084013560a082015260c084013560c082015260e084013560e082015280925050509291505056fea2646970667358221220ed3eb98ed88117e363f64a614cb4b972265848d8c3bf885026b8a94c934eb7c264736f6c63430008170033";
const isSuperArgs = (xs) => xs.length > 1;
class L2ForwarderFactory__factory extends ethers_1.ContractFactory {
constructor(...args) {
if (isSuperArgs(args)) {
super(...args);
}
else {
super(_abi, _bytecode, args[0]);
}
this.contractName = "L2ForwarderFactory";
}
deploy(_impl, _aliasedL1Teleporter, overrides) {
return super.deploy(_impl, _aliasedL1Teleporter, overrides || {});
}
getDeployTransaction(_impl, _aliasedL1Teleporter, overrides) {
return super.getDeployTransaction(_impl, _aliasedL1Teleporter, overrides || {});
}
attach(address) {
return super.attach(address);
}
connect(signer) {
return super.connect(signer);
}
static createInterface() {
return new ethers_1.utils.Interface(_abi);
}
static connect(address, signerOrProvider) {
return new ethers_1.Contract(address, _abi, signerOrProvider);
}
}
exports.L2ForwarderFactory__factory = L2ForwarderFactory__factory;
L2ForwarderFactory__factory.bytecode = _bytecode;
L2ForwarderFactory__factory.abi = _abi;