* Add ntt protocol tasks for influx
Co-authored-by: walker-16 <agpazos85@gmail.com>
* add ntt stats endpoints to to api
* add summary ntt endpoint
* add ntt chain activity endpoint
* add ntt transfers by time endpoint
* add top ntt transfers by address
* add swagger documentation for ntt enpoints
add changes in api deployment
Co-authored-by: walker-16 <agpazos85@gmail.com>
* add ntt address job and endpoint in api
* modify ntt address job and api
* add ntt address stats job deployment
* add top holder stats
* add ntt top holder stats jobs and deployment
Co-authored-by: walker-16 <agpazos85@gmail.com>
* add doc for ntt top holder endpoint
* add job and refactor api for ntt median metrics
Co-authored-by: ftocal <fert1335@gmail.com>
* Add ntt-median-stats-hourly jobs deployment
Co-authored-by: walker-16 <agpazos85@gmail.com>
* Add middleware for not supported env for ntt endpoints
Co-authored-by: walker-16 <agpazos85@gmail.com>
---------
Co-authored-by: Fernando Torres <fert1335@gmail.com>
* create endpoint and tasks in order to retrieve the total volume per token symbol
* start working on new endpoint /token-symbol-activity
* making progress token-symbol activity
* aggregating results
* working endpoint
* fix indentation
* add unit-test to query building
* add unit-tests to service
* remove comments
* add application-activity to the compression middleware
* fix unit-tests
* change the implementation of influx task in order to only calculate a small portion of data
* small change
* fix indentation
* Add from_address and to_address to vaa_volume_v3
* check from_address and to_address before adding to vaa_volume_v3
* normalize from_address and to_address
* fix which chain to use in decoding
* fix logger message from_chain and to_chain
* start writing vaa_volume_v3
* fill with none
* override version tag
* fix filling of appIds tags
* add size tag and bump measurement version
* change script in order to contemplate emitter and destionation chain
* change script for totals
* change grouping
* chaange variavble in script
* fix indent
* split into 2 tasks
* rename
* more changes
* fix scripts
* revert changes
* add 2 new tasks for collecting chain activity every day and hour
* making progress
* change query 2
* add query by month and year
* changes on task
* more changes
* change to 1d
* add 1d
* fix query
* adjust queryies
* change the way the query is executed
* changes on query
* making more progress
* fix per year query
* add a second group of tasks for downsampling
* add app_id
* update swagger docs
* optimize new tasks
* fix W
* fix W
* start using the new measurement
* change endpoint signature
* update endpoint name
* fix indents
* code review changes
* remove unnecessary break
* Add support to scroll in tx-tracker
* Handle duplicated vaa in fly
Co-authored-by: walker-16 <agpazos85@gmail.com>
* Modify tx-tracker and pipeline to support duplicated vaas
Co-authored-by: ftocal <fert1335@gmail.com>
* Add isDuplicated flag in vaas and operations endpoints
Add new endpoint to find duplicated vaas by vaa id
Co-authored-by: walker-16 <agpazos85@gmail.com>
* Add metrics for duplicated vaas
Co-authored-by: walker-16 <agpazos85@gmail.com>
* Update node dependencies in spy
Co-authored-by: walker-16 <agpazos85@gmail.com>
* Fix promethes metrics for missing tx-hash in tx-tracker
Co-authored-by: walker-16 <agpazos85@gmail.com>
---------
Co-authored-by: Agustin Pazos <agpazos85@gmail.com>
Add cctp and portal_token_bridge stats to protocols-stats endpoint
changes
indent
more changes on the script
new working approach on influx task
indent script
tested insert
add 2 versions of the script
multiple changes
add 1day task
add logic to retrieve internal protocols
remove unecessary code
readd empty script
fix unit-tests and measurement namings
fix queries
fix alignment
rename function task
fix names
improvements on influx task
add .run config to gitignore
add .run to gitignore
fix task and rename
working api
multiple things
Delete .run/wormscan api.run.xml
Delete analytics/scripts/test_query.flux
wip
multiple fixes
fix test
wip
fix queries
fix unit-test due to query changes
### Description
This pull request removes duplicated code related to MongoDB connection/disconnection attempts. This code was copied across all 8 microservices.
The functionality is now unified under the `common/dbutil` package.
### 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`.
* Replace start_time and end_time query parameters with fixed ranges at the endpoint of the chain activity
Add InfluxDB tasks for enpdoint chain-activity for each timeSpan
Add cache for chain-activity endpoint
* Code review updates
### Description
Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/377
This pull request modifies the analytics service so that it persists price information for a VAA in MongoDB. Data is stored only for token bridge VAAs, and only if the price is cached for the symbol being used.
A new collection `transferPrices` has been created, with the following document model:
```
{
"_id": "22/0000000000000000000000000000000000000000000000000000000000000001/18087",
"price": "0.999684",
"symbol": "USDC",
"timestamp": 2023-06-06T14:04:47.000+00:00
"tokenAmount": "0.1",
"usdAmount": "0.0999684"
}
```
### Summary
Often times, the analytics service fails to start due to connectivity issues with other services (specifically redis).
Previously, no log information was being emitted, which made it hard to troubleshoot the exact reason for the service failing to start.
This pull request adds log messages when the service starts to make those cases easier to debug.