interface ChannelState {
    closeTx?: string;
    handler?: ChannelHandler;
    onDepositLocked?: (() => void);
    onOnChainTx?: ((tx: `tx_${string}`) => void);
    onOwnDepositLocked?: (() => void);
    onOwnWithdrawLocked?: (() => void);
    onWithdrawLocked?: (() => void);
    reject: ((e: BaseError) => void);
    resolve: ((r?: any) => void);
    sign: SignTx;
    signedTx: `tx_${string}`;
}

Properties

closeTx?: string
handler?: ChannelHandler
onDepositLocked?: (() => void)
onOnChainTx?: ((tx: `tx_${string}`) => void)

Called when transaction has been posted on chain

onOwnDepositLocked?: (() => void)
onOwnWithdrawLocked?: (() => void)
onWithdrawLocked?: (() => void)
reject: ((e: BaseError) => void)
resolve: ((r?: any) => void)
sign: SignTx
signedTx: `tx_${string}`