primitives/
lib.rs

1// Copyright 2019 Conflux Foundation. All rights reserved.
2// Conflux is free software and distributed under GNU General Public License.
3// See http://www.gnu.org/licenses/
4
5use cfx_bytes as bytes;
6use cfxkey as keylib;
7use keccak_hash as hash;
8
9// P2P / DB / trace RLP `bool` encoding. Retarget to `CompatBool06` for
10// the Phase 2 transition (issue #3254). `pub use ... as ...` not
11// `pub type`, so `CompatBool(x)` tuple-construction still compiles.
12pub use rlp_compat::CompatBool04 as CompatBool;
13
14pub mod account;
15pub mod block;
16pub mod block_header;
17pub mod block_number;
18pub mod epoch;
19pub mod filter;
20pub mod is_default;
21pub mod log_entry;
22pub mod pos;
23pub mod receipt;
24pub mod state_root;
25pub mod static_bool;
26pub mod storage;
27pub mod storage_key;
28pub mod transaction;
29pub mod transaction_index;
30pub mod zero;
31
32pub use crate::{
33    account::{
34        Account, CodeInfo, DepositInfo, DepositList, SponsorInfo,
35        VoteStakeInfo, VoteStakeList,
36    },
37    block::{Block, BlockNumber},
38    block_header::{BlockHeader, BlockHeaderBuilder},
39    block_number::compute_block_number,
40    epoch::{BlockHashOrEpochNumber, EpochId, EpochNumber, NULL_EPOCH},
41    log_entry::LogEntry,
42    receipt::{BlockReceipts, Receipt, TransactionStatus},
43    state_root::*,
44    static_bool::StaticBool,
45    storage::{
46        MptValue, NodeMerkleTriplet, StorageLayout, StorageRoot, StorageValue,
47    },
48    storage_key::*,
49    transaction::{
50        extract_7702_payload, AccessList, AccessListItem, Action,
51        AuthorizationList, AuthorizationListItem, SignedTransaction,
52        Transaction, TransactionWithSignature,
53        TransactionWithSignatureSerializePart, TxPropagateId, AUTH_MAGIC,
54        CODE_PREFIX_7702,
55    },
56    transaction_index::TransactionIndex,
57    zero::Zero,
58};