* 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
* Reuse xc_governance logic as much as possible in contract manager
Some functions in xc_governance were moved and refactored in order to become usable in
contract manager
* Add getBaseUpdateFee function for contract manager
* Add method for executeGovernanceInstructions
* Move up SetFee method to base class
* Add governance upgrade instruction
* Move governance payload generators out of contract classes into chain classes
* Switch from json to yaml for storage
* Remove test script for ci
* Add minimal aptos implementation
* Remove global Chains and Contracts variable and put them in DefaultStore
* Move aptos getClient function to Chain class
* Make denom field in baseUpdateFee optional and remove it from non-cosmwasm chains
* More documentation and minor fixes
* Add vaults storage
Although the set of vaults used in testing/production is just 2 it's a good idea to
not set them as predefined constants. So that for development purposes, we can create
new vaults and test them on the fly without changing too many places.
* Initial version of governance sdk
* Add more functionality to Sui contract manager and migrate variable naming to camelCase
* Refactor sui functions
* Add prettier
* Add SuiAuthorizeUpgradeContractInstruction for governance
* Update cosmwasm deploy tools entry point and expose some classes
* Remove console.logs from CosmWasm
* Refactor storage logic and add sui docs
* Use relative path for default path of store
* More documentation and minor fixes
* Rename package
* Add EVM classes
* Implement getters for data sources
* Use Google naming convention for abbreviations
More info here:
https://google.github.io/styleguide/tsguide.html#identifiers-abbreviations
* Change package license
* More comments and documentation
* Store code proxy function in CosmWasm
* upgrade script for Pyth, so far getting the dependencies and digest works
* upgrade_pyth
* made progress: works up until verify_vaa
* delete some comments
* upgrade almost works, on last step now
* comments
* edit
* upgrade process pretty much works (we got an IncompatibleUpgrade error)
* fix bug in pyth migrate process (handle_migrate threw error because take_digest was destroying non-empty cursor and not removing prefix bytes)
* comments and toml file
* revert change to Move.lock file
* remove migrate__v__0_1_1
* prettier
* move test accumulator message details to above the definition
* camel case to snake case
* deserialize and check header inside of parse_and_verify_accumulator_message
* factor out cleanup / destruction function for worm / pyth states and clock
* take_wormhole_and_pyth_states to simplify 9 tests
* get_balance for price_info_object
* Store fees as dynamic fields
* Rename functions and modules back to the published version to remain bacward compatible
* Remove withdrawal functionality for now
This functionality can always be added via contract upgrades
---------
Co-authored-by: optke3 <optke3@gmail.com>
Co-authored-by: optke3 <108488464+optke3@users.noreply.github.com>
* move test accumulator message details to above the definition
* camel case to snake case
* deserialize and check header inside of parse_and_verify_accumulator_message
* factor out cleanup / destruction function for worm / pyth states and clock
* take_wormhole_and_pyth_states to simplify 9 tests
* update
* Simplify some tests and add more
---------
Co-authored-by: optke3 <optke3@gmail.com>
Co-authored-by: Amin Moghaddam <amin@amins-mbp.tail922f3.ts.net>
* move test accumulator message details to above the definition
* camel case to snake case
* deserialize and check header inside of parse_and_verify_accumulator_message
* factor out cleanup / destruction function for worm / pyth states and clock
* take_wormhole_and_pyth_states to simplify 9 tests
* update
* 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
* [sui][price_pusher]Implement gas pool
* Add the option to specify gas budget to avoid dry run
* Avoid for loop in constructing transaction block
* Improve error handling
* Implement coin consolidation
* minor tweaks
* k
* cleanup
* fix
---------
Co-authored-by: Chris Li <chris@mystenlabs.com>
* 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
* 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
* feat(eth): optimize ReceiverMessages parseAndVerifyVM
* test(eth): update test setups to use wormholeReceiver
* chore(eth): remove console logging
* feat(eth): optimize & revert return type for parseAndVerifyVM
* fix(eth): add index boundary checks
* perf(eth): optimize verifySignature by passing in primitives instead of structs
* test(eth): add wormhole tests related to guardian set validity
* test(eth): add more parseAndVerify failure test cases
* test(eth): add more failure tests for parseAndVerify
* test(eth): add empty forge test, refactor/deduplicate