Commit graph

3181 commits

Author SHA1 Message Date
fossephate
d07cf07903 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-11-12 15:17:18 -08:00
Serhii
96db38c0aa
Cw 744 improve address book (#1771)
* add sort function to contact list

* fix UI

* prevent duplicate contact names

* dispose contact source subscription

* fix custom order issue

* update the address book UI

* fix saving custom order

* fix merge conflict issue

* fix the address book filter by the selected currency

* add dropdown for wallets with multiple address types

* minor fixes

* add dropdown for wallets with multiple address types

* Update lib/entities/contact.dart [skip ci]

* Update lib/src/screens/contact/contact_list_page.dart [skip ci]

* Update lib/src/screens/contact/contact_list_page.dart [skip ci]

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-11-12 05:29:32 +02:00
Konstantin Ullrich
2c37e427e9
Cw 660 add ledger monero (#1747)
* Fix conflicts with main

* fix for multiple wallets

* Add tron to windows application configuration.

* Add macOS option for description message in configure_cake_wallet.sh

* Include missed monero dll for windows.

* fix conflicts with main

* Disable haven configuration for iOS as default. Add ability to configure cakewallet for iOS with  for configuration script. Remove cw_shared configuration for cw_monero.

* fix: scan fixes, add date, allow sending while scanning

* add missing nano secrets file [skip ci]

* ios library

* don't pull prebuilds android

* Add auto generation of manifest file for android project even for iOS, macOS, Windows.

* feat: sync fixes, sp settings

* feat: fix resyncing

* store crash fix

* make init async so it won't lag
disable print starts

* fix monero_c build issues

* libstdc++

* Fix MacOS saving wallet file issue
Fix Secure Storage issue (somehow)

* update pubspec.lock

* fix build script

* Use dylib as iOS framework. Use custom path for loading of iOS framework for monero.dart. Add script for generate iOS framework for monero wallet.

* fix: date from height logic, status disconnected & chain tip get

* fix: params

* feat: electrum migration if using cake electrum

* fix nodes
update versions

* re-enable tron

* update sp_scanner to work on iOS [skip ci]

* bump monero_c hash

* bump monero_c commit

* bump moneroc version

* bump monero_c commit

* Add ability to build monero wallet lib as universal lib. Update macOS build guide. Change default arch for macOS project to .

* fix: wrong socket for old electrum nodes

* Fix unchecked wallet type call

* get App Dir correctly in default_settings_migration.dart

* handle previous issue with fetching linux documents directory [skip ci]

* backup fix

* fix NTFS issues

* Close the wallet when the wallet gets changed

* fix: double balance

* feat: node domain

* fix: menu name

* bump monero_c commit

* fix: update tip on set scanning

* fix: connection switching back and forth

* feat: check if node is electrs, and supports sp

* chore: fix build

* minor enhancements

* fixes and enhancements

* solve conflicts with main

* Only stop wallet on rename and delete

* fix: status toggle

* minor enhancement

* Monero.com fixes

* bump monero_c commit

* update sp_scanner to include windows and linux

* Update macOS build guide. Change brew dependencies for build unbound locally.

* fix conflicts and update macos build guide

* remove build cache when on gh actions

* update secure storage

* free up even more storage

* free up more storage

* Add initial wownero

* fix conflicts

* fix workflow issue

* build wownero

* ios and windows changes

* macos

* complete wownero flow (app side)

* add keychain group entitlement and update script for RunnerBase on macos

* update secure_storage version to 8.1.0 in configure.dart

* add wownero framework

* update ios builds

* proper path for wownero and monero

* finalizing wownero

* finalizing wownero

* free up even more storage

* revert commenting of build gradle configs

* revert commenting of secrets [skip ci]

* free more storage

* minor fixes

* link android wownero libraries

* bump monero_c commit

* wownero fixes

* rename target

* build_single.sh using clean env

* bump monero_c commit

* minor fix

* Add wownero polyseed

* fix conflicts with main

* fix: wallet seed display
fix: wownero not refreshing

* fix: wallet seed display
fix: wownero not refreshing

* bump monero_c commit

* minor fixes

* fix: incorrectly displaying XMR instead of WOW

* fix: incorrect restore height in wownero

* bump monero_c commit

* Add Inno Setup Script for windows exe installer

* drop libc++_shared.so

* fixes from comments

* Fix CMake for windows

* Merge latest monero dart changes [skip ci]

* bump monero_c commit

* add wownero to build scripts for macos [skip ci]

* add 14 word seed support to wownero

* UI fixes for wownero seed restore

* minor fixes

* reformat code to pass lints

* Add debug ledger code

* Add Litecoin Hardware Wallet Creation

* Add Litecoin Hardware Wallet Creation

* Fix Bitcoin not sending on Ledger

* Fixes to sending LTC using Ledger

* CW-679 Fix merge conflicts

* CW-679 Fix merge conflicts

* CW-679 Minor fixes

* CW-679 Add derivation Path of change address

* Add create Monero Wallet from Ledger

* bug fix to create Monero Wallet from Ledger

* ledger flutter plus refactoring

* ledger flutter plus refactoring

* ledger flutter plus refactoring

* Ups :|

* Ups :| I forgot USB

* Handle BT Off

* Fix Issue with A14 and USB

* Small Ledger Quality of life improvements

* Small Ledger Quality of life improvements

* Small Ledger Quality of life improvements

* Small Ledger Quality of life improvements

* Small Ledger Quality of life improvements

* Small Ledger Quality of life improvements

* Small Ledger Quality of life improvements

* Pls work

* Pls work

* Pls work

* Pls work

* Fix overpopulation

* Fix ble device detection and support for Stax and Flex

* clean up pubspec

* clean up

* MWeb merge fix

* MWeb merge fix

* Migrate to Ledger Flutter Plus

* Add connect device page before loading the wallet (Only monero)

* Add connect device page before loading the wallet (Only monero)

* Fix merge error

* Fix merge error

* Fix merge error && Allow for wallet switching

* Please compile now

* Move monero/ledger.dart from monero_c to cw_monero

* Upgrade ledger_flutter_plus

* Add more popups if action on the device is needed.

* Update monero_c dependency hash

* Yay ledger monero is even more efficient and avoids memory leaks 🥳

* [skip-ci] more code

* Fix Minor Bug

* Fix Minor Bug

* Apply requested changes

* [skip ci] Apply requested changes

* Minor Cleanup

* Welp I'm dumb :/

* Implement requested changes

* Increase ledger refresh speed

* Add Monero Ledger keep connection alive

* Add Monero Ledger keep connection alive

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
Co-authored-by: Czarek Nakamoto <cyjan@mrcyjanek.net>
Co-authored-by: m <m@cakewallet.com>
Co-authored-by: Rafael Saes <git@rafael.saes.dev>
Co-authored-by: Matthew Fosse <matt@fosse.co>
2024-11-12 05:26:09 +02:00
Serhii
e148f64508
fix the UI issue with sending outputs (#1798)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
2024-11-11 19:39:45 +02:00
OmarHatem
89525b1897 temporarily disable key caching
Some checks failed
Cache Dependencies / test (push) Has been cancelled
2024-11-10 01:16:21 +02:00
OmarHatem
ed69dc803b fix cache key 2024-11-10 00:14:38 +02:00
Serhii
5301ee4584
Update onramper_buy_provider.dart (#1796)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
2024-11-09 23:44:08 +02:00
Omar Hatem
2881646037
Updatable builds (#1791)
* save and increment build number for each PR

* cd into repo path

* trial

* try generating the release build without a keystore

* cache keystore to maintain same signature for PR builds

* weird fix

* potential fix

* fix key path

* meh

* Update cache_dependencies.yml
2024-11-09 21:07:17 +02:00
Serhii
02f53055b1
Cw 657 new buy sell flow (#1553)
* init commit

* onramper

* moonPay

* dfx provider

* meld

* dfx payment methods

* fiat buy credentials

* moonpay payment method

* payment loading state

* dfx sell quote

* onramper launch trade

* meld launch trade

* country picker

* update option tile

* buy/sell action

* meld refactor

* update pr_test_build.yml

* ui fixes

* revert country picker commit

* update the ui

* recommended providers

* payment method [skip ci]

* provider option tile

* remove buy action

* minor fixes

* update the best rate when the amount is changed

* fixes for currency title

* fix icons

* code refactoring

* null issue

* code review fixes

* Update pr_test_build_linux.yml

* Update meld_buy_provider.dart

* Update meld_buy_provider.dart

* add show wallets action

* remove default sell / buy provider setting

* localisation

* providerTypes

* icons

* remove duplicate file [skip ci]

* minor changes [skip ci]

* fixes from review

* disable dfx for non eur/chf currencies
fix providers to be fetched with the selected currency

* fix breaking from loop if one element failed

* fix minor naming issue from merging conflicts

* add fiat check for moonpay

* fix address validation

* merge conflict

* fix destination and source currency

* minor fix

* minor fix

* update the flow

* fix bch address format

* fix wallet addresses

* fix initial fetching amount.

* Update address_validator.dart

* review comments

* revert switch case to return null

* minor fix

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-11-09 21:00:56 +02:00
cyan
cea3084bb3
WIP: CW-665 Implement AirGapped Monero Transactions (#1535)
* replace qr scanner with fast_scanner

* bump java version

* fix qr code scanning

* add flashlight and camera switch

* airgap work

* commitTransactionUR

* bump fast_scanner, fix configure script

* add option to restore wallet from NERO qr format

* fixes to the flow and logic
use gsed or otherwise it fails?

* remove Expanded() to fix URQR on release builds

* cache key to allow app updates

* rename cache key

* [skip ci] cache key.jks in cache_dependencies

* update fast_scanner to work on ios, with light mlkit dependency

* ui fixes

* error handling fix

* update fast_scanner to drop iOS dependency

* changes from review

* Update lib/entities/qr_scanner.dart

* changes from review

* remove useless commit

* don't set state multiple times
remove return Container() for non monero wallets

* return on fail
don't handle empty qr codes

* set node as trusted
display primary address in seed screen

* fix wow and haven

* migrate node to trusted

* - update trusted node for existing users
- update locales
- fix conflicts
- move menu item

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-11-09 20:59:47 +02:00
Rafael
8e12fb1ad9
fix: paymentUrls is null (#1786)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
* fix: paymentUrls is null

* feat: potential secure storage error
2024-11-09 07:20:06 +02:00
fossephate
26ad16e03d translations + minor fixes 2024-11-08 10:28:43 -08:00
Omar Hatem
389c334f10
Electrum enhancements (#1794)
* Enhance the code for sending/sending-ALL for Electrum

* remove prints [skip ci]
2024-11-08 12:50:21 +02:00
fossephate
882445386a Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-11-07 17:19:30 -08:00
David Adegoke
0fcfd76afd
Automated Integration Tests Flows (#1686)
Some checks failed
Cache Dependencies / test (push) Has been cancelled
* feat: Integration tests setup and tests for Disclaimer, Welcome and Setup Pin Code pages

* feat: Integration test flow from start to restoring a wallet successfully done

* test: Dashboard view test and linking to flow

* feat: Testing the Exchange flow section, selecting sending and receiving currencies

* test: Successfully create an exchange section

* feat: Implement flow up to sending section

* test: Complete Exchange flow

* fix dependency issue

* test: Final cleanups

* feat: Add CI to run automated integration tests withan android emulator

* feat: Adjust Automated integration test CI to run on ubuntu 20.04-a

* fix: Move integration test CI into PR test build CI

* ci: Add automated test ci which is a streamlined replica of pr test build ci

* ci: Re-add step to access branch name

* ci: Add KVM

* ci: Add filepath to trigger the test run from

* ci: Add required key

* ci: Add required key

* ci: Add missing secret key

* ci: Add missing secret key

* ci: Add nano secrets to workflow

* ci: Switch step to free space on runner

* ci: Remove timeout from workflow

* ci: Confirm impact that removing copy_monero_deps would have on entire workflow time

* ci: Update CI and temporarily remove cache related to emulator

* ci: Remove dynamic java version

* ci: Temporarily switch CI

* ci: Switch to 11.x jdk

* ci: Temporarily switch CI

* ci: Revert ubuntu version

* ci: Add more api levels

* ci: Add more target options

* ci: Settled on stable emulator matrix options

* ci: Add more target options

* ci: Modify flow

* ci: Streamline api levels to 28 and 29

* ci: One more trial

* ci: Switch to flutter drive

* ci: Reduce options

* ci: Remove haven from test

* ci: Check for solana in list

* ci: Adjust amounts and currencies for exchange flow

* ci: Set write response on failure to true

* ci: Split ci to funds and non funds related tests

* test: Test for Send flow scenario and minor restructuring for test folders and files

* chore: cleanup

* ci: Pause CI for now

* ci: Pause CI for now

* ci: Pause CI for now

* test: Restore wallets integration automated tests

* Fix: Add keys back to currency amount textfield widget

* fix: Switch variable name

* fix: remove automation for now

* tests: Automated tests for Create wallets flow

* tests: Further optimize common flows

* tests: Add missing await for call

* tests: Confirm Seeds Display Properly WIP

* tests: Confirm Seeds Display Correctly Automated Tests

* fix: Add missing pubspec params for bitcoin and bitcoin_cash

* feat: Automated Tests for Transaction History Flow

* fix: Add missing pubspec parameter

* feat: Automated Integration Tests for Transaction History flow

* test: Updating send page robot and also syncing branch with main

* test: Modifying tests to flow with wallet grouping implementation

* fix: Issue with transaction history test

* fix: Modifications to the PR and add automated confirmation for checking that all wallet types are restored or created correctly

* test: Attempting automation for testing

* fix: Issue from merge conflicts

* test: Remove automation of test in this PR

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-11-07 16:46:08 +02:00
Serhii
48457fdd6d
cake pay country picker (#1779)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
* cake pay country picker

* UI changes

* hide picker after the country is set

* Revert "hide picker after the country is set"

This reverts commit cce358b94f.

* show country picker initially

* flags

* minor ui fixes

* Update lib/view_model/cake_pay/cake_pay_cards_list_view_model.dart

---------

Co-authored-by: tuxpizza <tuxsudo@tux.pizza>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-11-07 07:50:48 +02:00
Matthew Fosse
c8cfc2cff1
Mweb enhancements 4 (#1768)
* [skip-ci] show mweb confirmations, show last mweb balance while syncing

* potential send-all fix

* [skip-ci] undo fix that didn't work

* [skip-ci] undo unnecessary changes

* [skip ci] add export mweb logs screen

* [skip ci] cleanup

* confirmation fixes

* catch electrum call errors

* [skip ci] undo some changes

* potential electrum fixes + mweb logs display only last 10000 characters

* Add question mark and link to MWEB card

* updates

* show negative unconfirmed mweb balanaces + other fixes [skip ci]

* error handling

* [skip ci] [wip] check if node supports mweb

* check fee before building tx

* [skip ci] minor

* [skip ci] minor

* mweb node setting [wip] [skip ci]

* prioritize mweb coins when selecting inputs from the pool

* potential connection edgecase fix

* translations + mweb node fixes

* don't use mweb for exchange refund address

* add peg in / out labels and make 6 confs only show up for peg in / out

* bump bitcoin_base version to v9

* [skip ci] fix logs page

* don't fetch txinfo for non-mweb addresses [skip ci]

* fix non-mweb confirmations

* rename always scan to enable mweb

* Update litecoin_wallet_addresses.dart

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>

* Update cw_mweb.dart

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>

* [skip ci] review updates pt.1

* [skip ci] minor code cleanup

* [skip ci] use exception handler

* exception handling [skip ci]

* [skip ci] exception handling

* trigger build

* pegout label fixes

* fix showing change transactions on peg-out

* minor code cleanup and minor peg-out fix

* final balance fixes

* non-mweb confirmations potential fix

* [skip ci] wip

* trigger build

---------

Co-authored-by: tuxpizza <tuxsudo@tux.pizza>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-11-07 04:57:36 +02:00
Serhii
109d9b458e
Cw 514 add sort functionality for addressbook mywallets and contacts (#1309)
* add sort function to contact list

* fix UI

* prevent duplicate contact names

* dispose contact source subscription

* fix custom order issue

* update the address book UI

* fix saving custom order

* fix merge conflict issue

* review fixes [skip ci]

* revert to single scroll for entire page

* tabBarView address book

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-11-07 03:26:14 +02:00
Matthew Fosse
f099bba89f merge build fix 2024-11-06 10:36:13 -08:00
Matthew Fosse
2914e4d6ea Merge branch 'mweb_enhancements_4' into mweb-bg-sync-2 2024-11-06 10:13:00 -08:00
Matthew Fosse
4c4f697daa [skip ci] wip 2024-11-05 09:22:42 -08:00
Matthew Fosse
97a345e7dc non-mweb confirmations potential fix 2024-11-05 08:43:07 -08:00
Matthew Fosse
086157254c [skip ci] Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb_enhancements_4 2024-11-05 08:38:11 -08:00
Serhii
459f0d352d
Cw 805 fix bch refund address (#1782)
Some checks failed
Cache Dependencies / test (push) Has been cancelled
* fix bch address format for exolix, stealth, thorchain, simpleswap

* exclude SP and MWEB from the exchange address book

* address pr review comments
2024-11-05 11:33:24 +02:00
fossephate
86a30c510b final balance fixes 2024-11-04 15:56:19 -08:00
fossephate
579b9de496 minor code cleanup and minor peg-out fix 2024-11-04 14:51:27 -08:00
fossephate
d9df5be3af fix showing change transactions on peg-out 2024-11-04 14:39:43 -08:00
fossephate
65af9bb35f pegout label fixes 2024-11-04 11:22:04 -08:00
Matthew Fosse
fad4a6d426 trigger build 2024-11-04 10:40:41 -08:00
Matthew Fosse
887021a6b1 [skip ci] exception handling 2024-11-04 09:02:38 -08:00
Matthew Fosse
0603aaa19e [skip ci] 2024-11-04 08:59:19 -08:00
Matthew Fosse
d3974be9d4 exception handling [skip ci] 2024-11-04 08:58:40 -08:00
Matthew Fosse
c14ea77182
Merge branch 'main' into mweb_enhancements_4 2024-11-04 08:57:10 -08:00
Matthew Fosse
1b8ed9251e [skip ci] merge main 2024-11-04 08:36:46 -08:00
Elias Rad
b8ffd47f06
Docs spelling issues (#1789)
Some checks failed
Cache Dependencies / test (push) Has been cancelled
* Update PRIVACY.md

* Update README.md

* Update SECURITY.md

* Update build-guide-linux.md
2024-11-04 04:51:19 +02:00
rottenwheel
72241d4911
spanish: tidy up and reword a lot of ES translations; catch missed unstralated strings (#1788)
Some checks failed
Cache Dependencies / test (push) Has been cancelled
2024-11-01 23:57:17 +02:00
Serhii
4916d1f457
fix the issue with updating sending outputs (#1785)
Some checks are pending
Cache Dependencies / test (push) Waiting to run
2024-11-01 19:54:17 +02:00
Rafael
740f466e77
fix: sp filter option (#1780)
* fix: sp filter option

* fix: nullable
2024-11-01 19:34:17 +02:00
Matthew Fosse
e42996dd8d [skip ci] use exception handler 2024-11-01 09:19:08 -07:00
Matthew Fosse
50f69ff6e9 [skip ci] minor code cleanup 2024-11-01 09:15:56 -07:00
Matthew Fosse
bb6d89a4b8 [skip ci] review updates pt.1 2024-11-01 09:10:06 -07:00
Matthew Fosse
57a88cc522
Update cw_mweb.dart
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-10-31 20:13:01 -07:00
Matthew Fosse
35d7909a0e
Update litecoin_wallet_addresses.dart
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-10-31 20:08:50 -07:00
fossephate
7f862d8c5c rename always scan to enable mweb 2024-10-31 17:05:27 -07:00
fossephate
0cc9018e34 fix non-mweb confirmations 2024-10-31 11:05:43 -07:00
fossephate
f61f590988 don't fetch txinfo for non-mweb addresses [skip ci] 2024-10-31 10:19:28 -07:00
fossephate
1e3781f131 [skip ci] fix logs page 2024-10-31 10:19:00 -07:00
fossephate
85b3969e1f Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb_enhancements_4 2024-10-31 10:01:11 -07:00
David Adegoke
752b6bbebf
fix: Generic fixes of bugs from Support (#1774)
Some checks failed
Cache Dependencies / test (push) Has been cancelled
2024-10-31 04:10:40 +03:00
Matthew Fosse
85fb1384d5 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into mweb-bg-sync-2 2024-10-30 12:02:20 -07:00