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

package v0_38

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

Index

Package Files

migrate.go types.go

Constants

const (
    ModuleName = "distribution"
)

type GenesisState Uses

type GenesisState struct {
    Params                          Params                                           `json:"params" yaml:"params"`
    FeePool                         v034distr.FeePool                                `json:"fee_pool"`
    DelegatorWithdrawInfos          []v034distr.DelegatorWithdrawInfo                `json:"delegator_withdraw_infos"`
    PreviousProposer                sdk.ConsAddress                                  `json:"previous_proposer" yaml:"previous_proposer"`
    OutstandingRewards              []v034distr.ValidatorOutstandingRewardsRecord    `json:"outstanding_rewards"`
    ValidatorAccumulatedCommissions []v034distr.ValidatorAccumulatedCommissionRecord `json:"validator_accumulated_commissions"`
    ValidatorHistoricalRewards      []v034distr.ValidatorHistoricalRewardsRecord     `json:"validator_historical_rewards"`
    ValidatorCurrentRewards         []v034distr.ValidatorCurrentRewardsRecord        `json:"validator_current_rewards"`
    DelegatorStartingInfos          []v034distr.DelegatorStartingInfoRecord          `json:"delegator_starting_infos"`
    ValidatorSlashEvents            []v036distr.ValidatorSlashEventRecord            `json:"validator_slash_events" yaml:"validator_slash_events"`
}

func Migrate Uses

func Migrate(oldGenState v036distr.GenesisState) GenesisState

Migrate accepts exported genesis state from v0.36 or v0.37 and migrates it to v0.38 genesis state. All entries are identical except for parameters.

func NewGenesisState Uses

func NewGenesisState(
    params Params, feePool v034distr.FeePool, dwis []v034distr.DelegatorWithdrawInfo, pp sdk.ConsAddress,
    r []v034distr.ValidatorOutstandingRewardsRecord, acc []v034distr.ValidatorAccumulatedCommissionRecord,
    historical []v034distr.ValidatorHistoricalRewardsRecord, cur []v034distr.ValidatorCurrentRewardsRecord,
    dels []v034distr.DelegatorStartingInfoRecord, slashes []v036distr.ValidatorSlashEventRecord,
) GenesisState

type Params Uses

type Params struct {
    CommunityTax        sdk.Dec `json:"community_tax" yaml:"community_tax"`
    BaseProposerReward  sdk.Dec `json:"base_proposer_reward" yaml:"base_proposer_reward"`
    BonusProposerReward sdk.Dec `json:"bonus_proposer_reward" yaml:"bonus_proposer_reward"`
    WithdrawAddrEnabled bool    `json:"withdraw_addr_enabled" yaml:"withdraw_addr_enabled"`
}

Package v0_38 imports 3 packages (graph) and is imported by 1 packages. Updated 2020-02-15. Refresh now. Tools for package owners.