ripple-binary-codec 2.3.0-batch.0 → 2.3.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/dist/binary.d.ts +1 -16
- package/dist/binary.js +1 -28
- package/dist/binary.js.map +1 -1
- package/dist/enums/definitions.json +20 -85
- package/dist/enums/src/enums/definitions.json +20 -90
- package/dist/hash-prefixes.js +0 -2
- package/dist/hash-prefixes.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -9
- package/dist/index.js.map +1 -1
- package/dist/src/binary.d.ts +1 -16
- package/dist/src/binary.js +1 -28
- package/dist/src/binary.js.map +1 -1
- package/dist/src/enums/definitions.json +20 -85
- package/dist/src/hash-prefixes.js +0 -2
- package/dist/src/hash-prefixes.js.map +1 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.js +2 -9
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/binary.ts +0 -40
- package/src/enums/definitions.json +20 -90
- package/src/hash-prefixes.ts +0 -2
- package/src/index.ts +1 -10
- package/src/.DS_Store +0 -0
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { quality, binary, HashPrefix } from './coretypes'
|
|
2
2
|
import { decodeLedgerData } from './ledger-hashes'
|
|
3
|
-
import { ClaimObject
|
|
3
|
+
import { ClaimObject } from './binary'
|
|
4
4
|
import { JsonObject } from './types/serialized-type'
|
|
5
5
|
import {
|
|
6
6
|
XrplDefinitionsBase,
|
|
@@ -15,7 +15,6 @@ const {
|
|
|
15
15
|
signingData,
|
|
16
16
|
signingClaimData,
|
|
17
17
|
multiSigningData,
|
|
18
|
-
signingBatchData,
|
|
19
18
|
binaryToJSON,
|
|
20
19
|
serializeObject,
|
|
21
20
|
} = binary
|
|
@@ -111,13 +110,6 @@ function encodeForMultisigning(
|
|
|
111
110
|
)
|
|
112
111
|
}
|
|
113
112
|
|
|
114
|
-
function encodeForSigningBatch(json: object): string {
|
|
115
|
-
if (typeof json !== 'object') {
|
|
116
|
-
throw new Error()
|
|
117
|
-
}
|
|
118
|
-
return bytesToHex(signingBatchData(json as BatchObject))
|
|
119
|
-
}
|
|
120
|
-
|
|
121
113
|
/**
|
|
122
114
|
* Encode a quality value
|
|
123
115
|
*
|
|
@@ -150,7 +142,6 @@ export {
|
|
|
150
142
|
encodeForSigning,
|
|
151
143
|
encodeForSigningClaim,
|
|
152
144
|
encodeForMultisigning,
|
|
153
|
-
encodeForSigningBatch,
|
|
154
145
|
encodeQuality,
|
|
155
146
|
decodeQuality,
|
|
156
147
|
decodeLedgerData,
|
package/src/.DS_Store
DELETED
|
Binary file
|