wormhole-explorer/api/handlers
Mariano 175abbb11a
[Issue:1052] Create job for fetching contributor stats and storing in db (#1144)
* [Issue:1052] Create job for fetching contributor stats and storing in db

revert unnecessary changes on api/handlers/stats

revert changes in go.mod and go.sum

revert change in go.work

add schedule for contributors stats job

change response parsing order

changes due to draft-pr review

 move on with contributors activity implementation

change to every hour

fix typo

 change contributor stats implementation to do a single write transaction

 normalize to UTC contributors activity timestamp

 add cronjob schedule for contributors

[Issue:1052][Part 2] Create endpoint to expose contributors stats and activities  (#1123)

* add endpoint for retrieving stats and activity

* remove model.go file and move types to service file

* add unit tests to contributors service

* integrate new contributors controller

* fix more stuff

 fix unit-tests

 changes due to pr review

 fix query

 fix unit-tests

fix total_value_secure

 move constantes to common pkg

remove extra changes

rename contributor to protocols

 finish renames

Changes for deployment

adjust different response types from different protocols contributors

 fix controller test

 big refactor in activty job and stats job since protocols are returning different formats

api responding fine

 remove uneccessary generics

 target dbconsts

 fix

Delete deploy/common/env/staging-mainnet.env

undo unwanted changes

 readd staging-mainnet.env

 fix unit-tests

add missing protocols_stats/activity_version

 remove property protocols_json

fix JOB_ID env var in protocols-activity.yaml

fix typos in env vars configs

 change tu numbers

 changes due to own review

 add new line

* add swagger docs
2024-02-22 14:58:45 -03:00
..
address Add api key logic to handle rate limit in api (#918) 2023-12-18 12:53:30 -03:00
common Fix in address endpoint and transactions by address (#762) 2023-10-26 19:35:23 -03:00
governor Handle native tx hash for solana when receive event from blockchain-watcher (#851) 2023-12-04 16:29:38 -03:00
guardian Handle guardianSet by p2p enviroment in fly/api (#112) 2023-01-31 11:38:17 -03:00
heartbeats [API/PARSER] Chain activity and last transaction endpoints (#175) 2023-03-07 16:25:42 -03:00
infrastructure [API] split api/v1 and v1 routing in different files (#101) 2023-01-27 12:58:37 -03:00
observations Handle native tx hash for solana when receive event from blockchain-watcher (#851) 2023-12-04 16:29:38 -03:00
operations Feature/improve operation endpoint performance (#1064) 2024-02-01 11:21:34 -03:00
protocols [Issue:1052] Create job for fetching contributor stats and storing in db (#1144) 2024-02-22 14:58:45 -03:00
relays Handle native tx hash for solana when receive event from blockchain-watcher (#851) 2023-12-04 16:29:38 -03:00
stats Add top-100-corridors endpoint (#1065) 2024-01-30 15:27:48 -03:00
transactions Add total_message field in the scorecard endpoint (#1079) 2024-02-05 10:42:55 -03:00
vaa Fix vaa parse endpoint (#1078) 2024-02-01 12:01:24 -03:00