* Remove middle structs
* Parse and process attestation in place
It helps a lot because we won't expand memory anymore
* Update comments
* Remove unusued PriceAttestation struct
* Make Pyth.initialize private
* Make contract upgrade more resillient + add fail test
* Remove deployCommitHash
The deployCommitHash process is error-prone and it's alternatives
require changing many parts of the code.
And as it is not used anywhere. I believe it is not
worth the effort.
* Improve price not found log
* Remove celo conf files as we are not there
* Remove some unused files
* Move common variables to cluster env
Also rename mainnet to ethereum
* Update migration scripts
* Remove ropsten, it's decommissioned
* Update template
* Create deployment script
* Add set fee migration step
* Comment out old upgrade process with good comments
* Address Tom comments
* Use a helper function for loading env
* Disable storage collision check on some migrations
Some changes after them have storage collision and this requires them to
disable it too
* Add new implementation memory layouts
* Update sdk version
* Update the contract according to the sdk changes
- Change some memory modifiers to improve gas efficiency
- Implement getValidTimePeriod() and remove old staleness logic
- Update the tests
* Update latest migration descriptions
* Add version
* Update Deploying.md
* Add test to validate version of the contract
* Add deploy commit hash
* Rename the placeholder
* Fix placeholder
* Set prev* to current* when price gets stale
* Add new solidity sdk
* Add migration files for this update
* rename diff to absDiff
Strangely, although you cannot use parent private method, you cannot
define a method with same name
* Add a comment to explain the prevPrice replacement
* Upgrade testnet contracts
And fixes some issues for it. Specially it uses
unsafeSkipStorage to skip OZ collision check
as they are very conservative and doesn't
cover our valid memory changes.
We should be very careful in memory
changes now that we cannot use
OZ collision check.
* Address Tom comments
* Implement the new IPyth events and methods
* Check contracts gets the fees in tests
* Fix the fee variable position to avoid conflict
* Add migration files.
* Add events to migration names and docs
* Fix pyth contract address in tests
Very strangely after adding migration steps the old address
used in evm relay became wormhole implementation address
I looked at eth-0/tests container logs and saw the
address is entirely different (before and after the change)
* Fix previous migration bug.
* rename instance to proxy to be more clear
* Update Deploying.md
* ethereum: Add support for multiple emitter/chain ID pairs
* ethereum: Simplify data source methods, add tests, fix flag bug
* ethereum: Fix incorrect removeDataSource condition, harden its test
* ethereum: Add the multi-source migration to prod-receiver
* PythState.sol: rephrase comment about new data source API
* ethereum/test/pyth.js: run prettier formatting
* ethereum: replace multi-source migration with addDataSource call
* ethereum: mark older chain/emitter ID state as deprecated
* Make Migrations contract Ownable
* Add prod deployment migrations
* Add BSC Testnet deployment configuration
* Add documentation for deploying contracts to production
* Fix test environment script for deployment to development network
* Fix tilt issues + refactor
Co-authored-by: Ali Behjati <bahjatia@gmail.com>
* pyth2wormhole: implement wire format v3rev0
commit-id:c106d3b3
* pyth.js: Run prettier formatting
commit-id:fc9fb160
* ethereum: Fix tab indentation in Pyth contracts
commit-id:3d2ab7d8
* p2w-terra contract: fix formatting
commit-id:685dd14f
* p2w-sdk: Use wasm in the JS package, detect bundler/node via `window`
This commit makes sure that our wasm usage is more robust. We ensure
that the JSON representation renders all important numbers in their
string decimal form. b
commit-id:75f9c224
* p2w-sdk: review suggestions: field ranems, limit serde attributes
commit-id:9f596b80
* p2w-sdk/rust: Remove utils.rs and the helper type
commit-id:e72c6345
* pyth2wormhole: Add compatible metadata, handle EVM fwd-compat
commit-id:d92b42b5
* EVM unit tests: test the non-breaking format change fields
commit-id:3a26e554