mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-11-11 08:44:02 +01:00
sp improvements (#2418)
* feat: show sp keys * fix: merge fixes * feat: show sp receive address on tx details page * feat(keys): show silent payment keys tab & keys tab * Update lib/src/screens/wallet_keys/wallet_keys_page.dart --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
+10
-12
@@ -253,6 +253,8 @@ abstract class Bitcoin {
|
||||
String getPayjoinEndpoint(Object wallet);
|
||||
void resumePayjoinSessions(Object wallet);
|
||||
void stopPayjoinSessions(Object wallet);
|
||||
Map<String, String> getSilentPaymentKeys(Object wallet);
|
||||
String? getTransactionAddress(Object wallet, TransactionInfo tx);
|
||||
}
|
||||
""";
|
||||
|
||||
@@ -939,15 +941,12 @@ abstract class BitcoinCash {
|
||||
""";
|
||||
|
||||
const bitcoinCashEmptyDefinition = 'BitcoinCash? bitcoinCash;\n';
|
||||
const bitcoinCashCWDefinition =
|
||||
'BitcoinCash? bitcoinCash = CWBitcoinCash();\n';
|
||||
const bitcoinCashCWDefinition = 'BitcoinCash? bitcoinCash = CWBitcoinCash();\n';
|
||||
|
||||
final output = '$bitcoinCashCommonHeaders\n' +
|
||||
(hasImplementation ? '$bitcoinCashCWHeaders\n' : '\n') +
|
||||
(hasImplementation ? '$bitcoinCashCwPart\n\n' : '\n') +
|
||||
(hasImplementation
|
||||
? bitcoinCashCWDefinition
|
||||
: bitcoinCashEmptyDefinition) +
|
||||
(hasImplementation ? bitcoinCashCWDefinition : bitcoinCashEmptyDefinition) +
|
||||
'\n' +
|
||||
bitcoinCashContent;
|
||||
|
||||
@@ -1082,8 +1081,7 @@ abstract class NanoUtil {
|
||||
""";
|
||||
|
||||
const nanoEmptyDefinition = 'Nano? nano;\nNanoUtil? nanoUtil;\n';
|
||||
const nanoCWDefinition =
|
||||
'Nano? nano = CWNano();\nNanoUtil? nanoUtil = CWNanoUtil();\n';
|
||||
const nanoCWDefinition = 'Nano? nano = CWNano();\nNanoUtil? nanoUtil = CWNanoUtil();\n';
|
||||
|
||||
final output = '$nanoCommonHeaders\n' +
|
||||
(hasImplementation ? '$nanoCWHeaders\n' : '\n') +
|
||||
@@ -1324,11 +1322,11 @@ abstract class Zano {
|
||||
const zanoCWDefinition = 'Zano? zano = CWZano();\n';
|
||||
|
||||
final output = '$zanoCommonHeaders\n' +
|
||||
(hasImplementation ? '$zanoCWHeaders\n' : '\n') +
|
||||
(hasImplementation ? '$zanoCwPart\n\n' : '\n') +
|
||||
(hasImplementation ? zanoCWDefinition : zanoEmptyDefinition) +
|
||||
'\n' +
|
||||
zanoContent;
|
||||
(hasImplementation ? '$zanoCWHeaders\n' : '\n') +
|
||||
(hasImplementation ? '$zanoCwPart\n\n' : '\n') +
|
||||
(hasImplementation ? zanoCWDefinition : zanoEmptyDefinition) +
|
||||
'\n' +
|
||||
zanoContent;
|
||||
|
||||
if (outputFile.existsSync()) {
|
||||
await outputFile.delete();
|
||||
|
||||
Reference in New Issue
Block a user