staking

package
v0.0.0-...-a5fc328 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorUnableToGetStakingReport = errors.New("Unable to retrieve staking report")
)

Functions

This section is empty.

Types

type AccountRewards

type AccountRewards struct {
	Last24Hours RewardPeriod `json:"last24Hours"`
	Last7Days   RewardPeriod `json:"last7Days"`
	Last30Days  RewardPeriod `json:"last30Days"`
	LastYear    RewardPeriod `json:"lastYear"`
	All         RewardPeriod `json:"all"`
}

func GetStakingRewardsForUser

func GetStakingRewardsForUser(user account.User) (accountRewards AccountRewards, err error)

type Controller

type Controller struct{}

func (*Controller) GetStakingRewardsForAccount

func (controller *Controller) GetStakingRewardsForAccount(c *gin.Context)

type RewardPeriod

type RewardPeriod struct {
	Stakes  int64 `json:"stakes"`
	Balance int64 `json:"balance"`
}

Jump to

Keyboard shortcuts

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