Skip to content

refactor: remove dummy token transfer example#109

Merged
dhruvja merged 3 commits into
mainfrom
dhruvja/refactor/remove-dummy-token-transfer
Jul 7, 2026
Merged

refactor: remove dummy token transfer example#109
dhruvja merged 3 commits into
mainfrom
dhruvja/refactor/remove-dummy-token-transfer

Conversation

@dhruvja

@dhruvja dhruvja commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove the duplicate dummy-token-transfer example.
  • Keep spl-tokens as the canonical SPL token transfer example.
  • Update docs to explain how spl-tokens relates to the ephemeral-spl-token program.
  • Remove dummy-token-transfer from the local/CI project list.

Testing

  • git diff --check
  • bash -n scripts/projects.sh scripts/local-env.sh scripts/test-locally.sh scripts/test-example.sh
  • Verified dummy-token-transfer is no longer in projects_json
  • Verified spl-tokens remains in the regular project set

Summary by CodeRabbit

  • Documentation
    • Expanded the SPL Tokens example docs with a detailed end-to-end walkthrough, key file references, and clearer notes on delegation timing and withdrawal back to the base layer.
    • Updated the main README and UI docs to reflect the SPL Tokens example workflow and improved setup guidance.
    • Refreshed the SPL Tokens card text to mention delegation, ER transfers, and base-layer withdrawal.
  • Chores
    • Removed the legacy dummy token transfer example and related config/tests from project listings and CI tooling.
    • Updated the SPL Tokens app environment template and renamed the app package; refined SPL Tokens program metadata.

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5051622b-5179-4ad2-937d-630f8dc1f3bf

📥 Commits

Reviewing files that changed from the base of the PR and between 4076569 and 9eac871.

📒 Files selected for processing (3)
  • README.md
  • scripts/projects.sh
  • spl-tokens/app/README.md

Walkthrough

This PR removes the dummy-token-transfer example content and updates the project registry to exclude it. It also refreshes SPL Tokens documentation and metadata across the root README and spl-tokens package files.

Changes

Example removal and registry update

Layer / File(s) Summary
Top-level example deletion
dummy-token-transfer/*, scripts/local-env.sh, scripts/projects.sh
The top-level dummy-token-transfer example files are removed, a local-env comment is updated, and scripts/projects.sh drops dummy-token-transfer from REGULAR_PROJECTS.
Legacy example deletion
00-LEGACY_EXAMPLES/dummy-token-transfer/*
The legacy dummy-token-transfer example files are removed, including its program, tests, config, and documentation.

SPL Tokens docs and metadata refresh

Layer / File(s) Summary
Root README update
README.md
The SPL Tokens example card text is updated and the examples grid keeps its 3-column layout.
SPL Tokens documentation and package metadata
spl-tokens/README.md, spl-tokens/app/README.md, spl-tokens/app/example.env, spl-tokens/app/package.json, spl-tokens/programs/spl-tokens/Cargo.toml, spl-tokens/Anchor.toml
The SPL Tokens README and app README are expanded, the environment template adds endpoint comments, and the app/package and program metadata are updated.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: jonasXchen

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: removing the dummy token transfer example.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dhruvja/refactor/remove-dummy-token-transfer

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@spl-tokens/app/README.md`:
- Around line 54-60: The localhost example in the README is still triggering the
markdownlint MD031 warning because the fenced code block is not spaced
correctly. Reformat the example in the README section near the localhost usage
so the fence has the required blank line separation, or convert that snippet to
an indented code block while keeping the same commands; verify the markdown
around the examples section stays lint-clean.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2e75c0d3-0a18-4f43-ae43-06a538490a6f

📥 Commits

Reviewing files that changed from the base of the PR and between f5f08d9 and 4076569.

⛔ Files ignored due to path filters (6)
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/Cargo.lock is excluded by !**/*.lock
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/package-lock.json is excluded by !**/package-lock.json
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/yarn.lock is excluded by !**/yarn.lock, !**/*.lock
  • dummy-token-transfer/Cargo.lock is excluded by !**/*.lock
  • dummy-token-transfer/package-lock.json is excluded by !**/package-lock.json
  • dummy-token-transfer/yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (28)
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/.prettierignore
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/Anchor.toml
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/Cargo.toml
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/README.md
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/package.json
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/programs/dummy-transfer/Cargo.toml
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/programs/dummy-transfer/src/lib.rs
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/tests/dummy-transfer.ts
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/tsconfig.json
  • README.md
  • dummy-token-transfer/.prettierignore
  • dummy-token-transfer/Anchor.toml
  • dummy-token-transfer/Cargo.toml
  • dummy-token-transfer/README.md
  • dummy-token-transfer/package.json
  • dummy-token-transfer/programs/dummy-transfer/Cargo.toml
  • dummy-token-transfer/programs/dummy-transfer/src/lib.rs
  • dummy-token-transfer/tests/dummy-transfer-local.ts
  • dummy-token-transfer/tests/dummy-transfer.ts
  • dummy-token-transfer/tsconfig.json
  • scripts/local-env.sh
  • scripts/projects.sh
  • spl-tokens/Anchor.toml
  • spl-tokens/README.md
  • spl-tokens/app/README.md
  • spl-tokens/app/example.env
  • spl-tokens/app/package.json
  • spl-tokens/programs/spl-tokens/Cargo.toml
