"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.useArrakisV2LazyQuery = exports.useArrakisV2Query = exports.ArrakisV2Document = exports._SubgraphErrorPolicy_ = exports.UnCollectedFees_OrderBy = exports.Transfer_OrderBy = exports.TermsArrakisV2_OrderBy = exports.SwapPayload_OrderBy = exports.RenewTerm_OrderBy = exports.Rebalance_OrderBy = exports.Range_OrderBy = exports.Pool_OrderBy = exports.PalmTerms_OrderBy = exports.PalmManager_OrderBy = exports.OrderDirection = exports.Mint_OrderBy = exports.LpBurn_OrderBy = exports.Increase_OrderBy = exports.Decrease_OrderBy = exports.CollectedFees_OrderBy = exports.Close_OrderBy = exports.Burn_OrderBy = exports.ArrakisV2_OrderBy = exports.ArrakisV2Factory_OrderBy = void 0;
var client_1 = require("@apollo/client");
var Apollo = __importStar(require("@apollo/client"));
var defaultOptions = {};
var ArrakisV2Factory_OrderBy;
(function (ArrakisV2Factory_OrderBy) {
    ArrakisV2Factory_OrderBy["ArrakisV2s"] = "arrakisV2s";
    ArrakisV2Factory_OrderBy["Id"] = "id";
    ArrakisV2Factory_OrderBy["Implementation"] = "implementation";
    ArrakisV2Factory_OrderBy["NumberOfVault"] = "numberOfVault";
    ArrakisV2Factory_OrderBy["Owner"] = "owner";
})(ArrakisV2Factory_OrderBy = exports.ArrakisV2Factory_OrderBy || (exports.ArrakisV2Factory_OrderBy = {}));
var ArrakisV2_OrderBy;
(function (ArrakisV2_OrderBy) {
    ArrakisV2_OrderBy["Allocation0"] = "allocation0";
    ArrakisV2_OrderBy["Allocation1"] = "allocation1";
    ArrakisV2_OrderBy["AllocationChangedTimestamp"] = "allocationChangedTimestamp";
    ArrakisV2_OrderBy["Burns"] = "burns";
    ArrakisV2_OrderBy["CollectedFees"] = "collectedFees";
    ArrakisV2_OrderBy["CreatedBlockNumber"] = "createdBlockNumber";
    ArrakisV2_OrderBy["CreatedTx"] = "createdTx";
    ArrakisV2_OrderBy["FirstMintTimestamp"] = "firstMintTimestamp";
    ArrakisV2_OrderBy["Id"] = "id";
    ArrakisV2_OrderBy["Init0"] = "init0";
    ArrakisV2_OrderBy["Init1"] = "init1";
    ArrakisV2_OrderBy["LastAllocationChangedTimestamp"] = "lastAllocationChangedTimestamp";
    ArrakisV2_OrderBy["LpBurns"] = "lpBurns";
    ArrakisV2_OrderBy["Manager"] = "manager";
    ArrakisV2_OrderBy["ManagerBalance0"] = "managerBalance0";
    ArrakisV2_OrderBy["ManagerBalance1"] = "managerBalance1";
    ArrakisV2_OrderBy["ManagerFeeBps"] = "managerFeeBPS";
    ArrakisV2_OrderBy["Mints"] = "mints";
    ArrakisV2_OrderBy["Name"] = "name";
    ArrakisV2_OrderBy["Owner"] = "owner";
    ArrakisV2_OrderBy["Pools"] = "pools";
    ArrakisV2_OrderBy["Ranges"] = "ranges";
    ArrakisV2_OrderBy["Rate0"] = "rate0";
    ArrakisV2_OrderBy["Rate1"] = "rate1";
    ArrakisV2_OrderBy["Rebalances"] = "rebalances";
    ArrakisV2_OrderBy["Symbol"] = "symbol";
    ArrakisV2_OrderBy["Token0"] = "token0";
    ArrakisV2_OrderBy["Token1"] = "token1";
    ArrakisV2_OrderBy["Transfers"] = "transfers";
    ArrakisV2_OrderBy["UpdateBlockNumber"] = "updateBlockNumber";
    ArrakisV2_OrderBy["UpdateTx"] = "updateTx";
})(ArrakisV2_OrderBy = exports.ArrakisV2_OrderBy || (exports.ArrakisV2_OrderBy = {}));
var Burn_OrderBy;
(function (Burn_OrderBy) {
    Burn_OrderBy["Amount0"] = "amount0";
    Burn_OrderBy["Amount1"] = "amount1";
    Burn_OrderBy["BurnAmount"] = "burnAmount";
    Burn_OrderBy["Id"] = "id";
    Burn_OrderBy["Receiver"] = "receiver";
    Burn_OrderBy["Timestamp"] = "timestamp";
})(Burn_OrderBy = exports.Burn_OrderBy || (exports.Burn_OrderBy = {}));
var Close_OrderBy;
(function (Close_OrderBy) {
    Close_OrderBy["Amount0"] = "amount0";
    Close_OrderBy["Amount1"] = "amount1";
    Close_OrderBy["Emolument0"] = "emolument0";
    Close_OrderBy["Emolument1"] = "emolument1";
    Close_OrderBy["Id"] = "id";
    Close_OrderBy["To"] = "to";
})(Close_OrderBy = exports.Close_OrderBy || (exports.Close_OrderBy = {}));
var CollectedFees_OrderBy;
(function (CollectedFees_OrderBy) {
    CollectedFees_OrderBy["Fee0"] = "fee0";
    CollectedFees_OrderBy["Fee1"] = "fee1";
    CollectedFees_OrderBy["Id"] = "id";
    CollectedFees_OrderBy["Timestamp"] = "timestamp";
})(CollectedFees_OrderBy = exports.CollectedFees_OrderBy || (exports.CollectedFees_OrderBy = {}));
var Decrease_OrderBy;
(function (Decrease_OrderBy) {
    Decrease_OrderBy["Emolument0"] = "emolument0";
    Decrease_OrderBy["Emolument1"] = "emolument1";
    Decrease_OrderBy["Id"] = "id";
    Decrease_OrderBy["Transaction"] = "transaction";
})(Decrease_OrderBy = exports.Decrease_OrderBy || (exports.Decrease_OrderBy = {}));
var Increase_OrderBy;
(function (Increase_OrderBy) {
    Increase_OrderBy["Amount0"] = "amount0";
    Increase_OrderBy["Amount1"] = "amount1";
    Increase_OrderBy["Id"] = "id";
    Increase_OrderBy["Timestamp"] = "timestamp";
    Increase_OrderBy["Transaction"] = "transaction";
})(Increase_OrderBy = exports.Increase_OrderBy || (exports.Increase_OrderBy = {}));
var LpBurn_OrderBy;
(function (LpBurn_OrderBy) {
    LpBurn_OrderBy["Amount0"] = "amount0";
    LpBurn_OrderBy["Amount1"] = "amount1";
    LpBurn_OrderBy["Id"] = "id";
    LpBurn_OrderBy["User"] = "user";
})(LpBurn_OrderBy = exports.LpBurn_OrderBy || (exports.LpBurn_OrderBy = {}));
var Mint_OrderBy;
(function (Mint_OrderBy) {
    Mint_OrderBy["Amount0"] = "amount0";
    Mint_OrderBy["Amount1"] = "amount1";
    Mint_OrderBy["Id"] = "id";
    Mint_OrderBy["MintAmount"] = "mintAmount";
    Mint_OrderBy["Receiver"] = "receiver";
    Mint_OrderBy["Timestamp"] = "timestamp";
})(Mint_OrderBy = exports.Mint_OrderBy || (exports.Mint_OrderBy = {}));
/** Defines the order direction, either ascending or descending */
var OrderDirection;
(function (OrderDirection) {
    OrderDirection["Asc"] = "asc";
    OrderDirection["Desc"] = "desc";
})(OrderDirection = exports.OrderDirection || (exports.OrderDirection = {}));
var PalmManager_OrderBy;
(function (PalmManager_OrderBy) {
    PalmManager_OrderBy["ArrakisV2s"] = "arrakisV2s";
    PalmManager_OrderBy["Gelato"] = "gelato";
    PalmManager_OrderBy["Id"] = "id";
    PalmManager_OrderBy["ManagerFeeBps"] = "managerFeeBPS";
    PalmManager_OrderBy["MmTermDuration"] = "mmTermDuration";
    PalmManager_OrderBy["Operators"] = "operators";
    PalmManager_OrderBy["Strategies"] = "strategies";
    PalmManager_OrderBy["Terms"] = "terms";
})(PalmManager_OrderBy = exports.PalmManager_OrderBy || (exports.PalmManager_OrderBy = {}));
var PalmTerms_OrderBy;
(function (PalmTerms_OrderBy) {
    PalmTerms_OrderBy["Emolument"] = "emolument";
    PalmTerms_OrderBy["Id"] = "id";
    PalmTerms_OrderBy["Manager"] = "manager";
    PalmTerms_OrderBy["ManagerGelato"] = "manager__gelato";
    PalmTerms_OrderBy["ManagerId"] = "manager__id";
    PalmTerms_OrderBy["ManagerManagerFeeBps"] = "manager__managerFeeBPS";
    PalmTerms_OrderBy["ManagerMmTermDuration"] = "manager__mmTermDuration";
    PalmTerms_OrderBy["ManagerTerms"] = "manager__terms";
    PalmTerms_OrderBy["TermsTreasury"] = "termsTreasury";
})(PalmTerms_OrderBy = exports.PalmTerms_OrderBy || (exports.PalmTerms_OrderBy = {}));
var Pool_OrderBy;
(function (Pool_OrderBy) {
    Pool_OrderBy["FeeTier"] = "feeTier";
    Pool_OrderBy["Id"] = "id";
    Pool_OrderBy["Token0"] = "token0";
    Pool_OrderBy["Token1"] = "token1";
})(Pool_OrderBy = exports.Pool_OrderBy || (exports.Pool_OrderBy = {}));
var Range_OrderBy;
(function (Range_OrderBy) {
    Range_OrderBy["FeeTier"] = "feeTier";
    Range_OrderBy["Id"] = "id";
    Range_OrderBy["Liquidity"] = "liquidity";
    Range_OrderBy["LowerTick"] = "lowerTick";
    Range_OrderBy["UpperTick"] = "upperTick";
})(Range_OrderBy = exports.Range_OrderBy || (exports.Range_OrderBy = {}));
var Rebalance_OrderBy;
(function (Rebalance_OrderBy) {
    Rebalance_OrderBy["Burns"] = "burns";
    Rebalance_OrderBy["Id"] = "id";
    Rebalance_OrderBy["Mints"] = "mints";
    Rebalance_OrderBy["Swap"] = "swap";
    Rebalance_OrderBy["SwapAmountIn"] = "swap__amountIn";
    Rebalance_OrderBy["SwapExpectedMinReturn"] = "swap__expectedMinReturn";
    Rebalance_OrderBy["SwapId"] = "swap__id";
    Rebalance_OrderBy["SwapPayload"] = "swap__payload";
    Rebalance_OrderBy["SwapRouter"] = "swap__router";
    Rebalance_OrderBy["SwapZeroForOne"] = "swap__zeroForOne";
})(Rebalance_OrderBy = exports.Rebalance_OrderBy || (exports.Rebalance_OrderBy = {}));
var RenewTerm_OrderBy;
(function (RenewTerm_OrderBy) {
    RenewTerm_OrderBy["Emolument0"] = "emolument0";
    RenewTerm_OrderBy["Emolument1"] = "emolument1";
    RenewTerm_OrderBy["Id"] = "id";
    RenewTerm_OrderBy["Transaction"] = "transaction";
})(RenewTerm_OrderBy = exports.RenewTerm_OrderBy || (exports.RenewTerm_OrderBy = {}));
var SwapPayload_OrderBy;
(function (SwapPayload_OrderBy) {
    SwapPayload_OrderBy["AmountIn"] = "amountIn";
    SwapPayload_OrderBy["ExpectedMinReturn"] = "expectedMinReturn";
    SwapPayload_OrderBy["Id"] = "id";
    SwapPayload_OrderBy["Payload"] = "payload";
    SwapPayload_OrderBy["Router"] = "router";
    SwapPayload_OrderBy["ZeroForOne"] = "zeroForOne";
})(SwapPayload_OrderBy = exports.SwapPayload_OrderBy || (exports.SwapPayload_OrderBy = {}));
var TermsArrakisV2_OrderBy;
(function (TermsArrakisV2_OrderBy) {
    TermsArrakisV2_OrderBy["Arrakis"] = "arrakis";
    TermsArrakisV2_OrderBy["ArrakisAllocation0"] = "arrakis__allocation0";
    TermsArrakisV2_OrderBy["ArrakisAllocation1"] = "arrakis__allocation1";
    TermsArrakisV2_OrderBy["ArrakisAllocationChangedTimestamp"] = "arrakis__allocationChangedTimestamp";
    TermsArrakisV2_OrderBy["ArrakisCreatedBlockNumber"] = "arrakis__createdBlockNumber";
    TermsArrakisV2_OrderBy["ArrakisCreatedTx"] = "arrakis__createdTx";
    TermsArrakisV2_OrderBy["ArrakisFirstMintTimestamp"] = "arrakis__firstMintTimestamp";
    TermsArrakisV2_OrderBy["ArrakisId"] = "arrakis__id";
    TermsArrakisV2_OrderBy["ArrakisInit0"] = "arrakis__init0";
    TermsArrakisV2_OrderBy["ArrakisInit1"] = "arrakis__init1";
    TermsArrakisV2_OrderBy["ArrakisLastAllocationChangedTimestamp"] = "arrakis__lastAllocationChangedTimestamp";
    TermsArrakisV2_OrderBy["ArrakisManager"] = "arrakis__manager";
    TermsArrakisV2_OrderBy["ArrakisManagerBalance0"] = "arrakis__managerBalance0";
    TermsArrakisV2_OrderBy["ArrakisManagerBalance1"] = "arrakis__managerBalance1";
    TermsArrakisV2_OrderBy["ArrakisManagerFeeBps"] = "arrakis__managerFeeBPS";
    TermsArrakisV2_OrderBy["ArrakisName"] = "arrakis__name";
    TermsArrakisV2_OrderBy["ArrakisOwner"] = "arrakis__owner";
    TermsArrakisV2_OrderBy["ArrakisRate0"] = "arrakis__rate0";
    TermsArrakisV2_OrderBy["ArrakisRate1"] = "arrakis__rate1";
    TermsArrakisV2_OrderBy["ArrakisSymbol"] = "arrakis__symbol";
    TermsArrakisV2_OrderBy["ArrakisToken0"] = "arrakis__token0";
    TermsArrakisV2_OrderBy["ArrakisToken1"] = "arrakis__token1";
    TermsArrakisV2_OrderBy["ArrakisUpdateBlockNumber"] = "arrakis__updateBlockNumber";
    TermsArrakisV2_OrderBy["ArrakisUpdateTx"] = "arrakis__updateTx";
    TermsArrakisV2_OrderBy["Balance"] = "balance";
    TermsArrakisV2_OrderBy["CloseTerm"] = "closeTerm";
    TermsArrakisV2_OrderBy["CloseTermAmount0"] = "closeTerm__amount0";
    TermsArrakisV2_OrderBy["CloseTermAmount1"] = "closeTerm__amount1";
    TermsArrakisV2_OrderBy["CloseTermEmolument0"] = "closeTerm__emolument0";
    TermsArrakisV2_OrderBy["CloseTermEmolument1"] = "closeTerm__emolument1";
    TermsArrakisV2_OrderBy["CloseTermId"] = "closeTerm__id";
    TermsArrakisV2_OrderBy["CloseTermTo"] = "closeTerm__to";
    TermsArrakisV2_OrderBy["Creator"] = "creator";
    TermsArrakisV2_OrderBy["Datas"] = "datas";
    TermsArrakisV2_OrderBy["Decreases"] = "decreases";
    TermsArrakisV2_OrderBy["Delegate"] = "delegate";
    TermsArrakisV2_OrderBy["EndOfMm"] = "endOfMM";
    TermsArrakisV2_OrderBy["Id"] = "id";
    TermsArrakisV2_OrderBy["Increases"] = "increases";
    TermsArrakisV2_OrderBy["LastRebalance"] = "lastRebalance";
    TermsArrakisV2_OrderBy["Owner"] = "owner";
    TermsArrakisV2_OrderBy["RenewTerm"] = "renewTerm";
    TermsArrakisV2_OrderBy["Strat"] = "strat";
})(TermsArrakisV2_OrderBy = exports.TermsArrakisV2_OrderBy || (exports.TermsArrakisV2_OrderBy = {}));
var Transfer_OrderBy;
(function (Transfer_OrderBy) {
    Transfer_OrderBy["Amount"] = "amount";
    Transfer_OrderBy["Id"] = "id";
    Transfer_OrderBy["Inventory0"] = "inventory0";
    Transfer_OrderBy["Inventory1"] = "inventory1";
    Transfer_OrderBy["Receiver"] = "receiver";
    Transfer_OrderBy["ReceiverBalance"] = "receiverBalance";
    Transfer_OrderBy["Sender"] = "sender";
    Transfer_OrderBy["SenderBalance"] = "senderBalance";
    Transfer_OrderBy["Timestamp"] = "timestamp";
    Transfer_OrderBy["TotalSupply"] = "totalSupply";
})(Transfer_OrderBy = exports.Transfer_OrderBy || (exports.Transfer_OrderBy = {}));
var UnCollectedFees_OrderBy;
(function (UnCollectedFees_OrderBy) {
    UnCollectedFees_OrderBy["Amount0"] = "amount0";
    UnCollectedFees_OrderBy["Amount1"] = "amount1";
    UnCollectedFees_OrderBy["Fees0"] = "fees0";
    UnCollectedFees_OrderBy["Fees1"] = "fees1";
    UnCollectedFees_OrderBy["Id"] = "id";
})(UnCollectedFees_OrderBy = exports.UnCollectedFees_OrderBy || (exports.UnCollectedFees_OrderBy = {}));
var _SubgraphErrorPolicy_;
(function (_SubgraphErrorPolicy_) {
    /** Data will be returned even if the subgraph has indexing errors */
    _SubgraphErrorPolicy_["Allow"] = "allow";
    /** If the subgraph has indexing errors, data will be omitted. The default. */
    _SubgraphErrorPolicy_["Deny"] = "deny";
})(_SubgraphErrorPolicy_ = exports._SubgraphErrorPolicy_ || (exports._SubgraphErrorPolicy_ = {}));
exports.ArrakisV2Document = (0, client_1.gql)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  query arrakisV2($id: ID!) {\n    arrakisV2(id: $id) {\n      id\n      name\n      symbol\n      token0\n      token1\n      ranges {\n        id\n      }\n      pools {\n        id\n        token0\n        token1\n        feeTier\n      }\n      init0\n      init1\n      manager\n      owner\n      managerFeeBPS\n      managerBalance0\n      managerBalance1\n      allocation0\n      allocation1\n      lastAllocationChangedTimestamp\n      allocationChangedTimestamp\n      firstMintTimestamp\n      rate0\n      rate1\n      createdBlockNumber\n      updateBlockNumber\n      createdTx\n      updateTx\n    }\n  }\n"], ["\n  query arrakisV2($id: ID!) {\n    arrakisV2(id: $id) {\n      id\n      name\n      symbol\n      token0\n      token1\n      ranges {\n        id\n      }\n      pools {\n        id\n        token0\n        token1\n        feeTier\n      }\n      init0\n      init1\n      manager\n      owner\n      managerFeeBPS\n      managerBalance0\n      managerBalance1\n      allocation0\n      allocation1\n      lastAllocationChangedTimestamp\n      allocationChangedTimestamp\n      firstMintTimestamp\n      rate0\n      rate1\n      createdBlockNumber\n      updateBlockNumber\n      createdTx\n      updateTx\n    }\n  }\n"])));
/**
 * __useArrakisV2Query__
 *
 * To run a query within a React component, call `useArrakisV2Query` and pass it any options that fit your needs.
 * When your component renders, `useArrakisV2Query` returns an object from Apollo Client that contains loading, error, and data properties
 * you can use to render your UI.
 *
 * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
 *
 * @example
 * const { data, loading, error } = useArrakisV2Query({
 *   variables: {
 *      id: // value for 'id'
 *   },
 * });
 */
function useArrakisV2Query(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useQuery(exports.ArrakisV2Document, options);
}
exports.useArrakisV2Query = useArrakisV2Query;
function useArrakisV2LazyQuery(baseOptions) {
    var options = __assign(__assign({}, defaultOptions), baseOptions);
    return Apollo.useLazyQuery(exports.ArrakisV2Document, options);
}
exports.useArrakisV2LazyQuery = useArrakisV2LazyQuery;
var templateObject_1;
//# sourceMappingURL=arrakisTypes.js.map