structs

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRewardAmount

func AddRewardAmount(t, o structs.RewardAmount) (structs.RewardAmount, error)

func CloneRewardAmount

func CloneRewardAmount(t structs.RewardAmount) structs.RewardAmount

func SubRewardAmount

func SubRewardAmount(t, o structs.RewardAmount) (structs.RewardAmount, error)

Types

type RewardDayReq

type RewardDayReq struct {
	DayStart    time.Time `json:"day_start"`
	StartHeight uint64    `json:"start_height"`
	EndHeight   uint64    `json:"end_height"`
	Inclusive   bool      `json:"inclusive"`
	Account     string    `json:"account"`
	Validators  []string  `json:"validators"`
}

type ValidatorAndCurrency

type ValidatorAndCurrency struct {
	Validator string
	Denom     string
}

Jump to

Keyboard shortcuts

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