"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGetGroups = exports.createGetTallyResult = exports.createGetGroupsByMember = exports.createGetVotesByVoter = exports.createGetVotesByProposal = exports.createGetVoteByProposalVoter = exports.createGetProposalsByGroupPolicy = exports.createGetProposal = exports.createGetGroupPoliciesByAdmin = exports.createGetGroupPoliciesByGroup = exports.createGetGroupsByAdmin = exports.createGetGroupMembers = exports.createGetGroupPolicyInfo = exports.createGetGroupInfo = void 0;
const helper_func_types_1 = require("../../../helper-func-types");
const query_1 = require("./query");
const createGetGroupInfo = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGroupInfoRequest.encode,
    decode: query_1.QueryGroupInfoResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "GroupInfo",
    clientResolver
});
exports.createGetGroupInfo = createGetGroupInfo;
const createGetGroupPolicyInfo = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGroupPolicyInfoRequest.encode,
    decode: query_1.QueryGroupPolicyInfoResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "GroupPolicyInfo",
    clientResolver
});
exports.createGetGroupPolicyInfo = createGetGroupPolicyInfo;
const createGetGroupMembers = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGroupMembersRequest.encode,
    decode: query_1.QueryGroupMembersResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "GroupMembers",
    clientResolver
});
exports.createGetGroupMembers = createGetGroupMembers;
const createGetGroupsByAdmin = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGroupsByAdminRequest.encode,
    decode: query_1.QueryGroupsByAdminResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "GroupsByAdmin",
    clientResolver
});
exports.createGetGroupsByAdmin = createGetGroupsByAdmin;
const createGetGroupPoliciesByGroup = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGroupPoliciesByGroupRequest.encode,
    decode: query_1.QueryGroupPoliciesByGroupResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "GroupPoliciesByGroup",
    clientResolver
});
exports.createGetGroupPoliciesByGroup = createGetGroupPoliciesByGroup;
const createGetGroupPoliciesByAdmin = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGroupPoliciesByAdminRequest.encode,
    decode: query_1.QueryGroupPoliciesByAdminResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "GroupPoliciesByAdmin",
    clientResolver
});
exports.createGetGroupPoliciesByAdmin = createGetGroupPoliciesByAdmin;
const createGetProposal = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryProposalRequest.encode,
    decode: query_1.QueryProposalResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "Proposal",
    clientResolver
});
exports.createGetProposal = createGetProposal;
const createGetProposalsByGroupPolicy = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryProposalsByGroupPolicyRequest.encode,
    decode: query_1.QueryProposalsByGroupPolicyResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "ProposalsByGroupPolicy",
    clientResolver
});
exports.createGetProposalsByGroupPolicy = createGetProposalsByGroupPolicy;
const createGetVoteByProposalVoter = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryVoteByProposalVoterRequest.encode,
    decode: query_1.QueryVoteByProposalVoterResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "VoteByProposalVoter",
    clientResolver
});
exports.createGetVoteByProposalVoter = createGetVoteByProposalVoter;
const createGetVotesByProposal = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryVotesByProposalRequest.encode,
    decode: query_1.QueryVotesByProposalResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "VotesByProposal",
    clientResolver
});
exports.createGetVotesByProposal = createGetVotesByProposal;
const createGetVotesByVoter = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryVotesByVoterRequest.encode,
    decode: query_1.QueryVotesByVoterResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "VotesByVoter",
    clientResolver
});
exports.createGetVotesByVoter = createGetVotesByVoter;
const createGetGroupsByMember = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGroupsByMemberRequest.encode,
    decode: query_1.QueryGroupsByMemberResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "GroupsByMember",
    clientResolver
});
exports.createGetGroupsByMember = createGetGroupsByMember;
const createGetTallyResult = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryTallyResultRequest.encode,
    decode: query_1.QueryTallyResultResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "TallyResult",
    clientResolver
});
exports.createGetTallyResult = createGetTallyResult;
const createGetGroups = (clientResolver) => (0, helper_func_types_1.buildQuery)({
    encode: query_1.QueryGroupsRequest.encode,
    decode: query_1.QueryGroupsResponse.decode,
    service: "cosmos.group.v1.Query",
    method: "Groups",
    clientResolver
});
exports.createGetGroups = createGetGroups;
