ODCdataManagersomnichainERC721extensions
OmnichainERC721Transfers
Abstract contract that provides Omnichain ERC721 transfer functions of the Omnichain ERC721 Data Manager
Based on OpenZeppelin ERC721 implementation
safeTransferFrom
Transfers an tokenId
from from
to to
in another chain
The caller must have allowance for from
's token or be from
Caller may receive native coin refund, so if it's a contract it MUST have receive() or payable fallback()
Parameters
Name | Type | Description |
---|---|---|
from | address | Source address |
to | OmnichainAddress | Destination omnichain address |
tokenId | uint256 | Token ID |
data | bytes | Additional data with no specified format |
safeTransferFrom
Transfers an tokenId
from from
to to
in another chain
The caller must have allowance for from
's token or be from
Parameters
Name | Type | Description |
---|---|---|
from | address | Source address |
to | OmnichainAddress | Destination omnichain address |
tokenId | uint256 | Token ID |
data | bytes | Additional data with no specified format |
refundAddress | address payable | Address to send native coin refund to |