@aioha/tx-digest 1.0.0 → 1.0.2
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/helpers/ByteBuffer.js +379 -2540
- package/helpers/serializer.js +8 -8
- package/package.json +5 -5
package/helpers/serializer.js
CHANGED
|
@@ -9,17 +9,17 @@ const StringSerializer = (buffer, data) => {
|
|
|
9
9
|
buffer.writeVString(data)
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
const Int8Serializer = (buffer, data) => {
|
|
13
|
-
|
|
14
|
-
}
|
|
12
|
+
// const Int8Serializer = (buffer, data) => {
|
|
13
|
+
// buffer.writeInt8(data)
|
|
14
|
+
// }
|
|
15
15
|
|
|
16
16
|
const Int16Serializer = (buffer, data) => {
|
|
17
17
|
buffer.writeInt16(data)
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
const Int32Serializer = (buffer, data) => {
|
|
21
|
-
|
|
22
|
-
}
|
|
20
|
+
// const Int32Serializer = (buffer, data) => {
|
|
21
|
+
// buffer.writeInt32(data)
|
|
22
|
+
// }
|
|
23
23
|
|
|
24
24
|
const Int64Serializer = (buffer, data) => {
|
|
25
25
|
buffer.writeInt64(data)
|
|
@@ -614,9 +614,9 @@ export const Serializer = {
|
|
|
614
614
|
Date: DateSerializer,
|
|
615
615
|
FlatMap: FlatMapSerializer,
|
|
616
616
|
Int16: Int16Serializer,
|
|
617
|
-
Int32: Int32Serializer,
|
|
617
|
+
// Int32: Int32Serializer,
|
|
618
618
|
Int64: Int64Serializer,
|
|
619
|
-
Int8: Int8Serializer,
|
|
619
|
+
// Int8: Int8Serializer,
|
|
620
620
|
Memo: EncryptedMemoSerializer,
|
|
621
621
|
Object: ObjectSerializer,
|
|
622
622
|
Operation: OperationSerializer,
|
package/package.json
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aioha/tx-digest",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Hive transaction serializer and digest",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
|
-
},
|
|
11
8
|
"keywords": [],
|
|
12
9
|
"author": "techcoderx",
|
|
13
10
|
"license": "MIT",
|
|
@@ -19,5 +16,8 @@
|
|
|
19
16
|
},
|
|
20
17
|
"dependencies": {
|
|
21
18
|
"bs58": "^6.0.0"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
22
22
|
}
|
|
23
|
-
}
|
|
23
|
+
}
|