Skip to content

feat: implement contract scaffold templates with WASM hashes and spec export#226

Merged
Nanle-code merged 1 commit into
Nanle-code:masterfrom
chidii:feature/contract-scaffolds
May 29, 2026
Merged

feat: implement contract scaffold templates with WASM hashes and spec export#226
Nanle-code merged 1 commit into
Nanle-code:masterfrom
chidii:feature/contract-scaffolds

Conversation

@chidii
Copy link
Copy Markdown

@chidii chidii commented May 29, 2026

Closes #187

Summary
Replaces TODO stubs in contractDevelopment.js with working WASM hash placeholders, spec JSON export, and downloadable scaffold bundles. Adds a "Scaffold" section to the Template Library UI with links to Stellar docs.

Changes

src/lib/contractDevelopment.js

  • generateWasmHash(templateId) — deterministic hash placeholder for local dev
  • exportContractSpec(templateId) — exports ABI-like JSON spec with methods and wasmHash
  • generateContractReadme(templateId) — builds a starter README with build/deploy/test instructions
  • downloadScaffold(templateId) — triggers browser download of spec + README + source bundle

src/components/templates/TemplateLibrary.jsx

  • Added 'scaffold' category to filter bar
  • New "Contract Scaffolds" section showing token/escrow/oracle templates with download buttons
  • Links to Stellar smart contract documentation
  • Shows "✓ Downloaded" feedback for 2 seconds after download

src/components/templates/TemplateDeployer.jsx

  • Added "Quick Downloads" section with "Spec + README" download button and Stellar Docs link

Acceptance Criteria

  • User can download starter spec + README for token/escrow/oracle patterns
  • No runtime TODO throws
  • Links to Stellar docs for deploying real contracts

@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

@mitchellecm7 is attempting to deploy a commit to the nanle-code's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 29, 2026

@chidii Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Nanle-code Nanle-code merged commit f9e7458 into Nanle-code:master May 29, 2026
1 check failed
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.

Implement contractDevelopment.js scaffold templates (replace TODOs)

3 participants