pyth-crosschain/third_party/pyth
Stanisław Drozd 1978d73b94
attester: Add an on-chain last attestation timestamp and rate limit arg (#622)
* attester: Add an on-chain last attestation timestamp and rate limit

In consequence, attester clients are able to rate-limit attestations
among _all_ active attesters - because the new last attestation timestamp is kept up
to date on chain. Ultimately, this value being shared by concurrent clients,
this feature limits our tx expenses while fulfilling our preferred attestation rates.

* attester: Use custom error code instead of log for rate limit

* attester: Add defaults for default attestation conditions

* attester: Use a dedicated function for rate limit default

* attester: Option<u32> -> u32 rate limit interval

This lets users pass 0 to disable the feature (0-rate limiting means
no rate limiting at all), which was not possible with the Option type.
2023-02-24 15:03:57 +01:00
..
p2w-relay [refactor] Improve typescript codebase (#553) 2023-02-01 11:26:23 -06:00
Dockerfile.check-attestations Integration test for attestations (#413) 2022-12-06 09:57:43 -08:00
Dockerfile.p2w-attest [wormhole-attester] Move p2w-sdk inside wormhole_attester directory (#534) 2023-01-25 18:14:02 +01:00
Dockerfile.pyth [refactor] Convert hyphen to underscore in the directory tree (#524) 2023-01-24 19:06:22 +01:00
check_attestations.py [price-service] Add price service client and sdk to this repo (#525) 2023-01-25 17:17:32 +01:00
p2w_autoattest.py attester: Add an on-chain last attestation timestamp and rate limit arg (#622) 2023-02-24 15:03:57 +01:00
prepare_multisig.py [refactor] Add global lerna (#546) 2023-01-31 17:09:31 +01: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