"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MerkleDistributor__factory = void 0;
var ethers_1 = require("ethers");
var _abi = [
    {
        type: "function",
        name: "claim",
        inputs: [
            {
                name: "_claim",
                type: "tuple",
                internalType: "struct MerkleDistributorInterface.Claim",
                components: [
                    {
                        name: "windowIndex",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "amount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "accountIndex",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "account",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "merkleProof",
                        type: "bytes32[]",
                        internalType: "bytes32[]",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "claimMulti",
        inputs: [
            {
                name: "claims",
                type: "tuple[]",
                internalType: "struct MerkleDistributorInterface.Claim[]",
                components: [
                    {
                        name: "windowIndex",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "amount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "accountIndex",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "account",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "merkleProof",
                        type: "bytes32[]",
                        internalType: "bytes32[]",
                    },
                ],
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "deleteWindow",
        inputs: [
            {
                name: "windowIndex",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "getRewardTokenForWindow",
        inputs: [
            {
                name: "windowIndex",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "isClaimed",
        inputs: [
            {
                name: "windowIndex",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "accountIndex",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "merkleWindows",
        inputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [
            {
                name: "merkleRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "remainingAmount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "rewardToken",
                type: "address",
                internalType: "contract IERC20",
            },
            {
                name: "ipfsHash",
                type: "string",
                internalType: "string",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "nextCreatedIndex",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "owner",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "renounceOwnership",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setWindow",
        inputs: [
            {
                name: "rewardsToDeposit",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "rewardToken",
                type: "address",
                internalType: "address",
            },
            {
                name: "merkleRoot",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "ipfsHash",
                type: "string",
                internalType: "string",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "transferOwnership",
        inputs: [
            {
                name: "newOwner",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "verifyClaim",
        inputs: [
            {
                name: "_claim",
                type: "tuple",
                internalType: "struct MerkleDistributorInterface.Claim",
                components: [
                    {
                        name: "windowIndex",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "amount",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "accountIndex",
                        type: "uint256",
                        internalType: "uint256",
                    },
                    {
                        name: "account",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "merkleProof",
                        type: "bytes32[]",
                        internalType: "bytes32[]",
                    },
                ],
            },
        ],
        outputs: [
            {
                name: "valid",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "withdrawRewards",
        inputs: [
            {
                name: "rewardCurrency",
                type: "address",
                internalType: "contract IERC20",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "event",
        name: "Claimed",
        inputs: [
            {
                name: "caller",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "windowIndex",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "account",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "accountIndex",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "amount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "rewardToken",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "CreatedWindow",
        inputs: [
            {
                name: "windowIndex",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "rewardsDeposited",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "rewardToken",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "owner",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "DeleteWindow",
        inputs: [
            {
                name: "windowIndex",
                type: "uint256",
                indexed: true,
                internalType: "uint256",
            },
            {
                name: "owner",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "OwnershipTransferred",
        inputs: [
            {
                name: "previousOwner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "newOwner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "WithdrawRewards",
        inputs: [
            {
                name: "owner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "currency",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
];
var MerkleDistributor__factory = (function () {
    function MerkleDistributor__factory() {
    }
    MerkleDistributor__factory.createInterface = function () {
        return new ethers_1.utils.Interface(_abi);
    };
    MerkleDistributor__factory.connect = function (address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    };
    MerkleDistributor__factory.abi = _abi;
    return MerkleDistributor__factory;
}());
exports.MerkleDistributor__factory = MerkleDistributor__factory;
//# sourceMappingURL=MerkleDistributor__factory.js.map