import { Coin, type CoinSDKType } from '../../base/v1beta1/coin.js'; import { Any, type AnySDKType } from '../../../google/protobuf/any.js'; import { Timestamp, type TimestampSDKType } from '../../../google/protobuf/timestamp.js'; import { Duration, type DurationSDKType } from '../../../google/protobuf/duration.js'; import { CoreEvalProposal, type CoreEvalProposalSDKType } from '../../../agoric/swingset/swingset.js'; import { CommunityPoolSpendProposal, type CommunityPoolSpendProposalSDKType, CommunityPoolSpendProposalWithDeposit, type CommunityPoolSpendProposalWithDepositSDKType } from '../../distribution/v1beta1/distribution.js'; import { ParameterChangeProposal, type ParameterChangeProposalSDKType } from '../../params/v1beta1/params.js'; import { SoftwareUpgradeProposal, type SoftwareUpgradeProposalSDKType, CancelSoftwareUpgradeProposal, type CancelSoftwareUpgradeProposalSDKType } from '../../upgrade/v1beta1/upgrade.js'; import { ClientUpdateProposal, type ClientUpdateProposalSDKType, UpgradeProposal, type UpgradeProposalSDKType } from '../../../ibc/core/client/v1/client.js'; import { BinaryReader, BinaryWriter } from '../../../binary.js'; import { type JsonSafe } from '../../../json-safe.js'; /** 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 const VoteOptionSDKType: typeof VoteOption; 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 const ProposalStatusSDKType: typeof ProposalStatus; export declare function proposalStatusFromJSON(object: any): ProposalStatus; export declare function proposalStatusToJSON(object: ProposalStatus): string; /** * WeightedVoteOption defines a unit of vote for vote split. * * Since: cosmos-sdk 0.43 */ 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; } export interface WeightedVoteOptionProtoMsg { typeUrl: '/cosmos.gov.v1beta1.WeightedVoteOption'; value: Uint8Array; } /** * WeightedVoteOption defines a unit of vote for vote split. * * Since: cosmos-sdk 0.43 */ export interface WeightedVoteOptionSDKType { option: VoteOption; weight: string; } /** * TextProposal defines a standard text proposal whose changes need to be * manually updated in case of approval. */ export interface TextProposal { $typeUrl?: '/cosmos.gov.v1beta1.TextProposal'; /** title of the proposal. */ title: string; /** description associated with the proposal. */ description: string; } export interface TextProposalProtoMsg { typeUrl: '/cosmos.gov.v1beta1.TextProposal'; value: Uint8Array; } /** * TextProposal defines a standard text proposal whose changes need to be * manually updated in case of approval. */ export interface TextProposalSDKType { $typeUrl?: '/cosmos.gov.v1beta1.TextProposal'; title: string; description: 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: bigint; /** depositor defines the deposit addresses from the proposals. */ depositor: string; /** amount to be deposited by depositor. */ amount: Coin[]; } export interface DepositProtoMsg { typeUrl: '/cosmos.gov.v1beta1.Deposit'; value: Uint8Array; } /** * Deposit defines an amount deposited by an account address to an active * proposal. */ export interface DepositSDKType { proposal_id: bigint; depositor: string; amount: CoinSDKType[]; } /** Proposal defines the core field members of a governance proposal. */ export interface Proposal { /** proposal_id defines the unique id of the proposal. */ proposalId: bigint; /** content is the proposal's content. */ content?: (TextProposal & CoreEvalProposal & CommunityPoolSpendProposal & CommunityPoolSpendProposalWithDeposit & ParameterChangeProposal & SoftwareUpgradeProposal & CancelSoftwareUpgradeProposal & ClientUpdateProposal & UpgradeProposal & Any) | undefined; /** 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; /** submit_time is the time of proposal submission. */ submitTime: Timestamp; /** deposit_end_time is the end time for deposition. */ depositEndTime: Timestamp; /** total_deposit is the total deposit on the proposal. */ totalDeposit: Coin[]; /** voting_start_time is the starting time to vote on a proposal. */ votingStartTime: Timestamp; /** voting_end_time is the end time of voting on a proposal. */ votingEndTime: Timestamp; } export interface ProposalProtoMsg { typeUrl: '/cosmos.gov.v1beta1.Proposal'; value: Uint8Array; } /** Proposal defines the core field members of a governance proposal. */ export interface ProposalSDKType { proposal_id: bigint; content?: TextProposalSDKType | CoreEvalProposalSDKType | CommunityPoolSpendProposalSDKType | CommunityPoolSpendProposalWithDepositSDKType | ParameterChangeProposalSDKType | SoftwareUpgradeProposalSDKType | CancelSoftwareUpgradeProposalSDKType | ClientUpdateProposalSDKType | UpgradeProposalSDKType | AnySDKType | undefined; status: ProposalStatus; final_tally_result: TallyResultSDKType; submit_time: TimestampSDKType; deposit_end_time: TimestampSDKType; total_deposit: CoinSDKType[]; voting_start_time: TimestampSDKType; voting_end_time: TimestampSDKType; } /** TallyResult defines a standard tally for a governance proposal. */ export interface TallyResult { /** yes is the number of yes votes on a proposal. */ yes: string; /** abstain is the number of abstain votes on a proposal. */ abstain: string; /** no is the number of no votes on a proposal. */ no: string; /** no_with_veto is the number of no with veto votes on a proposal. */ noWithVeto: string; } export interface TallyResultProtoMsg { typeUrl: '/cosmos.gov.v1beta1.TallyResult'; value: Uint8Array; } /** TallyResult defines a standard tally for a governance proposal. */ export interface TallyResultSDKType { yes: string; abstain: string; no: string; no_with_veto: 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: bigint; /** voter is the voter address of the proposal. */ voter: string; /** * Deprecated: Prefer to use `options` instead. This field is set in queries * if and only if `len(options) == 1` and that option has weight 1. In all * other cases, this field will default to VOTE_OPTION_UNSPECIFIED. */ /** @deprecated */ option: VoteOption; /** * options is the weighted vote options. * * Since: cosmos-sdk 0.43 */ options: WeightedVoteOption[]; } export interface VoteProtoMsg { typeUrl: '/cosmos.gov.v1beta1.Vote'; value: Uint8Array; } /** * Vote defines a vote on a governance proposal. * A Vote consists of a proposal ID, the voter, and the vote option. */ export interface VoteSDKType { proposal_id: bigint; voter: string; /** @deprecated */ option: VoteOption; options: WeightedVoteOptionSDKType[]; } /** DepositParams defines the params for deposits on governance proposals. */ 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; } export interface DepositParamsProtoMsg { typeUrl: '/cosmos.gov.v1beta1.DepositParams'; value: Uint8Array; } /** DepositParams defines the params for deposits on governance proposals. */ export interface DepositParamsSDKType { min_deposit: CoinSDKType[]; max_deposit_period: DurationSDKType; } /** VotingParams defines the params for voting on governance proposals. */ export interface VotingParams { /** Duration of the voting period. */ votingPeriod: Duration; } export interface VotingParamsProtoMsg { typeUrl: '/cosmos.gov.v1beta1.VotingParams'; value: Uint8Array; } /** VotingParams defines the params for voting on governance proposals. */ export interface VotingParamsSDKType { voting_period: DurationSDKType; } /** TallyParams defines the params for tallying votes on governance proposals. */ export interface TallyParams { /** * Minimum percentage of total stake needed to vote for a result to be * considered valid. */ quorum: Uint8Array; /** Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. */ threshold: Uint8Array; /** * Minimum value of Veto votes to Total votes ratio for proposal to be * vetoed. Default value: 1/3. */ vetoThreshold: Uint8Array; } export interface TallyParamsProtoMsg { typeUrl: '/cosmos.gov.v1beta1.TallyParams'; value: Uint8Array; } /** TallyParams defines the params for tallying votes on governance proposals. */ export interface TallyParamsSDKType { quorum: Uint8Array; threshold: Uint8Array; veto_threshold: Uint8Array; } export declare const WeightedVoteOption: { typeUrl: "/cosmos.gov.v1beta1.WeightedVoteOption"; encode(message: WeightedVoteOption, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): WeightedVoteOption; fromJSON(object: any): WeightedVoteOption; toJSON(message: WeightedVoteOption): JsonSafe; fromPartial(object: Partial): WeightedVoteOption; fromProtoMsg(message: WeightedVoteOptionProtoMsg): WeightedVoteOption; toProto(message: WeightedVoteOption): Uint8Array; toProtoMsg(message: WeightedVoteOption): WeightedVoteOptionProtoMsg; }; export declare const TextProposal: { typeUrl: "/cosmos.gov.v1beta1.TextProposal"; encode(message: TextProposal, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TextProposal; fromJSON(object: any): TextProposal; toJSON(message: TextProposal): JsonSafe; fromPartial(object: Partial): TextProposal; fromProtoMsg(message: TextProposalProtoMsg): TextProposal; toProto(message: TextProposal): Uint8Array; toProtoMsg(message: TextProposal): TextProposalProtoMsg; }; export declare const Deposit: { typeUrl: "/cosmos.gov.v1beta1.Deposit"; encode(message: Deposit, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Deposit; fromJSON(object: any): Deposit; toJSON(message: Deposit): JsonSafe; fromPartial(object: Partial): Deposit; fromProtoMsg(message: DepositProtoMsg): Deposit; toProto(message: Deposit): Uint8Array; toProtoMsg(message: Deposit): DepositProtoMsg; }; export declare const Proposal: { typeUrl: "/cosmos.gov.v1beta1.Proposal"; encode(message: Proposal, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Proposal; fromJSON(object: any): Proposal; toJSON(message: Proposal): JsonSafe; fromPartial(object: Partial): Proposal; fromProtoMsg(message: ProposalProtoMsg): Proposal; toProto(message: Proposal): Uint8Array; toProtoMsg(message: Proposal): ProposalProtoMsg; }; export declare const TallyResult: { typeUrl: "/cosmos.gov.v1beta1.TallyResult"; encode(message: TallyResult, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TallyResult; fromJSON(object: any): TallyResult; toJSON(message: TallyResult): JsonSafe; fromPartial(object: Partial): TallyResult; fromProtoMsg(message: TallyResultProtoMsg): TallyResult; toProto(message: TallyResult): Uint8Array; toProtoMsg(message: TallyResult): TallyResultProtoMsg; }; export declare const Vote: { typeUrl: "/cosmos.gov.v1beta1.Vote"; encode(message: Vote, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Vote; fromJSON(object: any): Vote; toJSON(message: Vote): JsonSafe; fromPartial(object: Partial): Vote; fromProtoMsg(message: VoteProtoMsg): Vote; toProto(message: Vote): Uint8Array; toProtoMsg(message: Vote): VoteProtoMsg; }; export declare const DepositParams: { typeUrl: "/cosmos.gov.v1beta1.DepositParams"; encode(message: DepositParams, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): DepositParams; fromJSON(object: any): DepositParams; toJSON(message: DepositParams): JsonSafe; fromPartial(object: Partial): DepositParams; fromProtoMsg(message: DepositParamsProtoMsg): DepositParams; toProto(message: DepositParams): Uint8Array; toProtoMsg(message: DepositParams): DepositParamsProtoMsg; }; export declare const VotingParams: { typeUrl: "/cosmos.gov.v1beta1.VotingParams"; encode(message: VotingParams, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): VotingParams; fromJSON(object: any): VotingParams; toJSON(message: VotingParams): JsonSafe; fromPartial(object: Partial): VotingParams; fromProtoMsg(message: VotingParamsProtoMsg): VotingParams; toProto(message: VotingParams): Uint8Array; toProtoMsg(message: VotingParams): VotingParamsProtoMsg; }; export declare const TallyParams: { typeUrl: "/cosmos.gov.v1beta1.TallyParams"; encode(message: TallyParams, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): TallyParams; fromJSON(object: any): TallyParams; toJSON(message: TallyParams): JsonSafe; fromPartial(object: Partial): TallyParams; fromProtoMsg(message: TallyParamsProtoMsg): TallyParams; toProto(message: TallyParams): Uint8Array; toProtoMsg(message: TallyParams): TallyParamsProtoMsg; }; export declare const Cosmos_govv1beta1Content_InterfaceDecoder: (input: BinaryReader | Uint8Array) => CoreEvalProposal | CommunityPoolSpendProposal | CommunityPoolSpendProposalWithDeposit | TextProposal | ParameterChangeProposal | SoftwareUpgradeProposal | CancelSoftwareUpgradeProposal | ClientUpdateProposal | UpgradeProposal | Any; //# sourceMappingURL=gov.d.ts.map