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 CHANGED
@@ -87,19 +87,4 @@ declare function signingClaimData(claim: ClaimObject): Uint8Array;
87
87
  declare function multiSigningData(transaction: JsonObject, signingAccount: string | AccountID, opts?: {
88
88
  definitions: XrplDefinitionsBase;
89
89
  }): Uint8Array;
90
- /**
91
- * Interface describing fields required for a Batch signer
92
- */
93
- interface BatchObject extends JsonObject {
94
- flags: number;
95
- txIDs: string[];
96
- }
97
- /**
98
- * Serialize a signingClaim
99
- *
100
- * @param batch A Batch object to serialize
101
- * @param opts.definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
102
- * @returns the serialized object with appropriate prefix
103
- */
104
- declare function signingBatchData(batch: BatchObject): Uint8Array;
105
- export { BinaryParser, BinarySerializer, BytesList, ClaimObject, BatchObject, makeParser, serializeObject, readJSON, multiSigningData, signingData, signingClaimData, binaryToJSON, sha512Half, transactionID, signingBatchData, };
90
+ export { BinaryParser, BinarySerializer, BytesList, ClaimObject, makeParser, serializeObject, readJSON, multiSigningData, signingData, signingClaimData, binaryToJSON, sha512Half, transactionID, };
package/dist/binary.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  /* eslint-disable func-style */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.signingBatchData = exports.transactionID = exports.sha512Half = exports.binaryToJSON = exports.signingClaimData = exports.signingData = exports.multiSigningData = exports.readJSON = exports.serializeObject = exports.makeParser = exports.BytesList = exports.BinarySerializer = exports.BinaryParser = void 0;
4
+ exports.transactionID = exports.sha512Half = exports.binaryToJSON = exports.signingClaimData = exports.signingData = exports.multiSigningData = exports.readJSON = exports.serializeObject = exports.makeParser = exports.BytesList = exports.BinarySerializer = exports.BinaryParser = void 0;
5
5
  const utils_1 = require("@xrplf/isomorphic/utils");
6
6
  const types_1 = require("./types");
7
7
  const binary_parser_1 = require("./serdes/binary-parser");
@@ -125,31 +125,4 @@ function multiSigningData(transaction, signingAccount, opts = {
125
125
  });
126
126
  }
127
127
  exports.multiSigningData = multiSigningData;
128
- /**
129
- * Serialize a signingClaim
130
- *
131
- * @param batch A Batch object to serialize
132
- * @param opts.definitions Custom rippled types to use instead of the default. Used for sidechains and amendments.
133
- * @returns the serialized object with appropriate prefix
134
- */
135
- function signingBatchData(batch) {
136
- if (batch.flags == null) {
137
- throw Error("No field `flags'");
138
- }
139
- if (batch.txIDs == null) {
140
- throw Error('No field `txIDs`');
141
- }
142
- const prefix = hash_prefixes_1.HashPrefix.batch;
143
- const flags = types_1.coreTypes.UInt32.from(batch.flags).toBytes();
144
- const txIDsLength = types_1.coreTypes.UInt32.from(batch.txIDs.length).toBytes();
145
- const bytesList = new binary_serializer_1.BytesList();
146
- bytesList.put(prefix);
147
- bytesList.put(flags);
148
- bytesList.put(txIDsLength);
149
- batch.txIDs.forEach((txID) => {
150
- bytesList.put(types_1.coreTypes.Hash256.from(txID).toBytes());
151
- });
152
- return bytesList.toBytes();
153
- }
154
- exports.signingBatchData = signingBatchData;
155
128
  //# sourceMappingURL=binary.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"binary.js","sourceRoot":"","sources":["../src/binary.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAE/B,mDAAoD;AACpD,mCAAmC;AACnC,0DAAqD;AAsNnD,6FAtNO,4BAAY,OAsNP;AApNd,mDAA4C;AAC5C,kEAAwE;AAoNtE,iGApNO,oCAAgB,OAoNP;AAChB,0FArNyB,6BAAS,OAqNzB;AApNX,qCAAoD;AA8NlD,2FA9NO,mBAAU,OA8NP;AACV,8FA/NmB,sBAAa,OA+NnB;AA9Nf,mCAIgB;AAIhB;;;;;;;GAOG;AACH,MAAM,UAAU,GAAG,CACjB,KAA0B,EAC1B,WAAiC,EACnB,EAAE,CAChB,IAAI,4BAAY,CACd,KAAK,YAAY,UAAU,CAAC,CAAC,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AAkC,EAClC,OAA6C;IAC3C,WAAW,EAAE,2BAAmB;CACjC;IAED,MAAM,MAAM,GAAG,0BAAU,CAAC,mBAAmB,CAAA;IAC7C,MAAM,MAAM,GAAG,iBAAS,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,EAAE,CAAA;IACjE,OAAO,eAAe,CAAC,WAAW,EAAE;QAClC,MAAM;QACN,MAAM;QACN,iBAAiB,EAAE,IAAI;QACvB,WAAW,EAAE,IAAI,CAAC,WAAW;KAC9B,CAAC,CAAA;AACJ,CAAC;AAUC,4CAAgB"}
