VarDB

class VarDB(var_key: K, db: IconScoreDatabase, value_type: type)

Utility classes wrapping the state DB. VarDB can be used to store simple key-value state.

K:[int, str, Address, bytes]
V:[int, str, Address, bytes, bool]
get() → Optional[V]

Gets the value

Returns:value of the var db
remove() → None

Deletes the value

set(value: V) → None

Sets the value

Parameters:value – a value to be set