Skip to content

Remove the Rotur extension's money blocks, keeping them hidden for old projects - #24

Merged
Mistium merged 3 commits into
developfrom
rotur-remove-money-blocks
Oct 2, 2026
Merged

Mistium merged 3 commits into
developfrom
rotur-remove-money-blocks

Conversation

@Mistium

@Mistium Mistium commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

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:view and credits:daily are gone (MistWarp/scratch-gui#114, TurboWarp#112). This removes the built-in Rotur blocks that read or spent credits:

  • Rotur Economy:
    • my credits (roturEconomy_balance)
    • send [AMOUNT] credits to [USER] with message [NOTE] (roturEconomy_pay)
    • seconds until daily claim (roturEconomy_dailyWait)
    • my transaction history (roturEconomy_transactions)
    • create a gift of [AMOUNT] credits (roturEconomy_createGift)
  • Rotur Keys: buy key [ID] (roturKeys_buyKey)
  • Rotur Groups:
    • tip [AMOUNT] credits to group [TAG] (roturGroups_tipGroup)
    • buy product [PRODUCT] in group [TAG] (roturGroups_buyGroupProduct)
  • Rotur Shop:
    • buy item [NAME] (roturShop_buyItem)
    • buy cosmetic [ID] (roturShop_buyCosmetic)

Old projects still load

The blocks follow the repo's existing pattern for retired blocks (hideFromPalette: true, as in mistwarp_games). They stay in getInfo(), 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 answer 0, 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 add credits:*, items:buy or cosmetics:buy to the scopes a project asks for.

Also

  • The does my login allow and ask to allow blocks had credits:transfer as their default text. It's now posts:create, and account:view, posts:create.
  • my account [FIELD] defaulted to sys.currency. It now defaults to username.

Testing

  • test/unit/extension_rotur_sdk_host.js passes (6 tests). The login and scope tests used my credits as their example block, so they now read username through my account [FIELD] with account:view. A new test checks that all ten blocks are hidden, answer 0 or '', and never sign in.
  • ESLint is clean on 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.

…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.
@Mistium
Mistium merged commit c775381 into develop Oct 2, 2026
2 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.

1 participant