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 src20_mock;
24pub mod test_contracts;
25pub mod trade_account;
26pub mod trade_account_deploy;
27pub mod trade_account_registry;
28pub mod trial_trade_account;
29pub mod trial_trade_account_convert;
30pub mod trial_trade_account_deploy;
31
32#[path = "market_data/market_data.rs"]
33pub mod market_data;
34
35pub mod call_handler_ext;
36pub mod contract_ext;
37pub mod signature_ext;
38pub mod utxo_manager;
39pub mod wallet_ext;
40
41#[derive(Clone)]
42pub struct AwaitPreconfirmation {
43    pub data_builder: BuilderData,
44    pub utxo_manager: SharedUtxoManager,
45    pub tx_config: Option<TransactionConfig>,
46}
47
48#[allow(clippy::large_enum_variant)]
49#[derive(Clone)]
50pub enum CallOption {
51    AwaitBlock,
52    AwaitPreconfirmation(AwaitPreconfirmation),
53}