object BitcoinSWalletTest extends WalletLogger with Serializable
- Alphabetic
- By Inheritance
- BitcoinSWalletTest
- Serializable
- WalletLogger
- BitcoinSLogger
- 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 buildBip39PasswordConfig(bip39PasswordOpt: Option[String]): Config
- def buildBip39PasswordWithExtraConfig(bip39PasswordOpt: Option[String], extraConfig: Option[Config]): Config
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def createDLCWallet2Accounts(nodeApi: NodeApi, chainQueryApi: ChainQueryApi)(implicit config: BitcoinSAppConfig, system: ActorSystem): Future[DLCWallet]
- def createDefaultWallet(nodeApi: NodeApi, chainQueryApi: ChainQueryApi)(implicit walletAppConfig: WalletAppConfig): Future[Wallet]
Creates a wallet with the default configuration
- def createNeutrinoNodeCallbacksForWallet(wallet: Wallet)(implicit system: ActorSystem): Future[NodeCallbacks]
Constructs callbacks for the wallet from the node to process blocks and compact filters
- def createWallet2Accounts(nodeApi: NodeApi, chainQueryApi: ChainQueryApi)(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[WalletWithBitcoindRpc]
- def createWalletWithBitcoind(bitcoind: BitcoindRpcClient)(implicit system: ActorSystem, config: WalletAppConfig): Future[WalletWithBitcoindRpc]
- def createWalletWithBitcoind(wallet: Wallet, versionOpt: Option[BitcoindVersion])(implicit system: ActorSystem): Future[WalletWithBitcoindRpc]
Pairs the given wallet with a bitcoind instance that has money in the bitcoind wallet
- def createWalletWithBitcoind(wallet: Wallet)(implicit system: ActorSystem): Future[WalletWithBitcoindRpc]
Pairs the given wallet with a bitcoind instance that has money in the bitcoind wallet
- def createWalletWithBitcoindCallbacks(bitcoind: BitcoindRpcClient)(implicit walletAppConfig: WalletAppConfig, system: ActorSystem): Future[WalletWithBitcoindRpc]
Creates a default wallet with bitcoind where the ChainQueryApi fed to the wallet is implemented by bitcoind
- val defaultAcctAmts: Vector[Bitcoins]
- def destroyDLCWallet(wallet: DLCWallet)(implicit ec: ExecutionContext): Future[Unit]
- def destroyOnlyWalletWithBitcoindCached(walletWithBitcoind: WalletWithBitcoind[_])(implicit ec: ExecutionContext): Future[Unit]
Destorys the WalletApi and WalletAppConfig inside of WalletWithBitcoind.
Destorys the WalletApi and WalletAppConfig inside of WalletWithBitcoind. This method does not touch the bitcoind instance so it can be re-used in CachedBitcoind tests
- def destroyWalletAppConfig(walletAppConfig: WalletAppConfig)(implicit ec: ExecutionContext): Future[Unit]
- def destroyWalletWithBitcoind[T <: BitcoindRpcClient](walletWithBitcoind: WalletWithBitcoind[T])(implicit ec: ExecutionContext): Future[Unit]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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, walletCallbacks: WalletCallbacks)(implicit config: BitcoinSAppConfig, system: ActorSystem): Future[WalletWithBitcoindRpc]
Funds a wallet with bitcoind, this method adds CallbackUtil.createNeutrinoNodeCallbacksForWallet() which processes filters/blocks that can be used to fund the wallet.
Funds a wallet with bitcoind, this method adds CallbackUtil.createNeutrinoNodeCallbacksForWallet() 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, chainQueryApi: ChainQueryApi, walletCallbacks: WalletCallbacks)(implicit config: BitcoinSAppConfig, system: ActorSystem): Future[WalletWithBitcoindRpc]
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 getSegwitWalletConfigWithBip39PasswordOpt(pgUrl: Option[String])(implicit system: ActorSystem): BitcoinSAppConfig
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- lazy val initialFunds: CurrencyUnit
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: Logger
- Definition Classes
- BitcoinSLogger
- 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
- 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()