Draft
Conversation
LandynDev
added a commit
to LandynDev/subtensor
that referenced
this pull request
Apr 2, 2026
…tensions Replace the single ProxyCall dispatcher (FunctionId 16) with 12 typed Proxy* chain extensions (FunctionIds 34-45) that verify proxy authorization via pallet_proxy::Proxies storage and dispatch as the delegated account. Each handler reads an on_behalf_of AccountId, verifies the contract is an authorized zero-delay proxy (with is_superset support for ProxyType::Any), and dispatches the pallet call with RawOrigin::Signed(on_behalf_of). ProxyTransferStakeV1 requires ProxyType::Transfer; all others require ProxyType::Staking. IDs 16-19 reserved for recycle/burn, 20-33 for Junius's Caller* variants (PR opentensor#2550).
LandynDev
added a commit
to LandynDev/subtensor
that referenced
this pull request
Apr 2, 2026
…st coverage - Renumber Proxy* FunctionIds to 16-27 (no gaps after existing IDs) - Move verify_proxy to module-level free function (matches convert_origin pattern from PR opentensor#2550) - Restructure proxy tests into nested proxy_dispatch_tests module with shared setup helpers and per-operation success tests - Coverage: 5 proxy verification tests (staking, any/superset, no proxy, wrong type, delayed) + 8 per-operation tests covering all input shapes
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.
Description
Add the origin in the Ink, use can choose the contract add as signed account or real origin as account
Related Issue(s)
Type of Change
Breaking Change
If this PR introduces a breaking change, please provide a detailed description of the impact and the migration path for existing applications.
Checklist
./scripts/fix_rust.shto ensure my code is formatted and linted correctlyScreenshots (if applicable)
Please include any relevant screenshots or GIFs that demonstrate the changes made.
Additional Notes
Please provide any additional information or context that may be helpful for reviewers.