Skip to content

Commit

Permalink
Add Int64/Int128/Int256/Int512 to MESSAGE_TYPES
Browse files Browse the repository at this point in the history
  • Loading branch information
webmaster128 committed Aug 30, 2023
1 parent 22a923a commit f9300b4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/MESSAGE_TYPES.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ Rust types as well as `cosmwasm_std` types and how they are encoded in JSON.
| Vec\<T\> | array of JSON type of `T` | `["one", "two", "three"]` (Vec\<String\>), `[true, false]` (Vec\<bool\>) |
| Vec\<u8\> | array of numbers from 0 to 255 | `[187, 61, 11, 250]` | ⚠️ Discouraged as this encoding is not as compact as it can be. See `Binary`. |
| struct MyType { … } | object | `{"foo":12}` | |
| [Uint64] | string containing number | `"1234321"` | Used to support full uint64 range in all implementations |
| [Uint128] | string containing number | `"1234321"` | |
| [Uint256] | string containing number | `"1234321"` | |
| [Uint512] | string containing number | `"1234321"` | |
| [Uint64]/[Int64] | string containing number | `"1234321"`, `"-1234321"` | Used to support full uint64/int64 range in all implementations |
| [Uint128]/[Int128] | string containing number | `"1234321"`, `"-1234321"` | |
| [Uint256]/[Int256] | string containing number | `"1234321"`, `"-1234321"` | |
| [Uint512]/[Int512] | string containing number | `"1234321"`, `"-1234321"` | |
| [Decimal] | string containing decimal number | `"55.6584"` | |
| [Decimal256] | string containing decimal number | `"55.6584"` | |
| [Binary] | string containing base64 data | `"MTIzCg=="` | |
Expand All @@ -36,6 +36,10 @@ Rust types as well as `cosmwasm_std` types and how they are encoded in JSON.
[uint128]: https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Uint128.html
[uint256]: https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Uint256.html
[uint512]: https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Uint512.html
[int64]: https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Int64.html
[int128]: https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Int128.html
[int256]: https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Int256.html
[int512]: https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Int512.html
[decimal]: https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Decimal.html
[decimal256]:
https://docs.rs/cosmwasm-std/1.3.3/cosmwasm_std/struct.Decimal256.html
Expand Down

0 comments on commit f9300b4

Please sign in to comment.