@transia/ripple-binary-codec 1.4.6-alpha.0 → 1.4.6-alpha.10
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 +2 -1
- package/dist/binary.js +9 -3
- package/dist/binary.js.map +1 -1
- package/dist/enums/definitions.json +312 -18
- package/dist/enums/src/enums/definitions.json +312 -18
- package/dist/types/currency.js +3 -3
- package/dist/types/st-object.js.map +1 -1
- package/package.json +2 -2
- package/test/binary-parser.test.js +1 -1
- package/test/binary-serializer.test.js +30 -0
- package/test/definitions.test.js +1 -1
- package/test/fixtures/data-driven-tests.json +2 -2
- package/test/fixtures/remit-binary.json +1 -0
- package/test/fixtures/remit-tx.json +39 -0
- package/test/fixtures/unl-report-binary.json +1 -0
- package/test/fixtures/unl-report-meta-binary.json +1 -0
- package/test/fixtures/unl-report.json +89 -0
- package/test/hash.test.js +2 -2
- package/test/signing-data-encoding.test.js +21 -50
- package/test/tx-encode-decode.test.js +1 -1
package/dist/binary.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { sha512Half, transactionID } from './hashes';
|
|
|
5
5
|
import { type XrplDefinitionsBase } from './enums';
|
|
6
6
|
import { JsonObject } from './types/serialized-type';
|
|
7
7
|
import { Buffer } from 'buffer/';
|
|
8
|
+
import { AmountObject } from './types/amount';
|
|
8
9
|
/**
|
|
9
10
|
* Construct a BinaryParser
|
|
10
11
|
*
|
|
@@ -67,7 +68,7 @@ declare function signingData(transaction: JsonObject, prefix?: Buffer, opts?: {
|
|
|
67
68
|
*/
|
|
68
69
|
interface ClaimObject extends JsonObject {
|
|
69
70
|
channel: string;
|
|
70
|
-
amount:
|
|
71
|
+
amount: AmountObject;
|
|
71
72
|
}
|
|
72
73
|
/**
|
|
73
74
|
* Serialize a signingClaim
|
package/dist/binary.js
CHANGED
|
@@ -93,14 +93,20 @@ exports.signingData = signingData;
|
|
|
93
93
|
* @returns the serialized object with appropriate prefix
|
|
94
94
|
*/
|
|
95
95
|
function signingClaimData(claim) {
|
|
96
|
-
const num = bigInt(String(claim.amount));
|
|
97
96
|
const prefix = hash_prefixes_1.HashPrefix.paymentChannelClaim;
|
|
98
97
|
const channel = types_1.coreTypes.Hash256.from(claim.channel).toBytes();
|
|
99
|
-
const amount = types_1.coreTypes.UInt64.from(num).toBytes();
|
|
100
98
|
const bytesList = new binary_serializer_1.BytesList();
|
|
101
99
|
bytesList.put(prefix);
|
|
102
100
|
bytesList.put(channel);
|
|
103
|
-
|
|
101
|
+
if (typeof claim.amount === 'string') {
|
|
102
|
+
const num = bigInt(String(claim.amount));
|
|
103
|
+
const amount = types_1.coreTypes.UInt64.from(num).toBytes();
|
|
104
|
+
bytesList.put(amount);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
const amount = types_1.coreTypes.Amount.from(claim.amount).toBytes();
|
|
108
|
+
bytesList.put(amount);
|
|
109
|
+
}
|
|
104
110
|
return bytesList.toBytes();
|
|
105
111
|
}
|
|
106
112
|
exports.signingClaimData = signingClaimData;
|
package/dist/binary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary.js","sourceRoot":"","sources":["../src/binary.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAE/B,mCAAmC;AACnC,0DAAqD;
|
|
1
|
+
{"version":3,"file":"binary.js","sourceRoot":"","sources":["../src/binary.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAE/B,mCAAmC;AACnC,0DAAqD;AA+KnD,6FA/KO,4BAAY,OA+KP;AA7Kd,mDAA4C;AAC5C,kEAAwE;AA6KtE,iGA7KO,oCAAgB,OA6KP;AAChB,0FA9KyB,6BAAS,OA8KzB;AA7KX,qCAAoD;AAsLlD,2FAtLO,mBAAU,OAsLP;AACV,8FAvLmB,sBAAa,OAuLnB;AAtLf,mCAIgB;AAIhB,sCAAsC;AAGtC;;;;;;;GAOG;AACH,MAAM,UAAU,GAAG,CACjB,KAAa,EACb,WAAiC,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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"}
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"LedgerHashes": 104,
|
|
38
38
|
"Amendments": 102,
|
|
39
39
|
"FeeSettings": 115,
|
|
40
|
+
"ImportVLSequence": 73,
|
|
40
41
|
"Escrow": 117,
|
|
41
42
|
"PayChannel": 120,
|
|
42
43
|
"Check": 67,
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"NFTokenPage": 80,
|
|
46
47
|
"NFTokenOffer": 55,
|
|
47
48
|
"URIToken": 85,
|
|
49
|
+
"UNLReport": 82,
|
|
48
50
|
"Any": -3,
|
|
49
51
|
"Child": -2,
|
|
50
52
|
"Nickname": 110,
|
|
@@ -139,40 +141,40 @@
|
|
|
139
141
|
[
|
|
140
142
|
"LedgerEntry",
|
|
141
143
|
{
|
|
142
|
-
"nth":
|
|
144
|
+
"nth": 257,
|
|
143
145
|
"isVLEncoded": false,
|
|
144
146
|
"isSerialized": false,
|
|
145
|
-
"isSigningField":
|
|
147
|
+
"isSigningField": false,
|
|
146
148
|
"type": "LedgerEntry"
|
|
147
149
|
}
|
|
148
150
|
],
|
|
149
151
|
[
|
|
150
152
|
"Transaction",
|
|
151
153
|
{
|
|
152
|
-
"nth":
|
|
154
|
+
"nth": 257,
|
|
153
155
|
"isVLEncoded": false,
|
|
154
156
|
"isSerialized": false,
|
|
155
|
-
"isSigningField":
|
|
157
|
+
"isSigningField": false,
|
|
156
158
|
"type": "Transaction"
|
|
157
159
|
}
|
|
158
160
|
],
|
|
159
161
|
[
|
|
160
162
|
"Validation",
|
|
161
163
|
{
|
|
162
|
-
"nth":
|
|
164
|
+
"nth": 257,
|
|
163
165
|
"isVLEncoded": false,
|
|
164
166
|
"isSerialized": false,
|
|
165
|
-
"isSigningField":
|
|
167
|
+
"isSigningField": false,
|
|
166
168
|
"type": "Validation"
|
|
167
169
|
}
|
|
168
170
|
],
|
|
169
171
|
[
|
|
170
172
|
"Metadata",
|
|
171
173
|
{
|
|
172
|
-
"nth":
|
|
174
|
+
"nth": 257,
|
|
173
175
|
"isVLEncoded": false,
|
|
174
|
-
"isSerialized":
|
|
175
|
-
"isSigningField":
|
|
176
|
+
"isSerialized": false,
|
|
177
|
+
"isSigningField": false,
|
|
176
178
|
"type": "Metadata"
|
|
177
179
|
}
|
|
178
180
|
],
|
|
@@ -786,6 +788,66 @@
|
|
|
786
788
|
"type": "UInt32"
|
|
787
789
|
}
|
|
788
790
|
],
|
|
791
|
+
[
|
|
792
|
+
"FirstNFTokenSequence",
|
|
793
|
+
{
|
|
794
|
+
"nth": 50,
|
|
795
|
+
"isVLEncoded": false,
|
|
796
|
+
"isSerialized": true,
|
|
797
|
+
"isSigningField": true,
|
|
798
|
+
"type": "UInt32"
|
|
799
|
+
}
|
|
800
|
+
],
|
|
801
|
+
[
|
|
802
|
+
"XahauActivationLgrSeq",
|
|
803
|
+
{
|
|
804
|
+
"nth": 96,
|
|
805
|
+
"isVLEncoded": false,
|
|
806
|
+
"isSerialized": true,
|
|
807
|
+
"isSigningField": true,
|
|
808
|
+
"type": "UInt32"
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
[
|
|
812
|
+
"ImportSequence",
|
|
813
|
+
{
|
|
814
|
+
"nth": 97,
|
|
815
|
+
"isVLEncoded": false,
|
|
816
|
+
"isSerialized": true,
|
|
817
|
+
"isSigningField": true,
|
|
818
|
+
"type": "UInt32"
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
[
|
|
822
|
+
"RewardTime",
|
|
823
|
+
{
|
|
824
|
+
"nth": 98,
|
|
825
|
+
"isVLEncoded": false,
|
|
826
|
+
"isSerialized": true,
|
|
827
|
+
"isSigningField": true,
|
|
828
|
+
"type": "UInt32"
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
[
|
|
832
|
+
"RewardLgrFirst",
|
|
833
|
+
{
|
|
834
|
+
"nth": 99,
|
|
835
|
+
"isVLEncoded": false,
|
|
836
|
+
"isSerialized": true,
|
|
837
|
+
"isSigningField": true,
|
|
838
|
+
"type": "UInt32"
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
[
|
|
842
|
+
"RewardLgrLast",
|
|
843
|
+
{
|
|
844
|
+
"nth": 100,
|
|
845
|
+
"isVLEncoded": false,
|
|
846
|
+
"isSerialized": true,
|
|
847
|
+
"isSigningField": true,
|
|
848
|
+
"type": "UInt32"
|
|
849
|
+
}
|
|
850
|
+
],
|
|
789
851
|
[
|
|
790
852
|
"IndexNext",
|
|
791
853
|
{
|
|
@@ -946,6 +1008,36 @@
|
|
|
946
1008
|
"type": "UInt64"
|
|
947
1009
|
}
|
|
948
1010
|
],
|
|
1011
|
+
[
|
|
1012
|
+
"AccountIndex",
|
|
1013
|
+
{
|
|
1014
|
+
"nth": 98,
|
|
1015
|
+
"isVLEncoded": false,
|
|
1016
|
+
"isSerialized": true,
|
|
1017
|
+
"isSigningField": true,
|
|
1018
|
+
"type": "UInt64"
|
|
1019
|
+
}
|
|
1020
|
+
],
|
|
1021
|
+
[
|
|
1022
|
+
"AccountCount",
|
|
1023
|
+
{
|
|
1024
|
+
"nth": 99,
|
|
1025
|
+
"isVLEncoded": false,
|
|
1026
|
+
"isSerialized": true,
|
|
1027
|
+
"isSigningField": true,
|
|
1028
|
+
"type": "UInt64"
|
|
1029
|
+
}
|
|
1030
|
+
],
|
|
1031
|
+
[
|
|
1032
|
+
"RewardAccumulator",
|
|
1033
|
+
{
|
|
1034
|
+
"nth": 100,
|
|
1035
|
+
"isVLEncoded": false,
|
|
1036
|
+
"isSerialized": true,
|
|
1037
|
+
"isSigningField": true,
|
|
1038
|
+
"type": "UInt64"
|
|
1039
|
+
}
|
|
1040
|
+
],
|
|
949
1041
|
[
|
|
950
1042
|
"EmailHash",
|
|
951
1043
|
{
|
|
@@ -1336,6 +1428,36 @@
|
|
|
1336
1428
|
"type": "Hash256"
|
|
1337
1429
|
}
|
|
1338
1430
|
],
|
|
1431
|
+
[
|
|
1432
|
+
"GovernanceFlags",
|
|
1433
|
+
{
|
|
1434
|
+
"nth": 99,
|
|
1435
|
+
"isVLEncoded": false,
|
|
1436
|
+
"isSerialized": true,
|
|
1437
|
+
"isSigningField": true,
|
|
1438
|
+
"type": "Hash256"
|
|
1439
|
+
}
|
|
1440
|
+
],
|
|
1441
|
+
[
|
|
1442
|
+
"GovernanceMarks",
|
|
1443
|
+
{
|
|
1444
|
+
"nth": 98,
|
|
1445
|
+
"isVLEncoded": false,
|
|
1446
|
+
"isSerialized": true,
|
|
1447
|
+
"isSigningField": true,
|
|
1448
|
+
"type": "Hash256"
|
|
1449
|
+
}
|
|
1450
|
+
],
|
|
1451
|
+
[
|
|
1452
|
+
"EmittedTxnID",
|
|
1453
|
+
{
|
|
1454
|
+
"nth": 97,
|
|
1455
|
+
"isVLEncoded": false,
|
|
1456
|
+
"isSerialized": true,
|
|
1457
|
+
"isSigningField": true,
|
|
1458
|
+
"type": "Hash256"
|
|
1459
|
+
}
|
|
1460
|
+
],
|
|
1339
1461
|
[
|
|
1340
1462
|
"Amount",
|
|
1341
1463
|
{
|
|
@@ -1496,6 +1618,36 @@
|
|
|
1496
1618
|
"type": "Amount"
|
|
1497
1619
|
}
|
|
1498
1620
|
],
|
|
1621
|
+
[
|
|
1622
|
+
"BaseFeeDrops",
|
|
1623
|
+
{
|
|
1624
|
+
"nth": 22,
|
|
1625
|
+
"isVLEncoded": false,
|
|
1626
|
+
"isSerialized": true,
|
|
1627
|
+
"isSigningField": true,
|
|
1628
|
+
"type": "Amount"
|
|
1629
|
+
}
|
|
1630
|
+
],
|
|
1631
|
+
[
|
|
1632
|
+
"ReserveBaseDrops",
|
|
1633
|
+
{
|
|
1634
|
+
"nth": 23,
|
|
1635
|
+
"isVLEncoded": false,
|
|
1636
|
+
"isSerialized": true,
|
|
1637
|
+
"isSigningField": true,
|
|
1638
|
+
"type": "Amount"
|
|
1639
|
+
}
|
|
1640
|
+
],
|
|
1641
|
+
[
|
|
1642
|
+
"ReserveIncrementDrops",
|
|
1643
|
+
{
|
|
1644
|
+
"nth": 24,
|
|
1645
|
+
"isVLEncoded": false,
|
|
1646
|
+
"isSerialized": true,
|
|
1647
|
+
"isSigningField": true,
|
|
1648
|
+
"type": "Amount"
|
|
1649
|
+
}
|
|
1650
|
+
],
|
|
1499
1651
|
[
|
|
1500
1652
|
"PublicKey",
|
|
1501
1653
|
{
|
|
@@ -1846,6 +1998,16 @@
|
|
|
1846
1998
|
"type": "AccountID"
|
|
1847
1999
|
}
|
|
1848
2000
|
],
|
|
2001
|
+
[
|
|
2002
|
+
"Inform",
|
|
2003
|
+
{
|
|
2004
|
+
"nth": 99,
|
|
2005
|
+
"isVLEncoded": true,
|
|
2006
|
+
"isSerialized": true,
|
|
2007
|
+
"isSigningField": true,
|
|
2008
|
+
"type": "AccountID"
|
|
2009
|
+
}
|
|
2010
|
+
],
|
|
1849
2011
|
[
|
|
1850
2012
|
"Indexes",
|
|
1851
2013
|
{
|
|
@@ -1896,6 +2058,16 @@
|
|
|
1896
2058
|
"type": "Vector256"
|
|
1897
2059
|
}
|
|
1898
2060
|
],
|
|
2061
|
+
[
|
|
2062
|
+
"URITokenIDs",
|
|
2063
|
+
{
|
|
2064
|
+
"nth": 99,
|
|
2065
|
+
"isVLEncoded": true,
|
|
2066
|
+
"isSerialized": true,
|
|
2067
|
+
"isSigningField": true,
|
|
2068
|
+
"type": "Vector256"
|
|
2069
|
+
}
|
|
2070
|
+
],
|
|
1899
2071
|
[
|
|
1900
2072
|
"Paths",
|
|
1901
2073
|
{
|
|
@@ -2116,6 +2288,66 @@
|
|
|
2116
2288
|
"type": "STObject"
|
|
2117
2289
|
}
|
|
2118
2290
|
],
|
|
2291
|
+
[
|
|
2292
|
+
"GenesisMint",
|
|
2293
|
+
{
|
|
2294
|
+
"nth": 96,
|
|
2295
|
+
"isVLEncoded": false,
|
|
2296
|
+
"isSerialized": true,
|
|
2297
|
+
"isSigningField": true,
|
|
2298
|
+
"type": "STObject"
|
|
2299
|
+
}
|
|
2300
|
+
],
|
|
2301
|
+
[
|
|
2302
|
+
"ActiveValidator",
|
|
2303
|
+
{
|
|
2304
|
+
"nth": 95,
|
|
2305
|
+
"isVLEncoded": false,
|
|
2306
|
+
"isSerialized": true,
|
|
2307
|
+
"isSigningField": true,
|
|
2308
|
+
"type": "STObject"
|
|
2309
|
+
}
|
|
2310
|
+
],
|
|
2311
|
+
[
|
|
2312
|
+
"ImportVLKey",
|
|
2313
|
+
{
|
|
2314
|
+
"nth": 94,
|
|
2315
|
+
"isVLEncoded": false,
|
|
2316
|
+
"isSerialized": true,
|
|
2317
|
+
"isSigningField": true,
|
|
2318
|
+
"type": "STObject"
|
|
2319
|
+
}
|
|
2320
|
+
],
|
|
2321
|
+
[
|
|
2322
|
+
"HookEmission",
|
|
2323
|
+
{
|
|
2324
|
+
"nth": 93,
|
|
2325
|
+
"isVLEncoded": false,
|
|
2326
|
+
"isSerialized": true,
|
|
2327
|
+
"isSigningField": true,
|
|
2328
|
+
"type": "STObject"
|
|
2329
|
+
}
|
|
2330
|
+
],
|
|
2331
|
+
[
|
|
2332
|
+
"MintURIToken",
|
|
2333
|
+
{
|
|
2334
|
+
"nth": 92,
|
|
2335
|
+
"isVLEncoded": false,
|
|
2336
|
+
"isSerialized": true,
|
|
2337
|
+
"isSigningField": true,
|
|
2338
|
+
"type": "STObject"
|
|
2339
|
+
}
|
|
2340
|
+
],
|
|
2341
|
+
[
|
|
2342
|
+
"AmountEntry",
|
|
2343
|
+
{
|
|
2344
|
+
"nth": 91,
|
|
2345
|
+
"isVLEncoded": false,
|
|
2346
|
+
"isSerialized": true,
|
|
2347
|
+
"isSigningField": true,
|
|
2348
|
+
"type": "STObject"
|
|
2349
|
+
}
|
|
2350
|
+
],
|
|
2119
2351
|
[
|
|
2120
2352
|
"Signers",
|
|
2121
2353
|
{
|
|
@@ -2255,6 +2487,56 @@
|
|
|
2255
2487
|
"isSigningField": true,
|
|
2256
2488
|
"type": "STArray"
|
|
2257
2489
|
}
|
|
2490
|
+
],
|
|
2491
|
+
[
|
|
2492
|
+
"GenesisMints",
|
|
2493
|
+
{
|
|
2494
|
+
"nth": 96,
|
|
2495
|
+
"isVLEncoded": false,
|
|
2496
|
+
"isSerialized": true,
|
|
2497
|
+
"isSigningField": true,
|
|
2498
|
+
"type": "STArray"
|
|
2499
|
+
}
|
|
2500
|
+
],
|
|
2501
|
+
[
|
|
2502
|
+
"ActiveValidators",
|
|
2503
|
+
{
|
|
2504
|
+
"nth": 95,
|
|
2505
|
+
"isVLEncoded": false,
|
|
2506
|
+
"isSerialized": true,
|
|
2507
|
+
"isSigningField": true,
|
|
2508
|
+
"type": "STArray"
|
|
2509
|
+
}
|
|
2510
|
+
],
|
|
2511
|
+
[
|
|
2512
|
+
"ImportVLKeys",
|
|
2513
|
+
{
|
|
2514
|
+
"nth": 94,
|
|
2515
|
+
"isVLEncoded": false,
|
|
2516
|
+
"isSerialized": true,
|
|
2517
|
+
"isSigningField": true,
|
|
2518
|
+
"type": "STArray"
|
|
2519
|
+
}
|
|
2520
|
+
],
|
|
2521
|
+
[
|
|
2522
|
+
"HookEmissions",
|
|
2523
|
+
{
|
|
2524
|
+
"nth": 93,
|
|
2525
|
+
"isVLEncoded": false,
|
|
2526
|
+
"isSerialized": true,
|
|
2527
|
+
"isSigningField": true,
|
|
2528
|
+
"type": "STArray"
|
|
2529
|
+
}
|
|
2530
|
+
],
|
|
2531
|
+
[
|
|
2532
|
+
"Amounts",
|
|
2533
|
+
{
|
|
2534
|
+
"nth": 92,
|
|
2535
|
+
"isVLEncoded": false,
|
|
2536
|
+
"isSerialized": true,
|
|
2537
|
+
"isSigningField": true,
|
|
2538
|
+
"type": "STArray"
|
|
2539
|
+
}
|
|
2258
2540
|
]
|
|
2259
2541
|
],
|
|
2260
2542
|
"TRANSACTION_RESULTS": {
|
|
@@ -2275,6 +2557,8 @@
|
|
|
2275
2557
|
"telREQUIRES_NETWORK_ID": -385,
|
|
2276
2558
|
"telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
|
|
2277
2559
|
"telNON_LOCAL_EMITTED_TXN": -383,
|
|
2560
|
+
"telIMPORT_VL_KEY_NOT_RECOGNISED": -382,
|
|
2561
|
+
"telCAN_NOT_QUEUE_IMPORT": -381,
|
|
2278
2562
|
"temMALFORMED": -299,
|
|
2279
2563
|
"temBAD_AMOUNT": -298,
|
|
2280
2564
|
"temBAD_CURRENCY": -297,
|
|
@@ -2286,11 +2570,11 @@
|
|
|
2286
2570
|
"temBAD_PATH": -291,
|
|
2287
2571
|
"temBAD_PATH_LOOP": -290,
|
|
2288
2572
|
"temBAD_REGKEY": -289,
|
|
2289
|
-
"
|
|
2290
|
-
"
|
|
2291
|
-
"
|
|
2292
|
-
"
|
|
2293
|
-
"
|
|
2573
|
+
"temBAD_SEND_NATIVE_LIMIT": -288,
|
|
2574
|
+
"temBAD_SEND_NATIVE_MAX": -287,
|
|
2575
|
+
"temBAD_SEND_NATIVE_NO_DIRECT": -286,
|
|
2576
|
+
"temBAD_SEND_NATIVE_PARTIAL": -285,
|
|
2577
|
+
"temBAD_SEND_NATIVE_PATHS": -284,
|
|
2294
2578
|
"temBAD_SEQUENCE": -283,
|
|
2295
2579
|
"temBAD_SIGNATURE": -282,
|
|
2296
2580
|
"temBAD_SRC_ACCOUNT": -281,
|
|
@@ -2322,7 +2606,6 @@
|
|
|
2322
2606
|
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
|
|
2323
2607
|
"temXCHAIN_TOO_MANY_ATTESTATIONS": -254,
|
|
2324
2608
|
"temHOOK_DATA_TOO_LARGE": -253,
|
|
2325
|
-
"temHOOK_REJECTED": -252,
|
|
2326
2609
|
"tefFAILURE": -199,
|
|
2327
2610
|
"tefALREADY": -198,
|
|
2328
2611
|
"tefBAD_ADD_AUTH": -197,
|
|
@@ -2344,6 +2627,9 @@
|
|
|
2344
2627
|
"tefTOO_BIG": -181,
|
|
2345
2628
|
"tefNO_TICKET": -180,
|
|
2346
2629
|
"tefNFTOKEN_IS_NOT_TRANSFERABLE": -179,
|
|
2630
|
+
"tefPAST_IMPORT_SEQ": -178,
|
|
2631
|
+
"tefPAST_IMPORT_VL_SEQ": -177,
|
|
2632
|
+
"tefNONDIR_EMIT": -176,
|
|
2347
2633
|
"terRETRY": -99,
|
|
2348
2634
|
"terFUNDS_SPENT": -98,
|
|
2349
2635
|
"terINSUF_FEE_B": -97,
|
|
@@ -2359,6 +2645,7 @@
|
|
|
2359
2645
|
"terNO_AMM": -87,
|
|
2360
2646
|
"terNO_HOOK": -86,
|
|
2361
2647
|
"tesSUCCESS": 0,
|
|
2648
|
+
"tesPARTIAL": 1,
|
|
2362
2649
|
"tecCLAIM": 100,
|
|
2363
2650
|
"tecPATH_PARTIAL": 101,
|
|
2364
2651
|
"tecUNFUNDED_ADD": 102,
|
|
@@ -2369,7 +2656,7 @@
|
|
|
2369
2656
|
"tecINSUF_RESERVE_LINE": 122,
|
|
2370
2657
|
"tecINSUF_RESERVE_OFFER": 123,
|
|
2371
2658
|
"tecNO_DST": 124,
|
|
2372
|
-
"
|
|
2659
|
+
"tecNO_DST_INSUF_NATIVE": 125,
|
|
2373
2660
|
"tecNO_LINE_INSUF_RESERVE": 126,
|
|
2374
2661
|
"tecNO_LINE_REDUNDANT": 127,
|
|
2375
2662
|
"tecPATH_DRY": 128,
|
|
@@ -2430,7 +2717,9 @@
|
|
|
2430
2717
|
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 183,
|
|
2431
2718
|
"tecXCHAIN_PAYMENT_FAILED": 184,
|
|
2432
2719
|
"tecXCHAIN_SELF_COMMIT": 185,
|
|
2433
|
-
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 186
|
|
2720
|
+
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 186,
|
|
2721
|
+
"tecINSUF_RESERVE_SELLER": 187,
|
|
2722
|
+
"tecLAST_POSSIBLE_ENTRY": 255
|
|
2434
2723
|
},
|
|
2435
2724
|
"TRANSACTION_TYPES": {
|
|
2436
2725
|
"Invalid": -1,
|
|
@@ -2467,10 +2756,15 @@
|
|
|
2467
2756
|
"URITokenBuy": 47,
|
|
2468
2757
|
"URITokenCreateSellOffer": 48,
|
|
2469
2758
|
"URITokenCancelSellOffer": 49,
|
|
2759
|
+
"Remit": 95,
|
|
2760
|
+
"GenesisMint": 96,
|
|
2761
|
+
"Import": 97,
|
|
2762
|
+
"ClaimReward": 98,
|
|
2470
2763
|
"Invoke": 99,
|
|
2471
2764
|
"EnableAmendment": 100,
|
|
2472
2765
|
"SetFee": 101,
|
|
2473
2766
|
"UNLModify": 102,
|
|
2474
|
-
"EmitFailure": 103
|
|
2767
|
+
"EmitFailure": 103,
|
|
2768
|
+
"UNLReport": 104
|
|
2475
2769
|
}
|
|
2476
2770
|
}
|