-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sui-framework] Refactor id
module to object
#3241
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need that ol' refactor tractor macro
- `sui::id` is now `sui::object` - `VersionedID` renamed to `Info` - Various ID and Info helpers have been renamed - Moved object creation from tx_context to object
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work, Todd! Thank you so much for including docs updates in this change. They LGTM assuming this linked file goes live with it (tried to pick through and confirm myself):
https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/sources/object.move
Also, I think we should note this change here:
https://docs.sui.io/learn#see-whats-new
I will do that after you merge this and send the PR for your review. Thanks again!
struct type defined in the | ||
[ID module](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/sources/id.move). The | ||
[object module](https://github.com/MystenLabs/sui/blob/main/crates/sui-framework/sources/object.move). The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this file being renamed?:
object module
It doesn't exist now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct, it's a renamed module after this PR lands
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sui::id
is nowsui::object
VersionedID
renamed toInfo
Various ID and Info helpers have been renamed
Moved object creation from tx_context to object
A lot of changes to docs, but I will be doing a more detailed pass in a future PR