* add swap example
* make example a swap
* whatever
* make swap
* working on this thing
* it kind of works
* whatever
* doc
* cleanup
* pre-commit
* pr comments
* fix tests
* add disclaimer
Co-authored-by: Jayant Krishnamurthy <jkrishnamurthy@jumptrading.com>
* Move price service to server directory
* Update references to price service
* Add pyth-common-js as the service client
* Update package names
* Add pyth-sdk-js
* Rename the sdk
* Change readme a bit
* fix bug where setting new pubkey and reverting the change doesnt reflect properly
* fix bug where switching to cluster with permissionAccount and switching back doesnt show default value
* remove console.log
* move example to cosmwasm
* gen schema and update developing.md
* update readme file
* remove example schema gen file
* correct var name
* correct the response of the query
* correct schema output
* wormhole-attester: Add a previous attestation timestamp field
This change bumps price batch format to v3.1 with a new backwards
compatible field - prev_attestation_time. This is the last time we've
successfully attested the price. If no prior record exists, the
current time is used (the same as attestation_time).
The new field is backed by a new PDA for the attester contract, called
'attestation state'. In this PDA, we store a Pubkey -> Metadata
hashmap for every price. Currently, the metadata stores just the
latest successful attestation timestamp for use with the new field.
* wormhole-attester: Use publish_time instead of attestation_time
* wormhole_attester: use prev_publish_time for non-trading prices
* p2w_autoattest.py: Stop using non-daemon mode
* wormhole_attester: Remove non-daemon mode and its uses, v3.0.0
We used to need non-daemon mode to run a manual healthcheck on the
attester process and its configuration. Currently, we're able to
handle this much better with the build-in healthcheck HTTP
endpoint. For production, we should be able to get rid of
p2w_autoattest.py entirely.
Co-authored-by: Stan Drozd <stan@pyth.network>
* [price-service] Update wormhole sdk package
Wormhole new sdk does not use wasm and is cleaner. It makes our code one
step closer to no wasm too.
* trigger ci
* Fix pre-commit errors
* Cleanup local environment
* Default Pyth address to match Pythnet
* Cleanup
* Make vault the same as on mainnet
* Fix mesh
* Pyth owner address updated
* Revert some changes lol
* Revert more changes
* Restore oracle address
* Add comment to create key
* add /get_vaa endpoint that serves cache and db vaas
* update env vars
* fix precommit errors
* fix precommit errors
* rename removeExpiredValuesFromVaasCache to runCacheCleanupLoop
* move initialized envOrErr to constructor or func arg
* use setInterval
* update pyth-price-service env vars on tilt devnet
* use undefined instead of null
* use status code
* make web-api an env var
* update env var
* fix precommit
* fix precommit
* fix changes
* remove env vars from tilt-devnet
* address changes
* fix lint issues
* fix linting issues again
* bump package version
* remove unused imports