Data types#
Module containing representations of Cairo types. Mostly used to generate proper serializers.
- class starknet_py.cairo.data_types.CairoType#
Base type for all Cairo type representations. All types extend it.
- class starknet_py.cairo.data_types.FeltType#
Type representation of Cairo field element.
- class starknet_py.cairo.data_types.BoolType#
Type representation of Cairo boolean.
- class starknet_py.cairo.data_types.TupleType#
Type representation of Cairo tuples without named fields.
- class starknet_py.cairo.data_types.NamedTupleType#
Type representation of Cairo tuples with named fields.
- class starknet_py.cairo.data_types.ArrayType#
Type representation of Cairo arrays.
- class starknet_py.cairo.data_types.StructType#
Type representation of Cairo structures.
- name: str#
Structure name
- class starknet_py.cairo.data_types.EnumType#
Type representation of Cairo enums.
- name: str#
Enum name.
- class starknet_py.cairo.data_types.OptionType#
Type representation of Cairo options.
- class starknet_py.cairo.data_types.UintType#
Type representation of Cairo unsigned integers.
- bits: int#
Number of bits in the integer.
- class starknet_py.cairo.data_types.UnitType#
Type representation of Cairo unit ().