Constants
FLOW_ERC1155_HANDLE_TRANSFER_ENTRYPOINT
Entrypont of the handleTransfer
evaluation.
SourceIndex constant FLOW_ERC1155_HANDLE_TRANSFER_ENTRYPOINT = SourceIndex.wrap(0);
FLOW_ERC1155_HANDLE_TRANSFER_MIN_OUTPUTS
Minimum number of outputs of the handleTransfer
evaluation.
This is 0 because the return stack is ignored.
uint256 constant FLOW_ERC1155_HANDLE_TRANSFER_MIN_OUTPUTS = 0;
FLOW_ERC1155_HANDLE_TRANSFER_MAX_OUTPUTS
Maximum number of outputs of the handleTransfer
evaluation.
This is 0 because the return stack is ignored.
uint16 constant FLOW_ERC1155_HANDLE_TRANSFER_MAX_OUTPUTS = 0;
FLOW_ERC1155_MIN_FLOW_SENTINELS
Minimum number of sentinels required by FlowERC1155
.
This is 2 more than the minimum required by FlowCommon
because the
mints and burns are included in the stack.
uint256 constant FLOW_ERC1155_MIN_FLOW_SENTINELS = MIN_FLOW_SENTINELS + 2;
RAIN_FLOW_ERC1155_SENTINEL
v3 of FlowERC1155
expected a sentinel different to
RAIN_FLOW_SENTINEL
, but this was generally more confusing than helpful.
Sentinel constant RAIN_FLOW_ERC1155_SENTINEL =
Sentinel.wrap(uint256(keccak256(bytes("RAIN_FLOW_ERC1155_SENTINEL")) | SENTINEL_HIGH_BITS));