Expand description
The essential rust types for CKB.
Packed bytes are not enough for all usage scenarios.
This module provides essential rust types.
Most of them is composed of those packed bytes or can convert between self and those bytes.
Re-exports§
pub use tx_pool::EntryCompleted;
pub use tx_pool::TransactionWithStatus;
Modules§
- TODO(doc): @quake
- The error types to unexpected out-points.
- Hardfork-related configuration
- Types for CKB services.
- Tx-pool shared type define.
Macros§
- TODO(doc): @keroro520
Structs§
- An advanced builder for
BlockView
. - Includes the rewards details for a block and when the block is finalized.
- TODO(doc): @quake
- Native token issuance.
- Details of miner rewards issued by block cellbase transaction.
- A readonly and immutable struct which includes
Block
and its associated hashes. - CKB capacity.
- TODO(doc): @quake
- Represents an epoch number with a fraction unit, it can be used to accurately represent the position for a block within an epoch.
- A readonly and immutable struct which includes extra hash and the decoupled parts of it.
- shannons per kilo-weight
- An advanced builder for
HeaderView
. - A readonly and immutable struct which includes
Header
and its hash. - Miner reward.
- Represents the ratio
numerator / denominator
, wherenumerator
anddenominator
are both unsigned 64-bit integers. - Represents the ratio
numerator / denominator
, wherenumerator
anddenominator
are both unsigned 256-bit integers. - An advanced builder for
TransactionView
. - TODO(doc): @quake
- TODO(doc): @quake
- TODO(doc): @quake
- A readonly and immutable struct which includes
Transaction
and its associated hashes. - A readonly and immutable struct which includes a vector of
UncleBlock
s and their hashes. - A readonly and immutable struct which includes
UncleBlock
and its hash.
Enums§
- Numeric errors.
- The DepType enum represents different types of dependencies for
cell_deps
. - Specifies how the script
code_hash
is used to match the script code and how to run the code. The hash type is split into the high 7 bits and the low 1 bit, when the low 1 bit is 1, it indicates the type, when the low 1 bit is 0, it indicates the data, and then it relies on the high 7 bits to indicate that the data actually corresponds to the version.
Type Aliases§
- Block number.
- Numeric operation result.
- Cycle number.
- Epoch number.
- Public key. It’s a 512 bits fixed binary data.
- Version number.