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][sui-mode] Added struct declaration, private generics, and global storage checks #13482

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

tnowacki
Copy link
Contributor

Description

  • Added checks for structs with key (id field naming+type)
  • Added checks for private generics in sui::transfer and sui::event
  • Added checks banning global storage operations

Test Plan

  • Migrated tests

If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

Move now provides errors for all custom rules present in Sui

@vercel
Copy link

vercel bot commented Aug 21, 2023

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

Name Status Preview Comments Updated (UTC)
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 11:22pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 11:22pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Visit Preview Sep 7, 2023 11:22pm
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 7, 2023 11:22pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 7, 2023 11:22pm

Copy link
Contributor

@cgswords cgswords left a comment

Choose a reason for hiding this comment

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

Looks mostly good to me, with a few small nits about error formatting and a few small code changes. Nice to see more and more checks for safety!

… and global storage checks

- Added checks for structs with key (id field naming+type)
- Added checks for private generics in sui::transfer and sui::event
- Added checks banning global storage operations
Copy link
Contributor

@cgswords cgswords left a comment

Choose a reason for hiding this comment

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

Changes all look good

@tnowacki tnowacki merged commit df0b128 into MystenLabs:main Sep 11, 2023
36 checks passed
@tnowacki tnowacki deleted the sm-typing-3 branch September 11, 2023 22:27
cgswords pushed a commit that referenced this pull request Sep 20, 2023
… and global storage checks (#13482)

## Description 

- Added checks for structs with key (id field naming+type)
- Added checks for private generics in sui::transfer and sui::event
- Added checks banning global storage operations

## Test Plan 

- Migrated tests 

---
If your changes are not user-facing and not a breaking change, you can
skip the following section. Otherwise, please indicate what changed, and
then add to the Release Notes section as highlighted during the release
process.

### Type of Change (Check all that apply)

- [ ] protocol change
- [X] user-visible impact
- [ ] breaking change for a client SDKs
- [ ] breaking change for FNs (FN binary must upgrade)
- [ ] breaking change for validators or node operators (must upgrade
binaries)
- [ ] breaking change for on-chain data layout
- [ ] necessitate either a data wipe or data migration

### Release notes

Move now provides errors for all custom rules present in Sui
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.

None yet

2 participants