Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

docs: add contract boxes and context variables tutorials - #19

Open
naro8259 wants to merge 1 commit into
fleet-sdk:masterfrom
naro8259:bounty-8-milestones-5-6
Open

naro8259 wants to merge 1 commit into
fleet-sdk:masterfrom
naro8259:bounty-8-milestones-5-6

Conversation

@naro8259

Copy link
Copy Markdown

Addresses milestones 5 and 6 of #8 (75 SigUSD bounty scope).

What this adds

  • a focused Creating Boxes with Contracts chapter using @fleet-sdk/compiler, OutputBuilder, and TransactionBuilder
  • a focused Context Variables chapter showing ErgoUnsignedInput.setContextExtension() with SInt / SBool
  • a clear distinction between persistent box registers and spending-time context extensions
  • sidebar navigation for both chapters
  • a complete create → spend example where the contract reads getVar[Int](0)

Verification

  • VitePress production build passes (npm run build; repo build command is equivalent to pnpm run build)
  • the TypeScript examples type-check against current published packages:
    • @fleet-sdk/core@0.12.0
    • @fleet-sdk/compiler@0.12.0
    • @fleet-sdk/serializer@0.11.0
  • the example ErgoScript compiles successfully with @fleet-sdk/compiler@0.12.0
  • git diff --check passes

The scope is intentionally limited to milestones 5–6 and does not overlap the open registers/data-input/compile-time-constants/reduced-tx tutorial PRs.

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant