Skip to content

Commit

Permalink
feat: relative import
Browse files Browse the repository at this point in the history
  • Loading branch information
dangerousfood committed Nov 20, 2023
1 parent b180bb2 commit e14598c
Show file tree
Hide file tree
Showing 20 changed files with 63 additions and 63 deletions.
6 changes: 3 additions & 3 deletions src/BNPLHelper.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {CaveatEnforcer} from "starport-core/enforcers/CaveatEnforcer.sol";
import {AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {CaveatEnforcer} from "./enforcers/CaveatEnforcer.sol";
import {AdditionalTransfer} from "./lib/StarportLib.sol";

import {Seaport} from "seaport/contracts/Seaport.sol";
import {
Expand Down
10 changes: 5 additions & 5 deletions src/Custodian.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {Pricing} from "starport-core/pricing/Pricing.sol";
import {Settlement} from "starport-core/settlement/Settlement.sol";
import {Status} from "starport-core/status/Status.sol";
import {StarportLib, Actions} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {Pricing} from "./pricing/Pricing.sol";
import {Settlement} from "./settlement/Settlement.sol";
import {Status} from "./status/Status.sol";
import {StarportLib, Actions} from "./lib/StarportLib.sol";

import {ContractOffererInterface} from "seaport-types/src/interfaces/ContractOffererInterface.sol";
import {ItemType, Schema, SpentItem, ReceivedItem} from "seaport-types/src/lib/ConsiderationStructs.sol";
Expand Down
12 changes: 6 additions & 6 deletions src/Starport.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@

pragma solidity ^0.8.17;

import {CaveatEnforcer} from "starport-core/enforcers/CaveatEnforcer.sol";
import {Custodian} from "starport-core/Custodian.sol";
import {PausableNonReentrant} from "starport-core/lib/PausableNonReentrant.sol";
import {Pricing} from "starport-core/pricing/Pricing.sol";
import {Settlement} from "starport-core/settlement/Settlement.sol";
import {StarportLib, AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {CaveatEnforcer} from "./enforcers/CaveatEnforcer.sol";
import {Custodian} from "./Custodian.sol";
import {PausableNonReentrant} from "./lib/PausableNonReentrant.sol";
import {Pricing} from "./pricing/Pricing.sol";
import {Settlement} from "./settlement/Settlement.sol";
import {StarportLib, AdditionalTransfer} from "./lib/StarportLib.sol";

import {SpentItem, ItemType} from "seaport-types/src/lib/ConsiderationStructs.sol";
import {ERC20} from "solady/src/tokens/ERC20.sol";
Expand Down
6 changes: 3 additions & 3 deletions src/enforcers/BorrowerEnforcer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {CaveatEnforcer} from "starport-core/enforcers/CaveatEnforcer.sol";
import {AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {CaveatEnforcer} from "./enforcers/CaveatEnforcer.sol";
import {AdditionalTransfer} from "./lib/StarportLib.sol";

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

Expand Down
6 changes: 3 additions & 3 deletions src/enforcers/BorrowerEnforcerBNPL.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {CaveatEnforcer} from "starport-core/enforcers/CaveatEnforcer.sol";
import {AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {CaveatEnforcer} from "./enforcers/CaveatEnforcer.sol";
import {AdditionalTransfer} from "./lib/StarportLib.sol";

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

Expand Down
4 changes: 2 additions & 2 deletions src/enforcers/CaveatEnforcer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {AdditionalTransfer} from "./lib/StarportLib.sol";

abstract contract CaveatEnforcer {
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
Expand Down
6 changes: 3 additions & 3 deletions src/enforcers/LenderEnforcer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {CaveatEnforcer} from "starport-core/enforcers/CaveatEnforcer.sol";
import {AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {CaveatEnforcer} from "./enforcers/CaveatEnforcer.sol";
import {AdditionalTransfer} from "./lib/StarportLib.sol";

contract LenderEnforcer is CaveatEnforcer {
error LenderOnlyEnforcer();
Expand Down
2 changes: 1 addition & 1 deletion src/lib/RefStarportLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {Starport} from "./Starport.sol";

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

Expand Down
2 changes: 1 addition & 1 deletion src/lib/StarportLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {Starport} from "./Starport.sol";

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

Expand Down
2 changes: 1 addition & 1 deletion src/lib/Validation.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {Starport} from "./Starport.sol";

abstract contract Validation {
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
Expand Down
4 changes: 2 additions & 2 deletions src/originators/Originator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {CaveatEnforcer} from "starport-core/enforcers/CaveatEnforcer.sol";
import {Starport} from "./Starport.sol";
import {CaveatEnforcer} from "./enforcers/CaveatEnforcer.sol";

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

Expand Down
8 changes: 4 additions & 4 deletions src/originators/StrategistOriginator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {CaveatEnforcer} from "starport-core/enforcers/CaveatEnforcer.sol";
import {Originator} from "starport-core/originators/Originator.sol";
import {AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {CaveatEnforcer} from "./enforcers/CaveatEnforcer.sol";
import {Originator} from "./originators/Originator.sol";
import {AdditionalTransfer} from "./lib/StarportLib.sol";

import {ConduitControllerInterface} from "seaport-types/src/interfaces/ConduitControllerInterface.sol";
import {ConduitInterface} from "seaport-types/src/interfaces/ConduitInterface.sol";
Expand Down
10 changes: 5 additions & 5 deletions src/pricing/BasePricing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {Pricing} from "starport-core/pricing/Pricing.sol";
import {Status} from "starport-core/status/Status.sol";
import {Validation} from "starport-core/lib/Validation.sol";
import {StarportLib} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {Pricing} from "./pricing/Pricing.sol";
import {Status} from "./status/Status.sol";
import {Validation} from "./lib/Validation.sol";
import {StarportLib} from "./lib/StarportLib.sol";

import {ReceivedItem} from "seaport-types/src/lib/ConsiderationStructs.sol";
import {SpentItem} from "seaport-types/src/lib/ConsiderationStructs.sol";
Expand Down
6 changes: 3 additions & 3 deletions src/pricing/Pricing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {Validation} from "starport-core/lib/Validation.sol";
import {Starport} from "./Starport.sol";
import {AdditionalTransfer} from "./lib/StarportLib.sol";
import {Validation} from "./lib/Validation.sol";

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

Expand Down
10 changes: 5 additions & 5 deletions src/pricing/SimpleInterestPricing.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {ReceivedItem, BasePricing} from "starport-core/pricing/BasePricing.sol";
import {Pricing} from "starport-core/pricing/Pricing.sol";
import {Validation} from "starport-core/lib/Validation.sol";
import {StarportLib, AdditionalTransfer} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {ReceivedItem, BasePricing} from "./pricing/BasePricing.sol";
import {Pricing} from "./pricing/Pricing.sol";
import {Validation} from "./lib/Validation.sol";
import {StarportLib, AdditionalTransfer} from "./lib/StarportLib.sol";

import {SpentItem, ReceivedItem} from "seaport-types/src/lib/ConsiderationStructs.sol";
import {FixedPointMathLib} from "solady/src/utils/FixedPointMathLib.sol";
Expand Down
8 changes: 4 additions & 4 deletions src/settlement/DutchAuctionSettlement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ import {
OrderParameters
} from "seaport-types/src/lib/ConsiderationStructs.sol";

import {Pricing} from "starport-core/pricing/Pricing.sol";
import {Pricing} from "./pricing/Pricing.sol";
import {AmountDeriver} from "seaport-core/src/lib/AmountDeriver.sol";
import {FixedPointMathLib} from "solady/src/utils/FixedPointMathLib.sol";
import {Starport, Settlement} from "starport-core/settlement/Settlement.sol";
import {Starport, Settlement} from "./settlement/Settlement.sol";

import {BasePricing} from "starport-core/pricing/BasePricing.sol";
import {Validation} from "starport-core/lib/Validation.sol";
import {BasePricing} from "./pricing/BasePricing.sol";
import {Validation} from "./lib/Validation.sol";

abstract contract DutchAuctionSettlement is Settlement, AmountDeriver {
using FixedPointMathLib for uint256;
Expand Down
10 changes: 5 additions & 5 deletions src/settlement/FixedTermDutchAuctionSettlement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {DutchAuctionSettlement} from "starport-core/settlement/DutchAuctionSettlement.sol";
import {FixedTermStatus} from "starport-core/status/FixedTermStatus.sol";
import {Settlement} from "starport-core/settlement/Settlement.sol";
import {StarportLib} from "starport-core/lib/StarportLib.sol";
import {Starport} from "./Starport.sol";
import {DutchAuctionSettlement} from "./settlement/DutchAuctionSettlement.sol";
import {FixedTermStatus} from "./status/FixedTermStatus.sol";
import {Settlement} from "./settlement/Settlement.sol";
import {StarportLib} from "./lib/StarportLib.sol";

import {FixedPointMathLib} from "solady/src/utils/FixedPointMathLib.sol";
import {SpentItem} from "seaport-types/src/lib/ConsiderationStructs.sol";
Expand Down
4 changes: 2 additions & 2 deletions src/settlement/Settlement.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {Validation} from "starport-core/lib/Validation.sol";
import {Starport} from "./Starport.sol";
import {Validation} from "./lib/Validation.sol";

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

Expand Down
6 changes: 3 additions & 3 deletions src/status/FixedTermStatus.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {Status} from "starport-core/status/Status.sol";
import {Validation} from "starport-core/lib/Validation.sol";
import {Starport} from "./Starport.sol";
import {Status} from "./status/Status.sol";
import {Validation} from "./lib/Validation.sol";

contract FixedTermStatus is Status {
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
Expand Down
4 changes: 2 additions & 2 deletions src/status/Status.sol
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@

pragma solidity ^0.8.17;

import {Starport} from "starport-core/Starport.sol";
import {Validation} from "starport-core/lib/Validation.sol";
import {Starport} from "./Starport.sol";
import {Validation} from "./lib/Validation.sol";

abstract contract Status is Validation {
/*´:°•.°+.*•´.*:˚.°*.˚•´.°:°•.°•.*•´.*:˚.°*.˚•´.°:°•.°+.*•´.*:*/
Expand Down

0 comments on commit e14598c

Please sign in to comment.