Skip to main content

ISPToken

Git Source

Inherits: IERC1155

External imports

Functions

mint

mints the given erc1155 token id to the given address

function mint(address to, uint256 id, uint256 amount, bytes memory data) external;

Parameters

NameTypeDescription
toaddressthe recipient of the token
iduint256the id of the ERC1155 token to be minted
amountuint256amount of tokens to be minted
databytesoptional field to execute other methods after tokens are minted

burn

burns the erc1155 tokens

function burn(address from, uint256 id, uint256 amount) external;

Parameters

NameTypeDescription
fromaddressthe address of the token owner
iduint256the id of the token to be burnt
amountuint256the amount of tokens to be burnt