Skip to main content

Interface: AtRiskMapLike

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

Methods​

containsKey()​

containsKey(key): boolean;

Whether a value is stored under key.

Parameters​

key​

AddressLike

Returns​

boolean


entries()​

entries(): AtRiskMapEntry[];

Every entry, in no particular order.

Returns​

AtRiskMapEntry[]


get()​

get(key): bigint | undefined;

The value stored under key, or None if there is none.

Parameters​

key​

AddressLike

Returns​

bigint | undefined


isEmpty()​

isEmpty(): boolean;

Whether the map holds no entries.

Returns​

boolean


keys()​

keys(): AddressLike[];

Every key, in no particular order.

Returns​

AddressLike[]


len()​

len(): bigint;

The number of entries.

Returns​

bigint


values()​

values(): bigint[];

Every value, in no particular order.

Returns​

bigint[]