uckb_jsonrpc_core/
lib.rs

1// Copyright (C) 2019-2020 Boyu Yang
2//
3// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
6// option. This file may not be copied, modified, or distributed
7// except according to those terms.
8
9pub use ckb_crypto::secp as secp256k1;
10pub use ckb_hash as blake2b;
11pub mod types {
12    pub mod rpc {
13        pub use ckb_jsonrpc_types::*;
14        #[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Hash)]
15        #[serde(rename_all = "snake_case")]
16        pub enum Topic {
17            NewTipHeader,
18            NewTipBlock,
19            NewTransaction,
20        }
21    }
22    pub use ckb_types::{bytes, constants, error, packed, prelude, utilities};
23    pub mod core {
24        pub use ckb_fee_estimator::FeeRate;
25        pub use ckb_types::core::*;
26    }
27    pub mod fixed {
28        pub use ckb_types::{h160, h256, u256, H160, H256, U128, U256};
29    }
30}
31
32pub mod client;