Skip to main content

AtRiskMapInterface

type AtRiskMapInterface​

Number of epochs each at-risk validator has had stake below the low-stake threshold.

type AtRiskMapInterface interface {
// Whether a value is stored under `key`.
ContainsKey(key *Address) bool
// Every entry, in no particular order.
Entries() []AtRiskMapEntry
// The value stored under `key`, or `None` if there is none.
Get(key *Address) *uint64
// Whether the map holds no entries.
IsEmpty() bool
// Every key, in no particular order.
Keys() []*Address
// The number of entries.
Len() uint64
// Every value, in no particular order.
Values() []uint64
}