Copyright
Copyright is an ERC721 contract representing the underlying concept and right for the artwork. Metadata and Ruleset linked to Copyright. The owner have the right to change its ruleset, and have potential to build new programmable economic model for the artwork.
View Methods
totalSupply
function totalSupply() external view returns (uint256 amount)
Returns the amount of copyright in existence.
metadataOf
function metadataOf(uint256 tokenId) external view returns (IMetadata metadata, uint256 metadataId)
Returns the metadata address and the metadata id of the tokenId token.
creatorOf
function creatorOf(uint256 tokenId) external view returns (address creator)
Returns the creator address of the tokenId token.
rulesetOf
function rulesetOf(uint256 tokenId) external view returns (IRuleset ruleset)
Returns the ruleset address of the tokenId token.
getIngredients
function getIngredients(uint256 tokenId) external view returns (uint256[] memory ids, uint256[] memory amounts)
Returns id and amount of tokens that ara composed into the tokenId token.
exists
function exists(uint256 tokenId) external view returns (bool ok)
Returns true if the tokenId token has an owner.
search
function search(IMetadata metadata, uint256 metadataId) external view returns (uint256 tokenId)
Returns tokenId of the token whose metadata is defined by metadata and metadataId.
Write Methods
claim
function claim( address creator, IRuleset ruleset, IMetadata metadata, uint256 metadataId ) external
Mint copyright token.
waive
function waive(uint256 tokenId) external
Burn the tokenId copyright token.
updateRuleset
function updateRuleset(uint256 tokenId, IRuleset ruleset) external
update the ruleset address of the tokenId token
Last updated