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