"use strict";
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 () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.createRPCQueryClient = void 0;
const tendermint_rpc_1 = require("@cosmjs/tendermint-rpc");
const stargate_1 = require("@cosmjs/stargate");
const createRPCQueryClient = async ({ rpcEndpoint }) => {
    const tmClient = await tendermint_rpc_1.Tendermint34Client.connect(rpcEndpoint);
    const client = new stargate_1.QueryClient(tmClient);
    return {
        cosmos: {
            app: {
                v1alpha1: (await Promise.resolve().then(() => __importStar(require("../cosmos/app/v1alpha1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            auth: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/auth/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            authz: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/authz/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            bank: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/bank/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            base: {
                node: {
                    v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/base/node/v1beta1/query.rpc.Service")))).createRpcQueryExtension(client)
                },
                tendermint: {
                    v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/base/tendermint/v1beta1/query.rpc.Service")))).createRpcQueryExtension(client)
                }
            },
            circuit: {
                v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/circuit/v1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            consensus: {
                v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/consensus/v1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            distribution: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/distribution/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            evidence: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/evidence/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            feegrant: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/feegrant/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            gov: {
                v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1/query.rpc.Query")))).createRpcQueryExtension(client),
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/gov/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            group: {
                v1: (await Promise.resolve().then(() => __importStar(require("../cosmos/group/v1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            mint: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/mint/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            nft: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/nft/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            orm: {
                query: {
                    v1alpha1: (await Promise.resolve().then(() => __importStar(require("../cosmos/orm/query/v1alpha1/query.rpc.Query")))).createRpcQueryExtension(client)
                }
            },
            params: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/params/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            slashing: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/slashing/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            staking: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/staking/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            },
            tx: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/tx/v1beta1/service.rpc.Service")))).createRpcQueryExtension(client)
            },
            upgrade: {
                v1beta1: (await Promise.resolve().then(() => __importStar(require("../cosmos/upgrade/v1beta1/query.rpc.Query")))).createRpcQueryExtension(client)
            }
        },
        ritbit: {
            accountplus: (await Promise.resolve().then(() => __importStar(require("./accountplus/query.rpc.Query")))).createRpcQueryExtension(client),
            affiliates: (await Promise.resolve().then(() => __importStar(require("./affiliates/query.rpc.Query")))).createRpcQueryExtension(client),
            assets: (await Promise.resolve().then(() => __importStar(require("./assets/query.rpc.Query")))).createRpcQueryExtension(client),
            blocktime: (await Promise.resolve().then(() => __importStar(require("./blocktime/query.rpc.Query")))).createRpcQueryExtension(client),
            bridge: (await Promise.resolve().then(() => __importStar(require("./bridge/query.rpc.Query")))).createRpcQueryExtension(client),
            clob: (await Promise.resolve().then(() => __importStar(require("./clob/query.rpc.Query")))).createRpcQueryExtension(client),
            delaymsg: (await Promise.resolve().then(() => __importStar(require("./delaymsg/query.rpc.Query")))).createRpcQueryExtension(client),
            epochs: (await Promise.resolve().then(() => __importStar(require("./epochs/query.rpc.Query")))).createRpcQueryExtension(client),
            feetiers: (await Promise.resolve().then(() => __importStar(require("./feetiers/query.rpc.Query")))).createRpcQueryExtension(client),
            govplus: (await Promise.resolve().then(() => __importStar(require("./govplus/query.rpc.Query")))).createRpcQueryExtension(client),
            listing: (await Promise.resolve().then(() => __importStar(require("./listing/query.rpc.Query")))).createRpcQueryExtension(client),
            perpetuals: (await Promise.resolve().then(() => __importStar(require("./perpetuals/query.rpc.Query")))).createRpcQueryExtension(client),
            prices: (await Promise.resolve().then(() => __importStar(require("./prices/query.rpc.Query")))).createRpcQueryExtension(client),
            ratelimit: (await Promise.resolve().then(() => __importStar(require("./ratelimit/query.rpc.Query")))).createRpcQueryExtension(client),
            revshare: (await Promise.resolve().then(() => __importStar(require("./revshare/query.rpc.Query")))).createRpcQueryExtension(client),
            rewards: (await Promise.resolve().then(() => __importStar(require("./rewards/query.rpc.Query")))).createRpcQueryExtension(client),
            sending: (await Promise.resolve().then(() => __importStar(require("./sending/query.rpc.Query")))).createRpcQueryExtension(client),
            stats: (await Promise.resolve().then(() => __importStar(require("./stats/query.rpc.Query")))).createRpcQueryExtension(client),
            subaccounts: (await Promise.resolve().then(() => __importStar(require("./subaccounts/query.rpc.Query")))).createRpcQueryExtension(client),
            vault: (await Promise.resolve().then(() => __importStar(require("./vault/query.rpc.Query")))).createRpcQueryExtension(client),
            vest: (await Promise.resolve().then(() => __importStar(require("./vest/query.rpc.Query")))).createRpcQueryExtension(client)
        }
    };
};
exports.createRPCQueryClient = createRPCQueryClient;
//# sourceMappingURL=data:application/json;base64, 