Skip to content
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

Merged
merged 1 commit into from
Jul 18, 2022
Merged

Conversation

tnowacki
Copy link
Contributor

  • 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

  • A lot of changes to docs, but I will be doing a more detailed pass in a future PR

@tnowacki tnowacki requested a review from Clay-Mysten as a code owner July 15, 2022 23:15
@github-actions github-actions bot added sui-explorer Type: Documentation Improvements or additions to documentation labels Jul 15, 2022
Copy link
Collaborator

@sblackshear sblackshear left a 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
Copy link
Contributor

@Clay-Mysten Clay-Mysten left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

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

Hi Todd,

I missed a couple and am addressing them in:
#3300
#3301

Please take a look when you get a chance. Thanks!

@tnowacki tnowacki merged commit 757df33 into MystenLabs:main Jul 18, 2022
@tnowacki tnowacki deleted the obj branch July 18, 2022 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sui-explorer Type: Documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants