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

[move-compiler] Add sui specific information to TypingProgramInfo #19287

Merged
merged 5 commits into from
Sep 11, 2024

Conversation

tnowacki
Copy link
Contributor

@tnowacki tnowacki commented Sep 9, 2024

Description

  • Added a map of all UID holders
  • Added a map of all transferred objects

Test plan

  • Not yet used

Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Sep 9, 2024

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

Name Status Preview Comments Updated (UTC)
multisig-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 10:37pm
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 10:37pm
sui-kiosk ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 10:37pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2024 10:37pm

Copy link
Contributor

@tzakian tzakian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM -- just a couple small comments.

sp!(_, tn_): &N::TypeName,
) -> Vec</* is_phantom */ bool> {
match tn_ {
N::TypeName_::Multiple(n) => vec![false; *n],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL

Comment on lines +213 to +214
let visited = &mut BTreeSet::new();
let mut uid_holders = BTreeMap::new();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: why not let mut visited = BTreeSet::new()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of let visited = &mut BTreeSet::new(), doing let mut visited = BTreeSet::new(). But it's more of a stylistic nit so feel free to ignore if you prefer it this way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like avoiding the owned value if I can :) Less typing

@tnowacki tnowacki enabled auto-merge (squash) September 11, 2024 22:29
@tnowacki tnowacki merged commit 601ff73 into MystenLabs:main Sep 11, 2024
43 of 44 checks passed
@tnowacki tnowacki deleted the sui-info branch September 11, 2024 23:15
suiwombat pushed a commit that referenced this pull request Sep 16, 2024
…9287)

## Description 

- Added a map of all UID holders
- Added a map of all transferred objects

## Test plan 

- Not yet used

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
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.

2 participants