Skip to content

Commit

Permalink
update compose
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth2207 committed Apr 10, 2024
1 parent 2941e1e commit 8e40e6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/StrategyTests.t.sol → src/StrategyTests.sol
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ contract StrategyTests is OrderBookStrategyTest {
OrderV2 memory order;
{
(bytes memory bytecode, uint256[] memory constants) = PARSER.parse(
LibComposeOrders.getComposedOrder(vm, strategy.strategyFile, strategy.strategyScenario)
LibComposeOrders.getComposedOrder(vm, strategy.strategyFile, strategy.strategyScenario, strategy.buildPath, strategy.manifestPath)
);
order = placeOrder(ORDER_OWNER, bytecode, constants, strategy.inputVaults, strategy.outputVaults);
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/LibComposeOrder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ library LibComposeOrders {
using Strings for address;
using Strings for uint256;

function getComposedOrder(Vm vm, string memory filePath, string memory scenario)
function getComposedOrder(Vm vm, string memory filePath, string memory scenario, string memory buildPath, string memory manifestPath)
internal
returns (bytes memory trancheOrder)
{
string[] memory ffi = new string[](16);
ffi[0] = "nix";
ffi[1] = "develop";
ffi[2] = "./lib/rain.orderbook";
ffi[2] = buildPath;
ffi[3] = "--command";
ffi[4] = "cargo";
ffi[5] = "run";
ffi[6] = "--manifest-path";
ffi[7] = "./lib/rain.orderbook/Cargo.toml";
ffi[7] = manifestPath;
ffi[8] = "--package";
ffi[9] = "rain_orderbook_cli";
ffi[10] = "order";
Expand Down
2 changes: 2 additions & 0 deletions src/lib/LibStrategyDeployment.sol
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ library LibStrategyDeployment {
uint256 expectedAmount;
string strategyFile;
string strategyScenario;
string buildPath;
string manifestPath;
IO[] inputVaults;
IO[] outputVaults;
}
Expand Down

0 comments on commit 8e40e6e

Please sign in to comment.