"use strict";
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
Object.defineProperty(exports, "__esModule", { value: true });
exports.IGraphTallyCollector__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [],
        name: "AuthorizableInvalidSignerProof",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "proofDeadline",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "currentTimestamp",
                type: "uint256",
            },
        ],
        name: "AuthorizableInvalidSignerProofDeadline",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "authorizer",
                type: "address",
            },
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
            {
                internalType: "bool",
                name: "revoked",
                type: "bool",
            },
        ],
        name: "AuthorizableSignerAlreadyAuthorized",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "authorizer",
                type: "address",
            },
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "AuthorizableSignerNotAuthorized",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "AuthorizableSignerNotThawing",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "currentTimestamp",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "thawEndTimestamp",
                type: "uint256",
            },
        ],
        name: "AuthorizableSignerStillThawing",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "caller",
                type: "address",
            },
            {
                internalType: "address",
                name: "dataService",
                type: "address",
            },
        ],
        name: "GraphTallyCollectorCallerNotDataService",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "tokensCollected",
                type: "uint256",
            },
        ],
        name: "GraphTallyCollectorInconsistentRAVTokens",
        type: "error",
    },
    {
        inputs: [],
        name: "GraphTallyCollectorInvalidRAVSigner",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "uint256",
                name: "tokensToCollect",
                type: "uint256",
            },
            {
                internalType: "uint256",
                name: "maxTokensToCollect",
                type: "uint256",
            },
        ],
        name: "GraphTallyCollectorInvalidTokensToCollectAmount",
        type: "error",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "dataService",
                type: "address",
            },
        ],
        name: "GraphTallyCollectorUnauthorizedDataService",
        type: "error",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: false,
                internalType: "enum IGraphPayments.PaymentTypes",
                name: "paymentType",
                type: "uint8",
            },
            {
                indexed: true,
                internalType: "bytes32",
                name: "collectionId",
                type: "bytes32",
            },
            {
                indexed: true,
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "receiver",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "dataService",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "tokens",
                type: "uint256",
            },
        ],
        name: "PaymentCollected",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "bytes32",
                name: "collectionId",
                type: "bytes32",
            },
            {
                indexed: true,
                internalType: "address",
                name: "payer",
                type: "address",
            },
            {
                indexed: false,
                internalType: "address",
                name: "serviceProvider",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "dataService",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint64",
                name: "timestampNs",
                type: "uint64",
            },
            {
                indexed: false,
                internalType: "uint128",
                name: "valueAggregate",
                type: "uint128",
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "metadata",
                type: "bytes",
            },
            {
                indexed: false,
                internalType: "bytes",
                name: "signature",
                type: "bytes",
            },
        ],
        name: "RAVCollected",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "authorizer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "SignerAuthorized",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "authorizer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "SignerRevoked",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "authorizer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "signer",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "thawEndTimestamp",
                type: "uint256",
            },
        ],
        name: "SignerThawCanceled",
        type: "event",
    },
    {
        anonymous: false,
        inputs: [
            {
                indexed: true,
                internalType: "address",
                name: "authorizer",
                type: "address",
            },
            {
                indexed: true,
                internalType: "address",
                name: "signer",
                type: "address",
            },
            {
                indexed: false,
                internalType: "uint256",
                name: "thawEndTimestamp",
                type: "uint256",
            },
        ],
        name: "SignerThawing",
        type: "event",
    },
    {
        inputs: [],
        name: "REVOKE_AUTHORIZATION_THAWING_PERIOD",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
            {
                internalType: "uint256",
                name: "proofDeadline",
                type: "uint256",
            },
            {
                internalType: "bytes",
                name: "proof",
                type: "bytes",
            },
        ],
        name: "authorizeSigner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "cancelThawSigner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "enum IGraphPayments.PaymentTypes",
                name: "paymentType",
                type: "uint8",
            },
            {
                internalType: "bytes",
                name: "data",
                type: "bytes",
            },
            {
                internalType: "uint256",
                name: "tokensToCollect",
                type: "uint256",
            },
        ],
        name: "collect",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "enum IGraphPayments.PaymentTypes",
                name: "paymentType",
                type: "uint8",
            },
            {
                internalType: "bytes",
                name: "data",
                type: "bytes",
            },
        ],
        name: "collect",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        internalType: "bytes32",
                        name: "collectionId",
                        type: "bytes32",
                    },
                    {
                        internalType: "address",
                        name: "payer",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "serviceProvider",
                        type: "address",
                    },
                    {
                        internalType: "address",
                        name: "dataService",
                        type: "address",
                    },
                    {
                        internalType: "uint64",
                        name: "timestampNs",
                        type: "uint64",
                    },
                    {
                        internalType: "uint128",
                        name: "valueAggregate",
                        type: "uint128",
                    },
                    {
                        internalType: "bytes",
                        name: "metadata",
                        type: "bytes",
                    },
                ],
                internalType: "struct IGraphTallyCollector.ReceiptAggregateVoucher",
                name: "rav",
                type: "tuple",
            },
        ],
        name: "encodeRAV",
        outputs: [
            {
                internalType: "bytes32",
                name: "",
                type: "bytes32",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "getThawEnd",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "authorizer",
                type: "address",
            },
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "isAuthorized",
        outputs: [
            {
                internalType: "bool",
                name: "",
                type: "bool",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                components: [
                    {
                        components: [
                            {
                                internalType: "bytes32",
                                name: "collectionId",
                                type: "bytes32",
                            },
                            {
                                internalType: "address",
                                name: "payer",
                                type: "address",
                            },
                            {
                                internalType: "address",
                                name: "serviceProvider",
                                type: "address",
                            },
                            {
                                internalType: "address",
                                name: "dataService",
                                type: "address",
                            },
                            {
                                internalType: "uint64",
                                name: "timestampNs",
                                type: "uint64",
                            },
                            {
                                internalType: "uint128",
                                name: "valueAggregate",
                                type: "uint128",
                            },
                            {
                                internalType: "bytes",
                                name: "metadata",
                                type: "bytes",
                            },
                        ],
                        internalType: "struct IGraphTallyCollector.ReceiptAggregateVoucher",
                        name: "rav",
                        type: "tuple",
                    },
                    {
                        internalType: "bytes",
                        name: "signature",
                        type: "bytes",
                    },
                ],
                internalType: "struct IGraphTallyCollector.SignedRAV",
                name: "signedRAV",
                type: "tuple",
            },
        ],
        name: "recoverRAVSigner",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "revokeAuthorizedSigner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "address",
                name: "signer",
                type: "address",
            },
        ],
        name: "thawSigner",
        outputs: [],
        stateMutability: "nonpayable",
        type: "function",
    },
];
class IGraphTallyCollector__factory {
    static abi = _abi;
    static interfaceId = "0x1d541b7e";
    static interfaceName = "IGraphTallyCollector";
    static createInterface() {
        return new ethers_1.Interface(_abi);
    }
    static connect(address, runner) {
        return new ethers_1.Contract(address, _abi, runner);
    }
}
exports.IGraphTallyCollector__factory = IGraphTallyCollector__factory;
//# sourceMappingURL=IGraphTallyCollector__factory.js.map