effective

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 (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