Crate pbc_traits
source ·Expand description
Serialization for Partisia Blockchain SDK
Exposes the three serialization formats used in contracts:
ReadWriteState
for State serialization.ReadRPC
/WriteRPC
for RPC serialization.create_type_spec::CreateTypeSpec
for ABI serialization.
Traits§
- This trait adds the runtime type information needed to generate the contract PBC ABI files.
- Specifies functions for reading integers statefully, both big and little endians.
- Marks implementations that read RPC serialization format.
- Marks implementations of the State serialization format.
- Specifies functions for writing integers statefully, both big and little endians.
- Marks implementations that the RPC serialization format.