* Replace xc-governance-sdk with xc_admin_common package
xc_admin_package was not using the CHAIN overrides declared in the governance-sdk so it was moved
to that package as well
* Replace xc-governance-sdk with xc_admin_common in other packages
* Remove the package and all of its references
* Fix tests
* Fix bug in GovernanceDataSourceTransfer encoding
* Rename all references to the old package
* Redeploy neutron_testnet contract with new chain id
* Move SetWormholeAddress to separate file
* merkle tree impl
* - take leftmost 20 bytes in hash
- don't assign output of cursor::take_rest to _, instead just drop it
* push PREFIXes (MERKLE_LEAF_PREFIX, MERKLE_NODE_PREFIX) to front instead of back
* delete testXOR
* test construct merkle tree depth exceeded error
* invalid merkle proof test cases
* comments
* rename failure tests
* simplification for initializing a vector
* fix leafHash bug, add tests for hashLeaf and hashNode
* pyth accumulator start, extract_price_info_from_merkle_proof, parse_price_feed_message
* parse_price_feed_message, parse_and_verify_accumulator_updates
* implementation + debugging for merkle pyth accumulator
* edit merkle tree
* testNodehash
* test hash
* delete prints
* test case for parse and verify TEST_ACCUMULATOR_3_MSGS
* hot potato vector -> authenticated price infos
* refactor - move tests from pyth_accumulator to pyth to avoid dependency cycle
* remove _ from deserializing unused vaa
* add sui-contract.yml for github actions
* AuthenticatedPriceInfos -> AuthenticatedVector
* charge base update fee per call to update_single_price_feed
* add back multiple tests, including test_create_and_update_price_feeds_insufficient_fee, update cache, update cache old update
* test multiple price feed creation and update accumulator
* authenticated_price_infos.move -> authenticated_vector.move
* 5 * single_update_fee
* delete some comments, add accumulator test info
* don't make TEST_VAAS test_only in pyth.move
* remove #[test_only]s
* assert price info object contains correct price feed info
* factor out some constants from accumulator test cases to reduce duplicate code
* add sui-contract.yml file for github actions CI
* more refactor and clean-up
* assert price_info_object_1 is correct in test_create_and_update_price_feeds_with_batch_attestation_success
* removed the parse_and_verify_accumulator_message_with_worm_state entirely, and instead added the helper parse_vaa_bytes_from_accumulator_message
* edit comment
* update comment
* edit sui github ci
* fix for sui-contract.yml
* MINIMUM_SUPPORTED_MINOR_VERSION and MAJOR_VERSION
* remove test_get_price_feed_updates_from_accumulator and parse_vaa_bytes_from_accumulator_message from pyth_accumulator.move
* test_parse_and_verify_accumulator_updates_with_extra_bytes_at_end_of_message
* sui contract yml update
* use rev to cargo install sui in github actions ci
* cargo install --locked for github CI
* Pin dependency versions
* Implement accumulator support on aptos
* Fix formatting on error.move in aptos
* Add CI workflow for aptos
* Upgrade to aptos cli 1.0.4
* Point to another wormhole sdk
* Works
* Reset this dir
* Refresh cargo lock
* Bump solana
* Pin git packages
* Allow large errors
* Update to the right wormhole-solana
* Fix cli
* Add cargo lock
* Remove print statement
* build contract
* uploading artifacts
* test
* test
* different version for upload artifact
* update artifacts path
* add release code
* test
* update artifact path
* test
* update release names
* remove ls
* rename tag
* rename
* Missing dollar sign
* Test push:
* Fix truncate
* Long hash
* Add checkout step
* Shortened hash
* Add spaces
* Get date from command
* Remove push on pull request
* add Dockerfile for xc-admin-frontend
* add newline
* add gh workflow to push xc-admin-frontend image
* Push on every commit to main
---------
Co-authored-by: Guillermo Bescos <gbescos@stanford.edu>
* 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
* Move price service to server directory
* Update references to price service
* Add pyth-common-js as the service client
* Update package names
* Add pyth-sdk-js
* Rename the sdk
* Change readme a bit
* Repo structure refactor
This change introduces major codebase layout changes in three areas:
* Tilt devnet lives in tilt-devnet/ - all k8s and docker files,
scripts, local testing private keys are moved to this directory.
* pyth2wormhole becomes pyth-wormhole-attester and is relocated to
wormhole-attester/ - This long-needed rename will hopefully eradicate
most of the confusing naming around the attester. The Rust client binary
becomes pyth-wormhole-attester-client.
* Target-chain code lives in target-chain/ - This leaves just the
attester, third_party and pythnet-specific things at top-level.
Other opportunistic changes:
* Fixed rebuild trigger for Dockerfile.wasm
These items are a fraction of the necessary structure changes in the repo.
* cosmwasm: fix contract after faulty merge
* .github: remove unused dependabot config
* Fix path references in .github and .pre-commit-config.yml
* .github: Rename attester references to pyth-wormhole-attester
* .pre-commit-config.yaml: fix paths and run all commit hooks
* p2w-relay: Fix faulty merge resolution in favor of origin/main
* Dockerfile.pyth_relay: Fix Ethereum path reference
* Dockerfile.solana: Trip early cache with arbitrary change
* Dockerfile.pyth_relay: typo
* p2w-relay: fix evm build in npm script
* Dockerfile.solana: Retry invalidating cache again
* near -> target-chains/near
* wormhole-attester: bump on/off-chain major versions due to rename
Attester packages were renamed. This possibly breaks most dependees.
* Dockerfile.solana: Improve decoy-crate to have a real lib target
* .github/[...]/pyth-cosmwasm-contract.yml: typo
* rust-toolchain: Bump rust to stable 1.63
* rust-toolchain: use christmas nightly
* empty commit to trigger build
* attester-image-push.yaml: keep xc-attest image name intact
* multisig-wh-message-builder: remove accidental revert
* Use a new rustfmt file
* Run cosmwasm action only when needed
* Remove pre-commit from remote-executor action
* Fix formatting
* Run precommit for all files
As previous PR was merged without pre-commit
* Run remote exec CI only if it's changed
To save more GH actions time + have faster CI checks (sometimes it takes longer than tilt!)
* Update remote-executor.yml
* Start anchor program
* pythnet folder
* Renames
* Implement processor
* Comments
* More comments
* Bump anchor
* Use new version of the wormhole package
* Get Solana chain id from wormhole core
* Pythnet bridge address
* Remove comment
* Fix borsh headers
* Format
* Fix precommit
* Fix precommit
* Precommit
* Add to CI
* Fix CI
* Use the cw sdk
* Fix clippy warnings
* Use Addr instead of String
* Format the code (cargo +nightly fmt)
* Depend on wormhole git instead of local dependency
* Add error enum
* refactor
* Refactor errors
* certusone->wormhole-foundation rename
It will fix some compile problems
* Build wormhole contract from their repo
* remove wormhole package
* Remove memmap2 patch
It was not needed anymore with the newer
verison of solana (wormhole removed it too)
* Rename pyth-bridge to pyth-cosmwasm