Repository navigation
Remove the Rotur extension's money blocks, keeping them hidden for old projects - #24
Merged
Merged
Conversation
…d projects my credits, send credits, seconds until daily claim and my transaction history are hidden from the palette. Projects that already use them still load and run: the blocks answer 0 or an empty string without reaching Rotur or asking for credits:view or credits:transfer. MistWarp no longer reads or sends anyone's credits.
create a gift, buy key, tip group and buy group product move credits too, so they're hidden no-ops like the others: projects can't move credits through MistWarp. The sign-in tests read the username instead of the balance.
Buying from Rotur's shops spends credits, which projects no longer do through MistWarp. Like the other money blocks, they stay hidden so old projects load, and do nothing.
This was referenced Oct 2, 2026
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.
Projects can no longer read or move credits through MistWarp. MistWarp's own payments go through Rotur payment requests (MistWarp/scratch-gui#108), and the wallet,
credits:viewandcredits:dailyare gone (MistWarp/scratch-gui#114, TurboWarp#112). This removes the built-in Rotur blocks that read or spent credits:roturEconomy_balance)roturEconomy_pay)roturEconomy_dailyWait)roturEconomy_transactions)roturEconomy_createGift)roturKeys_buyKey)roturGroups_tipGroup)roturGroups_buyGroupProduct)roturShop_buyItem)roturShop_buyCosmetic)Old projects still load
The blocks follow the repo's existing pattern for retired blocks (
hideFromPalette: true, as inmistwarp_games). They stay ingetInfo(), so projects that use them still load and show them, but they're no longer in the palette.A spec with
removed: <value>is hidden, has no method or scope, and its block answers that value straight away. my credits and seconds until daily claim answer0, and the rest answer an empty string. The value comes back before the extension looks up its Rotur host, so these blocks never reach Rotur, never sign anyone in, and never addcredits:*,items:buyorcosmetics:buyto the scopes a project asks for.Also
credits:transferas their default text. It's nowposts:create, andaccount:view, posts:create.sys.currency. It now defaults tousername.Testing
test/unit/extension_rotur_sdk_host.jspasses (6 tests). The login and scope tests used my credits as their example block, so they now readusernamethrough my account [FIELD] withaccount:view. A new test checks that all ten blocks are hidden, answer0or'', and never sign in.src/extensions/rotur.Once this is merged and scratch-gui picks it up, the skips in scratch-gui's
rotur-project-methods.test.js(from TurboWarp#112 and TurboWarp#114) can go.No screenshots: the blocks just leave the palette.