Constants

Git Source

FLOW_ERC721_HANDLE_TRANSFER_ENTRYPOINT

Entrypont of the handleTransfer evaluation.

SourceIndex constant FLOW_ERC721_HANDLE_TRANSFER_ENTRYPOINT = SourceIndex.wrap(0);

FLOW_ERC721_TOKEN_URI_ENTRYPOINT

Entrypont of the tokenURI evaluation.

SourceIndex constant FLOW_ERC721_TOKEN_URI_ENTRYPOINT = SourceIndex.wrap(1);

FLOW_ERC721_HANDLE_TRANSFER_MIN_OUTPUTS

Minimum number of outputs of the handleTransfer evaluation. This is 0 because the return stack is ignored.

uint256 constant FLOW_ERC721_HANDLE_TRANSFER_MIN_OUTPUTS = 0;

FLOW_ERC721_TOKEN_URI_MIN_OUTPUTS

Minimum number of outputs of the tokenURI evaluation. This is 1 because we can only handle a single token ID value.

uint256 constant FLOW_ERC721_TOKEN_URI_MIN_OUTPUTS = 1;

FLOW_ERC721_HANDLE_TRANSFER_MAX_OUTPUTS

Maximum number of outputs of the handleTransfer evaluation. This is 0 because the return stack is ignored.

uint16 constant FLOW_ERC721_HANDLE_TRANSFER_MAX_OUTPUTS = 0;

FLOW_ERC721_TOKEN_URI_MAX_OUTPUTS

Maximum number of outputs of the tokenURI evaluation. This is 1 because we can only handle a single token ID value.

uint16 constant FLOW_ERC721_TOKEN_URI_MAX_OUTPUTS = 1;

RAIN_FLOW_ERC721_SENTINEL

v3 of FlowERC721 expected a sentinel different to RAIN_FLOW_SENTINEL, but this was generally more confusing than helpful.

Sentinel constant RAIN_FLOW_ERC721_SENTINEL =
    Sentinel.wrap(uint256(keccak256(bytes("RAIN_FLOW_ERC721_SENTINEL")) | SENTINEL_HIGH_BITS));

FLOW_ERC721_MIN_FLOW_SENTINELS

Minimum number of sentinels required by FlowERC721. This is 2 more than the minimum required by FlowCommon because the mints and burns are included in the stack.

uint256 constant FLOW_ERC721_MIN_FLOW_SENTINELS = MIN_FLOW_SENTINELS + 2;