@@ -913,20 +913,20 @@
913
913
  [
914
914
  "IssuerNode",
915
915
  {
916
+ "nth": 27,
917
+ "isVLEncoded": false,
916
918
  "isSerialized": true,
917
919
  "isSigningField": true,
918
- "isVLEncoded": false,
919
- "nth": 27,
920
920
  "type": "UInt64"
921
921
  }
922
922
  ],
923
923
  [
924
924
  "SubjectNode",
925
925
  {
926
+ "nth": 28,
927
+ "isVLEncoded": false,
926
928
  "isSerialized": true,
927
929
  "isSigningField": true,
928
- "isVLEncoded": false,
929
- "nth": 28,
930
930
  "type": "UInt64"
931
931
  }
932
932
  ],
@@ -1253,20 +1253,10 @@
1253
1253
  [
1254
1254
  "DomainID",
1255
1255
  {
1256
- "isSerialized": true,
1257
- "isSigningField": true,
1258
- "isVLEncoded": false,
1259
1256
  "nth": 34,
1260
- "type": "Hash256"
1261
- }
1262
- ],
1263
- [
1264
- "ParentBatchID",
1265
- {
1257
+ "isVLEncoded": false,
1266
1258
  "isSerialized": true,
1267
1259
  "isSigningField": true,
1268
- "isVLEncoded": false,
1269
- "nth": 35,
1270
1260
  "type": "Hash256"
1271
1261
  }
1272
1262
  ],
@@ -1853,10 +1843,10 @@
1853
1843
  [
1854
1844
  "CredentialType",
1855
1845
  {
1846
+ "nth": 31,
1847
+ "isVLEncoded": true,
1856
1848
  "isSerialized": true,
1857
1849
  "isSigningField": true,
1858
- "isVLEncoded": true,
1859
- "nth": 31,
1860
1850
  "type": "Blob"
1861
1851
  }
1862
1852
  ],
@@ -2033,21 +2023,11 @@
2033
2023
  [
2034
2024
  "Subject",
2035
2025
  {
2036
- "isSerialized": true,
2037
- "isSigningField": true,
2038
- "isVLEncoded": true,
2039
2026
  "nth": 24,
2040
- "type": "AccountID"
2041
- }
2042
- ],
2043
- [
2044
- "Number",
2045
- {
2027
+ "isVLEncoded": true,
2046
2028
  "isSerialized": true,
2047
2029
  "isSigningField": true,
2048
- "isVLEncoded": false,
2049
- "nth": 1,
2050
- "type": "Number"
2030
+ "type": "AccountID"
2051
2031
  }
2052
2032
  ],
