1569 Commits

Author SHA1 Message Date
Dario Gabriel Lipicar
50c65411c8 chore_: added small util to analyze token stores 2025-02-21 17:14:52 +01:00
Dario Gabriel Lipicar
0d50bb3d3c chore_: added base sepolia USDC and EURC to token store 2025-02-21 17:14:52 +01:00
Dario Gabriel Lipicar
cdd19eef38 chore_: update uniswap token list 2025-02-21 17:14:52 +01:00
Dario Gabriel Lipicar
b1ed4db7f9 chore_: reorganize thirdparty dir into categories 2025-02-20 10:42:45 -03:00
Sale Djenic
0bf6048801 feat(wallet)_: calculating tx estimated time 2025-02-18 21:05:26 +01:00
Dario Gabriel Lipicar
aae12af211 chore_: empty active networks change event 2025-02-17 14:38:25 -03:00
Dario Gabriel Lipicar
3dfa6bd3fa chore_: tests fix 2025-02-17 14:38:25 -03:00
Dario Gabriel Lipicar
88f506e669 feat(collectibles)_: use networks events watcher in collectibles service 2025-02-17 14:38:25 -03:00
Dario Gabriel Lipicar
78d05d74e9 chore(network)_: implement networks events 2025-02-17 14:38:25 -03:00
Dario Gabriel Lipicar
c862b563c0 feat(network)_: implement (de)activable networks 2025-02-17 14:38:25 -03:00
Andrey Bocharnikov
115fe9f73b
feat(rpc)_: integrate test.eth-rpc.status.im (#6329)
* feat(rpc)_: integrate test.eth-rpc.status.im

fixes #6327

* fix_: VerifyENSURL, VerifyTransactionURL initialization
* keep backward compatibility: restore support for the single-provider proxy
2025-02-17 18:54:32 +04:00
Siddarth Kumar
7e8a0bec00 chore_: upgrade go to 1.22
This commit:
- upgrades`go` to `1.22`
- modify `xcodewrapper` to latest version from `nixpkgs`
- bring in `gomobile` derivation with newer version.
- upgrade golangci-lint to `1.59.1` for `go` version `1.22` support https://github.com/golangci/golangci-lint/releases/tag/v1.59.1
  -  make few exceptions incase of db queries for `gosec`
2025-02-17 19:33:45 +05:30
Mohamed Javid
b6b2597457
feat(wallet)_: Add base chain support to on ramp (#6343)
This commit adds Base chain support to on-ramp providers

Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
2025-02-14 18:31:41 +05:30
Sale Djenic
088e351f28 fix(wallet)_: applied custom tx changes to the path
Before this change, custom parameters were applied only after the next fee update, now they will
be updated appropriately and immediately.
2025-02-13 21:42:48 +01:00
Sale Djenic
1e0afc5642 feat(wallet)_: additional properties added to the router's path for the needs of the custom tx settings part
The following properties are added to the `routes.Path`:
- `SuggestedTxNonce`
- `SuggestedTxGasAmount`
- `SuggestedApprovalTxNonce`
- `SuggestedApprovalGasAmount`
- `TxGasFeeMode`
- `ApprovalGasFeeMode`
2025-02-13 21:42:48 +01:00
osmaczko
ddc12ae248
chore_: remove wakuv1 and wakuv2 wrappers (#6273) 2025-02-04 19:09:31 +00:00
Sale Djenic
c4dca62c4b chore(wallet)_: use proxy instead of OVM_GasPriceOracle contract for estimating l1 fee
- A new contract is used for estimating L1 fee.
- New contract's addresses are known only for Optimims and Sepolia Optimimsm.
- Old contract and addresses per chain are kept so far, but not in use anymore.

Comparing to other wallets, seems L1 fee is added to the total fee only for the Optimims chain.
So we're doing the same in this commit, disabling L1 fees for other than the Optimism.
2025-01-31 21:11:27 +01:00
Sale Djenic
9957dd330c chore(wallet)_: adjusting fees calculation to get closer to MM values 2025-01-31 21:11:27 +01:00
Sale Djenic
55268de845 chore(wallet)_: include l1 fees info (for the tx and approval) in the response
While ago we've disabled l1 info cause the estimated L1 fees were significantly higher than they should have been
(if I remember well, the L1 fees were about 1000 times higher than they should have been).

From this point, that wrong value might be coming from unreliable pokt calls/values, these changes bring them back.
2025-01-31 21:11:27 +01:00
Andrey Bocharnikov
17adba689e
chore(config)_: integrate new rpc providers configs (#6178)
* chore(config)_: Integration of new RPC Provider configurations

* default_networks.go
  * explicit provider initialization with more granular config (rps limiter, order)
  * token overrides made more flexible, support not only infura and grove
* get_status_node.go
  * override status-proxy auth instead of passing override config to rpc/client.go
* config.go
  * ProviderConfig removed
* client.go
  * Now any provider can be enabled/disabled (if user wants to use only his custom RPC urls)
  * Use bearer auth instead of URL auth
  * Provider order is defined by default_networks.go

* Do not store embedded RPC provider credentials in the DB

* FIXME:  TestLoginAndMigrationsStillWorkWithExistingDesktopUser uses deprecated test data (with non-existing related_chain_id in networks table)
2025-01-31 18:12:07 +04:00
Brian Sztamfater
214cac9fa5
fix_: check if bridge for token exists in ToChainId before returning contract address for FromChainId (#6272)
Signed-off-by: Brian Sztamfater <brian@status.im>
2025-01-30 18:55:15 -03:00
Sale Djenic
a44d4143b4 chore(communities)!: rename communitytokensv2 package to communitytokens
This is a breaking change which renames `communitytokensv2` package to `communitytokens`.
2025-01-30 14:56:13 +01:00
Sale Djenic
07a9d9aa2f chore(communities)!: remove communitytokens package
This is a breaking change which removes `communitytokens` package.

This commit removes old `communitytokens` package, cause previously added `communitytokensv2` package,
which is in use now, will be renamed to `communitytokens` in next commit.
2025-01-30 14:56:13 +01:00
Sale Djenic
bf1ef87cc0 chore(wallet-community)_: move community transactions to the wallet router
- new file `contracts/community-tokens/contracts.go` added to unify contracts creation

- the following community related path processors added:
- `CommunityBurnProcessor`
- `CommunityDeployAssetsProcessor`
- `CommunityDeployCollectiblesProcessor`
- `CommunityDeployOwnerTokenProcessor`
- `CommunityMintTokensProcessor`
- `CommunityRemoteBurnProcessor`
- `CommunitySetSignerPubKeyProcessor`

- `SendType` extended with appropriate options

- added endpoints to duplicated `communitytokens` api:
- `StoreDeployedCollectibles`
- `StoreDeployedOwnerToken`
- `StoreDeployedAssets`

- removed endpoints from duplicated `communitytokens` api:
- `DeployCollectibles`
- `DeployOwnerToken`
- `ReTrackOwnerTokenDeploymentTransaction`
- `DeployAssets`
- `DeployCollectiblesEstimate`
- `DeployAssetsEstimate`
- `DeployOwnerTokenEstimate`
- `EstimateMintTokens`
- `EstimateRemoteBurn`
- `EstimateBurn`
- `EstimateSetSignerPubKey`
- `NewOwnerTokenInstance`
- `NewCommunityTokenDeployerInstance`
- `NewCommunityOwnerTokenRegistryInstance`
- `NewCollectiblesInstance`
- `NewAssetsInstance`
- `MintTokens`
- `RemoteBurn`
- `GetCollectiblesContractInstance`
- `GetAssetContractInstance`
- `Burn`
- `SetSignerPubKey`

- `Path` type extended with new property:
- `UsedContractAddress` - an address of the contract that will be used for the transaction
2025-01-30 14:56:13 +01:00
Sale Djenic
83b1b11c4c chore(community)_: duplicated community tokens package 2025-01-30 14:56:13 +01:00
Sale Djenic
d5517f8f5c chore(wallet)_: community deployment related types moved to wallet requests package
`DeploymentParameters` and `DeploymentDetails` types moved from `communitytokens` package
to `requests` of the wallet service.
2025-01-30 14:56:13 +01:00
Lungu Cristian
e71fdbc63c
fix(suggested-fees)_: crash caused by null GasPrice (#6274)
* fix_: suggested fees crash caused by null GasPrice

* fix_: tests

---------

Co-authored-by: Andrey Bocharnikov <andrey.bocharnikov@gmail.com>
2025-01-24 16:10:22 +02:00
Brian Sztamfater
27ad41ba8f
feat_: integrate base chain (#6228)
* feat_: integrate base chain

Signed-off-by: Brian Sztamfater <brian@status.im>
Co-authored-by: Dario Gabriel Lipicar <dario@status.im>
2025-01-20 12:12:11 -03:00
Sale Djenic
bb7b1f246d chore(wallet)_: unused getBaseFee function removed from fee manager 2025-01-17 12:04:06 +01:00
Sale Djenic
90f4740add feat(wallet)_: added suggested min and max priority fee and current base fee for the path
- `Path` type extended with the following fields:
  - `SuggestedMinPriorityFee`, suggested min priority fee by the network
  - `SuggestedMaxPriorityFee`, suggested max priority fee by the network
  - `CurrentBaseFee`, current network base fee

- The following wallet api endpoints marked as deprecated:
  - `GetSuggestedFees`
  - `GetTransactionEstimatedTime`
2025-01-17 12:04:06 +01:00
Patryk Osmaczko
67134d9811 chore_: move waku types out of eth-node 2025-01-17 10:14:54 +01:00
Dario Gabriel Lipicar
4a5a3387af fix_: guard against malformed tokenID in router 2025-01-14 09:50:36 -03:00
Patryk Osmaczko
ca92f67014 chore_: rename waku package to wakuv1
This is to free the `waku` namespace for interfaces and types that will
be moved from `eth-node`.
2025-01-13 18:55:01 +01:00
Patryk Osmaczko
4faaa3e55f chore_: remove legacy Whisper interface 2025-01-10 07:23:48 +01:00
Sale Djenic
b91c5fd29c feat(wallet)!: allowing client to set custom values for fees, nonce, gas
Removed properties from `Path` type:
- `MaxFeesPerGas`, based on the sending flow progress appropriate new properties (`TxMaxFeesPerGas`, `ApprovalMaxFeesPerGas`) should be used

Added new properties to `Path` type:
- `RouterInputParamsUuid`, used to identify from which router input params this path was created
- `TxNonce`, used to set nonce for the tx
- `TxMaxFeesPerGas`, used to set max fees per gas for the tx
- `TxEstimatedTime`, used to estimate time for executing the tx
- `ApprovalTxNonce`, used to set nonce for the approval tx
- `ApprovalTxMaxFeesPerGas`, used to set max fees per gas for the approval tx
- `ApprovalTxEstimatedTime`, used to estimate time for executing the approval tx

New request types added:
- `PathTxCustomParams`, used to pass tx custom params from the client
- `PathTxIdentity`, used to uniquely identify path (tx) to which the custom params need to be applied

New endpoints added:
- `SetFeeMode` used to set fee mode (`GasFeeLow`, `GasFeeMedium` or `GasFeeHigh`)
- `SetCustomTxDetails` used to set custom fee mode (`SetCustomTxDetails`), if this mode is set, client needs to provide:
  - Max fees per gas
  - Max priority fee
  - Nonce
  - Gas amount
2025-01-08 17:22:50 +01:00
Jonathan Rainville
d291204473
chore(block)!: remove desktop BlockContact function for parity (#6172)
Needed for https://github.com/status-im/status-desktop/issues/16640

In Desktop, we still used a "forked" version of the BlockContact function that had as differences that it didn't leave the chat nor delete the messages.

However, we want to have parity now and those features, so it makes no sense to use a different function.

This is a breaking change because it removes an API, but I took care of removing the use of that function in the Desktop app and Mobile never used it, so it's an inoffensive breaking change.

Additionally, I added the notifications to the messenger response.
2024-12-17 12:15:56 -05:00
Igor Sirotin
0f7c26dc9d
test_: skip flaky TestService_IncrementalUpdateMixed (#6205) 2024-12-16 20:33:46 +00:00
Sale Djenic
c27c773c27 chore(wallet)_: from and to chains added to send details
From and to chains added to SendDetails type that can be used on the client side if the sending fails
that we can display appropriate ephemeral notifications, saying sending from which chain has failed.
2024-12-13 15:45:45 +01:00
Igor Sirotin
dfb591874a
fix_: check group error in GetBalancesAtByChain (#6169)
* fix_: check group error in GetBalancesAtByChain

* fix_: properly wrap error

* test_: FetchBalancesForChain check error
2024-12-07 12:10:38 +00:00
Brian Sztamfater
9a94a82fd6
fix!: add forceRefresh parameter to FetchOrGetCachedWalletBalances endpoint (#6160)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-12-06 09:48:12 -03:00
osmaczko
50933aa328
feat(logging)_: enable log namespaces configuration (#6161)
closes: #6128
2024-12-05 14:19:24 +00:00
Brian Sztamfater
34d2dafbd2
fix_: usdt token decimals on tokenstore for arbitrum (#6158)
Signed-off-by: Brian Sztamfater <brian@status.im>
2024-12-03 18:20:26 -03:00
Volodymyr Kozieiev
7a967e1775
chore_: removed GetWalletToken because mobile not use it anymore (#6131) 2024-12-02 11:27:02 +00:00
Dario Gabriel Lipicar
732347cebf fix_: sort activity entries to list approvals before the intended tx 2024-11-29 13:41:20 -03:00
Dario Gabriel Lipicar
7be222a1d2 feat_: add unique key to each activity entry 2024-11-29 13:41:20 -03:00
dlipicar
5a69c686cf
fix_: clear leftover route execution data on new route calculation (#6132) 2024-11-29 09:05:52 -03:00
Andrey Bocharnikov
c635575e8f
fix_: return 0 fee if oracle fails on GetL1Fee (#6138)
* fix_: return 0 fee if oracle fails on GetL1Fee
2024-11-29 00:28:25 +04:00
richΛrd
35e4c9e11c
fix_: ensure storenode requests do not exceed 24h (#6115) 2024-11-28 15:14:29 -05:00
frank
991d5dfde5
perf!: Optimize Filter Initialization with Concurrent Processing (#6106)
* refactor_: InitFilters

* perf_: return chats preview with optional filter

* chore_: move InitFilters to separate file

* chore_: add ChatPreviewFilterType

* chore_: address feedback from igor

* chore!: update ChatsPreview

* chore_: remove ChatPreviewFilterTypeAll

* fix_: lint issue
2024-11-28 10:55:02 +00:00
dlipicar
3466ac2661
feat!: implement new activityV2 filter (#6102)
* feat!: implement new activityV2 filter

* chore_: pr comments
2024-11-25 17:44:39 -03:00