@agoric/cosmos 0.34.2-dev-9f4b1ce.0 → 0.34.2-dev-921f991.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/git-revision.txt +1 -1
- package/package.json +2 -2
- package/types/codec.go +5 -4
package/git-revision.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
921f991
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/cosmos",
|
|
3
|
-
"version": "0.34.2-dev-
|
|
3
|
+
"version": "0.34.2-dev-921f991.0+921f991",
|
|
4
4
|
"description": "Connect JS to the Cosmos blockchain SDK",
|
|
5
5
|
"parsers": {
|
|
6
6
|
"js": "mjs"
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"typeCoverage": {
|
|
39
39
|
"atLeast": 0
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "921f991c89a55e26d11bb139b4b3187277567292"
|
|
42
42
|
}
|
package/types/codec.go
CHANGED
|
@@ -10,10 +10,11 @@ var (
|
|
|
10
10
|
// data structures that wouldn't otherwise survive round-tripping via a
|
|
11
11
|
// regular "encoding/json" Marshal->JSON.parse.
|
|
12
12
|
//
|
|
13
|
-
// The naïve json.Marshal output for an int64 (64-bit precision) is a
|
|
14
|
-
// number
|
|
15
|
-
//
|
|
16
|
-
//
|
|
13
|
+
// The naïve json.Marshal output for an int64 (64-bit precision) is a JSON
|
|
14
|
+
// number, which is subject to rounding errors when parsed by JavaScript
|
|
15
|
+
// (whose numbers are IEEE 754 binary64 values with only 53-bit precision).
|
|
16
|
+
// The codec.ProtoCodec uses a custom JSON marshaller that converts each int64
|
|
17
|
+
// to and from a string with no loss of precision.
|
|
17
18
|
//
|
|
18
19
|
// The current package's IBCPacket was one such affected data structure, which
|
|
19
20
|
// now implements Marshaler and Unmarshaler interfaces for "encoding/json" to
|