cosmos-sdk: github.com/cosmos/cosmos-sdk/x/distribution/legacy/v0_34 Index | Files

package v0_34

import "github.com/cosmos/cosmos-sdk/x/distribution/legacy/v0_34"

DONTCOVER nolint

Index

Package Files

types.go

Constants

const (
    ModuleName = "distr"
)

type DelegatorStartingInfo Uses

type DelegatorStartingInfo struct {
    PreviousPeriod uint64  `json:"previous_period"`
    Stake          sdk.Dec `json:"stake"`
    Height         uint64  `json:"height"`
}

type DelegatorStartingInfoRecord Uses

type DelegatorStartingInfoRecord struct {
    DelegatorAddress sdk.AccAddress        `json:"delegator_address"`
    ValidatorAddress sdk.ValAddress        `json:"validator_address"`
    StartingInfo     DelegatorStartingInfo `json:"starting_info"`
}

type DelegatorWithdrawInfo Uses

type DelegatorWithdrawInfo struct {
    DelegatorAddress sdk.AccAddress `json:"delegator_address"`
    WithdrawAddress  sdk.AccAddress `json:"withdraw_address"`
}

type FeePool Uses

type FeePool struct {
    CommunityPool sdk.DecCoins `json:"community_pool"`
}

type GenesisState Uses

type GenesisState struct {
    FeePool                         FeePool                                `json:"fee_pool"`
    CommunityTax                    sdk.Dec                                `json:"community_tax"`
    BaseProposerReward              sdk.Dec                                `json:"base_proposer_reward"`
    BonusProposerReward             sdk.Dec                                `json:"bonus_proposer_reward"`
    WithdrawAddrEnabled             bool                                   `json:"withdraw_addr_enabled"`
    DelegatorWithdrawInfos          []DelegatorWithdrawInfo                `json:"delegator_withdraw_infos"`
    PreviousProposer                sdk.ConsAddress                        `json:"previous_proposer"`
    OutstandingRewards              []ValidatorOutstandingRewardsRecord    `json:"outstanding_rewards"`
    ValidatorAccumulatedCommissions []ValidatorAccumulatedCommissionRecord `json:"validator_accumulated_commissions"`
    ValidatorHistoricalRewards      []ValidatorHistoricalRewardsRecord     `json:"validator_historical_rewards"`
    ValidatorCurrentRewards         []ValidatorCurrentRewardsRecord        `json:"validator_current_rewards"`
    DelegatorStartingInfos          []DelegatorStartingInfoRecord          `json:"delegator_starting_infos"`
    ValidatorSlashEvents            []ValidatorSlashEventRecord            `json:"validator_slash_events"`
}

type ValidatorAccumulatedCommission Uses

type ValidatorAccumulatedCommission = sdk.DecCoins

type ValidatorAccumulatedCommissionRecord Uses

type ValidatorAccumulatedCommissionRecord struct {
    ValidatorAddress sdk.ValAddress                 `json:"validator_address"`
    Accumulated      ValidatorAccumulatedCommission `json:"accumulated"`
}

type ValidatorCurrentRewards Uses

type ValidatorCurrentRewards struct {
    Rewards sdk.DecCoins `json:"rewards"`
    Period  uint64       `json:"period"`
}

type ValidatorCurrentRewardsRecord Uses

type ValidatorCurrentRewardsRecord struct {
    ValidatorAddress sdk.ValAddress          `json:"validator_address"`
    Rewards          ValidatorCurrentRewards `json:"rewards"`
}

type ValidatorHistoricalRewards Uses

type ValidatorHistoricalRewards struct {
    CumulativeRewardRatio sdk.DecCoins `json:"cumulative_reward_ratio"`
    ReferenceCount        uint16       `json:"reference_count"`
}

type ValidatorHistoricalRewardsRecord Uses

type ValidatorHistoricalRewardsRecord struct {
    ValidatorAddress sdk.ValAddress             `json:"validator_address"`
    Period           uint64                     `json:"period"`
    Rewards          ValidatorHistoricalRewards `json:"rewards"`
}

type ValidatorOutstandingRewardsRecord Uses

type ValidatorOutstandingRewardsRecord struct {
    ValidatorAddress   sdk.ValAddress `json:"validator_address"`
    OutstandingRewards sdk.DecCoins   `json:"outstanding_rewards"`
}

type ValidatorSlashEvent Uses

type ValidatorSlashEvent struct {
    ValidatorPeriod uint64  `json:"validator_period"`
    Fraction        sdk.Dec `json:"fraction"`
}

type ValidatorSlashEventRecord Uses

type ValidatorSlashEventRecord struct {
    ValidatorAddress sdk.ValAddress      `json:"validator_address"`
    Height           uint64              `json:"height"`
    Event            ValidatorSlashEvent `json:"validator_slash_event"`
}

Package v0_34 imports 1 packages (graph) and is imported by 4 packages. Updated 2019-07-13. Refresh now. Tools for package owners.