IFlowERC1155V4
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
Name | Type | Description |
---|---|---|
stack | uint256[] | The stack to convert to a FlowERC1155IOV1 . |
Returns
Name | Type | Description |
---|---|---|
flowERC1155IO | FlowERC1155IOV1 | The 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
Name | Type | Description |
---|---|---|
evaluable | Evaluable | The Evaluable to use to evaluate the flow. |
callerContext | uint256[] | The caller context to use to evaluate the flow. |
signedContexts | SignedContextV1[] | The signed contexts to use to evaluate the flow. |
Returns
Name | Type | Description |
---|---|---|
<none> | FlowERC1155IOV1 | flowERC1155IO 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
Name | Type | Description |
---|---|---|
sender | address | msg.sender initializing the contract (factory). |
config | FlowERC1155ConfigV2 | All initialized config. |