DepositBoxERC721WithMetadata
Runs on mainnet, accepts messages from schain, stores deposits of ERC721.
Functions
Events
postMessage postMessage(bytes32 schainHash, address sender, bytes data)
external
Allows MessageProxyForMainnet contract to execute transferring ERC721 token from schain to mainnet.
Requirements:
-
Schain from which the tokens came should not be killed.
-
Sender contract should be defined and schain name cannot be
Mainnet
. -
DepositBoxERC721 contract should own token.
gasPayer gasPayer(bytes32 schainHash, address sender, bytes data) → address
external
Returns receiver of message.
Requirements:
-
Sender contract should be defined and schain name cannot be
Mainnet
.
_receiveERC721 _receiveERC721(string schainName, address erc721OnMainnet, address to, uint256 tokenId) → bytes data
internal
Allows DepositBoxERC721 to receive ERC721 tokens.
Emits an {ERC721TokenReady} event.
Requirements:
-
Whitelist should be turned off for auto adding tokens to DepositBoxERC721.