effective

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEligibleForEPOSAuction added in v1.3.3

func IsEligibleForEPOSAuction(v *staking.ValidatorWrapper) bool

IsEligibleForEPOSAuction ..

func Median added in v1.3.3

func Median(stakes []SlotPurchase) numeric.Dec

Median ..

Types

type SlotOrder

type SlotOrder struct {
	Stake       *big.Int
	SpreadAmong []shard.BlsPublicKey
}

SlotOrder ..

type SlotPurchase

type SlotPurchase struct {
	common.Address     `json:"slot-owner"`
	shard.BlsPublicKey `json:"bls-public-key"`
	numeric.Dec        `json:"eposed-stake"`
}

SlotPurchase ..

type Slots

type Slots []SlotPurchase

Slots ..

func Apply

func Apply(shortHand map[common.Address]SlotOrder, pull int) Slots

Apply ..

func Compute added in v1.3.3

func Compute(
	shortHand map[common.Address]SlotOrder, pull int,
) (numeric.Dec, Slots)

Compute ..

func (Slots) JSON

func (s Slots) JSON() string

JSON is a plain JSON dump

Jump to

Keyboard shortcuts

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