`wasmd query wasm contract-state all --DECODE` flag
- Dominant language
- Go
- Stars
- 416
- Forks
- 538
- PR merge metrics
- No merged PRs in 30d
Description
Can we have query to dump all state and decode it?
No I need to write some bash/jq/xxd/base64 script loop or smart queries:
```
wasmd query wasm contract-state all $CONTRACT $NODE --output "json" | jq -r '.models[0].key' | xxd -r -ps
wasmd query wasm contract-state all $CONTRACT $NODE --output "json" | jq -r '.models[0].value' | base64 -d
```
So in my cases I just want dump state of contract and read it in my dev/debug loop, but decoded
Is this worth to add? My be such tools exists and I miss it.
Contributor guide
Research direction
Start at the `wasmd query wasm contract-state all` command and inspect the JSON `models` key and value output shown in the issue examples. The change is done when a `--DECODE` mode can dump all contract state with decoded keys and values, while existing query output remains available; locate the command's tests and run them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, wasm
- Domain
- blockchain, cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100