"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
require("../interfaces/augment-api");
require("../interfaces/augment-types");
exports.default = (api) => ({
    assetInfo: api.query.eqAssets.assets,
    aggregates: api.query.eqAggregates.totalUserGroups,
    balances: api.query.eqBalances.account,
    rates: api.query.oracle.pricePoints,
    // Group
    hasGroup: api.query.eqAggregates.accountUserGroups,
    aggregatesByGroup: api.query.eqAggregates.totalUserGroups,
    // Balance
    getBalance: api.query.eqBalances.account,
    // Bridge
    getAssetByResourceId: api.query.eqBridge?.resources,
    // Claim
    // @ts-ignore
    getClaim: api.query.claims?.claims,
    // @ts-ignore
    getClaimSigning: api.query.claims?.signing,
    // @ts-ignore
    getClaimVesting: api.query.claims?.vesting,
    // @ts-ignore
    getTotalClaim: api.query.claims?.total,
    // Curve
    getPool: api.query.curveAmm?.pools,
    // Lockdrop
    // @ts-ignore
    getLocks: api.query.eqLockdrop?.locks,
    // @ts-ignore
    getLockTime: api.query.eqLockdrop?.lockStart,
    // SubAccounts
    getAddress: api.query.subaccounts.subaccount,
    getOwner: api.query.subaccounts.ownerAccount,
    // Vesting
    getVested: api.query.vesting.vested,
    getVesting: api.query.vesting.vesting,
    // Volatility
    getMetrics: api.query.financial.metrics,
    // getPrices: api.query.volatility.prices,
    // getVolatility: api.query.volatility.volatility,
    // Oracle
    getRate: api.query.oracle.pricePoints,
    // DEX
    dexActualChunksByAsset: api.query.eqDex?.actualChunksByAsset,
    dexOrdersByAssetAndChunkKey: api.query.eqDex?.ordersByAssetAndChunkKey,
    dexBestPriceByAsset: api.query.eqDex?.bestPriceByAsset,
    // margin call
    maintenanceSince: api.query.eqMarginCall.maintenanceTimers,
});
