interface ChannelEvents {
    channelReestablished: (() => void);
    depositLocked: (() => void);
    error: ((error: Error) => void);
    message: ((message: string | Object) => void);
    newContract: ((contractAddress: `ct_${string}`) => void);
    onChainTx: ((tx: `tx_${string}`, details: {
        info: string;
        type: string;
    }) => void);
    ownDepositLocked: (() => void);
    ownWithdrawLocked: (() => void);
    peerDisconnected: (() => void);
    stateChanged: ((tx: "" | `tx_${string}`) => void);
    statusChanged: ((status: ChannelStatus) => void);
    withdrawLocked: (() => void);
}

Properties

channelReestablished: (() => void)
depositLocked: (() => void)
error: ((error: Error) => void)
message: ((message: string | Object) => void)
newContract: ((contractAddress: `ct_${string}`) => void)
onChainTx: ((tx: `tx_${string}`, details: {
    info: string;
    type: string;
}) => void)
ownDepositLocked: (() => void)
ownWithdrawLocked: (() => void)
peerDisconnected: (() => void)
stateChanged: ((tx: "" | `tx_${string}`) => void)
statusChanged: ((status: ChannelStatus) => void)
withdrawLocked: (() => void)