mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-27 22:19:41 +00:00
07a3622f55
commit1ca09e692d
Author: Serhii <borodenko.sv@gmail.com> Date: Thu Jun 29 16:44:31 2023 +0300 Revert "Merge branch 'linux/password-direct-input' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input" This reverts commit424cf2e635
, reversing changes made toe1fe03ca28
. commit02eead0014
Author: Serhii <borodenko.sv@gmail.com> Date: Thu Jun 29 16:38:36 2023 +0300 Revert " fix routing and context issue" This reverts commite1fe03ca28
. commit424cf2e635
Merge:e1fe03ca
fc18b2dc
Author: Serhii <borodenko.sv@gmail.com> Date: Thu Jun 29 14:01:18 2023 +0300 Merge branch 'linux/password-direct-input' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input commite1fe03ca28
Author: Serhii <borodenko.sv@gmail.com> Date: Thu Jun 29 14:00:12 2023 +0300 fix routing and context issue commitfc18b2dc52
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 22:25:27 2023 +0300 - Pump Linux version - Fix conflicts with main commit2da9112aa2
Merge:e592c892
3f2af133
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 22:14:52 2023 +0300 Merge branch 'v4.6.7_v1.3.8' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input Conflicts: cw_bitcoin/lib/electrum_wallet.dart lib/di.dart lib/main.dart lib/src/screens/dashboard/widgets/market_place_page.dart commit3f2af1334d
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 21:43:33 2023 +0300 Pump app versions and update release notes commit8ffad4bf80
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 19:54:34 2023 +0300 Revert removing swipe to delete wallet feature commit337bfd0527
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jun 16 17:05:00 2023 +0300 - Replace payfura widget with direct browser link - Remove Payfura widget class as it is duplicate for the web view page commite592c892cc
Author: Rafael Saes <76502841+saltrafael@users.noreply.github.com> Date: Fri May 26 17:16:36 2023 -0300 fix: theme refactor for wallet_unlock_page.dart (#951) commit76559e50d6
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri May 26 21:52:02 2023 +0300 Remove secure storage commit825c99094f
Merge:5ba313cb
19cbc40e
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri May 26 21:16:08 2023 +0300 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input commit5ba313cb13
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri May 26 16:43:30 2023 +0300 Fix Conflicts with main commit53d3db5340
Merge:3ddb6c0a
75c65d67
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri May 26 15:09:55 2023 +0300 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into linux/password-direct-input Conflicts: cw_core/lib/wallet_base.dart lib/core/auth_service.dart lib/di.dart lib/main.dart lib/router.dart lib/routes.dart lib/src/screens/dashboard/desktop_widgets/desktop_wallet_selection_dropdown.dart lib/src/screens/restore/restore_wallet_from_seed_page.dart lib/src/screens/settings/security_backup_page.dart lib/src/screens/wallet_list/wallet_list_page.dart lib/store/settings_store.dart lib/view_model/wallet_creation_vm.dart macos/Podfile.lock pubspec_base.yaml res/values/strings_bg.arb res/values/strings_en.arb res/values/strings_id.arb res/values/strings_my.arb res/values/strings_nl.arb res/values/strings_pt.arb res/values/strings_ru.arb res/values/strings_th.arb res/values/strings_tr.arb res/values/strings_uk.arb res/values/strings_ur.arb res/values/strings_zh.arb commit3ddb6c0a40
Author: M <m@cakewallet.com> Date: Thu Apr 27 21:17:41 2023 -0400 Add flatpak section to Linux build guide. commit89980cac5a
Author: M <m@cakewallet.com> Date: Thu Apr 27 20:51:35 2023 -0400 Add flatpak manifest. Add desktop file for Linux. commit0dc2effe41
Author: M <m@cakewallet.com> Date: Tue Apr 25 16:44:14 2023 -0400 Add check gcc and troubleshooting section to Linux build guide. commitd4b96d6f98
Author: M <m@cakewallet.com> Date: Fri Apr 21 18:08:42 2023 -0400 Add build guide for Linux. commitc7138a9124
Author: M <m@cakewallet.com> Date: Fri Apr 21 18:06:05 2023 -0400 Make `model_generator.sh` executable. commitd45df36238
Author: M <m@cakewallet.com> Date: Fri Apr 21 18:02:19 2023 -0400 Add ability to get random bytes on Linux. Used same method as in cake backups. commit5c2490e721
Author: M <m@cakewallet.com> Date: Fri Apr 21 15:55:26 2023 -0400 Update boost version for Linux to 1.82. Update monero for Linux to 0.18.2.2. commitd251539f13
Author: M <m@cakewallet.com> Date: Fri Apr 21 11:48:02 2023 -0400 Change package_info to package_info_plus commita90966b640
Author: M <m@cakewallet.com> Date: Wed Apr 19 17:20:04 2023 -0400 Remove unused constant MONERO_BLOCK_SIZE in ios/Classes/monero_api.cpp commitd34dca99ed
Author: M <m@cakewallet.com> Date: Wed Apr 19 16:11:01 2023 -0400 Remove duplication for routes. Removed unused constant and fixed TransactionInfoRow iterator for macos/Classes/monero_api.cpp. commit2ff6cf43b3
Merge:2e19e9d2
27961f2f
Author: M <m@cakewallet.com> Date: Wed Apr 19 15:18:43 2023 -0400 Merge branch 'main' of github.com:cake-tech/cake_wallet into linux/password-direct-input commit2e19e9d2b6
Author: M <m@cakewallet.com> Date: Tue Apr 18 16:45:32 2023 -0400 Fixes for Linux build scripts. Fixes for load cw_monero on Linux. Catch exception for get PackageInfo in SettingsStore. Add `excludeFlutterSecureStorage` to app_config.sh for Linux. Add FUNCTION_VISABILITY_ATTRIBUTE for monero_api.cpp. commit9cd02b7541
Merge:8efedbcc
786ba3b0
Author: M <m@cakewallet.com> Date: Tue Apr 18 15:45:32 2023 -0400 Merge branch 'desktop-linux' of github.com:cake-tech/cake_wallet into linux/password-direct-input commit8efedbccf6
Author: M <m@cakewallet.com> Date: Thu Apr 13 19:48:51 2023 -0400 Add ability to set custom data application directory commitf52c45b167
Author: M <m@cakewallet.com> Date: Mon Apr 10 19:16:13 2023 -0400 Change encryption method for electrum wallets is wallet password provides directly. Add ability to user for repeat wallets password and compare with original wallet password before wallet creation for cases when wallet password provides directly. commit3b82a390c1
Author: M <m@cakewallet.com> Date: Thu Mar 30 18:33:59 2023 -0400 Add ability to enter wallet password directly. Add ability to build without flutter secure storage. Add `excludeFlutterSecureStorage` flag to too/configure.dart for settings for secure storage. Add wallet unlock screen. commita70b6f298c
Merge:f0164db4
14a4d413
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Mon Feb 27 15:11:54 2023 +0200 Merge pull request #804 from cake-tech/desktop-ui-enhancements Desktop UI enhancements commit14a4d41339
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Feb 25 00:07:15 2023 +0200 Fixate MobX version to fix restore issue commite8fa3953b5
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 17:17:30 2023 +0200 Fix Navigation animation for settings screens commit89aaa9bfef
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:49:37 2023 +0200 Add back wallet settings page to desktop settings actions commit26a7bfcee5
Merge:f00dc913
f0164db4
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:39:01 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into desktop-ui-enhancements commitf0164db47f
Merge:f050f022
143a6eec
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:38:35 2023 +0200 Merge pull request #802 from cake-tech/CW-321-lock-app-feature-on-mac Add app lock feature on mac commit143a6eecf5
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:38:05 2023 +0200 pop only PIN screen after successful auth commita210a1e325
Merge:538220f7
f050f022
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:23:36 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-321-lock-app-feature-on-mac commitf00dc9132c
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:19:59 2023 +0200 Fix UI issues Add missing translation commit05b1bb05c4
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:18:31 2023 +0200 Enable adding contact from send screen commitb7e9237963
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 15:18:01 2023 +0200 Add Nano currency image commit538220f7bc
Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 24 14:50:19 2023 +0200 Add assertion to avoid null commit770ed710d7
Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 24 14:24:40 2023 +0200 Add app lock feature on mac commitf050f022b6
Merge:f8acc1c0
ac099075
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 24 00:40:19 2023 +0200 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view Conflicts: lib/src/screens/buy/onramper_page.dart lib/src/screens/seed/wallet_seed_page.dart pubspec_base.yaml res/values/strings_de.arb res/values/strings_en.arb res/values/strings_es.arb res/values/strings_fr.arb res/values/strings_hi.arb res/values/strings_hr.arb res/values/strings_it.arb res/values/strings_ja.arb res/values/strings_ko.arb res/values/strings_nl.arb res/values/strings_pl.arb res/values/strings_pt.arb res/values/strings_ru.arb res/values/strings_uk.arb res/values/strings_zh.arb commitf8acc1c007
Merge:67503f39
d3eb22e1
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 23 21:56:50 2023 +0200 Merge pull request #791 from cake-tech/fix-desktop-colors-addressbook Fix desktop background color and address book view issues commitd3eb22e1d4
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 21:16:28 2023 +0200 Replace removed code commit8d482464d9
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 18:56:20 2023 +0200 Fix ionia input field alignment commit67503f393d
Merge:99344600
016bca01
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 23 18:24:32 2023 +0200 Merge pull request #797 from cake-tech/align-create-restore-screens Fix alignment in create and restore wallet screens commit016bca01f4
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 18:18:40 2023 +0200 remove unused code commit9934460004
Merge:7a504abc
bba0ce2e
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 23 18:06:27 2023 +0200 Merge pull request #796 from cake-tech/fix-popup-width-constraints Fix Popup width constraint and add focus orders commitbba0ce2ec6
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 18:03:44 2023 +0200 Remove autofocus commit28c599e68a
Merge:d5e9982e
7a504abc
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 17:51:26 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into align-create-restore-screens commitd5e9982e91
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 23 16:03:20 2023 +0200 override navbar with desktopnavbar commit7a504abc01
Merge:c05d70b1
9616974d
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Wed Feb 22 19:31:37 2023 +0200 Merge pull request #787 from cake-tech/macos-fix-settings-create-wallet Fix wallet create in settings commit9616974d33
Merge:75d52794
24dc9bea
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Wed Feb 22 19:05:20 2023 +0200 Merge pull request #790 from cake-tech/add-create-restore-dropdown Add create and restore wallet options to dropdown menu commit24dc9bea27
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 22 18:47:00 2023 +0200 remove space commit6dc4eafff4
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 22 18:44:49 2023 +0200 Fix dropdown change state bug Hide scanner for desktop commitc41b6b7f89
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 22 16:17:26 2023 +0200 Fix alignment in create and restore wallet screens commit07f6f43e0b
Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Feb 21 22:05:02 2023 +0200 refactor dropdown items commit88e245e480
Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Feb 21 12:22:32 2023 +0200 Fix issues from code review commitc05d70b118
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 21 01:52:47 2023 +0200 Fix variable name commit44b1eec81d
Author: Godwin Asuquo <godilite@gmail.com> Date: Mon Feb 20 23:24:19 2023 +0200 Fix Popup width constraint and add focus orders commit17aa72e460
Merge:1b892288
c920b62a
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Mon Feb 20 14:48:22 2023 +0200 Merge pull request #792 from cake-tech/add-keyboard-control Add keyboard control for desktop commitcf125d1e06
Author: Godwin Asuquo <godilite@gmail.com> Date: Sat Feb 18 14:23:48 2023 +0200 Fix issue from code review commitc920b62aa0
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Feb 18 00:13:51 2023 +0200 Add onFieldSubmitted to allow "enter" button interaction commit59a79242af
Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 17 19:06:41 2023 +0200 Fix input field commit52468e1331
Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 17 18:19:26 2023 +0200 Fix desktop background color and address book view issues commit4bc81242fc
Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 17 16:41:49 2023 +0200 Add create and restore wallet options to dropdown menu commit75d52794f4
Merge:e0970fa1
1b892288
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 16 18:27:19 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into macos-fix-settings-create-wallet commite0970fa182
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 16 18:05:10 2023 +0200 fix pageview controller reset index commit1b89228893
Merge:bb05573c
4027ea04
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 16 17:57:43 2023 +0200 Merge pull request #745 from cake-tech/CW-301-desktop-side-bar-ui Add desktop sidebar commit4027ea04eb
Merge:dd13172c
0015f41a
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 16 17:54:54 2023 +0200 Merge pull request #775 from cake-tech/CW-311-remove-drawer-from-mac-os Replace drawer icon for mac os commit0015f41a0d
Merge:5a77aa20
55bf964a
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Thu Feb 16 17:52:24 2023 +0200 Merge pull request #785 from cake-tech/desktop-ui-for-exchange-send Desktop UI for exchange send commit55bf964a27
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 16 17:51:52 2023 +0200 - Use close icon on main screens - Minor UI fixes commit5296a2118a
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 23:50:15 2023 +0200 Remove duplicated constrains commit2496a6574a
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 15 22:14:07 2023 +0200 remove unnecessary code commitf0c4952809
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 15 22:13:24 2023 +0200 remove unnecessary code commit3dcf5b05a5
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 15 22:11:34 2023 +0200 Fix wallet create in settings commit8de9c80fe1
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 20:55:06 2023 +0200 Rename misleading variable Change initial mac window size commitf8d70e7ce6
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 16:07:46 2023 +0200 Fix UI issues, paddings and alignments commitb1947426fb
Merge:843db656
5a77aa20
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 03:09:38 2023 +0200 Merge branch 'CW-311-remove-drawer-from-mac-os' of https://github.com/cake-tech/cake_wallet into desktop-ui-for-exchange-send Conflicts: lib/src/screens/dashboard/desktop_dashboard_page.dart lib/src/screens/dashboard/desktop_widgets/desktop_sidebar_wrapper.dart commit843db65603
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 01:28:10 2023 +0200 Add width constraints to desktop dashboard commit5a77aa2017
Merge:107e136f
6caeae28
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Wed Feb 15 01:20:05 2023 +0200 Merge pull request #786 from cake-tech/CW-312-mac-os-settings-icon-to-be-a-toggle MacOS settings icon to be a toggle commit6caeae2817
Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Feb 14 21:55:13 2023 +0200 Add padding to support page commitea09bba0fb
Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Feb 14 21:53:17 2023 +0200 Make side menu items toggle back to dashboard commit02fe3c008f
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 14 18:05:44 2023 +0200 Constrain primary Buttons width commitfb5efc0429
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 14 18:01:24 2023 +0200 Fix Desktop dashboard actions background color commit8f76232937
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 14 17:21:09 2023 +0200 - Change design/paddings for Send page on desktop view - Make AddTemplateButton instead of having it duplicated in send/exchange commitbd04383b7c
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Feb 14 01:36:34 2023 +0200 Change Exchange page UI depending on platform commit10b877f55e
Merge:107e136f
dd13172c
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Feb 11 00:48:16 2023 +0200 Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-311-remove-drawer-from-mac-os commitdd13172cfe
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Feb 11 00:41:48 2023 +0200 Add max width constrain to Welcome page commit107e136f52
Author: Godwin Asuquo <godilite@gmail.com> Date: Sat Feb 11 00:35:11 2023 +0200 remove empty line commitbdfe070f8d
Author: Godwin Asuquo <godilite@gmail.com> Date: Sat Feb 11 00:32:26 2023 +0200 Refactor sidebar state management commit770e3b6f52
Merge:99bb3cce
5fa50c76
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 23:29:36 2023 +0200 Merge pull request #774 from cake-tech/CW-310-add-constraints-to-images-on-macos [CW-310] Add constraints to images on macos commit5fa50c7668
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 23:27:19 2023 +0200 Fix Constrained width screens UI commitc1bf0ee7aa
Merge:eb3b2464
99bb3cce
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 22:54:13 2023 +0200 Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-310-add-constraints-to-images-on-macos Conflicts: lib/src/screens/pin_code/pin_code_widget.dart commit99bb3cce47
Merge:2623546b
3fb8be00
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 22:34:18 2023 +0200 Merge pull request #779 from cake-tech/CW-318-desktop-marketplace Add Marketplace to dashboard view commit3fb8be0053
Merge:887afdad
2623546b
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 22:33:31 2023 +0200 Merge branch 'CW-301-desktop-side-bar-ui' of https://github.com/cake-tech/cake_wallet into CW-318-desktop-marketplace Conflicts: lib/src/screens/dashboard/desktop_widgets/desktop_dashboard_actions.dart commit2623546b5e
Merge:2b2bebe9
2ea360d8
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 22:09:55 2023 +0200 Merge pull request #776 from cake-tech/CW-309-allow-pin-keyboard-entry-on-macos Allow Keyboard usage on PIN screen commit887afdadd0
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 20:39:23 2023 +0200 Change ionia welcome page animation commit2b2bebe98f
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 20:26:07 2023 +0200 Refresh desktop dashboard actions on wallet change commiteb3b246437
Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 10 20:19:13 2023 +0200 Add empty trailing to center page title on desktop commit32d2bf2c85
Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 10 20:07:53 2023 +0200 Update widget contraints commit89fe8df459
Author: Godwin Asuquo <godilite@gmail.com> Date: Fri Feb 10 19:45:48 2023 +0200 Update trailing icon to open transaction page commit6d49e6a543
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 18:40:50 2023 +0200 Add Marketplace to dashboard view commit2ea360d81d
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Feb 10 18:15:05 2023 +0200 Fix desktop nav bar UI commit677305f625
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 9 22:53:02 2023 +0200 - Listen to keyboard events in PIN screen - Fix PIN buttons style commit1831ebf435
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 9 20:29:38 2023 +0200 Remove drawer from mac os commit150d43b2da
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 9 20:11:20 2023 +0200 constraint images and pincoded box commita116241185
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 9 19:17:52 2023 +0200 Separate Dashboard desktop view from mobile view commit5c89c42540
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 9 16:53:07 2023 +0200 [skip ci] remove .project changes commitdd2bf60b01
Author: Godwin Asuquo <godilite@gmail.com> Date: Thu Feb 9 16:51:49 2023 +0200 [skip ci] remove .project changes commit167eae1293
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 9 16:10:43 2023 +0200 Revert changes in .gitignore commit30d16266c0
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Feb 9 16:02:02 2023 +0200 Revert removing .lock files commit3c17310a5b
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 8 22:12:11 2023 +0200 [skip ci] reformat desktop dashboard commit48ae156eb8
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 8 21:57:26 2023 +0200 [skip ci] reformat desktop dashboard commitb1b8193043
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 8 20:41:46 2023 +0200 Fix issues from code review commita1abdc849a
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Feb 8 18:56:00 2023 +0200 Fix bug on sidebar reset commit3f03fb0b18
Merge:69651b3e
9f69de80
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Wed Feb 8 15:50:37 2023 +0200 Merge pull request #769 from cake-tech/fix-buy-feature-on-macos Fix buy feature on macos commit9f69de8057
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 8 15:49:26 2023 +0200 Remove Podfile.lock from cache commit738621254f
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Feb 8 15:46:57 2023 +0200 Add pubspec.lock and Podfile.lock to gitignore commit26b79fe0cd
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Feb 6 18:23:40 2023 +0200 - Refactor onRamper to have a single point of modification - Enlarge initial app size - update Flutter and Packages commitdea81f92e3
Merge:c7db7b99
69651b3e
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 31 16:48:36 2023 +0200 Merge remote-tracking branch 'origin/CW-301-desktop-side-bar-ui' into CW-301-desktop-side-bar-ui commit69651b3eb4
Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Jan 31 15:30:46 2023 +0200 Remove constants commitc7db7b99a5
Merge:9ed77cd6
4902dc8d
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 31 15:23:47 2023 +0200 Merge remote-tracking branch 'origin/CW-301-desktop-side-bar-ui' into CW-301-desktop-side-bar-ui commit4902dc8dd4
Merge:d12bcc80
bb05573c
Author: Godwin Asuquo <godilite@gmail.com> Date: Tue Jan 31 15:12:01 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-301-desktop-side-bar-ui commit9ed77cd6f9
Merge:d12bcc80
bb05573c
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 23:43:09 2023 +0200 Merge branch 'dashboard-desktop-view' of https://github.com/cake-tech/cake_wallet into CW-301-desktop-side-bar-ui Conflicts: lib/src/screens/dashboard/dashboard_page.dart commitbb05573c3a
Merge:de2b887a
c20eb232
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 23:33:44 2023 +0200 Merge pull request #753 from cake-tech/mac-os-icons Mac os icons commitd12bcc80d1
Author: Godwin Asuquo <godilite@gmail.com> Date: Mon Jan 30 23:32:31 2023 +0200 Fix exchange page as fullScreenDialog commitde2b887a9b
Merge:abf5f0b7
adfebe69
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 23:31:59 2023 +0200 Merge branch 'mac-os-fixes' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view commitc20eb2325e
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 23:28:15 2023 +0200 Change Mac os app name and bundle id commitdeadc93a76
Author: Godwin Asuquo <godilite@gmail.com> Date: Mon Jan 30 23:23:42 2023 +0200 fix dashboard sidebar and responsive utils commitabf5f0b7c6
Merge:b6666ca4
5b50ea05
Author: Omar Hatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 22:28:24 2023 +0200 Merge pull request #754 from cake-tech/desktop-appbar-view Desktop AppBar commit94184d69d6
Author: Godwin Asuquo <godilite@gmail.com> Date: Mon Jan 30 17:26:40 2023 +0200 localize settings commitd5957b9873
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Mon Jan 30 16:01:37 2023 +0200 Generate MacOS icons commit5b50ea053e
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sun Jan 29 16:49:42 2023 +0200 Add Wallet selection dropdown to dashboard desktop view commitb6666ca405
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Sat Jan 28 17:13:34 2023 +0200 Ignore increasing brightness for non-mobile platforms commit75f33a433e
Author: Godwin Asuquo <godilite@gmail.com> Date: Sat Jan 28 12:43:44 2023 +0200 refactor desktop settings sidebar commitadfebe6940
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 26 20:53:26 2023 +0200 Temporarily fetch unstoppable domains only on mobile commit132033207e
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 26 02:33:15 2023 +0200 Remove unstoppable domain from macos since it's not supported commit409c13a77a
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 26 02:25:28 2023 +0200 Remove wake lock native code and just use the ready made package commit90a7432bf9
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 26 02:05:48 2023 +0200 - Remove legacy migration from macos - Remove wake lock native code and just use the ready made package commit6b2bf313a3
Merge:42a28d42
e8c1d863
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 18:24:57 2023 +0200 Merge branch 'mac-os-fixes' of https://github.com/cake-tech/cake_wallet into dashboard-desktop-view commit20ae8d530f
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Jan 25 16:17:50 2023 +0200 [skip ci] Add desktop sidebar commitba09a24d53
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Jan 25 16:14:34 2023 +0200 [skip ci] Add desktop sidebar commit4f1f51e0aa
Author: Godwin Asuquo <godilite@gmail.com> Date: Wed Jan 25 15:57:56 2023 +0200 Add desktop sidebar commite8c1d86373
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 02:38:28 2023 +0200 Add platform channel specific code for mac os commit4aebbdace7
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 00:14:28 2023 +0200 Revert mac os version commitfa072ff2f1
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 00:11:18 2023 +0200 Revert mac os version commit6e03d2933d
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 25 00:07:11 2023 +0200 Revert back to Cake fork for secure storage commitc3c81f7685
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 24 23:58:06 2023 +0200 Revert back to Cake fork for secure storage commitd41e7b7bab
Merge:ed0d87c8
ae3620b1
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jan 20 18:24:39 2023 +0200 Merge branch 'desktop-mac-os' of https://github.com/cake-tech/cake_wallet into mac-os-fixes commited0d87c893
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jan 20 17:45:54 2023 +0200 Update deployment target to 10.13 commitdac7f8e1b3
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Fri Jan 20 15:02:08 2023 +0200 Add Bundle ID in entitlements files through app config script commit786ba3b042
Author: M <m@cakewallet.com> Date: Thu Jan 19 18:14:46 2023 -0500 Add linux application to the project. commitae3620b171
Author: M <m@cakewallet.com> Date: Thu Jan 19 15:54:59 2023 -0500 Fix arch match for monero lib for darwin x86_64 -> x86-64 commit42a28d4246
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Thu Jan 19 04:04:20 2023 +0200 Add on Tap to desktop_action_button.dart Remove unused functions commit42a7439315
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Wed Jan 18 22:11:59 2023 +0200 Change Dashboard view on desktop size screens commit9f1e663719
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 17 22:06:05 2023 +0200 Add network access to mac commit456ba28cb2
Author: OmarHatem <omarh.ismail1@gmail.com> Date: Tue Jan 17 21:10:39 2023 +0200 - Update Flutter secure storage to work with macos - Enable uni links only on Mobile - Update devcelocale to work with macos commit31fa9e8b19
Author: M <m@cakewallet.com> Date: Tue Jan 10 21:15:24 2023 -0500 Add build scripts for macOS. Add macos for cw_monero plugin. Add macos proj to the application.
306 lines
9.9 KiB
Dart
306 lines
9.9 KiB
Dart
import 'dart:convert';
|
|
|
|
import 'package:cake_wallet/exchange/exchange_pair.dart';
|
|
import 'package:cake_wallet/exchange/exchange_provider.dart';
|
|
import 'package:cake_wallet/exchange/exchange_provider_description.dart';
|
|
import 'package:cake_wallet/exchange/sideshift/sideshift_request.dart';
|
|
import 'package:cake_wallet/exchange/trade_not_created_exeption.dart';
|
|
import 'package:cake_wallet/exchange/trade_not_found_exeption.dart';
|
|
import 'package:cake_wallet/exchange/trade_state.dart';
|
|
import 'package:cake_wallet/.secrets.g.dart' as secrets;
|
|
import 'package:cw_core/crypto_currency.dart';
|
|
import 'package:cake_wallet/exchange/trade_request.dart';
|
|
import 'package:cake_wallet/exchange/trade.dart';
|
|
import 'package:cake_wallet/exchange/limits.dart';
|
|
import 'package:http/http.dart';
|
|
|
|
class SideShiftExchangeProvider extends ExchangeProvider {
|
|
SideShiftExchangeProvider() : super(pairList: _supportedPairs());
|
|
|
|
static const affiliateId = secrets.sideShiftAffiliateId;
|
|
static const apiBaseUrl = 'https://sideshift.ai/api';
|
|
static const rangePath = '/v1/pairs';
|
|
static const orderPath = '/v1/orders';
|
|
static const quotePath = '/v1/quotes';
|
|
static const permissionPath = '/v1/permissions';
|
|
|
|
static const List<CryptoCurrency> _notSupported = [
|
|
CryptoCurrency.xhv,
|
|
CryptoCurrency.dcr,
|
|
CryptoCurrency.kmd,
|
|
CryptoCurrency.oxt,
|
|
CryptoCurrency.pivx,
|
|
CryptoCurrency.rune,
|
|
CryptoCurrency.rvn,
|
|
CryptoCurrency.scrt,
|
|
CryptoCurrency.stx,
|
|
CryptoCurrency.bttc,
|
|
];
|
|
|
|
static List<ExchangePair> _supportedPairs() {
|
|
final supportedCurrencies = CryptoCurrency.all
|
|
.where((element) => !_notSupported.contains(element))
|
|
.toList();
|
|
|
|
return supportedCurrencies
|
|
.map((i) => supportedCurrencies
|
|
.map((k) => ExchangePair(from: i, to: k, reverse: true)))
|
|
.expand((i) => i)
|
|
.toList();
|
|
}
|
|
|
|
@override
|
|
ExchangeProviderDescription get description =>
|
|
ExchangeProviderDescription.sideShift;
|
|
|
|
@override
|
|
Future<double> fetchRate(
|
|
{required CryptoCurrency from,
|
|
required CryptoCurrency to,
|
|
required double amount,
|
|
required bool isFixedRateMode,
|
|
required bool isReceiveAmount}) async {
|
|
try {
|
|
if (amount == 0) {
|
|
return 0.0;
|
|
}
|
|
final fromCurrency = _normalizeCryptoCurrency(from);
|
|
final toCurrency = _normalizeCryptoCurrency(to);
|
|
final url =
|
|
apiBaseUrl + rangePath + '/' + fromCurrency + '/' + toCurrency;
|
|
final uri = Uri.parse(url);
|
|
final response = await get(uri);
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final rate = double.parse(responseJSON['rate'] as String);
|
|
final max = double.parse(responseJSON['max'] as String);
|
|
|
|
if (amount > max) return 0.00;
|
|
|
|
return rate;
|
|
} catch (_) {
|
|
return 0.00;
|
|
}
|
|
}
|
|
|
|
@override
|
|
Future<bool> checkIsAvailable() async {
|
|
const url = apiBaseUrl + permissionPath;
|
|
final uri = Uri.parse(url);
|
|
final response = await get(uri);
|
|
|
|
if (response.statusCode == 500) {
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final error = responseJSON['error']['message'] as String;
|
|
|
|
throw Exception('$error');
|
|
}
|
|
|
|
if (response.statusCode != 200) {
|
|
return false;
|
|
}
|
|
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final canCreateOrder = responseJSON['createOrder'] as bool;
|
|
final canCreateQuote = responseJSON['createQuote'] as bool;
|
|
return canCreateOrder && canCreateQuote;
|
|
}
|
|
|
|
@override
|
|
Future<Trade> createTrade(
|
|
{required TradeRequest request, required bool isFixedRateMode}) async {
|
|
final _request = request as SideShiftRequest;
|
|
final quoteId = await _createQuote(_request);
|
|
final url = apiBaseUrl + orderPath;
|
|
final headers = {'Content-Type': 'application/json'};
|
|
final body = {
|
|
'type': 'fixed',
|
|
'quoteId': quoteId,
|
|
'affiliateId': affiliateId,
|
|
'settleAddress': _request.settleAddress,
|
|
'refundAddress': _request.refundAddress
|
|
};
|
|
final uri = Uri.parse(url);
|
|
final response = await post(uri, headers: headers, body: json.encode(body));
|
|
|
|
if (response.statusCode != 201) {
|
|
if (response.statusCode == 400) {
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final error = responseJSON['error']['message'] as String;
|
|
|
|
throw TradeNotCreatedException(description, description: error);
|
|
}
|
|
|
|
throw TradeNotCreatedException(description);
|
|
}
|
|
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final id = responseJSON['id'] as String;
|
|
final inputAddress = responseJSON['depositAddress']['address'] as String;
|
|
final settleAddress = responseJSON['settleAddress']['address'] as String;
|
|
|
|
return Trade(
|
|
id: id,
|
|
provider: description,
|
|
from: _request.depositMethod,
|
|
to: _request.settleMethod,
|
|
inputAddress: inputAddress,
|
|
refundAddress: settleAddress,
|
|
state: TradeState.created,
|
|
amount: _request.depositAmount,
|
|
payoutAddress: settleAddress,
|
|
createdAt: DateTime.now(),
|
|
);
|
|
}
|
|
|
|
Future<String> _createQuote(SideShiftRequest request) async {
|
|
final url = apiBaseUrl + quotePath;
|
|
final headers = {'Content-Type': 'application/json'};
|
|
final depositMethod = _normalizeCryptoCurrency(request.depositMethod);
|
|
final settleMethod = _normalizeCryptoCurrency(request.settleMethod);
|
|
final body = {
|
|
'depositMethod': depositMethod,
|
|
'settleMethod': settleMethod,
|
|
'affiliateId': affiliateId,
|
|
'depositAmount': request.depositAmount,
|
|
};
|
|
final uri = Uri.parse(url);
|
|
final response = await post(uri, headers: headers, body: json.encode(body));
|
|
|
|
if (response.statusCode != 201) {
|
|
if (response.statusCode == 400) {
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final error = responseJSON['error']['message'] as String;
|
|
|
|
throw TradeNotCreatedException(description, description: error);
|
|
}
|
|
|
|
throw TradeNotCreatedException(description);
|
|
}
|
|
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final quoteId = responseJSON['id'] as String;
|
|
|
|
return quoteId;
|
|
}
|
|
|
|
@override
|
|
Future<Limits> fetchLimits(
|
|
{required CryptoCurrency from,
|
|
required CryptoCurrency to,
|
|
required bool isFixedRateMode}) async {
|
|
final fromCurrency = _normalizeCryptoCurrency(from);
|
|
final toCurrency = _normalizeCryptoCurrency(to);
|
|
final url = apiBaseUrl + rangePath + '/' + fromCurrency + '/' + toCurrency;
|
|
final uri = Uri.parse(url);
|
|
final response = await get(uri);
|
|
|
|
if (response.statusCode == 500) {
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final error = responseJSON['error']['message'] as String;
|
|
|
|
throw Exception('$error');
|
|
}
|
|
|
|
if (response.statusCode != 200) {
|
|
throw Exception('Unexpected http status: ${response.statusCode}');
|
|
}
|
|
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final min = double.tryParse(responseJSON['min'] as String? ?? '');
|
|
final max = double.tryParse(responseJSON['max'] as String? ?? '');
|
|
|
|
return Limits(min: min, max: max);
|
|
}
|
|
|
|
@override
|
|
Future<Trade> findTradeById({required String id}) async {
|
|
final url = apiBaseUrl + orderPath + '/' + id;
|
|
final uri = Uri.parse(url);
|
|
final response = await get(uri);
|
|
|
|
if (response.statusCode == 404) {
|
|
throw TradeNotFoundException(id, provider: description);
|
|
}
|
|
|
|
if (response.statusCode == 400) {
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final error = responseJSON['error']['message'] as String;
|
|
|
|
throw TradeNotFoundException(id,
|
|
provider: description, description: error);
|
|
}
|
|
|
|
if (response.statusCode != 200) {
|
|
throw Exception('Unexpected http status: ${response.statusCode}');
|
|
}
|
|
|
|
final responseJSON = json.decode(response.body) as Map<String, dynamic>;
|
|
final fromCurrency = responseJSON['depositMethodId'] as String;
|
|
final from = CryptoCurrency.fromString(fromCurrency);
|
|
final toCurrency = responseJSON['settleMethodId'] as String;
|
|
final to = CryptoCurrency.fromString(toCurrency);
|
|
final inputAddress = responseJSON['depositAddress']['address'] as String;
|
|
final expectedSendAmount = responseJSON['depositAmount'].toString();
|
|
final deposits = responseJSON['deposits'] as List?;
|
|
final settleAddress = responseJSON['settleAddress']['address'] as String;
|
|
TradeState? state;
|
|
String? status;
|
|
|
|
if (deposits?.isNotEmpty ?? false) {
|
|
status = deposits![0]['status'] as String?;
|
|
}
|
|
state = TradeState.deserialize(raw: status ?? 'created');
|
|
|
|
final expiredAtRaw = responseJSON['expiresAtISO'] as String;
|
|
final expiredAt = DateTime.tryParse(expiredAtRaw)?.toLocal();
|
|
|
|
return Trade(
|
|
id: id,
|
|
from: from,
|
|
to: to,
|
|
provider: description,
|
|
inputAddress: inputAddress,
|
|
amount: expectedSendAmount,
|
|
state: state,
|
|
expiredAt: expiredAt,
|
|
payoutAddress: settleAddress
|
|
);
|
|
}
|
|
|
|
@override
|
|
bool get isAvailable => true;
|
|
|
|
@override
|
|
bool get isEnabled => true;
|
|
|
|
@override
|
|
bool get supportsFixedRate => true;
|
|
|
|
@override
|
|
String get title => 'SideShift';
|
|
|
|
static String _normalizeCryptoCurrency(CryptoCurrency currency) {
|
|
switch (currency) {
|
|
case CryptoCurrency.zaddr:
|
|
return 'zaddr';
|
|
case CryptoCurrency.zec:
|
|
return 'zec';
|
|
case CryptoCurrency.bnb:
|
|
return currency.tag!.toLowerCase();
|
|
case CryptoCurrency.usdterc20:
|
|
return 'usdtErc20';
|
|
case CryptoCurrency.usdttrc20:
|
|
return 'usdtTrc20';
|
|
case CryptoCurrency.usdcpoly:
|
|
return 'usdcpolygon';
|
|
case CryptoCurrency.usdcsol:
|
|
return 'usdcsol';
|
|
case CryptoCurrency.maticpoly:
|
|
return 'polygon';
|
|
case CryptoCurrency.btcln:
|
|
return 'ln';
|
|
default:
|
|
return currency.title.toLowerCase();
|
|
}
|
|
}
|
|
}
|