Skip to content

Commit

Permalink
set prettierrc compiler version to support multi-line imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Jul 6, 2022
1 parent 5d2e2bc commit f62c14f
Show file tree
Hide file tree
Showing 68 changed files with 360 additions and 144 deletions.
1 change: 1 addition & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
tabWidth: 4,
printWidth: 80,
bracketSpacing: true,
compiler: "0.8.14",
},
},
],
Expand Down
1 change: 0 additions & 1 deletion contracts/conduit/Conduit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { ConduitItemType } from "./lib/ConduitEnums.sol";

import { TokenTransferrer } from "../lib/TokenTransferrer.sol";

// prettier-ignore
import {
ConduitTransfer,
ConduitBatch1155Transfer
Expand Down
3 changes: 1 addition & 2 deletions contracts/conduit/ConduitController.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
ConduitControllerInterface
ConduitControllerInterface
} from "../interfaces/ConduitControllerInterface.sol";

import { ConduitInterface } from "../interfaces/ConduitInterface.sol";
Expand Down
2 changes: 0 additions & 2 deletions contracts/helpers/TransferHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { TokenTransferrer } from "../lib/TokenTransferrer.sol";

import { ConduitInterface } from "../interfaces/ConduitInterface.sol";

// prettier-ignore
import {
ConduitControllerInterface
} from "../interfaces/ConduitControllerInterface.sol";
Expand All @@ -16,7 +15,6 @@ import { Conduit } from "../conduit/Conduit.sol";

import { ConduitTransfer } from "../conduit/lib/ConduitStructs.sol";

// prettier-ignore
import {
TransferHelperInterface
} from "../interfaces/TransferHelperInterface.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/interfaces/ConduitInterface.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
ConduitTransfer,
ConduitBatch1155Transfer
Expand Down
1 change: 0 additions & 1 deletion contracts/interfaces/ConsiderationInterface.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
BasicOrderParameters,
OrderComponents,
Expand Down
1 change: 0 additions & 1 deletion contracts/interfaces/SeaportInterface.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
BasicOrderParameters,
OrderComponents,
Expand Down
1 change: 0 additions & 1 deletion contracts/interfaces/ZoneInterface.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
AdvancedOrder,
CriteriaResolver
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/AmountDeriver.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

// prettier-ignore
import {
AmountDerivationErrors
} from "../interfaces/AmountDerivationErrors.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/Assertions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { OrderParameters } from "./ConsiderationStructs.sol";

import { GettersAndDerivers } from "./GettersAndDerivers.sol";

// prettier-ignore
import {
TokenTransferrerErrors
} from "../interfaces/TokenTransferrerErrors.sol";
Expand Down
2 changes: 0 additions & 2 deletions contracts/lib/BasicOrderFulfiller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@ pragma solidity ^0.8.13;

import { ConduitInterface } from "../interfaces/ConduitInterface.sol";

// prettier-ignore
import {
OrderType,
ItemType,
BasicOrderRouteType
} from "./ConsiderationEnums.sol";

// prettier-ignore
import {
AdditionalRecipient,
BasicOrderParameters,
Expand Down
2 changes: 0 additions & 2 deletions contracts/lib/Consideration.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

// prettier-ignore
import {
ConsiderationInterface
} from "../interfaces/ConsiderationInterface.sol";

// prettier-ignore
import {
OrderComponents,
BasicOrderParameters,
Expand Down
2 changes: 0 additions & 2 deletions contracts/lib/ConsiderationBase.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

// prettier-ignore
import {
ConduitControllerInterface
} from "../interfaces/ConduitControllerInterface.sol";

// prettier-ignore
import {
ConsiderationEventsAndErrors
} from "../interfaces/ConsiderationEventsAndErrors.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/ConsiderationStructs.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
OrderType,
BasicOrderType,
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/CounterManager.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

// prettier-ignore
import {
ConsiderationEventsAndErrors
} from "../interfaces/ConsiderationEventsAndErrors.sol";
Expand Down
2 changes: 0 additions & 2 deletions contracts/lib/CriteriaResolution.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.13;

import { ItemType, Side } from "./ConsiderationEnums.sol";

// prettier-ignore
import {
OfferItem,
ConsiderationItem,
Expand All @@ -14,7 +13,6 @@ import {

import "./ConsiderationConstants.sol";

// prettier-ignore
import {
CriteriaResolutionErrors
} from "../interfaces/CriteriaResolutionErrors.sol";
Expand Down
2 changes: 0 additions & 2 deletions contracts/lib/FulfillmentApplier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.13;

import { ItemType, Side } from "./ConsiderationEnums.sol";

// prettier-ignore
import {
OfferItem,
ConsiderationItem,
Expand All @@ -16,7 +15,6 @@ import {

import "./ConsiderationConstants.sol";

// prettier-ignore
import {
FulfillmentApplicationErrors
} from "../interfaces/FulfillmentApplicationErrors.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/OrderCombiner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.13;

import { Side, ItemType } from "./ConsiderationEnums.sol";

// prettier-ignore
import {
OfferItem,
ConsiderationItem,
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/OrderFulfiller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.13;

import { ItemType } from "./ConsiderationEnums.sol";

// prettier-ignore
import {
OfferItem,
ConsiderationItem,
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/OrderValidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.13;

import { OrderType } from "./ConsiderationEnums.sol";

// prettier-ignore
import {
OrderParameters,
Order,
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/SignatureVerification.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.13;

import { EIP1271Interface } from "../interfaces/EIP1271Interface.sol";

// prettier-ignore
import {
SignatureVerificationErrors
} from "../interfaces/SignatureVerificationErrors.sol";
Expand Down
1 change: 0 additions & 1 deletion contracts/lib/TokenTransferrer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.7;

import "./TokenTransferrerConstants.sol";

// prettier-ignore
import {
TokenTransferrerErrors
} from "../interfaces/TokenTransferrerErrors.sol";
Expand Down
6 changes: 1 addition & 5 deletions contracts/lib/ZoneInteraction.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ import { ZoneInterface } from "../interfaces/ZoneInterface.sol";

import { OrderType } from "./ConsiderationEnums.sol";

// prettier-ignore
import { AdvancedOrder, CriteriaResolver } from "./ConsiderationStructs.sol";

import "./ConsiderationConstants.sol";

// prettier-ignore
import {
ZoneInteractionErrors
} from "../interfaces/ZoneInteractionErrors.sol";
import { ZoneInteractionErrors } from "../interfaces/ZoneInteractionErrors.sol";

import { LowLevelHelpers } from "./LowLevelHelpers.sol";

Expand Down
1 change: 0 additions & 1 deletion contracts/test/TestZone.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.7;

import { ZoneInterface } from "../interfaces/ZoneInterface.sol";

// prettier-ignore
import {
AdvancedOrder,
CriteriaResolver
Expand Down
7 changes: 4 additions & 3 deletions reference/ReferenceConsideration.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
ConsiderationInterface
} from "contracts/interfaces/ConsiderationInterface.sol";

// prettier-ignore
import {
OrderComponents,
BasicOrderParameters,
Expand All @@ -22,7 +20,10 @@ import {

import { ReferenceOrderCombiner } from "./lib/ReferenceOrderCombiner.sol";

import { OrderToExecute, AccumulatorStruct } from "./lib/ReferenceConsiderationStructs.sol";
import {
OrderToExecute,
AccumulatorStruct
} from "./lib/ReferenceConsiderationStructs.sol";

/**
* @title ReferenceConsideration
Expand Down
2 changes: 0 additions & 2 deletions reference/conduit/ReferenceConduit.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ import { ConduitInterface } from "contracts/interfaces/ConduitInterface.sol";

import { ConduitItemType } from "contracts/conduit/lib/ConduitEnums.sol";

// prettier-ignore
import {
ReferenceTokenTransferrer
} from "../lib/ReferenceTokenTransferrer.sol";

// prettier-ignore
import {
ConduitTransfer,
ConduitBatch1155Transfer
Expand Down
3 changes: 1 addition & 2 deletions reference/conduit/ReferenceConduitController.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ pragma solidity ^0.8.7;

import { ReferenceConduit } from "./ReferenceConduit.sol";

// prettier-ignore
import {
ConduitControllerInterface
ConduitControllerInterface
} from "contracts/interfaces/ConduitControllerInterface.sol";

import { ConduitInterface } from "contracts/interfaces/ConduitInterface.sol";
Expand Down
1 change: 0 additions & 1 deletion reference/lib/ReferenceAmountDeriver.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
AmountDerivationErrors
} from "contracts/interfaces/AmountDerivationErrors.sol";
Expand Down
4 changes: 3 additions & 1 deletion reference/lib/ReferenceAssertions.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { OrderParameters } from "contracts/lib/ConsiderationStructs.sol";

import { ReferenceGettersAndDerivers } from "./ReferenceGettersAndDerivers.sol";

import { TokenTransferrerErrors } from "contracts/interfaces/TokenTransferrerErrors.sol";
import {
TokenTransferrerErrors
} from "contracts/interfaces/TokenTransferrerErrors.sol";

import { ReferenceCounterManager } from "./ReferenceCounterManager.sol";

Expand Down
3 changes: 0 additions & 3 deletions reference/lib/ReferenceBasicOrderFulfiller.sol
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
OrderType,
BasicOrderType,
ItemType,
BasicOrderRouteType
} from "contracts/lib/ConsiderationEnums.sol";

// prettier-ignore
import {
AdditionalRecipient,
BasicOrderParameters,
Expand All @@ -19,7 +17,6 @@ import {
ReceivedItem
} from "contracts/lib/ConsiderationStructs.sol";

// prettier-ignore
import {
AccumulatorStruct,
BasicFulfillmentHashes,
Expand Down
2 changes: 0 additions & 2 deletions reference/lib/ReferenceConsiderationBase.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
ConduitControllerInterface
} from "contracts/interfaces/ConduitControllerInterface.sol";

// prettier-ignore
import {
ConsiderationEventsAndErrors
} from "contracts/interfaces/ConsiderationEventsAndErrors.sol";
Expand Down
11 changes: 5 additions & 6 deletions reference/lib/ReferenceConsiderationStructs.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
OrderType,
ItemType
} from "contracts/lib/ConsiderationEnums.sol";
import { OrderType, ItemType } from "contracts/lib/ConsiderationEnums.sol";

import { SpentItem, ReceivedItem } from "contracts/lib/ConsiderationStructs.sol";
import {
SpentItem,
ReceivedItem
} from "contracts/lib/ConsiderationStructs.sol";

import { ConduitTransfer } from "contracts/conduit/lib/ConduitStructs.sol";

Expand Down
1 change: 0 additions & 1 deletion reference/lib/ReferenceCounterManager.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.7;

// prettier-ignore
import {
ConsiderationEventsAndErrors
} from "contracts/interfaces/ConsiderationEventsAndErrors.sol";
Expand Down
2 changes: 0 additions & 2 deletions reference/lib/ReferenceCriteriaResolution.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ pragma solidity ^0.8.7;

import { ItemType, Side } from "contracts/lib/ConsiderationEnums.sol";

// prettier-ignore
import {
OfferItem,
ConsiderationItem,
Expand All @@ -18,7 +17,6 @@ import { OrderToExecute } from "./ReferenceConsiderationStructs.sol";

import "contracts/lib/ConsiderationConstants.sol";

// prettier-ignore
import {
CriteriaResolutionErrors
} from "contracts/interfaces/CriteriaResolutionErrors.sol";
Expand Down
Loading

0 comments on commit f62c14f

Please sign in to comment.