Subkey commands: act on EVM vault operator sub-accounts#30
Merged
Conversation
Adds --vault-operator-address (requires --l1-key) to register-subkey, list-subkeys, get-subkey, revoke-subkey and update-subkey-allowed-cidrs: the v2 SIWE auth targets the operator address while the message is still signed by the owner's eth key, so subkey operations act on the operator's subkeys — the way API traders trade an EVM-owned vault (operator_signer_type=eip191). evm_onboard_and_auth(target_address=...) skips GET /onboarding and the onboarding POST for operator targets (operators are onboarded by vault creation, never POST /v2/onboarding) and authenticates directly.
CI's rich/typer versions render BadParameter inside an ANSI panel with box-drawing and wrapping; normalize the output before asserting so the test passes under both plain and rich rendering.
mattia-paradex
approved these changes
Jul 14, 2026
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.
Summary
--vault-operator-address(requires--l1-key) toregister-subkey,list-subkeys,get-subkey,revoke-subkey, andupdate-subkey-allowed-cidrs: the v2 SIWE auth targets the operator address while the message is signed by the owner's eth key, so subkey operations act on the operator's subkeys — how API traders trade an EVM-owned vault (operator_signer_type=eip191). The operator address is the vault'soperator_account.evm_onboard_and_auth(target_address=…)skipsGET /onboardingand the onboarding POST for operator targets (operators are created by vault creation, neverPOST /v2/onboarding) and authenticates directly.Testing
PARADEX-STARKNET-ACCOUNT; owner address in the SIWE message), command plumb-through test, and--vault-operator-addresswithout--l1-keyrejection.Usage