"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 = [
    {
        inputs: [
            {
                internalType: "contract ITelepathyBroadcaster",
                name: "_succinctSourceAmb",
                type: "address",
            },
            {
                internalType: "uint16",
                name: "_destinationChainId",
                type: "uint16",
            },
        ],
        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: "bytes32",
                name: "messageRoot",
                type: "bytes32",
            },
            {
                indexed: false,
                internalType: "uint16",
                name: "destinationChainId",
                type: "uint16",
            },
            {
                indexed: false,
                internalType: "address",
                name: "target",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "message",
                type: "bytes",
            },
        ],
        name: "SuccinctMessageRelayed",
        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: [],
        name: "destinationChainId",
        outputs: [
            {
                internalType: "uint16",
                name: "",
                type: "uint16",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "target",
                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: "succinctSourceAmb",
        outputs: [
            {
                internalType: "contract ITelepathyBroadcaster",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = "0x60c03461009457601f61057e38819003918201601f19168301916001600160401b03831184841017610098578084926040948552833981010312610094578051906001600160a01b038216820361009457602001519061ffff821682036100945760805260a0526040516104d190816100ad8239608051818181610160015261038a015260a05181818160ff015261031e0152f35b5f80fd5b634e487b7160e01b5f52604160045260245ffdfe6080806040526004361015610012575f80fd5b5f3560e01c90816352c8c75c146103ae578163a3b2bb171461034257508063b0750611146102e65763e6eb8ade14610048575f80fd5b60407ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102a35761007a6103f4565b6024359067ffffffffffffffff82116102a357366023830112156102a35781600401359167ffffffffffffffff83116102a357602481019060248436920101116102a357604051907fb1d995dd00000000000000000000000000000000000000000000000000000000825273ffffffffffffffffffffffffffffffffffffffff61ffff7f0000000000000000000000000000000000000000000000000000000000000000169384600485015216806024840152606060448401526020838061014660648201898761045d565b03815f73ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000165af19283156102db575f93610220575b50907f8087fb1204c4894caf9b9afa31c9f4c4e6a29f573eb42a6337784fa837266b489461021b927f9e6c52944e331ba6270e7fe4cea2a4086bae8f7a27e1cdba07f416806f5d0ac460405182815260406020820152806101f560408201868861045d565b0390a160405195869586526020860152604085015260806060850152608084019161045d565b0390a1005b9190925060203d6020116102d4575b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f820116830183811067ffffffffffffffff8211176102a7576020918491604052810103126102a3579051917f8087fb1204c4894caf9b9afa31c9f4c4e6a29f573eb42a6337784fa837266b48610190565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b503d61022f565b6040513d5f823e3d90fd5b346102a3575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102a357602060405161ffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b346102a3575f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102a35760209073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b60807ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126102a3576103e06103f4565b506103e9610417565b506103f261043a565b005b6004359073ffffffffffffffffffffffffffffffffffffffff821682036102a357565b6024359073ffffffffffffffffffffffffffffffffffffffff821682036102a357565b6064359073ffffffffffffffffffffffffffffffffffffffff821682036102a357565b601f82602094937fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe093818652868601375f858286010152011601019056fea2646970667358221220d5ace04dd3a7c737c28f05bdc592bdc8f3c5087a0b2caa3df11d14c06df54e5864736f6c634300081e0033";
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;
