types

package
v0.0.0-...-52431d2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelegatorRewardAmount

type DelegatorRewardAmount struct {
	ValidatorAddress string
	DelegatorAddress string
	WithdrawAddress  string
	Amount           []sdk.DecCoin
	Height           int64
}

DelegatorRewardAmount contains the data of a delegator commission amount

func NewDelegatorRewardAmount

func NewDelegatorRewardAmount(
	validator, delegator, withdrawAddress string, amount sdk.DecCoins, height int64,
) DelegatorRewardAmount

NewDelegatorRewardAmount allows to build a new DelegatorRewardAmount instance

type ValidatorCommissionAmount

type ValidatorCommissionAmount struct {
	ValidatorAddress string
	Amount           []sdk.DecCoin
	Height           int64
}

ValidatorCommissionAmount represents the commission amount for a specific validator

func NewValidatorCommissionAmount

func NewValidatorCommissionAmount(address string, amount sdk.DecCoins, height int64) ValidatorCommissionAmount

NewValidatorCommissionAmount allows to build a new ValidatorCommissionAmount instance

Jump to

Keyboard shortcuts

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