Skip to content

Commit

Permalink
test(base_order_handler): Revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
akhercha committed Oct 10, 2023
1 parent 2ea815e commit ed20ec3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
1 change: 0 additions & 1 deletion src/exchange/base_order_handler.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ mod BaseOrderHandler {
referral_storage: self.referral_storage.read(),
};

/// TODO: get_uncompacted_oracle_block_numbers() isn't implemented yet
let min_oracle_block_numbers = get_uncompacted_oracle_block_numbers(
oracle_params.compacted_min_oracle_block_numbers.span(), oracle_params.tokens.len()
);
Expand Down
17 changes: 4 additions & 13 deletions src/order/order_store_utils.cairo
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
use traits::Default;

use core::option::OptionTrait;
use satoru::data::data_store::{IDataStoreDispatcher, IDataStoreDispatcherTrait};
use satoru::data::data_store::IDataStoreDispatcher;
use satoru::order::order::Order;
use satoru::order::error::OrderError;

/// Retrieves an Order from the passed key
/// # Arguments
/// * `key` - The key linked to the Order.
/// # Return
/// Return the corresponding Order object
fn get(data_store: IDataStoreDispatcher, key: felt252) -> Order {
// TODO
Default::default()
}

/// Link an Order with a key
/// # Arguments
/// * `key` - The key linked to the Order.
/// * `value` - The snapshot of the Order.
fn set(data_store: IDataStoreDispatcher, key: felt252, value: @Order) {}
fn set(data_store: IDataStoreDispatcher, key: felt252, value: @Order) { // TODO
}

0 comments on commit ed20ec3

Please sign in to comment.