"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MockBedrockCrossDomainMessenger__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "target",
                type: "address",
            },
        ],
        name: "MessageSent",
        type: "event",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "data",
                type: "bytes",
            },
        ],
        name: "impersonateCall",
        outputs: [
            {
                internalType: "bytes",
                name: "",
                type: "bytes",
            },
        ],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "",
                type: "bytes",
            },
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        name: "sendMessage",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "xDomainMessageSender",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = "0x608080604052346015576103c2908161001a8239f35b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c80633dbb202b146100445780635105009f1461003f57636e296e451461003a575f80fd5b610292565b6101f0565b346100d15760607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d15761007b6100d5565b60243567ffffffffffffffff81116100d157366023820112156100d157806004013567ffffffffffffffff81116100d157369101602401116100d15760443563ffffffff8116036100d1576100cf906102e2565b005b5f80fd5b6004359073ffffffffffffffffffffffffffffffffffffffff821682036100d157565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f604051930116820182811067ffffffffffffffff82111761016957604052565b6100f8565b67ffffffffffffffff811161016957601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f602060409481855280519182918282880152018686015e5f8582860101520116010190565b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d1576102226100d5565b60243567ffffffffffffffff81116100d157366023820112156100d1578060040135916102566102518461016e565b610125565b9083825236602485850101116100d1575f60208561028e9660246102829701838701378401015261031e565b604051918291826101a8565b0390f35b346100d1575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d157602073ffffffffffffffffffffffffffffffffffffffff5f5416604051908152f35b73ffffffffffffffffffffffffffffffffffffffff167f0a62cfe8530aabd2e08e693f25db140f017d0001092cfefc2ffaf4f52237b91f5f80a2565b5f918291337fffffffffffffffffffffffff00000000000000000000000000000000000000008454161783556020825192019034905af13d15610384573d906103696102518361016e565b9182523d5f602084013e5b1561037c5790565b805190602001fd5b60609061037456fea2646970667358221220611503c9ee68ea15cc7f3625f2e1299a6c9763bc893f7024d3237dd31c8ae91164736f6c634300081e0033";
const isSuperArgs = (xs) => xs.length > 1;
class MockBedrockCrossDomainMessenger__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(overrides) {
        return super.deploy(overrides || {});
    }
    getDeployTransaction(overrides) {
        return super.getDeployTransaction(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.MockBedrockCrossDomainMessenger__factory = MockBedrockCrossDomainMessenger__factory;
MockBedrockCrossDomainMessenger__factory.bytecode = _bytecode;
MockBedrockCrossDomainMessenger__factory.abi = _abi;
