contract

package
v0.0.0-...-6f0d0d7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressInfo

type ProgressInfo struct {
	EggsLaid          float64
	ProjectedEggsLaid float64
	Rewards           []*Reward
	UltimateGoal      float64
}

func NewProgressInfo

func NewProgressInfo(
	rewards []*api.Reward,
	eggsLaid float64,
	projectedEggsLaid float64,
) *ProgressInfo

func (*ProgressInfo) PercentageCompleted

func (p *ProgressInfo) PercentageCompleted() float64

func (*ProgressInfo) ProjectedPercentageCompleted

func (p *ProgressInfo) ProjectedPercentageCompleted() float64

type Reward

type Reward struct {
	*api.Reward
	PercentageOfUltimateGoal float64
	PercentageCompleted      float64
}

Jump to

Keyboard shortcuts

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