• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ProjectOpenSea / seadrop / 44152543036
86%

Build:
DEFAULT BRANCH: main
Ran 17 Nov 2026 06:53PM UTC
Jobs 1
Files 34
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Nov 2026 06:52PM UTC coverage: 81.493% (+0.07%) from 81.428%
44152543036

push

github

web-flow
Add SeaDrop adapters for existing ERC-721 contracts (#234)

## Summary

SeaDrop mints by calling `mintSeaDrop` on the token contract, so an
ERC-721 deployed without SeaDrop support can't run an OpenSea drop
today. This adds adapters that SeaDrop treats as the drop's token
contract. Each adapter delivers the mint on the existing contract (the
target).

- `ERC721SeaDropAdapter` (abstract) holds the SeaDrop surface: the
allowed SeaDrop list, owner-only drop config forwarded to SeaDrop, a max
supply for this drop, `getMintStats` counted over this drop only, and
Studio-compatible `multiConfigure`. Subclasses implement `_deliver`.
- `ERC721SeaDropMintAdapter` calls a target mint function shaped
`(address to, uint256 quantity)`, chosen by selector, after the target's
owner grants the adapter the right to call it. It checks that the
minter's balance rose by exactly `quantity`. A selector whose second
argument is a token ID therefore reverts with `UnexpectedMintCount` and
never mints the wrong count.
- `ERC721SeaDropTransferAdapter` is for targets where only the owner can
mint. The owner mints tokens to the adapter, or sends them with
`safeTransferFrom`. The adapter queues only tokens that come from the
owner and hands them out in the order they arrived. `withdraw` returns
unsold tokens, and `rescue` returns tokens that were never queued.

Metadata and royalties stay on the target. `setBaseURI` and
`setRoyaltyInfo` revert, and the royalty getters read the target's
EIP-2981 values.

The constructor emits `SeaDropTokenDeployed` and
`SeaDropShimDeployed(address indexed tokenContract)`. OpenSea uses the
second event to show the drop on the target's collection.


[docs/ExistingContractAdapters.md](https://github.com/ProjectOpenSea/seadrop/blob/mint-adapter/docs/ExistingContractAdapters.md)
explains how to pick an adapter, lists the deploy and configure steps,
and says what stays on the target.

## Testing

`test/foundry/ERC721SeaDropAdapter.t.sol` has 22 tests. The... (continued)

219 of 304 branches covered (72.04%)

Branch coverage included in aggregate %.

211 of 251 new or added lines in 3 files covered. (84.06%)

1419 of 1706 relevant lines covered (83.18%)

1971.53 hits per line

Uncovered Changes

Lines Coverage ∆ File
40
75.0
src/adapters/ERC721SeaDropAdapter.sol
Jobs
ID Job ID Ran Files Coverage
1 foundry - 44152543036.1 17 Nov 2026 06:53PM UTC 34
81.49
GitHub Action Run
Source Files on build 44152543036
  • Tree
  • List 34
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44152543036
  • 3ddc9001 on github
  • Prev Build on main (#42914559834)
  • Next Build on main (#44153525429)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc