ODCdataobjectswith-callback

IFungibleFractionsTransferCallback

Interface for callbacks handlers with the functions performed after fractions transfer

This interface should be implemented by contracts that are registered as transfer handlers and want to receive callbacks after fungible fractions transfers calls are performed on the FungibleFractionsWithTransferCallbackDO contract

afterFungibleFractionTransfer

function afterFungibleFractionTransfer(address from, address to, uint256 id, uint256 value) external

Function called after a single id token transfer

Parameters

NameTypeDescription
fromaddressThe address from which the token was transferred
toaddressThe address to which the token was transferred
iduint256The id of the token
valueuint256The amount of the token transferred

afterFungibleFractionTransfer

function afterFungibleFractionTransfer(address from, address to, uint256[] ids, uint256[] values) external

Function called after a batch of id tokens transfer

Parameters

NameTypeDescription
fromaddressThe address from which the tokens were transferred
toaddressThe address to which the tokens were transferred
idsuint256[]The ids of the tokens
valuesuint256[]The amounts of the tokens transferred

On this page