"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Blast_RescueAdapter__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_rescueAddress",
                type: "address",
                internalType: "address",
            },
            {
                name: "_usdYieldManager",
                type: "address",
                internalType: "contract USDYieldManager",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "relayMessage",
        inputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "relayTokens",
        inputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
            {
                name: "",
                type: "address",
                internalType: "address",
            },
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "rescueAddress",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "usdYieldManager",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract USDYieldManager",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "event",
        name: "MessageRelayed",
        inputs: [
            {
                name: "target",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                indexed: false,
                internalType: "bytes",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "TokensRelayed",
        inputs: [
            {
                name: "l1Token",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "l2Token",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "to",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
];
const _bytecode = "0x60c03461009357601f61038d38819003918201601f19168301916001600160401b03831184841017610097578084926040948552833981010312610093578051906001600160a01b03821682036100935760200151906001600160a01b03821682036100935760805260a0526040516102e190816100ac8239608051816101e2015260a05181818161010701526102230152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c90816326a2ebc91461020657508063525550ea146101c357806352c8c75c1461019d5763e6eb8ade14610048575f80fd5b604036600319011261013f5761005c610247565b5060243567ffffffffffffffff811161013f573660238201121561013f5780600401359067ffffffffffffffff821161018957604051916100a7601f8201601f191660200184610289565b8083526020830191366024838301011161013f57815f9260246020930185378401015260408280518101031261013f576040905191015160405191633c84d03960e21b8352600483015260248201526020816044815f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165af190811561017e575f91610143575b501561013f57005b5f80fd5b90506020813d602011610176575b8161015e60209383610289565b8101031261013f5751801515810361013f575f610137565b3d9150610151565b6040513d5f823e3d90fd5b634e487b7160e01b5f52604160045260245ffd5b608036600319011261013f576101b1610247565b506101ba61025d565b5061013f610273565b3461013f575f36600319011261013f5760206040516001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b3461013f575f36600319011261013f576020906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b600435906001600160a01b038216820361013f57565b602435906001600160a01b038216820361013f57565b606435906001600160a01b038216820361013f57565b90601f8019910116810190811067ffffffffffffffff8211176101895760405256fea264697066735822122024d75a89df2bd6d46aef088f228eb2968a736fe7370c94d5e149d06d07a62b3664736f6c634300081e0033";
const isSuperArgs = (xs) => xs.length > 1;
class Blast_RescueAdapter__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_rescueAddress, _usdYieldManager, overrides) {
        return super.deploy(_rescueAddress, _usdYieldManager, overrides || {});
    }
    getDeployTransaction(_rescueAddress, _usdYieldManager, overrides) {
        return super.getDeployTransaction(_rescueAddress, _usdYieldManager, 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.Blast_RescueAdapter__factory = Blast_RescueAdapter__factory;
Blast_RescueAdapter__factory.bytecode = _bytecode;
Blast_RescueAdapter__factory.abi = _abi;
