"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");
exports.useGetGroupInfo = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetGroupInfo,
    queryKeyPrefix: "GroupInfoQuery"
});
exports.useGetGroupPolicyInfo = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetGroupPolicyInfo,
    queryKeyPrefix: "GroupPolicyInfoQuery"
});
exports.useGetGroupMembers = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetGroupMembers,
    queryKeyPrefix: "GroupMembersQuery"
});
exports.useGetGroupsByAdmin = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetGroupsByAdmin,
    queryKeyPrefix: "GroupsByAdminQuery"
});
exports.useGetGroupPoliciesByGroup = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetGroupPoliciesByGroup,
    queryKeyPrefix: "GroupPoliciesByGroupQuery"
});
exports.useGetGroupPoliciesByAdmin = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetGroupPoliciesByAdmin,
    queryKeyPrefix: "GroupPoliciesByAdminQuery"
});
exports.useGetProposal = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetProposal,
    queryKeyPrefix: "ProposalQuery"
});
exports.useGetProposalsByGroupPolicy = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetProposalsByGroupPolicy,
    queryKeyPrefix: "ProposalsByGroupPolicyQuery"
});
exports.useGetVoteByProposalVoter = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetVoteByProposalVoter,
    queryKeyPrefix: "VoteByProposalVoterQuery"
});
exports.useGetVotesByProposal = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetVotesByProposal,
    queryKeyPrefix: "VotesByProposalQuery"
});
exports.useGetVotesByVoter = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetVotesByVoter,
    queryKeyPrefix: "VotesByVoterQuery"
});
exports.useGetGroupsByMember = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetGroupsByMember,
    queryKeyPrefix: "GroupsByMemberQuery"
});
exports.useGetTallyResult = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetTallyResult,
    queryKeyPrefix: "TallyResultQuery"
});
exports.useGetGroups = (0, vue_query_1.buildUseVueQuery)({
    builderQueryFn: query_rpc_func_1.createGetGroups,
    queryKeyPrefix: "GroupsQuery"
});
