Transferable ERC-1155

Description

The TransferableERC1155 contract is an module that provides transfer control functionality for ERC-1155 tokens. This contract allows enabling or disabling token transfers globally or for specific addresses, adding an extra layer of control over how tokens can be moved.

Callback Functions

FunctionDescription
beforeTransferERC1155Callback function for ERC1155.safeTransferFrom. Ensures that transfers are enabled before allowing them.
beforeBatchTransferERC1155Callback function for ERC1155.safeBatchTransferFrom. Ensures that batch transfers are enabled before allowing them.

Fallback Functions

FunctionDescription
isTransferEnabledReturns whether transfers are enabled globally for the token.
isTransferEnabledForReturns whether transfers are enabled for a specific address.
setTransferableSets the transferability status for the token globally. Requires manager role.
setTransferableForSets the transferability status for a specific address. Requires manager role.

Required Interfaces

InterfaceID
ERC-11550xd9b67a26

Supported Interfaces

(No supported interfaces for this contract)