FractionERC1155PausableDataManager
Contract for managing fractions of a Wrapper NFT using an ERC20 token with pausable option. Transfers where either:
- owner is msg.sender
- owner id the receiver of funds will NOT be paused! Note: since owner is local address, omnichain transfers only allow owner to be msg.sender in paused state
initialize
safeTransferFrom
safeBatchTransferFrom
safeTransferFrom
Transfers value amount of an id from from to to in another chain
The caller must have allowance for from's tokens of at least value 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 |
| id | uint256 | Token ID |
| value | uint256 | Amount of tokens to transfer |
| data | bytes | Additional data with no specified format |
safeTransferFrom
SafeTransferFrom
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Address to get the token from |
| to | OmnichainAddress | Address to provide tokens to |
| id | uint256 | The id of the token |
| value | uint256 | The amount of the tokens to transfer |
| data | bytes | Extra data needed |
| refundAddress | address payable | Address to send native coin refund to |
safeBatchTransferFrom
Transfers values amount of multiple ids from from to to in another chain
The caller must have allowance for from's tokens of at least value for each id 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 |
| ids | uint256[] | Array of token IDs |
| values | uint256[] | Array of amounts of tokens to transfer |
| data | bytes | Additional data with no specified format |
safeBatchTransferFrom
Transfers values amount of multiple ids from from to to in another chain
The caller must have allowance for from's tokens of at least value for each id or be from
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Source address |
| to | OmnichainAddress | Destination omnichain address |
| ids | uint256[] | Array of token IDs |
| values | uint256[] | Array of amounts of tokens to transfer |
| data | bytes | Additional data with no specified format |
| refundAddress | address payable | Address to send native coin refund to |

