Skip to content

Conversation

@optke3
Copy link
Contributor

@optke3 optke3 commented Apr 10, 2023

Summary

  • Write a full suite of unit tests for Pyth exercising price feed creation and price feed updates. Confirm that price info objects behave as expected
  • Incorporate latest changes from wormhole/sui_integration_v2
  • Add assert_package_upgrade_cap check to init_and_share_state
  • Inspect transaction effects and make sure the right number of PriceInfoObjects are created and shared with each call to create_price_feeds
  • Implement update_price_feeds_if_fresh
  • Make some important edits to update_cache loop
    1. throw error if price info object not found
    2. add && found == false condition to make sure that we update at most one price info object

Testing

  • sui move test
    Sui version: sui 0.29.1-d6ebeaa32

Integration Remaining Todos

  • Contract upgradeability

@vercel
Copy link

vercel bot commented Apr 10, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
xc-admin-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 30, 2023 7:49pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Apr 30, 2023 7:49pm

@optke3 optke3 requested a review from Reisen April 10, 2023 21:45
@optke3 optke3 marked this pull request as ready for review April 10, 2023 21:45
Base automatically changed from sui/clock_error_codes_and_more to main April 30, 2023 19:39
@optke3 optke3 merged commit d8c69a6 into main Apr 30, 2023
@optke3 optke3 deleted the sui/unit_tests_pyth_and_more branch April 30, 2023 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants