rooch-network / rooch

VApp Container with Move Language for Bitcoin ecosystem
https://rooch.network
Apache License 2.0
162 stars 85 forks source link

[framework][break] Refactor package publishing #2529

Closed pause125 closed 2 months ago

pause125 commented 2 months ago

Summary

  1. new entrypoint moveos_std::module_store::publish_package_entry
  2. Sender will get a moveos_std::module_store::UpgradeCap object when first pubshing packge. The UpgradeCap object is transferrable, and is the only certificate to upgrade the package. Each package(identified with package_id) has only one UpgradeCap
  3. Each package will track a version, and every time a package is published, an event will be triggered.

Part of #2517

vercel[bot] commented 2 months ago

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

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 9:29am
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 30, 2024 9:29am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **rooch** | ⬜️ Ignored ([Inspect](https://vercel.com/rooch/rooch/7uuDQTP4gS3DPQbLX8YBQEtgz5LV)) | [Visit Preview](https://rooch-git-fork-pause125-refactor-package-rooch.vercel.app) | | Aug 30, 2024 9:29am |
jolestar commented 2 months ago

Need to reset the genesis file, because the Package struct is changed.