Skip to content

sui: modernize the codebase to Move 2024 #2729

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

damirka
Copy link

@damirka damirka commented May 24, 2025

Summary

  • run sui move migrate
  • move tests into separate files under tests/
  • run move formatter on the codebase
  • convert E_ABORT_CODE into canonical EAbortCode
  • change Sui dependency to toolchain's implicit one
  • add method aliases: get_prop to prop
  • adds .prettierrc for Move Formatter

Rationale

  • We no longer use legacy edition of Move, and this PR helps eliminate another source of outdated practices.
  • See Move Book

How has this been tested?

  • Current tests cover my changes
  • Added new tests
  • Manually tested the code

- run `sui move migrate`
- move tests into separate files under `tests/`
- run move formatter on the codebase
- convert `E_ABORT_CODE` into canonical `EAbortCode`
- change Sui dependency to toolchain's implicit one
Copy link

vercel bot commented May 24, 2025

@damirka is attempting to deploy a commit to the Pyth Network Team on Vercel.

A member of the Team first needs to authorize it.

@damirka damirka changed the title modernize the codebase to Move 2024 sui: modernize the codebase to Move 2024 May 24, 2025
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.

1 participant