JBProjects
Inherits: ERC721, Ownable, IJBProjects
Stores project ownership and metadata.
Projects are represented as ERC-721s.
State Variables
count
The number of projects that have been created using this contract.
The count is incremented with each new project created.
The resulting ERC-721 token ID for each project is the newly incremented count value.
uint256 public override count;
tokenUriResolver
The contract resolving each project ID to its ERC721 URI.
IJBTokenUriResolver public override tokenUriResolver;
Functions
constructor
constructor(address owner, address feeProjectOwner) ERC721("Juicebox Projects", "JUICEBOX") Ownable(owner);
Parameters
Name | Type | Description |
---|---|---|
owner | address | The owner of the contract who can set metadata. |
feeProjectOwner | address | The address that will receive the fee-project. If address(0) the fee-project will not be minted. |
supportsInterface
Indicates whether this contract adheres to the specified interface.
See IERC165-supportsInterface.
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool);