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

Properties

closeTx?: string
handler?: ChannelHandler
onDepositLocked?: (() => void)

Type declaration

    • (): void
    • Returns void

onOnChainTx?: ((tx) => void)

Called when transaction has been posted on chain

Type declaration

    • (tx): void
    • Parameters

      • tx: `tx_${string}`

      Returns void

onOwnDepositLocked?: (() => void)

Type declaration

    • (): void
    • Returns void

onOwnWithdrawLocked?: (() => void)

Type declaration

    • (): void
    • Returns void

onWithdrawLocked?: (() => void)

Type declaration

    • (): void
    • Returns void

reject: ((e) => void)

Type declaration

resolve: ((r?) => void)

Type declaration

    • (r?): void
    • Parameters

      • Optional r: any

      Returns void

sign: SignTx
signedTx: `tx_${string}`

Generated using TypeDoc