7202b9339e
* 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 |
||
---|---|---|
.. | ||
pyth |