Interface for ERC1155 contracts that provide name() and symbol() functions. These functions may not be part of the official interface but are used by some contracts.
function name() external view returns (string)
function symbol() external view returns (string)
This vault holds all ERC1155 tokens that users have deposited. It also manages the mapping between canonical tokens and their bridged tokens.
function sendToken(struct BaseNFTVault.BridgeTransferOp opt) external payable
Transfers ERC1155 tokens to this vault and sends a message to the destination chain so the user can receive the same (bridged) tokens by invoking the message call.
|opt||struct BaseNFTVault.BridgeTransferOp||Option for sending the ERC1155 token.|
function receiveToken(struct BaseNFTVault.CanonicalNFT ctoken, address from, address to, uint256 tokenIds, uint256 amounts) external payable
This function can only be called by the bridge contract while invoking a message call. See sendToken, which sets the data to invoke this function.
|ctoken||struct BaseNFTVault.CanonicalNFT||The canonical ERC1155 token which may or may not live on this chain. If not, a BridgedERC1155 contract will be deployed.|
|from||address||The source address.|
|to||address||The destination address.|
|tokenIds||uint256||The tokenIds to be sent.|
|amounts||uint256||The amounts to be sent.|
function onMessageRecalled(struct IBridge.Message message) external payable
Releases deposited ERC1155 token(s) back to the user on the source chain with a proof that the message processing on the destination Bridge has failed.
|message||struct IBridge.Message||The message that corresponds to the ERC1155 deposit on the source chain.|
function onERC1155BatchReceived(address, address, uint256, uint256, bytes) external pure returns (bytes4)
function onERC1155Received(address, address, uint256, uint256, bytes) external pure returns (bytes4)
function supportsInterface(bytes4 interfaceId) public view virtual returns (bool)
Proxied version of the parent contract.