272 lines
12 KiB
TypeScript
272 lines
12 KiB
TypeScript
/// <reference types="long" />
|
|
import { ProposalStatus, Proposal, ProposalSDKType, Vote, VoteSDKType, VotingParams, VotingParamsSDKType, DepositParams, DepositParamsSDKType, TallyParams, TallyParamsSDKType, Deposit, DepositSDKType, TallyResult, TallyResultSDKType } from "./gov";
|
|
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../base/query/v1beta1/pagination";
|
|
import { Long, DeepPartial } from "../../../helpers";
|
|
import * as _m0 from "protobufjs/minimal";
|
|
/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
|
|
export interface QueryProposalRequest {
|
|
/** proposal_id defines the unique id of the proposal. */
|
|
proposalId: Long;
|
|
}
|
|
/** QueryProposalRequest is the request type for the Query/Proposal RPC method. */
|
|
export interface QueryProposalRequestSDKType {
|
|
proposal_id: Long;
|
|
}
|
|
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
|
export interface QueryProposalResponse {
|
|
proposal?: Proposal;
|
|
}
|
|
/** QueryProposalResponse is the response type for the Query/Proposal RPC method. */
|
|
export interface QueryProposalResponseSDKType {
|
|
proposal?: ProposalSDKType;
|
|
}
|
|
/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */
|
|
export interface QueryProposalsRequest {
|
|
/** proposal_status defines the status of the proposals. */
|
|
proposalStatus: 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;
|
|
}
|
|
/** QueryProposalsRequest is the request type for the Query/Proposals RPC method. */
|
|
export interface QueryProposalsRequestSDKType {
|
|
proposal_status: ProposalStatus;
|
|
voter: string;
|
|
depositor: string;
|
|
pagination?: PageRequestSDKType;
|
|
}
|
|
/**
|
|
* 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;
|
|
}
|
|
/**
|
|
* QueryProposalsResponse is the response type for the Query/Proposals RPC
|
|
* method.
|
|
*/
|
|
export interface QueryProposalsResponseSDKType {
|
|
proposals: ProposalSDKType[];
|
|
pagination?: PageResponseSDKType;
|
|
}
|
|
/** QueryVoteRequest is the request type for the Query/Vote RPC method. */
|
|
export interface QueryVoteRequest {
|
|
/** proposal_id defines the unique id of the proposal. */
|
|
proposalId: Long;
|
|
/** voter defines the oter address for the proposals. */
|
|
voter: string;
|
|
}
|
|
/** QueryVoteRequest is the request type for the Query/Vote RPC method. */
|
|
export interface QueryVoteRequestSDKType {
|
|
proposal_id: Long;
|
|
voter: string;
|
|
}
|
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
|
export interface QueryVoteResponse {
|
|
/** vote defined the queried vote. */
|
|
vote?: Vote;
|
|
}
|
|
/** QueryVoteResponse is the response type for the Query/Vote RPC method. */
|
|
export interface QueryVoteResponseSDKType {
|
|
vote?: VoteSDKType;
|
|
}
|
|
/** QueryVotesRequest is the request type for the Query/Votes RPC method. */
|
|
export interface QueryVotesRequest {
|
|
/** proposal_id defines the unique id of the proposal. */
|
|
proposalId: Long;
|
|
/** pagination defines an optional pagination for the request. */
|
|
pagination?: PageRequest;
|
|
}
|
|
/** QueryVotesRequest is the request type for the Query/Votes RPC method. */
|
|
export interface QueryVotesRequestSDKType {
|
|
proposal_id: Long;
|
|
pagination?: PageRequestSDKType;
|
|
}
|
|
/** 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;
|
|
}
|
|
/** QueryVotesResponse is the response type for the Query/Votes RPC method. */
|
|
export interface QueryVotesResponseSDKType {
|
|
votes: VoteSDKType[];
|
|
pagination?: PageResponseSDKType;
|
|
}
|
|
/** 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".
|
|
*/
|
|
paramsType: string;
|
|
}
|
|
/** QueryParamsRequest is the request type for the Query/Params RPC method. */
|
|
export interface QueryParamsRequestSDKType {
|
|
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. */
|
|
votingParams?: VotingParams;
|
|
/** deposit_params defines the parameters related to deposit. */
|
|
depositParams?: DepositParams;
|
|
/** tally_params defines the parameters related to tally. */
|
|
tallyParams?: TallyParams;
|
|
}
|
|
/** QueryParamsResponse is the response type for the Query/Params RPC method. */
|
|
export interface QueryParamsResponseSDKType {
|
|
voting_params?: VotingParamsSDKType;
|
|
deposit_params?: DepositParamsSDKType;
|
|
tally_params?: TallyParamsSDKType;
|
|
}
|
|
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
|
export interface QueryDepositRequest {
|
|
/** proposal_id defines the unique id of the proposal. */
|
|
proposalId: Long;
|
|
/** depositor defines the deposit addresses from the proposals. */
|
|
depositor: string;
|
|
}
|
|
/** QueryDepositRequest is the request type for the Query/Deposit RPC method. */
|
|
export interface QueryDepositRequestSDKType {
|
|
proposal_id: Long;
|
|
depositor: string;
|
|
}
|
|
/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */
|
|
export interface QueryDepositResponse {
|
|
/** deposit defines the requested deposit. */
|
|
deposit?: Deposit;
|
|
}
|
|
/** QueryDepositResponse is the response type for the Query/Deposit RPC method. */
|
|
export interface QueryDepositResponseSDKType {
|
|
deposit?: DepositSDKType;
|
|
}
|
|
/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */
|
|
export interface QueryDepositsRequest {
|
|
/** proposal_id defines the unique id of the proposal. */
|
|
proposalId: Long;
|
|
/** pagination defines an optional pagination for the request. */
|
|
pagination?: PageRequest;
|
|
}
|
|
/** QueryDepositsRequest is the request type for the Query/Deposits RPC method. */
|
|
export interface QueryDepositsRequestSDKType {
|
|
proposal_id: Long;
|
|
pagination?: PageRequestSDKType;
|
|
}
|
|
/** 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;
|
|
}
|
|
/** QueryDepositsResponse is the response type for the Query/Deposits RPC method. */
|
|
export interface QueryDepositsResponseSDKType {
|
|
deposits: DepositSDKType[];
|
|
pagination?: PageResponseSDKType;
|
|
}
|
|
/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */
|
|
export interface QueryTallyResultRequest {
|
|
/** proposal_id defines the unique id of the proposal. */
|
|
proposalId: Long;
|
|
}
|
|
/** QueryTallyResultRequest is the request type for the Query/Tally RPC method. */
|
|
export interface QueryTallyResultRequestSDKType {
|
|
proposal_id: Long;
|
|
}
|
|
/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */
|
|
export interface QueryTallyResultResponse {
|
|
/** tally defines the requested tally. */
|
|
tally?: TallyResult;
|
|
}
|
|
/** QueryTallyResultResponse is the response type for the Query/Tally RPC method. */
|
|
export interface QueryTallyResultResponseSDKType {
|
|
tally?: TallyResultSDKType;
|
|
}
|
|
export declare const QueryProposalRequest: {
|
|
encode(message: QueryProposalRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalRequest;
|
|
fromPartial(object: DeepPartial<QueryProposalRequest>): QueryProposalRequest;
|
|
};
|
|
export declare const QueryProposalResponse: {
|
|
encode(message: QueryProposalResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalResponse;
|
|
fromPartial(object: DeepPartial<QueryProposalResponse>): QueryProposalResponse;
|
|
};
|
|
export declare const QueryProposalsRequest: {
|
|
encode(message: QueryProposalsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsRequest;
|
|
fromPartial(object: DeepPartial<QueryProposalsRequest>): QueryProposalsRequest;
|
|
};
|
|
export declare const QueryProposalsResponse: {
|
|
encode(message: QueryProposalsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryProposalsResponse;
|
|
fromPartial(object: DeepPartial<QueryProposalsResponse>): QueryProposalsResponse;
|
|
};
|
|
export declare const QueryVoteRequest: {
|
|
encode(message: QueryVoteRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteRequest;
|
|
fromPartial(object: DeepPartial<QueryVoteRequest>): QueryVoteRequest;
|
|
};
|
|
export declare const QueryVoteResponse: {
|
|
encode(message: QueryVoteResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVoteResponse;
|
|
fromPartial(object: DeepPartial<QueryVoteResponse>): QueryVoteResponse;
|
|
};
|
|
export declare const QueryVotesRequest: {
|
|
encode(message: QueryVotesRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesRequest;
|
|
fromPartial(object: DeepPartial<QueryVotesRequest>): QueryVotesRequest;
|
|
};
|
|
export declare const QueryVotesResponse: {
|
|
encode(message: QueryVotesResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryVotesResponse;
|
|
fromPartial(object: DeepPartial<QueryVotesResponse>): QueryVotesResponse;
|
|
};
|
|
export declare const QueryParamsRequest: {
|
|
encode(message: QueryParamsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsRequest;
|
|
fromPartial(object: DeepPartial<QueryParamsRequest>): QueryParamsRequest;
|
|
};
|
|
export declare const QueryParamsResponse: {
|
|
encode(message: QueryParamsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryParamsResponse;
|
|
fromPartial(object: DeepPartial<QueryParamsResponse>): QueryParamsResponse;
|
|
};
|
|
export declare const QueryDepositRequest: {
|
|
encode(message: QueryDepositRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositRequest;
|
|
fromPartial(object: DeepPartial<QueryDepositRequest>): QueryDepositRequest;
|
|
};
|
|
export declare const QueryDepositResponse: {
|
|
encode(message: QueryDepositResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositResponse;
|
|
fromPartial(object: DeepPartial<QueryDepositResponse>): QueryDepositResponse;
|
|
};
|
|
export declare const QueryDepositsRequest: {
|
|
encode(message: QueryDepositsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsRequest;
|
|
fromPartial(object: DeepPartial<QueryDepositsRequest>): QueryDepositsRequest;
|
|
};
|
|
export declare const QueryDepositsResponse: {
|
|
encode(message: QueryDepositsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryDepositsResponse;
|
|
fromPartial(object: DeepPartial<QueryDepositsResponse>): QueryDepositsResponse;
|
|
};
|
|
export declare const QueryTallyResultRequest: {
|
|
encode(message: QueryTallyResultRequest, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultRequest;
|
|
fromPartial(object: DeepPartial<QueryTallyResultRequest>): QueryTallyResultRequest;
|
|
};
|
|
export declare const QueryTallyResultResponse: {
|
|
encode(message: QueryTallyResultResponse, writer?: _m0.Writer): _m0.Writer;
|
|
decode(input: _m0.Reader | Uint8Array, length?: number): QueryTallyResultResponse;
|
|
fromPartial(object: DeepPartial<QueryTallyResultResponse>): QueryTallyResultResponse;
|
|
};
|