Skip to content
Lattice

IERC1155Burnable

Git Source

Title: IERC1155Burnable

Author: Modified from OpenZeppelin (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC1155/extensions/ERC1155Burnable.sol)

Interface for burnable ERC-1155 tokens. The burns revert with the IERC1155 errors and emit the IERC1155 transfer events with to == address(0).

Functions

burn

Destroys value tokens of type id from account.

The caller must be account or an operator approved by account.

function burn(address account, uint256 id, uint256 value) external;

Parameters

NameTypeDescription
accountaddress
iduint256
valueuint256

burnBatch

Batched version of burn.

The caller must be account or an operator approved by account.

function burnBatch(address account, uint256[] calldata ids, uint256[] calldata values) external;

Parameters

NameTypeDescription
accountaddress
idsuint256[]
valuesuint256[]