Commit Graph

662 Commits

Author SHA1 Message Date
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
Mariano 3135276c2c
Add fromAddress and toAddress to TransferredToken.Clone (#1515)
Add fromAddress and toAddress to TransferredToken.Clone
2024-06-27 10:38:29 -03:00
Julian 748ccfb0db
[Blockchain Watcher] (ACALA) Map acala redeem job (#1513)
Map acala redeem job

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-26 16:18:46 -03:00
Mariano ea33058324
[#1499] Add from_address and to_address to vaa_volume_v3 (#1506)
* Add from_address and to_address to vaa_volume_v3

* check from_address and to_address before adding to vaa_volume_v3

* normalize from_address and to_address

* fix which chain to use in decoding

* fix logger message from_chain and to_chain
2024-06-26 14:31:57 -03:00
Mariano 9d743e7f5a
[#1495] Add NTT Protocol Data to /api/v1/protocols/stats Endpoint (#1502)
* use new measurement for protocol stats and add NTT

* reorder consts
2024-06-26 14:31:42 -03:00
Julian cc1f63ef55
[Blockchain Watcher] Map custom variable for wormchain (#1509)
Map variable

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-26 13:26:30 -03:00
Julian c234125904
[Blockchain Watcher] (KLAYTN) Map klaytn redeem events (#1508)
Map klaytn redeem events

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-26 10:30:06 -03:00
Julian 7bdc71cd62
[Blockchain Watcher] (FIX - ALGORAND) Mapped grafana config to source events (#1507)
Mapped grafana config to source events

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-26 09:50:43 -03:00
Julian 6f7d457386
[Blockchain Watcher] (ALGORAND) Map algorand events (source and target) (#1505)
* Start implement algorand events

* Create handler and improve repository

* Create mapper for redeem events

* Resolve some //TODO comments

* Support source events

* Improve application id name

* Validate payload length

* Validate logs property

* Add all test for infrastructere and domain

* Improve code

* Remove any type

* Remove throw for wormchain

* Resolve comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-25 16:56:15 -03:00
Martin Picco 2646baa9f1
Add NTT tokens to manual list (#1504) 2024-06-25 10:24:00 -03:00
Julian e0f7a4fe2b
[Blockchain Watcher] (KARURA) Map karura redeem events (#1503)
* Map jobs

* Map jobs

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-20 16:41:06 -03:00
André Claro 21c8b03134
guardian: update xlabs testnet guardians (#1488) 2024-06-20 09:33:45 -03:00
Julian 31e87382d6
[Blockchain Watcher] (FIX -SEI) Improve sei redeems (#1490)
* Improve sei redeems

* Valiadate timestamp value

* Resolve sei redeem test

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-14 18:28:41 -03:00
ftocal dabe8172da
Add Ethena sUSDe token (#1491) 2024-06-14 09:58:36 -03:00
Martin Picco f007825be4
Add redeem tracking for fast transfers on testnet (#1492) 2024-06-13 17:49:51 -03:00
Julian 7e91150942
[Blockchain Watcher] (NTT - SOLANA) Map contract for NTT protocol (#1489)
Map contract for NTT protocol

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-13 15:52:28 -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 97b9217b6b
Create backfiller for influx measurement vaa_volume_v3 (#1475)
* backfiller for vaa_volume_v3

* remove printf
2024-06-12 15:37:51 -03:00
Julian 339a2433ae
[Blockchain Watcher] (FIX) Improve vaa parser and no healthy process (#1487)
* Improve vaa parser and no healthy process

* Add undefined validation for mapper

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-12 14:04:08 -03:00
ftocal 9bf9f52adb
Fix origin request count metrics (#1486) 2024-06-12 13:02:51 -03:00
Julian b4a5836935
[Blockchain Watcher] (SEI) Map redeems events for sei (#1482)
* Create new process for sei redeems

* Improve sei process

* Resolve test

* Create GetSevRedeems test

* Create action test

* Improve code style

* Resolve PR comments

* Resolve PR comments

* Map total_count property

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-12 09:21:37 -03:00
ftocal 1856765a90
Add Ondo and JitoSOL tokens (#1483)
Update generated_mainnet_tokens.go
2024-06-11 10:57:08 -03:00
Martin Picco 1fee8b4f1e
Add USDC.e fantom token to manual tokens config (#1423) 2024-06-11 09:48:52 -03:00
ftocal 9f8b6490c6
Add origin request count metrics in api (#1479) 2024-06-10 10:17:31 -03:00
Julian b9f74e5516
[Blockchain Watcher] (SEI) Map sei mainnet events (#1473)
* Map sei mainnet events

* Map sei contract

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro-2.local>
2024-06-07 10:08:47 -03:00
Julian c33d469c71
[Blockchain Watcher] (FIX - AVAX - MOONBEAM) Fix redeems for avax and moonbeam (#1470)
Fix redeems for avax and moonbeam

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-06-06 15:38:43 -03:00
walker-16 45575fb060
Add support to mantle in tx-tracker and common (#1441) 2024-06-04 18:18:19 -03:00
Julian 72eecc9e41
[Blockchain Watcher] (SOLANA) Change logs and execution job time (#1468)
Change logs and execution job time

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-06-04 17:40:34 -03:00
Julian 09585b5b97
[Blockchain Watcher] (MANTLE) Map portal token bridge contract (#1464)
Map portal token bridge contract

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-06-04 12:13:48 -03:00
ftocal e366f04765
Find by txHash in observations endpoint (#1450)
Add txHash query parameter in observations endpoint
Add job to add nativeTxHash in observations collection except for solana, aptos and wormchain
Add encoded txHash in obvervations collection
2024-06-04 12:12:44 -03:00
Julian 8ab5a6f5e1
[Blockchain Watcher] (MANTLE) Map mantle mainnet job (#1462)
Map mantle mainnet job

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-06-04 11:48:40 -03:00
Julian 967a504d76
[Blockchain Watcher] (CONFIG )Map chain id in mainnet config (#1461)
Map chain

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-06-04 11:24:12 -03:00
Julian 64a29f3cab
[Blockchain Watcher] (EVM) Improve redeem process (#1444)
* Improve redeem process

* Re factor process

* Improve implementation to process txs

* Change process

* Improve reedeem process

* Revert some changes

* Map target-events jobs

* Map new filters in pods

* Resolve test

* Map source filters on pods

* Remove sns change

* Remove config filters on handler

* Improve logs validation

* Improve logs

* Impelement strategy for transactions process

* Create strategy for transactions process

* Improve implentation

* Add error validations on logs filter

* Improve code with names and validations

* Improve evm process and add logs

* Improve code style

* Improve default process

* Improve DefaultProcess

* Improve NFT process and handler

* Re order pods

* Improve strategy code

* Improve default process

* Change celo batch

* Add strategy property on jobs

* Resolve test

* Improve filters method

* Remove contracts

* Resolve comment in PR

* Resolve comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-06-03 17:14:31 -03:00
Julian b0f4f6e319
[Blockchain Watcher] (METRICS) Create metrics for job executions (#1451)
* Create metrics in pollingJob

* Create metrics in pollingJob

* Add number to metric

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-06-03 16:40:18 -03:00