pyth-crosschain/third_party/pyth/p2w-sdk/rust
Stanisław Drozd 7202b9339e
wormhole-attester: Add a previous attestation timestamp field (#488)
* 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
2023-01-19 14:38:45 +01:00
..
src wormhole-attester: Add a previous attestation timestamp field (#488) 2023-01-19 14:38:45 +01:00
Cargo.lock Refactor our CW contract + cleanups (#262) 2022-09-02 12:39:51 +02:00
Cargo.toml Guibescos/expose attester instructions (#313) 2022-09-29 09:15:42 -05:00
README.md Add pre-commit globally (#393) 2022-11-24 14:14:29 +01:00

README.md

P2W SDK

Development

This crate requires rust nightly to compile.