Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
thedavidmeister committed Nov 9, 2023
1 parent 5d187a0 commit e8ff4b8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
15 changes: 13 additions & 2 deletions test/concrete/OrderBook.takeOrder.handleIO.revert.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@
pragma solidity =0.8.19;

import {Vm} from "forge-std/Vm.sol";
import {OrderBookExternalRealTest, OrderConfigV2, IO, IParserV1, EvaluableConfigV2, Order, TakeOrderConfig, SignedContextV1, TakeOrdersConfigV2} from "test/util/abstract/OrderBookExternalRealTest.sol";
import {
OrderBookExternalRealTest,
OrderConfigV2,
IO,
IParserV1,
EvaluableConfigV2,
Order,
TakeOrderConfig,
SignedContextV1,
TakeOrdersConfigV2
} from "test/util/abstract/OrderBookExternalRealTest.sol";
import {EnsureFailed} from "rain.interpreter/src/lib/op/logic/LibOpEnsureNP.sol";

/// @title OrderBookTakeOrderHandleIORevertTest
Expand All @@ -19,7 +29,8 @@ contract OrderBookTakeOrderHandleIORevertTest is OrderBookExternalRealTest {
validInputs[0] = IO(inputToken, 18, vaultId);
IO[] memory validOutputs = new IO[](1);
validOutputs[0] = IO(outputToken, 18, vaultId);
(bytes memory bytecode, uint256[] memory constants) = IParserV1(address(iDeployer)).parse("_ _:max-int-value() 1e18;:ensure<1>(0);");
(bytes memory bytecode, uint256[] memory constants) =
IParserV1(address(iDeployer)).parse("_ _:max-int-value() 1e18;:ensure<1>(0);");
EvaluableConfigV2 memory evaluableConfig = EvaluableConfigV2(iDeployer, bytecode, constants);
config = OrderConfigV2(validInputs, validOutputs, evaluableConfig, "");
// Etch with invalid.
Expand Down
13 changes: 12 additions & 1 deletion test/concrete/OrderBook.takeOrder.precision.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
// SPDX-License-Identifier: CAL
pragma solidity =0.8.19;

import {OrderBookExternalRealTest, OrderConfigV2, IO, EvaluableConfigV2, IParserV1, Vm, Order, TakeOrderConfig, SignedContextV1, TakeOrdersConfigV2} from "test/util/abstract/OrderBookExternalRealTest.sol";
import {
OrderBookExternalRealTest,
OrderConfigV2,
IO,
EvaluableConfigV2,
IParserV1,
Vm,
Order,
TakeOrderConfig,
SignedContextV1,
TakeOrdersConfigV2
} from "test/util/abstract/OrderBookExternalRealTest.sol";

/// @title OrderBookTakeOrderPrecisionTest
/// @notice A test harness for testing the OrderBook takeOrder function.
Expand Down
2 changes: 1 addition & 1 deletion test/concrete/OrderBookV3FlashLender.mockSuccess.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ contract OrderBookV3FlashLenderMockSuccessTest is OrderBookExternalMockTest {
);
iOrderbook.flashLoan(IERC3156FlashBorrower(receiver), address(iToken0), amount, data);
}
}
}

0 comments on commit e8ff4b8

Please sign in to comment.