* 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 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 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
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