Commit Graph

431 Commits

Author SHA1 Message Date
ftocal 74c6f51167
Use rpc standard for polygon (#630) 2023-08-11 15:10:26 -03:00
gipsh 4c037b8338
add mongo db mock and infra (#633) 2023-08-11 12:28:54 -05:00
Ricardo Olarte 17a8537d30
fix(.gitignore): ignore files from event-watcher (#628) 2023-08-11 09:12:06 -05:00
gipsh 01d935a17c
base code for event-watcher (#625)
* first commit event-watcher in ts

* add docker
2023-08-11 10:15:55 -03:00
walker-16 7426612aff
Fix BASE, OPTIMISM, ARBITRIUM (#624)
* Fix BASE, OPTIMISM, ARBITRIUM
Co-authored-by: ftocal <fert1335@gmail.com>

* Add base url in secrets.

---------

Co-authored-by: Fernando Torres <fert1335@gmail.com>
2023-08-10 17:11:31 -03:00
walker-16 160f80018f
Use rpc standard for avalanche (#622) 2023-08-10 15:51:12 -03:00
ftocal ab964a138c
Use rpc standard for ethereum (#621)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-08-10 12:12:16 -03:00
agodnic a01304e324
Add `Base` support to the contract-watcher service (#617)
### Description

This pull request adds support for the `Base` blockchain in the `contract-watcher` service.

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/605
2023-08-10 11:41:52 -03:00
agodnic 2de5b9e970
Update token database (#620)
### Summary

Update definitions in the token dictionary.
2023-08-10 11:18:58 -03:00
walker-16 87fd9d15ef
Create an api endpoint to call vaa payload parser component (#596)
* move vaa payload parser to common

* Add proxy endpoint to vaa payload parser

* Modify api deployment

* fix docs

* Fix swagger documentation
2023-08-10 11:02:14 -03:00
ftocal 0d2b5bdfd7
Add index to parsedVaa collection (#616)
* Improve log to get latency for all endpoints except ready and health

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

* Add index to parsedVaa collection

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

---------

Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-08-09 11:55:51 -03:00
gipsh 88d6f64bf4
Update issue templates (#607) 2023-08-09 09:58:09 -03:00
ftocal 2f82891944
Add base url to tx-tracker-backfiller (#610) 2023-08-08 11:49:31 -03:00
ftocal be7e6670b0
Add alert for guardain no activity (#609)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-08-08 11:11:35 -03:00
agodnic 3c7bab3f8a
Remove duplicated code: MongoDB connection handling (#590)
### Description

This pull request removes duplicated code related to MongoDB connection/disconnection attempts. This code was copied across all 8 microservices.

The functionality is now unified under the `common/dbutil` package.
2023-08-07 16:05:08 -03:00
agodnic 0f1797e44a
[API] Add `toChain` filter to `GET /api/v1/vaas/{emitterChain}/{emitterAddr}` (#598)
### Description

This pull request adds the parameter `toChain` to the endpoint `GET /api/v1/vaas/{emitterChain}/{emitterAddress}`.

Other VAA-related endpoints do not support this parameter.

Additionally, for performance reasons, a composite index must be created in MongoDB: `db.parsedVaa.createIndex({"emitterChain": -1, "emitterAddr": -1, "rawStandardizedProperties.toChain": -1, "indexedAt": -1})`
2023-08-01 16:38:34 -03:00
ftocal 008f7aab88
Add production testnet deployment (#593)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-31 10:17:30 -03:00
agodnic d267d3ae1f
Transaction search by address: fix case sensitivity (#591)
### Description

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/587

The endpoint `GET /api/v1/transactions?address={addr}` was incorrectly handling EVM addresses containing uppercase characters. This pull request fixes the issue.
2023-07-28 12:27:48 -03:00
agodnic afbfac05bd
Refactor: disable fiber message on API startup (#594)
Disable fiber startup message on API
2023-07-28 12:27:09 -03:00
agodnic 632053a4ac
Add tbtc support to the `contract-watcher` service (#584)
### Description

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/300.

This pull request modifies the `contract-watcher` service to monitor the tBTC contracts on Polygon, Optimism, and Arbitrum.
2023-07-26 16:26:07 -03:00
walker-16 75fffe3ef6
add warning alert and metrics to fly component (#576)
* Add unknown guardian set index alert

* Add prometheus metrics to check if exists observations without txhash

* Add max sequence cache error prometheus metrics
2023-07-25 15:39:27 -03:00
ftocal 13819e2d7d
Add backfiller for analytics from mongodb (#562) 2023-07-25 15:36:05 -03:00
ftocal 8fc89e35b2
Adjust channel size for vaas in fly (#582)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-25 14:32:59 -03:00
ftocal 06ddbd4332
Adjust memory resources in k8s for pipeline (#580)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-24 16:45:48 -03:00
ftocal 9b67c75f07
Update tx-tracker deployment settings (#581) 2023-07-24 16:45:36 -03:00
ftocal 94307b849a
[fly] Missing observations (#570)
Add environment variables for buffer channels (observations y vaas)
Increment size of buffer channels for observations and vaas
Align k8s resources in fly

Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-24 11:24:39 -03:00
ftocal 1d512dba7b
Add requests per second configuration in environment variables for contract-watcher (#554)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-24 10:45:19 -03:00
agodnic 4ee9abe91e
Exclude invalid chain IDs from top chain pairs (#574)
### Description

Tracking issues: https://github.com/wormhole-foundation/wormhole-explorer/issues/572, https://github.com/wormhole-foundation/wormhole-explorer/issues/573

This pull request fixes an issue in which the endpoint `GET /api/v1/top-chain-pairs-by-num-transfers` was returning invalid chain IDs for testnet.
2023-07-24 09:20:01 -03:00
walker-16 4f17772037
Delete unused and not updated tilt files (#577) 2023-07-21 19:28:44 -03:00
agodnic 80280da757
Handle multiple VAAs with the same `txHash` (#564)
### Description

Before this pull request, when calling `GET /api/v1/vaas?txHash={h}` for a hash that has multiple VAAs associated with it, we were just returning one. After this pull request, the API should return all of the VAAs associated with that transaction hash.

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/563
2023-07-20 16:37:45 -03:00
agodnic d8bb9c46f6
`tx-tracker`: add support for the "Base" blockchain (#568)
### Description

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/569

This pull request adds support for the "Base" blockchain in different parts of the codebase:
* The functions `domain.TranslateEmitterAddress`, `domain.EncodeTrxHashByChainID` and `domain.DecodeNativeAddressToHex`.
* The `tx-tracker` service: it now connects to a Base RPC node to fetch origin transaction metadata.
2023-07-20 16:37:21 -03:00
ftocal 3e5001e834
Adjust memory and cpu resources for parser in k8s (#565)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-19 17:44:12 -03:00
agodnic 3c8b28d69f
Fix inconsistencies in analytics-related endpoints (#557)
### Description

Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/535.

This pull request fixes an inconsistency between the endpoints `GET /api/v1/x-chain-activity` and `GET /api/v1/top-chain-pairs-by-num-transfers`.

The inconsistency arose because the endpoints computed the data in slightly different ways.

It was resolved by modifying the `GET /api/v1/top-chain-pairs-by-num-transfers` endpoint to use the same data source as `GET /api/v1/x-chain-activity`.
2023-07-19 15:03:43 -03:00
agodnic 0ea35a83eb
Update base URL for the external TVL API (#560) 2023-07-19 15:03:28 -03:00
walker-16 80771dc35f
Add deploy config to add metrics in tx-traker (#559) 2023-07-19 10:11:05 -03:00
walker-16 abb5baf24e
add metrics to tx-tracker (#556) 2023-07-19 09:04:41 -03:00
agodnic 44e236fc61
Update tx tracker backfiller (#540)
### Description

Related issues: https://github.com/wormhole-foundation/wormhole-explorer/issues/525, https://github.com/wormhole-foundation/wormhole-explorer/issues/524

Final updates before running the tx-tracker backfiller on staging and production.
2023-07-18 12:00:04 -03:00
walker-16 1e5aeedfd9
Fix notional error with coingecko and add endpoint to push metrics in… (#551)
Fix notional error with coingecko and add endpoint to push metrics in analytics
Co-authored-by: ftocal <fert1335@gmail.com>
2023-07-18 11:33:17 -03:00
walker-16 50e7de11ee
Fix contract-watcher last block metrics (#553)
Co-authored-by: ftocal <fert1335@gmail.com>
2023-07-18 11:27:42 -03:00
agodnic 31d2d9fc72
Fix `GET /api/v1/transactions?address={addr}` (#550)
### Description

This pull request fixes a broken database query in `GET /api/v1/transactions?address={addr}`, which was causing the endpoint to fail.
2023-07-18 09:54:52 -03:00
walker-16 520997f6d7
Fix environment env var in jobs component (#547) 2023-07-17 11:17:05 -03:00
ftocal 1440fa3741
Minor changes for production deployment (#541)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-14 14:20:42 -03:00
ftocal 68b0586205
Fix last block for aptos in contract-watcher (#546) 2023-07-14 14:06:20 -03:00
agodnic 61d070e859
Fix tx tracker performance issues (#537)
### Description

The `tx-tracker` service is failing to process messages at the speed we need. This pull request is an attempt at fixing the issue.
2023-07-14 10:39:09 -03:00
agodnic 0425a89e75
Fix `parsedPayload` param in `GET /api/v1/vaas` (#536)
Fix `parsedPayload` param in `GET /api/v1/vaas`
2023-07-13 15:17:09 -03:00
ftocal d2916ff92d
Fix filter chain id unknown in x-chain-activity endpoint (#533)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-13 12:59:37 -03:00
agodnic 1ef666322c
Fix missing `txHash` for chains 1 and 22 (#530)
### Summary

This pull request changes the retry logic in the `tx-tracker`.

When failing to process a transaction, the associated SQS message will be left to expire and will reappear after `visibilityTimeout` seconds. As a side effect, there will be several retries before giving up.
2023-07-13 12:26:38 -03:00
ftocal 50774265ea
fix contract-watcher processing (#531)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-13 12:06:46 -03:00
agodnic 55d4b352ca
Remove unused fields from the origin transaction model (#528)
### Description

This pull request removes two unused fields from the `GlobalTransaction.OriginTx` JSON model:
* `timestamp`: this field is always set to the VAA's timestamp, making it redundant. Moreover, for EVM chains we need one extra RPC node request to get it. So better get rid of it.
* `chainId`: this field is always set to the VAA's emitter chain, making it redundant.
2023-07-12 16:47:33 -03:00
agodnic fe196e35f0
[API] Standard payload changes (#520)
### Summary

This pull request modifies the API service to expose two endpoints for the Wormhole Scan UI:
* `GET /api/v1/transactions`: data needed to render the transactions list page.
* `GET /api/v1/transactions/{chain}/{id}/{sequence}`: data needed to render the transaction detail page.
2023-07-12 12:51:52 -03:00