forked from CodeChain-io/codechain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.rs
107 lines (102 loc) · 2.96 KB
/
lib.rs
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// Copyright 2018 Kodebox, Inc.
// This file is part of CodeChain.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
extern crate codechain_crypto as ccrypto;
extern crate codechain_io as cio;
extern crate codechain_json as cjson;
extern crate codechain_keys as ckeys;
extern crate codechain_keystore as ckeystore;
#[macro_use]
extern crate codechain_logger as clogger;
extern crate codechain_merkle as cmerkle;
extern crate codechain_network as cnetwork;
extern crate codechain_types as ctypes;
extern crate codechain_vm as cvm;
extern crate hashdb;
extern crate heapsize;
extern crate journaldb;
extern crate kvdb;
extern crate kvdb_memorydb;
extern crate kvdb_rocksdb;
extern crate linked_hash_map;
extern crate lru_cache;
extern crate memorydb;
extern crate multimap;
extern crate num_cpus;
extern crate patricia_trie as trie;
extern crate rand;
extern crate rlp;
extern crate rlp_compress;
#[macro_use]
extern crate rlp_derive;
extern crate parking_lot;
extern crate rustc_hex;
#[macro_use]
extern crate serde_derive;
extern crate table;
extern crate time;
extern crate triehash;
extern crate unexpected;
extern crate util_error;
#[macro_use]
extern crate log;
mod account_provider;
mod block;
mod blockchain;
mod blockchain_info;
mod client;
mod codechain_machine;
mod consensus;
mod db;
pub mod encoded;
mod error;
mod header;
mod invoice;
mod machine;
mod miner;
mod parcel;
mod pod_account;
mod pod_state;
mod service;
mod spec;
mod state;
mod state_db;
mod transaction;
mod types;
mod verification;
mod views;
#[cfg(test)]
mod tests;
pub use account_provider::AccountProvider;
pub use block::Block;
pub use blockchain::ParcelInvoice;
pub use client::{
Balance, BlockChainClient, BlockInfo, ChainInfo, ChainNotify, Client, ImportBlock, Nonce, RegularKey,
TestBlockChainClient,
};
pub use db::COL_STATE;
pub use error::{BlockImportError, Error, ImportError};
pub use header::{Header, Seal};
pub use invoice::Invoice;
pub use miner::{Miner, MinerOptions, MinerService};
pub use parcel::{
parcel_error_message, Action, AssetOutPoint, AssetTransferInput, AssetTransferOutput, LocalizedParcel, Parcel,
SignedParcel, UnverifiedParcel,
};
pub use service::ClientService;
pub use spec::Spec;
pub use state::{Asset, AssetAddress, AssetScheme, AssetSchemeAddress, ShardStateInfo};
pub use transaction::{Error as TransactionError, Transaction};
pub use types::{BlockId, BlockNumber, ParcelId};