Crate dusk_data_driver

Source
Expand description

Types used for interacting with Dusk’s transfer and stake contracts.

Enums§

Error
The dusk-core error type.
JsonValue
Represents any valid JSON value.

Traits§

ConvertibleContract
A trait for converting between JSON and native RKYV formats in a contract.

Functions§

from_rkyv
Converts a serialized RKYV archive into a T.
json_to_rkyv
Converts a JSON string into a serialized RKYV archive.
json_to_rkyv_pair_u64
Converts a JSON string into a serialized RKYV archive of a tuple (u64, u64).
json_to_rkyv_u64
Converts a JSON string into a serialized RKYV archive of a u64 value.
rkyv_to_json
Converts a serialized RKYV archive into a JSON object.
rkyv_to_json_pair_u64
Converts a serialized RKYV archive into a JSON array of two u64 values.
rkyv_to_json_u64
Converts a serialized RKYV archive into a JSON string representing a u64 value.
to_json
Convert a T into serde_json::Value which is an enum that can represent any valid JSON data.