Commit Graph

3289 Commits

Author SHA1 Message Date
Dario Gabriel Lipicar cdd36fc997 feat(wallet): cleanup proxy env vars, add proxy stage name 2024-08-16 19:05:13 +02:00
Ivan Belyakov 79be1550f1 feat(wallet): add support for proxy basic auth for market providers
feat(wallet): add status proxy URLs for blockchain providers
2024-08-16 19:05:13 +02:00
Dario Gabriel Lipicar d6ecc24562 feat(@desktop/wallet): integrate new onramp status-go api 2024-08-15 18:56:18 +02:00
Igor Sirotin 395f0e515b
chore_: allow disabling http/ws api from cli (#16118) (#16126)
* chore_: allow disabling http/ws api from cli

* ci: add env vars to prevent autotests hitting 8545 (#16120)

* chore: increase timeout for saved addresses test

* ci: add env vars to prevent autotests hitting 8545 port

---------

Co-authored-by: Anastasiya <82375995+anastasiyaig@users.noreply.github.com>
2024-08-15 10:43:48 -04:00
Jonathan Rainville 6cd9fa91e8
Make the getENSName calls async (#16099)
* wip: make the getENSName calls async

* fix: login to the app takes forever

Resolving ens name sometimes, most likely due to network congestion can be really slow,
that results in slow app loading, especially if user has more accounts, cause the app checks
ens name existence for each account.

This PR does that check in an async way.

Fixes #16086

* chore: async check for ens name existence when adding new accounts

---------

Co-authored-by: Sale Djenic <aleksandardjenic@status.im>
2024-08-14 13:25:42 -04:00
saledjenic 5054d2963d
fix: keycard signing integration into wallet connect flows (#16083)
Fixes: #15957
2024-08-12 14:46:54 -04:00
saledjenic 7dc08731f4
fix: checksum validation (#15915)
* feat: checksum validation added to adding saved addresses

Fixes: #15772

* feat: checksum validation added to adding watch only address

Fixes: #15779
2024-08-12 13:56:54 -04:00
saledjenic e4ddfa4042
fix: tx fails if the bonder fee is higher than the amount being sent (#15932)
Closes #15922
2024-08-09 10:58:14 -04:00
saledjenic 0647c1e204
feat: some limits for wallet section (#16031)
Added limitations:
- allowed adding of max 20 accounts
- allowed adding of max 3 watch only accounts
- allowed adding of max 5 key pairs (including the profile key pair)
- allowed adding of max 20 saved addresses per mode

Closes #15934

* feat: limits applied when running keycard flows that add new key pairs/accounts
2024-08-08 11:27:12 -04:00
Michał Iskierko 111fd63035
feat(@desktop/metrics): send basic metrics (#15803)
Issue #15737
2024-08-08 09:41:16 -04:00
Godfrain Jacques 34ddfbf53a
feature(connector)_: Add model join to handle connected dApps (#15954) (#16006)
* feature(connector)_: Add model join to handle connected dApps (#15954)

* feature(connector)_: Add model join to handle connected dApps

* Fix review comments

* chore: bump status-go

* chore: bump status-go to latest
2024-08-07 15:55:03 -04:00
Igor Sirotin 767215e6e4
fix: change rpc host to localhost (#16003) 2024-08-06 16:04:51 -04:00
Alex Jbanca 8e22459e63 fix(WalletConnect): Fixing disconnect notifications
The disconnect notifications were operating on `WalletConnectService.currentSessionProposal`. This object stores the current session object on connect, but it's not necessarily the same session the user wants to disconnect.
To fix this I'm getting the active sessions from status-go when the disconnect request is received (from Status or dapp). If the topic matches to any connection topic owned by the users accounts we'll show a notification.
2024-08-06 08:22:16 -04:00
Cuteivist dd83653736
fix(wallet): Update preferred networks even when empty (#15841) (#15911) 2024-07-31 13:33:30 -04:00
Stefan Dunca 112a6f3003
Connection fixes for v2.30.x (#15921)
* chore(dapps) remove the POC wallet connect

Updates: #15598

* fix(dapps) Wallet Connect internet connection reestablishing issue

Add a new NetworkChecker QObject to StatusQ to be used in checking
internet connection status. This is used by the WebEngineLoader
to only allow loading of web pages when there is an active internet
to cover for a corner case on MacOS where the internet connection is
not reestablished if the WebEngineView was loaded without an active
internet connection.

Closes: #15598, #15806

* chore(dapps) disable eth_signTransaction for Wallet Connect

Closes: #15661
2024-07-31 13:23:39 -04:00
Jonathan Rainville 03d5a3ca2e
fix(notif-indicator): evaluate the notifications on app start (#15872)
Fixes #15835

Evaluate if we have notification on app start (when chats are loaded) so that the notification icon can be shown if we open the app **not** in the chat (eg in the wallet)
2024-07-31 09:59:56 -04:00
Jonathan Rainville 8e7465b7b6
chore: set missing message verification and confirmation for message sent enabled by default (#15774) (#15897)
Co-authored-by: richΛrd <info@richardramos.me>
2024-07-30 17:26:51 -04:00
Sale Djenic db77654274 fix: buying stickers doesn't work and popup may be misleading for the user
Closes: #15764
2024-07-25 10:30:31 -04:00
Sale Djenic e66b0ab0a9 fix: bridging from send modal results in bounder fee error
Fixes: #15722
2024-07-25 10:30:19 -04:00
Lukáš Tinkl 8e0aed35e8 fix(StatusStickerPackClickPopup): display correct detailed contents of a sticker pack
- just use the `model.stickers` to access the submodel, remove dead NIM
code
- make sure that the installed sticker packs are loaded, even before
first opening the Sticker popup
- StatusStickerMarket: fix the back button
- fix launching the Buy stickers modal (SendModal)

Fixes #15718
2024-07-25 11:31:46 +02:00
Michal Iskierko 8d3a0ac415 feat(@desktop/metrics): add global variables for mixpanel credentials
Issue #15729
2024-07-25 11:03:15 +02:00
Cuteivist 30b88377c2
fix(wallet): Refresh receiver preferred chain ids (#15712) 2024-07-24 21:19:39 +02:00
Stefan dc43a40a76 fix(dapps) minor wallet connect fixes and improvements
Also

- don't report error in case of status-go returning nil instead
of an empty array.
- fix misleading alias to AmountsArithmetic
- minor improvements requested in previous discussions

Updates: #15707
2024-07-24 13:24:05 +02:00
Khushboo Mehta 35c765649f feat(@desktop/wallet): Swap:: Remove feature flag 2024-07-23 17:01:42 -03:00
Godfrain Jacques 9934b624fd
feat(connector)_: turn feature flag on (#15692) 2024-07-23 11:14:11 -07:00
Khushboo Mehta 8f3a2e8189 fix(@desktop/wallet): FIx for notification shwoing from to token symbol and to token amount 2024-07-23 19:17:00 +02:00
Cuteivist 047f558cd1
feature(wallet): Token preferences in assets model (#15706) 2024-07-23 14:00:49 +02:00
Michal Iskierko 52fe774975 feat(@desktop/metrics): Show metrics popup when starting application
Adding local setting: metrics_popup_seen
Small refactoring: showing popup from main.qml
Showing popup: 1. on welcome screen, 2. in Settings/Privacy page and 3. after login when the popup has not been shown yet

Issue #15628
2024-07-23 10:59:03 +02:00
Dario Gabriel Lipicar 9d441fcff9 feat(@desktop/wallet): add support for approve and swap activity entries
Fixes #14836
2024-07-22 21:12:38 -03:00
Stefan e57f7552d9 feat(dapps) make wallet connect request data human readable
Notify user if he doesn't hold enough funds to make the transaction
Also check fees funds including the amount to be sent

Closes: #15192
2024-07-23 00:24:22 +02:00
Khushboo Mehta c89203f371 feat(@desktop/wallet): Implementation of Notifications
fixes #14834
2024-07-22 17:42:33 -03:00
Godfrain Jacques 347e0df8b0
feat(connector)_: add sign transaction flow (#15662)
fixes #15182

 - Implement the sign transaction popup for Accept or Rejecting
   transactions
2024-07-22 11:02:35 -07:00
Siddarth Kumar 798ad6d4b3
chore: sleep to avoid race conditions on intel (#15194)
With the help of build flags this commit we sleep for 0.7 seconds before we make calls to the following status-go functions that crash on intel MacOS.
- `keycard_go.keycardInitFlow`
- `keycard_go.keycardCancelFlow`
- `status_go.initializeApplication`

As per my investigations this crash happens due to a race condition and was not consistently reproducible. Sometimes it would happen and other times it would not.
I know for sure it used to happen in these places and adding a tiny sleep before calling them made sure that the crashes weren't reproducible for me.

I think a 2.1 second delay during onboarding would be acceptable vs the existing condition of the desktop app straight up crashing.
2024-07-22 20:24:51 +05:30
Jonathan Rainville 8db0ac94f0
fix(networks): enable network before mint or airdrop (#15601)
Fixes #15507

Makes sure to enable the network where the owner token was minted before minting or airdroping a token.
This makes sure that the account selector shows the right balance and there is no ETH error before doing the transation
2024-07-22 09:52:44 -04:00
Dario Gabriel Lipicar 83db905e28 feat(swap): added more explicit error messages
Closes #14956
2024-07-19 16:40:22 -03:00
Godfrain Jacques 6eeb917cd7
feat(connector)_: create connection between connector service and status-desktop (#15565)
fix #15179 that triggers connection request from client

 - Setup the initial architecture for connecting Status-go and UI
   screens
 - Implement the request Connection popup for Accept or Rejecting
   connection
2024-07-19 12:21:36 -07:00
Jonathan Rainville a357299928
chore(beta): hioe ENS community permission creation (#15664)
Fixes #15663
2024-07-19 14:45:40 -04:00
Alex Jbanca 5fc3b37fbd fix: Fixing crash on status-go exception when calling `getOwnedCollectiblesAsync` 2024-07-19 19:53:31 +03:00
Igor Sirotin 3202413501
fix: join community with keycard (#15635)
* fix: keycard signature add 27
* fix: hash message before signing on keycard
2024-07-19 16:17:46 +01:00
Ivan Belyakov 2f9bf48856 fix(wallet): fix balance chart to display chart for tokens
Replace missing methods calls of chart after it was replaced with a different
component.
Update chart on networks change.
Fix data for all chains requested - both test and real networks.
Fix some unrelated qml errors
2024-07-19 12:34:06 +02:00
Stefan 248ba1c1c8 feat(dapps): Add support for max fees in WalletConnect requests
Compute max fees for transaction related requests and display the
results to user.

Also:

- Add helper to convert from hex (backend) to decimal (frontend) values.
- Add helper to convert from float gwei to hex wei
- Update tests to accommodate for the new dependencies.

Sourcing of account balances is not included therefore the transaction is
allowed to go through even if the account balance is insufficient. An error
will be generated by the backend in this case.

Updates: #15192
2024-07-19 10:02:50 +02:00
Michal Iskierko ecaa9b39c0 feat(@desktop/metrics): Initialize centralized metrics
Issue #15446
2024-07-16 14:58:13 +02:00
Jonathan Rainville 54924420e6
fix(import): fix import community popup (#15568)
Fixes #15526

Fixes the import popup showing the wrong state. That was because a param was removed from the function, but not from the call to that function, so `true` was passed in `invitationPending` when it shouldn't have.

I also added a call to `spectateCommunity` before the community intro popup so that the community spectated beforee sending the request
2024-07-15 13:27:28 -04:00
Cuteivist 2cad2a0885
fix: Save settings before logging in (#15506) 2024-07-15 15:09:44 +02:00
Ivan Belyakov 53ba432a89 fix(keycard): login using keycard with multiple profiles stuck
Fixes #15033
2024-07-15 11:55:54 +02:00
Dario Gabriel Lipicar ceeef2f313 fix(@desktop/wallet): properly parse suggested routes error response 2024-07-12 19:02:03 -03:00
Jonathan Rainville 4a097cfef7
fix(airdrop): sending an airdrop using a secondary account (better UX) (#15448)
Fixes #15382
So there is no easy way from the models and data we currently have in the client to know which account minted the owner token. So the easiest way to help the user is just to catch the error and show a better message.
2024-07-12 13:28:25 -04:00
Godfrain Jacques 5db513980f
fix launching multiple instances of status desktop including on windows systems (#15533)
fixes #15493
2024-07-12 08:15:03 -07:00
Jonathan Rainville 8216ea37f7
feat(icon): show a red dot when we have unread notifications and windows icon with white border (#15496)
* feat(icon): show a red dot when we have unread notifications
* feat(windows-icon): update windows icon to have a white border

Fixes #14788
Fixes #14855

Adds a red dot on the tray icon if there is an unread message in an unmuted channel or in the activity center
2024-07-12 09:41:27 -04:00
Stefan fae3d14d50 feat(dapps): fetch max fees per gas from blockchain if not provided
Updates: #15192
2024-07-12 15:39:41 +02:00