Commit Graph

47 Commits

Author SHA1 Message Date
ftocal 58e2879068
Filter vaa and observation for pyth message in testnet (#263) 2023-04-25 16:23:07 -03:00
ftocal e1298f54ee
logging as json (#208) 2023-03-23 15:36:50 -03:00
ftocal 824ba3c7f9
Add contract watcher component (#190)
* init contract-watcher

* Add processor and blockain watchers

* Add pagination and save last blocknumber procesed by chain

* Add processing by blocks

* Add contract-watcher deploy manifest

* Add endpoint to get globalTransactions by Id

* Add originTX to get globalTransactionById endpoint

* Add wait time for new blocks

* Add initial block for evm watcher

* Add rate limit for evm watcher

* Handle testnet environment and small fixes

* Update wormhole dependencies

* Fix api documentation for swagger

---------

Co-authored-by: Agustin Pazos <agpazos85@gmail.com>
2023-03-15 16:52:50 -03:00
ftocal 867f1c2962
[API/PARSER] Chain activity and last transaction endpoints (#175)
* Fix analytic vaa metric and close metric client

* Add analytic component manifest

* Add metrics for cross chain activity endpoint

* Feature/add endpoint get vaa count (#171)

* Add trasaction controller + service

* Init getLastTrx endpoint

* Add endpoint for chain activity

* Add configmap and secrets for influx
Change Dockerfiles to support common library

* Add vaa_count endpoint

* Add cross-chain activity endpoint

* Fix vaa_count endpoint

* Add influx to api-service manifest

* Make response and add docs for chain activity endpoint

* Fix api deploy

* Fix lasl-trx json name

* Fix chain activity endpoint

* Fix doc and endpoint route last-txs

---------

Co-authored-by: Agustin Pazos <agpazos85@gmail.com>
2023-03-07 16:25:42 -03:00
agodnic d51695999a
[FLY] Remove duplicated code (#172)
Remove duplicated constants, use the definitions in the `common` package instead.
2023-03-06 14:36:40 -03:00
agodnic f169af3d37
[FLY] Fix an issue related to `.env` files (#173)
Fix an issue in which fly was not correctly populating the `P2P_NETWORK`
variable from an `.env` file.
2023-03-06 14:36:14 -03:00
ftocal 33440225a7
fix guardian healtcheck in fly (#160) 2023-02-16 13:23:50 -03:00
walker-16 e40154bf01
Improve healthcheck process to check guardian heartbeats (#156)
Co-authored-by: ftocal <fert1335@gmail.com>
2023-02-13 17:28:34 -03:00
ftocal 84e4fba5a1
Improve logs for health/ready endpoints (#133)
* Improve logs for health/ready endpoints in fly

* Improve logs for health/ready endpoints in spy

* Improve logs for health/ready endpoints in parser
2023-02-03 15:58:58 -03:00
walker-16 7506ff0bf5
Add pprof all components (#134)
* Fix Config pprof in fly

* Refactor pprof explorer parser component

* Add pprof to spy component

* Add pprof to api [api/v1, /v1]
2023-02-03 15:18:44 -03:00
ftocal 7fba3537a1
Fix: fly memory leaks in sqs consumer (#126) 2023-02-02 14:51:33 -03:00
agodnic a6cb972eb1
[FLY] Improve VAA signature verification (#121)
### Summary

Before this PR, when validating a VAA, we were always using the latest guardian set index to verify the signatures.
With this PR, we're making the signature verification against `vaa.guardianSetIndex` instead.

Context: https://github.com/wormhole-foundation/wormhole-explorer/issues/104

### Testing plan
* Added unit test cases
* Also tested manually
2023-02-02 10:17:42 -03:00
walker-16 cd29aaeb4d
Add filter methods vaa/observations testnet (#117) 2023-02-01 09:20:10 -03:00
walker-16 1c7e58a27a
Handle guardianSet by p2p enviroment in fly/api (#112) 2023-01-31 11:38:17 -03:00
walker-16 f65796b0fc
Get p2p network configuration by env vars (#109) 2023-01-30 15:51:13 -03:00
gipsh 2db8f58092
Fly backfiller (#106)
* change repo to support backfill of txhash

* generic backfiller for vaas and txhash

* update deps

* remove unused code

---------

Co-authored-by: gipsh <gipsh@gmail.com>
2023-01-30 10:20:38 -03:00
ftocal 215a00ccc8
fix: use txHash from observation (#100) 2023-01-26 17:58:37 -03:00
walker-16 f23f9f78ab
Enabled pprof fly and enable cors at app group in explorer api (#99) 2023-01-26 14:55:27 -03:00
ftocal e20e73c636
Add txHash in VAA (#94)
* add vaaId and txHash relation in vaaIdTxHash collection

* add txHash in vaas collection

* add txHash in response vaa and as filter in find vaas endpoints
2023-01-26 11:54:41 -03:00
agodnic d93613b833
[API/FLY/SPY] Update .gitignore (#87)
Ignore files generated by `make build`
2023-01-24 12:02:41 -03:00
ftocal 11e1718317
add libwasmvm and common libraries in fly image (#84) 2023-01-24 09:45:07 -03:00
ftocal 70bf3f1059
update sdk wormhole (#82) 2023-01-23 16:13:59 -03:00
ftocal 303b731d60
Feature/add parser pipeline (#46)
* Add pipeline to parse vaa

* Add parser repository and start building pipeline publisher

* Add queue sqs and in-memory to pipeline

* Add ses publisher and queue sqs/memory

* Fix watcher query

* Fix type to marshall/unsmarshall chainID and emitterAddress

* Fix js execution is run many times

* Add comments

* Add comments and improvements

* Change VAA Parser implementation

* Fix and change integration-test vaa-payload-parser

* fix appID mongo field name

* Fix guardianSet version 3, add xlabs to position 8

Co-authored-by: Agustin Pazos <agpazos85@gmail.com>
2023-01-18 12:42:14 -03:00
gipsh f4f96655a8
add new guardian set v3 (#59)
* add new guardian set v3

* update guardian set for fly

Co-authored-by: gipsh <gipsh@gmail.com>
2023-01-18 09:27:59 -03:00
walker-16 7255b214ca
18 fly api cache most recent data for most frequent queries (#51)
* Add use of sequence cache in API

* Add sequence cache in fly

* Deploy for API

* Improve use cache in API

* Remove sequence cache in fly for pythnet

Co-authored-by: Fernando Torres <fert1335@gmail.com>
2023-01-05 16:40:24 -03:00
Fernando Torres 99e895d600 Fix mongo types in Fly 2023-01-02 11:14:13 -03:00
Gabriel Zimmermann 43c529e5d3
Do not store pythnet observations (#49) 2022-12-26 19:30:58 -03:00
ftocal af94eac721
Add k8s deployment (#39)
creation of manifests to deploy in k8s
2022-12-14 17:07:55 -03:00
walker-16 bfd68061a8
Fix: change sequence type to string (#42)
Co-authored-by: Fernando Torres <fert1335@gmail.com>
2022-12-14 16:26:45 -03:00
walker-16 e245d7a8b0
Add index collections and health/ready kubernetes (#37) 2022-12-05 17:41:37 -03:00
ftocal d7e2cd55fe
Fly: Deduplicate & use persistent queue for incoming VAAs (#28)
* Deduplication of vaas messages
Use persistent queue for vaas messages (except for pyth)
Add local flag for local execution (use a memory queue)

* Improve names for consumers
Add deduplication in memory for all vaas messages and tests
Split incoming vaas (pyth and non pyth) into different channels and tests

* Check if queue message is expired

* Code review updates
2022-11-21 11:18:33 -03:00
MTJMP ff4f7f4ee7 adjust module name to be canonical 2022-11-17 16:06:41 -05:00
walker-16 d4f43e37d6
Adds go rest api (#29)
* Adds api in go

* renames observation import in api

* Add signed_vaa endpoint [guardian api]

* Add governor endpoints to API

* fix devnet/api.yaml to up with a fixed port

Co-authored-by: Gabriel Zimmermann <gabrielemanuel@gmail.com>
2022-11-17 12:37:29 -03:00
Gabriel Zimmermann 3f09b66f59
10 - Adds multiple guardian set support (#24)
* Adds multiple guardian set support

* Add guardian set validation

* Removes unnecessary comment
2022-11-08 16:03:43 -03:00
ftocal e1e31548ff
Fly: handling for pyth message from pythnet (#23)
* Add support to pyth message without migration

* Refactor MongoDB migration

* Add vaa count collection for quantity of vaa per chainId

* Refactor for code review request

Co-authored-by: Agustin Pazos <agpazos85@gmail.com>
2022-11-08 14:58:22 -03:00
ckeun 5ccd3f9139
Fly: upgrade wormhole dependency & add governor p2p channels (#22)
* Testing new storage changes

* Fixed vaa module dependency

* Added govcfg & gov status upserts

* Update main.go

* Removed unnessarily hack arounds in go.mod
2022-11-08 08:53:12 -06:00
Gabriel Zimmermann 51892ec5b6 adds early exit if obs verification failed, styling fixes, early exit if db connection failed; changes based on code review 2022-11-07 15:18:52 -03:00
Gabriel Zimmermann c37b3c6564 remove invalid vaa storage 2022-11-07 15:18:52 -03:00
Gabriel Zimmermann 2860f34cff refactors storage into separate layer 2022-11-07 15:18:52 -03:00
Gabriel Zimmermann d8e037c03a Ups go version so we can use generics 2022-11-07 15:18:52 -03:00
Evan Gray edb69f13e2 server: add comments for guardian names 2022-09-28 16:47:14 -04:00
Christine Eun 839ff81210
fly: added hash to obs id 2022-09-20 00:20:01 +00:00
Evan Gray 780032747e fly: fix deadlock 2022-09-15 19:17:28 +00:00
Evan Gray 2799d0cb91 prep for frontend 2022-09-11 20:57:01 +00:00
Evan Gray 28055d4b74 add timestamps 2022-09-08 20:25:19 +00:00
Christine Eun a1ac89ac3c Added upserts. 2022-09-08 18:45:15 +00:00
Evan Gray e7852ca52b first commit 2022-09-07 18:43:05 +00:00