Commit graph

71 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Godwin Asuquo
1e868f876e
CW-352 add enable disable screenshot feature to i os (#931)
* Disable ios screen recording

* Minor Enhancements

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2023-05-17 18:34:41 +03:00
Godwin Asuquo
9714961298
CW-260 show amount received for each account (#907)
* Show amount received for each account

* Enable litcoin send all

* disable litcoin send all

* Indent code

* Fix large font resolution for account title
2023-05-05 15:58:41 +03:00
Omar Hatem
9d47e0e67c
V4.6.3_1.3.3 (#893)
* - Update App versions
- Add release notes

* Modify Monero.com release notes

* Fix issues with Frozen balance for Monero.com build

* Update cake wallet app build number
2023-04-24 14:02:17 +02:00
Justin Ehrenhofer
ab20312e61
Add btcln; add 2 assets to SideShift (#890)
* Add btcln; add 2 assets to SideShift

* fix regex line

* change ordering
2023-04-20 20:55:44 +02:00
Serhii
315c4c911c
CW-325-Coin-Control-enhancements (#846)
* fix checkbox

* save the output state

* add note as a header

* Allow copy the Amount and Address

* add frozen balance to dashboard

* add block explorer

* fix url launcher

* code formatting

* minor fixes

* Revert "minor fixes"

This reverts commit d230b6a07b.

* fix missing implementations error

* [skip ci] update localization

* fix unspent with same txid

* add amount check

* add vout check

* remove formattedTotalAvailableBalance

* remove unrelated mac os files
2023-04-20 15:46:41 +02:00
Serhii
f26815efb8
CW-351-Add-option-in-Privacy-settings-to-enable-disable-screenshots (#885)
* add prevent screenshots option

* fix prevent screen recording

* update localization

* Update strings_ja.arb
2023-04-20 11:59:59 +02:00
Serhii
3b69aa8686
CW-273-Don't-add-node-under-Advanced-Privacy-Settings-if-it-already-exists (#876)
* don't add existing node

* minor fixes

* Add back IsExecutingState to connect [skip ci]

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2023-04-14 20:55:12 +02:00
Godwin Asuquo
3006679560
Cw 314 trocador receive screen update (#823)
* Change receive screen ui

* Upgrade flutter packages

* revert Upgrade flutter packages

* revert Upgrade flutter packages

* Adjust flow for anon invoice page navigation

* Add receive screen ui

* Implement anonpay invoice

* Add invoice detail to transactions page

* Implement donation link

* Fix transaction filter and details view

* Save donation link

* Fix transaction display issues

* Fix formatting

* Fix merge conflict

* Fix localization

* Fix transaction amount display

* Fix transaction limit for fiat

* Update fix from code review

* Fix issues from code review

* Make amountTo nullable to avoid potential

* Remove encoding for description in donation link

* Remove optional params from request

* Fix QR image version

* Refactor QRCode, fix issues from code review

* Pass version to QRCode full page

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2023-03-24 17:26:42 +02:00
Serhii
fc2627df38
CW-319-Wallet-Seed-keys-URI-QR-code (#831)
* wallet QR code on Wallet/Seed screen

* fix restore height for new wallet

* fix height parameter

* fix currenHeight and HeightByDate for haven

* update configure.dart

* fix coments

* minor fix
2023-03-15 17:30:06 +02:00
Omar Hatem
3128d458f8
Merge pull request #765 from cake-tech/CW-282-add-trocador-exchange
CW-282 add trocador exchange
2023-03-02 21:42:30 +02:00
OmarHatem
25ec44b4e5 Add missing Nano currency image [skip ci] 2023-02-28 15:37:20 +02:00
OmarHatem
5abbc8f4dd Fix incorrect amount parsing due to bytes approximation 2023-02-15 23:16:21 +02:00
Justin Ehrenhofer
6711d9530f Normalize remaining tags/networks
Also rename Cake `C-CHAIN` tag to `AVAXC`, which will result in a clearer situation for user if we later add USDT (AVAXC), for example.
2023-02-09 10:52:24 -06:00
Justin Ehrenhofer
50d19e706f Fix bttc, maticpoly, matic
bttc mapped to trx, so changed the label instead of changing the mapping

maticpoly was mislabeled on changenow

maticpoly and matic were mislabeled on simpleswap
2023-01-30 14:05:17 -06:00
Justin Ehrenhofer
b05028a04b Organize trade assets and add fullNames 2023-01-11 12:30:48 -06:00
OmarHatem
17751f2363 Fix haven currencies not getting serialized 2022-12-29 16:02:09 +02:00
Omar Hatem
4bf2fa6216
Merge pull request #525 from cake-tech/CW-175-Refactoring-of-crypto-currency-list
[CW-175] refactoring of crypto currency list
2022-12-27 23:02:31 +02:00
OmarHatem
710de57847 Validate bitcoin's saved transaction priority 2022-12-15 02:00:59 +02:00
OmarHatem
987df055a0 Return default values for transaction priority instead of throwing an exception 2022-12-15 00:42:04 +02:00
Godwin Asuquo
9ce6c6e01a set default value to nullable field 2022-12-12 20:34:45 +01:00
Godwin Asuquo
6c9f9a4d19 [skip ci] fix issue with nullable field in Node adapter 2022-12-12 19:30:48 +01:00
Serhii
7b95533cd3 fix nullable type 2022-12-04 20:06:17 +02:00
Omar Hatem
dc60123f79
Merge pull request #529 from cake-tech/CW-182-allow-trusted-nodes
Cw 182 allow trusted nodes
2022-12-04 02:17:35 +02:00
Serhii
292c4c396c remove HUSD and rename BTTBSC 2022-11-30 23:53:57 +02:00
Serhii
0fda053150 remove Hive from CryptoCurrency 2022-11-29 21:53:07 +02:00
Serhii
d7d3b78905 refactoring mapFomString method 2022-11-23 13:47:02 +02:00
Serhii
196187255f refactoring mapFromInt static variable 2022-11-21 21:09:00 +02:00
Serhii
133a694b07 Merge branch 'main' into CW-175-Refactoring-of-crypto-currency-list 2022-11-18 23:17:59 +02:00
Serhii
7d92a964c7 Change synchronization status text
changed the status from "Starting sync" to "Attempting sync".
2022-11-09 12:14:21 +02:00
mkyq
5d741b183f
Add default values for hive fields for Node, UnspentCoinsInfo, Wallet… (#598)
* Add default values for hive fields for Node, UnspentCoinsInfo, WalletInfo, Order, Contact, TransactionDescription, Trade
2022-11-04 15:55:21 -04:00
OmarHatem
b8eaf98ff1 Merge branch 'flutter-upgrade' of https://github.com/cake-tech/cake_wallet into CW-182-allow-trusted-nodes 2022-11-03 21:34:20 +02:00
mkyq
8e70b611d0
move amount_converter to cw_core (#588)
Co-authored-by: Serhii <borodenko.sv@gmail.com>
2022-11-03 14:45:50 -04:00
Serhii
3996c3de76
Change Monero "regular" fee name to "automatic" (#576) 2022-11-02 15:00:40 -04:00
mkyq
b182c26ff2
Update hive types: UnspentCoinsInfo, Template, ExchangeTemplate. (#583) 2022-11-01 17:43:39 -04:00
mkyq
ef5d1f5f60
Change type for yatEid and yatLastUsedAddressRaw to optional. (#580) 2022-10-31 12:16:46 -04:00
Serhii
afa16fbe1c add new assets 2022-10-24 15:01:33 +03:00
Serhii
a6d5a145b9 flutter update fixes 2022-10-24 14:47:39 +03:00
Omar Hatem
6046385236
Cw 178 additional accents for exchange (#526)
* Fix SimpleSwap create exchange (#522)

* Check for status code 201 instead of 200 to follow SimpleSwap API documentation

* allow 200 and 201 success status code

* Changed app version to 4.4.7 (1.1.1 for monero.com)

* Add new currencies
Separate a list for unsupported currencies for SideShift
Fix currencies normalization symbols

* Add new currencies

* Add Currencies validation and possible length

Co-authored-by: M <m@cakewallet.com>
2022-10-20 13:23:36 -04:00
OmarHatem
469f23c09b Merge branch 'flutter-upgrade' of https://github.com/cake-tech/cake_wallet into CW-182-allow-trusted-nodes
 Conflicts:
	cw_core/lib/node.dart
	lib/view_model/node_list/node_create_or_edit_view_model.dart
2022-10-20 13:18:00 +02:00