IAssetHolder.sol

View Source: contracts/interfaces/IAssetHolder.sol

โ†˜ Derived Contracts: AssetHolder

The IAssetHolder interface calls for functions that allow assets to be transferred from one channel to other channel and/or external destinations, as well as for guarantees to be claimed.


Events

event Deposited(bytes32 indexed destination, uint256 amountDeposited, uint256 destinationHoldings);
event AssetTransferred(bytes32 indexed channelId, bytes32 indexed destination, uint256 amount);

Functions


transferAll

Transfers the funds escrowed against channelId to the beneficiaries of that channel.

function transferAll(bytes32 channelId, bytes allocationBytes) external nonpayable

Arguments

NameTypeDescription
channelIdbytes32Unique identifier for a state channel.
allocationBytesbytesThe abi.encode of AssetOutcome.Allocation

claimAll

Transfers the funds escrowed against guarantorChannelId to the beneficiaries of the target of that channel.

function claimAll(bytes32 guarantorChannelId, bytes guaranteeBytes, bytes allocationBytes) external nonpayable

Arguments

NameTypeDescription
guarantorChannelIdbytes32Unique identifier for a guarantor state channel.
guaranteeBytesbytesThe abi.encode of Outcome.Guarantee
allocationBytesbytesThe abi.encode of AssetOutcome.Allocation for the target
Last updated on by geoknee