Commit Graph

663 Commits

Author SHA1 Message Date
Igor Sirotin 33d38a4081 fix: Device syncing
- Added local pairing signals
- Remove slash ending from keystorePath
- Implemented localPairingState. Fixed sync new device workflow. 
- Error message view design update 
- Moved local pairing status to devices service
- ConnectionString automatic validation
- Async inputConnectionString
- Added all installation properties to model. Minor renaming.
- Removed emoji and color customization
- Show display name, colorhash and color in device being synced
- Add timeout to pairing server
- Add device type
Fix `DeviceSyncingView` sizing. Fix `inputConnectionString` async task slot.
2023-03-16 00:27:21 +13:00
Dario Gabriel Lipicar 30294f97fe feat(@desktop/wallet): add pagination to collectibles view
Fixes #9754
2023-03-10 12:02:59 -03:00
Pascal Precht 25b0641cc2 feat: introduce first JoinCommunityView for token-gated communities
This does a few things:

- It integrates with the latest `CommunityTokensMetadata` to access
  community specific ERC721 token
- It changes `ChatLayout` such that it conditionally loads either
  `ChatView` or `JoinCommunityView`. `JoinCommunityView` has been
  specifically designed for token-gated communities

Here's what works (in terms of token permissions):

1. If a community has token permissions and the the current users is not
   a member of that community, we show `JoinCommunityView` instead of
   `ChatView`
2. Any community token permissions of type "Become member" are listed in
   the `JoinCommunityView`
3. There are different types of token critera a permission can have:
   ERC20 token, ERC721 token, or ENS (which is also ERC721 but we have
   a type for that nonetheless)

   Only ERC20 token balances are checked for the known wallet accounts.
   This happens every time the known token list has been updated (every
   10 min atm).

   We still need to add balance checks for any ERC721 tokens and ENS.
4. If token permissions are created, updated or deleted by the community
   owner, the `JoinCommunityView` will update in real-time.

You'll also notice that the `Reveal my address and request access`
button will be enabled if any of the token permissions are fulfilled
(only ERC20 at the time being). Clicking that button will not yet send
a request.

