Packages

object EclairRpcTestUtil extends EclairRpcTestUtil

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EclairRpcTestUtil
  2. EclairRpcTestUtil
  3. BitcoinSLogger
  4. Logging
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. case class EclairNetwork(bitcoind: BitcoindRpcClient, testEclairNode: EclairRpcClient, networkEclairNodes: Vector[EclairRpcClient], channelIds: Vector[FundedChannelId]) extends Product with Serializable
    Definition Classes
    EclairRpcTestUtil

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def awaitChannelOpened(client1: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]
    Definition Classes
    EclairRpcTestUtil
  6. def awaitEclairInSync(eclair: EclairRpcClient, bitcoind: BitcoindRpcClient)(implicit system: ActorSystem, ec: ExecutionContext): Future[Unit]

    Returns a Future that is completed when both eclair and bitcoind have the same block height Fails the future if they are not sychronized within the given timeout.

    Returns a Future that is completed when both eclair and bitcoind have the same block height Fails the future if they are not sychronized within the given timeout.

    Definition Classes
    EclairRpcTestUtil
  7. def awaitUntilChannelClosing(client: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]
    Definition Classes
    EclairRpcTestUtil
  8. def awaitUntilChannelNormal(client: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]

    Doesn't return until the given channelId is in the ChannelState.NORMAL for this EclairRpcClient

    Doesn't return until the given channelId is in the ChannelState.NORMAL for this EclairRpcClient

    Definition Classes
    EclairRpcTestUtil
  9. def awaitUntilIncomingPaymentStatus[T <: IncomingPaymentStatus](client: EclairApi, paymentHash: Sha256Digest, interval: FiniteDuration = 1.second, maxTries: Int = 60)(implicit system: ActorSystem, tag: ClassTag[T]): Future[Unit]
    Definition Classes
    EclairRpcTestUtil
  10. def awaitUntilPaymentFailed(client: EclairApi, paymentId: PaymentId, duration: FiniteDuration = 1.second, maxTries: Int = 60, failFast: Boolean = false)(implicit system: ActorSystem): Future[Unit]
    Definition Classes
    EclairRpcTestUtil
  11. def awaitUntilPaymentSucceeded(client: EclairApi, paymentId: PaymentId, duration: FiniteDuration = 1.second, maxTries: Int = 60, failFast: Boolean = true)(implicit system: ActorSystem): Future[Unit]
    Definition Classes
    EclairRpcTestUtil
  12. def bitcoindInstance(port: Int = RpcUtil.randomPort, rpcPort: Int = RpcUtil.randomPort, zmqPort: Int = RpcUtil.randomPort): BitcoindInstance
    Definition Classes
    EclairRpcTestUtil
  13. def cannonicalDatadir: File
    Definition Classes
    EclairRpcTestUtil
  14. def cannonicalEclairClient(eclairVersionOpt: Option[String] = None, eclairCommitOpt: Option[String] = None)(implicit system: ActorSystem): EclairRpcClient
    Definition Classes
    EclairRpcTestUtil
  15. def cannonicalEclairInstance(logbackXml: Option[String] = None): EclairInstance

    Assumes bitcoind is running already and you have specified correct bindings in eclair.conf

    Assumes bitcoind is running already and you have specified correct bindings in eclair.conf

    Definition Classes
    EclairRpcTestUtil
  16. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  17. def commonConfig(bitcoindInstance: BitcoindInstance, port: Int, apiPort: Int): Config
    Definition Classes
    EclairRpcTestUtil → EclairRpcTestUtil
  18. def connectLNNodes(client: EclairApi, otherClient: EclairApi)(implicit system: ActorSystem): Future[Unit]
    Definition Classes
    EclairRpcTestUtil
  19. def createNodeLink(channelAmount: MilliSatoshis)(implicit actorSystem: ActorSystem): Future[EclairNodes4]

    Creates four Eclair nodes that are connected in the following manner:

    Creates four Eclair nodes that are connected in the following manner:

    node1 <-> node2 <-> node3 <-> node4

    Each double sided arrow represents a P2P connection as well as a funded channel

    returns

    A 4-tuple of the created nodes' respective EclairRpcClient

    Definition Classes
    EclairRpcTestUtil
    Note

    Blocks the current thread

  20. def createNodeLink()(implicit actorSystem: ActorSystem): Future[EclairNodes4]

    Creates four Eclair nodes that are connected in the following manner:

    Creates four Eclair nodes that are connected in the following manner:

    node1 <-> node2 <-> node3 <-> node4

    Each double sided arrow represents a P2P connection as well as a funded channel

    returns

    A 4-tuple of the created nodes' respective EclairRpcClient

    Definition Classes
    EclairRpcTestUtil
    Note

    Blocks the current thread

  21. def createNodeLink(bitcoindRpcClient: BitcoindRpcClient, channelAmount: MilliSatoshis)(implicit actorSystem: ActorSystem): Future[EclairNodes4]

    Creates four Eclair nodes that are connected in the following manner:

    Creates four Eclair nodes that are connected in the following manner:

    node1 <-> node2 <-> node3 <-> node4

    Each double sided arrow represents a P2P connection as well as a funded channel

    returns

    A 4-tuple of the created nodes' respective EclairRpcClient

    Definition Classes
    EclairRpcTestUtil
    Note

    Blocks the current thread

  22. def createNodeLink(bitcoindRpcClient: BitcoindRpcClient)(implicit actorSystem: ActorSystem): Future[EclairNodes4]

    Creates four Eclair nodes that are connected in the following manner:

    Creates four Eclair nodes that are connected in the following manner:

    node1 <-> node2 <-> node3 <-> node4

    Each double sided arrow represents a P2P connection as well as a funded channel

    returns

    A 4-tuple of the created nodes' respective EclairRpcClient

    Definition Classes
    EclairRpcTestUtil
    Note

    Blocks the current thread

  23. def createNodePair(bitcoindRpcClientOpt: Option[BitcoindRpcClient], eclairVersionOpt1: Option[String] = None, eclairCommitOpt1: Option[String] = None, eclairVersionOpt2: Option[String] = None, eclairCommitOpt2: Option[String] = None)(implicit system: ActorSystem): Future[(EclairRpcClient, EclairRpcClient)]

    Creates two Eclair nodes that are connected together and returns their respective EclairRpcClients

    Creates two Eclair nodes that are connected together and returns their respective EclairRpcClients

    Definition Classes
    EclairRpcTestUtil
  24. var customConfigMap: Map[String, Any]
  25. def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  26. def debug(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  27. def debug(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  28. def deleteTmpDir(dir: File): Boolean
    Definition Classes
    EclairRpcTestUtil
  29. def eclairDataDir(bitcoindRpcClient: BitcoindRpcClient, isCannonical: Boolean): File
    Definition Classes
    EclairRpcTestUtil
  30. def eclairInstance(bitcoindRpc: BitcoindRpcClient, logbackXml: Option[String] = None): EclairInstance

    Starts the given bitcoind instance and then starts the eclair instance

    Starts the given bitcoind instance and then starts the eclair instance

    Definition Classes
    EclairRpcTestUtil
  31. def eclairInstance(datadir: File, logbackXml: Option[String]): EclairInstance
    Definition Classes
    EclairRpcTestUtil
  32. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  34. def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  35. def error(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  36. def error(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  37. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  38. def getBitcoindRpc(eclairRpcClient: EclairRpcClient)(implicit system: ActorSystem): BitcoindRpcClient
    Definition Classes
    EclairRpcTestUtil
  39. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  40. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  41. def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  42. def info(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  43. def info(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  44. def isDebugEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  45. def isErrorEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  46. def isInfoEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  47. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  48. def isTraceEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  49. def isWarnEnabled: Boolean
    Attributes
    protected
    Definition Classes
    Logging
  50. def logger: Logger
    Attributes
    protected
    Definition Classes
    Logging
  51. def loggerName: String
    Attributes
    protected
    Definition Classes
    Logging
  52. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  53. lazy val network: RegTest.type
    Definition Classes
    EclairRpcTestUtil
  54. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  55. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  56. def openAndConfirmChannel(client1F: Future[EclairRpcClient], client2F: Future[EclairRpcClient], amount: CurrencyUnit = Satoshis(1000000))(implicit system: ActorSystem): Future[ChannelId]
    Definition Classes
    EclairRpcTestUtil
  57. def openChannel(n1: EclairRpcClient, n2: EclairRpcClient, amt: CurrencyUnit = DEFAULT_CHANNEL_MSAT_AMT.toSatoshis, pushMSat: MilliSatoshis = MilliSatoshis( DEFAULT_CHANNEL_MSAT_AMT.toLong / 2))(implicit system: ActorSystem): Future[FundedChannelId]

    Opens a channel from n1 -> n2

    Opens a channel from n1 -> n2

    Definition Classes
    EclairRpcTestUtil
  58. def randomDirName: String
    Definition Classes
    EclairRpcTestUtil
  59. def randomEclairClient(bitcoindRpcOpt: Option[BitcoindRpcClient] = None, eclairVersionOpt: Option[String] = None, eclairCommitOpt: Option[String] = None)(implicit system: ActorSystem): Future[EclairRpcClient]
    Definition Classes
    EclairRpcTestUtil
  60. def randomEclairDatadir(): File
    Definition Classes
    EclairRpcTestUtil
  61. def randomEclairInstance(bitcoindRpc: BitcoindRpcClient, logbackXml: Option[String] = None): EclairInstance
    Definition Classes
    EclairRpcTestUtil
  62. def sendPayments(c1: EclairApi, c2: EclairApi, numPayments: Int = 5)(implicit ec: ExecutionContext): Future[Vector[PaymentId]]

    Sends numPayments between c1 and c2.

    Sends numPayments between c1 and c2. No aspect of the payment (size, description, etc) should be assumed to have a certain value, this method is just for populating channel update history with something.

    Definition Classes
    EclairRpcTestUtil
  63. def shutdown(eclairRpcClient: EclairRpcClient)(implicit system: ActorSystem): Future[Unit]

    Shuts down an eclair daemon and the bitcoind daemon it is associated with

    Shuts down an eclair daemon and the bitcoind daemon it is associated with

    Definition Classes
    EclairRpcTestUtil
  64. def startedBitcoindRpcClient(instance: BitcoindInstance = bitcoindInstance())(implicit actorSystem: ActorSystem): Future[BitcoindRpcClient]

    Makes a best effort to get a 0.16 bitcoind instance

    Makes a best effort to get a 0.16 bitcoind instance

    Definition Classes
    EclairRpcTestUtil
  65. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  66. def toString(): String
    Definition Classes
    AnyRef → Any
  67. def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  68. def trace(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  69. def trace(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  70. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  71. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  72. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  73. def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  74. def warn(msg: => Any, t: => Throwable): Unit
    Attributes
    protected
    Definition Classes
    Logging
  75. def warn(msg: => Any): Unit
    Attributes
    protected
    Definition Classes
    Logging
  76. object EclairNetwork extends Serializable
    Definition Classes
    EclairRpcTestUtil

Inherited from EclairRpcTestUtil

Inherited from BitcoinSLogger

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped