This change upgrades our wormhole dependency to the current latest
release. It introduces a fix in rent calculation logic, making Solitaire compatible with
PythNet. This lets us get rid of dedicated rent adjustment logic,
which we also remove in this change.
* add spinner while approving/rejecting and update result in real time
* fix confirmed/rejected/cancelled section
* remove console.log
* update previous list of proposals to the most updated one after approving/rejecting
* fix precommit
* fix bug
* refactor
* fetch all proposals instructions and pass to individual proposal row
* add new verified icon
* enable scroll to top when clicking on individual proposal
* split devnet/pythtest and mainnet-beta/pythnet proposals
* show symbols for product and price account when possible
* fix typo
* move getAllIxs to hook and remove verified for draft proposals
* Start to implement the solana receiver contract
* Use "cargo run" instead of the compiled binary under target/debug
* Update cargo dependency
* Add "pyth-" prefix to crate names
* Remove the transfer step in cli which is only necessary for pythnet, not solana
* fix urlsIndex not being reset to 0 when changing cluster
* fix proposals accept/reject buttons not centered when on mobile view
* add verified tag to individual proposals
* fix pre-commit error
* fix color scheme
* address comments
* wormhole-attester: Add a last trading publish timestamp field
This change bumps price batch format to v3.1 with a new backwards
compatible field - last attested trading publish time. This is the last time we've
successfully attested a trading price. If no prior record exists, the
current publish time is used.
The new field is backed by a new PDA kind for the attester contract, called
'attestation state'. In these PDAs, we store metadata for every price, seeded by its pubkey. Currently, the metadata stores just the
last tradind 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
* wormhole_attester: per-symbol state PDAs, stop using prod accounts
* attester: Use Option to detect if previous state exists
Using Option<> for this makes fallback to latest value more convenient
* wormhole_attester: client AccountMeta typo
* wormhole_attester: fix mutability error
* wormhole_attester: stop using Option<> for on-chain state
* wormhole_attester: remove unused realloc logic for attestation state
* add UpdateProductMetadata page
* add first iteration of general tab
* add more functions
* fix ModalContent to show diff
* add feature to add new price account
* ignore price account address in json when adding new price feeds
* ignore product address and price account address in json for new pricefeed
* address comments
* fix preview crashing
* Restore addresses
* fix error when no price account exists
* fix validation
---------
Co-authored-by: Guillermo Bescos Alapont <gbescos@stanford.edu>