Skip to content

feat: add second example template: token-allowlist#190

Merged
Nanle-code merged 2 commits into
Nanle-code:masterfrom
maztah1:feature/add-token-allowlist-template
May 29, 2026
Merged

feat: add second example template: token-allowlist#190
Nanle-code merged 2 commits into
Nanle-code:masterfrom
maztah1:feature/add-token-allowlist-template

Conversation

@maztah1
Copy link
Copy Markdown
Contributor

@maztah1 maztah1 commented May 28, 2026

closes #115

This PR resolves issue #115 by adding a second built-in example template: token-allowlist in templates/examples/token-allowlist/.

Key Changes

  1. Added Example Template token-allowlist:
    • Cargo.toml: Package manifest using the standard Soroban configuration and {{PROJECT_NAME}} placeholder.
    • README.md: Explaining the template's features, build, test, deploy steps, and CLI invocation examples.
    • src/lib.rs: Full Soroban smart contract for a token allowlist. It allows an admin to manage approved addresses, query status, and transfer/update admin authority, incorporating {{PROJECT_NAME_PASCAL}} placeholder. Includes robust unit tests.
  2. Updated Documentation:
    • Updated templates/README.md to document the new token-allowlist template.
  3. Updated Integration Tests:
    • Updated tests/template_marketplace_test.rs to verify the structure, files, and placeholders for both simple-counter and token-allowlist example templates.

Verification Plan

Automated Verification

  • Ran structural and placeholder verification successfully to ensure all template files contain valid standard layouts and expected placeholders:
    • {{PROJECT_NAME}} in Cargo.toml
    • {{PROJECT_NAME_PASCAL}} in src/lib.rs

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 28, 2026

@maztah1 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 66a3c5b into Nanle-code:master May 29, 2026
1 of 3 checks passed
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 24: Add second example template: token-allowlist in templates/examples/

2 participants