Skip to content

feat(cast): wrap cast wallet --json outputs in JsonEnvelope#14922

Draft
mablr wants to merge 4 commits into
mablr/cast-json-envelope-parityfrom
mablr/cast_wallet_jsonenvelope
Draft

feat(cast): wrap cast wallet --json outputs in JsonEnvelope#14922
mablr wants to merge 4 commits into
mablr/cast-json-envelope-parityfrom
mablr/cast_wallet_jsonenvelope

Conversation

@mablr
Copy link
Copy Markdown
Collaborator

@mablr mablr commented May 26, 2026

Motivation

Stacked on #14918

Last stage to close OSS-239.

Completes the --json envelope coverage for cast wallet:

  • new / new-mnemonic / deriveprint_json_success (array payloads)
  • address / public-key / private-key (terse) / sign-auth (terse) / sign (terse) → print_scalar
  • sign (verbose) / sign-auth (verbose) / private-key (verbose) → print_json_object
  • verify{address, result: true} envelope on success
  • import / remove / change-password{account, address/removed} envelope
  • decrypt-keystore{account, private_key} envelope
  • vanity{address, private_key, contract_address} envelope
  • wallet list → array of {address, source} objects

Completes the --json envelope coverage for `cast wallet`:
- `new` / `new-mnemonic` / `derive` → `print_json_success` (array
  payloads)
- `address` / `public-key` / `private-key` (terse) / `sign-auth` (terse)
  / `sign` (terse) → `print_scalar`
- `sign` (verbose) / `sign-auth` (verbose) / `private-key` (verbose) →
  `print_json_object`
- `verify` → `{address, result: true}` envelope on success
- `import` / `remove` / `change-password` → `{account, address/removed}`
  envelope
- `decrypt-keystore` → `{account, private_key}` envelope
- `vanity` → `{address, private_key, contract_address}` envelope
- `wallet list` → array of `{address, source}` objects
@mablr mablr force-pushed the mablr/cast-json-envelope-parity branch from 959137a to 60cfa08 Compare May 28, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant