pyth-crosschain/wormhole_attester
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
..
client attester: Add an on-chain last attestation timestamp and rate limit arg (#622) 2023-02-24 15:03:57 +01:00
governance [refactor] Convert hyphen to underscore in the directory tree (#524) 2023-01-24 19:06:22 +01:00
program attester: Add an on-chain last attestation timestamp and rate limit arg (#622) 2023-02-24 15:03:57 +01:00
sdk Bump wormhole rust crates to v2.14.8, remove rent adjustment (#601) 2023-02-20 11:06:57 +01:00
Cargo.lock Bump wormhole rust crates to v2.14.8, remove rent adjustment (#601) 2023-02-20 11:06:57 +01:00
Cargo.toml [wormhole-attester] Move p2w-sdk inside wormhole_attester directory (#534) 2023-01-25 18:14:02 +01:00
rust-toolchain [refactor] Convert hyphen to underscore in the directory tree (#524) 2023-01-24 19:06:22 +01:00