[][src]Module ckb_types::core

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.

Modules

cell

TODO(doc): @quake

error

TODO(doc): @keroro520

service

Types for CKB services.

tx_pool

Tx-pool shared type define.

Macros

capacity_bytes

TODO(doc): @keroro520

Structs

BlockBuilder

An advanced builder for BlockView.

BlockEconomicState

Includes the rewards details for a block and when the block is finalized.

BlockExt

TODO(doc): @quake

BlockIssuance

Native token issuance.

BlockReward

Details of miner rewards issued by block cellbase transaction.

BlockView

A readonly and immutable struct which includes Block and its associated hashes.

Capacity

CKB capacity.

EpochExt

TODO(doc): @quake

EpochNumberWithFraction

Represents an epoch number with a fraction unit, it can be used to accurately represent the position for a block within an epoch.

HeaderBuilder

An advanced builder for HeaderView.

HeaderView

A readonly and immutable struct which includes Header and its hash.

MinerReward

Miner reward.

Ratio

Represents the ratio numerator / denominator, where numerator and denominator are both unsigned 64-bit integers.

RationalU256

Represents the ratio numerator / denominator, where numerator and denominator are both unsigned 256-bit integers.

TransactionBuilder

An advanced builder for TransactionView.

TransactionInfo

TODO(doc): @quake

TransactionMeta

TODO(doc): @quake

TransactionMetaBuilder

TODO(doc): @quake

TransactionView

A readonly and immutable struct which includes Transaction and its associated hashes.

UncleBlockVecView

A readonly and immutable struct which includes a vector of UncleBlocks and their hashes.

UncleBlockView

A readonly and immutable struct which includes UncleBlock and its hash.

Enums

DepType

TODO(doc): @quake

ScriptHashType

TODO(doc): @quake

Type Definitions

BlockNumber

Block number.

CapacityResult

Numeric operation result.

Cycle

Cycle number.

EpochNumber

Epoch number.

PublicKey

Public key. It's a 512 bits fixed binary data.

Version

Version number.