IErc721Portal
Inherits: IPortal
Title: ERC-721 Portal interface
Functions
depositErc721Token
Transfer an ERC-721 token to an application contract
and add an input to the application's input box to signal such operation.
The caller must change the approved address for the ERC-721 token
to the portal address beforehand, by calling the approve 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 an NFT through a smart contract,
a refund will only succeed if the smart contract accepts it through the onERC721Received callback.
If the smart contract wallet does not accept the NFT through the callback, it may not be recoverable.
function depositErc721Token(
IERC721 token,
address appContract,
uint256 tokenId,
bytes calldata baseLayerData,
bytes calldata execLayerData
) external;
Parameters
| Name | Type | Description |
|---|---|---|
token | IERC721 | The ERC-721 token contract |
appContract | address | The application contract address |
tokenId | uint256 | The identifier of the token being transferred |
baseLayerData | bytes | Additional data to be interpreted by the base layer |
execLayerData | bytes | Additional data to be interpreted by the execution layer |