This will be done in the next step as part of https://github.com/status-im/status-desktop/issues/9761
2023-03-09 16:35:06 +01:00
Igor Sirotin 7c1c178d37
QR code scanner (QML component) (#9464)
Co-authored-by: Richard Ramos <info@richardramos.me>
2023-03-07 12:08:38 -04:00
Dario Gabriel Lipicar eed98809d1 feat(@dekstop/wallet): support collectibles in activity tab
Fixes #8811
2023-03-07 11:07:04 -03:00
Alex Jbanca 3897b42828 chore: bump nimqml 2023-03-07 12:31:36 +02:00
Alex Jbanca 58e9e61702 fix(SplashScreen): Enable threaded renderer 2023-03-07 12:31:36 +02:00
Michal Iskierko c48886ec1e chore(@desktop): Upgrade status-go
Issue #9545
2023-03-07 10:04:12 +01:00
Michal Iskierko 467539446d chore(@desktop): Upgrade status-go
Issue #9725
2023-03-06 11:27:57 +01:00
MishkaRogachev 38a9b4a7f1 feat(ActivityCenter): Support status-go PR with endpoints refactor 2023-03-03 19:52:20 +04:00
Jacek Sieka 71bbb03faa
Nim library upgrades, pt1 (#9703)
This PR upgrades a number of libraries as well as nim itself, to address
security issues and crashes that we've worked to solve over the past few
months on the nimbus-eth2 side leading up to its 1.6 migration - they
include changes that are safe to use in both 1.2 and 1.6 without
requiring 1.6, making the code compatible with both versions.

In particular, 1.6 becomes more strict in several ways including
exception handling, style and certain langauge constructs related to
memory safety - as a result, we've cleaned up said libraries and
improved their stability overall, including fixing several crashes.

* nim 1.2.18 - this is the last release in the 1.2 series we produced
together with upstream based on nimbus' needs - between the version
Desktop is using today and v1.2.18, changes are predominantly backports
from newer Nim versions that we asked for while working on stability in
Nimbus itself.
* chronicles - cleanups
* confutils - cleanups
* faststreams - cleanups & crash fixes
* nim-json-serialization - several important crash fixes for json
parsing edge cases
* metrics - cleanups & threading fixes
* secp256k1 - upstream updates (including security fixes)
* serialization - cleanups
* stew - many convenience fixes and updates to common low-level
utilities, such as Result and hex / base64 / etc parsing
* stint - cleanups
* zlib - cleanups
* nimPNG - cleanups
* nimcrypto - cleanups

This is part 1 of library upgrades and focuses on the low-level
libraries - part 2 will upgrade the network stack (chronos, json-rpc,
web3, etc), keeping the two separate so as to limit the potential impact
of this PR.
2023-03-03 11:14:10 +01:00
Pascal Precht e4b8814bfa feat(Communities): allow for creating community permissions
This commit is the first of implementing community permissions.
**It is not implementing the complete feature**, rather does it
introduce the first pieces, such that we can get code reviewed and
merged before it grows too big.

To review these features, please make sure to

1. Enable wallet (Settings -> Advanced -> Wallet toggle)
2. Enable community permissions (Settings -> Advanced -> Community
   Permissions toggle)

You'll have to restart the app after doing so.

The commit introduces the following:

**UI, API calls and view models to CRUD community permissions**

After creating a community, the user can go to the community
settings and create new token permissions. The user can also update
and delete existing permissions.

**Asset and collectible view models**

To create community token permissions, users have to select
the token criteria. This commit introduces the `assetsModel` for ERC20
tokens and `collectiblesModel` for `ERC721` tokens.

The latter only supports custom minted community tokens at this point.

**This commit requires:** https://github.com/status-im/status-go/pull/3207
2023-03-03 10:22:32 +01:00
Stefan a0170a3fda feat(wallet) propagate multi-transaction ID to Nim
Bump status-go to include the propagation of multi-transaction ID for status-go APIs

Also

- Add leftover fix from SendModal layout

Updates: #7663
2023-03-02 14:25:53 +04:00
Jacek Sieka 1856c9de93 remove task-runner dependency
As of #9596, task-runner is no longer used.

Due to how the build system works, task-runner was providing nim-stew,
nim-bearssl and nim-chronos to the project, even though these are also
top-level dependencies - effectively this means there were multiple
versions of these libraries in the source tree and it is not entirely
intuitive which is actually used - adding to the confusion, the
submodule was pinning different versions.

This PR removes task-runner and resets the other dependencies to the
versions in task-runner thus minimising collateral changes.

A duplicate copy of bearssl is also removed.
2023-03-01 10:20:45 -05:00
Sale Djenic bf9b709cc8 feat(@desktop/keycard): recover an account fetching previously backed up data from waku
Closes: #8920
2023-03-01 13:20:14 +01:00
Alex Jbanca d059fb7e1f chore(nimqml): Bump nimqml 2023-02-28 18:37:34 +02:00
Anthony Laibe 7d9a6f5a71 feat(@wallet): add pokt network + fallbark 2023-02-28 09:12:05 +01:00
Sale Djenic c83794470b chore(keycard): sync keycard with the current app state updated
This commit resolves a crash happened due to connection to
`SIGNAL_WALLET_ACCOUNT_TOKENS_REBUILT` when keycard sync
flow was run in the background.

Also updated the keycard synchronization process with the current state of
the application and is the first step of many which leads towards completion
of entire syncing feature.
2023-02-27 17:02:47 +01:00
Michal Iskierko f51dba06df chore(@desktop): Upgrade status-go
Issue #9233
2023-02-27 11:01:35 +01:00
Alex Jbanca 4d8757a128 fix(NimThreadpool): Implement lightweight threadpool
Motivation: reduce memory usage. The previous implementation was using 400+ mb of memory for a threadpool with 16 threads.
2023-02-27 10:16:53 +02:00
Richard Ramos 93ef76c3e4 fix: record bigger than 300 bytes 2023-02-24 08:56:37 -05:00
Richard Ramos e8ed91b3ba chore: update status-go (go-waku 0.5.1) 2023-02-23 09:03:56 -05:00
Khushboo Mehta e4d03a903e fix(@desktop/wallet): Wallet -> Bridge: can't send txn with bridge, code 32000: not available for chainID
fixes #9483
2023-02-22 09:40:32 +01:00
Michał Cieślak 03e1636cff feat(StatusQ): Add cpp model utils to allow handling ListModel and generic QAbstractItemModel uniformly
Closes: #9562
2023-02-20 22:25:56 +01:00
Anthony Laibe 5a8bc256b3 feat(@general): lower case password 2023-02-19 11:43:27 +01:00
Dario Gabriel Lipicar 27b8180fdd feat(@desktop/Wallet): use new status-go currency formatting API
Fixes #9453
2023-02-17 13:06:52 -03:00
MishkaRogachev b70e1f0fb4 feat(ActivityCenter): Add indication for visited/unvisited AC state
Close #347
2023-02-17 16:13:43 +04:00
Stefan 3bb667bb7a feat(Wallet) cache fetched balance history to DB for efficiency
- Bump status-go head that include the required specific changes
  - fetch token balance (native or ERC20) and cache historical token quantity data
  - fetch FIAT currency
- Extend presentation layer (NIM and QML) to account for API changes
- Remove timed request and other optimizations from the time of fetching
  balance history every time instead of querying cache
- Add C++ integration debugging tests and update network chain configuration (outdated)

Closes: #8175
2023-02-15 18:52:37 +04:00
Richard Ramos 7c1b4e37f3 fix: invalid length of multiaddr field (but loaded succesfully anyway) 2023-02-14 12:01:39 +01:00
Michal Iskierko b77033ef1a chore(@desktop): Upgrade status-go
Issue #8921
2023-02-13 13:42:29 +01:00
Richard Ramos 81926de731 fix: panic when enr's multiaddr is empty 2023-02-09 10:25:30 -05:00
Khushboo Mehta 2004adafba fix(@deaktop/wallet): Fix transfer function amount
fixes #8813
2023-02-09 15:40:52 +01:00
Michał Cieślak 1481790183 chore(general): move cpp files of monitoring tool from DOtherSide to ui dir
Additionally bumps DOtherSide cmake min version to 3.19

Closes: #9472
2023-02-09 14:27:53 +01:00
Michał Cieślak 51afe05d3c chore(general): cmake include file defined for StatusQ sources
Closes: #9426
2023-02-09 13:41:15 +01:00
Michał Cieślak 940d8cd2c0 chore(general): Move RXValidator to StatusQ 2023-02-09 12:48:11 +01:00
Michał Cieślak f43c3e2f2b chore(general): Move StatusSyntaxHighlighter to StatusQ, remove mock from Storybook 2023-02-09 12:48:11 +01:00
Michał Cieślak 8f25b93f96 chore(general): Move QClipboardProxy to StatusQ 2023-02-09 12:48:11 +01:00
Michał Cieślak ad34694826 chore(general): Deduplicate and move StatusWindow to StatusQ 2023-02-09 12:48:11 +01:00
Michał Cieślak 3a07651dd8 chore(DOtherSide): Use SortFilterProxyModel from StatusQ
Previously DOtherSide was an external, standalone library with own
submodule for SortFilterProxyModel. After merging DOtherSide directly
to status-desktop it should be treated as a build tool or part of build
configuration. Instead of owning c++ files by itselft, DOtherSide should
refer to all needed c++ sources in order to compile them and build
status-desktop properly.

Removing SortFilterProxyModel submodule from original DOtherSide and
changing config after merge to status-desktop was needed to be done
along with merge itself because otherwise there would be a conflict -
both DOtherSide and status-desktop had the same submodule
(SortFilterProxyModel).

Closes: #9410
2023-02-09 12:48:11 +01:00
Michał Cieślak c0a1cd58ab Removing SortFilterProxyModel submodule to avoid conflict when merging with status-desktop 2023-02-09 12:48:11 +01:00
Lukáš Tinkl 3a52e5e593 fix: correctly parse the destination folder
when saving an image to file

NIM already pre-processes the path for us in `utils.formatImagePath`
2023-02-09 12:48:11 +01:00
Lukáš Tinkl e9bf6cdbde fix: download image is saving to wrong folder
this seems to only happen on some linux platform QPAs where the native
file/folder dialog is returning bogus target directory URL; anyways
manipulating the URL using a QRegExp is fragile, better use builtin QUrl
methods for that

Needed for fixing https://github.com/status-im/status-desktop/issues/9307
2023-02-09 12:48:11 +01:00
Alex Jbanca 4119528eb2 fix(macosCmake): Prepend .mm files in order to override cpp implementation 2023-02-09 12:48:11 +01:00
Michał Cieślak 0525490619 feat: Add additional utilities for real-time app inspection
- context properties names exposed as a model
- checking if object is a model
- exposing human-readable type name
- exposing role names for models

Closes: https://github.com/status-im/status-desktop/issues/8787
2023-02-09 12:48:11 +01:00
Michał Cieślak ce5561d3be feat: add basic tools for app real-time monitoring
Required by: https://github.com/status-im/status-desktop/issues/8786
2023-02-09 12:48:11 +01:00
Lukáš Tinkl 4977b7aa2c chore: fix build with Qt 5.14 2023-02-09 12:48:11 +01:00
Lukáš Tinkl 210552b927 fix(StatusSyntaxHighlighter): code block fixes
- make the code bg/fg color configurable
- simplify the code, no need for an extra helper class
- fix code(block) regexes

Needed for https://github.com/status-im/status-desktop/issues/8649
2023-02-09 12:48:11 +01:00
mprakhov dda5e100f6 chore: add QSettings beginGroup and endGroup 2023-02-09 12:48:11 +01:00
Lukáš Tinkl 68096fe9ab fix(SoundManager): use logarithmic sound volume scale
Needed for status-im/status-desktop#8426
2023-02-09 12:48:11 +01:00
Boris Melnik 555192427e fix(hunspell): Remove hunspell cos we not use it
Fixes: https://github.com/status-im/status-desktop/issues/8424
2023-02-09 12:48:11 +01:00