* 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>
* [ethereum] Update truffle config
hdwallet package was updated in the PR bringing lerna to this repo.
In the new package the constructor arguments have changed. This PR updates that and adds a helper function to make the config more clear.
* Update truffle-config.js
* Checkpoint
* New package lock
* Trigger CI
* Trigger CI
* Typo
* Package update after rebase
* CI
---------
Co-authored-by: Ali Behjati <bahjatia@gmail.com>
* stuff
* make this look better
* improving ux
* basic functionality works
* clean up appearance
* 3 seconds
* clean up code a bit
* blah
* change website title and favicon and fix useEffect warning
* actually change website title and fix useEffect warning
* update metadata
* trigger deployment
---------
Co-authored-by: Daniel Chew <cctdaniel@outlook.com>
* Move lerna to the top
* Set version to independent
Packages are versioned independently
* Update packages and the lock
* Add build cache and better reference
* Add lerna docker base
* Add wormhole_attester sdk and some minor impr
* Update tsconfig to fix outDir impact by composite
* Update eth package
* Update p2w to use solidity-sdk
* Change xc-admin CI to lerna CI action
* Add more packages to the list + bugfixes
* Update dockerfiles to have tilt working
* Format the code
* Fix some issues
* Fix the change of usePyth.ts
* lerna build fix
* Fix foundry