Skip to content

Solidity API

PropsERC1155BaseInternal

Abstract contract providing internal functions for managing ERC1155 token metadata This contract is part of a diamond framework implementation for ERC1155 tokens

_setName

solidity
function _setName(string _name) internal

Sets the name of the token collection

Parameters

NameTypeDescription
_namestringThe new name to set

_setSymbol

solidity
function _setSymbol(string _symbol) internal

Sets the symbol of the token collection

Parameters

NameTypeDescription
_symbolstringThe new symbol to set

_setDescription

solidity
function _setDescription(string _description) internal

Sets the description of the token collection

Parameters

NameTypeDescription
_descriptionstringThe new description to set

_setContractURI

solidity
function _setContractURI(string _contractURI) internal

Sets the contract URI for the token collection metadata

Parameters

NameTypeDescription
_contractURIstringThe new contract URI to set

_setTokenIndex

solidity
function _setTokenIndex(uint256 _tokenIndex) internal

Sets the token index for the collection

Parameters

NameTypeDescription
_tokenIndexuint256The new token index to set

name

solidity
function name() public view returns (string)

Retrieves the name of the token collection

Return Values

NameTypeDescription
[0]stringThe name of the token collection

symbol

solidity
function symbol() public view returns (string)

Retrieves the symbol of the token collection

Return Values

NameTypeDescription
[0]stringThe symbol of the token collection

description

solidity
function description() public view returns (string)

Retrieves the description of the token collection

Return Values

NameTypeDescription
[0]stringThe description of the token collection

contractURI

solidity
function contractURI() public view returns (string)

Retrieves the contract URI for the token collection metadata

Return Values

NameTypeDescription
[0]stringThe contract URI