"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 = [
    {
        type: "function",
        name: "impersonateCall",
        inputs: [
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "data",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        stateMutability: "payable",
    },
    {
        type: "function",
        name: "sendMessage",
        inputs: [
            {
                name: "target",
                type: "address",
                internalType: "address",
            },
            {
                name: "",
                type: "bytes",
                internalType: "bytes",
            },
            {
                name: "",
                type: "uint32",
                internalType: "uint32",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "xDomainMessageSender",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "event",
        name: "MessageSent",
        inputs: [
            {
                name: "target",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
];
const _bytecode = "0x608080604052346015576102f5908161001a8239f35b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c80633dbb202b146100445780635105009f1461003f57636e296e451461003a575f80fd5b6101e3565b61015f565b346100b35760603660031901126100b35761005d6100b7565b60243567ffffffffffffffff81116100b357366023820112156100b357806004013567ffffffffffffffff81116100b357369101602401116100b35760443563ffffffff8116036100b3576100b190610215565b005b5f80fd5b6004359073ffffffffffffffffffffffffffffffffffffffff821682036100b357565b634e487b7160e01b5f52604160045260245ffd5b6040519190601f01601f1916820167ffffffffffffffff81118382101761011457604052565b6100da565b67ffffffffffffffff811161011457601f01601f191660200190565b602060409281835280519182918282860152018484015e5f828201840152601f01601f1916010190565b60403660031901126100b3576101736100b7565b60243567ffffffffffffffff81116100b357366023820112156100b3578060040135916101a76101a284610119565b6100ee565b9083825236602485850101116100b3575f6020856101df9660246101d397018387013784010152610251565b60405191829182610135565b0390f35b346100b3575f3660031901126100b357602073ffffffffffffffffffffffffffffffffffffffff5f5416604051908152f35b73ffffffffffffffffffffffffffffffffffffffff167f0a62cfe8530aabd2e08e693f25db140f017d0001092cfefc2ffaf4f52237b91f5f80a2565b5f918291337fffffffffffffffffffffffff00000000000000000000000000000000000000008454161783556020825192019034905af13d156102b7573d9061029c6101a283610119565b9182523d5f602084013e5b156102af5790565b805190602001fd5b6060906102a756fea2646970667358221220114251a416982112454fa0335665109c9a4e63ec8efa553615ecd55ed5aa2a5164736f6c634300081e0033";
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;
