Skip to content

algopy_testing.state.global_map

GlobalMapGlobalMap abstracts the reading and writing of a set of global state values using

Bases: Generic[_TKey, _TValue]

GlobalMap abstracts the reading and writing of a set of global state values using a common key and content type.

Adequate space must be allocated for the application on creation (see algopy.StateTotals).

Provides access to the raw storage key-prefix.

get(key: _TKey, default: _TValue) → _TValue

Section titled “get(key: _TKey, default: _TValue) → _TValue”

maybe(key: _TKey) → tuple[_TValue, bool]

Section titled “maybe(key: _TKey) → tuple[_TValue, bool]”