Skip to content

Solidity API

SpanningERC1155Pausable

_SpanningERC1155 token with pausable token transfers, minting and burning.

Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug._

_beforeTokenTransfer

function _beforeTokenTransfer(bytes32 operator, bytes32 senderAddress, bytes32 receiverAddress, uint256[] ids, uint256[] amounts, bytes data) internal virtual

_See {ERC1155-_beforeTokenTransfer}.

Requirements:

  • the contract must not be paused._