mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-09-02 10:05:46 -05:00
* bump chia_rs to 0.7.0 and transition using sized ints and sized bytes from chia_rs * transition StructStream to use the version from chia_rs * Initial port of ConsensusConstants to Rust * Revert max cost calculation to use int for now * Remove SizedBytes, since it was moved to chia_rs * Remove test_struct_stream, since it was moved to chia_rs * use [0] * 100 instead of bytes(100) * restore wallet_rpc_api, and make type hints match JsonDict (Any) * fixup ConsensusConstants; restore return value of calculate_prefix_bits() * fixup ConsensusConstants; construct int for intermedate cost values * fixup ConsensusConstants; construct int for intermedate cost values * fixup: transition StructStream to use the version from chia_rs * revert changing type annotations for json dict --------- Co-authored-by: Rigidity <me@rigidnetwork.com>
20 lines
408 B
Python
20 lines
408 B
Python
from __future__ import annotations
|
|
|
|
import chia_rs.sized_ints
|
|
|
|
int8 = chia_rs.sized_ints.int8
|
|
uint8 = chia_rs.sized_ints.uint8
|
|
|
|
int16 = chia_rs.sized_ints.int16
|
|
uint16 = chia_rs.sized_ints.uint16
|
|
|
|
int32 = chia_rs.sized_ints.int32
|
|
uint32 = chia_rs.sized_ints.uint32
|
|
|
|
int64 = chia_rs.sized_ints.int64
|
|
uint64 = chia_rs.sized_ints.uint64
|
|
|
|
uint128 = chia_rs.sized_ints.uint128
|
|
|
|
int512 = chia_rs.sized_ints.int512
|