Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cw 660 add ledger monero #1747

Open
wants to merge 332 commits into
base: main
Choose a base branch
from
Open

Conversation

konstantinullrich
Copy link
Contributor

Description

This adds support for ledger hardware wallets.

Pull Request - Checklist

  • Initial Manual Tests Passed
  • Double check modified code and verify it with the feature/task requirements
  • Format code
  • Look for code duplication
  • Clear naming for variables and methods

rafael-xmr and others added 30 commits May 7, 2024 11:50
…MrCyjaneK-cyjan-monerodart

� Conflicts:
�	cw_monero/lib/api/signatures.dart
�	cw_monero/lib/api/types.dart
�	cw_monero/lib/api/wallet_manager.dart
�	lib/locales/hausa_intl.dart
�	lib/locales/yoruba_intl.dart
�	lib/main.dart
�	macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
�	scripts/android/pubspec_gen.sh
…MrCyjaneK-cyjan-monerodart

� Conflicts:
�	lib/main.dart
�	lib/view_model/backup_view_model.dart
…ure cakewallet for iOS with for configuration script. Remove cw_shared configuration for cw_monero.
…660-add-ledger-monero

# Conflicts:
#	cw_monero/lib/api/wallet_manager.dart
#	cw_monero/lib/monero_wallet_service.dart
#	cw_monero/pubspec.lock
#	cw_monero/pubspec.yaml
#	cw_wownero/pubspec.lock
#	cw_wownero/pubspec.yaml
#	lib/router.dart
#	lib/src/screens/connect_device/debug_device_page.dart
#	lib/view_model/wallet_address_list/wallet_address_list_view_model.dart
#	lib/view_model/wallet_hardware_restore_view_model.dart
#	scripts/prepare_moneroc.sh
# Conflicts:
#	cw_bitcoin/lib/electrum_wallet.dart
#	cw_bitcoin/lib/electrum_wallet_addresses.dart
#	cw_bitcoin/lib/litecoin_wallet.dart
#	cw_bitcoin/lib/litecoin_wallet_addresses.dart
#	lib/view_model/dashboard/dashboard_view_model.dart
#	lib/view_model/wallet_list/wallet_list_view_model.dart
#	res/values/strings_de.arb
# Conflicts:
#	cw_bitcoin/lib/electrum_wallet.dart
#	cw_bitcoin/pubspec.lock
# Conflicts:
#	cw_bitcoin/lib/electrum_wallet.dart
#	cw_bitcoin/lib/electrum_wallet_addresses.dart
#	cw_bitcoin/lib/litecoin_wallet.dart
#	cw_bitcoin/lib/litecoin_wallet_addresses.dart
#	cw_bitcoin/pubspec.lock
#	lib/main.dart
#	lib/src/screens/connect_device/connect_device_page.dart
#	lib/src/screens/send/send_page.dart
#	lib/view_model/wallet_hardware_restore_view_model.dart
#	pubspec_base.yaml
Copy link
Contributor

@OmarHatem28 OmarHatem28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are the wownero changes needed?

pubspec_base.yaml Outdated Show resolved Hide resolved
cw_monero/lib/api/wallet_manager.dart Show resolved Hide resolved
lib/core/wallet_loading_service.dart Outdated Show resolved Hide resolved
lib/router.dart Outdated Show resolved Hide resolved
lib/view_model/wallet_hardware_restore_view_model.dart Outdated Show resolved Hide resolved
lib/view_model/wallet_hardware_restore_view_model.dart Outdated Show resolved Hide resolved
Navigator.of(context).pushNamed(
Routes.walletList,
arguments: (BuildContext context) =>
Navigator.of(context).pushNamed(Routes.dashboard),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be pushAndRemoveUntil?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Which one? the first push or the push to dashboard?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the second one, push to dashboard, so that after the user goes to the dashboard, if he tapped back, he would get out of the app not go back to the wallet list page

Comment on lines +435 to +442
showPopUp<void>(
context: context,
builder: (BuildContext context) => AlertWithOneAction(
alertTitle: S.of(context).proceed_on_device,
alertContent: S.of(context).proceed_on_device_description,
buttonText: S.of(context).cancel,
buttonAction: () => Navigator.of(context).pop()),
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't this show up in normal wallets as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, requireHardwareWalletConnection is only true if it is a monero hardware wallet

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but this is out of the if condition scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants