Trait/Object

org.bitcoins.testkit.eclair.rpc

EclairRpcTestUtil

Related Docs: object EclairRpcTestUtil | package rpc

Permalink

trait EclairRpcTestUtil extends BitcoinSLogger

Linear Supertypes
BitcoinSLogger, AnyRef, Any
Known Subclasses
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. All

Type Members

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object EclairNetwork extends Serializable

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def awaitChannelOpened(client1: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]

    Permalink
  7. def awaitEclairInSync(eclair: EclairRpcClient, bitcoind: BitcoindRpcClient)(implicit system: ActorSystem, ec: ExecutionContext): Future[Unit]

    Permalink

    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.

  8. def awaitUntilChannelClosing(client: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]

    Permalink
  9. def awaitUntilChannelNormal(client: EclairApi, chanId: ChannelId)(implicit system: ActorSystem): Future[Unit]

    Permalink

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

  10. def awaitUntilIncomingPaymentStatus[T <: IncomingPaymentStatus](client: EclairApi, paymentHash: Sha256Digest, duration: FiniteDuration = 1.second, maxTries: Int = 60)(implicit system: ActorSystem, tag: ClassTag[T]): Future[Unit]

    Permalink
  11. def awaitUntilPaymentFailed(client: EclairApi, paymentId: PaymentId, duration: FiniteDuration = 1.second, maxTries: Int = 60, failFast: Boolean = false)(implicit system: ActorSystem): Future[Unit]

    Permalink
  12. def awaitUntilPaymentSucceeded(client: EclairApi, paymentId: PaymentId, duration: FiniteDuration = 1.second, maxTries: Int = 60, failFast: Boolean = true)(implicit system: ActorSystem): Future[Unit]

    Permalink
  13. def bitcoindInstance(port: Int = RpcUtil.randomPort, rpcPort: Int = RpcUtil.randomPort, zmqPort: Int = RpcUtil.randomPort): BitcoindInstance

    Permalink
  14. def cannonicalDatadir: File

    Permalink
  15. def cannonicalEclairClient(eclairVersionOpt: Option[String] = None, eclairCommitOpt: Option[String] = None)(implicit system: ActorSystem): EclairRpcClient

    Permalink
  16. def cannonicalEclairInstance(logbackXml: Option[String] = None): EclairInstance

    Permalink

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

  17. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def connectLNNodes(client: EclairApi, otherClient: EclairApi)(implicit system: ActorSystem): Future[Unit]

    Permalink
  19. def createNodeLink(channelAmount: MilliSatoshis)(implicit actorSystem: ActorSystem): Future[EclairNodes4]

    Permalink

    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

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

    Permalink

    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(bitcoindRpcClient: BitcoindRpcClient, channelAmount: MilliSatoshis)(implicit actorSystem: ActorSystem): Future[EclairNodes4]

    Permalink

    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)(implicit actorSystem: ActorSystem): Future[EclairNodes4]

    Permalink

    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 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)]

    Permalink

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

  24. def deleteTmpDir(dir: File): Boolean

    Permalink
  25. def eclairDataDir(bitcoindRpcClient: BitcoindRpcClient, isCannonical: Boolean): File

    Permalink
  26. def eclairInstance(bitcoindRpc: BitcoindRpcClient, logbackXml: Option[String] = None): EclairInstance

    Permalink

    Starts the given bitcoind instance and then starts the eclair instance

  27. def eclairInstance(datadir: File, logbackXml: Option[String]): EclairInstance

    Permalink
  28. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  30. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  31. def getBitcoindRpc(eclairRpcClient: EclairRpcClient)(implicit system: ActorSystem): BitcoindRpcClient

    Permalink
  32. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  33. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  34. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  35. lazy val logger: Logger

    Permalink
    Definition Classes
    BitcoinSLogger
  36. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  37. lazy val network: RegTest.type

    Permalink
  38. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  39. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  40. def openAndConfirmChannel(client1F: Future[EclairRpcClient], client2F: Future[EclairRpcClient], amount: CurrencyUnit = Satoshis(1000000))(implicit system: ActorSystem): Future[ChannelId]

    Permalink
  41. def openChannel(n1: EclairRpcClient, n2: EclairRpcClient, amt: CurrencyUnit = DEFAULT_CHANNEL_MSAT_AMT.toSatoshis, pushMSat: MilliSatoshis = ...)(implicit system: ActorSystem): Future[FundedChannelId]

    Permalink

    Opens a channel from n1 -> n2

  42. def randomDirName: String

    Permalink
  43. def randomEclairClient(bitcoindRpcOpt: Option[BitcoindRpcClient] = None, eclairVersionOpt: Option[String] = None, eclairCommitOpt: Option[String] = None)(implicit system: ActorSystem): Future[EclairRpcClient]

    Permalink
  44. def randomEclairDatadir(): File

    Permalink
  45. def randomEclairInstance(bitcoindRpc: BitcoindRpcClient, logbackXml: Option[String] = None): EclairInstance

    Permalink
  46. def sendPayments(c1: EclairApi, c2: EclairApi, numPayments: Int = 5)(implicit ec: ExecutionContext): Future[Vector[PaymentId]]

    Permalink

    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.

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

    Permalink

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

  48. def startedBitcoindRpcClient(instance: BitcoindInstance = bitcoindInstance())(implicit actorSystem: ActorSystem): Future[BitcoindRpcClient]

    Permalink

    Makes a best effort to get a 0.16 bitcoind instance

  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  50. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from BitcoinSLogger

Inherited from AnyRef

Inherited from Any

Ungrouped