Skip to content

feat: add stablecoin and escrow built-in contract templates (#112)#150

Closed
Chucks1093 wants to merge 1 commit into
Nanle-code:masterfrom
Chucks1093:feat/stablecoin-escrow-templates-112
Closed

feat: add stablecoin and escrow built-in contract templates (#112)#150
Chucks1093 wants to merge 1 commit into
Nanle-code:masterfrom
Chucks1093:feat/stablecoin-escrow-templates-112

Conversation

@Chucks1093
Copy link
Copy Markdown
Contributor

Closes #112

Changes

  • Added stablecoin template: pegged stablecoin with initialize, mint, burn, balance, total_supply and a test module
  • Added escrow template: three-party escrow with deposit, release, refund, state and two test cases (release + refund)
  • Wired both into the scaffold_contract match in new.rs
  • Updated README template list to include stablecoin and escrow
  • Added Built-in Templates reference table to QUICK_START_TEMPLATES.md

Testing

  • Both templates include #[cfg(test)] modules covering the happy path
  • Follows the same structure as existing token and voting templates

Notes

  • Stablecoin stores the pegged asset symbol; no oracle integration (out of scope for a scaffold)
  • Escrow tracks amount as metadata; actual token transfer is left to the integrating dApp

…de#112)

- Add stablecoin_template: pegged stablecoin with mint, burn, balance, total_supply
- Add escrow_template: three-party escrow with arbiter release/refund and state tracking
- Both templates include test modules
- Update README template list and QUICK_START_TEMPLATES.md with new built-in template table

Closes Nanle-code#112

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Chucks1093 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

@Chucks1093
Copy link
Copy Markdown
Contributor Author

Closing in favour of a single consolidated PR.

@Chucks1093 Chucks1093 closed this May 28, 2026
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.

Issue 21: Add stablecoin and escrow built-in contract templates

1 participant