Skip to content

Commit

Permalink
Merge branch 'main' into transfer-helper-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Jul 6, 2022
2 parents a2afe34 + c30dd90 commit 5fe181d
Show file tree
Hide file tree
Showing 73 changed files with 583 additions and 361 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Consideration Test CI
name: Seaport Test CI

on: [push, pull_request]

Expand Down Expand Up @@ -150,10 +150,10 @@ jobs:
- run: yarn install
- run: yarn build
- run: yarn coverage
- uses: VeryGoodOpenSource/very_good_coverage@v1
- uses: codecov/codecov-action@v3
with:
path: "./coverage/lcov.info"
min_coverage: 100
files: ./coverage/lcov.info
flags: production

reference-coverage:
name: Run Reference Coverage Tests
Expand All @@ -177,7 +177,7 @@ jobs:
- run: yarn build
- run: yarn build:ref
- run: yarn coverage:ref
- uses: VeryGoodOpenSource/very_good_coverage@v1
- uses: codecov/codecov-action@v3
with:
path: "./coverage/lcov.info"
min_coverage: 100
files: ./coverage/lcov.info
flags: reference
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
36 changes: 34 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
![Seaport](img/Seaport-banner.png)

[![Version][version-badge]][version-link]
[![Test CI][ci-badge]][ci-link]
[![Code Coverage][coverage-badge]][coverage-link]
[![License][license-badge]][license-link]
[![Docs][docs-badge]][docs-link]
[![Discussions][discussions-badge]][discussions-link]

# Seaport

Seaport is a new marketplace protocol for safely and efficiently buying and selling NFTs.
Expand Down Expand Up @@ -52,11 +59,23 @@ See the [documentation](docs/SeaportDocumentation.md), the [interface](contracts
<tr><td>Optimistic Kovan</td></tr>
<tr><td>Arbitrum</td></tr>
<tr><td>Arbitrum Rinkeby</td></tr>
<tr><td>Avalanche Fuji</td></tr>
<tr><td>Avalanche C-Chain</td></tr>
<tr><td>Gnosis Chain</td></tr>
<tr><td>Klaytn</td></tr>
<tr><td>Baobab</td></tr>
</table>

To be deployed on other EVM chains, such as:

- Klaytn
- Baobab
- Skale
- Celo
- BSC
- Fantom
- RSK

To deploy to a new EVM chain, follow the [steps outlined here](docs/Deployment.md).

## Diagram

```mermaid
Expand Down Expand Up @@ -223,3 +242,16 @@ When making a pull request, ensure that:
## License

[MIT](LICENSE) Copyright 2022 Ozone Networks, Inc.

[version-badge]: https://img.shields.io/github/package-json/v/ProjectOpenSea/seaport
[version-link]: https://github.com/ProjectOpenSea/seaport/releases
[ci-badge]: https://github.com/ProjectOpenSea/seaport/actions/workflows/test.yml/badge.svg
[ci-link]: https://github.com/ProjectOpenSea/seaport/actions/workflows/test.yml
[coverage-badge]: https://codecov.io/gh/ProjectOpenSea/seaport/branch/main/graph/badge.svg
[coverage-link]: https://codecov.io/gh/ProjectOpenSea/seaport
[license-badge]: https://img.shields.io/github/license/ProjectOpenSea/seaport
[license-link]: https://github.com/ProjectOpenSea/seaport/blob/main/LICENSE
[docs-badge]: https://img.shields.io/badge/Seaport-documentation-informational
[docs-link]: https://github.com/ProjectOpenSea/seaport/tree/main/docs
[discussions-badge]: https://img.shields.io/badge/Seaport-discussions-blueviolet
[discussions-link]: https://github.com/ProjectOpenSea/seaport/discussions
11 changes: 11 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
coverage:
range: 100..100
round: down
precision: 2
status:
project:
default:
target: auto
threshold: 0%
base: auto
if_ci_failed: error
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 @@ -12,7 +12,6 @@ import {

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

// prettier-ignore
import {
ConduitControllerInterface
} from "../interfaces/ConduitControllerInterface.sol";
Expand All @@ -21,7 +20,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
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
"resolutions": {
"async": ">=2.6.4",
"cross-fetch": ">=3.1.5",
"got": ">=11.8.5",
"lodash": ">=4.17.21",
"node-fetch": ">=2.6.7",
"underscore": ">=1.12.1",
"undici": ">=5.5.1",
"yargs-parser": ">=5.0.1"
},
"scripts": {
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
Loading

0 comments on commit 5fe181d

Please sign in to comment.