"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useGetCommunityPool = exports.useGetDelegatorWithdrawAddress = exports.useGetDelegatorValidators = exports.useGetDelegationTotalRewards = exports.useGetDelegationRewards = exports.useGetValidatorSlashes = exports.useGetValidatorCommission = exports.useGetValidatorOutstandingRewards = exports.useGetValidatorDistributionInfo = exports.useGetParams = void 0;
const vue_query_1 = require("../../../vue-query");
const query_rpc_func_1 = require("./query.rpc.func");
/**
 * Params queries params of the distribution module.
 * @name useGetParams
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.Params
 */
exports.useGetParams = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getParams,
    queryKeyPrefix: "ParamsQuery"
});
/**
 * ValidatorDistributionInfo queries validator commission and self-delegation rewards for validator
 * @name useGetValidatorDistributionInfo
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.ValidatorDistributionInfo
 */
exports.useGetValidatorDistributionInfo = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getValidatorDistributionInfo,
    queryKeyPrefix: "ValidatorDistributionInfoQuery"
});
/**
 * ValidatorOutstandingRewards queries rewards of a validator address.
 * @name useGetValidatorOutstandingRewards
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.ValidatorOutstandingRewards
 */
exports.useGetValidatorOutstandingRewards = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getValidatorOutstandingRewards,
    queryKeyPrefix: "ValidatorOutstandingRewardsQuery"
});
/**
 * ValidatorCommission queries accumulated commission for a validator.
 * @name useGetValidatorCommission
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.ValidatorCommission
 */
exports.useGetValidatorCommission = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getValidatorCommission,
    queryKeyPrefix: "ValidatorCommissionQuery"
});
/**
 * ValidatorSlashes queries slash events of a validator.
 * @name useGetValidatorSlashes
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.ValidatorSlashes
 */
exports.useGetValidatorSlashes = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getValidatorSlashes,
    queryKeyPrefix: "ValidatorSlashesQuery"
});
/**
 * DelegationRewards queries the total rewards accrued by a delegation.
 * @name useGetDelegationRewards
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.DelegationRewards
 */
exports.useGetDelegationRewards = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getDelegationRewards,
    queryKeyPrefix: "DelegationRewardsQuery"
});
/**
 * DelegationTotalRewards queries the total rewards accrued by each
 * validator.
 * @name useGetDelegationTotalRewards
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.DelegationTotalRewards
 */
exports.useGetDelegationTotalRewards = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getDelegationTotalRewards,
    queryKeyPrefix: "DelegationTotalRewardsQuery"
});
/**
 * DelegatorValidators queries the validators of a delegator.
 * @name useGetDelegatorValidators
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.DelegatorValidators
 */
exports.useGetDelegatorValidators = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getDelegatorValidators,
    queryKeyPrefix: "DelegatorValidatorsQuery"
});
/**
 * DelegatorWithdrawAddress queries withdraw address of a delegator.
 * @name useGetDelegatorWithdrawAddress
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.DelegatorWithdrawAddress
 */
exports.useGetDelegatorWithdrawAddress = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getDelegatorWithdrawAddress,
    queryKeyPrefix: "DelegatorWithdrawAddressQuery"
});
/**
 * CommunityPool queries the community pool coins.
 *
 * WARNING: This query will fail if an external community pool is used.
 * @name useGetCommunityPool
 * @package cosmos.distribution.v1beta1
 * @see proto service: cosmos.distribution.v1beta1.CommunityPool
 */
exports.useGetCommunityPool = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getCommunityPool,
    queryKeyPrefix: "CommunityPoolQuery"
});
