@midnight-ntwrk/compact-runtime v0.7.0 • Readme | API
@midnight-ntwrk/compact-runtime v0.7.0 / StateMap
Class: StateMap
Represents a key-value map, where keys are AlignedValues, and values are StateValues.
Constructors
new StateMap()
new StateMap(): StateMap
Returns
Methods
get()
get(key): undefined | StateValue
Parameters
• key: AlignedValue
Returns
undefined
| StateValue
insert()
insert(key, value): StateMap
Parameters
• key: AlignedValue
• value: StateValue
Returns
keys()
keys(): AlignedValue[]
Returns
remove()
remove(key): StateMap
Parameters
• key: AlignedValue
Returns
toString()
toString(compact?): string
Parameters
• compact?: boolean
Returns
string