IOmnichainFungibleFractionsIncreaseBalanceCallback
Interface for callbacks handlers with the functions performed after fungible token transfer
This interface should be implemented by contracts that are registered as transfer handlers and want to receive callbacks after fungible token transfers calls are performed on the OmnichainFungibleTokenDO contract
afterOmnichainFungibleFractionsIncreaseBalanceOnTargetChain
Function called after a token transfer on target chain
Verifies success of transfer (if to
is a contract, additional calls verifying it can accept tokens can be made)
Parameters
Name | Type | Description |
---|---|---|
from | OmnichainAddress | The address from which the token was transferred |
to | address | The address to which the token was transferred |
id | uint256 | Id of the token |
value | uint256 | The amount of the token transferred |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | If transfer verification successfull |
afterOmnichainFungibleFractionsIncreaseBalanceOnTargetChain
Function called after a batch token transfer on target chain
Verifies success of transfer (if to
is a contract, additional calls verifying it can accept tokens can be made)
Parameters
Name | Type | Description |
---|---|---|
from | OmnichainAddress | The address from which the token was transferred |
to | address | The address to which the token was transferred |
ids | uint256[] | Ids of the tokens |
values | uint256[] | The amounts of the tokens transferred |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | If transfer verification successfull |
afterOmnichainFungibleFractionsFailedRefund
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 |
ids | uint256[] | Ids of the tokens |
values | uint256[] | The amounts of the tokens transferred |