Commit Graph

2480 Commits

Author SHA1 Message Date
guibescos 64255d4504
Fix build process (#672) 2023-03-07 19:23:23 -06:00
Dev Kalra 22c1fedd3d
[price-pusher] add workflow to push docker image (#667)
* add workflow

* update readme

* correct docker build
2023-03-08 01:26:52 +05:30
Jayant Krishnamurthy bab6cccbad
add getPrice call to example (#666) 2023-03-07 06:36:42 -08:00
Daniel Chew 60b1a3688b
[xc-admin] enable publisher key and multisig signer key mapping when available (#663)
* enable publisher key and multisig signer key mapping when available

* fix permission/depermission button border radius

* address comments and add mapping filepath

* fix precommit error
2023-03-07 14:44:29 +09:00
Daniel Chew 55a8f85254
[xc-admin] add README to xc_admin_cli (#614) 2023-03-07 11:47:39 +09:00
guibescos 66a3856585
Extend readme (#665) 2023-03-06 16:54:44 -06:00
guibescos ee9ee50959
Remove comment, vaults have been created (#664) 2023-03-06 16:27:18 -06:00
guibescos 33d2ffc487
Do it (#661) 2023-03-03 17:31:54 -06:00
guibescos 081a8bc12a
Don't throw error if all VAAs were relayed (#660) 2023-03-03 16:41:23 -06:00
guibescos bd9c126247
Use proxy rpcs (#659) 2023-03-03 16:32:35 -06:00
guibescos a0db4266ba
Fix relaying (#658) 2023-03-03 15:42:37 -06:00
guibescos 4524bd4984
[xc-admin-frontend] fix github action (#657)
* Missing dollar sign

* Test push:

* Fix truncate

* Long hash

* Add checkout step

* Shortened hash

* Add spaces

* Get date from command

* Remove push on pull request
2023-03-03 14:22:07 -06:00
Daniel Chew 40bc1e67d0
[xc-admin] add Dockerfile for xc-admin-frontend (#656)
* add Dockerfile for xc-admin-frontend

* add newline

* add gh workflow to push xc-admin-frontend image

* Push on every commit to main

---------

Co-authored-by: Guillermo Bescos <gbescos@stanford.edu>
2023-03-03 13:23:45 -06:00
Dev Kalra 16ac58539e
[pyth-cosmwasm] sec review update (#649)
* remove owner

* address sec review feedback

* update storage for pricefeeds

* deprecate owner

* remove owner field
2023-03-03 20:11:15 +05:30
Stanisław Drozd bbc140f2e4
[wormhole-attester] Increase accuracy and improve logging (#653)
* Tiltfile: TILT_DOCKER_REGISTRY def behavior, re-add namespace_create

* wormhole_attester/client v5.0.0: accuracy and logging opimisations

* [BREAKING CHANGE] min_interval_secs switches to milliseconds under
  min_interval_ms
* attestation jobs no longer use preflight checks - this includes a
custom variant of send_and_confirm_transaction(), see util.rs for details
* attestation error logging no longer pretty-prints the error
  structs ({:#?} became {:?})
2023-03-03 13:34:39 +01:00
Dev Kalra 53c965481a
[price-pusher] update docker files (#654)
* update docker files

* update package .json

* remove nc

* updated price pusher package name
2023-03-03 13:53:43 +05:30
Daniel Chew 5c16987153
[xc-admin] delete product (#651)
* add delete product feature

* fix delete product bug

* refactor

* fix precommit
2023-03-03 13:17:58 +09:00
Ali Behjati 35a2fb61b0
[price-pusher] Bug fix on revert and crash (#652) 2023-03-02 17:05:30 +01:00
Dev Kalra 945910778b
[price-pusher]cleanup (#650)
* remove dependency pyth-common-js

* PriceConfig -> PriceItem in pyth price listener

* consistently name contract address variable

* release a version after this pr

* remove comment

* improve logging

* rename chain price pusher
2023-03-02 20:29:19 +05:30
Dev Kalra f5620ecbd2
[price-pusher] refactor (#648)
* add a dev command for ease

* implement a new command structure

* remove comments

* move files

* add config

* update readme

* testnet compose files update

* update mainnet compose file
2023-03-02 02:35:39 +05:30
Jayant Krishnamurthy deb804617b
add an example for benchmarks (#647) 2023-03-01 12:34:32 -08:00
Jayant Krishnamurthy 66783e5ef1
add docs for audit (#645)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-03-01 08:29:12 -08:00
Daniel Chew c3ca23f3b6
remove duplicate publishers from json (#646) 2023-03-01 09:35:53 -06:00
Maurechi b3c697e5f5
added customGasStation (#644) 2023-02-28 12:58:48 -08:00
Jayant Krishnamurthy b9cb10fe65
add lerna to readme (#642)
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
2023-02-28 08:56:39 -08:00
Stanisław Drozd 3106adec39
wormhole_attester client: Change "not enough data" HTTP code to 503 (#643)
Previously, we used 307 Internal Redirect to tell k8s that we're still
waiting for the healthcheck window to fill up. Unfortunately, k8s
assumes 3XX as a success, which wrongly tells it that the service is
ready. Changing to 503 causes the expected probe failure to appear
when the healthcheck state is not yet determined.
2023-02-28 16:49:33 +01:00
Stanisław Drozd 0f3975f28e
pyth-wormhole-attester-contract-v2.0.0 (#641) 2023-02-28 14:50:29 +01:00
Ali Behjati b644b7f395
[wormhole-attester] Bump client v to 4.0.0 (#640) 2023-02-28 14:15:54 +01:00
Dev Kalra 89139850b4
remove dependency from price config (#638) 2023-02-28 15:44:57 +05:30
Dev Kalra 6bd4e2d3b8
[price-pusher] refactor index page (#636)
* refactor index page

* remove pythcontractaddr

* address comments

* bug fix
2023-02-28 15:07:38 +05:30
Jayant Krishnamurthy c0b801ef15
[doc] README updates (#637) 2023-02-28 09:19:45 +01:00
Jayant Krishnamurthy b9430aee81
[sdk] Add new SDK packages to lerna (#630) 2023-02-28 09:14:52 +01:00
Ali Behjati bf49774fab
Update docker compose images (#635) 2023-02-27 19:45:32 +01:00
Dev Kalra 40cf49ec05
[price-pusher] refactor price listener (#634)
* update pyth-evm-js dependency to pyth-common-js

* refactor price listener
2023-02-27 20:28:07 +05:30
Dev Kalra 20e8e15cef
[pice-pusher] add injective pusher (#633)
* add injective pusher

* remove cwPriceServiceConnection
2023-02-27 17:05:12 +05:30
Thomaz Leite 7c728a5718
Update Tiltfile for CI (#623)
* Update Tiltfile for CI

* Remove build GHA workflow

* Update README
2023-02-24 22:03:22 +00:00
Dev Kalra fd0257d7d9
[price-pusher] add injective price listener (#627)
* add injective price listener

* minor change

* description fix

* add fixme comments
2023-02-25 01:51:07 +05:30
njk-64 eecebe86cc
updatinbg SECURITY.md (#628) 2023-02-24 14:33:45 +00:00
Stanisław Drozd 1978d73b94
attester: Add an on-chain last attestation timestamp and rate limit arg (#622)
* attester: Add an on-chain last attestation timestamp and rate limit

In consequence, attester clients are able to rate-limit attestations
among _all_ active attesters - because the new last attestation timestamp is kept up
to date on chain. Ultimately, this value being shared by concurrent clients,
this feature limits our tx expenses while fulfilling our preferred attestation rates.

* attester: Use custom error code instead of log for rate limit

* attester: Add defaults for default attestation conditions

* attester: Use a dedicated function for rate limit default

* attester: Option<u32> -> u32 rate limit interval

This lets users pass 0 to disable the feature (0-rate limiting means
no rate limiting at all), which was not possible with the Option type.
2023-02-24 15:03:57 +01:00
Dev Kalra ae88640422
move changes from pyth-js (#624) 2023-02-24 17:31:02 +05:30
guibescos a549d535f8
[xc-admin] Output symbol when more than 32 publishers (#625)
* Make change

* Add check for duplicates

* Remove console log
2023-02-24 01:32:00 +01:00
Daniel Chew 8cb720c476
[xc-admin] add permission/depermission publisher keys for all asset types (#620) 2023-02-23 17:43:24 +09:00
guibescos 0abf0e2b6c
[xc-admin] Create multiple proposals if too many instructions (#621)
* Add code

* Remove console log
2023-02-23 09:42:05 +01:00
Jayant Krishnamurthy bbe10ba553
[sdk] Move JS sdks into this repo (#611)
* move files to subdir and js sdk here

* update pointer

* fix move

* delete lib

* fix this

* gitignore

* aptos sdk

* gitignore

* terra js

* gitignore

* move price pusher

* add lib to gitignore

* move examples

* fix workflow

* gr

* contracts

* hm

* fix

* gr

* grrr

* fix dockerfile

* wtf

* fix
2023-02-22 13:44:42 -08:00
guibescos 20b18e291d
Batch transactions (#619) 2023-02-21 18:55:44 +01:00
guibescos b34ec4e882
[xc-admin] error if proposals have more than 255 instructions (#618)
* Make the change

* Revert other files

* Remove console log

* Fix typo

* Add new keyword
2023-02-21 10:50:54 -06:00
guibescos ecb0e174d4
[xc-admin] batch wormhole messages (#615)
* Add

* Cleanup

* Add unit test
2023-02-21 11:29:03 +01:00
guibescos 6f49dfbb4b
Display symbol for new price feeds (#616) 2023-02-21 12:42:38 +09:00
Daniel Chew 562a5cd0fa
make order of ixs deterministic when sending proposal (#613) 2023-02-20 16:51:56 +01:00
guibescos 58db641ddd
[xc-admin] Batch instructions (#612)
* Checkpoint

* Working

* Remove console log

* Restore send all

* Fix tests
2023-02-20 15:58:31 +01:00