Commit Graph

5079 Commits

Author SHA1 Message Date
Andrey Bocharnikov 54276ee731 chore_: fix error http handling 2024-09-26 17:00:35 +04:00
Andrey Bocharnikov c533a59d15 chore_: fine grained error handling 2024-09-26 15:39:53 +04:00
Andrey Bocharnikov c6cfa0396b chore_: use health provider in wallet service 2024-09-26 11:16:53 +04:00
Andrey Bocharnikov d480d8fd7d chore_: blockchain status json serialization 2024-09-25 23:49:55 +04:00
Andrey Bocharnikov 224db70fa7 chore_: add tests 2024-09-25 21:06:14 +04:00
Andrey Bocharnikov 9c25f80925 chore_: move toggleConnectionState to providers_health_manager.go 2024-09-25 21:06:07 +04:00
Andrey Bocharnikov 88e48a1358 chore_: fixes after rebase 2024-09-24 17:46:52 +04:00
Andrey Bocharnikov b2011773fc chore_: send health events 2024-09-24 17:37:56 +04:00
Andrey Bocharnikov 0a72e3f7e4 chore_: blockchain_health_manager.go 2024-09-24 17:37:54 +04:00
Andrey Bocharnikov 55ae07ca62 chore_: providers_health_manager.go 2024-09-24 17:35:26 +04:00
Andrey Bocharnikov a8eecd3d92 chore_: add each functor status to the circuit breaker result 2024-09-24 17:35:26 +04:00
Andrey Bocharnikov d2fb5695d1 fix(wallet)_: address PR feedback
fixes #21071
2024-09-24 17:35:15 +04:00
Andrey Bocharnikov dd8dcb4095 fix(wallet)_: add tests
fixes #21071
2024-09-24 17:34:10 +04:00
Andrey Bocharnikov f07e3a83a3 fix(wallet)_: Ignore chain down notifications when connection is lost
fixes #21071
2024-09-24 17:26:33 +04:00
dlipicar dd994587a3
chore_: initial steps to decouple rpc chain modules (#5856)
* chore_: moved chain rpclimiter and tagger to separate packages

* chore_: initial steps to decouple rpc chain modules
2024-09-24 14:07:26 +01:00
Siddarth Kumar a7daee3dae
chore(docker)_: use llvm instead of gcc 2024-09-24 17:52:17 +05:30
Igor Sirotin 2ca34489db
fix_: properly call commit_check and checkout forks (#5863) 2024-09-24 10:51:59 +01:00
richΛrd a84f78f8aa
fix_: remove unreachable code error message (#5845) 2024-09-23 09:12:02 -04:00
Churikova Tetiana 2f71d9d9f2 test_: added negative tests for MutiTx 2024-09-23 11:17:06 +02:00
Siddarth Kumar c1ce30ad20 chore(android)_: specify android api version 2024-09-22 18:29:17 +05:30
Siddarth Kumar 2ba415550b chore(nix)_: bump ndk,openjdk & android platform 2024-09-22 18:29:17 +05:30
Siddarth Kumar 703860b9db chore(nix)_: upgrade nixpkgs to match mobile 2024-09-22 18:29:17 +05:30
Siddarth Kumar 4d225967d4 chore_: fix sqlcipher build for android on ndkr26b 2024-09-22 18:27:47 +05:30
Igor Sirotin e53a5c968e
fix_: commit-check support forks (#5851)
* fix_: commit-check support forks

* fix_: run on pull_request_target

* fix_: more event types
2024-09-20 18:11:51 +01:00
Sale Djenic d6565375c1 test_: improvements for browser connect tests 2024-09-20 15:16:17 +02:00
Sale Djenic 8ddde51445 fix_: browser connect - send transaction command 2024-09-20 15:16:17 +02:00
Sean Hagstrom 385933a60d
feat: fallback to cache for prices and token market values when calling GetWalletToken (#5832)
This change adapts the market manager to cache the token-market-cap, and modifies the existing `GetWalletToken` function to use the token-price and token-market cache data. Additionally, we choose to use the cached price and market data for roughly 60 seconds when calling the `GetWalletToken` function.
2024-09-20 12:24:43 +01:00
dlipicar f165103f66
chore_: migrate to uber's mock fork (#5858)
* chore_: migrate to uber's mock fork

* chore_: make vendor
2024-09-20 10:08:11 +01:00
Alex Jbanca d20c91cb99 fix_: Send transaction failures
1. Fixing a crash on `ValidateAndBuildTransaction`: tx.Nonce() is called on a null tx whenever it fails to build the transaction
2. Fixing gas extimations. The estimations are always done on mainnet and the requested chainId is ignored in the estimation
2024-09-19 12:46:38 +03:00
frank f04a9a8726
feat(sync)!: leftovers work for sync fallback (#5794)
* feat(sync)!: remove compatibility with v2.29

* feat(sync)_: add AC notifications when initiating the sync fallback

Needed for https://github.com/status-im/status-desktop/issues/15750

Adds an AC notification when the syncing fails and the user is prompted to use a seed phrase instead.
There is one notification for the initiator (created) and one for the old account (received).
Once the flow is completed, ie the receiver presses Enable and sync,  the notifications are deleted

* test_: update test

* fix_: lint issue

* chore_: ignore tmp file generated by make lint-fix

* chore_: rename EnableAndSyncInstallation to EnableInstallationAndSync

* chore_: address review feedback

* chore_: revert changes to .gitignore

* fix_: simplify code

* fix_: keep old API

---------

Co-authored-by: Jonathan Rainville <rainville.jonathan@gmail.com>
2024-09-19 16:17:46 +08:00
frank 6e5a32c022
fix(mentions)_: add callID for `OnChangeText` (#3806) 2024-09-19 13:03:56 +08:00
Arseniy Klempner 11a27bb2bd
feat(telemetry)_: message check success and failure, peers by shard and origin (#5824)
* feat(telemetry)_: track message check success and failure

* feat(telemetry)_: track peers by shard and origin
2024-09-18 21:43:04 -07:00
Igor Sirotin 946ee4e496
feat_: improve PR commit messages processing (#5835)
* fix_: commit-messages github action

* fix_: prevent -> avoid

* fix_: use curly braces
2024-09-18 23:33:48 +01:00
Igor Sirotin ff7de68845
fix_: run git hooks in simple shell (#5841) 2024-09-18 10:17:08 +01:00
Anastasiya d036f208bb
test_: added a couple of new schemas and methods (#5843) 2024-09-18 10:55:47 +03:00
Igor Sirotin 596d75ab79
fix_: flaky TestSignalsServer (#5838) 2024-09-16 13:38:50 +01:00
Anton f51d4654f6 test_: added test case for Signals via ws endpoint 2024-09-16 12:41:13 +02:00
Igor Sirotin f859b58c38
fix(tag_version)_: properly calculate version tag (#5834) 2024-09-13 16:51:36 +01:00
frank 51c1193ed2
feat_: Implement request logging functionality (#5812)
* feat_: Implement request logging functionality

* chore_: lint fix

* chore_: address review feedback

* test_: check panic recovery panic

* chore_: add json tags
2024-09-13 16:08:20 +01:00
Igor Sirotin 43353e036f
fix(tag_version)_: bump major version on breaking change (#5829) 2024-09-13 15:54:37 +01:00
Igor Sirotin 13ab5b6f24
fix_: wakuv2 waitgroups (#5814)
* fix(wakuv2)_: usage of waitgroup

* fix_: revert changes in ConnectionChanged
2024-09-12 15:04:37 +01:00
Igor Sirotin 9038c66819
feat(statusd)_: websocket endpoint for getting events (#5806)
* feat(statusd)_: websocket endpoint for getting events

* fix_: remove signals naming

* fix_: lint
2024-09-12 14:35:25 +01:00
Igor Sirotin 09ee23a3d9
fix_: flaky TestSimulationBloomFilter (#5822) 2024-09-11 17:14:35 +01:00
Khushboo Mehta 4816769506 feat!: Return prices array along with SuggestedRoutes 2024-09-11 17:03:33 +02:00
Sale Djenic 0235889e12 feat_: check for balances after each fees update 2024-09-11 13:51:51 +02:00
Sale Djenic 506a76bf9f feat_: recalculate route fees with every new block 2024-09-11 13:51:51 +02:00
Sale Djenic 1bb9cbc573 chore_: router response moved to wallet responses location
Following the approach we did for keeping requests at the same location, these changes introduce
new location for responses. `SuggestedRoutesResponse` is moved there and renamed to
`RouterSuggestedRoutes` and code is updated accordingly.

New type `Route` defined (since a single route is composed of zero or more paths).

Types `Route`, `Path`, `Graph` and `Node` belong to a new `routs` package now.
2024-09-11 13:51:51 +02:00
Sale Djenic 00559692bc chore!: router code organization improvements
It's a breaking change due to errors' changes, the list of mapped old error codes:
- `"WR-001"` is now `"WRR-001"`
- `"WR-002"` is now `"WRR-002"`
- `"WR-003"` is now `"WRR-003"`
- `"WR-004"` is now `"WRR-004"`
- `"WR-005"` is now `"WRR-005"`
- `"WR-006"` is now `"WRR-006"`
- `"WR-007"` is now `"WRR-007"`
- `"WR-008"` is now `"WRR-008"`
- `"WR-009"` is now `"WRR-009"`
- `"WR-010"` is now `"WRR-010"`
- `"WR-011"` is now `"WRR-011"`
- `"WR-012"` is now `"WRR-012"`
- `"WR-013"` is now `"WRR-013"`
- `"WR-014"` is now `"WRR-014"`
- `"WR-015"` is now `"WRR-015"`
- `"WR-019"` is now `"WRR-016"`
- `"WR-020"` is now `"WRR-017"`
- `"WR-021"` is now `"WRR-018"`
- `"WR-025"` is now `"WRR-019"`

- `"WR-016"` is now `"WR-001"`
- `"WR-017"` is now `"WR-002"`
- `"WR-018"` is now `"WR-003"`
- `"WR-022"` is now `"WR-004"`
- `"WR-023"` is now `"WR-005"`
- `"WR-024"` is now `"WR-006"`
- `"WR-026"` is now `"WR-007"`
- `"WR-027"` is now `"WR-008"`

Other changes:
- `RouteInputParams` type moved to `requests` package and code updated accordingly
- `SuggestedFees` type moved to a new `fees` package and code updated accordingly
- `SendType` type moved to a new `sendtype` package and code updated accordingly
- the following functions moved to `common` package
  - `ArrayContainsElement`
  - `ArraysWithSameElements`
  - `SameSingleChainTransfer`
  - `CopyMapGeneric`
  - `GweiToEth`
  - `WeiToGwei`
- the following consts moved to `common` package
  - `HexAddressLength`
  - `SupportedNetworks`
  - `SupportedTestNetworks`
2024-09-11 13:51:51 +02:00
Sale Djenic d10d492515 chore!: removed v2 mark from api endpoints, structs and files marked as router v2
Breaking change!

Since the old router logic is removed, there is no need to have files and structs marked as v2.

Renamed endpoints:
- `GetSuggestedRoutesV2` to `GetSuggestedRoutes`
- `GetSuggestedRoutesV2Async` to `GetSuggestedRoutesAsync`
- `StopSuggestedRoutesV2AsyncCalcualtion` to `StopSuggestedRoutesAsyncCalcualtion`
2024-09-11 13:51:51 +02:00
Sale Djenic e58787536a chore_: old router logic removed 2024-09-11 13:51:51 +02:00