ripple-binary-codec 1.8.0 → 1.10.0-beta.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/enums/definitions.json +489 -1
- package/dist/enums/src/enums/definitions.json +489 -1
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/issue.d.ts +39 -0
- package/dist/types/issue.js +81 -0
- package/dist/types/issue.js.map +1 -0
- package/dist/types/xchain-bridge.d.ts +45 -0
- package/dist/types/xchain-bridge.js +102 -0
- package/dist/types/xchain-bridge.js.map +1 -0
- package/package.json +3 -4
- package/src/README.md +3 -0
- package/src/binary.ts +188 -0
- package/src/coretypes.ts +31 -0
- package/src/enums/README.md +144 -0
- package/src/enums/bytes.ts +75 -0
- package/src/enums/constants.ts +4 -0
- package/src/enums/definitions.json +2839 -0
- package/src/enums/field.ts +85 -0
- package/src/enums/index.ts +34 -0
- package/src/enums/utils-renumber.ts +134 -0
- package/src/enums/xrpl-definitions-base.ts +111 -0
- package/src/enums/xrpl-definitions.ts +32 -0
- package/src/hash-prefixes.ts +40 -0
- package/src/hashes.ts +76 -0
- package/src/index.ts +141 -0
- package/src/ledger-hashes.ts +187 -0
- package/src/quality.ts +39 -0
- package/src/serdes/binary-parser.ts +217 -0
- package/src/serdes/binary-serializer.ts +166 -0
- package/src/shamap.ts +186 -0
- package/src/types/account-id.ts +86 -0
- package/src/types/amount.ts +256 -0
- package/src/types/blob.ts +43 -0
- package/src/types/currency.ts +140 -0
- package/src/types/hash-128.ts +33 -0
- package/src/types/hash-160.ts +20 -0
- package/src/types/hash-256.ts +16 -0
- package/src/types/hash.ts +81 -0
- package/src/types/index.ts +63 -0
- package/src/types/issue.ts +96 -0
- package/src/types/path-set.ts +290 -0
- package/src/types/serialized-type.ts +120 -0
- package/src/types/st-array.ts +107 -0
- package/src/types/st-object.ts +192 -0
- package/src/types/uint-16.ts +49 -0
- package/src/types/uint-32.ts +56 -0
- package/src/types/uint-64.ts +105 -0
- package/src/types/uint-8.ts +49 -0
- package/src/types/uint.ts +57 -0
- package/src/types/vector-256.ts +84 -0
- package/src/types/xchain-bridge.ts +128 -0
- package/test/amount.test.js +0 -43
- package/test/binary-json.test.js +0 -45
- package/test/binary-parser.test.js +0 -396
- package/test/binary-serializer.test.js +0 -289
- package/test/definitions.test.js +0 -160
- package/test/fixtures/account-tx-transactions.db +0 -0
- package/test/fixtures/codec-fixtures.json +0 -4466
- package/test/fixtures/data-driven-tests.json +0 -2919
- package/test/fixtures/delivermin-tx-binary.json +0 -1
- package/test/fixtures/delivermin-tx.json +0 -98
- package/test/fixtures/deposit-preauth-tx-binary.json +0 -1
- package/test/fixtures/deposit-preauth-tx-meta-binary.json +0 -1
- package/test/fixtures/deposit-preauth-tx.json +0 -58
- package/test/fixtures/escrow-cancel-binary.json +0 -1
- package/test/fixtures/escrow-cancel-tx.json +0 -6
- package/test/fixtures/escrow-create-binary.json +0 -1
- package/test/fixtures/escrow-create-tx.json +0 -10
- package/test/fixtures/escrow-finish-binary.json +0 -1
- package/test/fixtures/escrow-finish-meta-binary.json +0 -1
- package/test/fixtures/escrow-finish-tx.json +0 -95
- package/test/fixtures/ledger-full-38129.json +0 -1
- package/test/fixtures/ledger-full-40000.json +0 -1
- package/test/fixtures/negative-unl.json +0 -12
- package/test/fixtures/nf-token.json +0 -547
- package/test/fixtures/payment-channel-claim-binary.json +0 -1
- package/test/fixtures/payment-channel-claim-tx.json +0 -8
- package/test/fixtures/payment-channel-create-binary.json +0 -1
- package/test/fixtures/payment-channel-create-tx.json +0 -11
- package/test/fixtures/payment-channel-fund-binary.json +0 -1
- package/test/fixtures/payment-channel-fund-tx.json +0 -7
- package/test/fixtures/signerlistset-tx-binary.json +0 -1
- package/test/fixtures/signerlistset-tx-meta-binary.json +0 -1
- package/test/fixtures/signerlistset-tx.json +0 -94
- package/test/fixtures/ticket-create-binary.json +0 -1
- package/test/fixtures/ticket-create-tx.json +0 -7
- package/test/fixtures/x-codec-fixtures.json +0 -188
- package/test/hash.test.js +0 -135
- package/test/ledger.test.js +0 -29
- package/test/lower-case-hex.test.js +0 -46
- package/test/pseudo-transaction.test.js +0 -38
- package/test/quality.test.js +0 -15
- package/test/shamap.test.js +0 -89
- package/test/signing-data-encoding.test.js +0 -242
- package/test/tx-encode-decode.test.js +0 -119
- package/test/types.test.js +0 -34
- package/test/uint.test.js +0 -148
- package/test/utils.js +0 -30
- package/test/x-address.test.js +0 -181
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"UInt192": 21,
|
|
22
22
|
"UInt384": 22,
|
|
23
23
|
"UInt512": 23,
|
|
24
|
+
"Issue": 24,
|
|
25
|
+
"XChainBridge": 25,
|
|
24
26
|
"Transaction": 10001,
|
|
25
27
|
"LedgerEntry": 10002,
|
|
26
28
|
"Validation": 10003,
|
|
@@ -34,8 +36,11 @@
|
|
|
34
36
|
"Ticket": 84,
|
|
35
37
|
"SignerList": 83,
|
|
36
38
|
"Offer": 111,
|
|
39
|
+
"Bridge": 105,
|
|
37
40
|
"LedgerHashes": 104,
|
|
38
41
|
"Amendments": 102,
|
|
42
|
+
"XChainOwnedClaimID": 113,
|
|
43
|
+
"XChainOwnedCreateAccountClaimID": 116,
|
|
39
44
|
"FeeSettings": 115,
|
|
40
45
|
"Escrow": 117,
|
|
41
46
|
"PayChannel": 120,
|
|
@@ -44,6 +49,7 @@
|
|
|
44
49
|
"NegativeUNL": 78,
|
|
45
50
|
"NFTokenPage": 80,
|
|
46
51
|
"NFTokenOffer": 55,
|
|
52
|
+
"AMM": 121,
|
|
47
53
|
"Any": -3,
|
|
48
54
|
"Child": -2,
|
|
49
55
|
"Nickname": 110,
|
|
@@ -231,6 +237,16 @@
|
|
|
231
237
|
"type": "UInt8"
|
|
232
238
|
}
|
|
233
239
|
],
|
|
240
|
+
[
|
|
241
|
+
"WasLockingChainSend",
|
|
242
|
+
{
|
|
243
|
+
"nth": 19,
|
|
244
|
+
"isVLEncoded": false,
|
|
245
|
+
"isSerialized": true,
|
|
246
|
+
"isSigningField": true,
|
|
247
|
+
"type": "UInt8"
|
|
248
|
+
}
|
|
249
|
+
],
|
|
234
250
|
[
|
|
235
251
|
"LedgerEntryType",
|
|
236
252
|
{
|
|
@@ -271,6 +287,26 @@
|
|
|
271
287
|
"type": "UInt16"
|
|
272
288
|
}
|
|
273
289
|
],
|
|
290
|
+
[
|
|
291
|
+
"TradingFee",
|
|
292
|
+
{
|
|
293
|
+
"nth": 5,
|
|
294
|
+
"isVLEncoded": false,
|
|
295
|
+
"isSerialized": true,
|
|
296
|
+
"isSigningField": true,
|
|
297
|
+
"type": "UInt16"
|
|
298
|
+
}
|
|
299
|
+
],
|
|
300
|
+
[
|
|
301
|
+
"DiscountedFee",
|
|
302
|
+
{
|
|
303
|
+
"nth": 6,
|
|
304
|
+
"isVLEncoded": false,
|
|
305
|
+
"isSerialized": true,
|
|
306
|
+
"isSigningField": true,
|
|
307
|
+
"type": "UInt16"
|
|
308
|
+
}
|
|
309
|
+
],
|
|
274
310
|
[
|
|
275
311
|
"Version",
|
|
276
312
|
{
|
|
@@ -771,6 +807,26 @@
|
|
|
771
807
|
"type": "UInt32"
|
|
772
808
|
}
|
|
773
809
|
],
|
|
810
|
+
[
|
|
811
|
+
"VoteWeight",
|
|
812
|
+
{
|
|
813
|
+
"nth": 48,
|
|
814
|
+
"isVLEncoded": false,
|
|
815
|
+
"isSerialized": true,
|
|
816
|
+
"isSigningField": true,
|
|
817
|
+
"type": "UInt32"
|
|
818
|
+
}
|
|
819
|
+
],
|
|
820
|
+
[
|
|
821
|
+
"FirstNFTokenSequence",
|
|
822
|
+
{
|
|
823
|
+
"nth": 50,
|
|
824
|
+
"isVLEncoded": false,
|
|
825
|
+
"isSerialized": true,
|
|
826
|
+
"isSigningField": true,
|
|
827
|
+
"type": "UInt32"
|
|
828
|
+
}
|
|
829
|
+
],
|
|
774
830
|
[
|
|
775
831
|
"IndexNext",
|
|
776
832
|
{
|
|
@@ -941,6 +997,36 @@
|
|
|
941
997
|
"type": "UInt64"
|
|
942
998
|
}
|
|
943
999
|
],
|
|
1000
|
+
[
|
|
1001
|
+
"XChainClaimID",
|
|
1002
|
+
{
|
|
1003
|
+
"nth": 20,
|
|
1004
|
+
"isVLEncoded": false,
|
|
1005
|
+
"isSerialized": true,
|
|
1006
|
+
"isSigningField": true,
|
|
1007
|
+
"type": "UInt64"
|
|
1008
|
+
}
|
|
1009
|
+
],
|
|
1010
|
+
[
|
|
1011
|
+
"XChainAccountCreateCount",
|
|
1012
|
+
{
|
|
1013
|
+
"nth": 21,
|
|
1014
|
+
"isVLEncoded": false,
|
|
1015
|
+
"isSerialized": true,
|
|
1016
|
+
"isSigningField": true,
|
|
1017
|
+
"type": "UInt64"
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
[
|
|
1021
|
+
"XChainAccountClaimCount",
|
|
1022
|
+
{
|
|
1023
|
+
"nth": 22,
|
|
1024
|
+
"isVLEncoded": false,
|
|
1025
|
+
"isSerialized": true,
|
|
1026
|
+
"isSigningField": true,
|
|
1027
|
+
"type": "UInt64"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
944
1030
|
[
|
|
945
1031
|
"EmailHash",
|
|
946
1032
|
{
|
|
@@ -1121,6 +1207,16 @@
|
|
|
1121
1207
|
"type": "Hash256"
|
|
1122
1208
|
}
|
|
1123
1209
|
],
|
|
1210
|
+
[
|
|
1211
|
+
"AMMID",
|
|
1212
|
+
{
|
|
1213
|
+
"nth": 14,
|
|
1214
|
+
"isVLEncoded": false,
|
|
1215
|
+
"isSerialized": true,
|
|
1216
|
+
"isSigningField": true,
|
|
1217
|
+
"type": "Hash256"
|
|
1218
|
+
}
|
|
1219
|
+
],
|
|
1124
1220
|
[
|
|
1125
1221
|
"BookDirectory",
|
|
1126
1222
|
{
|
|
@@ -1391,6 +1487,36 @@
|
|
|
1391
1487
|
"type": "Amount"
|
|
1392
1488
|
}
|
|
1393
1489
|
],
|
|
1490
|
+
[
|
|
1491
|
+
"Amount2",
|
|
1492
|
+
{
|
|
1493
|
+
"nth": 11,
|
|
1494
|
+
"isVLEncoded": false,
|
|
1495
|
+
"isSerialized": true,
|
|
1496
|
+
"isSigningField": true,
|
|
1497
|
+
"type": "Amount"
|
|
1498
|
+
}
|
|
1499
|
+
],
|
|
1500
|
+
[
|
|
1501
|
+
"BidMin",
|
|
1502
|
+
{
|
|
1503
|
+
"nth": 12,
|
|
1504
|
+
"isVLEncoded": false,
|
|
1505
|
+
"isSerialized": true,
|
|
1506
|
+
"isSigningField": true,
|
|
1507
|
+
"type": "Amount"
|
|
1508
|
+
}
|
|
1509
|
+
],
|
|
1510
|
+
[
|
|
1511
|
+
"BidMax",
|
|
1512
|
+
{
|
|
1513
|
+
"nth": 13,
|
|
1514
|
+
"isVLEncoded": false,
|
|
1515
|
+
"isSerialized": true,
|
|
1516
|
+
"isSigningField": true,
|
|
1517
|
+
"type": "Amount"
|
|
1518
|
+
}
|
|
1519
|
+
],
|
|
1394
1520
|
[
|
|
1395
1521
|
"MinimumOffer",
|
|
1396
1522
|
{
|
|
@@ -1431,6 +1557,106 @@
|
|
|
1431
1557
|
"type": "Amount"
|
|
1432
1558
|
}
|
|
1433
1559
|
],
|
|
1560
|
+
[
|
|
1561
|
+
"BaseFeeDrops",
|
|
1562
|
+
{
|
|
1563
|
+
"nth": 22,
|
|
1564
|
+
"isVLEncoded": false,
|
|
1565
|
+
"isSerialized": true,
|
|
1566
|
+
"isSigningField": true,
|
|
1567
|
+
"type": "Amount"
|
|
1568
|
+
}
|
|
1569
|
+
],
|
|
1570
|
+
[
|
|
1571
|
+
"ReserveBaseDrops",
|
|
1572
|
+
{
|
|
1573
|
+
"nth": 23,
|
|
1574
|
+
"isVLEncoded": false,
|
|
1575
|
+
"isSerialized": true,
|
|
1576
|
+
"isSigningField": true,
|
|
1577
|
+
"type": "Amount"
|
|
1578
|
+
}
|
|
1579
|
+
],
|
|
1580
|
+
[
|
|
1581
|
+
"ReserveIncrementDrops",
|
|
1582
|
+
{
|
|
1583
|
+
"nth": 24,
|
|
1584
|
+
"isVLEncoded": false,
|
|
1585
|
+
"isSerialized": true,
|
|
1586
|
+
"isSigningField": true,
|
|
1587
|
+
"type": "Amount"
|
|
1588
|
+
}
|
|
1589
|
+
],
|
|
1590
|
+
[
|
|
1591
|
+
"LPTokenOut",
|
|
1592
|
+
{
|
|
1593
|
+
"nth": 25,
|
|
1594
|
+
"isVLEncoded": false,
|
|
1595
|
+
"isSerialized": true,
|
|
1596
|
+
"isSigningField": true,
|
|
1597
|
+
"type": "Amount"
|
|
1598
|
+
}
|
|
1599
|
+
],
|
|
1600
|
+
[
|
|
1601
|
+
"LPTokenIn",
|
|
1602
|
+
{
|
|
1603
|
+
"nth": 26,
|
|
1604
|
+
"isVLEncoded": false,
|
|
1605
|
+
"isSerialized": true,
|
|
1606
|
+
"isSigningField": true,
|
|
1607
|
+
"type": "Amount"
|
|
1608
|
+
}
|
|
1609
|
+
],
|
|
1610
|
+
[
|
|
1611
|
+
"EPrice",
|
|
1612
|
+
{
|
|
1613
|
+
"nth": 27,
|
|
1614
|
+
"isVLEncoded": false,
|
|
1615
|
+
"isSerialized": true,
|
|
1616
|
+
"isSigningField": true,
|
|
1617
|
+
"type": "Amount"
|
|
1618
|
+
}
|
|
1619
|
+
],
|
|
1620
|
+
[
|
|
1621
|
+
"Price",
|
|
1622
|
+
{
|
|
1623
|
+
"nth": 28,
|
|
1624
|
+
"isVLEncoded": false,
|
|
1625
|
+
"isSerialized": true,
|
|
1626
|
+
"isSigningField": true,
|
|
1627
|
+
"type": "Amount"
|
|
1628
|
+
}
|
|
1629
|
+
],
|
|
1630
|
+
[
|
|
1631
|
+
"SignatureReward",
|
|
1632
|
+
{
|
|
1633
|
+
"nth": 29,
|
|
1634
|
+
"isVLEncoded": false,
|
|
1635
|
+
"isSerialized": true,
|
|
1636
|
+
"isSigningField": true,
|
|
1637
|
+
"type": "Amount"
|
|
1638
|
+
}
|
|
1639
|
+
],
|
|
1640
|
+
[
|
|
1641
|
+
"MinAccountCreateAmount",
|
|
1642
|
+
{
|
|
1643
|
+
"nth": 30,
|
|
1644
|
+
"isVLEncoded": false,
|
|
1645
|
+
"isSerialized": true,
|
|
1646
|
+
"isSigningField": true,
|
|
1647
|
+
"type": "Amount"
|
|
1648
|
+
}
|
|
1649
|
+
],
|
|
1650
|
+
[
|
|
1651
|
+
"LPTokenBalance",
|
|
1652
|
+
{
|
|
1653
|
+
"nth": 31,
|
|
1654
|
+
"isVLEncoded": false,
|
|
1655
|
+
"isSerialized": true,
|
|
1656
|
+
"isSigningField": true,
|
|
1657
|
+
"type": "Amount"
|
|
1658
|
+
}
|
|
1659
|
+
],
|
|
1434
1660
|
[
|
|
1435
1661
|
"PublicKey",
|
|
1436
1662
|
{
|
|
@@ -1771,6 +1997,66 @@
|
|
|
1771
1997
|
"type": "AccountID"
|
|
1772
1998
|
}
|
|
1773
1999
|
],
|
|
2000
|
+
[
|
|
2001
|
+
"OtherChainSource",
|
|
2002
|
+
{
|
|
2003
|
+
"nth": 18,
|
|
2004
|
+
"isVLEncoded": true,
|
|
2005
|
+
"isSerialized": true,
|
|
2006
|
+
"isSigningField": true,
|
|
2007
|
+
"type": "AccountID"
|
|
2008
|
+
}
|
|
2009
|
+
],
|
|
2010
|
+
[
|
|
2011
|
+
"OtherChainDestination",
|
|
2012
|
+
{
|
|
2013
|
+
"nth": 19,
|
|
2014
|
+
"isVLEncoded": true,
|
|
2015
|
+
"isSerialized": true,
|
|
2016
|
+
"isSigningField": true,
|
|
2017
|
+
"type": "AccountID"
|
|
2018
|
+
}
|
|
2019
|
+
],
|
|
2020
|
+
[
|
|
2021
|
+
"AttestationSignerAccount",
|
|
2022
|
+
{
|
|
2023
|
+
"nth": 20,
|
|
2024
|
+
"isVLEncoded": true,
|
|
2025
|
+
"isSerialized": true,
|
|
2026
|
+
"isSigningField": true,
|
|
2027
|
+
"type": "AccountID"
|
|
2028
|
+
}
|
|
2029
|
+
],
|
|
2030
|
+
[
|
|
2031
|
+
"AttestationRewardAccount",
|
|
2032
|
+
{
|
|
2033
|
+
"nth": 21,
|
|
2034
|
+
"isVLEncoded": true,
|
|
2035
|
+
"isSerialized": true,
|
|
2036
|
+
"isSigningField": true,
|
|
2037
|
+
"type": "AccountID"
|
|
2038
|
+
}
|
|
2039
|
+
],
|
|
2040
|
+
[
|
|
2041
|
+
"LockingChainDoor",
|
|
2042
|
+
{
|
|
2043
|
+
"nth": 22,
|
|
2044
|
+
"isVLEncoded": true,
|
|
2045
|
+
"isSerialized": true,
|
|
2046
|
+
"isSigningField": true,
|
|
2047
|
+
"type": "AccountID"
|
|
2048
|
+
}
|
|
2049
|
+
],
|
|
2050
|
+
[
|
|
2051
|
+
"IssuingChainDoor",
|
|
2052
|
+
{
|
|
2053
|
+
"nth": 23,
|
|
2054
|
+
"isVLEncoded": true,
|
|
2055
|
+
"isSerialized": true,
|
|
2056
|
+
"isSigningField": true,
|
|
2057
|
+
"type": "AccountID"
|
|
2058
|
+
}
|
|
2059
|
+
],
|
|
1774
2060
|
[
|
|
1775
2061
|
"Indexes",
|
|
1776
2062
|
{
|
|
@@ -1821,6 +2107,56 @@
|
|
|
1821
2107
|
"type": "PathSet"
|
|
1822
2108
|
}
|
|
1823
2109
|
],
|
|
2110
|
+
[
|
|
2111
|
+
"LockingChainIssue",
|
|
2112
|
+
{
|
|
2113
|
+
"nth": 1,
|
|
2114
|
+
"isVLEncoded": false,
|
|
2115
|
+
"isSerialized": true,
|
|
2116
|
+
"isSigningField": true,
|
|
2117
|
+
"type": "Issue"
|
|
2118
|
+
}
|
|
2119
|
+
],
|
|
2120
|
+
[
|
|
2121
|
+
"IssuingChainIssue",
|
|
2122
|
+
{
|
|
2123
|
+
"nth": 2,
|
|
2124
|
+
"isVLEncoded": false,
|
|
2125
|
+
"isSerialized": true,
|
|
2126
|
+
"isSigningField": true,
|
|
2127
|
+
"type": "Issue"
|
|
2128
|
+
}
|
|
2129
|
+
],
|
|
2130
|
+
[
|
|
2131
|
+
"Asset",
|
|
2132
|
+
{
|
|
2133
|
+
"nth": 3,
|
|
2134
|
+
"isVLEncoded": false,
|
|
2135
|
+
"isSerialized": true,
|
|
2136
|
+
"isSigningField": true,
|
|
2137
|
+
"type": "Issue"
|
|
2138
|
+
}
|
|
2139
|
+
],
|
|
2140
|
+
[
|
|
2141
|
+
"Asset2",
|
|
2142
|
+
{
|
|
2143
|
+
"nth": 4,
|
|
2144
|
+
"isVLEncoded": false,
|
|
2145
|
+
"isSerialized": true,
|
|
2146
|
+
"isSigningField": true,
|
|
2147
|
+
"type": "Issue"
|
|
2148
|
+
}
|
|
2149
|
+
],
|
|
2150
|
+
[
|
|
2151
|
+
"XChainBridge",
|
|
2152
|
+
{
|
|
2153
|
+
"nth": 1,
|
|
2154
|
+
"isVLEncoded": false,
|
|
2155
|
+
"isSerialized": true,
|
|
2156
|
+
"isSigningField": true,
|
|
2157
|
+
"type": "XChainBridge"
|
|
2158
|
+
}
|
|
2159
|
+
],
|
|
1824
2160
|
[
|
|
1825
2161
|
"TransactionMetaData",
|
|
1826
2162
|
{
|
|
@@ -2031,6 +2367,76 @@
|
|
|
2031
2367
|
"type": "STObject"
|
|
2032
2368
|
}
|
|
2033
2369
|
],
|
|
2370
|
+
[
|
|
2371
|
+
"VoteEntry",
|
|
2372
|
+
{
|
|
2373
|
+
"nth": 25,
|
|
2374
|
+
"isVLEncoded": false,
|
|
2375
|
+
"isSerialized": true,
|
|
2376
|
+
"isSigningField": true,
|
|
2377
|
+
"type": "STObject"
|
|
2378
|
+
}
|
|
2379
|
+
],
|
|
2380
|
+
[
|
|
2381
|
+
"AuctionSlot",
|
|
2382
|
+
{
|
|
2383
|
+
"nth": 26,
|
|
2384
|
+
"isVLEncoded": false,
|
|
2385
|
+
"isSerialized": true,
|
|
2386
|
+
"isSigningField": true,
|
|
2387
|
+
"type": "STObject"
|
|
2388
|
+
}
|
|
2389
|
+
],
|
|
2390
|
+
[
|
|
2391
|
+
"AuthAccount",
|
|
2392
|
+
{
|
|
2393
|
+
"nth": 27,
|
|
2394
|
+
"isVLEncoded": false,
|
|
2395
|
+
"isSerialized": true,
|
|
2396
|
+
"isSigningField": true,
|
|
2397
|
+
"type": "STObject"
|
|
2398
|
+
}
|
|
2399
|
+
],
|
|
2400
|
+
[
|
|
2401
|
+
"XChainClaimProofSig",
|
|
2402
|
+
{
|
|
2403
|
+
"nth": 28,
|
|
2404
|
+
"isVLEncoded": false,
|
|
2405
|
+
"isSerialized": true,
|
|
2406
|
+
"isSigningField": true,
|
|
2407
|
+
"type": "STObject"
|
|
2408
|
+
}
|
|
2409
|
+
],
|
|
2410
|
+
[
|
|
2411
|
+
"XChainCreateAccountProofSig",
|
|
2412
|
+
{
|
|
2413
|
+
"nth": 29,
|
|
2414
|
+
"isVLEncoded": false,
|
|
2415
|
+
"isSerialized": true,
|
|
2416
|
+
"isSigningField": true,
|
|
2417
|
+
"type": "STObject"
|
|
2418
|
+
}
|
|
2419
|
+
],
|
|
2420
|
+
[
|
|
2421
|
+
"XChainClaimAttestationCollectionElement",
|
|
2422
|
+
{
|
|
2423
|
+
"nth": 30,
|
|
2424
|
+
"isVLEncoded": false,
|
|
2425
|
+
"isSerialized": true,
|
|
2426
|
+
"isSigningField": true,
|
|
2427
|
+
"type": "STObject"
|
|
2428
|
+
}
|
|
2429
|
+
],
|
|
2430
|
+
[
|
|
2431
|
+
"XChainCreateAccountAttestationCollectionElement",
|
|
2432
|
+
{
|
|
2433
|
+
"nth": 31,
|
|
2434
|
+
"isVLEncoded": false,
|
|
2435
|
+
"isSerialized": true,
|
|
2436
|
+
"isSigningField": true,
|
|
2437
|
+
"type": "STObject"
|
|
2438
|
+
}
|
|
2439
|
+
],
|
|
2034
2440
|
[
|
|
2035
2441
|
"Signers",
|
|
2036
2442
|
{
|
|
@@ -2121,6 +2527,16 @@
|
|
|
2121
2527
|
"type": "STArray"
|
|
2122
2528
|
}
|
|
2123
2529
|
],
|
|
2530
|
+
[
|
|
2531
|
+
"VoteSlots",
|
|
2532
|
+
{
|
|
2533
|
+
"nth": 12,
|
|
2534
|
+
"isVLEncoded": false,
|
|
2535
|
+
"isSerialized": true,
|
|
2536
|
+
"isSigningField": true,
|
|
2537
|
+
"type": "STArray"
|
|
2538
|
+
}
|
|
2539
|
+
],
|
|
2124
2540
|
[
|
|
2125
2541
|
"Majorities",
|
|
2126
2542
|
{
|
|
@@ -2170,6 +2586,36 @@
|
|
|
2170
2586
|
"isSigningField": true,
|
|
2171
2587
|
"type": "STArray"
|
|
2172
2588
|
}
|
|
2589
|
+
],
|
|
2590
|
+
[
|
|
2591
|
+
"XChainClaimAttestations",
|
|
2592
|
+
{
|
|
2593
|
+
"nth": 21,
|
|
2594
|
+
"isVLEncoded": false,
|
|
2595
|
+
"isSerialized": true,
|
|
2596
|
+
"isSigningField": true,
|
|
2597
|
+
"type": "STArray"
|
|
2598
|
+
}
|
|
2599
|
+
],
|
|
2600
|
+
[
|
|
2601
|
+
"XChainCreateAccountAttestations",
|
|
2602
|
+
{
|
|
2603
|
+
"nth": 22,
|
|
2604
|
+
"isVLEncoded": false,
|
|
2605
|
+
"isSerialized": true,
|
|
2606
|
+
"isSigningField": true,
|
|
2607
|
+
"type": "STArray"
|
|
2608
|
+
}
|
|
2609
|
+
],
|
|
2610
|
+
[
|
|
2611
|
+
"AuthAccounts",
|
|
2612
|
+
{
|
|
2613
|
+
"nth": 25,
|
|
2614
|
+
"isVLEncoded": false,
|
|
2615
|
+
"isSerialized": true,
|
|
2616
|
+
"isSigningField": true,
|
|
2617
|
+
"type": "STArray"
|
|
2618
|
+
}
|
|
2173
2619
|
]
|
|
2174
2620
|
],
|
|
2175
2621
|
"TRANSACTION_RESULTS": {
|
|
@@ -2227,6 +2673,13 @@
|
|
|
2227
2673
|
"temUNKNOWN": -264,
|
|
2228
2674
|
"temSEQ_AND_TICKET": -263,
|
|
2229
2675
|
"temBAD_NFTOKEN_TRANSFER_FEE": -262,
|
|
2676
|
+
"temBAD_AMM_TOKENS": -261,
|
|
2677
|
+
"temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
|
|
2678
|
+
"temXCHAIN_BAD_PROOF": -259,
|
|
2679
|
+
"temXCHAIN_BRIDGE_BAD_ISSUES": -258,
|
|
2680
|
+
"temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
|
|
2681
|
+
"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
|
|
2682
|
+
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
|
|
2230
2683
|
"tefFAILURE": -199,
|
|
2231
2684
|
"tefALREADY": -198,
|
|
2232
2685
|
"tefBAD_ADD_AUTH": -197,
|
|
@@ -2260,6 +2713,7 @@
|
|
|
2260
2713
|
"terNO_RIPPLE": -90,
|
|
2261
2714
|
"terQUEUED": -89,
|
|
2262
2715
|
"terPRE_TICKET": -88,
|
|
2716
|
+
"terNO_AMM": -87,
|
|
2263
2717
|
"tesSUCCESS": 0,
|
|
2264
2718
|
"tecCLAIM": 100,
|
|
2265
2719
|
"tecPATH_PARTIAL": 101,
|
|
@@ -2306,7 +2760,28 @@
|
|
|
2306
2760
|
"tecCANT_ACCEPT_OWN_NFTOKEN_OFFER": 158,
|
|
2307
2761
|
"tecINSUFFICIENT_FUNDS": 159,
|
|
2308
2762
|
"tecOBJECT_NOT_FOUND": 160,
|
|
2309
|
-
"tecINSUFFICIENT_PAYMENT": 161
|
|
2763
|
+
"tecINSUFFICIENT_PAYMENT": 161,
|
|
2764
|
+
"tecUNFUNDED_AMM": 162,
|
|
2765
|
+
"tecAMM_BALANCE": 163,
|
|
2766
|
+
"tecAMM_FAILED": 164,
|
|
2767
|
+
"tecAMM_INVALID_TOKENS": 165,
|
|
2768
|
+
"tecXCHAIN_BAD_TRANSFER_ISSUE": 166,
|
|
2769
|
+
"tecXCHAIN_NO_CLAIM_ID": 167,
|
|
2770
|
+
"tecXCHAIN_BAD_CLAIM_ID": 168,
|
|
2771
|
+
"tecXCHAIN_CLAIM_NO_QUORUM": 169,
|
|
2772
|
+
"tecXCHAIN_PROOF_UNKNOWN_KEY": 170,
|
|
2773
|
+
"tecXCHAIN_CREATE_ACCOUNT_NONXRP_ISSUE": 171,
|
|
2774
|
+
"tecXCHAIN_WRONG_CHAIN": 172,
|
|
2775
|
+
"tecXCHAIN_REWARD_MISMATCH": 173,
|
|
2776
|
+
"tecXCHAIN_NO_SIGNERS_LIST": 174,
|
|
2777
|
+
"tecXCHAIN_SENDING_ACCOUNT_MISMATCH": 175,
|
|
2778
|
+
"tecXCHAIN_INSUFF_CREATE_AMOUNT": 176,
|
|
2779
|
+
"tecXCHAIN_ACCOUNT_CREATE_PAST": 177,
|
|
2780
|
+
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 178,
|
|
2781
|
+
"tecXCHAIN_PAYMENT_FAILED": 179,
|
|
2782
|
+
"tecXCHAIN_SELF_COMMIT": 180,
|
|
2783
|
+
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 181,
|
|
2784
|
+
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 182
|
|
2310
2785
|
},
|
|
2311
2786
|
"TRANSACTION_TYPES": {
|
|
2312
2787
|
"Invalid": -1,
|
|
@@ -2339,6 +2814,19 @@
|
|
|
2339
2814
|
"NFTokenCancelOffer": 28,
|
|
2340
2815
|
"NFTokenAcceptOffer": 29,
|
|
2341
2816
|
"Clawback": 30,
|
|
2817
|
+
"AMMCreate": 35,
|
|
2818
|
+
"AMMDeposit": 36,
|
|
2819
|
+
"AMMWithdraw": 37,
|
|
2820
|
+
"AMMVote": 38,
|
|
2821
|
+
"AMMBid": 39,
|
|
2822
|
+
"XChainCreateBridge": 40,
|
|
2823
|
+
"XChainCreateClaimID": 41,
|
|
2824
|
+
"XChainCommit": 42,
|
|
2825
|
+
"XChainClaim": 43,
|
|
2826
|
+
"XChainAccountCreateCommit": 44,
|
|
2827
|
+
"XChainAddClaimAttestation": 45,
|
|
2828
|
+
"XChainAddAccountCreateAttestation": 46,
|
|
2829
|
+
"XChainModifyBridge": 47,
|
|
2342
2830
|
"EnableAmendment": 100,
|
|
2343
2831
|
"SetFee": 101,
|
|
2344
2832
|
"UNLModify": 102
|