Type alias OrchestratorEventHandler

OrchestratorEventHandler: {
    offTransferHop: ((listener) => void);
    offTransferInit: ((listener) => void);
    offTransferSigned: ((listener) => void);
    onTransferHop: ((listener) => void);
    onTransferInit: ((listener) => void);
    onTransferSigned: ((listener) => void);
}

Type declaration

  • offTransferHop: ((listener) => void)

    De-registers a listener that was previously registered for receiving events when a transfer hop is successfully completed

      • (listener): void
      • Parameters

        • listener: Listener<[BufferId]>

          the listener to remove

        Returns void

  • offTransferInit: ((listener) => void)

    De-registers a listener that was previously registered for receiving events when init transfer has been successfully submitted

      • (listener): void
      • Parameters

        • listener: Listener<[TransactionReceipt]>

          the listener to remove

        Returns void

  • offTransferSigned: ((listener) => void)

    De-registers a listener that was previously registered for receiving events when transfer were signed

      • (listener): void
      • Parameters

        • listener: Listener<[SignedTransaction]>

          the listener to remove

        Returns void

  • onTransferHop: ((listener) => void)

    Registers a listener that gets invoked when a transfer hop is successfully completed

      • (listener): void
      • Parameters

        • listener: Listener<[BufferId]>

          the listener to register

        Returns void

  • onTransferInit: ((listener) => void)

    Registers a listener that gets invoked when init transfer has been successfully submitted

      • (listener): void
      • Parameters

        • listener: Listener<[TransactionReceipt]>

          the listener to register

        Returns void

  • onTransferSigned: ((listener) => void)

    Registers a listener that gets invoked when the transaction is signed

      • (listener): void
      • Parameters

        • listener: Listener<[SignedTransaction]>

          the listener to register

        Returns void