"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DestinationStewardReceiver__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "address",
                name: "endpoint_",
                type: "address",
            },
            {
                internalType: "uint32",
                name: "layerZeroEid_",
                type: "uint32",
            },
        ],
        stateMutability: "nonpayable",
        type: "constructor",
    },
    {
        inputs: [],
        name: "ConfigNotActive",
        type: "error",
    },
    {
        inputs: [],
        name: "ConfigStatusUnchanged",
        type: "error",
    },
    {
        inputs: [],
        name: "ExecutorStatusUnchanged",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidDebounce",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidDelegate",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidEndpointCall",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidLayerZeroEid",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidRemoteDelay",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidUpdateType",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "eid",
                type: "uint32",
            },
        ],
        name: "NoPeer",
        type: "error",
    },
    {
        inputs: [],
        name: "NotAnExecutor",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "addr",
                type: "address",
            },
        ],
        name: "OnlyEndpoint",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "eid",
                type: "uint32",
            },
            {
                internalType: "bytes32",
                name: "sender",
                type: "bytes32",
            },
        ],
        name: "OnlyPeer",
        type: "error",
    },
    {
        inputs: [],
        name: "RemoteDelayUnchanged",
        type: "error",
    },
    {
        inputs: [],
        name: "RenounceOwnershipNotAllowed",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "sender",
                type: "address",
            },
            {
                internalType: "address",
                name: "calledContract",
                type: "address",
            },
            {
                internalType: "string",
                name: "methodSignature",
                type: "string",
            },
        ],
        name: "Unauthorized",
        type: "error",
    },
    {
        inputs: [],
        name: "UnsupportedUpdateType",
        type: "error",
    },
    {
        inputs: [],
        name: "UpdateIsExpired",
        type: "error",
    },
    {
        inputs: [],
        name: "UpdateNotFound",
        type: "error",
    },
    {
        inputs: [],
        name: "UpdateNotUnlocked",
        type: "error",
    },
    {
        inputs: [],
        name: "UpdateTooFrequent",
        type: "error",
    },
    {
        inputs: [],
        name: "ZeroAddressNotAllowed",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "updateTypeHash",
                type: "bytes32",
            },
            {
                indexed: false,
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                indexed: false,
                internalType: "bool",
                name: "previousActive",
                type: "bool",
            },
            {
                indexed: true,
                internalType: "bool",
                name: "active",
                type: "bool",
            },
        ],
        name: "ConfigActiveUpdated",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "arrivalTime",
                type: "uint256",
            },
            {
                indexed: true,
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                indexed: true,
                internalType: "address",
                name: "market",
                type: "address",
            },
        ],
        name: "DuplicateUpdateReceived",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "executor",
                type: "address",
            },
            {
                indexed: false,
                internalType: "bool",
                name: "previousApproved",
                type: "bool",
            },
            {
                indexed: false,
                internalType: "bool",
                name: "approved",
                type: "bool",
            },
        ],
        name: "ExecutorStatusUpdated",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint8",
                name: "version",
                type: "uint8",
            },
        ],
        name: "Initialized",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "address",
                name: "oldAccessControlManager",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "newAccessControlManager",
                type: "address",
            },
        ],
        name: "NewAccessControlManager",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "previousOwner",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "OwnershipTransferStarted",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "previousOwner",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "OwnershipTransferred",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint32",
                name: "eid",
                type: "uint32",
            },
            {
                indexed: false,
                internalType: "bytes32",
                name: "peer",
                type: "bytes32",
            },
        ],
        name: "PeerSet",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "arrivalTime",
                type: "uint256",
            },
            {
                indexed: true,
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                indexed: true,
                internalType: "address",
                name: "market",
                type: "address",
            },
        ],
        name: "RegisteredPendingUpdateExist",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "uint256",
                name: "remoteDelay",
                type: "uint256",
            },
        ],
        name: "RemoteDelaySet",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
        ],
        name: "RemoteUpdateExecuted",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "arrivalTime",
                type: "uint256",
            },
            {
                indexed: true,
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                indexed: true,
                internalType: "address",
                name: "market",
                type: "address",
            },
        ],
        name: "RemoteUpdateRegistered",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "updateTypeHash",
                type: "bytes32",
            },
            {
                indexed: false,
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                indexed: true,
                internalType: "address",
                name: "previousRiskSteward",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "riskSteward",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "previousDebounce",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "debounce",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "bool",
                name: "previousActive",
                type: "bool",
            },
            {
                indexed: false,
                internalType: "bool",
                name: "active",
                type: "bool",
            },
        ],
        name: "RiskParameterConfigUpdated",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
        ],
        name: "UpdateRejected",
        type: "event",
    },
    {
        inputs: [],
        name: "LAYER_ZERO_EID",
        outputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "REMOTE_UPDATE_EXPIRATION_TIME",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "acceptOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "accessControlManager",
        outputs: [
            {
                internalType: "contract IAccessControlManagerV8",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "srcEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "sender",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint64",
                        name: "nonce",
                        type: "uint64",
                    },
                ],
                internalType: "struct Origin",
                name: "origin",
                type: "tuple",
            },
        ],
        name: "allowInitializePath",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "endpoint",
        outputs: [
            {
                internalType: "contract ILayerZeroEndpointV2",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
        ],
        name: "executeUpdate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                internalType: "address",
                name: "comptroller",
                type: "address",
            },
        ],
        name: "getExecutableUpdates",
        outputs: [
            {
                internalType: "uint256[]",
                name: "executableUpdates",
                type: "uint256[]",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
        ],
        name: "getLastExecutedAt",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
        ],
        name: "getRegisteredUpdate",
        outputs: [
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "string",
                                name: "referenceId",
                                type: "string",
                            },
                            {
                                internalType: "uint256",
                                name: "updateId",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "market",
                                type: "address",
                            },
                            {
                                internalType: "string",
                                name: "updateType",
                                type: "string",
                            },
                            {
                                internalType: "bytes32",
                                name: "updateTypeKey",
                                type: "bytes32",
                            },
                            {
                                internalType: "bytes",
                                name: "newValue",
                                type: "bytes",
                            },
                            {
                                internalType: "bytes",
                                name: "previousValue",
                                type: "bytes",
                            },
                            {
                                internalType: "uint256",
                                name: "timestamp",
                                type: "uint256",
                            },
                            {
                                internalType: "address",
                                name: "publisher",
                                type: "address",
                            },
                            {
                                internalType: "uint96",
                                name: "poolId",
                                type: "uint96",
                            },
                            {
                                internalType: "uint32",
                                name: "destLzEid",
                                type: "uint32",
                            },
                            {
                                internalType: "bytes",
                                name: "additionalData",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct RiskParameterUpdate",
                        name: "update",
                        type: "tuple",
                    },
                    {
                        internalType: "enum IDestinationStewardReceiver.UpdateStatus",
                        name: "status",
                        type: "uint8",
                    },
                    {
                        internalType: "uint256",
                        name: "arrivalTime",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "executor",
                        type: "address",
                    },
                ],
                internalType: "struct IDestinationStewardReceiver.DestinationUpdate",
                name: "",
                type: "tuple",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "string",
                name: "updateType",
                type: "string",
            },
        ],
        name: "getRiskParameterConfig",
        outputs: [
            {
                components: [
                    {
                        internalType: "bool",
                        name: "active",
                        type: "bool",
                    },
                    {
                        internalType: "uint256",
                        name: "debounce",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "riskSteward",
                        type: "address",
                    },
                ],
                internalType: "struct IDestinationStewardReceiver.RiskParamConfig",
                name: "",
                type: "tuple",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "accessControlManager_",
                type: "address",
            },
            {
                internalType: "address",
                name: "delegate_",
                type: "address",
            },
        ],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "srcEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "sender",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint64",
                        name: "nonce",
                        type: "uint64",
                    },
                ],
                internalType: "struct Origin",
                name: "",
                type: "tuple",
            },
            {
                internalType: "bytes",
                name: "",
                type: "bytes",
            },
            {
                internalType: "address",
                name: "_sender",
                type: "address",
            },
        ],
        name: "isComposeMsgSender",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
        ],
        name: "lastExecutedAt",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
            {
                internalType: "address",
                name: "market",
                type: "address",
            },
        ],
        name: "lastRegisteredUpdateId",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "uint32",
                        name: "srcEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes32",
                        name: "sender",
                        type: "bytes32",
                    },
                    {
                        internalType: "uint64",
                        name: "nonce",
                        type: "uint64",
                    },
                ],
                internalType: "struct Origin",
                name: "_origin",
                type: "tuple",
            },
            {
                internalType: "bytes32",
                name: "_guid",
                type: "bytes32",
            },
            {
                internalType: "bytes",
                name: "_message",
                type: "bytes",
            },
            {
                internalType: "address",
                name: "_executor",
                type: "address",
            },
            {
                internalType: "bytes",
                name: "_extraData",
                type: "bytes",
            },
        ],
        name: "lzReceive",
        outputs: [],
        stateMutability: "payable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "",
                type: "uint32",
            },
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        name: "nextNonce",
        outputs: [
            {
                internalType: "uint64",
                name: "nonce",
                type: "uint64",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "oAppVersion",
        outputs: [
            {
                internalType: "uint64",
                name: "senderVersion",
                type: "uint64",
            },
            {
                internalType: "uint64",
                name: "receiverVersion",
                type: "uint64",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "owner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_eid",
                type: "uint32",
            },
        ],
        name: "peers",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "pendingOwner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
        ],
        name: "rejectUpdate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [],
        name: "remoteDelay",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "renounceOwnership",
        outputs: [],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        name: "riskParameterConfigs",
        outputs: [
            {
                internalType: "bool",
                name: "active",
                type: "bool",
            },
            {
                internalType: "uint256",
                name: "debounce",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "riskSteward",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "accessControlManager_",
                type: "address",
            },
        ],
        name: "setAccessControlManager",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                internalType: "bool",
                name: "active",
                type: "bool",
            },
        ],
        name: "setConfigActive",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "_delegate",
                type: "address",
            },
        ],
        name: "setDelegate",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint32",
                name: "_eid",
                type: "uint32",
            },
            {
                internalType: "bytes32",
                name: "_peer",
                type: "bytes32",
            },
        ],
        name: "setPeer",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "newRemoteDelay",
                type: "uint256",
            },
        ],
        name: "setRemoteDelay",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "string",
                name: "updateType",
                type: "string",
            },
            {
                internalType: "address",
                name: "riskSteward",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "debounce",
                type: "uint256",
            },
        ],
        name: "setRiskParameterConfig",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "executor",
                type: "address",
            },
            {
                internalType: "bool",
                name: "approved",
                type: "bool",
            },
        ],
        name: "setWhitelistedExecutor",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "newOwner",
                type: "address",
            },
        ],
        name: "transferOwnership",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "updateId",
                type: "uint256",
            },
        ],
        name: "updates",
        outputs: [
            {
                components: [
                    {
                        internalType: "string",
                        name: "referenceId",
                        type: "string",
                    },
                    {
                        internalType: "uint256",
                        name: "updateId",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "market",
                        type: "address",
                    },
                    {
                        internalType: "string",
                        name: "updateType",
                        type: "string",
                    },
                    {
                        internalType: "bytes32",
                        name: "updateTypeKey",
                        type: "bytes32",
                    },
                    {
                        internalType: "bytes",
                        name: "newValue",
                        type: "bytes",
                    },
                    {
                        internalType: "bytes",
                        name: "previousValue",
                        type: "bytes",
                    },
                    {
                        internalType: "uint256",
                        name: "timestamp",
                        type: "uint256",
                    },
                    {
                        internalType: "address",
                        name: "publisher",
                        type: "address",
                    },
                    {
                        internalType: "uint96",
                        name: "poolId",
                        type: "uint96",
                    },
                    {
                        internalType: "uint32",
                        name: "destLzEid",
                        type: "uint32",
                    },
                    {
                        internalType: "bytes",
                        name: "additionalData",
                        type: "bytes",
                    },
                ],
                internalType: "struct RiskParameterUpdate",
                name: "update",
                type: "tuple",
            },
            {
                internalType: "enum IDestinationStewardReceiver.UpdateStatus",
                name: "status",
                type: "uint8",
            },
            {
                internalType: "uint256",
                name: "arrivalTime",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "executor",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        name: "whitelistedExecutors",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = " ";
const isSuperArgs = (xs) => xs.length > 1;
class DestinationStewardReceiver__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(endpoint_, layerZeroEid_, overrides) {
        return super.deploy(endpoint_, layerZeroEid_, overrides || {});
    }
    getDeployTransaction(endpoint_, layerZeroEid_, overrides) {
        return super.getDeployTransaction(endpoint_, layerZeroEid_, 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.DestinationStewardReceiver__factory = DestinationStewardReceiver__factory;
DestinationStewardReceiver__factory.bytecode = _bytecode;
DestinationStewardReceiver__factory.abi = _abi;
//# sourceMappingURL=DestinationStewardReceiver__factory.js.map