ArrayDB

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

Utility classes wrapping the state DB. supports length and iterator, maintains order

get(index: int = 0) → V

Gets the value at index

Parameters:index – index
Returns:value at the index
pop() → Optional[V]

Gets and removes last added value

Returns:last added value
put(value: V) → None

Puts the value at the end of array

Parameters:value – value to add