pyth-crosschain/wormhole-attester
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
..
client wormhole-attester: Add a previous attestation timestamp field (#488) 2023-01-19 14:38:45 +01:00
governance [governance] move governance related components under this directory (#489) 2023-01-13 18:58:44 +01:00
program wormhole-attester: Add a previous attestation timestamp field (#488) 2023-01-19 14:38:45 +01:00
Cargo.lock wormhole-attester: Add a previous attestation timestamp field (#488) 2023-01-19 14:38:45 +01:00
Cargo.toml Repo structure refactor (#449) 2023-01-04 14:46:42 +01:00
rust-toolchain Move rust-toolchain (#460) 2023-01-06 09:35:26 -06:00