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
pub mod box_spec;
pub mod box_traits;
pub mod encoding;
pub mod error;
pub mod output_builders;
pub mod specified_boxes;
pub mod tx_assembler;
pub mod tx_creation;

pub use box_spec::{BoxSpec, RegisterSpec, TokenSpec};
pub use box_traits::{ExplorerFindable, SpecifiedBox, WrappedBox};
pub use encoding::{erg_to_nano_erg, nano_erg_to_erg};
pub use ergo_headless_dapp_framework_derive::{SpecBox, WASMBox, WrapBox};
pub use ergo_lib::chain::transaction::unsigned::UnsignedTransaction;
pub use ergo_lib::ergotree_ir::chain::ergo_box::ErgoBox;
pub use ergo_lib::ergotree_ir::ergo_tree::ErgoTree;
pub use ergo_lib::ergotree_ir::mir::constant::Constant;
pub use ergo_lib::ergotree_ir::types::stype::SType;
pub use error::{HeadlessDappError, Result};
pub use output_builders::{ChangeBox, TokensChangeBox, TxFeeBox};
pub use specified_boxes::{ErgUsdOraclePoolBox, ErgsBox};
pub use tx_assembler::TxAssemblerSpecBuilder;
pub use tx_creation::{create_candidate, find_and_sum_other_tokens};

/// A Base58 encoded String of an Ergo address. Can be either P2PK or P2S.
pub type ErgoAddressString = String;
/// A Base58 encoded String of a Ergo P2PK address.
pub type P2PKAddressString = String;
/// A Base58 encoded String of a Ergo P2S address.
pub type P2SAddressString = String;
/// Transaction ID
pub type TxId = String;
/// The smallest unit of the Erg currency.
pub type NanoErg = u64;
/// A block height of the chain.
pub type BlockHeight = u64;
/// Duration in number of blocks.
pub type BlockDuration = u64;
/// A Base58 encoded String of a Token ID.
pub type TokenID = String;
/// Integer which is provided by the Ergo node to reference a given scan.
pub type ScanID = String;