IFlowERC1155V4

Git Source

Functions

stackToFlow

As per IFlowV4 but returns a FlowERC1155IOV1 instead of a FlowTransferV1.

function stackToFlow(uint256[] memory stack) external pure returns (FlowERC1155IOV1 memory flowERC1155IO);

Parameters

NameTypeDescription
stackuint256[]The stack to convert to a FlowERC1155IOV1.

Returns

NameTypeDescription
flowERC1155IOFlowERC1155IOV1The FlowERC1155IOV1 representation of the stack.

flow

As per IFlowV4 but returns a FlowERC1155IOV1 instead of a FlowTransferV1 and mints/burns itself as an ERC1155 accordingly.

function flow(Evaluable calldata evaluable, uint256[] calldata callerContext, SignedContextV1[] calldata signedContexts)
    external
    returns (FlowERC1155IOV1 calldata);

Parameters

NameTypeDescription
evaluableEvaluableThe Evaluable to use to evaluate the flow.
callerContextuint256[]The caller context to use to evaluate the flow.
signedContextsSignedContextV1[]The signed contexts to use to evaluate the flow.

Returns

NameTypeDescription
<none>FlowERC1155IOV1flowERC1155IO The FlowERC1155IOV1 representing all token mint/burns and transfers that occurred during the flow.

Events

Initialize

Contract has initialized.

event Initialize(address sender, FlowERC1155ConfigV2 config);

Parameters

NameTypeDescription
senderaddressmsg.sender initializing the contract (factory).
configFlowERC1155ConfigV2All initialized config.