Write Sui v1 learn sections w/ math & access#136
Merged
Conversation
✅ Deploy Preview for openzeppelin-docs-v2 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
ericglau
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation Pull Request
Summary
Adds a Learn section for OpenZeppelin Contracts for Sui under
contracts-sui/1.x/learn/, introducing two in-depth walkthrough guides:Option<T>handling patterns, core primitives (mul_div,mul_shr,average), safe bit operations (checked_shl,checked_shr), introspection and logarithms, modular arithmetic, decimal scaling, and a complete pricing module example.two_step_transfer(wrap → initiate → accept/cancel) anddelayed_transfer(wrap → schedule → wait → execute/cancel), security notes for shared-object flows and TTO recipient validation, and a combined protocol example using both packages.Includes a Learn landing index page and wired-up sidebar navigation under the Sui nav tree.
Type of Change
Related Issues
N/A
Checklist
pnpm run buildpnpm run checkAdditional Notes
Content is sourced from externally authored walkthrough documents. Code examples are experimental and unaudited. A warning callout is present on each page.