Skip to content

Clean up query output. #49

Closed
Closed
@ethanfrey

Description

@ethanfrey

Summary

The mapping from cosmwasm data to the query output is not so clean. We often use string to represent data we know is either (1) binary or (2) json. Let us use []byte/tmbytes.HexBytes for the binary data and json.RawMessage for the json.

Problem Definition

wasmcli query wasm output is often hard to read

Proposal

  1. ContractInfo should have json.RawMessage ([]byte alias) for InitMsg
  2. types.Model used by QueryMethodContractStateAll and QueryMethodContractStateRaw should not be {string, string}, but {HexBytes, json.RawMessage}

For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions