Repository navigation
Stop projects moving credits through the Rotur bridge - #115
Merged
Merged
Conversation
Deploying scratch-gui with
|
| 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 |
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
force-pushed
the
remove-project-spending
branch
from
October 2, 2026 18:30
12e11cb to
57f4d06
Compare
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.buygroups.sendTipgroups.purchaseProductitems.buy(buying from Rotur's item shop)cosmetics.purchase(buying from Rotur's cosmetic shop)credits:manage,gifts:create,items:buyandcosmetics:buyare 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.jsxandconsent-modal.jsx), along with its three strings in every locale. The unusedamount()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
gifts.createanditems.buyas examples of confirmed actions now usegifts.claimanditems.transfer.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.pnpm run test:unit:cipasses, 1950 tests in 326 suites.pnpm lint,deps:check,i18n:community:checkandi18n:editor:checkpass.Picks up MistWarp/scratch-vm#24
scratch-vmis pinned toc775381a, the merge of scratch-vm#24. That release hides the blocks that read or spent credits and makes them do nothing, so:me.transferskip from Stop projects sending credits through the Rotur bridge #112.me.claimTimeandme.transactionsare no longer project methods. Only the daily claim and transaction blocks called them, and those now call nothing. Remove the wallet, and send people to Rotur for their credits #114 removes them too, so I'll resolve that when I rebase it.No screenshots: nothing visible changes, other than a payment confirmation that no project can trigger any more.