Package genlayer.py.storage._internal.desc_base_types#

Warning

This is an internal module

class genlayer.py.storage._internal.desc_base_types.AddrDesc[source]#
__init__()[source]#
__repr__()[source]#

Return repr(self).

get(slot: Slot, off: int) Address[source]#

Method that reads value from slot and offset pair

Return type:

Address

set(slot: Slot, off: int, val: Address)[source]#

Method that writes value to slot and offset pair

class genlayer.py.storage._internal.desc_base_types.BoolDesc[source]#
__init__()[source]#
__repr__()[source]#

Return repr(self).

get(slot: Slot, off: int) bool[source]#

Method that reads value from slot and offset pair

Return type:

bool

set(slot: Slot, off: int, val: bool)[source]#

Method that writes value to slot and offset pair

class genlayer.py.storage._internal.desc_base_types.BytesDesc[source]#
__init__()[source]#
__repr__()[source]#

Return repr(self).

class genlayer.py.storage._internal.desc_base_types.IntDesc[source]#
__eq__(r)[source]#

Return self==value.

__hash__()[source]#

Return hash(self).

__init__(size: int, signed=True)[source]#
__repr__()[source]#

Return repr(self).

get(slot: Slot, off: int) int[source]#

Method that reads value from slot and offset pair

Return type:

int

set(slot: Slot, off: int, val: int)[source]#

Method that writes value to slot and offset pair

class genlayer.py.storage._internal.desc_base_types.NoneDesc[source]#
__eq__(r)[source]#

Return self==value.

__hash__()[source]#

Return hash(self).

__init__()[source]#
__repr__()[source]#

Return repr(self).

get(slot: Slot, off: int) None[source]#

Method that reads value from slot and offset pair

set(slot: Slot, off: int, val: None)[source]#

Method that writes value to slot and offset pair

class genlayer.py.storage._internal.desc_base_types.StrDesc[source]#
__init__()[source]#
__repr__()[source]#

Return repr(self).