ODCdataManagersERC1155extensions

ERC1155Burnable

Abstract contract that provides burning capabilities of the ERC1155 Data Manager

burn

function burn(address from, uint256 id, uint256 value) public virtual

Burn a specific amount of tokens with a specific ID

Parameters

NameTypeDescription
fromaddressThe address to burn tokens from
iduint256The ID of the token to burn
valueuint256The amount of tokens to burn

batchBurn

function batchBurn(address from, uint256[] ids, uint256[] values) public virtual

Burn multiple tokens with specific IDs

ids and values arrays must have the same length

Parameters

NameTypeDescription
fromaddress
idsuint256[]The IDs of the tokens to burn
valuesuint256[]The amounts of tokens to burn

On this page