1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#![allow(clippy::from_over_into)]
pub mod cell;
pub mod error;
pub mod hardfork;
pub mod service;
pub mod tx_pool;
#[cfg(test)]
mod tests;
mod advanced_builders;
mod blockchain;
mod extras;
mod fee_rate;
mod reward;
mod transaction_meta;
mod views;
pub use advanced_builders::{BlockBuilder, HeaderBuilder, TransactionBuilder};
pub use blockchain::{DepType, ScriptHashType};
pub use extras::{BlockExt, EpochExt, EpochNumberWithFraction, TransactionInfo};
pub use fee_rate::FeeRate;
pub use reward::{BlockEconomicState, BlockIssuance, BlockReward, MinerReward};
pub use transaction_meta::{TransactionMeta, TransactionMetaBuilder};
pub use views::{
BlockView, ExtraHashView, HeaderView, TransactionView, UncleBlockVecView, UncleBlockView,
};
pub use ckb_occupied_capacity::{
capacity_bytes, Capacity, Error as CapacityError, Ratio, Result as CapacityResult,
};
pub use ckb_rational::RationalU256;
pub type PublicKey = ckb_fixed_hash::H512;
pub type BlockNumber = u64;
pub type EpochNumber = u64;
pub type Cycle = u64;
pub type Version = u32;