IFlowERC1155V3

Git Source

Functions

previewFlow

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

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

Parameters

NameTypeDescription
evaluableEvaluableThe Evaluable that is flowing.
callerContextuint256[]The context of the caller.
signedContextsSignedContextV1[]The signed contexts of the caller.

Returns

NameTypeDescription
flowERC1155IOFlowERC1155IOV1The FlowERC1155IOV1 that occurred.

flow

As per IFlowV3 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 flowERC1155IO);

Parameters

NameTypeDescription
evaluableEvaluableThe Evaluable that is flowing.
callerContextuint256[]The context of the caller.
signedContextsSignedContextV1[]The signed contexts of the caller.

Returns

NameTypeDescription
flowERC1155IOFlowERC1155IOV1The FlowERC1155IOV1 that occurred.

Events

Initialize

Contract has initialized.

event Initialize(address sender, FlowERC1155Config config);