ODCdataManagersERC1155extensions

ERC1155Approvals

Abstract contract that provides approval storage of the ERC1155 Data Manager

Based on OZ ERC1155Approvals

setApprovalForAll

function setApprovalForAll(address operator, bool approved) public virtual

_Grants or revokes permission to operator to transfer the caller's tokens, according to approved,

Emits an {ApprovalForAll} event.

Requirements:

  • operator cannot be the zero address._

isApprovedForAll

function isApprovedForAll(address account, address operator) public view virtual returns (bool)

_Returns true if operator is approved to transfer account's tokens.

See {setApprovalForAll}._

_setApprovalForAll

function _setApprovalForAll(address owner, address operator, bool approved) internal virtual

_Approve operator to operate on all of owner tokens

Emits an {ApprovalForAll} event.

Requirements:

  • operator cannot be the zero address._

On this page