Commit Graph

505 Commits

Author SHA1 Message Date
ftocal 1d512dba7b
Add requests per second configuration in environment variables for contract-watcher (#554)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-24 10:45:19 -03:00
agodnic 4ee9abe91e
Exclude invalid chain IDs from top chain pairs (#574)
### Description

Tracking issues: https://github.com/wormhole-foundation/wormhole-explorer/issues/572, https://github.com/wormhole-foundation/wormhole-explorer/issues/573

This pull request fixes an issue in which the endpoint `GET /api/v1/top-chain-pairs-by-num-transfers` was returning invalid chain IDs for testnet.
2023-07-24 09:20:01 -03:00
walker-16 4f17772037
Delete unused and not updated tilt files (#577) 2023-07-21 19:28:44 -03:00
agodnic 80280da757
Handle multiple VAAs with the same `txHash` (#564)
### Description

Before this pull request, when calling `GET /api/v1/vaas?txHash={h}` for a hash that has multiple VAAs associated with it, we were just returning one. After this pull request, the API should return all of the VAAs associated with that transaction hash.

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/563
2023-07-20 16:37:45 -03:00
agodnic d8bb9c46f6
`tx-tracker`: add support for the "Base" blockchain (#568)
### Description

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/569

This pull request adds support for the "Base" blockchain in different parts of the codebase:
* The functions `domain.TranslateEmitterAddress`, `domain.EncodeTrxHashByChainID` and `domain.DecodeNativeAddressToHex`.
* The `tx-tracker` service: it now connects to a Base RPC node to fetch origin transaction metadata.
2023-07-20 16:37:21 -03:00
ftocal 3e5001e834
Adjust memory and cpu resources for parser in k8s (#565)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-19 17:44:12 -03:00
agodnic 3c8b28d69f
Fix inconsistencies in analytics-related endpoints (#557)
### Description

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/535.

This pull request fixes an inconsistency between the endpoints `GET /api/v1/x-chain-activity` and `GET /api/v1/top-chain-pairs-by-num-transfers`.

The inconsistency arose because the endpoints computed the data in slightly different ways.

It was resolved by modifying the `GET /api/v1/top-chain-pairs-by-num-transfers` endpoint to use the same data source as `GET /api/v1/x-chain-activity`.
2023-07-19 15:03:43 -03:00
agodnic 0ea35a83eb
Update base URL for the external TVL API (#560) 2023-07-19 15:03:28 -03:00
walker-16 80771dc35f
Add deploy config to add metrics in tx-traker (#559) 2023-07-19 10:11:05 -03:00
walker-16 abb5baf24e
add metrics to tx-tracker (#556) 2023-07-19 09:04:41 -03:00
agodnic 44e236fc61
Update tx tracker backfiller (#540)
### Description

Related issues: https://github.com/wormhole-foundation/wormhole-explorer/issues/525, https://github.com/wormhole-foundation/wormhole-explorer/issues/524

Final updates before running the tx-tracker backfiller on staging and production.
2023-07-18 12:00:04 -03:00
walker-16 1e5aeedfd9
Fix notional error with coingecko and add endpoint to push metrics in… (#551)
Fix notional error with coingecko and add endpoint to push metrics in analytics
Co-authored-by: ftocal <fert1335@gmail.com>
2023-07-18 11:33:17 -03:00
walker-16 50e7de11ee
Fix contract-watcher last block metrics (#553)
Co-authored-by: ftocal <fert1335@gmail.com>
2023-07-18 11:27:42 -03:00
agodnic 31d2d9fc72
Fix `GET /api/v1/transactions?address={addr}` (#550)
### Description

This pull request fixes a broken database query in `GET /api/v1/transactions?address={addr}`, which was causing the endpoint to fail.
2023-07-18 09:54:52 -03:00
walker-16 520997f6d7
Fix environment env var in jobs component (#547) 2023-07-17 11:17:05 -03:00
ftocal 1440fa3741
Minor changes for production deployment (#541)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-14 14:20:42 -03:00
ftocal 68b0586205
Fix last block for aptos in contract-watcher (#546) 2023-07-14 14:06:20 -03:00
agodnic 61d070e859
Fix tx tracker performance issues (#537)
### Description

The `tx-tracker` service is failing to process messages at the speed we need. This pull request is an attempt at fixing the issue.
2023-07-14 10:39:09 -03:00
agodnic 0425a89e75
Fix `parsedPayload` param in `GET /api/v1/vaas` (#536)
Fix `parsedPayload` param in `GET /api/v1/vaas`
2023-07-13 15:17:09 -03:00
ftocal d2916ff92d
Fix filter chain id unknown in x-chain-activity endpoint (#533)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-13 12:59:37 -03:00
agodnic 1ef666322c
Fix missing `txHash` for chains 1 and 22 (#530)
### Summary

This pull request changes the retry logic in the `tx-tracker`.

When failing to process a transaction, the associated SQS message will be left to expire and will reappear after `visibilityTimeout` seconds. As a side effect, there will be several retries before giving up.
2023-07-13 12:26:38 -03:00
ftocal 50774265ea
fix contract-watcher processing (#531)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-13 12:06:46 -03:00
agodnic 55d4b352ca
Remove unused fields from the origin transaction model (#528)
### Description

This pull request removes two unused fields from the `GlobalTransaction.OriginTx` JSON model:
* `timestamp`: this field is always set to the VAA's timestamp, making it redundant. Moreover, for EVM chains we need one extra RPC node request to get it. So better get rid of it.
* `chainId`: this field is always set to the VAA's emitter chain, making it redundant.
2023-07-12 16:47:33 -03:00
agodnic fe196e35f0
[API] Standard payload changes (#520)
### Summary

This pull request modifies the API service to expose two endpoints for the Wormhole Scan UI:
* `GET /api/v1/transactions`: data needed to render the transactions list page.
* `GET /api/v1/transactions/{chain}/{id}/{sequence}`: data needed to render the transaction detail page.
2023-07-12 12:51:52 -03:00
walker-16 4f1987c698
514 modify parser to support new vaa payload parser response (#521)
Parse amount from metadata fields
Modify parser client to ParseWithMetadata
Add support to new vaa payload parser parse endpoint

Co-authored-by: Fernando Torres <fert1335@gmail.com>
2023-07-12 12:51:17 -03:00
agodnic 0a854b590d
Improve performance in the `tx-tracker` service (#519)
### Description

This pull request implements an improvement in the processing logic of the `tx-tracker` service to avoid processing a message more than once.
2023-07-11 16:31:45 -03:00
agodnic 93e1a72409
Improvements in the `tx-tracker` service (#517)
### Description

This pull request implements improvements in the `tx-tracker` service:
* Adjust SQS visibilityTimeout.
* Process PythNet messages concurrently (this will make it easier for the service to catch up if there are a lot of messages in the input queue).
* Add more context information to error messages.
2023-07-06 15:26:18 -03:00
walker-16 c4a55bd6e2
Fix alert prefix with new enviroment values (#509) 2023-07-06 11:20:18 -03:00
agodnic 57f8878979
Adjust log message severity in `tx-tracker` (#511) 2023-07-06 10:26:16 -03:00
agodnic eb789113d7
Update deployment config for `tx-tracker` service (#506) 2023-07-05 22:17:53 -03:00
ftocal 9198c129e1
Add environment to promethes metrics for api (#507) 2023-07-05 16:15:29 -03:00
ftocal a4788b8522
Fix prometheus metrics in contract-watcher (#504)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-05 16:00:06 -03:00
walker-16 96ec327b74
Add opsgenie alertClient to parser (#496)
* Add opsgenie alertClient to parser

* Add metricsClient to processor

* Define critical opsgenie alert parser

* Add parser alert
2023-07-05 15:39:56 -03:00
agodnic 4ce2d1e329
Remove notional cache from the `api` component (#500)
### Summary

The `api` component was importing and initializing the notional cache, but not using it.

This pull request removes the unnecessary dependency.
2023-07-05 15:07:24 -03:00
agodnic 9e4aa45305
[tx-tracker] Add support for Terra, Injective, Acala and Karura (#502)
### Description

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/499

This pull request adds support in the `tx-tracker` service for the blockchains Terra, Injective, Acala and Karura.

Also, deployment settings were updated with reasonable defaults.
2023-07-05 14:53:00 -03:00
agodnic 88089a6a0e
Update parser Makefile (#501)
### Description

* Remove unused Makefile target
* Put executable files in a `bin/` directory
2023-07-04 17:48:47 -03:00
agodnic 8ad4d6276f
Add retry logic to the `tx-tracker` service (#480)
### Summary

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/415

When the `tx-tracker` service processes a VAA, sometimes the transaction is not finalized (e.g.:for chains with slow finality, VAAs with low consistency level, out-of-sync nodes). This problem was observed on chains like Solana, Ethereum and Polygon, but could have happened on other chains.

This pull request adds the logic needed to wait and retry processing the VAA, hoping that the originating transaction reaches finality.

Also, the `tx-tracker` service now uses a worker pool to process transactions, which will lead to higher throughput. This will benefit the WormholeScan UI, specially in the case when a large number of VAAs are emitted in a short period of time.
2023-07-04 15:25:08 -03:00
ftocal b16f1739d0
Change to deploy prometheus metrics for parser and pipeline (#497) 2023-07-04 15:23:26 -03:00
agodnic 5aedf0247e
Fix issue in `txHash` search (#494)
### Description

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/493

Fix an issue in which transaction hash search was failing for VAAs that have the same `txHash`.
2023-07-04 09:58:21 -03:00
ftocal 4e8b43a598
Fix max-sequece key in fly (#491) 2023-07-03 15:58:34 -03:00
walker-16 2a92a93eb4
475 parser create prometheus metrics (#484)
* Fix Environment env var in parser and deploy

* Add alert and metrics env vars config

* Define parser metrics

* Add parser prometheus annotations

* Fix metrics definitions

* Implement metrics in parser

* Fix phrometheus annotation from backfiller to service

* Add prometheus fiber
2023-07-03 15:46:47 -03:00
ftocal fc28528e0d
Fix cache and metrics environments in fly (#490) 2023-07-03 15:10:52 -03:00
ftocal c3d418a084
Add prometheus metrics in analytics (#488) 2023-07-03 11:51:20 -03:00
walker-16 b07d569edf
Add pipeline prometheus metrics and opsgenie alerts (#471)
* Add pipeline prometheus metrics

* Add alerts & metrics env vars for pipeline

* fix pipeline env vars

* Fix enviroment in fly and pipeline

* Add alert client to pipeline

* Add critical alerts to pipeline component

* fix pipeline deploy

* fix ALERTS_ENABLED env var

* Add prometheus annotation metrics

* configurate prometheus in fiber

* fix vaaSendNotifications metrics counter

* Fix NewWatcher
2023-07-03 11:42:44 -03:00
ftocal 297b9aa344
Fix environment in deployment for contract-watcher (#486) 2023-06-30 12:02:03 -03:00
ftocal 34b8ab392f
[contract-watcher] Add opsgenie alerts and prometheus metrics (#472)
* Add prometheus metrics to contract-watcher

* Add annotations for prometheus

* Add alerts for contract-watcher
2023-06-30 11:25:09 -03:00
ftocal e46f70100b
Add prometheus annotations for api (#485) 2023-06-30 11:10:50 -03:00
gipsh c77ce3bcb4
fix separator (#481) 2023-06-29 18:35:31 -03:00
walker-16 9fa7541238
Feature/remove legacy web and server project (#477)
* remove legacy web project

* remove legacy server project
2023-06-29 17:12:45 -03:00
walker-16 781d7ca8d7
remove legacy onchain_data project (#478)
remove onchain_data project
2023-06-29 17:12:31 -03:00