Expand description

Wrappers for JSON serialization.

Structs

Enums

Traits

  • This trait is a restriction for type Uint64, so we can only get epoch_number, epoch_index and epoch_length from the type EpochNumberWithFraction instead of all Uint64
  • A data structure that can be deserialized from any data format supported by Serde.
  • A data structure that can be serialized into any data format supported by Serde.

Type Aliases

  • The alert identifier that is used to filter duplicated alerts.
  • Alerts are sorted by priority. Greater integers mean higher priorities.
  • Consecutive block number starting from 0.
  • The capacity of a cell is the value of the cell in Shannons. It is also the upper limit of the cell occupied storage size where every 100,000,000 Shannons give 1-byte storage.
  • Count of cycles consumed by CKB VM to run scripts.
  • Consecutive epoch number starting from 0.
  • The epoch indicator of a block. It shows which epoch the block is in, and the elapsed epoch fraction after adding this block.
  • The Unix timestamp in milliseconds (1 second is 1000 milliseconds).
  • The 32-bit unsigned integer type encoded as the 0x-prefixed hex string in JSON.
  • The 64-bit unsigned integer type encoded as the 0x-prefixed hex string in JSON.
  • The 128-bit unsigned integer type encoded as the 0x-prefixed hex string in JSON.
  • The simple increasing integer version.

Derive Macros