Skip to content

fix: rename STRK20 sub-accounts to shadow accounts (spec PR 406) - #76

Merged
PhilippeR26 merged 1 commit into
starknet-io:betafrom
PhilippeR26:rpc-0.10.4-rc.1-beta
Aug 13, 2026
Merged

fix: rename STRK20 sub-accounts to shadow accounts (spec PR 406)#76
PhilippeR26 merged 1 commit into
starknet-io:betafrom
PhilippeR26:rpc-0.10.4-rc.1-beta

Conversation

@PhilippeR26

Copy link
Copy Markdown
Collaborator

Summary

Applies starknet-specs PR #406
(merged 2026-08-11): the STRK20 sub-account concept is renamed to shadow account
across the wallet API. Terminology only — no semantic or structural change.

Target version: 0.10.4-beta.2.

Breaking (wire-visible)

Before After
wallet_strk20SubaccountCommitment wallet_strk20ShadowAccountCommitment
STRK20_SUBACCOUNT_INVOKE_ACTION STRK20_SHADOW_ACCOUNT_INVOKE_ACTION
"subaccount_invoke" (action discriminator) "shadow_account_invoke"

STRK20_SUBACCOUNT_INVOKE_ACTION is re-exported both flat and under WALLET_API, so
consumers importing it need to update. No deprecated alias is provided: STRK20 only
landed in 0.10.3, the 0.10.4 line is still in beta, and an alias would not have
covered the two other changes — the RPC method key and the "subaccount_invoke"
discriminator are wire values, not types.

Changes

src/wallet-api/components.ts

  • STRK20_SUBACCOUNT_INVOKE_ACTIONSTRK20_SHADOW_ACCOUNT_INVOKE_ACTION, with its
    type discriminator 'subaccount_invoke''shadow_account_invoke'.
  • STRK20_ACTION union member updated accordingly.
  • Doc comments of STRK20_DAPP_NAME, STRK20_COLLECT_POLICY and the invoke action
    realigned word-for-word on the new spec wording (including "shadow account anonymizer").

src/wallet-api/methods.ts

  • wallet_strk20SubaccountCommitmentwallet_strk20ShadowAccountCommitment. Params,
    result and error set are unchanged.
  • Method doc realigned on the new spec wording.

Validation

  • npm run ts:check — passes.
  • ./node_modules/.bin/biome lint --write . — no fixes applied.
  • grep -riE "sub[_ -]?account" src/ — no occurrence left.

@PhilippeR26
PhilippeR26 merged commit 0d449bc into starknet-io:beta Aug 13, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 0.10.4-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant