ODCdataobjectsomnichain
IOmnichainNonFungibleTokenIncreaseBalanceCallback
Interface for callbacks handlers with the functions performed after non-fungible token transfer
This interface should be implemented by contracts that are registered as transfer handlers and want to receive callbacks after non-fungible token transfers calls are performed on the OmnichainNonFungibleTokenDO contract
afterOmnichainNonFungibleTokenIncreaseBalanceOnTargetChain
Function called after a token transfer on target chain
Parameters
| Name | Type | Description | 
|---|---|---|
| from | OmnichainAddress | The address from which the token was transferred | 
| to | address | The address to which the token was transferred | 
| tokenId | uint256 | Id of the token | 
Return Values
| Name | Type | Description | 
|---|---|---|
| [0] | bool | bool True if the callback was successful, false otherwise | 
afterOmnichainNonFungibleTokenFailedRefund
Function called if normal token refund procedure failed and balance of this contract (the one which is called) is increased
Parameters
| Name | Type | Description | 
|---|---|---|
| from | OmnichainAddress | The address from which the token was originally transferred | 
| to | OmnichainAddress | The address to which the token was originally transferred | 
| expectedRefundAddress | address | Address expected, but failed to accept refund | 
| tokenId | uint256 | Id of the token | 

