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 ¶
Click to show internal directories.
Click to hide internal directories.