Updated on 2026-08-14
This commit is contained in:
parent
d664e6ecbb
commit
14df650f1a
34 changed files with 161 additions and 105 deletions
|
|
@ -25,7 +25,7 @@ class HotUserWalletBuilder @AssistedInject constructor(
|
|||
) {
|
||||
|
||||
suspend fun build(): UserWallet.Hot = withContext(dispatcherProvider.default) {
|
||||
val allNetworks = Blockchain.entries // TODO [REDACTED_TASK_KEY] add derivation config
|
||||
val allNetworks = Blockchain.entries // TODO [REDACTED_TASK_KEY] [Hot Wallet] Derivation config for hot wallet
|
||||
val curves = allNetworks.map { it.getSupportedCurves() }.flatten().toSet()
|
||||
val requests = curves.sortedBy { it.ordinal }.map { curve ->
|
||||
val derivationPaths = allNetworks.filter { curve in it.getSupportedCurves() }
|
||||
|
|
|
|||
|
|
@ -13,7 +13,8 @@ fun UserWallet.hasDerivation(blockchain: Blockchain, derivationPath: String): Bo
|
|||
return when (this) {
|
||||
is UserWallet.Cold -> scanResponse.hasDerivation(blockchain, derivationPath)
|
||||
is UserWallet.Hot -> {
|
||||
val primaryCurve = Wallet2CardConfig.primaryCurve(blockchain) // TODO [REDACTED_TASK_KEY]: handle hot wallet config
|
||||
// TODO [REDACTED_TASK_KEY] [Hot Wallet] Derivation config for hot wallet
|
||||
val primaryCurve = Wallet2CardConfig.primaryCurve(blockchain)
|
||||
val list = if (blockchain == Blockchain.Cardano) {
|
||||
listOf(
|
||||
CardanoUtils.extendedDerivationPath(DerivationPath(derivationPath)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue