AtRiskMap
type AtRiskMap
Number of epochs each at-risk validator has had stake below the low-stake threshold.
type AtRiskMap struct {
// contains filtered or unexported fields
}
func AtRiskMapFromEntries
func AtRiskMapFromEntries(entries []AtRiskMapEntry) *AtRiskMap
Collect entries into a map. A key repeated across entries keeps the value of the last one.
func LiftFromExternalAtRiskMap
func LiftFromExternalAtRiskMap(handle uint64) *AtRiskMap
func (*AtRiskMap) ContainsKey
func (_self *AtRiskMap) ContainsKey(key *Address) bool
Whether a value is stored under `key`.
func (*AtRiskMap) Destroy
func (object *AtRiskMap) Destroy()
func (*AtRiskMap) Entries
func (_self *AtRiskMap) Entries() []AtRiskMapEntry
Every entry, in no particular order.
func (*AtRiskMap) Get
func (_self *AtRiskMap) Get(key *Address) *uint64
The value stored under `key`, or `None` if there is none.
func (*AtRiskMap) IsEmpty
func (_self *AtRiskMap) IsEmpty() bool
Whether the map holds no entries.
func (*AtRiskMap) Keys
func (_self *AtRiskMap) Keys() []*Address
Every key, in no particular order.
func (*AtRiskMap) Len
func (_self *AtRiskMap) Len() uint64
The number of entries.
func (*AtRiskMap) Values
func (_self *AtRiskMap) Values() []uint64
Every value, in no particular order.