"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 = [
    {
        inputs: [
            {
                internalType: "address",
                name: "_rescueAddress",
                type: "address",
            },
            {
                internalType: "contract USDYieldManager",
                name: "_usdYieldManager",
                type: "address",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "message",
                type: "bytes",
            },
        ],
        name: "MessageRelayed",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "l1Token",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "l2Token",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "amount",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "to",
                type: "address",
            },
        ],
        name: "TokensRelayed",
        type: "event",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "message",
                type: "bytes",
            },
        ],
        name: "relayMessage",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
            {
                internalType: "address",
                name: "",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "relayTokens",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [],
        name: "rescueAddress",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "usdYieldManager",
        outputs: [
            {
                internalType: "contract USDYieldManager",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = "0x60c03461009357601f6104c238819003918201601f19168301916001600160401b03831184841017610097578084926040948552833981010312610093578051906001600160a01b03821682036100935760200151906001600160a01b03821682036100935760805260a05260405161041690816100ac8239608051816102a6015260a05181818161016901526103120152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c90816326a2ebc9146102ca57508063525550ea1461025c57806352c8c75c146102185763e6eb8ade14610048575f80fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a15761007a610336565b5060243567ffffffffffffffff81116101a157366023820112156101a15780600401359067ffffffffffffffff82116101eb57604051916100e360207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116018461039f565b808352602083019136602483830101116101a157815f926024602093018537840101526040828051810103126101a15760409051910151604051917ff21340e4000000000000000000000000000000000000000000000000000000008352600483015260248201526020816044815f73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165af19081156101e0575f916101a5575b50156101a157005b5f80fd5b90506020813d6020116101d8575b816101c06020938361039f565b810103126101a1575180151581036101a1575f610199565b3d91506101b3565b6040513d5f823e3d90fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b60807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a15761024a610336565b50610253610359565b506101a161037c565b346101a1575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a157602060405173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346101a1575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126101a15760209073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b6004359073ffffffffffffffffffffffffffffffffffffffff821682036101a157565b6024359073ffffffffffffffffffffffffffffffffffffffff821682036101a157565b6064359073ffffffffffffffffffffffffffffffffffffffff821682036101a157565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176101eb5760405256fea26469706673582212204ae0ccfacf0ca6e2208796f36b7c3c1fc7d6ca9fc637a6443781f8788ef2b94764736f6c634300081e0033";
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;
