From e8ff4b8f6dc9dfa37188b535594536afe3ac4e76 Mon Sep 17 00:00:00 2001 From: thedavidmeister Date: Thu, 9 Nov 2023 18:10:40 +0400 Subject: [PATCH] fmt --- .../OrderBook.takeOrder.handleIO.revert.t.sol | 15 +++++++++++++-- test/concrete/OrderBook.takeOrder.precision.t.sol | 13 ++++++++++++- .../OrderBookV3FlashLender.mockSuccess.t.sol | 2 +- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/test/concrete/OrderBook.takeOrder.handleIO.revert.t.sol b/test/concrete/OrderBook.takeOrder.handleIO.revert.t.sol index 0c06ca3f6..001acba27 100644 --- a/test/concrete/OrderBook.takeOrder.handleIO.revert.t.sol +++ b/test/concrete/OrderBook.takeOrder.handleIO.revert.t.sol @@ -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 @@ -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. diff --git a/test/concrete/OrderBook.takeOrder.precision.t.sol b/test/concrete/OrderBook.takeOrder.precision.t.sol index 4dcaddcc0..9ef9ee4a2 100644 --- a/test/concrete/OrderBook.takeOrder.precision.t.sol +++ b/test/concrete/OrderBook.takeOrder.precision.t.sol @@ -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. diff --git a/test/concrete/OrderBookV3FlashLender.mockSuccess.t.sol b/test/concrete/OrderBookV3FlashLender.mockSuccess.t.sol index 04fc5deef..6b57df74c 100644 --- a/test/concrete/OrderBookV3FlashLender.mockSuccess.t.sol +++ b/test/concrete/OrderBookV3FlashLender.mockSuccess.t.sol @@ -27,4 +27,4 @@ contract OrderBookV3FlashLenderMockSuccessTest is OrderBookExternalMockTest { ); iOrderbook.flashLoan(IERC3156FlashBorrower(receiver), address(iToken0), amount, data); } -} \ No newline at end of file +}