Repository navigation
Remove the wallet, and send people to Rotur for their credits - #114
Merged
Merged
Conversation
Deploying scratch-gui with
|
| Latest commit: |
e4521f4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://717887e6.scratch-gui.pages.dev |
| Branch Preview URL: | https://remove-wallet.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.
MistWarp no longer shows your Rotur balance, claims daily credits or reads your transactions, so it no longer asks for credits:view or credits:daily, and projects can't either. The wallet page becomes Purchases, with what you've bought from MistWarp's own records and a link to rotur.dev/me for everything about your credits; /wallet goes there. My Stuff's wallet card becomes Earnings, with the credits earned that mistwarp-api records. The buy confirmation no longer shows a balance. Listing bounties no longer sends a token, since anyone can list them.
Every commerce request names the permission it needs, so the credits:view default is never used.
mc20000-01
pushed a commit
to mc20000-01/scratch-gui
that referenced
this pull request
Nov 7, 2026
Remove the wallet, and send people to Rotur for their credits
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 decided MistWarp shouldn't have its own wallet. Your balance, daily credits and transactions live on Rotur, so MistWarp now links to https://rotur.dev/me for them, and no longer asks for
credits:vieworcredits:daily.What changes
The wallet page becomes Purchases (
/purchases). It lists what you've bought, from mistwarp-api's own records (/me/purchases), plus a card that opens rotur.dev/me./walletredirects there, and the account menu's Wallet is now Purchases.What's removed:
/commerce/me/earnings, which needscredits:view);The rotur.dev link replaces all of these.
My Stuff:
stats.totalRevenue, which needs nocredits:*).The buy confirmation no longer looks up or shows your balance, and no longer sends you to the wallet. Running out of credits now says to claim daily credits "on Rotur". The profile donate form links to Rotur too.
Scopes:
credits:viewandcredits:dailyare gone fromSIGN_IN_SCOPES.me.getonly needsaccount:view. (me.claimTimeandme.transactionswere removed in Stop projects moving credits through the Rotur bridge #115.)credits:viewis now told it can't.Bounty lists no longer send a token. Rotur's
GET /commerce/bountiesis public, and withcredits:viewgone the token branch would have asked for it.Dead code:
getBalance,getAccountSummary,donationTransactions,claimDailyandgetCommerceEarnings, and their tests;Screenshots
Firefox, the community site with mistwarp-api and api.rotur.dev mocked.
Before,

/wallet:After,

/walletnow goes to/purchases:Before, My Stuff:

After, My Stuff:

Stacked on #115
This branch is rebased onto #115, so until #115 merges, the diff here also shows its three commits. Once #115 is in, only this PR's two commits remain, and it can merge with no further rebase.
It doesn't depend on #108.
/me/purchasesandstats.totalRevenueare already on mistwarp-api's main, and the buy flow on develop asks for its own scope when someone pays, so it doesn't needcredits:view.Overlap with #108
#108 changes the same buy confirmation in
Project.jsx, and removes the profile donate form andsendCommercePaymentincredits.js. Whichever merges second needs a small conflict resolution: keep #108's payment window and this PR's removal of the balance..confirmBalanceinProject.module.cssstays, because #108 uses it.Testing
community-purchases.test.jsxis new. It checks that:pnpm run test:unit:ci: 1946 tests in 325 suites), andpnpm lintpasses.deps:check,i18n:community:check,i18n:editor:checkandcheck:community-csspass.