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

ProjectOpenSea / seadrop / 42316736493
89%
main: 81%

Build:
Build:
LAST BUILD BRANCH: ryan/agent-nft-extension
DEFAULT BRANCH: main
Ran 07 Nov 2026 12:17AM UTC
Jobs 1
Files 23
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

07 Nov 2026 12:11AM UTC coverage: 88.884% (+2.0%) from 86.835%
42316736493

push

github

web-flow
Add ERC-8451 locks to the SeaDrop v2 token contracts (#187)

## Motivation

SeaDrop v2 has no way to pause trading or make tokens non-transferable.
[ERC-8451](https://github.com/ethereum/ERCs/pull/2084) extends
[ERC-6982](https://eips.ethereum.org/EIPS/eip-6982) with a permanent
lock (`PermanentlyLocked()`, `permanentlyLocked()`), a standard revert
(`TokenLocked(uint256)`), ERC-1155 support, and rules for mints, burns,
and approvals while locked. OpenSea's indexer already reads
`DefaultLocked`, `Locked`, `PermanentlyLocked`, and the `TokenLocked`
revert for ERC-721 and ERC-1155, so collections deployed from this code
need no backend work.

Owners can already block every transfer by setting a transfer validator
that always reverts. This PR gives that power a standard signal that
marketplaces and wallets read, and makes it part of every v2 collection
rather than a separate contract. [The v1
PR](https://github.com/ProjectOpenSea/seadrop/pull/186) takes the other
route and adds an opt-in `ERC721SeaDropLockable`, because v1's
`ERC721SeaDrop` is the base that third-party contracts inherit.

## Solution

### Default contracts

`ERC721ContractMetadata`, `ERC1155ContractMetadata`, and
`ERC1155ContractMetadataCloneable` now inherit
`src/lib/ERC8451Lockable.sol`, so `ERC721SeaDrop`, `ERC1155SeaDrop`, and
clones from `ERC1155SeaDropCloneFactory` all support the lock. Their
constructors and the clone initializer don't change. Every new contract
starts unlocked and emits `DefaultLocked(false)` at deployment (from the
initializer, for clones), as ERC-6982 requires. The clone implementation
the factory deploys reports ERC-6982 support too, so its constructor
emits its own `DefaultLocked(false)`.

The owner gets three functions: `setDefaultLocked(bool)`,
`setTokensLocked(uint256[], bool)`, and `lockPermanently()`, plus the
`defaultLocked()`, `locked(uint256)`, and `permanentlyLocked()` views.
`supportsInterface` returns true for `0x9051c597` (ERC-8451) and
`0x6b61a747... (continued)

341 of 379 branches covered (89.97%)

Branch coverage included in aggregate %.

124 of 144 new or added lines in 6 files covered. (86.11%)

11 existing lines in 3 files now uncovered.

1498 of 1690 relevant lines covered (88.64%)

6680.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
85.71
src/lib/ERC8451Lockable.sol
3
89.62
-3.23% src/lib/ERC721ContractMetadata.sol
2
59.44
21.18% src/clones/ERC1155ContractMetadataCloneable.sol
2
93.66
-1.17% src/lib/ERC1155ContractMetadata.sol
1
80.0
src/extensions/ERC1155SeaDropLockable.sol
1
80.0
src/extensions/ERC721SeaDropLockable.sol

Coverage Regressions

Lines Coverage ∆ File
6
88.62
15.75% src/clones/ERC1155SeaDropContractOffererCloneable.sol
4
94.58
1.61% src/lib/ERC1155SeaDropContractOfferer.sol
1
66.67
0.0% src/lib/ERC1155SeaDropContractOffererStorage.sol
Jobs
ID Job ID Ran Files Coverage
1 foundry - 42316736493.1 07 Nov 2026 12:17AM UTC 23
88.88
GitHub Action Run
Source Files on build 42316736493
  • Tree
  • List 23
  • Changed 8
  • Source Changed 6
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #42316736493
  • 835b51ee on github
  • Prev Build on v2 (#42315438961)
  • Next Build on v2 (#42319286341)
  • 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