Skip to content

Commit

Permalink
Merge pull request #1 from ProjectOpenSea/no-remapping
Browse files Browse the repository at this point in the history
remove src remappings
  • Loading branch information
0age authored May 11, 2023
2 parents ef79c4b + c0deac1 commit bd1c246
Show file tree
Hide file tree
Showing 26 changed files with 99 additions and 99 deletions.
2 changes: 1 addition & 1 deletion foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
src = "src"
out = "out"
libs = ["lib"]
remappings = ['seaport-types/=lib/seaport-types/src/']
remappings = ['seaport-types/=lib/seaport-types/']

# See more config options https://github.com/foundry-rs/foundry/tree/master/config
8 changes: 4 additions & 4 deletions src/conduit/Conduit.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {ConduitInterface} from "seaport-types/interfaces/ConduitInterface.sol";
import {ConduitInterface} from "seaport-types/src/interfaces/ConduitInterface.sol";

import {ConduitItemType} from "seaport-types/conduit/lib/ConduitEnums.sol";
import {ConduitItemType} from "seaport-types/src/conduit/lib/ConduitEnums.sol";

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

import {ConduitBatch1155Transfer, ConduitTransfer} from "seaport-types/conduit/lib/ConduitStructs.sol";
import {ConduitBatch1155Transfer, ConduitTransfer} from "seaport-types/src/conduit/lib/ConduitStructs.sol";

import {
ChannelClosed_channel_ptr,
Expand All @@ -17,7 +17,7 @@ import {
ChannelKey_channel_ptr,
ChannelKey_length,
ChannelKey_slot_ptr
} from "seaport-types/conduit/lib/ConduitConstants.sol";
} from "seaport-types/src/conduit/lib/ConduitConstants.sol";

/**
* @title Conduit
Expand Down
4 changes: 2 additions & 2 deletions src/conduit/ConduitController.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {ConduitControllerInterface} from "seaport-types/interfaces/ConduitControllerInterface.sol";
import {ConduitControllerInterface} from "seaport-types/src/interfaces/ConduitControllerInterface.sol";

import {ConduitInterface} from "seaport-types/interfaces/ConduitInterface.sol";
import {ConduitInterface} from "seaport-types/src/interfaces/ConduitInterface.sol";

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

Expand Down
6 changes: 3 additions & 3 deletions src/helpers/SeaportRouter.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {SeaportRouterInterface} from "seaport-types/interfaces/SeaportRouterInterface.sol";
import {SeaportRouterInterface} from "seaport-types/src/interfaces/SeaportRouterInterface.sol";

import {SeaportInterface} from "seaport-types/interfaces/SeaportInterface.sol";
import {SeaportInterface} from "seaport-types/src/interfaces/SeaportInterface.sol";

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

Expand All @@ -12,7 +12,7 @@ import {
CriteriaResolver,
Execution,
FulfillmentComponent
} from "seaport-types/lib/ConsiderationStructs.sol";
} from "seaport-types/src/lib/ConsiderationStructs.sol";

/**
* @title SeaportRouter
Expand Down
16 changes: 8 additions & 8 deletions src/helpers/TransferHelper.sol
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IERC721Receiver} from "seaport-types/interfaces/IERC721Receiver.sol";
import {IERC721Receiver} from "seaport-types/src/interfaces/IERC721Receiver.sol";

import {TransferHelperItem, TransferHelperItemsWithRecipient} from "seaport-types/helpers/TransferHelperStructs.sol";
import {TransferHelperItem, TransferHelperItemsWithRecipient} from "seaport-types/src/helpers/TransferHelperStructs.sol";

import {ConduitItemType} from "seaport-types/conduit/lib/ConduitEnums.sol";
import {ConduitItemType} from "seaport-types/src/conduit/lib/ConduitEnums.sol";

import {ConduitInterface} from "seaport-types/interfaces/ConduitInterface.sol";
import {ConduitInterface} from "seaport-types/src/interfaces/ConduitInterface.sol";

import {ConduitControllerInterface} from "seaport-types/interfaces/ConduitControllerInterface.sol";
import {ConduitControllerInterface} from "seaport-types/src/interfaces/ConduitControllerInterface.sol";

import {ConduitTransfer} from "seaport-types/conduit/lib/ConduitStructs.sol";
import {ConduitTransfer} from "seaport-types/src/conduit/lib/ConduitStructs.sol";

import {TransferHelperInterface} from "seaport-types/interfaces/TransferHelperInterface.sol";
import {TransferHelperInterface} from "seaport-types/src/interfaces/TransferHelperInterface.sol";

import {TransferHelperErrors} from "seaport-types/interfaces/TransferHelperErrors.sol";
import {TransferHelperErrors} from "seaport-types/src/interfaces/TransferHelperErrors.sol";

/**
* @title TransferHelper
Expand Down
4 changes: 2 additions & 2 deletions src/lib/AmountDeriver.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {AmountDerivationErrors} from "seaport-types/interfaces/AmountDerivationErrors.sol";
import {AmountDerivationErrors} from "seaport-types/src/interfaces/AmountDerivationErrors.sol";

import {
Error_selector_offset,
InexactFraction_error_length,
InexactFraction_error_selector
} from "seaport-types/lib/ConsiderationErrorConstants.sol";
} from "seaport-types/src/lib/ConsiderationErrorConstants.sol";

/**
* @title AmountDeriver
Expand Down
10 changes: 5 additions & 5 deletions src/lib/Assertions.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {OrderParameters} from "seaport-types/lib/ConsiderationStructs.sol";
import {OrderParameters} from "seaport-types/src/lib/ConsiderationStructs.sol";

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

import {TokenTransferrerErrors} from "seaport-types/interfaces/TokenTransferrerErrors.sol";
import {TokenTransferrerErrors} from "seaport-types/src/interfaces/TokenTransferrerErrors.sol";

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

Expand All @@ -25,18 +25,18 @@ import {
BasicOrder_signature_cdPtr,
BasicOrder_signature_ptr,
BasicOrder_zone_cdPtr
} from "seaport-types/lib/ConsiderationConstants.sol";
} from "seaport-types/src/lib/ConsiderationConstants.sol";

import {
Error_selector_offset,
MissingItemAmount_error_length,
MissingItemAmount_error_selector
} from "seaport-types/lib/ConsiderationErrorConstants.sol";
} from "seaport-types/src/lib/ConsiderationErrorConstants.sol";

import {
_revertInvalidBasicOrderParameterEncoding,
_revertMissingOriginalConsiderationItems
} from "seaport-types/lib/ConsiderationErrors.sol";
} from "seaport-types/src/lib/ConsiderationErrors.sol";

/**
* @title Assertions
Expand Down
10 changes: 5 additions & 5 deletions src/lib/BasicOrderFulfiller.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {BasicOrderRouteType, ItemType, OrderType} from "seaport-types/lib/ConsiderationEnums.sol";
import {BasicOrderRouteType, ItemType, OrderType} from "seaport-types/src/lib/ConsiderationEnums.sol";

import {BasicOrderParameters} from "seaport-types/lib/ConsiderationStructs.sol";
import {BasicOrderParameters} from "seaport-types/src/lib/ConsiderationStructs.sol";

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

Expand All @@ -12,7 +12,7 @@ import {
_revertInvalidMsgValue,
_revertInvalidERC721TransferAmount,
_revertUnusedItemParameters
} from "seaport-types/lib/ConsiderationErrors.sol";
} from "seaport-types/src/lib/ConsiderationErrors.sol";

import {
AccumulatorDisarmed,
Expand Down Expand Up @@ -93,7 +93,7 @@ import {
ThreeWords,
TwoWords,
ZeroSlot
} from "seaport-types/lib/ConsiderationConstants.sol";
} from "seaport-types/src/lib/ConsiderationConstants.sol";

import {
Error_selector_offset,
Expand All @@ -107,7 +107,7 @@ import {
MissingOriginalConsiderationItems_error_selector,
UnusedItemParameters_error_length,
UnusedItemParameters_error_selector
} from "seaport-types/lib/ConsiderationErrorConstants.sol";
} from "seaport-types/src/lib/ConsiderationErrorConstants.sol";

/**
* @title BasicOrderFulfiller
Expand Down
8 changes: 4 additions & 4 deletions src/lib/Consideration.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {ConsiderationInterface} from "seaport-types/interfaces/ConsiderationInterface.sol";
import {ConsiderationInterface} from "seaport-types/src/interfaces/ConsiderationInterface.sol";

import {
AdvancedOrder,
Expand All @@ -12,11 +12,11 @@ import {
FulfillmentComponent,
Order,
OrderComponents
} from "seaport-types/lib/ConsiderationStructs.sol";
} from "seaport-types/src/lib/ConsiderationStructs.sol";

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

import {CalldataStart, CalldataPointer} from "seaport-types/helpers/PointerLibraries.sol";
import {CalldataStart, CalldataPointer} from "seaport-types/src/helpers/PointerLibraries.sol";

import {
Offset_fulfillAdvancedOrder_criteriaResolvers,
Expand All @@ -29,7 +29,7 @@ import {
Offset_matchAdvancedOrders_fulfillments,
Offset_matchOrders_fulfillments,
OrderParameters_counter_offset
} from "seaport-types/lib/ConsiderationConstants.sol";
} from "seaport-types/src/lib/ConsiderationConstants.sol";

/**
* @title Consideration
Expand Down
6 changes: 3 additions & 3 deletions src/lib/ConsiderationBase.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {ConduitControllerInterface} from "seaport-types/interfaces/ConduitControllerInterface.sol";
import {ConduitControllerInterface} from "seaport-types/src/interfaces/ConduitControllerInterface.sol";

import {ConsiderationEventsAndErrors} from "seaport-types/interfaces/ConsiderationEventsAndErrors.sol";
import {ConsiderationEventsAndErrors} from "seaport-types/src/interfaces/ConsiderationEventsAndErrors.sol";

import {
BulkOrder_Typehash_Height_One,
Expand Down Expand Up @@ -42,7 +42,7 @@ import {
Slot0x80,
ThreeWords,
ZeroSlot
} from "seaport-types/lib/ConsiderationConstants.sol";
} from "seaport-types/src/lib/ConsiderationConstants.sol";

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

Expand Down
6 changes: 3 additions & 3 deletions src/lib/ConsiderationDecoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
Order,
OrderParameters,
ReceivedItem
} from "seaport-types/lib/ConsiderationStructs.sol";
} from "seaport-types/src/lib/ConsiderationStructs.sol";

import {
AdvancedOrder_denominator_offset,
Expand Down Expand Up @@ -54,9 +54,9 @@ import {
SpentItem_size,
ThirtyOneBytes,
TwoWords
} from "seaport-types/lib/ConsiderationConstants.sol";
} from "seaport-types/src/lib/ConsiderationConstants.sol";

import {CalldataPointer, malloc, MemoryPointer, OffsetOrLengthMask} from "seaport-types/helpers/PointerLibraries.sol";
import {CalldataPointer, malloc, MemoryPointer, OffsetOrLengthMask} from "seaport-types/src/helpers/PointerLibraries.sol";

contract ConsiderationDecoder {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/lib/ConsiderationEncoder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ import {
ZoneParameters_selectorAndPointer_length,
ZoneParameters_startTime_offset,
ZoneParameters_zoneHash_offset
} from "seaport-types/lib/ConsiderationConstants.sol";
} from "seaport-types/src/lib/ConsiderationConstants.sol";

import {BasicOrderParameters, OrderParameters} from "seaport-types/lib/ConsiderationStructs.sol";
import {BasicOrderParameters, OrderParameters} from "seaport-types/src/lib/ConsiderationStructs.sol";

import {CalldataPointer, getFreeMemoryPointer, MemoryPointer} from "seaport-types/helpers/PointerLibraries.sol";
import {CalldataPointer, getFreeMemoryPointer, MemoryPointer} from "seaport-types/src/helpers/PointerLibraries.sol";

contract ConsiderationEncoder {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/lib/CounterManager.sol
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {ConsiderationEventsAndErrors} from "seaport-types/interfaces/ConsiderationEventsAndErrors.sol";
import {ConsiderationEventsAndErrors} from "seaport-types/src/interfaces/ConsiderationEventsAndErrors.sol";

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

import {Counter_blockhash_shift, OneWord, TwoWords} from "seaport-types/lib/ConsiderationConstants.sol";
import {Counter_blockhash_shift, OneWord, TwoWords} from "seaport-types/src/lib/ConsiderationConstants.sol";

/**
* @title CounterManager
Expand Down
12 changes: 6 additions & 6 deletions src/lib/CriteriaResolution.sol
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {ItemType, Side} from "seaport-types/lib/ConsiderationEnums.sol";
import {ItemType, Side} from "seaport-types/src/lib/ConsiderationEnums.sol";

import {
AdvancedOrder,
CriteriaResolver,
MemoryPointer,
OfferItem,
OrderParameters
} from "seaport-types/lib/ConsiderationStructs.sol";
} from "seaport-types/src/lib/ConsiderationStructs.sol";

import {
_revertCriteriaNotEnabledForItem,
_revertInvalidProof,
_revertOrderCriteriaResolverOutOfRange,
_revertUnresolvedConsiderationCriteria,
_revertUnresolvedOfferCriteria
} from "seaport-types/lib/ConsiderationErrors.sol";
} from "seaport-types/src/lib/ConsiderationErrors.sol";

import {CriteriaResolutionErrors} from "seaport-types/interfaces/CriteriaResolutionErrors.sol";
import {CriteriaResolutionErrors} from "seaport-types/src/interfaces/CriteriaResolutionErrors.sol";

import {
OneWord,
OneWordShift,
OrderParameters_consideration_head_offset,
Selector_length,
TwoWords
} from "seaport-types/lib/ConsiderationConstants.sol";
} from "seaport-types/src/lib/ConsiderationConstants.sol";

import {
ConsiderationCriteriaResolverOutOfRange_err_selector,
Error_selector_offset,
OfferCriteriaResolverOutOfRange_error_selector
} from "seaport-types/lib/ConsiderationErrorConstants.sol";
} from "seaport-types/src/lib/ConsiderationErrorConstants.sol";

/**
* @title CriteriaResolution
Expand Down
14 changes: 7 additions & 7 deletions src/lib/Executor.sol
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import {ConduitInterface} from "seaport-types/interfaces/ConduitInterface.sol";
import {ConduitInterface} from "seaport-types/src/interfaces/ConduitInterface.sol";

import {ConduitItemType} from "seaport-types/conduit/lib/ConduitEnums.sol";
import {ConduitItemType} from "seaport-types/src/conduit/lib/ConduitEnums.sol";

import {ItemType} from "seaport-types/lib/ConsiderationEnums.sol";
import {ItemType} from "seaport-types/src/lib/ConsiderationEnums.sol";

import {ReceivedItem} from "seaport-types/lib/ConsiderationStructs.sol";
import {ReceivedItem} from "seaport-types/src/lib/ConsiderationStructs.sol";

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

Expand All @@ -31,22 +31,22 @@ import {
FreeMemoryPointerSlot,
OneWord,
TwoWords
} from "seaport-types/lib/ConsiderationConstants.sol";
} from "seaport-types/src/lib/ConsiderationConstants.sol";

import {
Error_selector_offset,
NativeTokenTransferGenericFailure_error_account_ptr,
NativeTokenTransferGenericFailure_error_amount_ptr,
NativeTokenTransferGenericFailure_error_length,
NativeTokenTransferGenericFailure_error_selector
} from "seaport-types/lib/ConsiderationErrorConstants.sol";
} from "seaport-types/src/lib/ConsiderationErrorConstants.sol";

import {
_revertInvalidCallToConduit,
_revertInvalidConduit,
_revertInvalidERC721TransferAmount,
_revertUnusedItemParameters
} from "seaport-types/lib/ConsiderationErrors.sol";
} from "seaport-types/src/lib/ConsiderationErrors.sol";

/**
* @title Executor
Expand Down
Loading

0 comments on commit bd1c246

Please sign in to comment.