ERC721DataManager
Contract for managing ERC721 token using a Non Fungible Fractions Data Object
This contract is used to manage an ERC721 token where a Data Object contract is used to store the token data This contract MUST be approved to interact to the data point associated with the non fungible fractions data object
WrongParameters
Error thrown when the parameters are wrong
_datapoint
The Data Point identifier for the Non Fungible Fractions Data Object
nonFungibleTokenDO
The Non Fungible Fractions Data Object
dataIndex
The Data Index implementation
constructor
supportsInterface
_Returns true if this contract implements the interface defined by
interfaceId
. See the corresponding
https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
to learn more about how these ids are created.
This function call must use less than 30 000 gas._
setTokenURI
Set the URI for a token id
Parameters
Name | Type | Description |
---|---|---|
tokenId | uint256 | The token id |
_tokenURI | string | The URI to set |
setBaseURI
Set the base URI for all token ids
Parameters
Name | Type | Description |
---|---|---|
_baseURI | string | The base URI to set |
balanceOf
Returns the number of tokens in owner
's account.
ownerOf
_Returns the owner of the tokenId
token.
Requirements:
tokenId
must exist._
_checkMinter
SHOULD throw an error if the sender is not allowed to mint