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
#![allow(clippy::module_inception)]
pub use call_flags::*;
pub use contract_parameters_context::*;
pub use gas_estimator::*;
pub use invocation_script::*;
pub use oracle_response_code::*;
pub use signers::*;
pub use transaction::*;
pub use transaction_attribute::*;
pub use transaction_builder::*;
pub use transaction_error::*;
pub use transaction_send_token::*;
pub use verification_script::*;
pub use witness::*;
pub use witness_rule::*;
pub use witness_scope::*;
mod call_flags;
mod contract_parameters_context;
mod gas_estimator;
mod invocation_script;
mod oracle_response_code;
mod signers;
mod transaction;
mod transaction_attribute;
mod transaction_builder;
mod transaction_builder_tests;
mod transaction_error;
mod transaction_send_token;
mod verification_script;
mod witness;
mod witness_rule;
mod witness_scope;
#[cfg(test)]
mod test_utils {
use std::sync::Once;
static INIT: Once = Once::new();
/// Initializes the tracing subscriber for test output.
/// Safe to call multiple times — only the first invocation takes effect.
pub fn init_logger() {
INIT.call_once(|| {
tracing_subscriber::fmt().with_max_level(tracing::Level::TRACE).init();
});
}
}
#[cfg(test)]
pub use test_utils::init_logger;