-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(base_order_handler): Revert changes
- Loading branch information
Showing
2 changed files
with
4 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |