Commit Graph

71 Commits

Author SHA1 Message Date
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
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 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
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
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
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
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
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
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 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
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
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
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
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 8628d1f915
[Blockchain Watcher] (COSMOS) Map cosmos redeem (#1418)
* Map event for wormchain redeem

* Map redeem for osmosis

* Add new dependencies for cosmos

* Improve wormchain repository

* Map mainnet job

* Map kujira and injective redeem

* Map metricName

* Create retries

* Add test

* Map dependencies

* Map dependencies

* Merge to main

* Add redeem test

* Improve comments

* Map testnet job and rpcs

* Create wormchain repositories test

* Resolve test and metrics

* Improve StandardRelayer type

* Change name for ibc transaction

* Change name for ibc transaction

* Add array name for IBC transactions

* Resolve some comments

* Create test for getRedeems

* Resolve comment in PR

* Resolve comment in PR

* Resolve comment in PR

* Improve while

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-31 12:39:07 -03:00
Julian 4c4bf3ee90
[Blockchain Watcher] Improve variables and logs (#1447)
Improve variables and logs

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-28 15:51:18 -03:00
Julian 0248f706aa
[Blockchain Watcher] (FIX - XLAYER) Improve xlayer process (#1442)
Improve xlayer process

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-24 11:06:22 -03:00
Julian 534fbbb47c
[Blockchain Watcher] (XLAYER) Map xlayer redeems (#1435)
* Map xlayer redeems

* Map redeem job for testnet

* Change blockBatchSize

* Mao xkayer on contractsMapperConfig

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-23 09:04:09 -03:00
Julian 9a749f0b0c
[Blockchain Watcher] (MANTLE) Map mantle events (#1357)
* Map blast chain

* Fix some files

* Map testnet chain

* Map config job

* Map mantle chain

* Map testnet contracts

* Map testnet contracts

* Map redeem for testnet job

* Change chain id

* Map in contractsMapper

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-22 14:28:14 -03:00
Julian 673259fccf
[Blockchain Watcher] (FIX) Cath no healthy providers (#1405)
Cath no healthy providers

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-15 12:19:41 -03:00
Julian c3950c4fb9
[Blockchain Watcher] (METRICS) Map block high diff metric (#1397)
* Map block high diff metric

* Map block high diff metric

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-07 17:14:45 -03:00
Julian a3743ebf8e
[Blockchain Watcher] (PORTAL - OMNISWAP) Map portal and Omniswap redeems (#1382)
* Map portal and Omniswap redeems

* Add new contracts

* Create new job for source events

* Create new job for source events

* Change method name

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-03 13:07:51 -03:00
Julian 5bd3b34efa
[Blockchain Watcher] (TECHNICAL-DEBT) Remove enabledJobs config (#1375)
Remove config

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-02 11:01:15 -03:00
Julian 6624f7a295
[Blockchain Watcher] (TECHNICAL-DEBT) Add new config for enabledJobs (#1361)
Add new config for enabledJobs

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-05-02 10:29:26 -03:00
Julian a250bdc2fd
[Blockchain Watcher] (WORMCHAIN - FIX) Map rpcs for wormchain mainnet (#1371)
Map rpcs

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-04-30 13:17:20 -03:00
Julian 0cf5874620
[Blockchain Watcher] (SCROLL) Map scroll mainnet contracts (#1369)
Map scroll mainnet contracts

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-04-29 15:16:37 -03:00
Julian f9d99ba25c
[Blockchain Watcher] (BLAST) Map blast chain (#1354)
* Map blast chain

* Fix some files

* Map testnet chain

* Map config job

* Map testnet contracts

* Remove mainnet jobs

* Map contract for core and token bridge job

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-04-29 13:35:55 -03:00
Julian f0799cdd67
[Blockchain Watcher] (POLYGON AMOY) Map polygon amoy (#1350)
* Map polygon amoy

* Map polygon amoy

* Map env for yaml

* Map polygon goerli job

* Map contractsMapperConfig

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-04-24 15:06:41 -03:00
Julian 408a297b63
[Blockchain Watcher] (WORMCHAIN) Mapped wormchain source events (#1238)
* Mapped source events

* Set chainId for wormchain

* Add test

* Mapped testnet rpc

* Change blockBatchSize for 10 times per execution

* Improve log

* Improve code

* Remove console.log

* Resolved issue mapping tx hash

* Mapped txs array

* Add new test with 2 txs mapped

* Adapt endpoints implementation

* Improve log

* Resolve comment in PR

* Invert params in mapper

* Resolve test

* Resolve comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-04-16 11:02:13 -03:00
Julian 6b67bf859e
[Blockchain Watcher] (SCROLL) Mapped scroll source and target events (#1304)
* Mapped scroll source and target events

* Remove jobs for mainnet

* Remove jobs for mainnet

* Mapped redeem contract

* Add aptos custom env

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-04-15 16:48:56 -03:00
Julian af4b03d1c3
[Blockchain Watcher] (NFT) Mapped contracts (#1282)
* Mapped contracts

* Mapped mainnet contracts

* Mapped protocol in sui log

* Adapt aptos process to allow multiply filters

* Mapped methodId for NFT aptos

* Improve filter name

* Improve source events filter

* Resolve test

* Add aptos custom variable

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-04-10 20:39:19 -03:00
Julian 11ecb6eb6d
[Blockchain Watcher] (TOKEN BRIDGE) Mapped token bridge chains (#1261)
* Mapped all evm chains

* Mapped topic for mainnet contracts

* Mapped testnet chains

* Mapped standar relayer topic for bnb

* Remove some contracts in config

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-04-08 12:47:53 -03:00
Julian 10d683da64
[Blockchain Watcher] (FIX - APTOS) Fix aptos job (#1222)
* Fix job

* Improve solana log

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-03-15 17:52:55 -03:00
Julian 8a23a69c57
[Blockchain Watcher] (APTOS) Integrate aptos source and redeemed events (#1174)
* First version

* Improve index

* Improve repository and mapper

* Resolve issues and add new pod for target events

* Resolve test and improve code

* Add test

* Resolve test

* Improve source event implementation

* Improve implementations and create test

* Remove hardcode params

* Change completed status

* Merge to main

* Improve code style

* Change current cursor value

* Improve comments

* improve domain event

* Add validation about differents blocks number

* Improve transaction and sequence implementation

* Set batches

* Resolve comment in PR

* Improve code

* Resolve comment in PR

* Integrate rpc poll for aptos

* Improve code

* Remove instrumented aptos client

* Improve test

* Improve errors message

* Improve transaction domain and test

* Remove block name in variables

* Resolved comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-03-15 15:38:27 -03:00
Julian 11867a125d
[Blockchain Watcher] (FIX) Remove rpcs (#1163)
* Remove rpcs

* Remove one rpc for eth and moonbeam

* Change arbitrum interval

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-28 17:39:19 -03:00
Julian 161878b15b
[Blockchain Watcher] (ENV) Add more rpcs (#1160)
* Add more rpcs for testnet and mainnet

* Add more RESOURCES_LIMITS_MEMORY in production-testnet env

* Remove sui RPC

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-28 15:16:28 -03:00
Julian 91ce905768
[Blockchain Watcher] (FIX) Mapped sui protocol (#1157)
* Mapped sui protocol

* Mapped protocol in handler

* Add more eth rpcs

* Resolve comment in PR

* Resolve comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-27 12:04:33 -03:00
Julian ea231c5b86
[Blockchain Watcher] (FIX) Mapped custom variables (#1148)
* Mapped custom variables

* Mapped custom variables

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-22 16:56:44 -03:00
Julian a834f3d44e
[Blockchain Watcher] (ETH HOLSKY) Add eth holesky for testnet (#1140)
* Add eth holesky for testnet

* Add network for holesky

* Remove ethereum goerli

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-22 12:48:13 -03:00
Julian ff1961d495
[Blockchain Watcher] (SUI) Mapped sui source event (#1141)
* Mapped sui source event

* Resolve comment in PR

* Resolve comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-21 15:16:23 -03:00
Julian bc2d98d889
[Blockchain Watcher] (RPC QUERIES) Improve rpc queries (#1131)
* 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>
2024-02-20 13:30:08 -03:00
Julian 6a0edfef48
[Blockchain Watcher] (POLL RPC) Feature 1098/add rpc retry (#1118)
* 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>
2024-02-14 16:03:50 -03:00
Julian ca8a5da9cf
[Blockchain Watcher] (FIX) Add content type header (#1114)
* Add  content type header

* Remove rcp for arbitrum

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-12 16:25:01 -03:00
Martin Picco 59705a5bad
Implement rpc pool library (#1085)
* 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
2024-02-07 16:50:05 -03:00
Martin Picco e2025ee6ee
[Blockchain Watcher] (SUI) Initial implementation for Sui through polling (#1054)
* 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
2024-02-02 12:35:52 -03:00