Skip to main content

CTProjectOwner

Git Source

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

NameTypeDescription
permissionsIJBPermissionsThe contract where operator permissions are stored.
projectsIJBProjectsThe contract from which project are minted.
publisherICTPublisherThe 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);