"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useGetGroups = exports.useGetTallyResult = exports.useGetGroupsByMember = exports.useGetVotesByVoter = exports.useGetVotesByProposal = exports.useGetVoteByProposalVoter = exports.useGetProposalsByGroupPolicy = exports.useGetProposal = exports.useGetGroupPoliciesByAdmin = exports.useGetGroupPoliciesByGroup = exports.useGetGroupsByAdmin = exports.useGetGroupMembers = exports.useGetGroupPolicyInfo = exports.useGetGroupInfo = void 0;
const vue_query_1 = require("../../../vue-query");
const query_rpc_func_1 = require("./query.rpc.func");
/**
 * GroupInfo queries group info based on group id.
 * @name useGetGroupInfo
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.GroupInfo
 */
exports.useGetGroupInfo = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getGroupInfo,
    queryKeyPrefix: "GroupInfoQuery"
});
/**
 * GroupPolicyInfo queries group policy info based on account address of group policy.
 * @name useGetGroupPolicyInfo
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.GroupPolicyInfo
 */
exports.useGetGroupPolicyInfo = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getGroupPolicyInfo,
    queryKeyPrefix: "GroupPolicyInfoQuery"
});
/**
 * GroupMembers queries members of a group by group id.
 * @name useGetGroupMembers
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.GroupMembers
 */
exports.useGetGroupMembers = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getGroupMembers,
    queryKeyPrefix: "GroupMembersQuery"
});
/**
 * GroupsByAdmin queries groups by admin address.
 * @name useGetGroupsByAdmin
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.GroupsByAdmin
 */
exports.useGetGroupsByAdmin = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getGroupsByAdmin,
    queryKeyPrefix: "GroupsByAdminQuery"
});
/**
 * GroupPoliciesByGroup queries group policies by group id.
 * @name useGetGroupPoliciesByGroup
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.GroupPoliciesByGroup
 */
exports.useGetGroupPoliciesByGroup = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getGroupPoliciesByGroup,
    queryKeyPrefix: "GroupPoliciesByGroupQuery"
});
/**
 * GroupPoliciesByAdmin queries group policies by admin address.
 * @name useGetGroupPoliciesByAdmin
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.GroupPoliciesByAdmin
 */
exports.useGetGroupPoliciesByAdmin = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getGroupPoliciesByAdmin,
    queryKeyPrefix: "GroupPoliciesByAdminQuery"
});
/**
 * Proposal queries a proposal based on proposal id.
 * @name useGetProposal
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.Proposal
 */
exports.useGetProposal = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getProposal,
    queryKeyPrefix: "ProposalQuery"
});
/**
 * ProposalsByGroupPolicy queries proposals based on account address of group policy.
 * @name useGetProposalsByGroupPolicy
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.ProposalsByGroupPolicy
 */
exports.useGetProposalsByGroupPolicy = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getProposalsByGroupPolicy,
    queryKeyPrefix: "ProposalsByGroupPolicyQuery"
});
/**
 * VoteByProposalVoter queries a vote by proposal id and voter.
 * @name useGetVoteByProposalVoter
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.VoteByProposalVoter
 */
exports.useGetVoteByProposalVoter = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getVoteByProposalVoter,
    queryKeyPrefix: "VoteByProposalVoterQuery"
});
/**
 * VotesByProposal queries a vote by proposal id.
 * @name useGetVotesByProposal
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.VotesByProposal
 */
exports.useGetVotesByProposal = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getVotesByProposal,
    queryKeyPrefix: "VotesByProposalQuery"
});
/**
 * VotesByVoter queries a vote by voter.
 * @name useGetVotesByVoter
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.VotesByVoter
 */
exports.useGetVotesByVoter = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getVotesByVoter,
    queryKeyPrefix: "VotesByVoterQuery"
});
/**
 * GroupsByMember queries groups by member address.
 * @name useGetGroupsByMember
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.GroupsByMember
 */
exports.useGetGroupsByMember = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getGroupsByMember,
    queryKeyPrefix: "GroupsByMemberQuery"
});
/**
 * TallyResult returns the tally result of a proposal. If the proposal is
 * still in voting period, then this query computes the current tally state,
 * which might not be final. On the other hand, if the proposal is final,
 * then it simply returns the `final_tally_result` state stored in the
 * proposal itself.
 * @name useGetTallyResult
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.TallyResult
 */
exports.useGetTallyResult = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getTallyResult,
    queryKeyPrefix: "TallyResultQuery"
});
/**
 * Groups queries all groups in state.
 * @name useGetGroups
 * @package cosmos.group.v1
 * @see proto service: cosmos.group.v1.Groups
 */
exports.useGetGroups = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.getGroups,
    queryKeyPrefix: "GroupsQuery"
});
