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::TransactionWithStatus;
Modules
- TODO(doc): @quake
- The error types to unexpected out-points.
- Hard forks related types.
- 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.
- TODO(doc): @quake
- Specifies how the script
code_hash
is used to match the script code and how to run the code.
Type Definitions
- Block number.
- Numeric operation result.
- Cycle number.
- Epoch number.
- Public key. It’s a 512 bits fixed binary data.
- Version number.