IErc1155SinglePortal
Inherits: IPortal
Title: ERC-1155 Single Transfer Portal interface
Functions
depositSingleErc1155Token
Transfer ERC-1155 tokens of a single type to an application contract
and add an input to the application's input box to signal such operation.
The caller must enable approval for the portal to manage all of their tokens
beforehand, by calling the setApprovalForAll function in the token contract.
If the application is foreclosed, and the deposit input is not processed,
the user can issue a refund. If the user deposits ERC-1155 tokens through a smart contract,
a refund will only succeed if the smart contract accepts it through the onERC1155Received/onERC1155BatchReceived callback.
If the smart contract wallet does not accept the tokens through the callback, they may not be recoverable.
function depositSingleErc1155Token(
IERC1155 token,
address appContract,
uint256 tokenId,
uint256 value,
bytes calldata baseLayerData,
bytes calldata execLayerData
) external;
Parameters
| Name | Type | Description |
|---|---|---|
token | IERC1155 | The ERC-1155 token contract |
appContract | address | The application contract address |
tokenId | uint256 | The identifier of the token being transferred |
value | uint256 | Transfer amount |
baseLayerData | bytes | Additional data to be interpreted by the base layer |
execLayerData | bytes | Additional data to be interpreted by the execution layer |