-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add queries to wasmd section #141
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice expansion!
For someone coming here without a good understanding of the raw/smart distinction, I think it'd be good to explain it.
I'd mention where appropriate that "raw" means querying the underlying KV storage directly, while "smart" means loading the smart contract and executing one of its "query" endpoints to get the structured data. Or something like that?
If it's there somewhere and I missed it, feel free to call me out on that 😁
@@ -514,9 +514,9 @@ sleep 6 | |||
wasmd q tx $(echo "$RESP" | jq -r '.txhash') -o json | jq | |||
``` | |||
|
|||
### Query contract state | |||
### Query Contract State All |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Query Contract State All | |
### Query Contract State: All |
Just feels a little easier to read when separated like that!
@@ -557,6 +558,62 @@ The output will be similar to the following: | |||
} | |||
``` | |||
|
|||
### Query Contract State Raw |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Query Contract State Raw | |
### Query Contract State: Raw |
} | ||
``` | ||
|
||
### Query Contract State Smart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Query Contract State Smart | |
### Query Contract State: Smart |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, looks good from my side now.
Resolves #140