Packages

trait EclairRpcTestUtil extends BitcoinSLogger

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. EclairRpcTestUtil
  2. BitcoinSLogger
  3. AnyRef
  4. 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

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]
  6. def awaitEclairInSync(eclair: EclairRpcClient, bitcoind: BitcoindRpcClient)(implicit system: ActorSystem): 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.

  7. def awaitUntilChannelClosed(client: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]
  8. def awaitUntilChannelClosing(client: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]
  9. def awaitUntilChannelNegotiatingSimple(client: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]
  10. 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

  11. def awaitUntilIncomingPaymentStatus[T <: IncomingPaymentStatus](client: EclairApi, paymentHash: Sha256Digest, interval: FiniteDuration = 1.second, maxTries: Int = 60)(implicit system: ActorSystem, tag: ClassTag[T]): Future[Unit]
  12. def awaitUntilPaymentFailed(client: EclairApi, paymentId: PaymentId, duration: FiniteDuration = 1.second, maxTries: Int = 60, failFast: Boolean = false)(implicit ec: ExecutionContext): Future[Unit]
  13. def awaitUntilPaymentSucceeded(client: EclairApi, paymentId: PaymentId, duration: FiniteDuration = 1.second, maxTries: Int = 60, failFast: Boolean = true)(implicit ec: ExecutionContext): Future[Unit]
  14. def bitcoindInstance(port: Int = RpcUtil.randomPort, rpcPort: Int = RpcUtil.randomPort, zmqConfig: ZmqConfig = RpcUtil.zmqConfig, bitcoindV: BitcoindVersion = EclairRpcClient.bitcoindV)(implicit system: ActorSystem): BitcoindInstanceLocal

    Creates a bitcoind instance with the given parameters

  15. def cannonicalDatadir: File
  16. def cannonicalEclairClient(eclairVersionOpt: Option[String] = None, eclairCommitOpt: Option[String] = None, binaryDirectory: Path = EclairRpcTestClient.sbtBinaryDirectory)(implicit system: ActorSystem): EclairRpcClient
  17. def cannonicalEclairInstance(logbackXml: Option[String] = None): EclairInstanceLocal

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

  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  19. def connectLNNodes(client: EclairApi, otherClient: EclairApi)(implicit system: ActorSystem): Future[Unit]
  20. 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

    Note

    Blocks the current thread

  21. 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

    Note

    Blocks the current thread

  22. 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

    Note

    Blocks the current thread

  23. 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

    Note

    Blocks the current thread

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

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

  25. def eclairDataDir(bitcoindRpcClient: BitcoindRpcClient, isCannonical: Boolean): File
  26. def eclairInstance(bitcoindRpc: BitcoindRpcClient, logbackXml: Option[String] = None): EclairInstanceLocal

    Starts the given bitcoind instance and then starts the eclair instance

  27. def eclairInstance(datadir: File, logbackXml: Option[String]): EclairInstanceLocal
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  31. def getBitcoindRpc(eclairRpcClient: EclairRpcClient, bitcoindVersion: BitcoindVersion = EclairRpcClient.bitcoindV)(implicit system: ActorSystem): BitcoindRpcClient
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def logger: Logger
    Definition Classes
    BitcoinSLogger
  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. def openAndConfirmChannel(client1: EclairRpcClient, client2: EclairRpcClient, amount: CurrencyUnit = Satoshis(10000000))(implicit system: ActorSystem): Future[ChannelId]
  40. 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

  41. def randomEclairClient(bitcoindRpcOpt: Option[BitcoindRpcClient] = None, eclairVersionOpt: Option[String] = None, eclairCommitOpt: Option[String] = None)(implicit system: ActorSystem): Future[EclairRpcClient]
  42. def randomEclairDatadir(): File
  43. def randomEclairInstance(bitcoindRpc: BitcoindRpcClient, logbackXml: Option[String] = None): EclairInstanceLocal
  44. 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.

  45. def shutdown(eclairRpcClient: EclairRpcClient)(implicit system: ActorSystem): Future[Unit]

    Shuts down an eclair daemon

  46. def startedBitcoindRpcClient(instanceOpt: Option[BitcoindInstanceLocal] = None)(implicit actorSystem: ActorSystem): Future[BitcoindRpcClient]

    Makes a best effort to get a 0.16 bitcoind instance

  47. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  48. def toString(): String
    Definition Classes
    AnyRef → Any
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. object EclairNetwork extends Serializable

Inherited from BitcoinSLogger

Inherited from AnyRef

Inherited from Any

Ungrouped