跳到主要内容

IJBProjects

Code

https://github.com/jbx-protocol/juice-contracts-v3/blob/main/contracts/interfaces/IJBProjects.sol

Definition

interface IJBProjects is IERC721 {
event Create(
uint256 indexed projectId,
address indexed owner,
JBProjectMetadata metadata,
address caller
);

event SetMetadata(uint256 indexed projectId, JBProjectMetadata metadata, address caller);

event SetTokenUriResolver(IJBTokenUriResolver indexed resolver, address caller);

function count() external view returns (uint256);

function metadataContentOf(uint256 _projectId, uint256 _domain)
external
view
returns (string memory);

function tokenUriResolver() external view returns (IJBTokenUriResolver);

function createFor(address _owner, JBProjectMetadata calldata _metadata)
external
returns (uint256 projectId);

function setMetadataOf(uint256 _projectId, JBProjectMetadata calldata _metadata) external;

function setTokenUriResolver(IJBTokenUriResolver _newResolver) external;
}