Skip to content

Stop projects moving credits through the Rotur bridge - #115

Merged
Mistium merged 3 commits into
developfrom
remove-project-spending
Oct 2, 2026
Merged

Mistium merged 3 commits into
developfrom
remove-project-spending

Conversation

@Mistium

@Mistium Mistium commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Sophie's decision: projects and MistWarp itself don't move credits. MistWarp's payments go through Rotur payment requests (#108). After me.transfer (#112), this removes the rest of the project methods that moved credits:

  • gifts.create (create a credit gift)
  • keys.buy
  • groups.sendTip
  • groups.purchaseProduct
  • items.buy (buying from Rotur's item shop)
  • cosmetics.purchase (buying from Rotur's cosmetic shop)

credits:manage, gifts:create, items:buy and cosmetics:buy are no longer project scopes, so a project asking for them is told it can't.

Nothing sends a payment confirmation any more, so the confirmation.type === 'payment' layout goes from both consent modals (RoturConsentModal.jsx and consent-modal.jsx), along with its three strings in every locale. The unused amount() helper goes too.

What stays: claiming gifts, giving an item away, and cancelling or deleting keys and posts. They still ask for confirmation on every call.

Tests

  • The tests that used gifts.create and items.buy as examples of confirmed actions now use gifts.claim and items.transfer.
  • The six removed methods are added to the list of methods that must be refused.
  • npx jest test/unit/rotur-* test/unit/community-project-rotur-bridge.test.jsx test/unit/packager-account.test.js test/unit/community-rotur-consent-modal.test.jsx: 113 tests pass.
  • Full suite: pnpm run test:unit:ci passes, 1950 tests in 326 suites. pnpm lint, deps:check, i18n:community:check and i18n:editor:check pass.

Picks up MistWarp/scratch-vm#24

scratch-vm is pinned to c775381a, the merge of scratch-vm#24. That release hides the blocks that read or spent credits and makes them do nothing, so:

No screenshots: nothing visible changes, other than a payment confirmation that no project can trigger any more.

@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: 57f4d06
Status: ✅  Deploy successful!
Preview URL: https://a1e7de28.scratch-gui.pages.dev
Branch Preview URL: https://remove-project-spending.scratch-gui.pages.dev

View logs

gifts.create, keys.buy, groups.sendTip and groups.purchaseProduct are no
longer methods projects may call, so credits:manage and gifts:create are
no longer project scopes. MistWarp's own payments go through Rotur
payment requests. With me.transfer already gone, nothing sends a payment
confirmation, so the consent modals' payment layout goes too, with its
strings.
Buying from Rotur's item and cosmetic shops spends credits, which
projects no longer do. items.buy and cosmetics.purchase are no longer
project methods, so items:buy and cosmetics:buy are no longer project
scopes.
scratch-vm now hides the blocks that read or spent credits, and they
call nothing. The test that walks every block no longer skips their
methods, and me.claimTime and me.transactions, which only the daily
claim and transaction blocks used, are no longer project methods.
@Mistium
Mistium force-pushed the remove-project-spending branch from 12e11cb to 57f4d06 Compare October 2, 2026 18:30
@Mistium
Mistium merged commit 1dfe281 into develop Oct 2, 2026
2 checks passed
@Mistium
Mistium deleted the remove-project-spending 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 moving 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