tonpy.utils package

Submodules

tonpy.utils.bit_converter module

tonpy.utils.bit_converter.bitstring_to_utf8(bitstring_: str, strict: bool = True) str
tonpy.utils.bit_converter.convert_str_to_bitsring(string: str) str
tonpy.utils.bit_converter.convert_str_to_int(string: str) int

tonpy.utils.bit_int module

tonpy.utils.bit_int.test_value_len(value: int, value_len: int)

tonpy.utils.global_config module

tonpy.utils.shard_account module

tonpy.utils.shard_account.get_empty_shard_account()

Construct an empty shard account cell suitable as a default state.

Returns:

Cell: Cell containing an empty AccountShardState representation.

tonpy.utils.shard_account.parse_shard_account(cell: Cell) dict

Parse an account shard state cell into a Python dictionary.

Args:

cell: Shard account cell (AccountShardState) to be parsed.

Returns:

dict: Parsed JSON-compatible structure describing the shard account.

tonpy.utils.token module

tonpy.utils.token.parse_token_d_value(value)
tonpy.utils.token.parse_token_data(data)

Module contents

tonpy.utils.ip2int(addr: str)