Commit Graph

78 Commits

Author SHA1 Message Date
julian merlo 86a88223ec Add new test with 2 txs mapped 2024-03-25 19:18:02 -03:00
julian merlo ae196875d2 Mapped txs array 2024-03-25 19:08:52 -03:00
julian merlo e12e6cb576 Merge remote-tracking branch 'origin' into feature-1042/mapped-wormchain-source-events 2024-03-25 18:54:51 -03:00
julian merlo 617a886b25 Resolved issue mapping tx hash 2024-03-25 18:41:08 -03:00
Julian 6958d5b78b
[Blockchain Watcher] (FIX - MAYAN) Add mayan with payload address (#1242)
Add mayan with payload address

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-03-25 13:01:04 -03:00
julian merlo 83198e8565 Remove console.log 2024-03-25 12:49:13 -03:00
julian merlo a7ba1e5269 Improve code 2024-03-25 12:02:51 -03:00
julian merlo fcc6f0338c Improve log 2024-03-25 11:01:17 -03:00
julian merlo 33927a4b72 Mapped testnet rpc 2024-03-25 10:04:53 -03:00
julian merlo 1cead33153 Add test 2024-03-25 09:53:34 -03:00
julian merlo c03dc0fe68 Set chainId for wormchain 2024-03-22 13:18:23 -03:00
julian merlo 6e97d96497 Mapped source events 2024-03-22 09:38:22 -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
Martin Picco 277373bf57
[Blockchain Watcher] Add redeem tracking for native token transfers (NTT) for Solana (#1200)
* Ntt redeem tracking for solana

* Update NTT redeem addresses

* Update NTT target event addresses

* Update NTT methods config

* Add NTT method mapping for solana. Fix tests
2024-03-15 16:26:27 -03:00
Julian 960a8ed29e
[Blockchain Watcher] (MAYAN) Mapped MethodRedeemAndUnwrap method (#1219)
Mapped method

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-03-15 15:49:49 -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 071dc12296
[Blockchain Watcher] (STANDARD-RELAYER) Mapped standard relayer txs (#1216)
* Update env files

* Mapped contracts

* Mapped contracts

* Change commitment in base for latest, and mapped eth env

* Incrise attempts for retries

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-03-15 15:38:14 -03:00
Martin Picco a93dd4a036
[Blockchain Watcher] Add missing sui package id for testnet on the protocols map (#1206)
Add missing sui package id for testnet on the protocols map
2024-03-11 12:28:12 -03:00
Martin Picco 24c6683538
Add addresses normalization for the poll evm config (#1205) 2024-03-08 16:24:05 -03:00
Martin Picco 90fe8f29a1
Update NTT addresses for the testnet deploy (#1202)
Update NTT addresses for testnet
2024-03-08 15:49:12 -03:00
Martin Picco 847b8686d0
[Blockchain Watcher] Add redeem tracking for native token transfers (NTT) on EVM (#1178)
* Add redeem tracking for native token transfers (NTT)

* Add redeem tracking for native token transfers (NTT) through standard relaying

* Allow configuring the get evm transactions action to match multiple topics on one transactions by defining an array instead of a single string entry on the topics array

* Fill in mainnet and testnet standard relayers

* Remove filter field from HandleEvmTransactions filter

* Address some review comments

* Add ntt testnet contracts for both ethereum and arbitrum sepolia
2024-03-08 14:08:09 -03:00
Julian fa6196b02c
[Blockchain Watcher] (FIX ARBITRUM) Export environment variable to validate env (#1181)
* Export environment

* Resolve test

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-03-05 16:10:49 -03:00
Julian a55dbc6ccc
[Blockchain Watcher] (ARBITRUM) Improve arbitrum process (#1168)
* Improve arbitrum process

* Add comments

* Set final block for arbitrum

* Improve names

* Resolve comment

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-03-05 13:51:23 -03:00
Julian 54cf6c7e54
[Blockchain Watcher] (FIX) Move labels to json config (#1170)
* Move labels to json config

* Move labels to json config

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-03-01 11:56:09 -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 3a6dafb9e5
[Blockchain Watcher] (MAYAN) Mapped mayan events (#1150)
* Mapped evm mayan events

* Mapped evm mayan events

* Improve imports

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-26 15:50:57 -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 e0c7124c1b
[Blockchain Watcher] (FIX) Add transactions in evm request (#1139)
Add transactions

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-20 15:47:25 -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 140d05468a
[Blockchain Watcher] (METRICS) Mapped providerPoolRegistry provider and metrics (#1137)
* Mapped providerPoolRegistry provider

* Improve metrics name

* Resolve test

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-20 13:15:03 -03:00
sebastian-xlabs 528d862fdf
Maintenance/update blockchain watcher dockerfile (#1133)
* Updated SHA256 from images & added authToken to .npmrc

* Updated blockchain-watcher env files names
2024-02-19 10:32:58 -03:00
Julian 87f6383f4a
[Blockchain Watcher] (FIX) Improve evm logs (#1130)
* Improve evm log

* Mapped last cursos for sui

* Mapped last cursos for sui

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-15 16:18:53 -03:00
Julian 024c29d67d
[Blockchain Watcher] (PORTICO) Add portico in mainnet (#1127)
* Add portico in mainnet

* Improve contract mapper

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-15 15:33:31 -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
Julian 61c5f3e29d
[Blockchain Watcher] (FIX) Rename pods files (#1082)
* Rename pods

* Improve solana log

* Fix pods

* Resolve comment in PR

* Resolve comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-06 18:10:12 -03:00
Martin Picco 49c594c5c7
[Blockchain Watcher] (SUI) Add missing metric for sui txs handler (#1080)
* Add metric for sui txs handler

* Apply prettier
2024-02-02 16:12:41 -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
Julian faa4a8db33
[Blockchain Watcher] (ALL) Add metrics (#1074)
* Add metrics

* Resolve test

* Resolve test

* Mapped source and target event for solana

* Resolve comment in PR

* Improve metric name

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-02 12:23:00 -03:00
Julian 760b7925d6
[Blockchain Watcher] (SOLANA) Enable solana redeem for token bridge (#1075)
* Enable solana redeem

* Resolve test

* Remove log

* Add CompleteNativeWithPayloadInstruction and CompleteWrappedWithPayloadInstruction methods

* Resolve test

* Improve asyncapi docs

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-02-02 10:33:55 -03:00
Julian 54c5d34a6e
[Blockchain Watcher] (FIX) Add lowecasse in contracts addresses (#1063)
* Add lowecasse

* Improve transaction filter

* Run prettier

* Resolve test

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-01-30 14:22:41 -03:00
Julian 5e6b96417a
[Blockchain Watcher] (CHAINS) Create config json for contracts and protocols (#1056)
* Create contractsMapperConfig json

* Create contracts json mapper

* Change method name in solana redeem

* Improve mapper validations

* Resolve solana test

* Set up config inside solana tx

* Resolve solana test

* Resolve solana test

* Resolve comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-01-30 12:19:44 -03:00
Julian 59c2de9d0c
[Blockchain Watcher] (SOLANA) Mapped new attributes in solana redeem (#997)
* 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>
2024-01-29 09:16:04 -03:00
Julian 13ec7846c0
[Blockchain Watcher] (FIX) Fix quantity logs process per block (#1044)
* Add divided blocks method in getBlocks

* Run prettier

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-01-26 09:04:04 -03:00
Julian 5744e25495
[Blockchain Watcher] (EVM) Change evm redeemed transaction mapper (#1034)
* Change evm redeemed transaction mapper

* Run prettier

* Create batch for getTransactionReceipt

* Run prettier

* Move batches logic inside repository

* Resolve comment in PR

---------

Co-authored-by: julian merlo <julianmerlo@julians-MacBook-Pro.local>
2024-01-24 12:29:23 -03:00