Access control
Every state-changing function in the Surface contracts and who may call it. Generated from the per-contract references; the per-function pages carry the full behavior.
Surface
| Function | Access |
|---|---|
mintTo |
minter-only (msg.sender must be an authorized minter, else NotMinter) |
burn |
owner-or-approved on the sequential form, minter-only on the pooled form (else NotAuthorized) |
setRenderer |
owner or admin (onlyOwnerOrAdmin, else NotAuthorized) |
setRoyalty |
owner or admin (onlyOwnerOrAdmin, else NotAuthorized) |
setSupplyCap |
owner or admin (onlyOwnerOrAdmin, else NotAuthorized) |
setCreators |
owner or admin (onlyOwnerOrAdmin, else NotAuthorized) |
setMinter |
owner-only on the pooled form; owner or admin on the sequential form (else NotAuthorized) |
setPrimaryMinter |
owner or admin (onlyOwnerOrAdmin, else NotAuthorized) |
lockRenderer |
owner or admin (onlyOwnerOrAdmin, else NotAuthorized) |
lockSupply |
owner or admin (onlyOwnerOrAdmin, else NotAuthorized) |
lockMinter |
owner-only on the pooled form; owner or admin on the sequential form (else NotAuthorized) |
addAdmin |
owner-only (onlyOwner, else OwnableUnauthorizedAccount) |
removeAdmin |
owner, or the admin itself (else NotAuthorized) |
notifyMetadataUpdate |
the current renderer, or owner/admin (else NotAuthorized) |
rescueStrayETH |
owner or admin (onlyOwnerOrAdmin, else NotAuthorized) |
initialize |
deployer one-shot (initializer, else InvalidInitialization) |
transferOwnership |
owner-only (onlyOwner, else OwnableUnauthorizedAccount) |
acceptOwnership |
pending-owner-only (else OwnableUnauthorizedAccount) |
renounceOwnership |
owner-only (onlyOwner, else OwnableUnauthorizedAccount) |
approve |
owner-or-operator-only (standard ERC721 approval authority, else an ERC721 revert) |
setApprovalForAll |
permissionless (the caller sets its own operator approval) |
transferFrom |
owner-or-approved-only (standard ERC721 transfer authority, else ERC721InsufficientApproval) |
safeTransferFrom(address, address, uint256) |
owner-or-approved-only (standard ERC721 transfer authority, else ERC721InsufficientApproval) |
safeTransferFrom(address, address, uint256, bytes) |
owner-or-approved-only (standard ERC721 transfer authority, else ERC721InsufficientApproval) |
SurfaceFactory
| Function | Access |
|---|---|
createSurface |
permissionless (anyone may deploy; control belongs to the owner argument) |
createSurfaceCustom |
permissionless (control belongs to the owner argument) |
createPooledSurface |
permissionless (control belongs to the owner argument) |
deprecate |
deployer-only (msg.sender must be the factory deployer, else NotDeployer) |
setPaused |
deployer-only (msg.sender must be the factory deployer, else NotDeployer) |
FixedPriceMinter
| Function | Access |
|---|---|
mint(address, uint256, address, bytes) |
permissionless (payable; window, ceiling, gate, and payment checks apply) |
mint(uint256) |
permissionless (payable; window, ceiling, gate, and payment checks apply) |
withdraw |
permissionless (funds go only to account) |
setPrice |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
setPriceStrategy |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
setMintWindow |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
setPayoutRecipient |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
setMaxMints |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
setAllowlistRoot |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
setWalletCap |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
setReferralShareBps |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
rescueStrayETH |
collection owner or admin (onlyCollectionOwnerOrAdmin, else NotAuthorized) |
initialize |
deployer one-shot (initializer, else InvalidInitialization) |
SurfaceV2
| Function | Access |
|---|---|
mintTo |
minter-only (msg.sender == minter, else NotMinter) |
burn |
permissionless (holder or approved, else ERC721InsufficientApproval) |
setMinter |
owner-only (OwnableUnauthorizedAccount) |
setRenderer |
owner-only (OwnableUnauthorizedAccount) |
setSupplyCap |
owner-only (OwnableUnauthorizedAccount) |
setRoyalty |
owner-only (OwnableUnauthorizedAccount) |
setName |
owner-only (OwnableUnauthorizedAccount) |
notifyMetadataUpdate |
owner-only or the renderer (NotAuthorized) |
initialize |
deployer one-shot (initializer, else InvalidInitialization) |
renounceOwnership |
owner-only (OwnableUnauthorizedAccount) |
transferOwnership |
owner-only (OwnableUnauthorizedAccount) |
approve |
permissionless (holder or operator, standard ERC721) |
setApprovalForAll |
permissionless (standard ERC721) |
transferFrom |
owner-or-approved-only (standard ERC721 transfer authority, else ERC721InsufficientApproval) |
safeTransferFrom(address, address, uint256) |
owner-or-approved-only (standard ERC721 transfer authority, else ERC721InsufficientApproval) |
safeTransferFrom(address, address, uint256, bytes) |
owner-or-approved-only (standard ERC721 transfer authority, else ERC721InsufficientApproval) |
FixedPriceSale
| Function | Access |
|---|---|
mint |
permissionless (the mint checks above) |
mintWithReferral |
permissionless (the mint checks above) |
withdraw |
permissionless (funds go only to account) |
withdrawTo |
permissionless (the caller's own balance only) |
setPrice |
owner-only (the collection's owner, borrowed; NotAuthorized) |
setMintWindow |
owner-only (the collection's owner, borrowed; NotAuthorized) |
setMaxMints |
owner-only (the collection's owner, borrowed; NotAuthorized) |
setWalletCap |
owner-only (the collection's owner, borrowed; NotAuthorized) |
setPayoutRecipient |
owner-only (the collection's owner, borrowed; NotAuthorized) |
setGate |
owner-only (the collection's owner, borrowed; NotAuthorized) |
close |
owner-only (the collection's owner, borrowed; NotAuthorized) |
initialize |
deployer one-shot (initializer, else InvalidInitialization); the collection already names this clone as its minter, or the caller is the collection's owner (NotAuthorized) |
AllowlistGate
| Function | Access |
|---|---|
setRoot |
owner-only (the collection's owner, borrowed; NotAuthorized) |
CloneFactory
| Function | Access |
|---|---|
create |
permissionless (reverts FactoryPaused, FactoryDeprecated or NotInitializer) |
createDeterministic |
permissionless (reverts FactoryPaused, FactoryDeprecated or NotInitializer) |
setPaused |
deployer-only (NotDeployer) |
deprecate |
deployer-only (NotDeployer); one-way (AlreadyDeprecated) |
Launcher
| Function | Access |
|---|---|
launch |
permissionless (reverts when either factory is paused or deprecated) |
setDefaultReferrer |
owner-only (OwnableUnauthorizedAccount) |
transferOwnership |
owner-only (OwnableUnauthorizedAccount) |
renounceOwnership |
owner-only (OwnableUnauthorizedAccount) |