Skip to content

Commit

Permalink
post action
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Aug 2, 2024
1 parent 1100b54 commit 6a171b8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/rain.orderbook
Submodule rain.orderbook updated 70 files
+1 −0 .github/workflows/rainix.yaml
+764 −219 Cargo.lock
+6 −3 Cargo.toml
+1 −0 crates/cli/Cargo.toml
+1 −0 crates/cli/src/commands/mod.rs
+16 −4 crates/cli/src/commands/order/compose.rs
+8 −0 crates/cli/src/commands/quote/mod.rs
+4 −0 crates/cli/src/lib.rs
+271 −21 crates/common/src/add_order.rs
+63 −1 crates/common/src/dotrain_order.rs
+2 −3 crates/common/src/rainlang.rs
+18 −0 crates/integration_tests/Cargo.toml
+240 −0 crates/integration_tests/src/lib.rs
+31 −0 crates/quote/Cargo.toml
+470 −0 crates/quote/src/cli/input.rs
+513 −0 crates/quote/src/cli/mod.rs
+32 −0 crates/quote/src/error.rs
+6 −0 crates/quote/src/lib.rs
+4 −0 crates/quote/src/main.rs
+633 −0 crates/quote/src/quote.rs
+172 −0 crates/quote/src/rpc.rs
+1 −1 crates/settings/src/lib.rs
+24 −0 crates/subgraph/queries/multiOrderDetail.graphql
+20 −1 crates/subgraph/src/orderbook_client.rs
+23 −0 crates/subgraph/src/types/order_detail.rs
+1 −0 crates/subgraph/src/types/vault_detail.rs
+2 −0 crates/subgraph/src/utils/mod.rs
+27 −0 crates/subgraph/src/utils/order_id.rs
+16 −0 crates/subgraph/tests/batch_order_test.rs
+45 −0 crates/subgraph/tests/snapshots/batch_order_test__batch_order_query_gql_output.snap
+1 −0 crates/subgraph/tests/snapshots/order_take_test__vaults_query_gql_output.snap
+2 −0 crates/subgraph/tests/snapshots/order_takes_test__vaults_query_gql_output.snap
+5 −1 crates/subgraph/tests/snapshots/order_test__orders_query_gql_output.snap
+1 −1 crates/subgraph/tests/snapshots/orders_test__orders_query_gql_output.snap
+1 −1 crates/subgraph/tests/snapshots/vault_balance_changes_test__vault_balance_changes_list_query_gql_output.snap
+2 −0 crates/subgraph/tests/snapshots/vault_test__vaults_query_gql_output.snap
+2 −0 crates/subgraph/tests/snapshots/vaults_test__vaults_query_gql_output.snap
+1 −1 lib/rain.interpreter
+1 −1 lib/rain.metadata
+2 −1 subgraph/src/trade.ts
+16 −0 subgraph/tests/trade.test.ts
+27 −0 tauri-app/package-lock.json
+1 −0 tauri-app/package.json
+5 −31 tauri-app/src-tauri/Cargo.lock
+1 −1 tauri-app/src-tauri/Cargo.toml
+4 −3 tauri-app/src-tauri/src/commands/order.rs
+33 −0 tauri-app/src/lib/components/TanstackPageContentDetail.svelte
+22 −0 tauri-app/src/lib/components/TanstackPageContentDetail.test.svelte
+71 −0 tauri-app/src/lib/components/TanstackPageContentDetail.test.ts
+55 −0 tauri-app/src/lib/components/icon/Refresh.svelte
+68 −0 tauri-app/src/lib/components/tables/TanstackAppTable.svelte
+18 −0 tauri-app/src/lib/components/tables/TanstackAppTable.test.svelte
+238 −0 tauri-app/src/lib/components/tables/TanstackAppTable.test.ts
+170 −0 tauri-app/src/lib/components/tables/VaultListTable.svelte
+347 −0 tauri-app/src/lib/components/tables/VaultListTable.test.ts
+91 −0 tauri-app/src/lib/mocks/queries.ts
+36 −0 tauri-app/src/lib/mocks/settings.ts
+10 −0 tauri-app/src/lib/mocks/wallets.ts
+2 −0 tauri-app/src/lib/queries/constants.ts
+3 −0 tauri-app/src/lib/queries/keys.ts
+117 −0 tauri-app/src/lib/queries/vaultBalanceChangesList.ts
+54 −0 tauri-app/src/lib/queries/vaultDetail.ts
+79 −0 tauri-app/src/lib/queries/vaultList.ts
+16 −0 tauri-app/src/lib/services/modal.ts
+0 −43 tauri-app/src/lib/stores/vault.ts
+0 −5 tauri-app/src/lib/types/vaultBalanceChange.ts
+32 −0 tauri-app/src/lib/utils/vault.ts
+32 −20 tauri-app/src/routes/+layout.svelte
+2 −146 tauri-app/src/routes/vaults/+page.svelte
+140 −96 tauri-app/src/routes/vaults/[id]/+page.svelte
33 changes: 31 additions & 2 deletions src/lib/LibComposeOrder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ library LibComposeOrders {
string memory scenario,
string memory buildPath,
string memory manifestPath
) internal returns (bytes memory trancheOrder) {
) internal returns (bytes memory composedOrder) {
string[] memory ffi = new string[](16);
ffi[0] = "nix";
ffi[1] = "develop";
Expand All @@ -33,6 +33,35 @@ library LibComposeOrders {
ffi[14] = "-s";
ffi[15] = scenario;

trancheOrder = vm.ffi(ffi);
composedOrder = vm.ffi(ffi);
}

function getComposedPostAddOrder(
Vm vm,
string memory filePath,
string memory scenario,
string memory buildPath,
string memory manifestPath
) internal returns (bytes memory composedSource) {
string[] memory ffi = new string[](17);
ffi[0] = "nix";
ffi[1] = "develop";
ffi[2] = buildPath;
ffi[3] = "--command";
ffi[4] = "cargo";
ffi[5] = "run";
ffi[6] = "--manifest-path";
ffi[7] = manifestPath;
ffi[8] = "--package";
ffi[9] = "rain_orderbook_cli";
ffi[10] = "order";
ffi[11] = "compose";
ffi[12] = "-f";
ffi[13] = filePath;
ffi[14] = "-s";
ffi[15] = scenario;
ffi[16] = "-p";

composedSource = vm.ffi(ffi);
}
}

0 comments on commit 6a171b8

Please sign in to comment.