distribution

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDelegationDistInfo added in v0.13.1

func GetDelegationDistInfo(storeName string, cliCtx context.CLIContext, delAddr sdk.AccAddress,
	valOperatorAddr sdk.ValAddress) (ddi types.DelegationDistInfo)

func GetFeePool added in v0.13.1

func GetFeePool(storeName string, cliCtx context.CLIContext) (feePool types.FeePool)

func GetValidator added in v0.13.1

func GetValidator(storeName string, cliCtx context.CLIContext, addr sdk.ValAddress) (validator stake.Validator)

func GetValidatorDistInfo added in v0.13.1

func GetValidatorDistInfo(storeName string, cliCtx context.CLIContext,
	operatorAddr sdk.ValAddress) (vdi types.ValidatorDistInfo)

func GetWithdrawContext added in v0.13.1

func GetWithdrawContext(storeName string, cliCtx context.CLIContext, feePool types.FeePool, height int64, validator stakeTypes.Validator) types.WithdrawContext

Types

type DelegationsReward added in v0.13.1

type DelegationsReward struct {
	Validator sdk.ValAddress `json:"validator"`
	Reward    sdk.Coins      `json:"reward"`
}

type RewardsOutput added in v0.13.1

type RewardsOutput struct {
	Total       sdk.Coins           `json:"total"`
	Delegations []DelegationsReward `json:"delegations"`
	Commission  sdk.Coins           `json:"commission"`
}

func GetRewards added in v0.13.1

func GetRewards(distrStoreName string, stakeStoreName string, cliCtx context.CLIContext, account sdk.AccAddress) RewardsOutput

type ValidatorDistInfoOutput

type ValidatorDistInfoOutput struct {
	OperatorAddr            sdk.ValAddress          `json:"operator_addr"`
	FeePoolWithdrawalHeight int64                   `json:"fee_pool_withdrawal_height"`
	DelAccum                distribution.TotalAccum `json:"del_accum"`
	DelPool                 string                  `json:"del_pool"`
	ValCommission           string                  `json:"val_commission"`
}

distribution info for a particular validator

Directories

Path Synopsis
nolint
nolint

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL