import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Deposit, DepositParams, Params, Proposal, ProposalStatus, TallyParams, TallyResult, Vote, VotingParams } from "./gov_pb.js"; import { PageRequest, PageResponse } from "../../base/query/v1beta1/pagination_pb.js"; /** * QueryProposalRequest is the request type for the Query/Proposal RPC method. * * @generated from message cosmos.gov.v1.QueryProposalRequest */ export declare class QueryProposalRequest extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryProposalRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalRequest; static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalRequest; static fromJsonString(jsonString: string, options?: Partial): QueryProposalRequest; static equals(a: QueryProposalRequest | PlainMessage | undefined, b: QueryProposalRequest | PlainMessage | undefined): boolean; } /** * QueryProposalResponse is the response type for the Query/Proposal RPC method. * * @generated from message cosmos.gov.v1.QueryProposalResponse */ export declare class QueryProposalResponse extends Message { /** * proposal is the requested governance proposal. * * @generated from field: cosmos.gov.v1.Proposal proposal = 1; */ proposal?: Proposal; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryProposalResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalResponse; static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalResponse; static fromJsonString(jsonString: string, options?: Partial): QueryProposalResponse; static equals(a: QueryProposalResponse | PlainMessage | undefined, b: QueryProposalResponse | PlainMessage | undefined): boolean; } /** * QueryProposalsRequest is the request type for the Query/Proposals RPC method. * * @generated from message cosmos.gov.v1.QueryProposalsRequest */ export declare class QueryProposalsRequest extends Message { /** * proposal_status defines the status of the proposals. * * @generated from field: cosmos.gov.v1.ProposalStatus proposal_status = 1; */ proposalStatus: ProposalStatus; /** * voter defines the voter address for the proposals. * * @generated from field: string voter = 2; */ voter: string; /** * depositor defines the deposit addresses from the proposals. * * @generated from field: string depositor = 3; */ depositor: string; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 4; */ pagination?: PageRequest; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryProposalsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsRequest; static fromJsonString(jsonString: string, options?: Partial): QueryProposalsRequest; static equals(a: QueryProposalsRequest | PlainMessage | undefined, b: QueryProposalsRequest | PlainMessage | undefined): boolean; } /** * QueryProposalsResponse is the response type for the Query/Proposals RPC * method. * * @generated from message cosmos.gov.v1.QueryProposalsResponse */ export declare class QueryProposalsResponse extends Message { /** * proposals defines all the requested governance proposals. * * @generated from field: repeated cosmos.gov.v1.Proposal proposals = 1; */ proposals: Proposal[]; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryProposalsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryProposalsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): QueryProposalsResponse; static fromJsonString(jsonString: string, options?: Partial): QueryProposalsResponse; static equals(a: QueryProposalsResponse | PlainMessage | undefined, b: QueryProposalsResponse | PlainMessage | undefined): boolean; } /** * QueryVoteRequest is the request type for the Query/Vote RPC method. * * @generated from message cosmos.gov.v1.QueryVoteRequest */ export declare class QueryVoteRequest extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId: bigint; /** * voter defines the voter address for the proposals. * * @generated from field: string voter = 2; */ voter: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryVoteRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteRequest; static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteRequest; static fromJsonString(jsonString: string, options?: Partial): QueryVoteRequest; static equals(a: QueryVoteRequest | PlainMessage | undefined, b: QueryVoteRequest | PlainMessage | undefined): boolean; } /** * QueryVoteResponse is the response type for the Query/Vote RPC method. * * @generated from message cosmos.gov.v1.QueryVoteResponse */ export declare class QueryVoteResponse extends Message { /** * vote defines the queried vote. * * @generated from field: cosmos.gov.v1.Vote vote = 1; */ vote?: Vote; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryVoteResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryVoteResponse; static fromJson(jsonValue: JsonValue, options?: Partial): QueryVoteResponse; static fromJsonString(jsonString: string, options?: Partial): QueryVoteResponse; static equals(a: QueryVoteResponse | PlainMessage | undefined, b: QueryVoteResponse | PlainMessage | undefined): boolean; } /** * QueryVotesRequest is the request type for the Query/Votes RPC method. * * @generated from message cosmos.gov.v1.QueryVotesRequest */ export declare class QueryVotesRequest extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId: bigint; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryVotesRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesRequest; static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesRequest; static fromJsonString(jsonString: string, options?: Partial): QueryVotesRequest; static equals(a: QueryVotesRequest | PlainMessage | undefined, b: QueryVotesRequest | PlainMessage | undefined): boolean; } /** * QueryVotesResponse is the response type for the Query/Votes RPC method. * * @generated from message cosmos.gov.v1.QueryVotesResponse */ export declare class QueryVotesResponse extends Message { /** * votes defines the queried votes. * * @generated from field: repeated cosmos.gov.v1.Vote votes = 1; */ votes: Vote[]; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryVotesResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryVotesResponse; static fromJson(jsonValue: JsonValue, options?: Partial): QueryVotesResponse; static fromJsonString(jsonString: string, options?: Partial): QueryVotesResponse; static equals(a: QueryVotesResponse | PlainMessage | undefined, b: QueryVotesResponse | PlainMessage | undefined): boolean; } /** * QueryParamsRequest is the request type for the Query/Params RPC method. * * @generated from message cosmos.gov.v1.QueryParamsRequest */ export declare class QueryParamsRequest extends Message { /** * params_type defines which parameters to query for, can be one of "voting", * "tallying" or "deposit". * * @generated from field: string params_type = 1; */ paramsType: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryParamsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsRequest; static fromJsonString(jsonString: string, options?: Partial): QueryParamsRequest; static equals(a: QueryParamsRequest | PlainMessage | undefined, b: QueryParamsRequest | PlainMessage | undefined): boolean; } /** * QueryParamsResponse is the response type for the Query/Params RPC method. * * @generated from message cosmos.gov.v1.QueryParamsResponse */ export declare class QueryParamsResponse extends Message { /** * Deprecated: Prefer to use `params` instead. * voting_params defines the parameters related to voting. * * @generated from field: cosmos.gov.v1.VotingParams voting_params = 1 [deprecated = true]; * @deprecated */ votingParams?: VotingParams; /** * Deprecated: Prefer to use `params` instead. * deposit_params defines the parameters related to deposit. * * @generated from field: cosmos.gov.v1.DepositParams deposit_params = 2 [deprecated = true]; * @deprecated */ depositParams?: DepositParams; /** * Deprecated: Prefer to use `params` instead. * tally_params defines the parameters related to tally. * * @generated from field: cosmos.gov.v1.TallyParams tally_params = 3 [deprecated = true]; * @deprecated */ tallyParams?: TallyParams; /** * params defines all the paramaters of x/gov module. * * Since: cosmos-sdk 0.47 * * @generated from field: cosmos.gov.v1.Params params = 4; */ params?: Params; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryParamsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryParamsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): QueryParamsResponse; static fromJsonString(jsonString: string, options?: Partial): QueryParamsResponse; static equals(a: QueryParamsResponse | PlainMessage | undefined, b: QueryParamsResponse | PlainMessage | undefined): boolean; } /** * QueryDepositRequest is the request type for the Query/Deposit RPC method. * * @generated from message cosmos.gov.v1.QueryDepositRequest */ export declare class QueryDepositRequest extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId: bigint; /** * depositor defines the deposit addresses from the proposals. * * @generated from field: string depositor = 2; */ depositor: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryDepositRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositRequest; static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositRequest; static fromJsonString(jsonString: string, options?: Partial): QueryDepositRequest; static equals(a: QueryDepositRequest | PlainMessage | undefined, b: QueryDepositRequest | PlainMessage | undefined): boolean; } /** * QueryDepositResponse is the response type for the Query/Deposit RPC method. * * @generated from message cosmos.gov.v1.QueryDepositResponse */ export declare class QueryDepositResponse extends Message { /** * deposit defines the requested deposit. * * @generated from field: cosmos.gov.v1.Deposit deposit = 1; */ deposit?: Deposit; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryDepositResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositResponse; static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositResponse; static fromJsonString(jsonString: string, options?: Partial): QueryDepositResponse; static equals(a: QueryDepositResponse | PlainMessage | undefined, b: QueryDepositResponse | PlainMessage | undefined): boolean; } /** * QueryDepositsRequest is the request type for the Query/Deposits RPC method. * * @generated from message cosmos.gov.v1.QueryDepositsRequest */ export declare class QueryDepositsRequest extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId: bigint; /** * pagination defines an optional pagination for the request. * * @generated from field: cosmos.base.query.v1beta1.PageRequest pagination = 2; */ pagination?: PageRequest; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryDepositsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsRequest; static fromJsonString(jsonString: string, options?: Partial): QueryDepositsRequest; static equals(a: QueryDepositsRequest | PlainMessage | undefined, b: QueryDepositsRequest | PlainMessage | undefined): boolean; } /** * QueryDepositsResponse is the response type for the Query/Deposits RPC method. * * @generated from message cosmos.gov.v1.QueryDepositsResponse */ export declare class QueryDepositsResponse extends Message { /** * deposits defines the requested deposits. * * @generated from field: repeated cosmos.gov.v1.Deposit deposits = 1; */ deposits: Deposit[]; /** * pagination defines the pagination in the response. * * @generated from field: cosmos.base.query.v1beta1.PageResponse pagination = 2; */ pagination?: PageResponse; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryDepositsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryDepositsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): QueryDepositsResponse; static fromJsonString(jsonString: string, options?: Partial): QueryDepositsResponse; static equals(a: QueryDepositsResponse | PlainMessage | undefined, b: QueryDepositsResponse | PlainMessage | undefined): boolean; } /** * QueryTallyResultRequest is the request type for the Query/Tally RPC method. * * @generated from message cosmos.gov.v1.QueryTallyResultRequest */ export declare class QueryTallyResultRequest extends Message { /** * proposal_id defines the unique id of the proposal. * * @generated from field: uint64 proposal_id = 1; */ proposalId: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryTallyResultRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultRequest; static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultRequest; static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultRequest; static equals(a: QueryTallyResultRequest | PlainMessage | undefined, b: QueryTallyResultRequest | PlainMessage | undefined): boolean; } /** * QueryTallyResultResponse is the response type for the Query/Tally RPC method. * * @generated from message cosmos.gov.v1.QueryTallyResultResponse */ export declare class QueryTallyResultResponse extends Message { /** * tally defines the requested tally. * * @generated from field: cosmos.gov.v1.TallyResult tally = 1; */ tally?: TallyResult; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "cosmos.gov.v1.QueryTallyResultResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): QueryTallyResultResponse; static fromJson(jsonValue: JsonValue, options?: Partial): QueryTallyResultResponse; static fromJsonString(jsonString: string, options?: Partial): QueryTallyResultResponse; static equals(a: QueryTallyResultResponse | PlainMessage | undefined, b: QueryTallyResultResponse | PlainMessage | undefined): boolean; } //# sourceMappingURL=query_pb.d.ts.map