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 afterOmnichainNonFungibleTokenIncreaseBalanceOnTargetChain(OmnichainAddress from, address to, uint256 tokenId) external returns (bool)

Function called after a token transfer on target chain

Parameters

NameTypeDescription
fromOmnichainAddressThe address from which the token was transferred
toaddressThe address to which the token was transferred
tokenIduint256Id of the token

Return Values

NameTypeDescription
[0]boolbool True if the callback was successful, false otherwise

afterOmnichainNonFungibleTokenFailedRefund

function afterOmnichainNonFungibleTokenFailedRefund(OmnichainAddress from, OmnichainAddress to, address expectedRefundAddress, uint256 tokenId) external

Function called if normal token refund procedure failed and balance of this contract (the one which is called) is increased

Parameters

NameTypeDescription
fromOmnichainAddressThe address from which the token was originally transferred
toOmnichainAddressThe address to which the token was originally transferred
expectedRefundAddressaddressAddress expected, but failed to accept refund
tokenIduint256Id of the token

On this page