feat: implement Spark balance display and withdrawal options

feat: complete FIRO + Spark integration (balance, withdrawal, address caching, refactor)

feat: add support for Spark address handling

remove white space

ref
This commit is contained in:
Dhaval Chaudhari
2025-11-20 00:22:36 +05:30
parent caaad818ef
commit 7ee1cea4eb
7 changed files with 174 additions and 109 deletions
+18 -1
View File
@@ -23,6 +23,11 @@
types: ['default'],
hasSubfee: false,
hasSweepAll: true
},
13: {
types: ['plain', 'spark'],
hasSubfee: true,
hasSweepAll: false
}
},
@@ -64,6 +69,17 @@
}
}
if (cid === 13) {
switch(selectedType) {
case 'plain':
return this.safeParseFloat(balances.main || balances.balance);
case 'spark':
return this.safeParseFloat(balances.spark);
default:
return this.safeParseFloat(balances.main || balances.balance);
}
}
return this.safeParseFloat(balances.main || balances.balance);
},
@@ -188,7 +204,8 @@
balance: balance,
blind: balance2,
anon: balance3,
mweb: balance2
mweb: balance2,
spark: balance2
};
WalletAmountManager.setAmount(percent, balances, coinId);
};