rewards

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parameters

type Parameters struct {
	Schedule RewardSchedule `json:"schedule"`

	ParticipationThresholdNumerator   uint64 `json:"participation_threshold_numerator"`
	ParticipationThresholdDenominator uint64 `json:"participation_threshold_denominator"`
}

Parameters are the parameters for the rewards module.

type RewardSchedule

type RewardSchedule struct {
	Steps []RewardStep `json:"steps"`
}

RewardSchedule is a reward schedule.

type RewardStep

type RewardStep struct {
	Until  beacon.EpochTime `json:"until"`
	Amount types.BaseUnits  `json:"amount"`
}

RewardStep is one of the time periods in the reward schedule.

type V1

type V1 interface {
	Parameters(ctx context.Context, round uint64) (*Parameters, error)
}

func NewV1

func NewV1(rc client.RuntimeClient) V1

Jump to

Keyboard shortcuts

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