Skip to main content

o2_tools/
lib.rs

1use crate::{
2    call_handler_ext::TransactionConfig,
3    utxo_manager::SharedUtxoManager,
4    wallet_ext::BuilderData,
5};
6
7#[cfg(test)]
8mod e2e;
9
10pub mod blob_loader;
11pub mod fuel_fast_bridge;
12pub mod helpers;
13pub mod house_order_book;
14pub mod log_decoder;
15pub mod macros;
16pub mod order_book;
17pub mod order_book_deploy;
18pub mod order_book_registry;
19pub mod parallel_nonce;
20pub mod prop;
21pub mod prop_deploy;
22pub mod prop_expiry;
23pub mod prop_force_close;
24pub mod src20_mock;
25pub mod test_contracts;
26pub mod trade_account;
27pub mod trade_account_deploy;
28pub mod trade_account_registry;
29pub mod trial_trade_account;
30pub mod trial_trade_account_convert;
31pub mod trial_trade_account_deploy;
32
33#[path = "market_data/market_data.rs"]
34pub mod market_data;
35
36pub mod call_handler_ext;
37pub mod contract_ext;
38pub mod signature_ext;
39pub mod utxo_manager;
40pub mod wallet_ext;
41
42#[derive(Clone)]
43pub struct AwaitPreconfirmation {
44    pub data_builder: BuilderData,
45    pub utxo_manager: SharedUtxoManager,
46    pub tx_config: Option<TransactionConfig>,
47}
48
49#[allow(clippy::large_enum_variant)]
50#[derive(Clone)]
51pub enum CallOption {
52    AwaitBlock,
53    AwaitPreconfirmation(AwaitPreconfirmation),
54}