Skip to content

docs(tutorials): sync to Evo SDK 4.0.0-rc.2 and document token-burn scarcity#152

Merged
thephez merged 2 commits into
dashpay:developfrom
thephez:chore/v4-rc-and-node-22
Jun 17, 2026
Merged

docs(tutorials): sync to Evo SDK 4.0.0-rc.2 and document token-burn scarcity#152
thephez merged 2 commits into
dashpay:developfrom
thephez:chore/v4-rc-and-node-22

Conversation

@thephez

@thephez thephez commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Re-syncs the tutorial docs to platform-tutorials after its Evo SDK 4.0.0-rc.2 upgrade (PRs dashpay/platform-tutorials#95, dashpay/platform-tutorials#96) and documents the DashMint Lab token-burn scarcity model introduced with the new SDK.

SDK 4.0.0-rc.2 sync

  • Re-spliced 11 drifted snippets from the tutorials repo, including the SDK-4.0 API changes: EvoSDK.*Trusted({ version }), document.toJSON(version), DashMint token-gated minting, and the Dashnote concurrent-edit check.
  • Repinned the three _static/*-lite.html companions to @dashevo/evo-sdk@4.0.0-rc.2.
  • Withdraw tutorial amount raised to the protocol minimum (1000000n).
  • Bumped the Node prerequisite from v20 to v22 (tutorials now require Node 22.22.x) in introduction.md, connecting-to-testnet.md, and both example-app pages.

DashMint token-burn scarcity

The SDK-4.0 DashMint Lab gates minting on burning a fixed-supply token, which was previously only visible in code comments. This documents it:

  • New DashMint token flow section and Transfer DashMint tokens walkthrough, embedding dashMintToken.ts and transferDashMintTokens.ts.
  • Registered both new blocks in tutorial-code-map.yml so they stay in sync (now 48/48 mappings).
  • Updated the intro, "What this app does", TL;DR, and architecture tour to reflect token-gated minting; corrected the contract-schema prose now that creationRestrictionMode is 0 with scarcity enforced by tokenCost.create.

Dashnote cleanup

  • Restructured the update-note walkthrough into steps and documented the expectedRevision concurrent-edit guard.
  • Fixed the message maxLength description (the field is no longer length-capped).

Verification

  • python3 scripts/tutorial-sync/sync_tutorial_code.py --check --source <platform-tutorials> → 48 matched, 0 drifted.
  • All embedded code blocks are byte-identical to source; emphasize-line directives re-verified after the snippets grew.

Preview build: https://dash-docs-platform--152.org.readthedocs.build/en/152/

thephez and others added 2 commits June 17, 2026 10:48
-Bump to Evo SDK v4.0-rc.2 (3.1 was renamed 4.0) and Node 22.
-Add the DashMint token-cost flow: a fixed-supply token configuration burned on card create, with creationRestrictionMode opened to anyone who can pay the token cost.
- Add note update revision checking, raise the withdrawal amount to the protocol minimum, and drop the obsolete note message maxLength.
Add a token flow section and Transfer DashMint tokens walkthrough to DashMint Lab, register both blocks in the sync map, and align the intro, TL;DR, and contract-schema prose with token-gated minting.

For Dashnote, restructure the update-note steps, note the expectedRevision guard, fix the message maxLength description, and bump the Node prerequisite to 22.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 00c09d64-2f9c-49cc-9541-f5b3f34b33d9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@thephez thephez left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@coderabbitai review

@thephez thephez merged commit bb51758 into dashpay:develop Jun 17, 2026
3 checks passed
@thephez thephez deleted the chore/v4-rc-and-node-22 branch June 17, 2026 15:55
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