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
#![forbid(unsafe_code)]
#![doc(html_logo_url = "https://seeklogo.com/images/F/factom-fct-logo-08400C829C-seeklogo.com.png",
html_favicon_url = "https://www.factom.com/wp-content/uploads/2019/06/cropped-factom_favicon_azul-05-192x192.png")]
pub mod address;
pub mod api;
pub mod balance;
pub mod block;
pub mod chain;
pub mod compose;
pub mod constants;
pub mod debug;
pub mod entry;
pub mod generate;
pub mod identity;
pub mod import;
pub mod tx;
pub mod factomd;
pub mod walletd;
pub mod requests;
pub mod responses;
pub mod utils;
pub use api::Factom;
pub use constants::*;
pub use requests::ApiRequest;
pub use responses::ApiResponse;
#[cfg(not(feature="no-runtime"))]
pub use tokio::prelude::*;
#[cfg(not(feature="no-runtime"))]
pub use tokio::runtime::Runtime;
#[cfg(not(feature="no-runtime"))]
pub use requests::fetch;
use std::rc::Rc;
use serde_json::json;
use requests::{parse, factomd_call, walletd_call, debug_call};
use hyper_tls::HttpsConnector;
use serde::{Serialize, Deserialize};
use hyper::{Client, client::HttpConnector};
#[cfg(not(feature="no-runtime"))]
use hyper::rt::Future;
pub type HttpsClient = Rc<Client<HttpsConnector<HttpConnector>, hyper::Body>>;
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;