Commit graph

120 commits

Author SHA1 Message Date
fosse
77edc71362 fix 2023-08-17 20:09:20 -04:00
fosse
74f6f44a4b pretty big refactor for pow, still some bugs 2023-08-16 17:09:29 -04:00
fosse
6a63e08e74 node related fixes 2023-08-16 13:01:01 -04:00
fosse
c6d937ca4e fixes 2023-08-15 15:05:38 -04:00
fosse
1742534994 fixes after merge main 2023-08-15 12:10:55 -04:00
fosse
1a516029e1 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-438-add-nano 2023-08-15 12:10:23 -04:00
fosse
2bae1d3481 save 2023-08-15 12:01:23 -04:00
Omar Hatem
5ec930cbc6
Re add chatwoot (#1044)
* Revert "Revert "Cw 397 chatwoot live support (#1011)""

This reverts commit ecdc7baa2e.

* Re-add chatwoot
Change chatwoot base url
2023-08-15 03:47:25 +03:00
Omar Hatem
ad6edd9a05
V4.8.1 v1.5.1 (#1038)
* Revert "Cw 397 chatwoot live support (#1011)"

This reverts commit af9b5ff10c.

* Add Version 4.8.1 configs

* Update macos build version [skip ci]
2023-08-14 16:57:47 +03:00
fosse
181ca98688 account changing barely working 2023-08-10 18:34:20 -04:00
Konstantin Ullrich
af9b5ff10c
Cw 397 chatwoot live support (#1011)
* initial button refactor and gradient background

* CW-397 Use a separate Hive instance to avoid Issues with plugins using Hive

* CW-397 Add Support Page Strings

* CW-397 Add new Support Page

* CW-397 Add Support Live Chat Page

* CW-397 Add Hive Type Ids Doc

* CW-397 Use Newer Chatwoot SDK Version and add new Images

* CW-397 Update pubspec_base.yaml

* CW-397 Add own Chatwoot Widget

* Lowercase `s` skip-ci

* CW-397 Fix WebMessageListener

* CW-397 Fix Merge conflicts

* CW-397 Add Erc20 Hive Type ID

* CW-397 Fix Ethereum Hive Error

* CW-397 Revert to Restore Button

* CW-397 Only use In App chat on mobile

* CW-397 Move Chatwoot Website Token to secrets

* CW-397 Add Chatwoot Website Token to workflow

* CW-397 Move Chatwoot fetchUrl to Support View Model

---------

Co-authored-by: Rafael Saes <git@saes.io>
Co-authored-by: Justin Ehrenhofer <justin.ehrenhofer@gmail.com>
2023-08-10 16:42:53 +03:00
fosse
c0a8ddbf73 fix 2023-08-10 09:05:34 -04:00
fosse
bdbf360b73 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-438-add-nano 2023-08-09 21:07:04 -04:00
fosse
32554b4cc8 fixes, start adding ui for PoW 2023-08-09 09:37:38 -04:00
Omar Hatem
8185b88b4a
Enable Eth/Erc20 auto send in exchange (#1024)
* Generate missing secrets file for ethereum

* Enable Sending ERC-20 and Ethereum automatically from an Exchange
2023-08-08 04:02:09 +03:00
fosse
82c7648897 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-438-add-nano 2023-08-07 11:47:35 -04:00
Omar Hatem
aedf310c9d
Cw 155 monero synchronization (#1014)
* Run Monero Synchronization task in background on Android

* Add monero sync task in the load function to be registered/cancelled when user changes wallets

* Revert unused file changes

* Register Sync task on all monero wallets if any

* Add Sync Modes and change task frequency based on user's choice

* Register background task after current wallet is set

* Add Sync All toggle and change task wallets to sync accordingly

* Enable background notifications in release mode temporarily

* Disable constraints and increase the frequency of tasks

* Decrease frequency of background tasks

* Delay the background task thread till the syncing thread finish (Dummy Trial-1)

* Start Sync process and wait for it to finish

* Wait for synchronization to finish before ending the background thread
Add 10 minutes timeout duration for sync process

* Connect to node before syncing wallet

* replace testing configuration with the configurations agreed on

* Fix Conflicts with main

* Update and Migrate Background tasks to null safety

* Update workmanager version in pubspec_base also

* Move Sync options to Connection and sync page
Show Sync options only for Monero and Haven
Minor Enhancements

* Remove debugging notifications
Revert aggressive mode frequency to 6 hours [skip ci]

* Add iOS configs

* Revert debugging changes
Fix conflicts with main

* Add/Extract Sync configurations to/from backup file [skip ci]
2023-08-04 20:55:56 +03:00
Omar Hatem
3ce4000dcf
Cw 78 ethereum (#862)
* Add initial flow for ethereum

* Add initial create Eth wallet flow

* Complete Ethereum wallet creation flow

* Fix web3dart versioning issue

* Add primary receive address extracted from private key

* Implement open wallet functionality

* Implement restore wallet from seed functionality

* Fixate web3dart version as higher versions cause some issues

* Add Initial Transaction priorities for eth
Add estimated gas price

* Rename priority value to tip

* Re-order wallet types

* Change ethereum node
Fix connection issues

* Fix estimating gas for priority

* Add case for ethereum to fetch it's seeds

* Add case for ethereum to request node

* Fix Exchange screen initial pairs

* Add initial send transaction flow

* Add missing configure for ethereum class

* Add Eth address initial setup

* Fix Private key for Ethereum wallets

* Change sign/send transaction flow

* - Fix Conflicts with main
- Remove unused function from Haven configure.dart

* Add build command for ethereum package

* Add missing Node list file to pubspec

* - Fix balance display
- Fix parsing of Ethereum amount
- Add more Ethereum Nodes 

* - Fix extracting Ethereum Private key from seeds
- Integrate signing/sending transaction with the send view model

* - Update and Fix Conflicts with main

* Add Balances for ERC20 tokens

* Fix conflicts with main

* Add erc20 abi json

* Add send erc20 tokens initial function

* add missing getHeightByDate in Haven

* Allow contacts and wallets from the same tag

* Add Shiba Inu icon

* Add send ERC-20 tokens initial flow

* Add missing import in generated file

* Add initial approach for transaction sending for ERC-20 tokens

* Refactor signing/sending transactions

* Add initial flow for transactions subscription

* Refactor signing/sending transactions

* Add home settings icon

* Fix conflicts with main

* Initial flow for home settings

* Add logic flow for adding erc20 tokens

* Fix initial UI

* Finalize UI for Tokens

* Integrate UI with Ethereum flow

* Add "Enable/Disable" feature for ERC20 tokens

* Add initial Erc20 tokens

* Add Sorting and Pin Native Token features

* Fix price sorting

* Sort tokens list as well when Sort criteria changes

* - Improve sorting balances flow
- Add initial add token from search bar flow

* Fix Accounts Popup UI

* Fix Pin native token

* Fix Enabling/Disabling tokens
Fix sorting by fiat once app is opened
Improve token availability mechanism

* Fix deleting token
Fix renaming tokens

* Fix issue with search

* Add more tokens

* - Fix scroll issue
- Add ERC20 tokens placeholder image in picker

* - Separate and organize default erc20 tokens
- Fix scrolling
- Add token placeholder images in picker
- Sort disabled tokens alphabetically

* Change BNB token initial availability

* Fix Conflicts with main

* Fix Conflicts with main

* Add Verse ERC20 token to the initial tokens list

* Add rename wallet to Ethereum

* Integrate EtherScan API for fetching address transactions
Generate Ethereum specific secrets in Ethereum package

* Adjust transactions fiat price for ERC20 tokens

* Free Up GitHub Actions Ubuntu Runner Disk Space

* Free Up GitHub Actions Ubuntu Runner Disk space (trial 2)

* Fix Transaction Fee display

* Save transaction history

* Enhance loading time for erc20 tokens transactions

* Minor Fixes and Enhancements

* Fix sending erc20
fix block explorer issue

* Fix int overflow

* Fix transaction amount conversions

* Minor: `slow` -> `Slow` 

* Update build guide

* Fix fetching fiat rate taking a lot of time by only fetching enabled tokens only and making the API calls in parallel not sequential

* Update transactions on a periodic basis

* For fee, use ETH spot price, not ERC-20 spot price

* Add Etherscan History privacy option to enable/disable Etherscan API

* Show estimated fee amounts in the send screen

* fix send fiat fields parsing issue

* Fix transactions estimated fee less than actual fee

* handle balance sorting when balance is disabled
Handle empty transactions list

* Fix Delete Ethereum wallet
Fix balance < 0.01

* Fix Decimal place for Ethereum amount
Fix sending amount issue

* Change words count

* Remove balance hint and Full balance row from Ethereum wallets

* support changing the asset type in send templates

* Fix Templates for ERC tokens issues

* Fix conflicts in send templates

* Disable batch sending in Ethereum

* Fix Fee calculation with different priorities

* Fix Conflicts with main

* Add offline error to ignored exceptions

---------

Co-authored-by: Justin Ehrenhofer <justin.ehrenhofer@gmail.com>
2023-08-04 20:01:49 +03:00
fosse
c8d9fcbaf4 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-438-add-nano 2023-08-02 12:34:36 -04:00
fosse
5563bea04e save 2023-08-02 11:47:00 -04:00
Serhii
d5c0012964
CW-224-Allow-Monero-proxy-in-node-settings (#966)
* update setupNodeSync func

* minor fixes

* localization

* add request node with proxy

* formatting
2023-08-02 14:48:52 +03:00
fosse
92d4a6f6d6 remove fees from send screen, send and receive transactions working 2023-08-01 09:50:07 -04:00
fosse
d30de4dc3f tx history working and fiat fixes 2023-07-27 13:02:10 -04:00
fosse
9ebf74fa01 receive screen + node screen working 2023-07-27 10:30:07 -04:00
fosse
c6797cc5ef save 2023-07-25 11:21:49 -04:00
fosse
359c5e8a9a more base config stuff 2023-07-24 14:09:28 -04:00
fosse
cea5458873 initial changes 2023-07-24 12:56:20 -04:00
OmarHatem
680359e6f1 Minor Fixes and Enhancements 2023-07-21 19:58:44 +03:00
OmarHatem
fade15d65b Add rename wallet to Ethereum 2023-07-19 02:18:57 +03:00
OmarHatem
cf2f1e5692 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-78-Ethereum
 Conflicts:
	cw_bitcoin/lib/bitcoin_wallet_service.dart
	cw_core/lib/crypto_currency.dart
	lib/core/address_validator.dart
	lib/di.dart
2023-07-19 01:58:29 +03:00
Justin Ehrenhofer
b963f83f4f
Fix shib and storj (#997) 2023-07-13 21:47:12 +03:00
Justin Ehrenhofer
d7fa9991e1
CW-306 New assets for exchange and cleanup (#993)
* CW-306 New assets for exchange and cleanup

* Remove 1inch
2023-07-13 17:31:45 +03:00
Rafael Saes
d4969633b0
Cw 426 replace trash and swipe with edit icons (#974)
* feat: Replace trash and swipe with edit icons on node list item

- replaces yellow Test button with red Delete node button with confirmation on the edit node page

* feat: make node indicator icons bigger (figma comment)

* feat: Replace trash and swipe with edit icons on wallet list page and create wallet_edit_page.dart

* fix: make delete buttons red

* fix: make wallet name wrap when it is too long

* refactor: improve logic & fix observer not refreshing

* fix: add string

* feat: remove the confirmation pop-up for switching between wallets

- which was another item on the jira issue

* fix: remove slideable widgets from node list

* feat: add edit button to currently selected node & disable deleting if selected

* fix: rename wallet also renames to new wallet files

* feat: make sure edits can't overlap existing names

* fix: improve rename flow, fix electrum transactions refresh & add delete old logic

* fix: also fix rename for monero & haven

* refactor: fix identations

* refactor: dont declare the current wallet twice

* refactor: missing newWalletInfo.id

* fix: dont unnecessarily load the current wallet

* fix: remove unnecessary reaction

* feat: make save button disabled until the text is changed

* feat: make walletEditViewModel and make state useful for pending actions

* fix: add back reaction for desktop flow

* - Remove un-necessary code
- Format Edit page

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2023-07-13 02:20:11 +03:00
OmarHatem
fa494af5ab Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-78-Ethereum
 Conflicts:
	lib/src/screens/dashboard/widgets/balance_page.dart
	res/values/strings_ar.arb
	res/values/strings_bg.arb
	res/values/strings_cs.arb
	res/values/strings_de.arb
	res/values/strings_en.arb
	res/values/strings_es.arb
	res/values/strings_fr.arb
	res/values/strings_ha.arb
	res/values/strings_hi.arb
	res/values/strings_hr.arb
	res/values/strings_id.arb
	res/values/strings_it.arb
	res/values/strings_ja.arb
	res/values/strings_ko.arb
	res/values/strings_my.arb
	res/values/strings_nl.arb
	res/values/strings_pl.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_yo.arb
	res/values/strings_zh.arb
2023-07-12 02:02:50 +03:00
Serhii
02fd12f5f8
CW-214-Monero-wallet-rescan-bug (#945)
* clear transactionHistory before rescan

* move the clear method to the abstract class
2023-07-11 20:56:01 +03:00
OmarHatem
ab61f0840c Fix Conflicts with main 2023-07-11 15:55:29 +03:00
OmarHatem
bc33ac79c9 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-78-Ethereum
 Conflicts:
	cw_core/lib/wallet_type.dart
	lib/src/screens/dashboard/widgets/balance_page.dart
	lib/src/screens/new_wallet/new_wallet_type_page.dart
	lib/src/widgets/picker.dart
	res/values/strings_ar.arb
	res/values/strings_bg.arb
	res/values/strings_cs.arb
	res/values/strings_de.arb
	res/values/strings_en.arb
	res/values/strings_es.arb
	res/values/strings_fr.arb
	res/values/strings_ha.arb
	res/values/strings_hi.arb
	res/values/strings_hr.arb
	res/values/strings_id.arb
	res/values/strings_it.arb
	res/values/strings_ja.arb
	res/values/strings_ko.arb
	res/values/strings_my.arb
	res/values/strings_nl.arb
	res/values/strings_pl.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_yo.arb
	res/values/strings_zh.arb
2023-07-11 15:48:29 +03:00
Serhii
c01321008b
CW-427-Refactor-wallet-type-selection-UI (#968)
* refactor the asset selection screen

* formatting

* ui fixes

* remove Ethereum related
2023-07-10 18:12:15 +03:00
OmarHatem
3713fb45f2 - Separate and organize default erc20 tokens
- Fix scrolling
- Add token placeholder images in picker
- Sort disabled tokens alphabetically
2023-07-06 17:34:13 +03:00
OmarHatem
72a99ab7dd Fix Enabling/Disabling tokens
Fix sorting by fiat once app is opened
Improve token availability mechanism
2023-07-04 04:09:17 +03:00
OmarHatem
5905ac35d8 Fix Accounts Popup UI 2023-07-03 20:18:24 +03:00
OmarHatem
46c64c782e Add Sorting and Pin Native Token features 2023-06-30 14:58:21 +03:00
OmarHatem
342174325b Add "Enable/Disable" feature for ERC20 tokens 2023-06-23 20:21:28 +03:00
OmarHatem
e715162294 Integrate UI with Ethereum flow 2023-06-23 04:47:24 +03:00
OmarHatem
22eecea24e Finalize UI for Tokens 2023-06-23 00:17:54 +03:00
OmarHatem
2259a5e6fd Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-78-Ethereum 2023-06-21 03:47:06 +03:00
Omar Hatem
c4926ae63a
V4.6.6 fixes (#970)
* Fix popping wrong context in exchange page

* Pass exception handler to wallets code

* Fix mobile UI with iPad view

* Set iPhone deployment target to 11 [skip ci]

* Update Macos deployment target [skip ci]
2023-06-16 04:14:01 +03:00
OmarHatem
94216e6987 Add send ERC-20 tokens initial flow 2023-06-02 04:02:43 +03:00
OmarHatem
bb6f64ea97 Merge branch 'main' of https://github.com/cake-tech/cake_wallet into CW-78-Ethereum
 Conflicts:
	lib/src/screens/dashboard/widgets/menu_widget.dart
	lib/store/settings_store.dart
2023-05-30 14:20:21 +03:00
Serhii
c835059d13
CW-371-Restore-height-issue-with-QR-code-Wallet-incorrectly-assigns-today's-restore-height-to-legacy-wallets (#925)
* fix height for legacy wallets

* get height by first tx under singular seed
2023-05-25 00:00:54 +03:00