reward

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartData

type ChartData struct {
	Time   time.Time `json:"time"`
	Amount string    `json:"amount"`
}

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *pg.DB) *Repository

func (Repository) GetAggregatedChartData

func (repository Repository) GetAggregatedChartData(filter aggregated_reward.SelectFilter) []ChartData

func (Repository) GetChartData

func (repository Repository) GetChartData(address string, filter tools.Filter) []ChartData

Get filtered chart data by Noah address

func (Repository) GetPaginatedAggregatedByAddress

func (repository Repository) GetPaginatedAggregatedByAddress(filter aggregated_reward.SelectFilter, pagination *tools.Pagination) []models.AggregatedReward

func (Repository) GetPaginatedByAddress

func (repository Repository) GetPaginatedByAddress(filter events.SelectFilter, pagination *tools.Pagination) []models.Reward

Get filtered list of rewards by Noah address

func (Repository) GetSumRewardForValidator added in v0.2.8

func (repository Repository) GetSumRewardForValidator(validatorId uint64, createdAt time.Time) string

type Resource

type Resource struct {
	BlockID       uint64             `json:"block"`
	Role          string             `json:"role"`
	Amount        string             `json:"amount"`
	Address       string             `json:"address"`
	Validator     string             `json:"validator"`
	ValidatorMeta resource.Interface `json:"validator_meta"`
	Timestamp     string             `json:"timestamp"`
}

func (Resource) Transform

Jump to

Keyboard shortcuts

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