pyth-crosschain/solana
Stanisław Drozd 6382f540db
Wormhole message reuse via post_message_unreliable (#261)
* pyth2wormhole: Implement reusable message PDAs

This changeset converts attest() to use a new PDA for
reusable/unreliable wormhole message account. Each PDA is tied to a
given attest() payer with an index that lets them rotate a number of
message accounts. Keeping the appropriate timing of the reuses is up
to the message owner, who should rotate a number of PDAs.

* pyth2wormhole-client: Add a message acc rotation impl

* p2w attest(): Integrate with bumped wormhole and fix call issues

* p2w-client: Format code, fix test_attest, refactor message index

* Dockerfile.client, Dockerfile.p2w-attest: Improve caching

The main improvement comes from running cargo-install from within a
workspace which lets us cache target/

* p2w-client: Make reusable messages configurable in yaml

* p2w on-chain: refactor to unreliable-only, adjust msg balance, nits

* p2w-client: P2WMessageIndex -> P2WMessageQueue, queue tests

* p2w-client: Add a hard limit to the message account queue
2022-09-01 18:47:24 +02:00
..
keys pyth2wormhole-client: Run an automated attestation script in Tilt 2021-09-09 17:24:32 +02:00
memmap2-rs Start depending on the upstream out-of-tree Wormhole (#258) 2022-08-29 16:18:41 +02:00
pyth2wormhole Wormhole message reuse via post_message_unreliable (#261) 2022-09-01 18:47:24 +02:00
.dockerignore pyth2wormhole: build + deploy program into local devnet 2021-09-09 14:39:31 +02:00
devnet_setup.sh Start depending on the upstream out-of-tree Wormhole (#258) 2022-08-29 16:18:41 +02:00
rust-toolchain Start depending on the upstream out-of-tree Wormhole (#258) 2022-08-29 16:18:41 +02:00
rustfmt.toml Fix Governance Headers 2021-07-20 17:37:08 +00:00