Skip to content

Stop projects sending credits through the Rotur bridge - #112

Merged
Mistium merged 1 commit into
developfrom
remove-me-transfer
Oct 2, 2026
Merged

Mistium merged 1 commit into
developfrom
remove-me-transfer

Conversation

@Mistium

@Mistium Mistium commented Oct 2, 2026

Copy link
Copy Markdown
Member

Removes me.transfer from the Rotur methods a project may call (src/lib/rotur/project-methods.js). With it gone, credits:transfer is no longer a project scope either: the scopes are worked out from the methods, so a project asking for it gets "Projects cannot ask for that Rotur permission". MistWarp's own payments move to Rotur payment requests in #108, which also removes the last credits:transfer paths (sendCommercePayment, payUser and the packaged game shop).

What this changes for projects:

  • The built-in Rotur extension's send [AMOUNT] credits to [USER] block now fails with "Projects cannot call Rotur method". The block itself lives in MistWarp/scratch-vm (src/extensions/rotur/index.js), and removing it there is a separate change. Until then the allowlist test skips it, with a comment saying why.
  • The other actions that spend credits (gifts, keys, items, cosmetics, group tips) still ask for confirmation on every call.

The consent modal's "Confirm payment" layout is no longer used by any project method. I left it in place, since it's generic.

Testing

  • npx jest test/unit/rotur-* test/unit/community-project-rotur-bridge.test.jsx test/unit/packager-account.test.js: 101 tests pass. There's a new test that me.transfer is refused. The tests that used me.transfer as the example of a confirmed action now use gifts.create.
  • ESLint is clean.

No screenshots: nothing visible changes.

me.transfer is no longer a method projects may call, so credits:transfer
is no longer a scope a project can ask for. Paying in MistWarp goes
through Rotur payment requests instead. The tests that used me.transfer
as the example confirmed action use gifts.create.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Deploying scratch-gui with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2b69d1a
Status: ✅  Deploy successful!
Preview URL: https://0204a34b.scratch-gui.pages.dev
Branch Preview URL: https://remove-me-transfer.scratch-gui.pages.dev

View logs

@Mistium
Mistium merged commit 03d6148 into develop Oct 2, 2026
2 checks passed
@Mistium
Mistium deleted the remove-me-transfer branch October 15, 2026 21:45
mc20000-01 pushed a commit to mc20000-01/scratch-gui that referenced this pull request Nov 7, 2026
Stop projects sending credits through the Rotur bridge
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.

1 participant