Commit graph

1792 commits

Author SHA1 Message Date
Matthew Fosse
dcfb2b2b73
fix empty string case (#1401)
* bio auth mac fix

* remove comment and change duration from 2 to 0

* cherry pick previous changes

* fix empty string case

* add support for path for all currency types

* disable paths on electrum and monero nodes

* undo mac auth changes

* stuff I missed

* 1 last thing

* another thing I missed
2024-04-25 02:00:53 +02:00
Omar Hatem
4ed4659f9e
Revert "version bump to 3.13.9, auth working on mac (#1367)" (#1397)
This reverts commit e6b4b08c24.
2024-04-18 20:10:58 +02:00
Matthew Fosse
e6b4b08c24
version bump to 3.13.9, auth working on mac (#1367)
* version bump to 3.13.9, auth working on mac

* bump flutter version in workflow file

* workflow fix

* test fix

* downgrade flutter version

* test fix

* test fix

* update gradle version

* fixes for updated dart version, localization file updates

* remove accidental inclusion

* missed some unimplemented throws
2024-04-18 19:00:24 +02:00
Omar Hatem
59d44e8c57
Generic enhancements (#1386)
* Update versions

* Show private key for electrum based wallets

* update polyseed

* fix webview page on desktop
remove private keys temporarily from electrum

* update versions
2024-04-16 01:49:49 +02:00
Serhii
a0820e8a73
pull to refresh (#1389) 2024-04-16 01:04:49 +02:00
Matthew Fosse
fb9534a0e9
service status button updates (#1388)
* service status button updates

* small fix

* update wording
2024-04-16 00:45:40 +02:00
Omar Hatem
1769db1641
Generic Fixes (#1373)
* Fix exchanges not showing

* Fix button text on Monero receive screen

* Temp fix for ERC20 and SPL tokens not having raw value

* Manually Add Trocador new providers temporarily until API integration

* properly handle nullability of n2 node [skip ci]

---------

Co-authored-by: tuxsudo <tuxsudo@tux.pizza>
2024-04-12 16:01:21 +02:00
Matthew Fosse
fce6394bca
Cw 602 nano bad rep (#1356)
* add support for paths in node settings

* update translations and fixes

* fix node path

* add rep warning flag

* update translations

* code cleanup [skip ci]

* add additional node options

* add migration

* update transaction history rpc to be under the limit

* review fixes [skip ci]

* [skip ci] updates

* move n2_node.dart

* minor code improvements

* more minor code cleanup
2024-04-12 14:36:42 +02:00
Adegoke David
7abe5735c0
CW-589-WalletConnect-Connections-Independent (#1361)
* chore: Create cw_solana package and clean up files

* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens

* fix: Make transactions file specific to solana only for solana transactions

* chore: Revert inject app details script

* fix: Fix issue with node and switch current node to main beta instead of testnet

* fix: Fix merge conflicts and adjust migration version

* fix: Fetch spl token error

Signed-off-by: Blazebrain <davidadegoke16@gmail.com>

* fix: Diplay and activate spl tokens bug

* fix: Review and fixes

* fix: reverted formatting for cryptocurrency class

* fix: Review comments, split sending flow into signing and sending separately, fix issues

* fix: Revert throwing unimplenented error

* chore: Fix comment

* chore: Fix comment

* fix: Errors in flow

* Update provider_types.dart [skip ci]

* fix: Issues with solana wallet

* Update solana_wallet.dart [skip ci]

* fix: Review comments

* fix: Date time config

* fix: Revert bash script for app details

* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list

* fix: Issues with address validation when sending spl tokens and walletconnect initial setup

* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect

* fix: Adjust imports that would affect monerocom building successfully

* fix: Refine transaction direction and continue work on walletconnect

* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction

* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions

* feat: Switch node and revert solana chain id to previous id

* fix: Remove print statement

* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message

* chore: Code refactoring and streamlined wallet type check for solana send success message

* fix: Make timeout error for node silent and add spl token images

* fix: Still trying to figure out what's wrong

* feat: Make walletconnect connections independent to wallet

* fix: Add proper return type to method

* fix: Alphabetizing translation files

---------

Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-04-12 02:33:43 +02:00
Omar Hatem
8a61ab7780
enhance UI for used addresses (#1337)
* enhance UI for used addresses

* Update electrum_wallet_addresses.dart

* fix tablet UI

---------

Co-authored-by: Serhii <borodenko.sv@gmail.com>
2024-04-10 03:28:31 +02:00
Adegoke David
f9679fecbe
CW-584-WalletConnect-For-Solana (#1362)
* chore: Create cw_solana package and clean up files

* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens

* fix: Make transactions file specific to solana only for solana transactions

* chore: Revert inject app details script

* fix: Fix issue with node and switch current node to main beta instead of testnet

* fix: Fix merge conflicts and adjust migration version

* fix: Fetch spl token error

Signed-off-by: Blazebrain <davidadegoke16@gmail.com>

* fix: Diplay and activate spl tokens bug

* fix: Review and fixes

* fix: reverted formatting for cryptocurrency class

* fix: Review comments, split sending flow into signing and sending separately, fix issues

* fix: Revert throwing unimplenented error

* chore: Fix comment

* chore: Fix comment

* fix: Errors in flow

* Update provider_types.dart [skip ci]

* fix: Issues with solana wallet

* Update solana_wallet.dart [skip ci]

* fix: Review comments

* fix: Date time config

* fix: Revert bash script for app details

* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list

* fix: Issues with address validation when sending spl tokens and walletconnect initial setup

* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect

* fix: Adjust imports that would affect monerocom building successfully

* fix: Refine transaction direction and continue work on walletconnect

* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction

* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions

* feat: Switch node and revert solana chain id to previous id

* fix: Remove print statement

* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message

* chore: Code refactoring and streamlined wallet type check for solana send success message

* fix: Make timeout error for node silent and add spl token images

* fix: Still trying to figure out what's wrong

* Sync with remote

* feat: First run for walletconnect for solana

* chore: Add ankr api key to secrets

* remove duplicate transaction [skip ci]

---------

Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-04-09 02:26:11 +02:00
tuxsudo
69587e813f
Always show addresses page for Monero and remove unused text showing up for wallets it shouldn't be (#1363) 2024-04-09 01:04:16 +02:00
Adegoke David
2877cc160c
CW-608-Fetch-And-Save-Icons-Of-ERC20-And-SPL-Tokens-When-Adding-Them (#1365)
* feat: Fetch and save icons of SPL tokens when adding them

* feat: Implement fetch and save icons for ERC20 tokens when adding them

* fix: Add moralisApiKey to evm secrets

* Add check to ensure decimals cannot be zero

* - Fallback to adding erc20 token from web3dart
- Wrap fetching spl token icon in a try/catch block

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-04-09 00:53:14 +02:00
Matthew Fosse
d4b317b3a0
minor fix (#1371) 2024-04-08 19:42:27 +02:00
Serhii
291aa710c6
Add rbf (#1323)
* Add initial checkbox for RBF

* minor progress

* minor progress

* Minor progress

* Debugging RBF

* Minor fix

* Fix RBF transaction inputs (now it's working)

* New versions
Fix issues with Monero.com

* Add sending for Solana tokens exchanges

* Add default keyword for P2WPKH [skip ci]

* chore: Switch solana commitment to confirmed to reduced blockhash expiration (#1313)

* Modify test workflow to send arm64-v8a build only

* Fix workflow build path

* Remove unnecessary reverse of txId

* Update Replace by fee with the new bitcoin base implementation

* btc custom fee priority

* add feeRate to btc credential

* UI fixes

* add check if the change covers the fee

* Update settings_store.dart

* add check confirmation for rbf

* add a check to see if the change is sufficient for the new fee

* addressing PR comments

* update localization files

* addressing PR comments

* minor fixes

* Update transaction_details_view_model.dart

* Minor Fix for building Monero.com [skip ci]

* update localization files

* add bump fee page

* update localisation files

* Update cw_bitcoin.dart

* fix merge conflict

* fix UI issues

* Fix Conflicts, Fix RBF flow, some enhancements

* prevent default custom fee rate

* hide outputs and inputs items

* minor fix [skip ci]

* addressing PR comments

* remove rbf checkbox

* default picker value

* minor ui change [skip ci]

* min fee rate [skip ci]

* Minor fix and some minor enhancements

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
Co-authored-by: Adegoke David <64401859+Blazebrain@users.noreply.github.com>
2024-04-08 16:54:58 +02:00
Matthew Fosse
dbb62ef5c0
update migration behavior slightly (#1364) 2024-04-05 18:11:47 +02:00
Matthew Fosse
7eed97718e
disable service status api if fiat api is disabled (#1357) 2024-04-02 20:02:28 +02:00
Omar Hatem
62ef545fce
New versions (#1355)
* New versions

* Check for Taproot inputs when exchanging with ThorChain

* Properly handle taproot case with thorchain

* fix missing import
2024-04-01 15:31:14 +02:00
Adegoke David
a9b8c03e55
CW-596-Solana-Bug-Fixes (#1340)
* fix: Generic bug fixes across solana

* fix: Remove back and forth parsing

* fix: Add check to cut flow when estimated fee is higher than wallet balance

* Update error message for fees exception

* Remove logs

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-03-29 20:55:29 +02:00
Omar Hatem
698c222291
Generic fixes (#1348)
* Change order of currencies in currency picker

* Disable Background sync until implemented properly

* remove ability to use device pin in bio auth

* Fix condition

* Minor fix [skip ci]

* make notifications red dot go when opened

* Update Frozen coin text color

* Update Frozen coin text color

* Fetch internal transactions for eth and polygon

* Remove debug prints [skip ci]

* Fix Camera permission on iOS [skip ci]

---------

Co-authored-by: tuxsudo <tuxsudo@tux.pizza>
2024-03-29 20:54:59 +02:00
Rafael
fd9018bcc4
Cw 598 fixes for electrum based wallets (#1344)
* fix: address book addresses, bch builder, exchange all fee estimation, bch coin control

* feat: new error framework for Electrum messages

* build: cw_bitcoin.dart

* feat: error improvements, localization, fix exchange amount mismatch

* chore: misc comment & print [skip ci]

* feat: refactor & simplify sendAll vs regular tx estimation and creation

- Since there were so many conditions inside a single function to alter its behavior if sendAll or not, it is easier and more readable to have separate sendAll and estimateTx functions that behave separately

* fix: wrong LTC dust

* feat: fee rate confirmation

* fix: wrong createTrade value when isSendAll is enabled

* fix bitcoin cash address parsing [skip ci]

* fix: form no amount validator, address book with multiple entries, exchange all below min error

* fix: improve string, fix sending with dust inputs at the top

* fix: two change outputs when re-estimating

* fix: sendAll with a little dust adds fees

* chore: sanity check [skip ci]

* fix: if the fee is higher than estimated

* Minor enhancement [skip ci]

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-03-29 20:51:34 +02:00
Matthew Fosse
78685b74f0
Cw 521 moonpay buy (#1335)
* save

* save

* moonpay fixes

* fix for debug mode

* code cleanup

* another fix for debug mode

* [skip ci] fixes

* test build

* code cleanup

* fix buy page
2024-03-28 15:30:41 +02:00
Serhii
cdf081edfd
Cw 537 integrate thor chain swaps (#1280)
* thorChain btc to eth swap

* eth to btc swap

* update the UI

* update localization

* Update thorchain_exchange.provider.dart

* minor fixes

* minor fix

* fix min amount bug

* revert amount_converter changes

* fetching thorChain traid info

* resolve evm related merge conflicts

* minor fix

* Fix eth transaction hash for Thorchain Integration

* add new status endpoint and refund address for eth

* Adjust affiliate fee

* Fix conflicts with main

* review comments + transaction filter item

* taproot addresses check

* added 10 outputs check

* Update thorchain_exchange.provider.dart

* minor fixes

* update thorchain title

* fix fetching rate for thorchain

* Revert "fix fetching rate for thorchain"

This reverts commit 3aa1386ecf.

* fix thorchain exchange rate

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-03-28 14:41:11 +02:00
Adegoke David
6ae0f37b9c
CW-597-AuthService-Bug (#1346)
* fix: AuthService keychain bug fix

* fix: Fetch read implementation

* fix: Simplify logic for retries

* Minor enhancement

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-03-26 12:37:52 +02:00
tuxsudo
4520f583a6
Add toggle for disabling service bulletin (#1347)
* Add toggle for disabling service bulletin

* Make the toggle functional

* Fix + add toggle to Advanced Settings

* Remove unused variable

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-03-25 20:28:45 +02:00
Konstantin Ullrich
bca59ad5e4
Remove moonpay secret use exchange-helper instead (#1343)
* Remove moonpay secret use exchange-helper instead

* Update lib/buy/moonpay/moonpay_provider.dart

* remove web3dart dep from cw_solana

* Apply new api for moonpay exchange helper

* Add Robinhood as Polygon buy-provider
2024-03-25 20:16:57 +02:00
Omar Hatem
af7fe05099
Generic fixes (#1342)
* handle balance exceptions in estimating All exchange

* Fix trades not showing
2024-03-21 16:31:05 +02:00
Omar Hatem
ecb4f32cda
Fix Exchange field not taking numbers (#1341) 2024-03-21 15:42:16 +02:00
Omar Hatem
5a7a0e01a7
Litcoin bitcoin cash fix (#1339)
* Make address to output script a single entry point
Fix network type for bitcoin cash

* Add MoonPay to sell polygon

* Normalize currency for moonpay widget

* Minor fix

* fix: litecoin & bch address types

* fix: remove print

* fix: network decode location

* fix: missing place additional network type

* fix: wrong initial address page type

* fix: initial address generation

* fix: btc exchange sending all, bch without change addresses

* Minor fixes

* Update app versions [skip ci]

---------

Co-authored-by: Rafael Saes <git@rafael.saes.dev>
2024-03-21 04:51:57 +02:00
Serhii
a0c0ede099
Cw 588 show popup for adding to address book (#1326)
* popup for adding to address book

* update localization files
2024-03-20 00:44:00 +02:00
Serhii
58b2dfb26c
Fix deep link handling issue (#1297)
* Update root.dart

* Revert "Update root.dart"

This reverts commit 5808903aaf.

* Update root.dart

* increase delay

* fix with mobx reaction

* lunchUri fix
2024-03-19 21:55:34 +02:00
Omar Hatem
27347779fa
New versions (#1334)
* Enable Exolix
Improve service updates indicator
New versions

* Add exolix Api token to limits api

* Ignore reporting network issues

* Change default bitcoin node
2024-03-18 17:45:11 +02:00
Omar Hatem
50b5ebc622
Monero update (#1325)
* New price API

* Fix test app package id

* Fix workflow

* change environment variable to use pr number [skip ci]

* Fix un-needed padding

* Fix raw value for usdtSol

* Remove duplicate fetching for balance and transactions at start [skip ci]

* Fix address validation of spl tokens

* Add Service Status

* Update lib/src/widgets/service_status_tile.dart

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>

* Update lib/src/widgets/services_updates_widget.dart

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>

* Update monero version

* update sodium script

* Change automatic priority fee rate

* New versions [skip ci]

* Update monero version

* Temp remove split per abi

* Specifically build monero.com

* Revert monero dependencies trial fix

* Update Monero
Fix Monero Automatic Priority

* Fix android script

* Fix build_monero.sh android
Add svg notification icon

* trial 1

* trial 2

* trial 3

* trial 4

* Trial 5

* Trial

* revert

---------

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
2024-03-14 20:26:00 +02:00
Omar Hatem
6414364602
Generic fixes (#1320)
* New price API

* Fix test app package id

* Fix workflow

* change environment variable to use pr number [skip ci]

* Fix un-needed padding

* Fix raw value for usdtSol

* Remove duplicate fetching for balance and transactions at start [skip ci]

* Fix address validation of spl tokens

* Add Service Status

* Update lib/src/widgets/service_status_tile.dart

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>

* Update lib/src/widgets/services_updates_widget.dart

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>

* Update monero version

* update sodium script

* Change automatic priority fee rate

---------

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
2024-03-10 04:02:30 +02:00
Omar Hatem
c7deeaea9b
New versions (#1312)
* New versions
Fix issues with Monero.com

* Add sending for Solana tokens exchanges

* Add default keyword for P2WPKH [skip ci]

* chore: Switch solana commitment to confirmed to reduced blockhash expiration (#1313)

* Modify test workflow to send arm64-v8a build only

* Fix workflow build path

* Remove unnecessary reverse of txId

* Show case sensitive evm wallet address

* Revert default Cake Theme
add custom package id for test builds

* Fix workflow script

* Fix workflow

* hash branch name

* hash branch name

* Update versions

* Add user image to Nostr
Add fetching address from text for tokens

* Fix test app package id

* fix: Solana message improvement (#1316)

---------

Co-authored-by: Adegoke David <64401859+Blazebrain@users.noreply.github.com>
2024-03-04 19:32:10 +02:00
Serhii
10fd32fb2e
Cw 586 display user twitter image in birdpay (#1315)
* Update address_validator.dart

* add twitter profile image

* mastodon profile image

* fix data types
2024-03-01 21:38:48 +02:00
tuxsudo
2549b0fa0a
Replace purple with "Cake Dark Blue" theme and make it default (#1314) 2024-02-28 04:15:18 +02:00
tuxsudo
948669b5c2
Fix colors (#1311)
* Fix colors

* Update colors

* oops
2024-02-23 22:00:16 +02:00
tuxsudo
52983edf91
UI Enhancements (#1308)
* Center the account text on the balance page

* Modify dashboard button spacing

* Change default theme to Dark theme

* Remove legacyTheme and modify theme order

* Add condition for Monero.com wallet default theme

* Add locale for new themes

* Add new themes

* Update padding

* Fixes

* Update settings_store.dart

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-02-23 20:49:21 +02:00
Omar Hatem
cbc0c3afd6
Generic fixes (#1304)
* fix mobx no element error

* fix mobx issue

* Remove unused code

* Enhance error handling for monero sync failure case

* Separate litecoin mnemonic exception from bitcoin

* - Enable onramper for polygon
- Add Kaspa validation

* Set null as the default length of address validation

* Modify EVM fee text [skip ci]

* Add seed length option to polygon

* Add digibyte

* Update configure_cake_wallet.sh and fix conflicts

* Pin bottom section

* Fix Solana missing isTestnet param
2024-02-23 19:09:24 +02:00
Rafael
a3a35f05e1
Btc address types (#1263)
* inital migration changes

* feat: rest of changes

* minor fix [skip ci]

* fix: P2wshAddress & wallet address index

* fix: address review comments

* fix: address type restore

* feat: add testnet

* Fix review comments
Remove bitcoin_base from cw_core

* Fix address not matching selected type on start

* remove un-necessary parameter [skip ci]

* Remove bitcoin specific code from main lib
Fix possible runtime exception from list wrong access

* Minor fix

* fix: fixes for Testnet

* fix: bitcoin receive option dependency breaks monerocom

* Fix issues when building Monero.com

* feat: Transaction Builder changes

* fix: discover addresses, testnet restoring, duplicate unspent coins, and taproot address vs schnorr sig tweak

* fix: remove print

* feat: improve error when failed broadcast response

* feat: create fish shell env script

* fix: unmodifiable maps

* fix: build

* fix: build

* fix: computed observable side effect bug

* feat: add nix script for android build_all

* fix: wrong keypairs used for signing

* fix: wrong addresses when using fromScriptPubKey scripts

* fix(actual commit): testnet tx expanded + wrong addresses when using fromScriptPubKey scripts (update bitcoin_base deps)

* fix: self-send [skip ci]

* fix: p2wsh

* fix: testnet fees

* New versions

* Update macos build number
Minor UI fix

* fix: use new bitcoin_base ref, fix tx list wrong hex value & refactor hidden vs hd use

- if always use sideHd for isHidden, it is easier to simplify the functions instead of passing both which can be error prone
- (ps: now this could probably be changed, for example from isHidden to isChange since with address list we now see "hidden" addresses)

* Fix if condition to handle litecoin case

* fix: self-send, change address was always making direction incoming

* refactor: improve estimation function, add more inputs if balance missing

* fix: new bitcoin_base update, fixes script issues

* Update evm chain wallet service arguments

* Fix translation [skip ci]

* Fix translation [skip ci]

* Update strings_fr.arb [skip ci]

* fix: async isChange function not being awaited, refactor to reduce looping into a single place

* fix: _address vs address, missing p2sh

* fix: minor mistake in storing p2sh page type [skip ci]

* refactor: use already matched addresses property

* feat: improved perfomance for fetching transaction histories

* feat: continue perfomance change, improve address discovery only to last address by type with history

* fix: make sure transaction list is sorted by date

* refactor: isTestnet only for bitcoin

* fix: walletInfo type null case

* fix: deprecated p2pk

* refactor: make condition more readable

* refactor: remove unnecessary Str variant

* refactor: make condition more readable

* fix: infinite loop possible

* Revert removing isTestnet from other wallets [skip ci]

* refactor: rename addresses when matched by receive type

* Make the beta build [skip ci]
Remove app_env.fish

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-02-23 18:13:30 +02:00
Adegoke David
109bba4301
CW-555-Add-Solana-Wallet (#1272)
* chore: Create cw_solana package and clean up files

* feat: Add Solana Wallet - Create, Restore form seed, restore from Key, Restore from QR, Send, Receive, transaction history, spl tokens

* fix: Make transactions file specific to solana only for solana transactions

* chore: Revert inject app details script

* fix: Fix issue with node and switch current node to main beta instead of testnet

* fix: Fix merge conflicts and adjust migration version

* fix: Fetch spl token error

Signed-off-by: Blazebrain <davidadegoke16@gmail.com>

* fix: Diplay and activate spl tokens bug

* fix: Review and fixes

* fix: reverted formatting for cryptocurrency class

* fix: Review comments, split sending flow into signing and sending separately, fix issues

* fix: Revert throwing unimplenented error

* chore: Fix comment

* chore: Fix comment

* fix: Errors in flow

* Update provider_types.dart [skip ci]

* fix: Issues with solana wallet

* Update solana_wallet.dart [skip ci]

* fix: Review comments

* fix: Date time config

* fix: Revert bash script for app details

* fix: Error with balance, displaying fees, fixing sent or received identifier bug, displaying token symbol with token transaction item in transactions list

* fix: Issues with address validation when sending spl tokens and walletconnect initial setup

* fix: Issues with sending, fetching transactions history, almost wrapping up walletconnect

* fix: Adjust imports that would affect monerocom building successfully

* fix: Refine transaction direction and continue work on walletconnect

* feat: Display SPL token transfers in the transaction history and finally settle the transaction direction

* fix: Delay in transactions history dispaly, show native token transactions first, then process spl token transactions

* feat: Switch node and revert solana chain id to previous id

* fix: Remove print statement

* fix: Remove await for transactions, fetch all transaction histories instantly and adjust solana send success message

* chore: Code refactoring and streamlined wallet type check for solana send success message

* fix: Make timeout error for node silent and add spl token images

---------

Signed-off-by: Blazebrain <davidadegoke16@gmail.com>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-02-23 15:39:19 +02:00
tuxsudo
5a7ea87543
UI fixes (#1301)
* Remove StandardListSeparator from Security and backup page

* Remove StandardListSeparator from Connection and sync page

* Remove StandardListSeparator from Other settings page
2024-02-22 22:39:39 +02:00
Omar Hatem
d6af37df06
New versions (#1295) 2024-02-11 02:04:46 +02:00
Adegoke David
d6e10bdbd5
CW-572-Disable-battery-optimization (#1285)
* feat: Disable battery optimization on android

* fix: Add permission to androidmanifestbase file

* Increase the frequency of app running in background on aggressive mode

* Revert the sync mode frequency [skip ci]

* Fix translation

* increase frequency to 1 hour

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-02-09 01:11:41 +02:00
Serhii
0832e62719
fix generate new electrum address (#1294)
* add side address validation

* Remove auto size text [skip ci]

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-02-08 00:10:44 +02:00
Omar Hatem
d0b51cebe3
Generic fixes (#1291)
* - Update Camera purpose string for iOS
- Fix address field not passing the correct currency to address book

* Enhance file loading in exception handler

* Fix translation consistency [skip ci]
2024-02-06 22:44:21 +02:00
Adegoke David
7410daacff
CW-551-Refactor-EVM-Chains (#1256)
* feat: Create central package for EVM chains

* chore: Cleanup pubspec and add core evm dependencies

* feat: Replicated core evm chain files, time to start fixing the issues

* feat: Setup evm central package to handle all evm chains

* feat: Link up Polygon and Ethereum wallets to the centra evm package, fix bugs and issues, and optimze for better performance

* feat: Setup and adjust configs to reflect new evm configurations

* Remove unneeded file

* fix: Changes done while re-reviewing entire structure and refactor

* fix: Add evm chain wallet path to imports in configure file

* feat: Adjust implementation of parent class, remove unneeded files, remove windows, linux and mac directories, restructure the evm child classes

* fix: Make EVMChainWallet a central abstract class and adjust accordingly

* fix: Adjust transaction info, restructure EVMWalletChain to be an abstract, adjust external facing interfaces for polygon and ethereum, adjust configuration for ethereum and polygon in configure file

* fix: Testing issues

* fix: Add localization for nft tile and details page texts and add dashes for null responses

* fix: merge conflicts

* Minor fixes for building Monero.com

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-01-30 20:01:48 +02:00
Omar Hatem
b92ccb5c0b
Generic fixes (#1282)
* New versions

* Fix unspent coins issue

* Fix white screen issues for some users
2024-01-30 19:57:47 +02:00
Omar Hatem
952503f0d8
New versions (#1277)
* New versions

* Update macos build number
Minor UI fix
2024-01-29 22:49:54 +02:00
Adegoke David
f68987bfb9
CW-566-Cake2FA-Bypass-Bug (#1275)
* fix: TOTP 2FA Bug

* fix: key switch error

* Fix 2fa preset issue

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-01-27 05:08:53 +02:00
Serhii
fc352a6da3
Cw 428 send to nostr addresses (#1271)
* add nostr address resolver

* Add Nostr localization

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2024-01-27 04:34:38 +02:00
Omar Hatem
89fdc0f4d1
Generic fixes (#1274)
* Display fees currency as wallet currency not the selected one

* remove unused code
catch balance network issues

* pop send screen when send completes successfully

* revert change [skip ci]

* Enable restoring haven wallets

* verify context is mounted before showing snackbar [skip ci]

* Update privacy [skip ci]

* Add user consent popup to inapp webview permission request
2024-01-27 00:51:21 +02:00
Adegoke David
aed60a7282
fix: Route to dashboard when exchange is done (#1276) 2024-01-27 00:48:33 +02:00
Serhii
9754d67601
Cw-343-a-list-of-previously-used-addresses (#1248)
* add used addresses list

* generate new address button

* fix wallet type issue

* fix addresses button title

* update selectButton

* show all wallet addresses

* add tx amount and balance

* fix ui

* remove cashAddr format

* fix generating new address issue

* disable autogenerating

* fix cashAddr format

* minor fix

* add search bar

* Update address_cell.dart

* fix merge conflict

* address labeling feature

* review fixes

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2024-01-23 07:15:24 +02:00
Matthew Fosse
d664f0a16f
Cw 540 encrypt shared (#1269)
* start writing migration

* save

* finishing up migration

* more fixes

* fixes

* migration fixes

* remove commented code and ensure widget initialization in root.dart

* use securekey static functions everywhere applicable
2024-01-23 02:30:16 +02:00
Adegoke David
efb41aa6bc
feat: Remove ability to create haven wallets (#1273) 2024-01-23 01:58:09 +02:00
Omar Hatem
d83054eded
Enable DFX for polygon wallet (#1267) 2024-01-23 01:53:20 +02:00
Dimitris Apostolou
1b65adce53
Fix typos (#1266) 2024-01-18 01:38:36 +02:00
Omar Hatem
d8f1cdc7ef
v4.13.0 and v1.10.0 (#1265)
* New versions

* Minor fix [skip ci]

* Minor UI enhancement for balance card

* Minor UI enhancement

* Add Monero build configs for MacOS [skip ci]

* Add rest of Macos Configs [skip ci]

* Delete empty file
Save and report restore from backup exceptions [skip ci]

* Minor fixes
2024-01-16 02:02:10 +02:00
Matthew Fosse
fe2e26f146
Minor nano fixes + abstract nano utils out into package (#1250)
* fixes

* refactors

* fixes

* more fixes

* fixes for monero.com

* update confirmed balance to receivable balance

* fix balance display bug

* remove print statements

* prevent unnecessary writes

* review fixes

* forgot to add pubspec changes

* fix

* fix sync status desyncing on rpc fail

* fix

* update translations + txDetails fixes

* squash balance bug

* add source address on tx info

* fix
2024-01-12 01:00:41 +02:00
Omar Hatem
8d973cf919
Finish DFX auth flow with the primary address for Electrum (bitcoin) (#1264) 2024-01-11 17:29:51 +02:00
Omar Hatem
b3c8be4ba8
Improve balance card UI (#1259)
* Improve balance card UI

* Disable normal USDC polygon for ChangeNow

* UI enhancements

* Add Kaspa
Minor UI fix

* Add kaspa icon [skip ci]
2024-01-08 16:05:35 +02:00
Omar Hatem
2a1bdf69ef
Cw 553 update inappwebview (#1252)
* Update inapp webview and update it's deprecated code

* Add Turkish Lira
Fix android in-app webview

* Change FAQ url [skip ci]

* Fix available balance display issue
2024-01-08 16:03:46 +02:00
Serhii
26cde6a193
Cw 533 add the sell option from on ramper (#1251)
* add sell option from onramper

* minor fix

* fix default sell param
2024-01-08 16:02:12 +02:00
Omar Hatem
133fa2987a
Generic fixes (#1245)
* Remove error message if buy action is disabled

* Fix wallet list selected wallet issue

* Check if the widget is still mounted before showing popup

* minor code readability enhancement [skip ci]

* Code enhancement [skip ci]

* Revert removing ask each time localization

* Add Moonpay to sell flow
Code Enhancements

* remove error popup when sell option is disabled
2024-01-01 15:05:37 +02:00
Serhii
3522561cfc info page refactoring 2023-12-30 21:55:17 +02:00
Serhii
a5895e8832 Merge branch 'main' into CW-529-Modify-2FA-introduction-screens 2023-12-30 16:58:46 +02:00
Serhii
914565eb72
CW-539-DFX-off-ramp-sell-provider (#1229)
* buy_provider_types refactoring

* refactor MoonPay and  sell option flow

* dfx sell flow

* add default sell provider flow

* localization

* Update other_settings_page.dart

* [skip ci] update localization

* [skip ci] providers fixes

* [skip ci] ui fixes

* refactor sell and buy flow

* handle dfx availability by country

* PR fixes
2023-12-28 21:20:59 +02:00
Adegoke David
92914a8532
fix: Fix walletconnect connecting only with the first wallet (#1247) 2023-12-28 03:37:36 +02:00
Omar Hatem
c8856f5ca1
Generic fixes (#1243)
* handle currency names with appended network

* Fix BCH sending issue for p2sh addresses

* Update app versions [skip ci]
2023-12-22 23:31:06 +02:00
Serhii
1eaebcba83 [skip ci]Revert "minor fixes" 2023-12-20 14:25:30 +02:00
Omar Hatem
be285e7ebf
V4.12.0 v1.9.0 (#1236)
* update app versions and release notes

* update build number

* Fix balance page tabs UI on white screens [skip ci]

* Vulnerable btc seeds (#1238)

* Add flow to notify users with vulnerable seeds

* - Show vulnerable wallets warning on every app launch
- Change text

* increment build number

* add seeds sha text [skip ci]
2023-12-19 15:16:15 +02:00
Omar Hatem
d756b367d3
Make the exchange receive field always editable and can be taken from QR or Address book (#1230) 2023-12-16 03:20:56 +02:00
Serhii
b316f2fc7b minor fixes 2023-12-15 17:19:50 +02:00
Serhii
95a1291704 Format code 2023-12-14 18:41:43 +02:00
Serhii
d0e28b58ac [skip ci] update icon 2023-12-14 14:51:52 +02:00
Serhii
72b6a50400 Merge branch 'main' into CW-529-Modify-2FA-introduction-screens 2023-12-14 14:32:52 +02:00
Serhii
31530dd566 fix UI issues 2023-12-14 14:11:07 +02:00
Serhii
660cd44244 update localization files 2023-12-14 12:58:02 +02:00
Matthew Fosse
2ff81df9e7
CW-512 wallet sort (#1195)
* add shared preferences key and make list re-orderable

* macos sonoma build fix

* everything (almost) works

* add translations

* more translations

* everything works

* fixes

* translation merge file fix

* fix for mobile platforms

* fix filter icon being invisible on bright theme

* first pass of adding ascending/descending to filter widget

* small fix

* update ascending switch

* fixes

* fix

* reverse creation sort

* review fixes part 1

* refactor into function rather than tuple + color changes

* more fixes

* remove unrelated file

* updated wording

* cleaner callback

* undo sonoma fix

---------

Co-authored-by: fossephate <fosse@book.local>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2023-12-13 23:58:43 +02:00
Serhii
9a716d1dc9 Merge branch 'main' into CW-529-Modify-2FA-introduction-screens 2023-12-13 17:44:42 +02:00
Serhii
1c53229ea0 minor fix 2023-12-13 17:33:51 +02:00
Serhii
049e4def27
fix accessibility issues (#1224) 2023-12-13 17:27:30 +02:00
Serhii
faf151a4dc
CW-531-Bitcoin-Fees-issue (#1218)
* SegWit transaction size

* [skip ci] fix electrum balances layout

* fix tapping area
2023-12-13 16:43:26 +02:00
Adegoke David
ef7762eaca
Polygon-Wallet-fixes (#1222)
* fix: Fix issues surrounding polygon release

* Add polygon generation command to pubspec script

* Remove unnecesary cast

* fix: Remove unneeded code

* fix: Adjust workflow file to pick polygonScan apikey

* fix: Issues noticed while testing

* fix: Issues noticed while testing

* fix: Transaction should reflect the token name

* fix: Remove unused import

* feat: Add alchemy node to default migration settings

* Fix sending Polygon delay
Remove alchemy node
Minor Enhancements

* Remove scrolling from multiple choices settings row and make them fill the whole space [skip ci]

* Add USDT poly
Add icon for USDC.e

* Fix ERC20 tokens overriding old wallets
Add USDC.e to exchange

* - Remove unnecessary code
- Minor Enhancements

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2023-12-13 16:03:07 +02:00
Serhii
50299e60f0 Merge branch 'main' into CW-529-Modify-2FA-introduction-screens 2023-12-13 14:44:38 +02:00
Serhii
747a760124 willPopScope fix 2023-12-13 14:08:18 +02:00
Serhii
d5b9af1c19 update localization 2023-12-13 13:55:22 +02:00
Matthew Fosse
7ce387c130
fix dot indicator color (#1228) 2023-12-11 18:47:22 +02:00
Konstantin Ullrich
72777fbf2c
Cw 534 monero wallet generic enhancements (#1225)
* Fix word count for polyseed on pre_seed_page

* Fix naming of advanced setting

* Set default Seed Type to Polyseed and disable bg-sync by default

* Fix inconsistency between seed type field in restore screen and the one in advanced settings

* Use pub.dev release of polyseed

* Add Legacy Seed to wallet_keys-Page in case of Polyseed
2023-12-09 03:37:39 +02:00
Serhii
2138c35e38
CW-532-DFX-buy-provider (#1209)
* dfx buy provider ui

* fix signing flow

* fixed provider determination based on wallet type and app settings

* update localization files

* minor fix

* Fix BTC, LTC und BCH signMessages

* Add signMessage to monero

* open dfx in webview

* Update dfx_buy_provider.dart

* Revert merge conflict

* Update bitcoin_flutter ref

---------

Co-authored-by: Konstantin Ullrich <konstantinullrich12@gmail.com>
2023-12-08 16:05:52 +02:00
Omar Hatem
b95af3a649
V4.11.0 v1.8.0 (#1216)
* V4.11.0 and v1.8.0

* Add polygon to iOS and macOS
Minor import fix for monero.com

* Remove Polygon temporarily

* Remove tor temorarily [skip ci]

* Remove tor temorarily [skip ci]
2023-12-05 02:35:33 +02:00
Adegoke David
b3d579c24a
CW-527-Add-Polygon-MATIC-Wallet (#1179)
* chore: Initial setup for polygon package

* feat: Add polygon node urls

* feat: Add Polygon(MATIC) wallet WIP

* feat: Add Polygon(MATIC) wallet WIP

* feat: Add Polygon MATIC wallet [skip ci]

* fix: Issue with create/restore wallet for polygon

* feat: Add erc20 tokens for polygon

* feat: Adding Polygon MATIC Wallet

* fix: Add build command for polygon to workflow file to fix failing action

* fix: Switch evm to not display additional balance

* chore: Sync with remote

* fix: Revert change to inject app script

* feat: Add polygon erc20 tokens

* feat: Increase migration version

* fix: Restore from QR address validator fix

* fix: Adjust wallet connect connection flow to adapt to wallet type

* fix: Make wallet fetch nfts based on the current wallet type

* fix: Make wallet fetch nfts based on the current wallet type

* fix: Try fetching transactions with moralis

* fix: Requested review changes

* fix: Error creating new wallet

* fix: Revert script

* fix: Exclude spam NFTs from nft listing API response

* Update default_erc20_tokens.dart

* replace matic with matic poly

* Add polygon wallet scheme to app links

* style: reformat default_settings_migration.dart 

* minor enhancement 

* fix using different wallet function for setting the transaction priorities 

* fix: Add chain to calls

* Add USDC.e to initial coins

* Add other default polygon node 

* Use Polygon scan
some UI fixes

* Add polygon scan api key to secrets generation code

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2023-12-02 04:26:43 +02:00
Matthew Fosse
3760285a64
ios/mac secure storage pin migration (potential fix) (#1205)
* ios/mac secure storage pin migration

* function call was incorrect

* Update default_settings_migration.dart

---------

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2023-11-30 23:39:09 +02:00
Konstantin Ullrich
2bddeb6ac2
Polyseed design changes (#1211)
* Add icons to Language- and Seedtype-picker to indicate it's clickability

* Add Seed Type Selector to New Wallet Page

* Rename "Advanced Privacy Settings" to "Advanced Settings"
2023-11-30 17:38:28 +02:00
Omar Hatem
4d245b7ff1
v4.11.0 and v1.8.0 (#1192)
* v4.11.0 and v1.8.0

* Add missing functionalities to mac os monero api.cpp

* Fix creating a new wallet issue

* Remove un-necessary linux, macos, and windows files from bitcoincash package
2023-11-30 16:51:19 +02:00
Konstantin Ullrich
d07efc81ca
Lookup NFTs only if the current wallet is an Ethereum Wallet (#1197) 2023-11-27 23:50:12 +02:00
Matthew Fosse
615d016dd5
be absolutely sure we delete secure storage keys before writing them (#1182)
* be absolutely sure we delete secure storage keys before writing them

* sync with other PR

---------

Co-authored-by: fossephate <fosse@book.local>
Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
2023-11-27 15:28:34 +02:00
Konstantin Ullrich
00c97c74b8
Cw 462 monero polyseed restore support (#1109)
* CW-462 Mark Places to integrate Polyseed

* CW-462 Add Restore from Polyseed

* CW-462 Add Restore from Polyseed

* CW-462 Add new Monero date-height pairs

* CW-462 Little Cleanup

* CW-462 Ups I missed that Debug line :/

* CW-462 Fix Polyseed not showing in Wallet-Seed/Keys Page

* CW-462 Prepare for Wallet creation

* CW-462 Fix merge conflict

* CW-462 Fix generating monero.dart

* CW-462 Add Polyseed generation

* CW-462 Add Polyseed Languages to SeedLanguagePicker

* CW-462 Apply requested changes

* CW-462 Minor bug fixes in restore screen

* Update wallet_restore_from_seed_form.dart

* CW-462 Minor Bugfix

* CW-462 Fix Restore from QR for Polyseeds

* CW-462 Fix null-check-operator exception for Polyseeds and minor inconveniences

* CW-462 Fix minor inconveniences

* Fix conflicts and review comments and wrap unspent issue with try and catch with reporting failure

---------

Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
2023-11-25 02:37:12 +02:00