import Long from "long"; import _m0 from "protobufjs/minimal"; import { Any } from "../../../google/protobuf/any"; import { Duration } from "../../../google/protobuf/duration"; import { Coin } from "../../base/v1beta1/coin"; export declare const protobufPackage = "cosmos.gov.v1"; /** VoteOption enumerates the valid vote options for a given governance proposal. */ export declare enum VoteOption { /** VOTE_OPTION_UNSPECIFIED - VOTE_OPTION_UNSPECIFIED defines a no-op vote option. */ VOTE_OPTION_UNSPECIFIED = 0, /** VOTE_OPTION_YES - VOTE_OPTION_YES defines a yes vote option. */ VOTE_OPTION_YES = 1, /** VOTE_OPTION_ABSTAIN - VOTE_OPTION_ABSTAIN defines an abstain vote option. */ VOTE_OPTION_ABSTAIN = 2, /** VOTE_OPTION_NO - VOTE_OPTION_NO defines a no vote option. */ VOTE_OPTION_NO = 3, /** VOTE_OPTION_NO_WITH_VETO - VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. */ VOTE_OPTION_NO_WITH_VETO = 4, UNRECOGNIZED = -1 } export declare function voteOptionFromJSON(object: any): VoteOption; export declare function voteOptionToJSON(object: VoteOption): string; /** ProposalStatus enumerates the valid statuses of a proposal. */ export declare enum ProposalStatus { /** PROPOSAL_STATUS_UNSPECIFIED - PROPOSAL_STATUS_UNSPECIFIED defines the default proposal status. */ PROPOSAL_STATUS_UNSPECIFIED = 0, /** * PROPOSAL_STATUS_DEPOSIT_PERIOD - PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit * period. */ PROPOSAL_STATUS_DEPOSIT_PERIOD = 1, /** * PROPOSAL_STATUS_VOTING_PERIOD - PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting * period. */ PROPOSAL_STATUS_VOTING_PERIOD = 2, /** * PROPOSAL_STATUS_PASSED - PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has * passed. */ PROPOSAL_STATUS_PASSED = 3, /** * PROPOSAL_STATUS_REJECTED - PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has * been rejected. */ PROPOSAL_STATUS_REJECTED = 4, /** * PROPOSAL_STATUS_FAILED - PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has * failed. */ PROPOSAL_STATUS_FAILED = 5, UNRECOGNIZED = -1 } export declare function proposalStatusFromJSON(object: any): ProposalStatus; export declare function proposalStatusToJSON(object: ProposalStatus): string; /** WeightedVoteOption defines a unit of vote for vote split. */ export interface WeightedVoteOption { /** option defines the valid vote options, it must not contain duplicate vote options. */ option: VoteOption; /** weight is the vote weight associated with the vote option. */ weight: string; } /** * Deposit defines an amount deposited by an account address to an active * proposal. */ export interface Deposit { /** proposal_id defines the unique id of the proposal. */ proposalId: Long; /** depositor defines the deposit addresses from the proposals. */ depositor: string; /** amount to be deposited by depositor. */ amount: Coin[]; } /** Proposal defines the core field members of a governance proposal. */ export interface Proposal { /** id defines the unique id of the proposal. */ id: Long; /** messages are the arbitrary messages to be executed if the proposal passes. */ messages: Any[]; /** status defines the proposal status. */ status: ProposalStatus; /** * final_tally_result is the final tally result of the proposal. When * querying a proposal via gRPC, this field is not populated until the * proposal's voting period has ended. */ finalTallyResult: TallyResult | undefined; /** submit_time is the time of proposal submission. */ submitTime: Date | undefined; /** deposit_end_time is the end time for deposition. */ depositEndTime: Date | undefined; /** total_deposit is the total deposit on the proposal. */ totalDeposit: Coin[]; /** voting_start_time is the starting time to vote on a proposal. */ votingStartTime: Date | undefined; /** voting_end_time is the end time of voting on a proposal. */ votingEndTime: Date | undefined; /** * metadata is any arbitrary metadata attached to the proposal. * the recommended format of the metadata is to be found here: * https://docs.cosmos.network/v0.47/modules/gov#proposal-3 */ metadata: string; /** title is the title of the proposal */ title: string; /** summary is a short summary of the proposal */ summary: string; /** proposer is the address of the proposal sumbitter */ proposer: string; /** expedited defines if the proposal is expedited */ expedited: boolean; /** failed_reason defines the reason why the proposal failed */ failedReason: string; } /** TallyResult defines a standard tally for a governance proposal. */ export interface TallyResult { /** yes_count is the number of yes votes on a proposal. */ yesCount: string; /** abstain_count is the number of abstain votes on a proposal. */ abstainCount: string; /** no_count is the number of no votes on a proposal. */ noCount: string; /** no_with_veto_count is the number of no with veto votes on a proposal. */ noWithVetoCount: string; } /** * Vote defines a vote on a governance proposal. * A Vote consists of a proposal ID, the voter, and the vote option. */ export interface Vote { /** proposal_id defines the unique id of the proposal. */ proposalId: Long; /** voter is the voter address of the proposal. */ voter: string; /** options is the weighted vote options. */ options: WeightedVoteOption[]; /** * metadata is any arbitrary metadata attached to the vote. * the recommended format of the metadata is to be found here: https://docs.cosmos.network/v0.47/modules/gov#vote-5 */ metadata: string; } /** * DepositParams defines the params for deposits on governance proposals. * * @deprecated */ export interface DepositParams { /** Minimum deposit for a proposal to enter voting period. */ minDeposit: Coin[]; /** * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 * months. */ maxDepositPeriod: Duration | undefined; } /** * VotingParams defines the params for voting on governance proposals. * * @deprecated */ export interface VotingParams { /** Duration of the voting period. */ votingPeriod: Duration | undefined; } /** * TallyParams defines the params for tallying votes on governance proposals. * * @deprecated */ export interface TallyParams { /** * Minimum percentage of total stake needed to vote for a result to be * considered valid. */ quorum: string; /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ threshold: string; /** * Minimum value of Veto votes to Total votes ratio for proposal to be * vetoed. Default value: 1/3. */ vetoThreshold: string; } /** Params defines the parameters for the x/gov module. */ export interface Params { /** Minimum deposit for a proposal to enter voting period. */ minDeposit: Coin[]; /** * Maximum period for Atom holders to deposit on a proposal. Initial value: 2 * months. */ maxDepositPeriod: Duration | undefined; /** Duration of the voting period. */ votingPeriod: Duration | undefined; /** * Minimum percentage of total stake needed to vote for a result to be * considered valid. */ quorum: string; /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ threshold: string; /** * Minimum value of Veto votes to Total votes ratio for proposal to be * vetoed. Default value: 1/3. */ vetoThreshold: string; /** The ratio representing the proportion of the deposit value that must be paid at proposal submission. */ minInitialDepositRatio: string; /** The cancel ratio which will not be returned back to the depositors when a proposal is cancelled. */ proposalCancelRatio: string; /** * The address which will receive (proposal_cancel_ratio * deposit) proposal deposits. * If empty, the (proposal_cancel_ratio * deposit) proposal deposits will be burned. */ proposalCancelDest: string; /** Duration of the voting period of an expedited proposal. */ expeditedVotingPeriod: Duration | undefined; /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.67. */ expeditedThreshold: string; /** Minimum expedited deposit for a proposal to enter voting period. */ expeditedMinDeposit: Coin[]; /** burn deposits if a proposal does not meet quorum */ burnVoteQuorum: boolean; /** burn deposits if the proposal does not enter voting period */ burnProposalDepositPrevote: boolean; /** burn deposits if quorum with vote type no_veto is met */ burnVoteVeto: boolean; /** * The ratio representing the proportion of the deposit value minimum that must be met when making a deposit. * Default value: 0.01. Meaning that for a chain with a min_deposit of 100stake, a deposit of 1stake would be * required. */ minDepositRatio: string; } export declare const WeightedVoteOption: { encode(message: WeightedVoteOption, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): WeightedVoteOption; fromJSON(object: any): WeightedVoteOption; toJSON(message: WeightedVoteOption): unknown; create(base?: DeepPartial): WeightedVoteOption; fromPartial(object: DeepPartial): WeightedVoteOption; }; export declare const Deposit: { encode(message: Deposit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Deposit; fromJSON(object: any): Deposit; toJSON(message: Deposit): unknown; create(base?: DeepPartial): Deposit; fromPartial(object: DeepPartial): Deposit; }; export declare const Proposal: { encode(message: Proposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Proposal; fromJSON(object: any): Proposal; toJSON(message: Proposal): unknown; create(base?: DeepPartial): Proposal; fromPartial(object: DeepPartial): Proposal; }; export declare const TallyResult: { encode(message: TallyResult, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TallyResult; fromJSON(object: any): TallyResult; toJSON(message: TallyResult): unknown; create(base?: DeepPartial): TallyResult; fromPartial(object: DeepPartial): TallyResult; }; export declare const Vote: { encode(message: Vote, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Vote; fromJSON(object: any): Vote; toJSON(message: Vote): unknown; create(base?: DeepPartial): Vote; fromPartial(object: DeepPartial): Vote; }; export declare const DepositParams: { encode(message: DepositParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DepositParams; fromJSON(object: any): DepositParams; toJSON(message: DepositParams): unknown; create(base?: DeepPartial): DepositParams; fromPartial(object: DeepPartial): DepositParams; }; export declare const VotingParams: { encode(message: VotingParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VotingParams; fromJSON(object: any): VotingParams; toJSON(message: VotingParams): unknown; create(base?: DeepPartial): VotingParams; fromPartial(object: DeepPartial): VotingParams; }; export declare const TallyParams: { encode(message: TallyParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TallyParams; fromJSON(object: any): TallyParams; toJSON(message: TallyParams): unknown; create(base?: DeepPartial): TallyParams; fromPartial(object: DeepPartial): TallyParams; }; export declare const Params: { encode(message: Params, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; create(base?: DeepPartial): Params; fromPartial(object: DeepPartial): Params; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};