interface ChannelEvents {
    channelReestablished: (() => void);
    depositLocked: (() => void);
    error: ((error) => void);
    message: ((message) => void);
    newContract: ((contractAddress) => void);
    onChainTx: ((tx, details) => void);
    ownDepositLocked: (() => void);
    ownWithdrawLocked: (() => void);
    peerDisconnected: (() => void);
    stateChanged: ((tx) => void);
    statusChanged: ((status) => void);
    withdrawLocked: (() => void);
}

Properties

channelReestablished: (() => void)

Type declaration

    • (): void
    • Returns void

depositLocked: (() => void)

Type declaration

    • (): void
    • Returns void

error: ((error) => void)

Type declaration

    • (error): void
    • Parameters

      • error: Error

      Returns void

message: ((message) => void)

Type declaration

    • (message): void
    • Parameters

      • message: string | Object

      Returns void

newContract: ((contractAddress) => void)

Type declaration

    • (contractAddress): void
    • Parameters

      • contractAddress: `ct_${string}`

      Returns void

onChainTx: ((tx, details) => void)

Type declaration

    • (tx, details): void
    • Parameters

      • tx: `tx_${string}`
      • details: {
            info: string;
            type: string;
        }
        • info: string
        • type: string

      Returns void

ownDepositLocked: (() => void)

Type declaration

    • (): void
    • Returns void

ownWithdrawLocked: (() => void)

Type declaration

    • (): void
    • Returns void

peerDisconnected: (() => void)

Type declaration

    • (): void
    • Returns void

stateChanged: ((tx) => void)

Type declaration

    • (tx): void
    • Parameters

      • tx: "" | `tx_${string}`

      Returns void

statusChanged: ((status) => void)

Type declaration

withdrawLocked: (() => void)

Type declaration

    • (): void
    • Returns void

Generated using TypeDoc