import { buildQuery } from "../../../helper-func-types";
import { QueryProposalRequest, QueryProposalResponse, QueryProposalsRequest, QueryProposalsResponse, QueryVoteRequest, QueryVoteResponse, QueryVotesRequest, QueryVotesResponse, QueryParamsRequest, QueryParamsResponse, QueryDepositRequest, QueryDepositResponse, QueryDepositsRequest, QueryDepositsResponse, QueryTallyResultRequest, QueryTallyResultResponse } from "./query";
/**
 * Proposal queries proposal details based on ProposalID.
 * @name getProposal
 * @package cosmos.gov.v1beta1
 * @see proto service: cosmos.gov.v1beta1.Proposal
 */
export const getProposal = buildQuery({
    encode: QueryProposalRequest.encode,
    decode: QueryProposalResponse.decode,
    service: "cosmos.gov.v1beta1.Query",
    method: "Proposal",
    deps: [QueryProposalRequest, QueryProposalResponse]
});
/**
 * Proposals queries all proposals based on given status.
 * @name getProposals
 * @package cosmos.gov.v1beta1
 * @see proto service: cosmos.gov.v1beta1.Proposals
 */
export const getProposals = buildQuery({
    encode: QueryProposalsRequest.encode,
    decode: QueryProposalsResponse.decode,
    service: "cosmos.gov.v1beta1.Query",
    method: "Proposals",
    deps: [QueryProposalsRequest, QueryProposalsResponse]
});
/**
 * Vote queries voted information based on proposalID, voterAddr.
 * @name getVote
 * @package cosmos.gov.v1beta1
 * @see proto service: cosmos.gov.v1beta1.Vote
 */
export const getVote = buildQuery({
    encode: QueryVoteRequest.encode,
    decode: QueryVoteResponse.decode,
    service: "cosmos.gov.v1beta1.Query",
    method: "Vote",
    deps: [QueryVoteRequest, QueryVoteResponse]
});
/**
 * Votes queries votes of a given proposal.
 * @name getVotes
 * @package cosmos.gov.v1beta1
 * @see proto service: cosmos.gov.v1beta1.Votes
 */
export const getVotes = buildQuery({
    encode: QueryVotesRequest.encode,
    decode: QueryVotesResponse.decode,
    service: "cosmos.gov.v1beta1.Query",
    method: "Votes",
    deps: [QueryVotesRequest, QueryVotesResponse]
});
/**
 * Params queries all parameters of the gov module.
 * @name getParams
 * @package cosmos.gov.v1beta1
 * @see proto service: cosmos.gov.v1beta1.Params
 */
export const getParams = buildQuery({
    encode: QueryParamsRequest.encode,
    decode: QueryParamsResponse.decode,
    service: "cosmos.gov.v1beta1.Query",
    method: "Params",
    deps: [QueryParamsRequest, QueryParamsResponse]
});
/**
 * Deposit queries single deposit information based on proposalID, depositor address.
 * @name getDeposit
 * @package cosmos.gov.v1beta1
 * @see proto service: cosmos.gov.v1beta1.Deposit
 */
export const getDeposit = buildQuery({
    encode: QueryDepositRequest.encode,
    decode: QueryDepositResponse.decode,
    service: "cosmos.gov.v1beta1.Query",
    method: "Deposit",
    deps: [QueryDepositRequest, QueryDepositResponse]
});
/**
 * Deposits queries all deposits of a single proposal.
 * @name getDeposits
 * @package cosmos.gov.v1beta1
 * @see proto service: cosmos.gov.v1beta1.Deposits
 */
export const getDeposits = buildQuery({
    encode: QueryDepositsRequest.encode,
    decode: QueryDepositsResponse.decode,
    service: "cosmos.gov.v1beta1.Query",
    method: "Deposits",
    deps: [QueryDepositsRequest, QueryDepositsResponse]
});
/**
 * TallyResult queries the tally of a proposal vote.
 * @name getTallyResult
 * @package cosmos.gov.v1beta1
 * @see proto service: cosmos.gov.v1beta1.TallyResult
 */
export const getTallyResult = buildQuery({
    encode: QueryTallyResultRequest.encode,
    decode: QueryTallyResultResponse.decode,
    service: "cosmos.gov.v1beta1.Query",
    method: "TallyResult",
    deps: [QueryTallyResultRequest, QueryTallyResultResponse]
});
