pyth-crosschain/third_party/pyth
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
..
p2w-relay Repo structure refactor (#449) 2023-01-04 14:46:42 +01:00
p2w-sdk wormhole-attester: Add a previous attestation timestamp field (#488) 2023-01-19 14:38:45 +01:00
Dockerfile.check-attestations Integration test for attestations (#413) 2022-12-06 09:57:43 -08:00
Dockerfile.p2w-attest [governance] move governance related components under this directory (#489) 2023-01-13 18:58:44 +01:00
Dockerfile.pyth [tilt] Bump pyth-client to 2.20 (#505) 2023-01-18 11:35:02 -06:00
check_attestations.py Integration test for attestations (#413) 2022-12-06 09:57:43 -08:00
p2w_autoattest.py Drozdziak1/refactor p2w autoattest py (#502) 2023-01-17 16:01:16 +01:00
prepare_multisig.py [tilt] make multisig approvals easy (#512) 2023-01-18 22:05:16 -06:00
pyth_publisher.py Add the Squads Mesh program to Tilt and initialize a Vault for it (#421) 2022-12-13 14:05:06 +01:00
pyth_utils.py [tilt] Bump pyth-client to 2.20 (#505) 2023-01-18 11:35:02 -06:00