-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #900 from rainlanguage/2024-09-28-rename-order-takes
rename order takes to trades
- Loading branch information
Showing
23 changed files
with
81 additions
and
1,678 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,12 +1,11 @@ | ||
mod chart; | ||
mod order; | ||
mod order_take; | ||
mod quote; | ||
mod subgraph; | ||
mod trade; | ||
mod vault; | ||
mod words; | ||
|
||
pub use self::{ | ||
chart::Chart, order::Order, order_take::OrderTake, subgraph::Subgraph, vault::Vault, | ||
words::Words, | ||
chart::Chart, order::Order, subgraph::Subgraph, trade::Trade, vault::Vault, words::Words, | ||
}; |
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
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
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,7 +1,7 @@ | ||
pub mod common; | ||
pub mod order; | ||
pub mod order_detail_traits; | ||
pub mod order_take; | ||
pub mod order_trade; | ||
pub mod vault; | ||
|
||
pub use cynic::Id; |
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
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,7 +1,5 @@ | ||
mod order_id; | ||
mod slice_list; | ||
mod u256; | ||
|
||
pub use order_id::*; | ||
pub use slice_list::*; | ||
pub use u256::*; |
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
crates/subgraph/tests/order_take_test.rs → crates/subgraph/tests/order_trade_test.rs
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,14 +1,14 @@ | ||
use cynic::Id; | ||
use insta::assert_snapshot; | ||
use rain_orderbook_subgraph_client::types::common::*; | ||
use rain_orderbook_subgraph_client::types::order_take::OrderTakeDetailQuery; | ||
use rain_orderbook_subgraph_client::types::order_trade::OrderTradeDetailQuery; | ||
|
||
#[test] | ||
fn vaults_query_gql_output() { | ||
use cynic::QueryBuilder; | ||
|
||
let id = Id::new("1234"); | ||
let request_body = OrderTakeDetailQuery::build(IdQueryVariables { id: &id }); | ||
let request_body = OrderTradeDetailQuery::build(IdQueryVariables { id: &id }); | ||
|
||
assert_snapshot!(request_body.query); | ||
} |
4 changes: 2 additions & 2 deletions
4
crates/subgraph/tests/order_takes_test.rs → crates/subgraph/tests/order_trades_test.rs
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
4 changes: 2 additions & 2 deletions
4
...r_take_test__vaults_query_gql_output.snap → ..._trade_test__vaults_query_gql_output.snap
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
4 changes: 2 additions & 2 deletions
4
..._takes_test__vaults_query_gql_output.snap → ...trades_test__vaults_query_gql_output.snap
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
Oops, something went wrong.