"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Succinct_Adapter__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_succinctSourceAmb",
                type: "address",
                internalType: "contract ITelepathyBroadcaster",
            },
            {
                name: "_destinationChainId",
                type: "uint16",
                internalType: "uint16",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "destinationChainId",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint16",
                internalType: "uint16",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "relayMessage",
        inputs: [
            {
                name: "target",
                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: "succinctSourceAmb",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract ITelepathyBroadcaster",
            },
        ],
        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: "SuccinctMessageRelayed",
        inputs: [
            {
                name: "messageRoot",
                type: "bytes32",
                indexed: false,
                internalType: "bytes32",
            },
            {
                name: "destinationChainId",
                type: "uint16",
                indexed: false,
                internalType: "uint16",
            },
            {
                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 = "0x60c03461009457601f61044a38819003918201601f19168301916001600160401b03831184841017610098578084926040948552833981010312610094578051906001600160a01b038216820361009457602001519061ffff821682036100945760805260a05260405161039d90816100ad823960805181818161010f01526102b9015260a05181818160bb01526102780152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c90816352c8c75c146102dd578163a3b2bb171461029c57508063b07506111461025e5763e6eb8ade14610048575f80fd5b60403660031901126102345761005c610305565b6024359067ffffffffffffffff821161023457366023830112156102345781600401359167ffffffffffffffff83116102345760248101906024843692010111610234576040519063b1d995dd60e01b82526001600160a01b0361ffff7f00000000000000000000000000000000000000000000000000000000000000001693846004850152168060248401526060604484015260208380610102606482018987610347565b03815f6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000165af1928315610253575f936101cf575b50907f8087fb1204c4894caf9b9afa31c9f4c4e6a29f573eb42a6337784fa837266b48946101ca927f9e6c52944e331ba6270e7fe4cea2a4086bae8f7a27e1cdba07f416806f5d0ac460405182815260406020820152806101a4604082018688610347565b0390a1604051958695865260208601526040850152608060608501526080840191610347565b0390a1005b9190925060203d60201161024c575b601f8101601f1916830167ffffffffffffffff81118482101761023857602091849160405281010312610234579051917f8087fb1204c4894caf9b9afa31c9f4c4e6a29f573eb42a6337784fa837266b4861013f565b5f80fd5b634e487b7160e01b5f52604160045260245ffd5b503d6101de565b6040513d5f823e3d90fd5b34610234575f36600319011261023457602060405161ffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b34610234575f366003190112610234576020906001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168152f35b6080366003190112610234576102f1610305565b506102fa61031b565b50610303610331565b005b600435906001600160a01b038216820361023457565b602435906001600160a01b038216820361023457565b606435906001600160a01b038216820361023457565b908060209392818452848401375f828201840152601f01601f191601019056fea26469706673582212204794504e2f0396e3dd00a302ad7c2eceb9cf98ee74555b54ccb09a695611f37964736f6c634300081e0033";
const isSuperArgs = (xs) => xs.length > 1;
class Succinct_Adapter__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(_succinctSourceAmb, _destinationChainId, overrides) {
        return super.deploy(_succinctSourceAmb, _destinationChainId, overrides || {});
    }
    getDeployTransaction(_succinctSourceAmb, _destinationChainId, overrides) {
        return super.getDeployTransaction(_succinctSourceAmb, _destinationChainId, 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.Succinct_Adapter__factory = Succinct_Adapter__factory;
Succinct_Adapter__factory.bytecode = _bytecode;
Succinct_Adapter__factory.abi = _abi;
