rest

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryCommunityPoolHandleFn

func QueryCommunityPoolHandleFn(cliCtx context.Context) http.HandlerFunc

func QueryDelegatorAccountInfoHandleFn

func QueryDelegatorAccountInfoHandleFn(cliCtx context.Context) http.HandlerFunc

func QueryValidatorOutstandingRewardsHandleFn

func QueryValidatorOutstandingRewardsHandleFn(cliCtx context.Context) http.HandlerFunc

func QueryWithDrawAddress

func QueryWithDrawAddress(cliCtx context.Context) http.HandlerFunc

func RegisterQueryRoutes

func RegisterQueryRoutes(cliCtx context.Context, r *mux.Router)

func RegisterRoutes

func RegisterRoutes(cliCtx context.Context, r *mux.Router)

Types

type QueryRewardsParams

type QueryRewardsParams struct {
	Data RewardsParams `json:"data"`
}

type RewardsData

type RewardsData struct {
	Rewards uint64 `json:"rewards"`
}

type RewardsParams

type RewardsParams struct {
	Address string `json:"address"`
	Height  string `json:"height"`
}

type ValidatorDistInfo

type ValidatorDistInfo struct {
	OperatorAddress     sdk.AccAddress                       `json:"operator_address" yaml:"operator_address"`
	SelfBondRewards     sdk.DecCoin                          `json:"self_bond_rewards" yaml:"self_bond_rewards"`
	ValidatorCommission types.ValidatorAccumulatedCommission `json:"val_commission" yaml:"val_commission"`
}

ValidatorDistInfo defines the properties of validator distribution information response.

func NewValidatorDistInfo

func NewValidatorDistInfo(operatorAddr sdk.AccAddress, rewards sdk.DecCoin,
	commission types.ValidatorAccumulatedCommission) ValidatorDistInfo

NewValidatorDistInfo creates a new instance of ValidatorDistInfo.

Jump to

Keyboard shortcuts

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