Skip to main content

Solidity API

ERC1155Safe

This contract is intended to be used with ERC1155Handler contract.

lockBatchERC1155

function lockBatchERC1155(address tokenAddress, address owner, address recipient, uint256[] tokenIDs, uint256[] amounts, bytes data) internal

Used to gain custoday of deposited token with batching.

NameTypeDescription
tokenAddressaddressAddress of ERC1155 to transfer.
owneraddressAddress of current token owner.
recipientaddressAddress to transfer token to.
tokenIDsuint256[]IDs of tokens to transfer.
amountsuint256[]Amounts of tokens to transfer.
databytesAdditional data.

releaseBatchERC1155

function releaseBatchERC1155(address tokenAddress, address owner, address recipient, uint256[] tokenIDs, uint256[] amounts, bytes data) internal

Transfers custody of token to recipient with batching.

NameTypeDescription
tokenAddressaddressAddress of ERC1155 to transfer.
owneraddressAddress of current token owner.
recipientaddressAddress to transfer token to.
tokenIDsuint256[]IDs of tokens to transfer.
amountsuint256[]Amounts of tokens to transfer.
databytesAdditional data.

mintBatchERC1155

function mintBatchERC1155(address tokenAddress, address recipient, uint256[] tokenIDs, uint256[] amounts, bytes data) internal

Used to create new ERC1155s with batching.

NameTypeDescription
tokenAddressaddressAddress of ERC1155 to mint.
recipientaddressAddress to mint token to.
tokenIDsuint256[]IDs of tokens to mint.
amountsuint256[]Amounts of token to mint.
databytesAdditional data.

burnBatchERC1155

function burnBatchERC1155(address tokenAddress, address owner, uint256[] tokenIDs, uint256[] amounts) internal

Used to burn ERC1155s with batching.

NameTypeDescription
tokenAddressaddressAddress of ERC1155 to burn.
owneraddress
tokenIDsuint256[]IDs of tokens to burn.
amountsuint256[]Amounts of tokens to burn.