Skip to content

Commit

Permalink
Bug(assets): Fix missing export for legacy extension
Browse files Browse the repository at this point in the history
Fix missing export for legacy extension and remove unused extensions.
  • Loading branch information
CharlVS committed Dec 13, 2024
1 parent 0643805 commit 6ba773b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
2 changes: 2 additions & 0 deletions packages/komodo_defi_sdk/lib/komodo_defi_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ export 'src/assets/asset_extensions.dart' show AssetValidation;
// show AssetActivation;

export 'src/komodo_defi_sdk.dart';

export 'src/assets/legacy_asset_extensions.dart';
26 changes: 0 additions & 26 deletions packages/komodo_defi_sdk/lib/src/komodo_defi_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,29 +202,3 @@ class KomodoDefiSdk with SecureRpcPasswordMixin {
WithdrawalManager get withdrawals => _assertSdkInitialized(_withdrawals);
late final WithdrawalManager _withdrawals = WithdrawalManager(_apiClient!);
}

/// RPC library extension of API client
// extension KomodoDefiSdkRpc on ApiClient {
// KomodoDefiRpcMethods get rpc => KomodoDefiRpcMethods(this);
// }

extension AssetPubkeysExtension on Asset {
Future<AssetPubkeys> getPubkeys() => KomodoDefiSdk().pubkeys.getPubkeys(this);
}

extension PubkeyExtension on Asset {
// Future<PubkeyStrategy> get pubkeyStrategy async => preferredPubkeyStrategy(
// isHd: await _currentUsersAuthOptions().then(
// (options) =>
// options?.derivationMethod == DerivationMethod.hdWallet,
// ) ??
// true,
// );

Future<AuthOptions?> _currentUsersAuthOptions() async {
final user = await _instance?.auth.currentUser;
return user == null
? null
: KomodoDefiLocalAuth.storedAuthOptions(user.walletId.name);
}
}

0 comments on commit 6ba773b

Please sign in to comment.