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.
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of ERC1155 to transfer. |
owner | address | Address of current token owner. |
recipient | address | Address to transfer token to. |
tokenIDs | uint256[] | IDs of tokens to transfer. |
amounts | uint256[] | Amounts of tokens to transfer. |
data | bytes | Additional 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.
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of ERC1155 to transfer. |
owner | address | Address of current token owner. |
recipient | address | Address to transfer token to. |
tokenIDs | uint256[] | IDs of tokens to transfer. |
amounts | uint256[] | Amounts of tokens to transfer. |
data | bytes | Additional data. |
mintBatchERC1155
function mintBatchERC1155(address tokenAddress, address recipient, uint256[] tokenIDs, uint256[] amounts, bytes data) internal
Used to create new ERC1155s with batching.
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of ERC1155 to mint. |
recipient | address | Address to mint token to. |
tokenIDs | uint256[] | IDs of tokens to mint. |
amounts | uint256[] | Amounts of token to mint. |
data | bytes | Additional data. |
burnBatchERC1155
function burnBatchERC1155(address tokenAddress, address owner, uint256[] tokenIDs, uint256[] amounts) internal
Used to burn ERC1155s with batching.
Name | Type | Description |
---|---|---|
tokenAddress | address | Address of ERC1155 to burn. |
owner | address | |
tokenIDs | uint256[] | IDs of tokens to burn. |
amounts | uint256[] | Amounts of tokens to burn. |