|
Ran
|
Jobs
1
|
Files
57
|
Run time
1min
|
Badge
README BADGES
|
push
github
feat(v3): add standalone ERC-1155 token and start ERC-1155 ids at 1 (#240) ## Why OpenSea Studio will let Lab creators deploy a SeaDrop v3 ERC-1155 token directly while the clone factory isn't ready. Today `ERC1155SeaDropV3` can only be initialized by `factory`, which `SeaDropTokenV3Base` sets to the deployer of the implementation, so there is no safe way to deploy a usable token without the factory. Separately, v3 ERC-1155 token ids now start at 1, matching the SeaDrop ERC-721 convention, enforced in the contract. ## Deployment paths Both standards support direct deployment and EIP-1167 factory clones. The standalone contracts inherit their respective clone implementation and configure their state in the constructor. The shared base sets the owner and first minter. Only clone initialization checks the factory caller, and both standalone constructors reject a zero owner or minter. The standalone ERC-721 constructor takes `(address initialOwner, address minter, string name_, string symbol_, address conduit)`. ERC721A starts sequential token ids at 1. The ERC-1155 accepts any nonzero id and rejects id 0 in both per-id writes, including minting through the minter. ERC-721 stages and adapters can still use minter id 0. Factory clones register with the minter at creation. Standalone tokens can mint without registration. Their immutable `factory` getter returns the deployer. ## Bytecode for review Built with Foundry v1.9.0 and the repository's production compiler settings. Runtime hashes below use the compiler artifact with immutable words zeroed. Review implementation hash pins for both standards before redeploying a factory. The factory embeds the implementation creation code. | Contract | Creation bytes | Creation keccak256 (without arguments) | Runtime bytes | Runtime keccak256 (immutables zeroed) | | --- | ---: | --- | ---: | --- | | ERC721SeaDropV3 | 11420 | `0x6bca40768f7fabb2dfef6d4aea55f5142` | 11075 | `0x1b... (continued)
451 of 580 branches covered (77.76%)
Branch coverage included in aggregate %.
15 of 15 new or added lines in 5 files covered. (100.0%)
2546 of 2960 relevant lines covered (86.01%)
1528.6 hits per line
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | foundry - 44804042935.1 | 57 |
84.66
|
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|