feat(sdk-coin-tao): build claimRootWithHotkey extrinsic from intent - #9448
Merged
Conversation
Contributor
ralph-bitgo
Bot
force-pushed
the
ashutosh/SI-1171-claim-root-with-hotkey
branch
from
August 7, 2026 07:23
ddbdb42 to
7f0f587
Compare
ralph-bitgo
Bot
force-pushed
the
ashutosh/SI-1171-claim-root-with-hotkey
branch
from
August 7, 2026 08:34
cf99084 to
c4e893b
Compare
bitgo-ai-agent-dev
Bot
force-pushed
the
ashutosh/SI-1171-claim-root-with-hotkey
branch
from
August 7, 2026 08:34
c4e893b to
8b843b8
Compare
ashutoshkumar-6
marked this pull request as ready for review
August 7, 2026 09:32
Contributor
ReviewRecommend: request changes — one real correctness/security issue in Critical
Suggested fix: drop the override — it should inherit the same safe fallthrough DOT and the other TAO builders already rely on. Important
Minor
|
ashutoshkumar-6
force-pushed
the
ashutosh/SI-1171-claim-root-with-hotkey
branch
2 times, most recently
from
August 11, 2026 07:37
bd8ef78 to
5ec8c2b
Compare
Add SubtensorModule.claimRootWithHotkey(hotkey) Substrate extrinsic support across abstract-substrate and sdk-coin-tao. TICKET: SI-1171 Co-authored-by: Cursor <cursoragent@cursor.com>
ashutoshkumar-6
force-pushed
the
ashutosh/SI-1171-claim-root-with-hotkey
branch
from
August 11, 2026 07:42
5ec8c2b to
1b6fc41
Compare
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.
What
ClaimRootWithHotkeytoMethodNamesconst, addClaimRootWithHotkeyArgsinterface ({ hotkey: string }) toiface.tsTxMethod.args union, addClaimRootWithHotkeyTransactionSchemajoi schemaClaimRootBuilder— buildsSubtensorModule.claimRootWithHotkey(hotkey)extrinsic viadefineMethod; implementshotkey()setter,buildTransaction(),fromImplementation(),validateTransaction(),validateDecodedTransaction()ClaimRootTransaction— overridestoJson()(addshotkeyfield),loadInputsAndOutputs()(populates_outputswith hotkey address, resets arrays before repopulating),explainTransaction()ClaimRootTxDatainterface iniface.tsTransactionBuilderFactory— registerClaimRootWithHotkeydispatch ingetBuilder()and exposegetClaimRootBuilder()Tao.verifyTransactionoverride — short-circuits forStakingClaimtype (case-insensitive) before the parent tries to access_to/_amountwhich don't exist onClaimRootBuildersrc/resources/testnetV2.ts— Bittensor testnet metadata (specVersion 443) that includesclaim_root_with_hotkey; existingtestnet.ts(specVersion 224) unchangedTaoClaimRootIntent { hotkey, netuid: 0 }end-to-end intao.tsfrom(), factory dispatch, outputs content,loadInputsAndOutputsnull-safety,explainTransaction, validation, error paths,verifyTransactionwith both PascalCase and lowercase typeWhy
sdk-coin-taoto acceptTaoClaimRootIntent { hotkey, netuid: 0 }and produce a signed, broadcastableSubtensorModule.claimRootWithHotkeyextrinsic. This is a P0 blocker for the TAO Root Reborn claim feature and directly blocks SI-1172 ([WP] RouteCLAIM_REWARDSrequest type for tao/ttao)Test plan
mocha— 93 passing, 2 pending, 1 pre-existing failure (requiresBITGOJS_TEST_PASSWORD)sdk-coin-taoandabstract-substratecompile cleanloadInputsAndOutputsresets_outputs/_inputsbefore push — idempotent on repeatedbuild()callsverifyTransactionuses case-insensitive comparison — handles WalletPlatform lowercase'stakingclaim'intentTypeTicket: SI-1171