Class: AtRiskMap
Number of epochs each at-risk validator has had stake below the low-stake threshold.
Extends
UniffiAbstractObject
Implements
Properties
[destructorGuardSymbol]
readonly [destructorGuardSymbol]: UniffiGcObject;
[pointerLiteralSymbol]
readonly [pointerLiteralSymbol]: bigint;
[uniffiTypeNameSymbol]
readonly [uniffiTypeNameSymbol]: "AtRiskMap" = "AtRiskMap";
Methods
containsKey()
containsKey(key): boolean;
Whether a value is stored under key.
Parameters
key
Returns
boolean
Implementation of
entries()
entries(): AtRiskMapEntry[];
Every entry, in no particular order.
Returns
Implementation of
get()
get(key): bigint | undefined;
The value stored under key, or None if there is none.
Parameters
key
Returns
bigint | undefined
Implementation of
isEmpty()
isEmpty(): boolean;
Whether the map holds no entries.
Returns
boolean
Implementation of
keys()
keys(): AddressLike[];
Every key, in no particular order.
Returns
Implementation of
len()
len(): bigint;
The number of entries.
Returns
bigint
Implementation of
uniffiDestroy()
uniffiDestroy(): void;
Explicitly tell Rust to destroy the native peer that backs this object.
Once this method has been called, any following method calls will throw an error.
Can be called more than once.
Returns
void
Overrides
UniffiAbstractObject.uniffiDestroy
uniffiUse()
uniffiUse<T>(block): T;
A convenience method to use this object, then destroy it after its use.
Type Parameters
T
T
Parameters
block
(obj) => T
Returns
T
Inherited from
UniffiAbstractObject.uniffiUse
values()
values(): bigint[];
Every value, in no particular order.
Returns
bigint[]
Implementation of
fromEntries()
static fromEntries(entries): AtRiskMapLike;
Collect entries into a map. A key repeated across entries keeps the value of the last one.
Parameters
entries
Returns
instanceOf()
static instanceOf(obj_): obj_ is AtRiskMap;
Parameters
obj_
any
Returns
obj_ is AtRiskMap