CTProjectOwner
Inherits: IERC721Receiver, ICTProjectOwner
A contract that can be sent a project to be burned, while still allowing croptop posts.
State Variables
PERMISSIONS
The contract where operator permissions are stored.
IJBPermissions public immutable override PERMISSIONS;
PROJECTS
The contract from which project are minted.
IJBProjects public immutable override PROJECTS;
PUBLISHER
The Croptop publisher.
ICTPublisher public immutable override PUBLISHER;
Functions
constructor
constructor(IJBPermissions permissions, IJBProjects projects, ICTPublisher publisher);
Parameters
Name | Type | Description |
---|---|---|
permissions | IJBPermissions | The contract where operator permissions are stored. |
projects | IJBProjects | The contract from which project are minted. |
publisher | ICTPublisher | The Croptop publisher. |
onERC721Received
Give the croptop publisher permission to post to the project on this contract's behalf.
Make sure to first configure certain posts before sending this contract ownership.
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
)
external
override
returns (bytes4);