💤 Files with no reviewable changes (19)
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/.prettierignore
  • dummy-token-transfer/README.md
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/README.md
  • dummy-token-transfer/tests/dummy-transfer.ts
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/programs/dummy-transfer/Cargo.toml
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/Cargo.toml
  • dummy-token-transfer/Anchor.toml
  • dummy-token-transfer/Cargo.toml
  • dummy-token-transfer/.prettierignore
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/package.json
  • dummy-token-transfer/programs/dummy-transfer/Cargo.toml
  • dummy-token-transfer/package.json
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/programs/dummy-transfer/src/lib.rs
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/tests/dummy-transfer.ts
  • dummy-token-transfer/tests/dummy-transfer-local.ts
  • dummy-token-transfer/programs/dummy-transfer/src/lib.rs
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/Anchor.toml
  • dummy-token-transfer/tsconfig.json
  • 00-LEGACY_EXAMPLES/dummy-token-transfer/tsconfig.json

Comment thread spl-tokens/app/README.md Outdated
@vercel

vercel Bot commented Jul 3, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
counter-session-keys Ready Ready Preview, Comment Jul 6, 2026 10:32am
er-rolldice Ready Ready Preview, Comment Jul 6, 2026 10:32am
magicblock-counter-example Ready Ready Preview, Comment Jul 6, 2026 10:32am
magicblock-engine-examples Ready Ready Preview, Comment Jul 6, 2026 10:32am
magicblock-rewards-dashboard Ready Ready Preview, Comment Jul 6, 2026 10:32am
rps-example Ready Ready Preview, Comment Jul 6, 2026 10:32am
spl-tokens Ready Ready Preview, Comment Jul 6, 2026 10:32am

Request Review

…ve-dummy-token-transfer

# Conflicts:
#	scripts/projects.sh

@jonasXchen jonasXchen left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I recall that wanted to keep the dummy token transfer since some use cases may use non-SPL to keep track of assets.

Problem: People should by default use ephemeral-spl-token.
Solution: Should we perhaps rename this to "isolated-asset-tokenization" so it goes a bit further?

@dhruvja

dhruvja commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

I recall that wanted to keep the dummy token transfer since some use cases may use non-SPL to keep track of assets.

Problem: People should by default use ephemeral-spl-token. Solution: Should we perhaps rename this to "isolated-asset-tokenization" so it goes a bit further?

so i want people to use the ephemeral-spl-token so that we can have composability between the programs like they can use the liquidity from other protocols and so on. In what scenarios would they want to have their own tokenization?

@dhruvja

dhruvja commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@jonasXchen and i decided to go forward since it can be confusing to have multiple examples for token transfers

@dhruvja dhruvja merged commit b6de512 into main Jul 7, 2026
28 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.

2 participants