* [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
* Improve evm block search
* Resolve test
* Add more rpc for base
* Add new rpc for avalanche
* Improve logs
---------
Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
* Improve evm log
* Mapped last cursos for sui
* Mapped last cursos for sui
---------
Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
* Add retry for evm and sui
* Improve names
* Remove params for client
* Add params for client
* Improve log and remove rpc for ethereum
* Remove fantom rpc
* Improve rateLimit for evm and sui
* Improve rateLimit for evm and sui
* Remove try and catch
* Improve sui name
* Resolve comment in Pr
* Merge to main
* Resolve comment in PR
---------
Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
* Add rpc-pool dependency and make the minimum changes to make the codebase compatible with it
* Implement rpc provider pools for EVMs and Sui
* Implement rpc provider pools for Solana
* Adapt tests to new repo interfaces and constructors
* Fix tests
* Modify gh action to use the xlabs registry
* Mock rpc-pool module for tests
* Set up husky and pre commit hook to run prettier
* Bump rpc-pool
* Expand default mainnet rpc configs
* Add link-staged to run prettier for staged files
* prettier config
* Address PR comments
* Add bsc rpc node
* fix rpc configs
* Initial implementation for Sui through block polling
* PollSui: add check for when the cursor reaches the latest (no new checkpoints to process)
* Change types for poll sui config from/to range
* coverage for sui rpc repo
* Add test for PollSui batchSize param
* Apply prettier
* Upgrade typescript and tsx dev deps
* Remove commented code
* Address some review comments
* Add SuiPollTransactions source
* Fix divideIntoBatches types
* Apply prettier
* Fix cursor issue when no configured range. Add test to mapper
* Remove PollSuiCheckpoints
* Query transactions by event instead of by called module in order to catch both transfers with and without payload
* Remove unusued GetSuiTransactions action
* Address some review comments
* Address review comments. Go back to using queryTransactions instead of events (querying by events would mean losing failed redeems)
* Allow undefined filter
* Add sui job to deployments
* Fix job target
* Split sui job into two with different filters: one for complete_transfer and another for complete_transfer_with_payload. This will speed up the processing of both cases
* Fix sui jobs mainnet/testnet mix up
* Fix prometheus issue
* run prettier
* Fix message blockTime for sui transfer-redeemed event
* Add asyncdoc entry for new event transfer-redeemed
* Add missing channel to asyncapi
* Change query to sort by timestamp and id
* Add maximun size to pageSize in operation endpoint
* Add missing indexes for mongodb
* improve search txHash for nested wormchain txHash
---------
Co-authored-by: Fernando Torres <fert1335@gmail.com>
* Remove filter solanas and aptos from method getVaasToMigrate
* Fix origin tx in solana
Add k8s service for tx-tracker
---------
Co-authored-by: Agustin Pazos <agpazos85@gmail.com>
* migrate vaa to globaltransaction origintx
* Add deploy configuration for job to migrate vaas to originTx
* Add option to run migration process by range of date
* Update go dependencies for jobs
* Fix kind of job in deployment
---------
Co-authored-by: Fernando Torres <fert1335@gmail.com>
* Rename and add new attributes
* Remove comment
* Resolve comment in PR
* Run prettier
* Resolve solana test
* Remove name in method mapper
* Run prettier
* Improve mapper method
* Remove toString in method mapper
* Resolve test error
* Resolve comment in PR
* Resolve comment in PR
* Revert name changes
---------
Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
* Add sepolia support for testnet env
* Add test
* Pull to main branch
* Change interval value for arbitrum
* Improve network name
* Mapped url correctly
* Resolve comment in Pr
* Mapped base-sepolia address
* Set public rpc in default url
* Mapped correctly base address
---------
Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>