"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IPaymentsEscrow__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: "uint256",
                name: "balanceBefore",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "balanceAfter",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
        ],
        name: "PaymentsEscrowInconsistentCollection",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "balance",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "minBalance",
                type: "uint256",
            },
        ],
        name: "PaymentsEscrowInsufficientBalance",
        type: "error",
    },
    {
        inputs: [],
        name: "PaymentsEscrowInvalidZeroTokens",
        type: "error",
    },
    {
        inputs: [],
        name: "PaymentsEscrowIsPaused",
        type: "error",
    },
    {
        inputs: [],
        name: "PaymentsEscrowNotThawing",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "currentTimestamp",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "thawEndTimestamp",
                type: "uint256",
            },
        ],
        name: "PaymentsEscrowStillThawing",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "thawingPeriod",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "maxWaitPeriod",
                type: "uint256",
            },
        ],
        name: "PaymentsEscrowThawingPeriodTooLong",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokensThawing",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "thawEndTimestamp",
                type: "uint256",
            },
        ],
        name: "CancelThaw",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
        ],
        name: "Deposit",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "enum IGraphPayments.PaymentTypes",
                name: "paymentType",
                type: "uint8",
            },
            {
                indexed: true,
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "address",
                name: "receiverDestination",
                type: "address",
            },
        ],
        name: "EscrowCollected",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "thawEndTimestamp",
                type: "uint256",
            },
        ],
        name: "Thaw",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
        ],
        name: "Withdraw",
        type: "event",
    },
    {
        inputs: [],
        name: "MAX_WAIT_PERIOD",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "WITHDRAW_ESCROW_THAWING_PERIOD",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
        ],
        name: "cancelThaw",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "enum IGraphPayments.PaymentTypes",
                name: "paymentType",
                type: "uint8",
            },
            {
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "dataService",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "dataServiceCut",
                type: "uint256",
            },
            {
                internalType: "address",
                name: "receiverDestination",
                type: "address",
            },
        ],
        name: "collect",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
        ],
        name: "deposit",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
        ],
        name: "depositTo",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
        ],
        name: "getBalance",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "initialize",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
        ],
        name: "thaw",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "collector",
                type: "address",
            },
            {
                internalType: "address",
                name: "receiver",
                type: "address",
            },
        ],
        name: "withdraw",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
class IPaymentsEscrow__factory {
    static abi = _abi;
    static interfaceId = "0xcc3c2e5c";
    static interfaceName = "IPaymentsEscrow";
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.IPaymentsEscrow__factory = IPaymentsEscrow__factory;
//# sourceMappingURL=IPaymentsEscrow__factory.js.map