Commit Graph

12 Commits

Author SHA1 Message Date
Mariano a00cd74bd0
[1587] Change CCTP stats for /protocols/stats (#1673)
* #1587 add task to downsample total cctp volume and txs

* fix identation

* add adjustment to task

* change query for cctp in /protocols/stats

* fix identations

* fix unit-tests
2024-09-12 14:21:10 -03:00
walker-16 17b70402cb
1621 new endpoint for ntt token dashboard (#1641)
* 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>
2024-09-04 10:56:18 -03:00
Mariano 82b420c29d
[1546]Token activity endpoints (#1638)
* 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
2024-08-29 17:12:18 -03:00
Mariano 1b66df5abf
[1232] New Endpoint for Retrieving Applications Activity Data (#1476)
* move on

* working endpoint

* add new influx task

* merge 3 appIds and distinct

* adjust queries

* remove outdated task

* fix wrong rename

* undo renames

* fix

* anotherone

* add new influx tasks

* update tasks

* fixes on influx scripts

* fix group in allByAppId3

* move on

* working endpoint

* add new influx task

* merge 3 appIds and distinct

* adjust queries

* remove outdated task

* fix wrong rename

* undo renames

* fix

* anotherone

* add new influx tasks

* update tasks

* fixes on influx scripts

* fix group in allByAppId3

* multiple fixes

* fix

* add version to protocols_stats_totals_1d

* fix query for new version of measurement of daily activity

* more fixes

* add default query for application_activity and rename
2024-06-12 16:25:28 -03:00
Mariano ce1b7707fb
[WORMSCAN-API-1225] Add new endpoint for fetching x-chain-activity tops data (#1342)
* 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
2024-04-26 15:03:02 -03:00
Mariano 4009482dcc
[ISSUE-1089] Collect CCTP - Metrics (#1165)
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
2024-03-11 17:33:36 -03:00
ftocal e63a7a12e4
Add top-100-corridors endpoint (#1065)
Improve handling token in volume metrics
2024-01-30 15:27:48 -03:00
ftocal cff86e4469
Add top-symbols-by-volume endpoint and influx tasks (#887) 2023-12-11 14:32:25 -03:00
ftocal 6be2607c65
Fix vaa_volume measurement in analytics and api queries (#719)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-10-02 11:21:13 -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
ftocal 69885aed0c
Fix intermittent failure in x-chain-activity endpoint (#420)
* 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
2023-06-20 10:34:20 -03:00
ftocal 112ad51c69
Fix and refactor of analytics (#376)
Fix vaa-volume metric backfiller
Rename analytic to analytics
Move influx-backfiller as part of analytics
2023-06-01 16:32:00 -03:00