Commit Graph

2645 Commits

Author SHA1 Message Date
Ali Behjati 1a64d58834 patch(hermes): improve ws reliability
- Add max message size for incoming messages
- Add sent message rate limit and ip whitelisting
2023-10-05 16:00:48 +02:00
Ali Behjati 5fdc0d2545 fix(price-service/server): add max payload size
By default ws library has max payload size of 100 MiB but actually the
biggest valid call is 20 KiB. This change sets the limit to 100 KiB to
add more resilliency on the web socket. The biggest call size can
increase when there are new symbols but this service is not going to
live seeing the 5x current price feeds!
2023-10-04 19:34:58 +02:00
guibescos 4bfa1c38f6
Allow changing the symbol (#1075)
* Allow changing the symbol

* Format
2023-10-04 15:39:43 +01:00
Amin Moghaddam c01a9cf056
Optimize aptos contract to verify messages only once (#1074) 2023-10-03 11:05:54 +02:00
Ali Behjati 9b825597d0 chore: run ts/js ci only on relevant files 2023-09-29 17:47:39 +02:00
Amin Moghaddam 9324c74569
[price-pusher] Sui pusher forward compatibility (#1072)
* Make sui pusher forward compatible

* Bump pusher version
2023-09-29 14:19:08 +02:00
Amin Moghaddam 061f6a028d
Fix sui js sdk and bump contract (#1071)
* Bump sui version

* Add sui cli package to lerna

* Fix bug in fetching price feed object ids after upgrade
2023-09-29 10:52:41 +02:00
Ali Behjati 916d9463b2 chore(hermes): bump major version 2023-09-28 17:16:54 +02:00
Amin Moghaddam 345a6081c9
Optimize merkle tree computations gas usage by minimizing vector movements (#1069) 2023-09-28 16:47:05 +02:00
Ali Behjati 9714a851eb feat(hermes): Check price ids exist before each request
This check will make rejects faster (and block invalid requests
to benchmarks). The other benefit is that we can log the
errors from the get_price_feeds_with_update_data since it should
not fail anymore.
2023-09-28 11:10:51 +02:00
Jayant Krishnamurthy 2858d56f47
Update docs
these instructions are old
2023-09-27 06:08:00 -07:00
Amin Moghaddam a093a8f9c8
Switch from arbitrum goerli to arbitrum sepolia (#1066)
* Change canto rpc address because last one was unreachable

* Deploy on arbitrum sepolia and remove arbitrum goerli
2023-09-27 12:28:09 +02:00
Reisen 80fe023174 refactor(hermes): wrap hex::serde for deserializing 2023-09-25 13:22:26 +01:00
Reisen 26b8dcdea9 refactor(hermes): move to clap_derive 2023-09-25 13:22:10 +01:00
Reisen 7ee97ce03c refactor(hermes): break up configuration 2023-09-25 13:22:10 +01:00
Amin Moghaddam 940c2035f3
[sui-sdk] Sui sdk improvements (#1065)
* Split all coins in 1 transaction

* Use buffer library instead of built-in Buffer
2023-09-25 10:39:14 +02:00
Ali Behjati 24f582cd5a Update README.md 2023-09-22 18:28:24 +02:00
Ali Behjati f41cf822ff feat(hermes): drop additional signatures from VAAs
Co-authored-by: Reisen <Reisen@users.noreply.github.com>
2023-09-22 18:17:10 +02:00
Ali Behjati 65ecd890ae feat(price-service/sdk): add prev_publish_time metadata 2023-09-22 13:30:30 +02:00
Ali Behjati f533106100 feat(hermes): add prev_publish_time metadata 2023-09-22 13:30:30 +02:00
Amin Moghaddam 2ec0f0a094
Handle locked gas coins case on sui price pusher (#1060)
* Handle locked gas coins case on sui price pusher
2023-09-22 09:43:12 +02:00
Ali Behjati 6d3579ea7d feat(hermes): add xlabs bootstrap 2023-09-21 14:01:57 +02:00
Reisen 4ce04a2abf feat(hermes): print libp2p peer addresses 2023-09-21 14:01:28 +02:00
Ali Behjati 272dbef9b3 fix(hermes): fix slot metadata bug 2023-09-20 11:37:05 +02:00
Ali Behjati 2008da7a45 fix(hermes): unignore cache.rs from docker 2023-09-19 16:20:17 +02:00
Ali Behjati d5c3090442 feat(price-service/client): add out-of-order flag support 2023-09-19 15:54:33 +02:00
Ali Behjati 5e45146acb feat(hermes): add out of order subscription
Also improve the readiness probe

Co-authored-by: Reisen <Reisen@users.noreply.github.com>
2023-09-19 15:54:33 +02:00
Ali Behjati 7d7e09fe3a refactor(hermes): update tests 2023-09-19 13:08:11 +02:00
Ali Behjati 3a9df67ef2 refactor(hermes): move wormhole out of aggregate 2023-09-19 13:08:11 +02:00
Ali Behjati 09e2b17d1c refactor(hermes): rename store to aggregate 2023-09-19 13:08:11 +02:00
Reisen cbeada6c6d refactor(hermes): introduce Benchmarks trait 2023-09-19 13:08:11 +02:00
Reisen 263b80b1f7 refactor(hermes): introduce CacheStore 2023-09-19 13:08:11 +02:00
Reisen e144dd2bd0 refactor(hermes): removed `impl Store` 2023-09-19 13:08:11 +02:00
Amin Moghaddam f2ca88176a
Add shimmer mainnet (#1053) 2023-09-15 18:23:12 +02:00
Amin Moghaddam 79ea43553f
Add sepolia testnet (#1051) 2023-09-13 15:53:18 +02:00
Jayant Krishnamurthy 1564364420 docs 2023-09-13 11:29:30 +02:00
Ali Behjati 5ddef8797e chore: rename sui ci workflow 2023-09-13 11:18:23 +02:00
Jayant Krishnamurthy 0dde47d8e2 one more fix 2023-09-13 11:13:14 +02:00
Jayant Krishnamurthy 3ff5a2f0c7 wording 2023-09-13 11:13:14 +02:00
Jayant Krishnamurthy 5ba6ee819f clean up workflows 2023-09-13 11:13:14 +02:00
Ali Behjati 4e2e04ad44 chore: improve precommit ci 2023-09-13 11:05:52 +02:00
Ali Behjati 28f9b39444 doc(hermes): update readme 2023-09-13 10:31:32 +02:00
Ali Behjati a34f759061 chore(eth): deploy to horizen eon/gobi 2023-09-12 15:10:09 +02:00
guibescos b91360ab6b
Add system instruction (#1046)
* Add system instruction

* Update string logic

* Fix comments
2023-09-11 20:34:51 +01:00
Ali Behjati 518ab13e03 refactor(hermes): use tokio sync primitives in p2p 2023-09-08 16:17:06 +02:00
Ali Behjati 7dc0cb80bf feat(hermes): add benchmarks for histroical data 2023-09-08 15:35:58 +02:00
Amin Moghaddam 51afd5aef2
Improve contract manager and switch evmos rpc (#1044)
* Small fixes and logging improvement

* Switch evmos rpc as the older one was not working anymore
2023-09-07 15:16:14 +09:00
Ali Behjati ed505d9e53 fix(hermes): improve tracing logs
- Add EnvFilter to respect RUST_LOG
- Disable ANSI if stderr is not a terminal
2023-09-05 19:12:14 +02:00
Reisen 860178f057 feat(hermes): add tracing 2023-09-05 13:50:20 +01:00
Sahilgat 7cbdcb562d fix: underflow issue 2023-09-04 18:44:41 +02:00