Commit Graph

695 Commits

Author SHA1 Message Date
Julian 95a91cb668
[Blockchain Watcher] (CONFIG) Rename jobs pvc (#1653)
* Rename jobs pvc

* Rename jobs pvc

* Remove fromBlock value

* Add klayer ankr rpc for testnet

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-09-02 12:13:48 -03:00
Martin Picco 401298f5b1
Bump go version on tx-tracker build Dockerfile to 1.21 (#1643) 2024-08-30 15:57:16 -04:00
Martin Picco 4599e5c1ac
Add snaxchain to common and tx-tracker. Upgrade wh sdk dep (#1634)
* Add snaxchain to common and tx-tracker. Upgrade wh sdk dep

* Add env defaults
2024-08-30 15:09:32 -04:00
Julian 6f12867cdd
[Blockchain Watcher] (STANDARD RELAYER) Skip redelivery for Standard Relayer (#1640)
* Skip redelivery for Standard Relayer

* Imporve const names

* Replace abi object for abis object array

* Replace abi object for abis object array

* Resolve comment in PR

* Improve filter type

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-30 13:06:10 -03:00
Julian 676b7b8f99
[Blockchain Watcher] (SOLANA - CCTP) Track cctp solana events for circle (#1635)
* wip: cctp tracking for solana

* Validate innerTx and map protocol

* Map circle index

* Resolve test

* Validate acount content fetch with pubSub

* Add comments

* Map job in circle pod

* Create cttp test for solana

* Map protocol method

* Validate WH contract to map protocol

* Validate protocol and improve unit test

* Resolve comment in PR

* Resolve comment in PR

* Re use constant

* Re use constant

---------

Co-authored-by: M-Picco <martin@xlabs.xyz>
Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-29 19:39:32 -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 8b060a1657
Fill empty time-slots in application-activity endpoint (#1633)
* fill empty time slots with zero values

* adjust monthly query from;to time-params

* fix unit-tests

* change alignment of influx query

* fix indent

* remove tabs from assertion

* fix mock
2024-08-28 16:48:02 -03:00
Julian 1137656b27
[Blockchain Watcher] (CONFIG) Map influx variables (#1632)
Map influx variables

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-26 11:19:26 -03:00
Julian 888aa3a135
[Blockchain Watcher] (CONFIG) Add RollingUpdate strategy in pods deploy (#1629)
* Add rollingupdate strategy in pods deploy

* Remove comments

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-23 10:37:42 -03:00
Julian f613f4faa3
[Blockchain Watcher] (CONFIG) Map rpcs variables in evm files (#1628)
Map rpcs variables in evm files

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-22 16:44:54 -03:00
Mariano d00aef6b99
Add support for timespan=1mo in /application-activity endpoint (#1615)
* add support for timespan=1mo in /application-activit endpoint

* fix indents

* remove more indent

* remove more indent

* remove more indent

* add unit-tests

* fix volumes, changed to float

* fix unit-tests
2024-08-22 14:05:06 -03:00
Julian b9f883d8e4
[Blockchain Watcher] (SNAXCHAIN) Support snaxchain source and redeem events (#1625)
* Support snaxchain source and redeem events

* Change chainId for 43

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-22 10:39:52 -03:00
Julian d541de73df
[Blockchain Watcher] (NEAR) Map variables in all envs (#1624)
* Map variables in all envs

* Map oasis env

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-21 12:05:39 -03:00
Julian 2c80151278
[Blockchain Watcher] (NEAR) Support near events (#1591)
* Catch all errors to set up provider offline

* Map near events

* Map getTransactions method

* Try to map redeem events

* Map near transactions

* Create near parser and map vaa information

* Resolve duplicated txs and test

* Create near test

* Resolve test

* Validate if tx exists

* Validate if chunks exists

* Merge to main

* Resolve test

* Resolve comment in PR

* Improve Near process

* Improve near process adding promise all

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-21 11:47:41 -03:00
Martin Picco 2d3c8072a0
feat: add tokens REZ, LITT, POL. Add gas token for Snaxchain (#1618) 2024-08-20 15:10:35 -04:00
Julian d7707dadde
[Blockchain Watcher] Map new ntt contract for solana (#1619)
feature/map-new-ntt-contract

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Air.local>
2024-08-20 13:50:50 -03:00
Julian ae1a9e06f4
[Blockchain Watcher] (FIX) Improve redeem process (#1616)
* Validate block result

* Improve solana and moonbeam process
2024-08-20 12:24:05 -03:00
Mariano 5fe1c99abb
#1594 fix x-chain-activity query (#1614)
fix query due to hotfix
2024-08-19 14:00:33 -06:00
Mariano 94aa9e4ff0
#1589 add support for multiple payloadTypes in /operations endpoint (#1612)
* #1589 add support for multiple payloadTypes in /operations endpoint

* add unit-tests to /operations controllers regarding payload type filter

* change timeout for endpoint test
2024-08-19 11:18:06 -06:00
walker-16 1bc15cf5ec
remove contact-watcher component (#1579)
* remove contact-watcher component

* Remove contract-watcher from Makefile and go.work

---------

Co-authored-by: Fernando Torres <fert1335@gmail.com>
2024-08-15 14:28:00 -03:00
Abhishek Rajput 2dfbf8f5da
Fix: Add source token as tag | other improvements (#1599)
* Fix source token parsing|other fixes

* Add blocknumber as bigint
2024-08-10 01:34:14 +05:30
Julian bdb9e5df1e
[Blockchain Watcher] (FIX) Improve code (#1586)
* Validate txs process in repository

* Change commitment in circle jobs for latest

* Improve rateLimited class

* Map interval and attempts variable

* Improve retry log

* Improve for process

* Remove arbitrum rpc

* Add testnet jobs for cctp

* Resolve comment in PR

* Set up finalized commitment

* Improve log error in evm repository

* Map fromConfigs method into HealthyProvidersPool

* Reduce test coverage

* Resolve comment in PR

* Remove reqs param in log

* Change blockBatchSize value for acala

* Change blockBatchSize value for acala
2024-08-09 16:19:59 -03:00
Mariano a1d6a1325b
1567 implementation of date filters for the scorecards endpoint (#1600)
* remove 24h_tx_count

* #1567 changes on scorecards endpoint

* remove unused query templates

* update swagger docs
2024-08-09 11:50:08 -03:00
Julian 58f8dfcc36
[Blockchain Watcher] (FIX - INFLUX) Rename tags and logs (#1580)
* Rename tags and logs

* Validate arg length

* Add try and catch involve decode

* Manually deserialize circle messages to skip those that may not be CCTP

* Rename pod

* Skip influx point fields if already present in tags

* Rename circle message sent tags

* Validate transactionReceipts

* Add circle contract in jobs

* Add warning log in getTransactionReceipt method

* Merge to main

* Re-order base rpcs

---------

Co-authored-by: M-Picco <martin@xlabs.xyz>
2024-08-01 16:47:44 -03:00
ftocal 12406a65ba
update go version in api (#1581) 2024-08-01 14:57:59 -03:00
Abhishek Rajput 5d284ea794
Fix: Update typo in tag name (#1578)
* Fix tag name

* Only process logs, if topic is present
2024-08-01 10:59:58 +05:30
Julian 8b41acb0e0
[Blockchain Watcher] (CCTP - INFLUX) Integrate cctp volumen job (#1569)
* Integrate cctp volumen job

* Remove comment

* Resolve test

* Create new pod and jobs

* Replace package-lock

* Replace package-lock

* Create evmLogMessageSentMapper test

* Change jobs strategy

* Map custom variables in pod

* Validate valid domains

* Validate Noble domain for sdk

* Resolve test

* Resolve comment in PR

* Move tags outside attributes

* Resolve comment in PR
2024-07-30 18:41:26 -03:00
Abhishek Rajput bf49c9011c
[Blockchain Watcher] Feat/add ntt protocol monitoring (#1555)
* Add initial changes

* Add more changes

* Seggregate source and target chain events

* Complete deliveries of target chain

* Update ntt source chain mapper

* Time dist metrics (WIP)

* Add minor changes

* Fix some issues

* Refactor events to use digest directly

* Fix source chain events

* Cleanup

* Resolve PR comments

* Segregate Source chain events into separate mappers

* Segregate TargetChain events

* update protocol type to NTT

* Error stack trace change

* Add Influx env variables in custom config

* Decrease coverage to 77

---------

Co-authored-by: julianmerlo95 <julian@xlabs.xyz>
2024-07-30 09:37:50 +05:30
Martin Picco 31aee9cd40
Add SNS token (#1566) 2024-07-26 15:56:12 -03:00
Julian 911ae24a57
[Blockchain Watcher] (WORMCHAIN) Improve how create the providers (#1561)
* Improve how create the providers for wormchain

* Remove validation when create a client

* Fix rpcs

* Remove bsc rpcs

* Add default chain

* Throw error when we cant map cosmos chain
2024-07-25 12:19:30 -03:00
Julian 615e0e9ff1
[Blockchain Watcher] (COSMOS - XPLA) Map xpla events (#1560)
* Map terra and terra2 events

* Resolve test

* Improve cosmos process

* Improve terra2 validations

* Improve terra2 validations

* Improve tx validations

* Map xpla source and target events

* Change blockBatchSize for 50

* Change promise all for sequentially process

* Change blockBatchSize value for 100

* Replace blockBatchSize value for 50

* Change config value

* Resolve comment in PR

* Improve pool generation

---------

Co-authored-by: julian merlo <julianmerlo@192.168.1.108>
Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-07-22 18:08:04 -03:00
Julian a5cb5910f0
[Blockchain Watcher] (COSMOS - TERRA - TERRA2) Map terra and terra2 events (#1558)
* Map terra and terra2 events

* Resolve test

* Improve cosmos process

* Improve terra2 validations

* Improve terra2 validations

* Improve tx validations

* Change promise all for sequentially process

* Change blockBatchSize value for 100

* Resolve comment in PR

* Improve pool generation

---------

Co-authored-by: julian merlo <julianmerlo@192.168.1.108>
Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-07-22 18:02:01 -03:00
Mariano 40dafd9b78
Add fees fields to /operations endpoint (#1545)
* add fees to operations endpoint

* update swagger docs
2024-07-16 12:00:13 -03:00
Mariano 6ab6824d82
[1520] Retrieve the feeUSD from coingecko in tx-tracker [WIP] (#1541)
* start implementing retrieving the feeUSD from coingecko

* add missing pricesApi in the initialization of tx-tracker service

* add missing initialization

* add missing cfg for coingecko properties

* fix solana in url

* replace coingecko api call with notional redis client

* add native token list in commons

* add decimal places

* change feeUSD to Raw.GasPrice

* add check for mainnet

* replace with sdk const for more coupling

* replace pricesApi with notionalCache

* undo changes on pricesApi

* undo more stuff

* remove lines

* remove unused timestamp

* remove unused props

* remove

* fix indent

* fix import

* change

* add cache configs

* change token_address to native

* fixes

* fix BNB coingeckoID

* fix polygon coingecko_id

* change to lowercase

* adjust type FeeDoc in operations endpoint

* change Blast native token

* pr review changes

* code-review fixes

* comment wormchain

* rename var

* add comment to wormchain gas token map entry
2024-07-15 15:43:53 -03:00
Martin Picco a55451968f
Fix arbitrum sepolia chain id for blockchain watcher job (#1544) 2024-07-12 15:35:29 -03:00
Mariano cdb56f0740
hotfix for query chain-activity (#1543) 2024-07-11 15:52:29 -03:00
Matías Martínez 752f6117f5
[blockchain watcher] add influxdb as supported target (#1539)
* make targets optional + fix tests

* move filtering errors to solana mappers

* increase coverage requirement

* add influx unit test

* not allowing objects or arrays to be part of influx points
2024-07-09 13:54:17 -03:00
Mariano f53b030465
[1528] add new filter payloadtype in operations endpoint (#1540)
* Add payloadType filter to operations endpoint

* fix payloadType query mongo
2024-07-08 14:17:55 -03:00
Mariano 1bb17d9d50
[1424] /x-chain-activity/tops : cast volume and count fields to uint before doing sum (#1537)
* cast volume and count fields to uint before doing sum

* fix x-chain-activity unit-tests
2024-07-08 14:17:27 -03:00
Julian dee5183cf7
[Blockchain Watcher] (PODS) Change interval values (#1536)
* Change interval values

* Revert xlayer change

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-07-04 15:16:38 -03:00
Julian e66218373a
[Blockchain Watcher] (SOLANA) Map from and to for solana (#1534)
* Map from and to property

* Use programId in to value

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-07-03 16:21:48 -03:00
Julian d5131fb043
[Blockchain Watcher] (SOLANA - FIX) Map new contracts for NTT (#1532)
Map new contracts for NTT

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-07-03 15:26:28 -03:00
ftocal 65108a0338
1284 enhance operations endpoint to include gas costs in origin and destination chains (#1516)
* Modify fetchEvmTx to call eth_getTransactionReceipt rpc

* Add calculate evm fee

* modify repository to add feeDetail in the originTx upsert

* Add fee calculate for solana

* Add fee in operations endpoint
Update swagger documentation

Co-authored-by: walker-16 <agpazos85@gmail.com>

* add support fee for destinationTx in tx-tracker

* fix empty calculated fee

---------

Co-authored-by: Agustin Pazos <agpazos85@gmail.com>
2024-07-03 14:48:27 -03:00
ftocal 0bfd9e554b
Add vaa processing speed metrics in fly, analytics, parser and tx-tracker (#1531)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2024-07-03 11:23:54 -03:00
Julian 4e4cfab138
[Blockchain Watcher] (WORMCHAIN - FIX) Improve blocktime value (#1530)
* Improve blocktime value

* Add math floor

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-07-03 11:06:34 -03:00
Julian b248892feb
[Blockchain Watcher] (FIX) Improve rpc providers instance (#1524)
* Improve evm client instance and logs events

* Improve solana redeem log

* Improve rpc poll providers

* Create decorator class

* Change MAX_DIFF_BLOCK_HEIGHT value for 10_000

* Improve code

* Change debug log for info

* Override get function

* Improve imports

* Update rpc poll version

* Resolve test and mock

* Improve staticJob test

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-07-01 17:35:37 -03:00
Julian 7e4a687904
[Blockchain Watcher] (EVM) Fix improve evm process blocks (#1521)
* Validate latestBlockHeight block

* Improve comments

* Improve validation

* Improve latestBlockHeight validation

* Resolve evm test

* Improve evm process

* Resolve test

* Update diff value

* Improve variables name

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-27 17:54:47 -03:00
Julian 51f6e8ebb0
[Blockchain Watcher] (EVM) Fix evm process blocks (#1519)
* Validate latestBlockHeight block

* Improve comments

* Improve validation

* Improve latestBlockHeight validation

* Resolve evm test

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-27 16:32:32 -03:00
Julian f9ff45d278
[Blockchain Watcher] (EVM and SOLANA) Map fee value for evm and solana (#1518)
* Map fee value for evm and solana

* Resolve test

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-27 12:57:13 -03:00
Julian 5eec936372
[Blockchain Watcher] (FIX - ALGORAND) Validate method and payload in algorand redeem event (#1514)
Validate method and payload

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-27 11:25:56 -03:00