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