mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-23 06:38:35 +02:00
CW-843: Enhance Wallet Groups Implementation (#2045)
* feat: Enhance Wallet Groups Implementation by using hashedIdentifiers instead of parentAddresses * fix: Call updateWalletGroups even if group has an hash identifier * feat: Add secrets to workflow * feat: Enhance Wallet Groups Implementation by using hashedIdentifiers instead of parentAddresses * Handle wallet grouping edgecase where wallet is restored via non seed medium * fix: Valid wallet/wallet groups not showing up when choosing wallet/groups for creating new wallets
This commit is contained in:
@@ -10,7 +10,6 @@ abstract class WalletCredentials {
|
||||
this.passphrase,
|
||||
this.derivationInfo,
|
||||
this.hardwareWalletType,
|
||||
this.parentAddress,
|
||||
}) {
|
||||
if (this.walletInfo != null && derivationInfo != null) {
|
||||
this.walletInfo!.derivationInfo = derivationInfo;
|
||||
@@ -19,7 +18,6 @@ abstract class WalletCredentials {
|
||||
|
||||
final String name;
|
||||
final int? height;
|
||||
String? parentAddress;
|
||||
int? seedPhraseLength;
|
||||
String? password;
|
||||
String? passphrase;
|
||||
|
||||
@@ -81,6 +81,8 @@ class WalletInfo extends HiveObject {
|
||||
this.derivationInfo,
|
||||
this.hardwareWalletType,
|
||||
this.parentAddress,
|
||||
this.hashedWalletIdentifier,
|
||||
this.isNonSeedWallet,
|
||||
) : _yatLastUsedAddressController = StreamController<String>.broadcast();
|
||||
|
||||
factory WalletInfo.external({
|
||||
@@ -99,6 +101,8 @@ class WalletInfo extends HiveObject {
|
||||
DerivationInfo? derivationInfo,
|
||||
HardwareWalletType? hardwareWalletType,
|
||||
String? parentAddress,
|
||||
String? hashedWalletIdentifier,
|
||||
bool? isNonSeedWallet,
|
||||
}) {
|
||||
return WalletInfo(
|
||||
id,
|
||||
@@ -116,6 +120,8 @@ class WalletInfo extends HiveObject {
|
||||
derivationInfo,
|
||||
hardwareWalletType,
|
||||
parentAddress,
|
||||
hashedWalletIdentifier,
|
||||
isNonSeedWallet ?? false,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -196,8 +202,11 @@ class WalletInfo extends HiveObject {
|
||||
@HiveField(24)
|
||||
List<String>? manualAddresses;
|
||||
|
||||
|
||||
@HiveField(25)
|
||||
String? hashedWalletIdentifier;
|
||||
|
||||
@HiveField(26, defaultValue: false)
|
||||
bool isNonSeedWallet;
|
||||
|
||||
String get yatLastUsedAddress => yatLastUsedAddressRaw ?? '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user