VarDB

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

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

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