Skip to content

Commit

Permalink
Update docs/MESSAGE_TYPES.md
Browse files Browse the repository at this point in the history
Co-authored-by: Tomasz Kurcz <uint@lavabit.com>
  • Loading branch information
webmaster128 and uint committed Sep 19, 2022
1 parent 985bac9 commit ad82881
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/MESSAGE_TYPES.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## CosmWasm message types

CosmWasm uses JSON for sending data from the host the Wasm contract and results
out of the Wasm contract. Such JSON messages are created in the client,
typically some JavaScript-based application. There the usage of JSON is feels
very natural for developers. However, JSON has signigicant limitations such as
the lack of a native binary type and inconsistent support for integers > 53 bit.
For this reason, the CosmWasm standard limrary `cosmwasm-std` shipts types that
ensure good user experience in JSON. The following table shows both stadard Rust
types as well as cosmwasm_std types and how they are encoded in JSON.
CosmWasm uses JSON for sending data from the host to the Wasm contract and
results out of the Wasm contract. Such JSON messages are created in the client,
typically some JavaScript-based application. There the usage of JSON feels very
natural for developers. However, JSON has significant limitations such as the
lack of a native binary type and inconsistent support for integers > 53 bit. For
this reason, the CosmWasm standard library `cosmwasm-std` ships types that
ensure good user experience in JSON. The following table shows both standard
Rust types as well as `cosmwasm_std` types and how they are encoded in JSON.

| Rust type | JSON type[^1] | Example | Note |
| ------------------- | -------------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------- |
Expand Down

0 comments on commit ad82881

Please # to comment.