object BitcoinSWalletTest extends WalletLogger with Serializable
- Alphabetic
- By Inheritance
- BitcoinSWalletTest
- Serializable
- WalletLogger
- Logging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val account1Amt: Vector[Bitcoins]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def awaitWalletBalances(fundedWallet: WalletWithBitcoind)(implicit config: WalletAppConfig, system: ActorSystem): Future[Unit]
Makes sure our wallet is fully funded with the default amounts specified in BitcoinSWalletTest.
Makes sure our wallet is fully funded with the default amounts specified in BitcoinSWalletTest. This will future won't be completed until balances satisfy isSameWalletBalances()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createDLCWallet2Accounts(nodeApi: NodeApi, chainQueryApi: ChainQueryApi, bip39PasswordOpt: Option[String], extraConfig: Option[Config] = None)(implicit config: BitcoinSAppConfig, system: ActorSystem): Future[DLCWallet]
- def createDefaultWallet(nodeApi: NodeApi, chainQueryApi: ChainQueryApi, bip39PasswordOpt: Option[String], extraConfig: Option[Config] = None)(implicit config: WalletAppConfig, ec: ExecutionContext): Future[Wallet]
Creates a wallet with the default configuration
- def createNeutrinoNodeCallbacksForWallet(wallet: Wallet)(implicit nodeAppConfig: NodeAppConfig, ec: ExecutionContext): Future[NodeCallbacks]
Constructs callbacks for the wallet from the node to process blocks and compact filters
- def createSpvNodeCallbacksForWallet(wallet: Wallet)(implicit ec: ExecutionContext): NodeCallbacks
Registers a callback to handle merkle blocks given to us by a spv node
- def createWallet2Accounts(nodeApi: NodeApi, chainQueryApi: ChainQueryApi, bip39PasswordOpt: Option[String], extraConfig: Option[Config] = None)(implicit config: WalletAppConfig, system: ActorSystem): Future[Wallet]
- def createWalletAppConfig(pgUrl: () => Option[String], configs: Vector[Config])(implicit system: ActorSystem): Future[WalletAppConfig]
- def createWalletAppConfigNotStarted(pgUrl: () => Option[String], configs: Vector[Config])(implicit system: ActorSystem): Future[WalletAppConfig]
- def createWalletWithBitcoind(wallet: Wallet, bitcoindRpcClient: BitcoindRpcClient): Future[WalletWithBitcoind]
- def createWalletWithBitcoind(bitcoind: BitcoindRpcClient, bip39PasswordOpt: Option[String])(implicit system: ActorSystem, config: WalletAppConfig): Future[WalletWithBitcoindRpc]
- def createWalletWithBitcoind(bitcoind: BitcoindRpcClient)(implicit system: ActorSystem, config: WalletAppConfig): Future[WalletWithBitcoind]
- def createWalletWithBitcoind(wallet: Wallet, versionOpt: Option[BitcoindVersion])(implicit system: ActorSystem): Future[WalletWithBitcoind]
Pairs the given wallet with a bitcoind instance that has money in the bitcoind wallet
- def createWalletWithBitcoind(wallet: Wallet)(implicit system: ActorSystem): Future[WalletWithBitcoind]
Pairs the given wallet with a bitcoind instance that has money in the bitcoind wallet
- def createWalletWithBitcoindCallbacks(bitcoind: BitcoindRpcClient, bip39PasswordOpt: Option[String], extraConfig: Option[Config] = None)(implicit config: WalletAppConfig, system: ActorSystem): Future[WalletWithBitcoind]
Creates a default wallet with bitcoind where the ChainQueryApi fed to the wallet is implemented by bitcoind
- def createWalletWithBitcoindV19(bitcoind: BitcoindV19RpcClient, bip39PasswordOpt: Option[String])(implicit system: ActorSystem, config: WalletAppConfig): Future[WalletWithBitcoindV19]
- def createWalletWithBitcoindV19(wallet: Wallet)(implicit system: ActorSystem): Future[WalletWithBitcoindV19]
- def debug(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def debug(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def debug(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- val defaultAcctAmts: Vector[Bitcoins]
- def destroyDLCWallet(wallet: DLCWallet): Future[Unit]
- def destroyWallet(wallet: Wallet): Future[Unit]
- def destroyWalletAppConfig(walletAppConfig: WalletAppConfig)(implicit ec: ExecutionContext): Future[Unit]
- def destroyWalletWithBitcoind(walletWithBitcoind: WalletWithBitcoind)(implicit ec: ExecutionContext): Future[Unit]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def error(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def error(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- val expectedAccount1Amt: CurrencyUnit
- val expectedDefaultAmt: CurrencyUnit
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fundedWalletAndBitcoind(bitcoindRpcClient: BitcoindRpcClient, nodeApi: NodeApi, chainQueryApi: ChainQueryApi, bip39PasswordOpt: Option[String], walletCallbacks: WalletCallbacks)(implicit config: BitcoinSAppConfig, system: ActorSystem): Future[WalletWithBitcoind]
Funds a wallet with bitcoind, this method adds BitcoinSWalletTest.createNodeCallbacksForWallet() which processes filters/blocks that can be used to fund the wallet.
Funds a wallet with bitcoind, this method adds BitcoinSWalletTest.createNodeCallbacksForWallet() which processes filters/blocks that can be used to fund the wallet.
It's important to note that this does NOT synchronize the wallet with a chain state. This should be done by the caller of this method. A useful method to help you with that in neutrino node cases is BitcoinSWalletTest.awaitWalletBalances
- def fundedWalletAndBitcoind(versionOpt: Option[BitcoindVersion], nodeApi: NodeApi, bip39PasswordOpt: Option[String], chainQueryApi: ChainQueryApi, walletCallbacks: WalletCallbacks)(implicit config: BitcoinSAppConfig, system: ActorSystem): Future[WalletWithBitcoind]
Gives us a funded bitcoin-s wallet and the bitcoind instance that funded that wallet
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def info(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def info(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def info(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- lazy val initialFunds: CurrencyUnit
- def isDebugEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isErrorEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isInfoEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def isWarnEnabled: Boolean
- Attributes
- protected
- Definition Classes
- Logging
- def logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- def loggerName: String
- Attributes
- protected
- Definition Classes
- Logging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def trace(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def trace(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def warn(mkr: Marker, msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def warn(msg: => Any, t: => Throwable): Unit
- Attributes
- protected
- Definition Classes
- Logging
- def warn(msg: => Any): Unit
- Attributes
- protected
- Definition Classes
- Logging
- object MockChainQueryApi extends ChainQueryApi
- object MockNodeApi extends NodeApi