Commit graph

2942 commits

Author SHA1 Message Date
Maxim Evtush
aef90e7192
Update LICENSE.md (#1984) 2025-01-28 14:57:53 +02:00
cyan
c3c5c8644c
fix MAKE_JOB_COUNT on darwin, and use it on ios and macos scripts (#1981) 2025-01-28 14:22:30 +02:00
cyan
00906bc455
Fix monero.com build by removing cw_wownero import (#1982) 2025-01-28 14:21:36 +02:00
Serhii
89f7b48988
fix linux welcome screen text button (#1980) 2025-01-27 17:25:14 +02:00
Serhii
55d8238ae4
Add copy icon to block height display (#1978) 2025-01-27 17:23:38 +02:00
Omar Hatem
df3a26dc15
Zano with passphrase (#1971)
* CW-685 Add passphrase restore for xmr/wow (#1552)

* CW-685 Add passphrase restore for xmr/wow

* add support for polyseed passphrase

* disable 14 word seed passphrase (not supported in wownero-seed)
fix: Getting grayed screen on latest passphrase build after having restored a 14-word wownero seed (+passphrase) and attempting to restore a XMR seed, legacy or otherwise.

* fix pointer when restoring depracated wownero seed

* Fix polyseed encryption

* changes from review

* remove unused code

* add passphrase back to the screen
add passphrase to qr code backup export

* fix settings leaking through currencies on seed restore

* fix monero.com builds, make passphrase a getter on WalletBase

* add support for weird polyseed

* store passphrase for weird polyseed

* show encrypted seed only when passphrase is not empty

* force set restore height

* fix build issues

* fix build errors

* fix configure script

* print -> printV

* Update lib/view_model/wallet_keys_view_model.dart [skip ci]

* Update lib/view_model/wallet_keys_view_model.dart [skip ci]

* Update tool/configure.dart [skip ci]

* Update lib/view_model/wallet_new_vm.dart

* reuse existing passphrase field

* remove unused passphrase field

* make workflow run on pullrequests only [skip ci] [skip slack]

---------

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

* Zano (#1793)

* my experiments

* Inital code for Zano integration

* Added missing android log lib

* added dummy wallet & some zano implementation

* fixing api for zano

* fixed zano build script

* attempt tp fix namespace problem

* added copy script for Zano files

* changes for zano wallet

* last updates

* zano.dart test app

* wallet recovery

* added pending transfer, some cleanup of unused

* some cleanup

* send + receive qr code

* last upd

* updated build_zano.sh

* updated zano ApiCalls, removed dummy

* updated zano ApiCalls, removed dummy

* added logging for get status/get info

* restored old wallet.dart

* restoring original versions of files

* restoring original versions of files

* restored get_height_by_date.dart, removed unnecessary calls for zano get height

* restoring original versions

* added multiple destinations, send all flag; some refactoring

* logging

* removed the duplicate

* fixed syncing sync status, decimal division, safe null json parsing

* some fixes after merge

* added multibalance/asset support for zano (ui)

* adding/removing from whitelist

* transfers in different assets

* transfers for multiple destinations and send all, some refactoring

* whitelists, some refactoring

* added different digits (decimal points) for formatters, some refactoring

* open, create, restore wallet refactoring; whitelists

* whitelists

* getting and updating transaction list; restoring a wallet from QR code

* several attempts to close wallet

* some refactoring

* added seed phrase

* changed fields to BigInt, some fixes

* modified build scripts for android

* build scripts

* restored accidently removed cw_haven.dart

* inital ios integration(zano libs built)

* update in script

* latest changes

* Applied a patch for iOS build (Boost and Zano scripts)

* Removed zano.dart (script-generated) and some unnecessary files

* Revert "Removed zano.dart (script-generated) and some unnecessary files"

This reverts commit 367c86398e.

* Removed zano.dart (generated by scripts), some files restored to initial versions

* added timer library

* changed paths in build_zano.sh

* build_zano.sh

* edit_token_page.dart - removed flag skipZanoAddressValidation

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

* lib/core/address_validator.dart - updated zano address regex
lib/src/screens/dashboard/edit_token_page.dart - using AddressValidator().call

* fix zano build issues on android

* remove contrib/depends to save space

* move async call to a synchronouse one

* call sync call in isolate to make it async
generate framework for iOS as well
fix UR issues

* zano changes from monero_c repo

* update monero_c hash

* fix invalid zano imports, add support for linux, speed up CI builds

* update monero_c hash

* bump monero_c commit (yes, again, I know)

* fix wallet resttore, fix hardcoded IP

* fix regex, don't throw error when opening wallet, fix tx history, fix async calls, move stuff to isolate

* fix api calls in async transaction creation

* update build scripts

* fix some build issues

* update dependencies

* fix dependencies

* update ci scripts

* Improve multithread use of zano api

* Fix build issue

* fix zano node selection, move other zano calls to separate isolate

* update moneroc hash
WIP fixes for zano

* update monero_c

* fix monero.com builds

* sync wallet after connecting

* update monero_c

* Fix windows builds

* update monero_c

* update monero_c

* unshallow submodule

* cherry pick CW-867 Wownero fixes (#1881)

* fix wownero syntax error

* remove print statements in zano

* update zano node URL

* [PATCH] Apply new CI script (https://github.com/cake-tech/cake_wallet/pull/1948)

* drop env -i to fix cmake build errors on newer system

* [skip ci] Revert "[PATCH] Apply new CI script (https://github.com/cake-tech/cake_wallet/pull/1948)"

This reverts commit 5acb5bfe57.

* [run tests] [skip slack] Fix env in build

* Dynamically detect number of cores used to build monero_c, since it appears that zano requires more memory to link (and it reliably fails for first couple builds due to OOM on CI/VM with memory constrains).
Drop unshallowing of all modules
[run tests]

* Changes from review [run tests]

* drop zano on linux (missing symbols)
fix wownero on linux
add aarch64-linux-gnu
[run tests]

* - remove duplicate entry in addToken()
- use walletPassword in createZanoNewWalletCredentials
- remove createZanoRestoreWalletFromKeysCredentials
[run tests]

* [skip ci] update dockerfile

* fix parameter issue

---------

Co-authored-by: leo <leonid.ivanov@gmail.com>
Co-authored-by: cr.zoidberg <crypto.zoidberg@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>

* - Add Zano Aliases
- Enable simpleswap [skip ci]
- Fix settings migration versions

* push missing file [skip ci]

* Zano pr with CW-685 passphrase (#1969)

* my experiments

* Inital code for Zano integration

* Added missing android log lib

* added dummy wallet & some zano implementation

* fixing api for zano

* fixed zano build script

* attempt tp fix namespace problem

* added copy script for Zano files

* changes for zano wallet

* last updates

* zano.dart test app

* wallet recovery

* added pending transfer, some cleanup of unused

* some cleanup

* send + receive qr code

* last upd

* updated build_zano.sh

* updated zano ApiCalls, removed dummy

* updated zano ApiCalls, removed dummy

* added logging for get status/get info

* restored old wallet.dart

* restoring original versions of files

* restoring original versions of files

* restored get_height_by_date.dart, removed unnecessary calls for zano get height

* restoring original versions

* added multiple destinations, send all flag; some refactoring

* logging

* removed the duplicate

* fixed syncing sync status, decimal division, safe null json parsing

* some fixes after merge

* added multibalance/asset support for zano (ui)

* adding/removing from whitelist

* transfers in different assets

* transfers for multiple destinations and send all, some refactoring

* whitelists, some refactoring

* added different digits (decimal points) for formatters, some refactoring

* open, create, restore wallet refactoring; whitelists

* whitelists

* getting and updating transaction list; restoring a wallet from QR code

* several attempts to close wallet

* some refactoring

* added seed phrase

* CW-685 Add passphrase restore for xmr/wow

* add support for polyseed passphrase

* disable 14 word seed passphrase (not supported in wownero-seed)
fix: Getting grayed screen on latest passphrase build after having restored a 14-word wownero seed (+passphrase) and attempting to restore a XMR seed, legacy or otherwise.

* fix pointer when restoring depracated wownero seed

* Fix polyseed encryption

* changed fields to BigInt, some fixes

* modified build scripts for android

* build scripts

* restored accidently removed cw_haven.dart

* inital ios integration(zano libs built)

* update in script

* latest changes

* changes from review

* remove unused code

* add passphrase back to the screen
add passphrase to qr code backup export

* fix settings leaking through currencies on seed restore

* fix monero.com builds, make passphrase a getter on WalletBase

* add support for weird polyseed

* store passphrase for weird polyseed

* show encrypted seed only when passphrase is not empty

* force set restore height

* Applied a patch for iOS build (Boost and Zano scripts)

* Removed zano.dart (script-generated) and some unnecessary files

* Revert "Removed zano.dart (script-generated) and some unnecessary files"

This reverts commit 367c86398e.

* Removed zano.dart (generated by scripts), some files restored to initial versions

* fix build issues

* fix build errors

* added timer library

* changed paths in build_zano.sh

* build_zano.sh

* edit_token_page.dart - removed flag skipZanoAddressValidation

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

* lib/core/address_validator.dart - updated zano address regex
lib/src/screens/dashboard/edit_token_page.dart - using AddressValidator().call

* fix zano build issues on android

* remove contrib/depends to save space

* move async call to a synchronouse one

* call sync call in isolate to make it async
generate framework for iOS as well
fix UR issues

* zano changes from monero_c repo

* update monero_c hash

* fix invalid zano imports, add support for linux, speed up CI builds

* update monero_c hash

* bump monero_c commit (yes, again, I know)

* fix wallet resttore, fix hardcoded IP

* fix regex, don't throw error when opening wallet, fix tx history, fix async calls, move stuff to isolate

* fix api calls in async transaction creation

* fix configure script

* update build scripts

* fix some build issues

* update dependencies

* fix dependencies

* update ci scripts

* Improve multithread use of zano api

* Fix build issue

* fix zano node selection, move other zano calls to separate isolate

* update moneroc hash
WIP fixes for zano

* update monero_c

* fix monero.com builds

* sync wallet after connecting

* update monero_c

* Fix windows builds

* update monero_c

* print -> printV

* update monero_c

* unshallow submodule

* cherry pick CW-867 Wownero fixes (#1881)

* fix wownero syntax error

* remove print statements in zano

* update zano node URL

* [PATCH] Apply new CI script (https://github.com/cake-tech/cake_wallet/pull/1948)

* drop env -i to fix cmake build errors on newer system

* Update lib/view_model/wallet_keys_view_model.dart [skip ci]

* Update lib/view_model/wallet_keys_view_model.dart [skip ci]

* Update tool/configure.dart [skip ci]

* Update lib/view_model/wallet_new_vm.dart

* [skip ci] Revert "[PATCH] Apply new CI script (https://github.com/cake-tech/cake_wallet/pull/1948)"

This reverts commit 5acb5bfe57.

* [run tests] [skip slack] Fix env in build

* Dynamically detect number of cores used to build monero_c, since it appears that zano requires more memory to link (and it reliably fails for first couple builds due to OOM on CI/VM with memory constrains).
Drop unshallowing of all modules
[run tests]

* Changes from review [run tests]

* drop zano on linux (missing symbols)
fix wownero on linux
add aarch64-linux-gnu
[run tests]

* - remove duplicate entry in addToken()
- use walletPassword in createZanoNewWalletCredentials
- remove createZanoRestoreWalletFromKeysCredentials
[run tests]

* [skip ci] update dockerfile

* reuse existing passphrase field

* add passphrase support for zano

* Drop aarch64-linux-gnu for now.

* fix passphrase display, fix gray screen

* catch errors in polyseed encryption, encrypt only polyseed, fix coin in wownero

* update monero_c
update wownero to 0.11.3.0

* Show passphrase only when non-empty, fix passphrase being displayed as view key private.

* fix NanoAccountListPage showing up instead of MoneroAccountListPage for wownero

* build zano dependencies on android

* fix parameter issue

* minor merge leftover [skip ci]

* minor cleanup [skip ci]

* fix zano alias
update eth url for ens lookup
change $MAKE_JOB_COUNT to $NPROC

* minor cleanup [skip ci]

* fix zano alias

* Disable passphrase for creation of xmr/wow/zano
minor fixes

* fix zano on iOS

* - Fix get token data
- Enable unavailable balance
- Enable confirmations count
- Adjust explorer link

---------

Co-authored-by: leo <leonid.ivanov@gmail.com>
Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
Co-authored-by: cr.zoidberg <crypto.zoidberg@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>

---------

Co-authored-by: cyan <cyjan@mrcyjanek.net>
Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
Co-authored-by: leo <leonid.ivanov@gmail.com>
Co-authored-by: cr.zoidberg <crypto.zoidberg@gmail.com>
2025-01-24 20:33:24 +02:00
Omar Hatem
9cda2c99e7
Add Chainflip exchange provider (#1807) (#1970)
* Add Chainflip exchange provider (#1807)

* feat: add Chainflip exchange provider

feat: add chainflip provider (fetchLimits and fetchRate)
feat: add createTrade
feat: add icon
feat: add swap status
feat: add FLIP to list
feat: add to transaction list, with target amount
feat: update receivedAmount with real values
style: dart formatting
feat: update received amount
chore: cleanup space and typo

* fix: use correct retryDurationInBlocks

* feat: use secrets for api key

---------

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

* Add secrets to workflow

* revert boostfee change

* minor ui fix [skip ci]

---------

Co-authored-by: David Cumps <david@cumps.be>
2025-01-24 20:17:37 +02:00
Matthew Fosse
199ada3fa9
Mweb fixes (#1972)
* quick fix [still investigating]

* cleaner quick fix

* cleaner quick fix

* log fix

* save to downloads would require an additional permission

* change address handling updates [skip ci]

* should change address not updating

* change address handling updates

* remove unnecessary code + don't reset change address index to 0
2025-01-24 20:09:48 +02:00
Serhii
9673b7c026
Cw 865 create new seed UI for show seed keys page to match onboarding seed verification UI (#1961)
* update wallet keys page UI

* localisation

* hide keys tab for electrum wallets

* Fix padding for tab view

* Fix more padding

* add height box for isLegacySeedOnly

* revert adding tar.gz files [skip ci]

---------

Co-authored-by: tuxpizza <tuxsudo@tux.pizza>
2025-01-24 20:08:33 +02:00
Serhii
4fe2be3c92
fix node QR Code URI parsing (#1916)
* fix:node QR Code URI parsing

* optionally include user data

* fix for qr scaner
2025-01-24 20:05:08 +02:00
Serhii
c88809133f
Cw 897 stable coins exchanges rate issue (#1939)
* update amount in UI when best rate changes

* minor fixes

* update rate when amount has changed
2025-01-24 20:03:17 +02:00
Konstantin Ullrich
066eec2b26
CW-855-Transactions-not-cleared-correctly-when-switching-wallets (#1973)
* DashboardViewModel is now a lazy Singleton

* DashboardViewModel is now a lazy Singleton

* Remove debug print
2025-01-24 20:01:50 +02:00
Serhii
5b9baf541b
Cw 903 new screens for new shared seed wallets (#1967)
* Update seed verification flow for group wallets

* Update res/values/strings_en.arb [skip ci]

* Update res/values/strings_ko.arb [skip ci]

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-01-22 21:40:06 +02:00
cyan
aef71d16f1
CW-860 Fix status for http auth nodes (#1943) 2025-01-20 17:52:13 +02:00
OmarHatem
2fb07dd5d4 unfocus fields when tapping button
Minor cleanup [skip ci]
2025-01-17 16:31:57 +02:00
OmarHatem
1f37f6b756 Merge remote-tracking branch 'origin/main' 2025-01-16 19:47:22 +02:00
OmarHatem
24c96edc85 unfocus fields when tapping exchange [skip ci] 2025-01-16 19:46:53 +02:00
Omar Hatem
c66a93580a
Update wellknown_record.dart [skip ci] 2025-01-16 00:21:54 +02:00
Matthew Fosse
60e7dcffa9
.well-known domain support (#1956)
* add well-known setting [wip]

* should work

* fix

* minor fix (tested and working)
2025-01-16 00:03:30 +02:00
cyan
f072bc8dce
Pin ledger_flutter_plus dependency to fix builds (#1965) 2025-01-15 23:15:42 +02:00
cyan
f431091f5e
Hotfix CI (#1963)
* [skip slack] It looks like during our sleep github decided to break artifact upload api..

* [skip slack] Name the artifact
2025-01-15 15:24:29 +02:00
cyan
3e10023e18
CW-827 CI/CD update (#1948)
* CI update
- use existing build outputs in build_monero_all.sh
- update $HOME, fix gh actions
- add secrets earlier in the runtime (potentially speed up 'Build generated code' step)
- add windows dockerfile
- add linux/android dockerfile
- update android/linux ci script

* [skip slack] [run tests] Run tests on CI, fix tests

* [skip slack] [run tests] force enable kvm in android

* [skip slack] [run tests] remove inexisting flag

* [run tests] [skip slack] update tests

* add extra dependencies [skip ci]

* [skip slack] [run tests] Add secrets

* [skip slack] [run tests] Timeout test cases, continue on error

* [skip slack] [run tests] Xvfb fix, timeout fix

* [skip slack] [run tests] Start dbus to clean up the logs, use SIGKILL

* [skip slack] [run tests] Enable network manager

* [skip slack] [run tests] Screen record test, resize screen

* [skip slack] [run tests] Improve status report for tests

* [skip slack] [run tests] Increase framerate

* [skip slack] [run tests] Remove test that I am unable to fix locally easily from CI

* [skip slack] [run tests] Simplify ffmpeg command

* [skip slack] [run tests] Increase timeout, add comment

* [skip slack] Update dockerfile, migrate from mrcyjanek to cake-tech for the ghcr org

* Update lib/entities/default_settings_migration.dart

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

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-01-15 13:09:59 +02:00
hidewrong
80b116b8ae
chore: fix some typos for build-guide-*.md (#1958)
Signed-off-by: hidewrong <hidewrong@outlook.com>
2025-01-14 16:34:53 +02:00
OmarHatem
206c7159c2 minor fix [skip ci] 2025-01-13 13:06:43 +02:00
cyan
e42d49f3ed
fix print in default_settings_migration (#1953)
* fix print in default_settings_migration

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

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-01-11 22:36:41 +02:00
cyan
82b65e8934
Fix normal wallets showing export outputs QR code (#1952) 2025-01-11 22:35:45 +02:00
Kainoa Kanter
b865e5e38b
Closes #873 (#1928) 2025-01-11 16:05:25 +02:00
OmarHatem
eb2827402a revert beta testers change 2025-01-08 05:12:57 +02:00
OmarHatem
55005f8b39 await settings migration 2025-01-08 05:09:45 +02:00
Omar Hatem
d1c45a5326
4.22.1 RC (#1932)
* 4.22.1 RC

* minor cleanup [skip ci]

* Fix frozen balance not displaying at startup issue

* Monero balance tx display issue (#1934)

* minor cleanup [skip ci]

* Fix frozen balance not displaying at startup issue

* fix transactions not updating (stupid mobx reactions :3)

* [skip ci]
2025-01-05 03:11:44 +02:00
tuxsudo
cee3abcb72
Balance card fixes (#1933) 2025-01-04 08:50:06 +02:00
cyan
da9c309805
CW-873 automatically export outputs (#1885)
* automatically export outputs

* remove print statements

* update configure script

* Update logic behind import/export keyimages/outputs

* discussed changes

* replace store with just waiting for the wallet to update it's state
2025-01-04 06:28:04 +02:00
tuxsudo
e64b87a1b0
Hidden balance (#1921)
* Change balance hiding behaviour

* Update hiding behaviour and add strings

* Add touch feedback to balance card

* Remove color from TextButton

* Add toast to balance card

* Add missing string

* minor code improvement [skip ci]

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-01-03 23:47:02 +02:00
Serhii
bc80fa68df
fix buy sell fiat calculation (#1930)
* fix buy sell fiat calculation

* skip IsReadyToTrade reaction

* Update lib/src/screens/buy/buy_sell_page.dart [skip ci]

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2025-01-03 22:29:53 +02:00
OmarHatem
471a2af527 minor fixes [skip ci] 2025-01-03 13:49:15 +02:00
Omar Hatem
52e20e1a44
Fix Sending SPL token issue (#1924)
* Fix creating ATA

* give more buffer for the transaction to be broadcast [skip ci]
2025-01-03 08:55:01 +02:00
Omar Hatem
5ea443235d
Disable mweb coins for exchanges (#1919)
* Disable mweb coins for exchanges

* Take into consideration to not use non-mweb coins in ALL calculations
2025-01-03 08:53:15 +02:00
Omar Hatem
0ebfd671f9
Revert "Fix unavailable balance not refreshing after the app got opened (#1920)" (#1925)
This reverts commit d33a901f66.
2025-01-02 18:02:44 +02:00
Omar Hatem
f2bdb32463
Fix Mobx issue (#1922) 2025-01-02 00:14:00 +02:00
cyan
d33a901f66
Fix unavailable balance not refreshing after the app got opened (#1920) 2024-12-31 18:47:17 +02:00
Omar Hatem
9b27121261
Rename linux app (#1911) 2024-12-31 17:04:18 +02:00
Omar Hatem
a2cb994c09
Fix fee check for erc20 transactions (#1915) 2024-12-31 17:03:36 +02:00
Omar Hatem
84cc0576d5
fix creating associated token account (#1918) 2024-12-31 17:03:17 +02:00
OmarHatem
26c1f0b85c remove print 2024-12-31 08:06:56 +02:00
OmarHatem
c880dbd83c fix creating associated token account 2024-12-31 07:33:45 +02:00
OmarHatem
eb8c6a76e2 fix openAlias resolver not being reached 2024-12-30 20:58:58 +02:00
Matthew Fosse
831a6d9f9a
Cw 872 nano enhancements (#1909)
* fix headers on all api calls

* fix duplicate nano nodes on fresh install, api key fixes

* fix liveness indicators + false positive responses to queries
2024-12-30 18:46:09 +02:00
Omar Hatem
214fc7113c
Fix electrum unspent coins error (#1912)
* Refresh unspent coins before creating a transaction

* disable seed verification in debug mode [skip ci]
2024-12-29 23:48:53 +02:00
Serhii
4cdee649d1
fix cakepay text encoding (#1902)
* fix text encoding

* fix initial encoding
2024-12-28 08:06:37 +02:00
OmarHatem
2fe2f58cb4 fix available balance for monero/wownero 2024-12-28 07:15:59 +02:00