import { DecCoin, Coin } from "../../base/v1beta1/coin"; import * as _m0 from "protobufjs/minimal"; import { DeepPartial, Long } from "@osmonauts/helpers"; /** Params defines the set of params for the distribution module. */ export interface Params { community_tax: string; base_proposer_reward: string; bonus_proposer_reward: string; withdraw_addr_enabled: boolean; } /** * ValidatorHistoricalRewards represents historical rewards for a validator. * Height is implicit within the store key. * Cumulative reward ratio is the sum from the zeroeth period * until this period of rewards / tokens, per the spec. * The reference count indicates the number of objects * which might need to reference this historical entry at any point. * ReferenceCount = * number of outstanding delegations which ended the associated period (and * might need to read that record) * + number of slashes which ended the associated period (and might need to * read that record) * + one per validator for the zeroeth period, set on initialization */ export interface ValidatorHistoricalRewards { cumulative_reward_ratio: DecCoin[]; reference_count: number; } /** * ValidatorCurrentRewards represents current rewards and current * period for a validator kept as a running counter and incremented * each block as long as the validator's tokens remain constant. */ export interface ValidatorCurrentRewards { rewards: DecCoin[]; period: Long; } /** * ValidatorAccumulatedCommission represents accumulated commission * for a validator kept as a running counter, can be withdrawn at any time. */ export interface ValidatorAccumulatedCommission { commission: DecCoin[]; } /** * ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards * for a validator inexpensive to track, allows simple sanity checks. */ export interface ValidatorOutstandingRewards { rewards: DecCoin[]; } /** * ValidatorSlashEvent represents a validator slash event. * Height is implicit within the store key. * This is needed to calculate appropriate amount of staking tokens * for delegations which are withdrawn after a slash has occurred. */ export interface ValidatorSlashEvent { validator_period: Long; fraction: string; } /** ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. */ export interface ValidatorSlashEvents { validator_slash_events: ValidatorSlashEvent[]; } /** FeePool is the global fee pool for distribution. */ export interface FeePool { community_pool: DecCoin[]; } /** * CommunityPoolSpendProposal details a proposal for use of community funds, * together with how many coins are proposed to be spent, and to which * recipient account. */ export interface CommunityPoolSpendProposal { title: string; description: string; recipient: string; amount: Coin[]; } /** * DelegatorStartingInfo represents the starting info for a delegator reward * period. It tracks the previous validator period, the delegation's amount of * staking token, and the creation height (to check later on if any slashes have * occurred). NOTE: Even though validators are slashed to whole staking tokens, * the delegators within the validator may be left with less than a full token, * thus sdk.Dec is used. */ export interface DelegatorStartingInfo { previous_period: Long; stake: string; height: Long; } /** * DelegationDelegatorReward represents the properties * of a delegator's delegation reward. */ export interface DelegationDelegatorReward { validator_address: string; reward: DecCoin[]; } /** * CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal * with a deposit */ export interface CommunityPoolSpendProposalWithDeposit { title: string; description: string; recipient: string; amount: string; deposit: string; } 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; fromPartial(object: DeepPartial): Params; }; export declare const ValidatorHistoricalRewards: { encode(message: ValidatorHistoricalRewards, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorHistoricalRewards; fromJSON(object: any): ValidatorHistoricalRewards; toJSON(message: ValidatorHistoricalRewards): unknown; fromPartial(object: DeepPartial): ValidatorHistoricalRewards; }; export declare const ValidatorCurrentRewards: { encode(message: ValidatorCurrentRewards, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorCurrentRewards; fromJSON(object: any): ValidatorCurrentRewards; toJSON(message: ValidatorCurrentRewards): unknown; fromPartial(object: DeepPartial): ValidatorCurrentRewards; }; export declare const ValidatorAccumulatedCommission: { encode(message: ValidatorAccumulatedCommission, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorAccumulatedCommission; fromJSON(object: any): ValidatorAccumulatedCommission; toJSON(message: ValidatorAccumulatedCommission): unknown; fromPartial(object: DeepPartial): ValidatorAccumulatedCommission; }; export declare const ValidatorOutstandingRewards: { encode(message: ValidatorOutstandingRewards, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorOutstandingRewards; fromJSON(object: any): ValidatorOutstandingRewards; toJSON(message: ValidatorOutstandingRewards): unknown; fromPartial(object: DeepPartial): ValidatorOutstandingRewards; }; export declare const ValidatorSlashEvent: { encode(message: ValidatorSlashEvent, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvent; fromJSON(object: any): ValidatorSlashEvent; toJSON(message: ValidatorSlashEvent): unknown; fromPartial(object: DeepPartial): ValidatorSlashEvent; }; export declare const ValidatorSlashEvents: { encode(message: ValidatorSlashEvents, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSlashEvents; fromJSON(object: any): ValidatorSlashEvents; toJSON(message: ValidatorSlashEvents): unknown; fromPartial(object: DeepPartial): ValidatorSlashEvents; }; export declare const FeePool: { encode(message: FeePool, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): FeePool; fromJSON(object: any): FeePool; toJSON(message: FeePool): unknown; fromPartial(object: DeepPartial): FeePool; }; export declare const CommunityPoolSpendProposal: { encode(message: CommunityPoolSpendProposal, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposal; fromJSON(object: any): CommunityPoolSpendProposal; toJSON(message: CommunityPoolSpendProposal): unknown; fromPartial(object: DeepPartial): CommunityPoolSpendProposal; }; export declare const DelegatorStartingInfo: { encode(message: DelegatorStartingInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DelegatorStartingInfo; fromJSON(object: any): DelegatorStartingInfo; toJSON(message: DelegatorStartingInfo): unknown; fromPartial(object: DeepPartial): DelegatorStartingInfo; }; export declare const DelegationDelegatorReward: { encode(message: DelegationDelegatorReward, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DelegationDelegatorReward; fromJSON(object: any): DelegationDelegatorReward; toJSON(message: DelegationDelegatorReward): unknown; fromPartial(object: DeepPartial): DelegationDelegatorReward; }; export declare const CommunityPoolSpendProposalWithDeposit: { encode(message: CommunityPoolSpendProposalWithDeposit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CommunityPoolSpendProposalWithDeposit; fromJSON(object: any): CommunityPoolSpendProposalWithDeposit; toJSON(message: CommunityPoolSpendProposalWithDeposit): unknown; fromPartial(object: DeepPartial): CommunityPoolSpendProposalWithDeposit; };