Commit Graph

55 Commits

Author SHA1 Message Date
walker-16 6f309c722a
Remove tBTC from contract-watcher (#1366)
* Remove tBTC from contract-watcher

Co-authored-by: ftocal <fert1335@gmail.com>

* remote tBTC arbitrum and polygon

Co-authored-by: ftocal <fert1335@gmail.com>

---------

Co-authored-by: ftocal <fert1335@gmail.com>
2024-05-02 10:57:23 -03:00
ftocal d8e25cc3b5
Fix dependencies in contract watcher (#1343)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2024-04-23 10:44:48 -03:00
walker-16 980316bb2d
Remove ethereum and base token bridge in contract-watcher (#1327)
* Remove ethereum and base token bridge in contract-watcher
Co-authored-by: ftocal <fert1335@gmail.com>

* Remove moonbeam and oasis token bridge in contract-watcher

Co-authored-by: ftocal <fert1335@gmail.com>

* Update contract-watcher memory resource production-mainnet

Co-authored-by: ftocal <fert1335@gmail.com>

* Remove avalanche and fantom token bridge in contract-watcher

Co-authored-by: ftocal <fert1335@gmail.com>

* Remove polygon, bsc and celo token bridge contract-watcher

Co-authored-by: ftocal <fert1335@gmail.com>

---------

Co-authored-by: ftocal <fert1335@gmail.com>
2024-04-23 10:27:32 -03:00
walker-16 2d61225ac2
remove aptos from contract-watcher (#1177) 2024-03-11 14:21:15 -03:00
ftocal 98a6264739
Changes to support ci/cd workflow in staging environment (#1166)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2024-02-29 11:14:31 -03:00
walker-16 1a5a45acac
remove portico from contract-watcher (#1128) 2024-02-21 10:25:16 -03:00
ftocal c0e233fc75
Remove solana watcher from contract-watcher (#1087) 2024-02-14 15:06:09 -03:00
ftocal d3c1c52b79
Add support to sepolia chains (#1001)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2024-01-22 11:01:18 -03:00
kev1n-peters 70e00175c8
Add Avalanche Portico contract address (#1000)
Co-authored-by: Kevin Peters <kevin@wormholelabs.xyz>
2024-01-18 17:25:26 -03:00
walker-16 9cb5769c06
Update wormhole sdk to version v0.0.0-20240109172745-cc0cd9fc5229 in … (#998)
Update wormhole sdk to version v0.0.0-20240109172745-cc0cd9fc5229 in all the components
2024-01-17 12:36:54 -03:00
ftocal e21b836455
Add handler for redeem events from blockchain-watcher (#986) 2024-01-15 10:22:05 -03:00
kev1n-peters 85e3f832d5
Updated Portico contract addresses (#951)
Co-authored-by: Kevin Peters <kevin@wormholelabs.xyz>
2024-01-05 15:02:58 -03:00
ftocal bb5840f70f
Handling transactions with more than one instruction in solana watcher (#932)
Add redeem controller

Co-authored-by: walker-16 <agpazos85@gmail.com>
2024-01-02 11:05:10 -03:00
ftocal fba3adef65
Add api key logic to handle rate limit in api (#918) 2023-12-18 12:53:30 -03:00
ftocal 1c075e3745
Add worker pool to process observations from gossip network (#909)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-12-18 10:41:07 -03:00
kev1n-peters 33319a7800
Added Portico contracts to watchers (#884)
Co-authored-by: Kevin Peters <kevin@wormholelabs.xyz>
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-12-12 16:12:53 -03:00
ftocal 3dcd21b0c4
Improve solana performance in contract-watcher (#845) 2023-12-04 10:56:56 -03:00
ftocal 7c467f5267
Integrating blockchain watcher data into mongodb (#820)
* Handle log-message-published generated by blockchain-watcher in parser, tx-tracker y analytics

* Add deployment for staging-testnet environment
Improve logs

* Add operation endpoints

---------

Co-authored-by: Agustin Pazos <agpazos85@gmail.com>
2023-11-27 12:31:35 -03:00
walker-16 217c6f28be
Fix [api] get transactions by address and add mongo query monitor (#707)
Fix api endpoint get transactions by address, add mongo query monitor
2023-09-25 16:50:16 -03:00
ftocal f000470e5e
Minor fixes and change rate limit (#699)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-09-21 17:20:50 -03:00
ftocal 74c6f51167
Use rpc standard for polygon (#630) 2023-08-11 15:10:26 -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 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 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 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
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
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
ftocal 68b0586205
Fix last block for aptos in contract-watcher (#546) 2023-07-14 14:06:20 -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
walker-16 c4a55bd6e2
Fix alert prefix with new enviroment values (#509) 2023-07-06 11:20:18 -03:00
ftocal a4788b8522
Fix prometheus metrics in contract-watcher (#504)
Co-authored-by: walker-16 <agpazos85@gmail.com>
2023-07-05 16:00:06 -03:00
ftocal 34b8ab392f
[contract-watcher] Add opsgenie alerts and prometheus metrics (#472)
* Add prometheus metrics to contract-watcher

* Add annotations for prometheus

* Add alerts for contract-watcher
2023-06-30 11:25:09 -03:00
agodnic a0475ab17e
Add endpoint `GET /api/v1/transactions` (#388)
### Summary
Tracking issue: https://github.com/wormhole-foundation/wormhole-explorer/issues/385

This pull request implements a new endpoint, `GET /api/v1/transactions`, which will be consumed by the wormhole explorer UI.

The endpoint returns a paginated list of transactions, in which each element contains a brief overview of the transaction (ID, txHash, status, etc.).

It exposes offset-based pagination via the parameters `page` and `pageSize`. Also, results can be obtained for a specific address by using the `address` query parameter.

The response model looks like this:
```json
{
  "transactions": [
   {
    "id": "1/5ec18c34b47c63d17ab43b07b9b2319ea5ee2d163bce2e467000174e238c8e7f/12965",
    "timestamp": "2023-06-08T19:30:19Z",
    "txHash": "a302c4ab2d6b9a6003951d2e91f8fdbb83cfa20f6ffb588b95ef0290aab37066",
    "originChain": 1,
    "status": "ongoing"
  },
  {
    "id": "22/0000000000000000000000000000000000000000000000000000000000000001/18308",
    "timestamp": "2023-06-08T19:17:14Z",
    "txHash": "00000000000000000000000000000000000000000000000000000000000047e7",
    "originChain": 22,
    "destinationAddress": "0x00000000000000000000000067e8a40816a983fbe3294aaebd0cc2391815b86b",
    "destinationChain": 5,
    "tokenAmount": "0.12",
    "usdAmount": "0.12012",
    "symbol": "USDC",
    "status": "completed"
  },
  ...
  ]
}
```

### Limitations of the current implementation
1. Doesn't return the total number of results (this may result in a performance issue when we filter by address)
2. Can only filter by receiver address (we don't have sender information in the database yet)
2023-06-12 11:43:48 -03:00
walker-16 100e473c2f
Add celo to contract-watcher(token bridge, wormhole connect contracts) (#393) 2023-06-09 17:57:22 -03:00
walker-16 8679d9c211
Contract-watcher add support wormhole connect wrapper contract (#391) 2023-06-08 17:53:51 -03:00
ftocal b4c217e32c
Fix status for aptos blockchain (#386)
Fix pagination for backfilling
2023-06-06 18:04:34 -03:00
ftocal 06d6950ad3
Add backfiller command to process a chain (#364)
* Add backfiller command to process a chain

* Add deployment for solana backfiller
2023-05-31 10:29:47 -03:00
walker-16 e2f32c2883
Fix global tx to keep successful status (#294)
* Fix global tx to keep successful status

Co-authored-by: ftocal <fert1335@gmail.com>

* Increment evm retry from 5 to 10

---------

Co-authored-by: ftocal <fert1335@gmail.com>
2023-05-08 12:55:09 -03:00
walker-16 f79057a375
273 contract watcher fix status for evm standard (#278)
* Add client to eth transaction Receipt endpoint

* Only process evm transaction from the contractAddress

* Add function to get Status for evm and evm standard watcher

* Fix unkown status and retry count
2023-05-02 16:52:28 -03:00
ftocal 1e87d5f022
Fix status for solana (#277)
Add retry mechanism
2023-05-02 16:44:13 -03:00
walker-16 c0ec64c749
fix moonbeam ratelimit (#269) 2023-04-27 11:17:31 -03:00
walker-16 45af329b56
Add moonbeam to contract-watcher mainent, testnet (#268) 2023-04-27 10:17:43 -03:00
ftocal a381bbdb8f
Fix in solana watcher when api endpoint fails (#266) 2023-04-26 16:58:30 -03:00
ftocal c9bd4e0dbe
Add oasis support to contract watcher (#258) 2023-04-25 14:48:26 -03:00
ftocal 4e0c077a63
Add aptos support to contract watcher (#255) 2023-04-24 12:02:19 -03:00
walker-16 f8b631c71f
Add avalanche to contract-watcher (#253) 2023-04-21 18:30:20 -03:00
walker-16 d009a616c8
Fix contract-watcher terra watcher & set initial block (#227) 2023-04-10 10:13:17 -03:00