ERC1155DataManager
Contract for managing ERC1155 token using a Fungible Fractions Data Object
This contract is used to manage an ERC1155 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 fungible fractions data object
WrongParameters
Error thrown when the parameters are wrong
_datapoint
The Data Point identifier for the Fungible Fractions Data Object
fungibleFractionsDO
The 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._
setURI
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 |
setDefaultURI
Set the default URI for all token ids
Parameters
Name | Type | Description |
---|---|---|
defaultURI | string | The default URI to set |
totalSupply
Returns the total supply of all tokens
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The total supply |
totalSupply
Returns the total supply of a specific token id
Parameters
Name | Type | Description |
---|---|---|
id | uint256 | The token id |
Return Values
Name | Type | Description |
---|---|---|
[0] | uint256 | The total supply of the token id |
balanceOf
Returns the value of tokens of token type id
owned by account
.
balanceOfBatch
_xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
Requirements:
accounts
andids
must have the same length._
_checkMinter
SHOULD throw an error if the sender is not allowed to mint