2053
2033
  [
@@ -2343,30 +2323,10 @@
2343
2323
  [
2344
2324
  "Credential",
2345
2325
  {
2346
- "isSerialized": true,
2347
- "isSigningField": true,
2348
- "isVLEncoded": false,
2349
2326
  "nth": 33,
2350
- "type": "STObject"
2351
- }
2352
- ],
2353
- [
2354
- "RawTransaction",
2355
- {
2356
- "isSerialized": true,
2357
- "isSigningField": true,
2358
2327
  "isVLEncoded": false,
2359
- "nth": 34,
2360
- "type": "STObject"
2361
- }
2362
- ],
2363
- [
2364
- "BatchSigner",
2365
- {
2366
2328
  "isSerialized": true,
2367
2329
  "isSigningField": true,
2368
- "isVLEncoded": false,
2369
- "nth": 35,
2370
2330
  "type": "STObject"
2371
2331
  }
2372
2332
  ],
@@ -2563,50 +2523,29 @@
2563
2523
  [
2564
2524
  "AuthorizeCredentials",
2565
2525
  {
2526
+ "nth": 26,
2527
+ "isVLEncoded": false,
2566
2528
  "isSerialized": true,
2567
2529
  "isSigningField": true,
2568
- "isVLEncoded": false,
2569
- "nth": 26,
2570
2530
  "type": "STArray"
2571
2531
  }
2572
2532
  ],
2573
2533
  [
2574
2534
  "UnauthorizeCredentials",
2575
2535
  {
2576
- "isSerialized": true,
2577
- "isSigningField": true,
2578
- "isVLEncoded": false,
2579
2536
  "nth": 27,
2580
- "type": "STArray"
2581
- }
2582
- ],
2583
- [
2584
- "AcceptedCredentials",
2585
- {
2586
- "isSerialized": true,
2587
- "isSigningField": true,
2588
2537
  "isVLEncoded": false,
2589
- "nth": 28,
2590
- "type": "STArray"
2591
- }
2592
- ],
2593
- [
2594
- "RawTransactions",
2595
- {
2596
2538
  "isSerialized": true,
2597
2539
  "isSigningField": true,
2598
- "isVLEncoded": false,
2599
- "nth": 29,
2600
2540
  "type": "STArray"
2601
2541
  }
2602
2542
  ],
2603
2543
  [
2604
- "BatchSigners",
2605
- {
2606
- "isSerialized": true,
2607
- "isSigningField": false,
2544
+ "AcceptedCredentials", {
2545
+ "nth": 28,
2608
2546
  "isVLEncoded": false,
2609
- "nth": 30,
2547
+ "isSerialized": true,
2548
+ "isSigningField": true,
2610
2549
  "type": "STArray"
2611
2550
  }
2612
2551
  ],
@@ -2793,10 +2732,10 @@
2793
2732
  [
2794
2733
  "CredentialIDs",
2795
2734
  {
2735
+ "nth": 5,
2736
+ "isVLEncoded": true,
2796
2737
  "isSerialized": true,
2797
2738
  "isSigningField": true,
2798
- "isVLEncoded": true,
2799
- "nth": 5,
2800
2739
  "type": "Vector256"
2801
2740
  }
2802
2741
  ],
@@ -2927,7 +2866,6 @@
2927
2866
  "Amendments": 102,
2928
2867
  "Bridge": 105,
2929
2868
  "Check": 67,
2930
- "Credential": 129,
2931
2869
  "DID": 73,
2932
2870
  "DepositPreauth": 112,
2933
2871
  "DirectoryNode": 100,
@@ -2942,6 +2880,7 @@
2942
2880
  "NegativeUNL": 78,
2943
2881
  "Offer": 111,
2944
2882
  "Oracle": 128,
2883
+ "Credential": 129,
2945
2884
  "PayChannel": 120,
2946
2885
  "PermissionedDomain": 130,
2947
2886
  "RippleState": 114,
@@ -2971,7 +2910,6 @@
2971
2910
  "tecFAILED_PROCESSING": 105,
2972
2911
  "tecFROZEN": 137,
2973
2912
  "tecHAS_OBLIGATIONS": 151,
2974
- "tecHOOK_REJECTED": 153,
2975
2913
  "tecINCOMPLETE": 169,
2976
2914
  "tecINSUFFICIENT_FUNDS": 159,
2977
2915
  "tecINSUFFICIENT_PAYMENT": 161,
@@ -3106,7 +3044,6 @@
3106
3044
  "temINVALID_ACCOUNT_ID": -268,
3107
3045
  "temINVALID_COUNT": -266,
3108
3046
  "temINVALID_FLAG": -276,
3109
- "temINVALID_INNER_BATCH": -250,
3110
3047
  "temMALFORMED": -299,
3111
3048
  "temREDUNDANT": -275,
3112
3049
  "temRIPPLE_EMPTY": -274,
@@ -3144,13 +3081,12 @@
3144
3081
  "AMMWithdraw": 37,
3145
3082
  "AccountDelete": 21,
3146
3083
  "AccountSet": 3,
3147
- "Batch": 64,
3148
3084
  "CheckCancel": 18,
3149
3085
  "CheckCash": 17,
3150
3086
  "CheckCreate": 16,
3151
3087
  "Clawback": 30,
3152
- "CredentialAccept": 59,
3153
3088
  "CredentialCreate": 58,
3089
+ "CredentialAccept": 59,
3154
3090
  "CredentialDelete": 60,
3155
3091
  "DIDDelete": 50,
3156
3092
  "DIDSet": 49,
@@ -3179,8 +3115,8 @@
3179
3115
  "PaymentChannelClaim": 15,
3180
3116
  "PaymentChannelCreate": 13,
3181
3117
  "PaymentChannelFund": 14,
3182
- "PermissionedDomainDelete": 63,
3183
3118
  "PermissionedDomainSet": 62,
3119
+ "PermissionedDomainDelete": 63,
3184
3120
  "SetFee": 101,
3185
3121
  "SetRegularKey": 5,
3186
3122
  "SignerListSet": 12,
@@ -3210,7 +3146,6 @@
3210
3146
  "LedgerEntry": 10002,
3211
3147
  "Metadata": 10004,
3212
3148
  "NotPresent": 0,
3213
- "Number": 9,
3214
3149
  "PathSet": 18,
3215
3150
  "STArray": 15,
3216
3151
  "STObject": 14,
@@ -913,20 +913,20 @@
913
913
  [
914
914
  "IssuerNode",
915
915
  {
916
+ "nth": 27,
917
+ "isVLEncoded": false,
916
918
  "isSerialized": true,
917
919
  "isSigningField": true,
918
- "isVLEncoded": false,
919
- "nth": 27,
920
920
  "type": "UInt64"
921
921
  }
922
922
  ],
923
923
  [
924
924
  "SubjectNode",
925
925
  {
926
+ "nth": 28,
927
+ "isVLEncoded": false,
926
928
  "isSerialized": true,
927
929
  "isSigningField": true,
928
- "isVLEncoded": false,
929
- "nth": 28,
930
930
  "type": "UInt64"
931
931
  }
932
932
  ],
@@ -1253,20 +1253,10 @@
1253
1253
  [
1254
1254
  "DomainID",
1255
1255
  {
1256
- "isSerialized": true,
1257
- "isSigningField": true,
1258
- "isVLEncoded": false,
1259
1256
  "nth": 34,
1260
- "type": "Hash256"
1261
- }
1262
- ],
1263
- [
1264
- "ParentBatchID",
1265
- {
1257
+ "isVLEncoded": false,
1266
1258
  "isSerialized": true,
1267
1259
  "isSigningField": true,
1268
- "isVLEncoded": false,
1269
- "nth": 35,
1270
1260
  "type": "Hash256"
1271
1261
  }
1272
1262
  ],
@@ -1853,10 +1843,10 @@
1853
1843
  [
1854
1844
  "CredentialType",
1855
1845
  {
1846
+ "nth": 31,
1847
+ "isVLEncoded": true,
1856
1848
  "isSerialized": true,
1857
1849
  "isSigningField": true,
1858
- "isVLEncoded": true,
1859
- "nth": 31,
1860
1850
  "type": "Blob"
1861
1851
  }
1862
1852
  ],
@@ -2033,21 +2023,11 @@
2033
2023
  [
2034
2024
  "Subject",
2035
2025
  {
2036
- "isSerialized": true,
2037
- "isSigningField": true,
2038
- "isVLEncoded": true,
2039
2026
  "nth": 24,
2040
- "type": "AccountID"
2041
- }
2042
- ],
2043
- [
2044
- "Number",
2045
- {
2027
+ "isVLEncoded": true,
2046
2028
  "isSerialized": true,
2047
2029
  "isSigningField": true,
2048
- "isVLEncoded": false,
2049
- "nth": 1,
2050
- "type": "Number"
2030
+ "type": "AccountID"
2051
2031
  }
2052
2032
  ],
2053
2033
  [
@@ -2343,30 +2323,10 @@
2343
2323
  [
2344
2324
  "Credential",
2345
2325
  {
2346
- "isSerialized": true,
2347
- "isSigningField": true,
2348
- "isVLEncoded": false,
2349
2326
  "nth": 33,
2350
- "type": "STObject"
2351
- }
2352
- ],
2353
- [
2354
- "RawTransaction",
2355
- {
2356
- "isSerialized": true,
2357
- "isSigningField": true,
2358
2327
  "isVLEncoded": false,
2359
- "nth": 34,
2360
- "type": "STObject"
2361
- }
2362
- ],
2363
- [
2364
- "BatchSigner",
2365
- {
2366
2328
  "isSerialized": true,
2367
2329
  "isSigningField": true,
2368
- "isVLEncoded": false,
2369
- "nth": 35,
2370
2330
  "type": "STObject"
2371
2331
  }
2372
2332
  ],
@@ -2563,50 +2523,29 @@
2563
2523
  [
2564
2524
  "AuthorizeCredentials",
2565
2525
  {
2526
+ "nth": 26,
2527
+ "isVLEncoded": false,
2566
2528
  "isSerialized": true,
2567
2529
  "isSigningField": true,
2568
- "isVLEncoded": false,
2569
- "nth": 26,
2570
2530
  "type": "STArray"
2571
2531
  }
2572
2532
  ],
2573
2533
  [
2574
2534
  "UnauthorizeCredentials",
2575
2535
  {
2576
- "isSerialized": true,
2577
- "isSigningField": true,
2578
- "isVLEncoded": false,
2579
2536
  "nth": 27,
2580
- "type": "STArray"
2581
- }
2582
- ],
2583
- [
2584
- "AcceptedCredentials",
2585
- {
2586
- "isSerialized": true,
2587
- "isSigningField": true,
2588
2537
  "isVLEncoded": false,
2589
- "nth": 28,
2590
- "type": "STArray"
2591
- }
2592
- ],
2593
- [
2594
- "RawTransactions",
2595
- {
2596
2538
  "isSerialized": true,
2597
2539
  "isSigningField": true,
2598
- "isVLEncoded": false,
2599
- "nth": 29,
2600
2540
  "type": "STArray"
2601
2541
  }
2602
2542
  ],
2603
2543
  [
2604
- "BatchSigners",
2605
- {
2606
- "isSerialized": true,
2607
- "isSigningField": false,
2544
+ "AcceptedCredentials", {
2545
+ "nth": 28,
2608
2546
  "isVLEncoded": false,
2609
- "nth": 30,
2547
+ "isSerialized": true,
2548
+ "isSigningField": true,
2610
2549
  "type": "STArray"
2611
2550
  }
2612
2551
  ],
@@ -2793,10 +2732,10 @@
2793
2732
  [
2794
2733
  "CredentialIDs",
2795
2734
  {
2735
+ "nth": 5,
2736
+ "isVLEncoded": true,
2796
2737
  "isSerialized": true,
2797
2738
  "isSigningField": true,
2798
- "isVLEncoded": true,
2799
- "nth": 5,
2800
2739
  "type": "Vector256"
2801
2740
  }
2802
2741
  ],
@@ -2927,7 +2866,6 @@
2927
2866
  "Amendments": 102,
2928
2867
  "Bridge": 105,
2929
2868
  "Check": 67,
2930
- "Credential": 129,
2931
2869
  "DID": 73,
2932
2870
  "DepositPreauth": 112,
2933
2871
  "DirectoryNode": 100,
@@ -2942,6 +2880,7 @@
2942
2880
  "NegativeUNL": 78,
2943
2881
  "Offer": 111,
2944
2882
  "Oracle": 128,
2883
+ "Credential": 129,
2945
2884
  "PayChannel": 120,
2946
2885
  "PermissionedDomain": 130,
2947
2886
  "RippleState": 114,
@@ -2971,7 +2910,6 @@
2971
2910
  "tecFAILED_PROCESSING": 105,
2972
2911
  "tecFROZEN": 137,
2973
2912
  "tecHAS_OBLIGATIONS": 151,
2974
- "tecHOOK_REJECTED": 153,
2975
2913
  "tecINCOMPLETE": 169,
2976
2914
  "tecINSUFFICIENT_FUNDS": 159,
2977
2915
  "tecINSUFFICIENT_PAYMENT": 161,
@@ -3030,7 +2968,6 @@
3030
2968
  "tecXCHAIN_SELF_COMMIT": 184,
3031
2969
  "tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 179,
3032
2970
  "tecXCHAIN_WRONG_CHAIN": 176,
3033
-
3034
2971
  "tefALREADY": -198,
3035
2972
  "tefBAD_ADD_AUTH": -197,
3036
2973
  "tefBAD_AUTH": -196,
@@ -3053,7 +2990,6 @@
3053
2990
  "tefPAST_SEQ": -190,
3054
2991
  "tefTOO_BIG": -181,
3055
2992
  "tefWRONG_PRIOR": -189,
3056
-
3057
2993
  "telBAD_DOMAIN": -398,
3058
2994
  "telBAD_PATH_COUNT": -397,
3059
2995
  "telBAD_PUBLIC_KEY": -396,
@@ -3071,7 +3007,6 @@
3071
3007
  "telNO_DST_PARTIAL": -393,
3072
3008
  "telREQUIRES_NETWORK_ID": -385,
3073
3009
  "telWRONG_NETWORK": -386,
3074
-
3075
3010
  "temARRAY_EMPTY": -253,
3076
3011
  "temARRAY_TOO_LARGE": -252,
3077
3012
  "temBAD_AMM_TOKENS": -261,
@@ -3109,7 +3044,6 @@
3109
3044
  "temINVALID_ACCOUNT_ID": -268,
3110
3045
  "temINVALID_COUNT": -266,
3111
3046
  "temINVALID_FLAG": -276,
3112
- "temINVALID_INNER_BATCH": -250,
3113
3047
  "temMALFORMED": -299,
3114
3048
  "temREDUNDANT": -275,
3115
3049
  "temRIPPLE_EMPTY": -274,
@@ -3122,7 +3056,6 @@
3122
3056
  "temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
3123
3057
  "temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
3124
3058
  "temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
3125
-
3126
3059
  "terFUNDS_SPENT": -98,
3127
3060
  "terINSUF_FEE_B": -97,
3128
3061
  "terLAST": -91,
@@ -3136,7 +3069,6 @@
3136
3069
  "terPRE_TICKET": -88,
3137
3070
  "terQUEUED": -89,
3138
3071
  "terRETRY": -99,
3139
-
3140
3072
  "tesSUCCESS": 0
3141
3073
  },
3142
3074
  "TRANSACTION_TYPES": {
@@ -3149,13 +3081,12 @@
3149
3081
  "AMMWithdraw": 37,
3150
3082
  "AccountDelete": 21,
3151
3083
  "AccountSet": 3,
3152
- "Batch": 64,
3153
3084
  "CheckCancel": 18,
3154
3085
  "CheckCash": 17,
3155
3086
  "CheckCreate": 16,
3156
3087
  "Clawback": 30,
3157
- "CredentialAccept": 59,
3158
3088
  "CredentialCreate": 58,
3089
+ "CredentialAccept": 59,
3159
3090
  "CredentialDelete": 60,
3160
3091
  "DIDDelete": 50,
3161
3092
  "DIDSet": 49,
@@ -3184,8 +3115,8 @@
3184
3115
  "PaymentChannelClaim": 15,
3185
3116
  "PaymentChannelCreate": 13,
3186
3117
  "PaymentChannelFund": 14,
3187
- "PermissionedDomainDelete": 63,
3188
3118
  "PermissionedDomainSet": 62,
3119
+ "PermissionedDomainDelete": 63,
3189
3120
  "SetFee": 101,
3190
3121
  "SetRegularKey": 5,
3191
3122
  "SignerListSet": 12,
@@ -3215,7 +3146,6 @@
3215
3146
  "LedgerEntry": 10002,
3216
3147
  "Metadata": 10004,
3217
3148
  "NotPresent": 0,
3218
- "Number": 9,
3219
3149
  "PathSet": 18,
3220
3150
  "STArray": 15,
3221
3151
  "STObject": 14,
@@ -36,8 +36,6 @@ const HashPrefix = {
36
36
  proposal: bytes(0x50525000),
37
37
  // payment channel claim
38
38
  paymentChannelClaim: bytes(0x434c4d00),
39
- // batch
40
- batch: bytes(0x42434800),
41
39
  };
42
40
  exports.HashPrefix = HashPrefix;
43
41
  //# sourceMappingURL=hash-prefixes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hash-prefixes.js","sourceRoot":"","sources":["../src/hash-prefixes.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AAEvC;;;;;GAKG;AACH,SAAS,KAAK,CAAC,MAAc;IAC3B,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAA;IAChC,IAAA,qBAAa,EAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;IAChC,OAAO,MAAM,CAAA;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,GAA+B;IAC7C,aAAa,EAAE,KAAK,CAAC,UAAU,CAAC;IAChC,4BAA4B;IAC5B,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC;IAC9B,gBAAgB;IAChB,iBAAiB,EAAE,KAAK,CAAC,UAAU,CAAC;IACpC,qBAAqB;IACrB,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC;IAC5B,iCAAiC;IACjC,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC;IAC/B,4BAA4B;IAC5B,cAAc,EAAE,KAAK,CAAC,UAAU,CAAC;IACjC,4BAA4B;IAC5B,mBAAmB,EAAE,KAAK,CAAC,UAAU,CAAC;IACtC,yBAAyB;IACzB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;IAC7B,uBAAuB;IACvB,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC;IAC3B,wBAAwB;IACxB,mBAAmB,EAAE,KAAK,CAAC,UAAU,CAAC;IACtC,QAAQ;IACR,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC;CACzB,CAAA;AAEQ,gCAAU"}
1
+ {"version":3,"file":"hash-prefixes.js","sourceRoot":"","sources":["../src/hash-prefixes.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AAEvC;;;;;GAKG;AACH,SAAS,KAAK,CAAC,MAAc;IAC3B,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAA;IAChC,IAAA,qBAAa,EAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;IAChC,OAAO,MAAM,CAAA;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,GAA+B;IAC7C,aAAa,EAAE,KAAK,CAAC,UAAU,CAAC;IAChC,4BAA4B;IAC5B,WAAW,EAAE,KAAK,CAAC,UAAU,CAAC;IAC9B,gBAAgB;IAChB,iBAAiB,EAAE,KAAK,CAAC,UAAU,CAAC;IACpC,qBAAqB;IACrB,SAAS,EAAE,KAAK,CAAC,UAAU,CAAC;IAC5B,iCAAiC;IACjC,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC;IAC/B,4BAA4B;IAC5B,cAAc,EAAE,KAAK,CAAC,UAAU,CAAC;IACjC,4BAA4B;IAC5B,mBAAmB,EAAE,KAAK,CAAC,UAAU,CAAC;IACtC,yBAAyB;IACzB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;IAC7B,uBAAuB;IACvB,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC;IAC3B,wBAAwB;IACxB,mBAAmB,EAAE,KAAK,CAAC,UAAU,CAAC;CACvC,CAAA;AAEQ,gCAAU"}
package/dist/index.d.ts CHANGED
@@ -47,7 +47,6 @@ declare function encodeForSigningClaim(json: object): string;
47
47
  * @returns a hex string of the encoded transaction
48
48
  */
49
49
  declare function encodeForMultisigning(json: object, signer: string, definitions?: XrplDefinitionsBase): string;
50
- declare function encodeForSigningBatch(json: object): string;
51
50
  /**
52
51
  * Encode a quality value
53
52
  *
@@ -62,4 +61,4 @@ declare function encodeQuality(value: string): string;
62
61
  * @returns a string representing the quality
63
62
  */
64
63
  declare function decodeQuality(value: string): string;
65
- export { decode, encode, encodeForSigning, encodeForSigningClaim, encodeForMultisigning, encodeForSigningBatch, encodeQuality, decodeQuality, decodeLedgerData, TRANSACTION_TYPES, XrplDefinitions, XrplDefinitionsBase, DEFAULT_DEFINITIONS, coreTypes, };
64
+ export { decode, encode, encodeForSigning, encodeForSigningClaim, encodeForMultisigning, encodeQuality, decodeQuality, decodeLedgerData, TRANSACTION_TYPES, XrplDefinitions, XrplDefinitionsBase, DEFAULT_DEFINITIONS, coreTypes, };
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.coreTypes = exports.DEFAULT_DEFINITIONS = exports.XrplDefinitionsBase = exports.XrplDefinitions = exports.TRANSACTION_TYPES = exports.decodeLedgerData = exports.decodeQuality = exports.encodeQuality = exports.encodeForSigningBatch = exports.encodeForMultisigning = exports.encodeForSigningClaim = exports.encodeForSigning = exports.encode = exports.decode = void 0;
3
+ exports.coreTypes = exports.DEFAULT_DEFINITIONS = exports.XrplDefinitionsBase = exports.XrplDefinitions = exports.TRANSACTION_TYPES = exports.decodeLedgerData = exports.decodeQuality = exports.encodeQuality = exports.encodeForMultisigning = exports.encodeForSigningClaim = exports.encodeForSigning = exports.encode = exports.decode = void 0;
4
4
  const coretypes_1 = require("./coretypes");
5
5
  const ledger_hashes_1 = require("./ledger-hashes");
6
6
  Object.defineProperty(exports, "decodeLedgerData", { enumerable: true, get: function () { return ledger_hashes_1.decodeLedgerData; } });
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "XrplDefinitions", { enumerable: true, get: funct
13
13
  const types_1 = require("./types");
14
14
  Object.defineProperty(exports, "coreTypes", { enumerable: true, get: function () { return types_1.coreTypes; } });
15
15
  const utils_1 = require("@xrplf/isomorphic/utils");
16
- const { signingData, signingClaimData, multiSigningData, signingBatchData, binaryToJSON, serializeObject, } = coretypes_1.binary;
16
+ const { signingData, signingClaimData, multiSigningData, binaryToJSON, serializeObject, } = coretypes_1.binary;
17
17
  /**
18
18
  * Decode a transaction
19
19
  *
@@ -94,13 +94,6 @@ function encodeForMultisigning(json, signer, definitions) {
94
94
  return (0, utils_1.bytesToHex)(multiSigningData(json, signer, definitionsOpt));
95
95
  }
96
96
  exports.encodeForMultisigning = encodeForMultisigning;
97
- function encodeForSigningBatch(json) {
98
- if (typeof json !== 'object') {
99
- throw new Error();
100
- }
101
- return (0, utils_1.bytesToHex)(signingBatchData(json));
102
- }
103
- exports.encodeForSigningBatch = encodeForSigningBatch;
104
97
  /**
105
98
  * Encode a quality value
106
99
  *