"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 = "0x60c03461008c57601f61055e38819003918201601f19168301916001600160401b0383118484101761009057808492604094855283398101031261008c5780516001600160a01b0391828216820361008c5760200151918216820361008c5760805260a0526040516104b990816100a5823960805181610362015260a05181818161015d01526103ce0152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe608060409080825260049081361015610016575f80fd5b5f3560e01c90816326a2ebc91461038657508063525550ea1461031857806352c8c75c1461025d5763e6eb8ade1461004c575f80fd5b817ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021d5761007d6103f2565b5060249182359267ffffffffffffffff80851161021d573660238601121561021d5784840135908111610232576020948351916100e1877fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160184610415565b808352868301913685838301011161021d57815f92868a9301853784010152838280518101031261021d578390519101518351917ff21340e4000000000000000000000000000000000000000000000000000000008352858301528282015284816044815f73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165af1908115610228575f916101ee575b501561019557005b606493600c9251937f08c379a00000000000000000000000000000000000000000000000000000000085528401528201527f636c61696d206661696c656400000000000000000000000000000000000000006044820152fd5b90508481813d8311610221575b6102058183610415565b8101031261021d5751801515810361021d575f61018d565b5f80fd5b503d6101fb565b83513d5f823e3d90fd5b506041837f4e487b71000000000000000000000000000000000000000000000000000000005f52525ffd5b5060807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021d576102906103f2565b5073ffffffffffffffffffffffffffffffffffffffff6024358181160361021d576064359081160361021d57602060649251917f08c379a0000000000000000000000000000000000000000000000000000000008352820152601460248201527f72656c6179546f6b656e732064697361626c65640000000000000000000000006044820152fd5b823461021d575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021d576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b3461021d575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc36011261021d5760209073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b6004359073ffffffffffffffffffffffffffffffffffffffff8216820361021d57565b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff82111761045657604052565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffdfea26469706673582212201fa90f6935a93ca1335af2e560d9eaf1b9f0854380b3d2dc39b791d6ad7cd67264736f6c63430008170033";
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;
