import { ProposalStatus, Proposal, Vote, VotingParams, DepositParams, TallyParams, Deposit, TallyResult } from "./gov"; import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination"; import * as _m0 from "protobufjs/minimal"; import { Long, DeepPartial } from "@osmonauts/helpers"; /** QueryProposalRequest is the request type for the Query/Proposal RPC method. */ export interface QueryProposalRequest { /** proposal_id defines the unique id of the proposal. */ proposal_id: Long; } /** QueryProposalResponse is the response type for the Query/Proposal RPC method. */ export interface QueryProposalResponse { proposal: Proposal; } /** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */ export interface QueryProposalsRequest { /** proposal_status defines the status of the proposals. */ proposal_status: ProposalStatus; /** voter defines the voter address for the proposals. */ voter: string; /** depositor defines the deposit addresses from the proposals. */ depositor: string; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** * QueryProposalsResponse is the response type for the Query/Proposals RPC * method. */ export interface QueryProposalsResponse { proposals: Proposal[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QueryVoteRequest is the request type for the Query/Vote RPC method. */ export interface QueryVoteRequest { /** proposal_id defines the unique id of the proposal. */ proposal_id: Long; /** voter defines the oter address for the proposals. */ voter: string; } /** QueryVoteResponse is the response type for the Query/Vote RPC method. */ export interface QueryVoteResponse { /** vote defined the queried vote. */ vote: Vote; } /** QueryVotesRequest is the request type for the Query/Votes RPC method. */ export interface QueryVotesRequest { /** proposal_id defines the unique id of the proposal. */ proposal_id: Long; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** QueryVotesResponse is the response type for the Query/Votes RPC method. */ export interface QueryVotesResponse { /** votes defined the queried votes. */ votes: Vote[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QueryParamsRequest is the request type for the Query/Params RPC method. */ export interface QueryParamsRequest { /** * params_type defines which parameters to query for, can be one of "voting", * "tallying" or "deposit". */ params_type: string; } /** QueryParamsResponse is the response type for the Query/Params RPC method. */ export interface QueryParamsResponse { /** voting_params defines the parameters related to voting. */ voting_params: VotingParams; /** deposit_params defines the parameters related to deposit. */ deposit_params: DepositParams; /** tally_params defines the parameters related to tally. */ tally_params: TallyParams; } /** QueryDepositRequest is the request type for the Query/Deposit RPC method. */ export interface QueryDepositRequest { /** proposal_id defines the unique id of the proposal. */ proposal_id: Long; /** depositor defines the deposit addresses from the proposals. */ depositor: string; } /** QueryDepositResponse is the response type for the Query/Deposit RPC method. */ export interface QueryDepositResponse { /** deposit defines the requested deposit. */ deposit: Deposit; } /** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */ export interface QueryDepositsRequest { /** proposal_id defines the unique id of the proposal. */ proposal_id: Long; /** pagination defines an optional pagination for the request. */ pagination?: PageRequest; } /** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */ export interface QueryDepositsResponse { deposits: Deposit[]; /** pagination defines the pagination in the response. */ pagination?: PageResponse; } /** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */ export interface QueryTallyResultRequest { /** proposal_id defines the unique id of the proposal. */ proposal_id: Long; } /** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */ export interface QueryTallyResultResponse { /** tally defines the requested tally. */ tally: TallyResult; } export declare const QueryProposalRequest: { encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest; fromJSON(object: any): QueryProposalRequest; toJSON(message: QueryProposalRequest): unknown; fromPartial(object: DeepPartial): QueryProposalRequest; }; export declare const QueryProposalResponse: { encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse; fromJSON(object: any): QueryProposalResponse; toJSON(message: QueryProposalResponse): unknown; fromPartial(object: DeepPartial): QueryProposalResponse; }; export declare const QueryProposalsRequest: { encode(message: QueryProposalsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest; fromJSON(object: any): QueryProposalsRequest; toJSON(message: QueryProposalsRequest): unknown; fromPartial(object: DeepPartial): QueryProposalsRequest; }; export declare const QueryProposalsResponse: { encode(message: QueryProposalsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse; fromJSON(object: any): QueryProposalsResponse; toJSON(message: QueryProposalsResponse): unknown; fromPartial(object: DeepPartial): QueryProposalsResponse; }; export declare const QueryVoteRequest: { encode(message: QueryVoteRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest; fromJSON(object: any): QueryVoteRequest; toJSON(message: QueryVoteRequest): unknown; fromPartial(object: DeepPartial): QueryVoteRequest; }; export declare const QueryVoteResponse: { encode(message: QueryVoteResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse; fromJSON(object: any): QueryVoteResponse; toJSON(message: QueryVoteResponse): unknown; fromPartial(object: DeepPartial): QueryVoteResponse; }; export declare const QueryVotesRequest: { encode(message: QueryVotesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest; fromJSON(object: any): QueryVotesRequest; toJSON(message: QueryVotesRequest): unknown; fromPartial(object: DeepPartial): QueryVotesRequest; }; export declare const QueryVotesResponse: { encode(message: QueryVotesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse; fromJSON(object: any): QueryVotesResponse; toJSON(message: QueryVotesResponse): unknown; fromPartial(object: DeepPartial): QueryVotesResponse; }; export declare const QueryParamsRequest: { encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest; fromJSON(object: any): QueryParamsRequest; toJSON(message: QueryParamsRequest): unknown; fromPartial(object: DeepPartial): QueryParamsRequest; }; export declare const QueryParamsResponse: { encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse; fromJSON(object: any): QueryParamsResponse; toJSON(message: QueryParamsResponse): unknown; fromPartial(object: DeepPartial): QueryParamsResponse; }; export declare const QueryDepositRequest: { encode(message: QueryDepositRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest; fromJSON(object: any): QueryDepositRequest; toJSON(message: QueryDepositRequest): unknown; fromPartial(object: DeepPartial): QueryDepositRequest; }; export declare const QueryDepositResponse: { encode(message: QueryDepositResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse; fromJSON(object: any): QueryDepositResponse; toJSON(message: QueryDepositResponse): unknown; fromPartial(object: DeepPartial): QueryDepositResponse; }; export declare const QueryDepositsRequest: { encode(message: QueryDepositsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest; fromJSON(object: any): QueryDepositsRequest; toJSON(message: QueryDepositsRequest): unknown; fromPartial(object: DeepPartial): QueryDepositsRequest; }; export declare const QueryDepositsResponse: { encode(message: QueryDepositsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse; fromJSON(object: any): QueryDepositsResponse; toJSON(message: QueryDepositsResponse): unknown; fromPartial(object: DeepPartial): QueryDepositsResponse; }; export declare const QueryTallyResultRequest: { encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest; fromJSON(object: any): QueryTallyResultRequest; toJSON(message: QueryTallyResultRequest): unknown; fromPartial(object: DeepPartial): QueryTallyResultRequest; }; export declare const QueryTallyResultResponse: { encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse; fromJSON(object: any): QueryTallyResultResponse; toJSON(message: QueryTallyResultResponse): unknown; fromPartial(object: DeepPartial): QueryTallyResultResponse; };