ripple-binary-codec 2.0.0 → 4.0.0-mpt-beta

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.
Files changed (42) hide show
  1. package/dist/enums/definitions.json +212 -11
  2. package/dist/enums/src/enums/definitions.json +212 -11
  3. package/dist/serdes/binary-parser.js +2 -2
  4. package/dist/serdes/binary-parser.js.map +1 -1
  5. package/dist/src/enums/definitions.json +212 -11
  6. package/dist/src/serdes/binary-parser.js +2 -2
  7. package/dist/src/serdes/binary-parser.js.map +1 -1
  8. package/dist/src/types/amount.d.ts +29 -5
  9. package/dist/src/types/amount.js +85 -8
  10. package/dist/src/types/amount.js.map +1 -1
  11. package/dist/src/types/blob.js +3 -0
  12. package/dist/src/types/blob.js.map +1 -1
  13. package/dist/src/types/hash-192.d.ts +10 -0
  14. package/dist/src/types/hash-192.js +19 -0
  15. package/dist/src/types/hash-192.js.map +1 -0
  16. package/dist/src/types/index.d.ts +2 -1
  17. package/dist/src/types/index.js +4 -1
  18. package/dist/src/types/index.js.map +1 -1
  19. package/dist/src/types/st-array.js +4 -1
  20. package/dist/src/types/st-array.js.map +1 -1
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/dist/types/amount.d.ts +29 -5
  23. package/dist/types/amount.js +85 -8
  24. package/dist/types/amount.js.map +1 -1
  25. package/dist/types/blob.js +3 -0
  26. package/dist/types/blob.js.map +1 -1
  27. package/dist/types/hash-192.d.ts +10 -0
  28. package/dist/types/hash-192.js +19 -0
  29. package/dist/types/hash-192.js.map +1 -0
  30. package/dist/types/index.d.ts +2 -1
  31. package/dist/types/index.js +4 -1
  32. package/dist/types/index.js.map +1 -1
  33. package/dist/types/st-array.js +4 -1
  34. package/dist/types/st-array.js.map +1 -1
  35. package/package.json +4 -4
  36. package/src/enums/definitions.json +212 -11
  37. package/src/serdes/binary-parser.ts +6 -2
  38. package/src/types/amount.ts +119 -12
  39. package/src/types/blob.ts +3 -0
  40. package/src/types/hash-192.ts +19 -0
  41. package/src/types/index.ts +3 -0
  42. package/src/types/st-array.ts +7 -1
@@ -18,11 +18,12 @@
18
18
  "PathSet": 18,
19
19
  "Vector256": 19,
20
20
  "UInt96": 20,
21
- "UInt192": 21,
21
+ "Hash192": 21,
22
22
  "UInt384": 22,
23
23
  "UInt512": 23,
24
24
  "Issue": 24,
25
25
  "XChainBridge": 25,
26
+ "Currency": 26,
26
27
  "Transaction": 10001,
27
28
  "LedgerEntry": 10002,
28
29
  "Validation": 10003,
@@ -51,6 +52,9 @@
51
52
  "NFTokenOffer": 55,
52
53
  "AMM": 121,
53
54
  "DID": 73,
55
+ "Oracle": 128,
56
+ "MPTokenIssuance": 126,
57
+ "MPToken": 127,
54
58
  "Any": -3,
55
59
  "Child": -2,
56
60
  "Nickname": 110,
@@ -208,6 +212,16 @@
208
212
  "type": "UInt8"
209
213
  }
210
214
  ],
215
+ [
216
+ "Scale",
217
+ {
218
+ "nth": 4,
219
+ "isVLEncoded": false,
220
+ "isSerialized": true,
221
+ "isSigningField": true,
222
+ "type": "UInt8"
223
+ }
224
+ ],
211
225
  [
212
226
  "TickSize",
213
227
  {
@@ -248,6 +262,16 @@
248
262
  "type": "UInt8"
249
263
  }
250
264
  ],
265
+ [
266
+ "AssetScale",
267
+ {
268
+ "nth": 20,
269
+ "isVLEncoded": false,
270
+ "isSerialized": true,
271
+ "isSigningField": true,
272
+ "type": "UInt8"
273
+ }
274
+ ],
251
275
  [
252
276
  "LedgerEntryType",
253
277
  {
@@ -498,6 +522,16 @@
498
522
  "type": "UInt32"
499
523
  }
500
524
  ],
525
+ [
526
+ "LastUpdateTime",
527
+ {
528
+ "nth": 15,
529
+ "isVLEncoded": false,
530
+ "isSerialized": true,
531
+ "isSigningField": true,
532
+ "type": "UInt32"
533
+ }
534
+ ],
501
535
  [
502
536
  "HighQualityIn",
503
537
  {
@@ -828,6 +862,16 @@
828
862
  "type": "UInt32"
829
863
  }
830
864
  ],
865
+ [
866
+ "OracleDocumentID",
867
+ {
868
+ "nth": 51,
869
+ "isVLEncoded": false,
870
+ "isSerialized": true,
871
+ "isSigningField": true,
872
+ "type": "UInt32"
873
+ }
874
+ ],
831
875
  [
832
876
  "IndexNext",
833
877
  {
@@ -1028,6 +1072,56 @@
1028
1072
  "type": "UInt64"
1029
1073
  }
1030
1074
  ],
1075
+ [
1076
+ "AssetPrice",
1077
+ {
1078
+ "nth": 23,
1079
+ "isVLEncoded": false,
1080
+ "isSerialized": true,
1081
+ "isSigningField": true,
1082
+ "type": "UInt64"
1083
+ }
1084
+ ],
1085
+ [
1086
+ "MaximumAmount",
1087
+ {
1088
+ "nth": 24,
1089
+ "isVLEncoded": false,
1090
+ "isSerialized": true,
1091
+ "isSigningField": true,
1092
+ "type": "UInt64"
1093
+ }
1094
+ ],
1095
+ [
1096
+ "OutstandingAmount",
1097
+ {
1098
+ "nth": 25,
1099
+ "isVLEncoded": false,
1100
+ "isSerialized": true,
1101
+ "isSigningField": true,
1102
+ "type": "UInt64"
1103
+ }
1104
+ ],
1105
+ [
1106
+ "LockedAmount",
1107
+ {
1108
+ "nth": 26,
1109
+ "isVLEncoded": false,
1110
+ "isSerialized": true,
1111
+ "isSigningField": true,
1112
+ "type": "UInt64"
1113
+ }
1114
+ ],
1115
+ [
1116
+ "MPTAmount",
1117
+ {
1118
+ "nth": 27,
1119
+ "isVLEncoded": false,
1120
+ "isSerialized": true,
1121
+ "isSigningField": true,
1122
+ "type": "UInt64"
1123
+ }
1124
+ ],
1031
1125
  [
1032
1126
  "EmailHash",
1033
1127
  {
@@ -1078,6 +1172,16 @@
1078
1172
  "type": "Hash160"
1079
1173
  }
1080
1174
  ],
1175
+ [
1176
+ "MPTokenIssuanceID",
1177
+ {
1178
+ "nth": 1,
1179
+ "isVLEncoded": false,
1180
+ "isSerialized": true,
1181
+ "isSigningField": true,
1182
+ "type": "Hash192"
1183
+ }
1184
+ ],
1081
1185
  [
1082
1186
  "LedgerHash",
1083
1187
  {
@@ -1918,6 +2022,36 @@
1918
2022
  "type": "Blob"
1919
2023
  }
1920
2024
  ],
2025
+ [
2026
+ "AssetClass",
2027
+ {
2028
+ "nth": 28,
2029
+ "isVLEncoded": true,
2030
+ "isSerialized": true,
2031
+ "isSigningField": true,
2032
+ "type": "Blob"
2033
+ }
2034
+ ],
2035
+ [
2036
+ "Provider",
2037
+ {
2038
+ "nth": 29,
2039
+ "isVLEncoded": true,
2040
+ "isSerialized": true,
2041
+ "isSigningField": true,
2042
+ "type": "Blob"
2043
+ }
2044
+ ],
2045
+ [
2046
+ "MPTokenMetadata",
2047
+ {
2048
+ "nth": 30,
2049
+ "isVLEncoded": true,
2050
+ "isSerialized": true,
2051
+ "isSigningField": true,
2052
+ "type": "Blob"
2053
+ }
2054
+ ],
1921
2055
  [
1922
2056
  "Account",
1923
2057
  {
@@ -2008,6 +2142,16 @@
2008
2142
  "type": "AccountID"
2009
2143
  }
2010
2144
  ],
2145
+ [
2146
+ "MPTokenHolder",
2147
+ {
2148
+ "nth": 11,
2149
+ "isVLEncoded": true,
2150
+ "isSerialized": true,
2151
+ "isSigningField": true,
2152
+ "type": "AccountID"
2153
+ }
2154
+ ],
2011
2155
  [
2012
2156
  "HookAccount",
2013
2157
  {
@@ -2128,6 +2272,26 @@
2128
2272
  "type": "PathSet"
2129
2273
  }
2130
2274
  ],
2275
+ [
2276
+ "BaseAsset",
2277
+ {
2278
+ "nth": 1,
2279
+ "isVLEncoded": false,
2280
+ "isSerialized": true,
2281
+ "isSigningField": true,
2282
+ "type": "Currency"
2283
+ }
2284
+ ],
2285
+ [
2286
+ "QuoteAsset",
2287
+ {
2288
+ "nth": 2,
2289
+ "isVLEncoded": false,
2290
+ "isSerialized": true,
2291
+ "isSigningField": true,
2292
+ "type": "Currency"
2293
+ }
2294
+ ],
2131
2295
  [
2132
2296
  "LockingChainIssue",
2133
2297
  {
@@ -2458,6 +2622,16 @@
2458
2622
  "type": "STObject"
2459
2623
  }
2460
2624
  ],
2625
+ [
2626
+ "PriceData",
2627
+ {
2628
+ "nth": 32,
2629
+ "isVLEncoded": false,
2630
+ "isSerialized": true,
2631
+ "isSigningField": true,
2632
+ "type": "STObject"
2633
+ }
2634
+ ],
2461
2635
  [
2462
2636
  "Signers",
2463
2637
  {
@@ -2628,6 +2802,16 @@
2628
2802
  "type": "STArray"
2629
2803
  }
2630
2804
  ],
2805
+ [
2806
+ "PriceDataSeries",
2807
+ {
2808
+ "nth": 24,
2809
+ "isVLEncoded": false,
2810
+ "isSerialized": true,
2811
+ "isSigningField": true,
2812
+ "type": "STArray"
2813
+ }
2814
+ ],
2631
2815
  [
2632
2816
  "AuthAccounts",
2633
2817
  {
@@ -2656,6 +2840,7 @@
2656
2840
  "telWRONG_NETWORK": -386,
2657
2841
  "telREQUIRES_NETWORK_ID": -385,
2658
2842
  "telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
2843
+ "telENV_RPC_FAILED": -383,
2659
2844
  "temMALFORMED": -299,
2660
2845
  "temBAD_AMOUNT": -298,
2661
2846
  "temBAD_CURRENCY": -297,
@@ -2694,14 +2879,17 @@
2694
2879
  "temUNKNOWN": -264,
2695
2880
  "temSEQ_AND_TICKET": -263,
2696
2881
  "temBAD_NFTOKEN_TRANSFER_FEE": -262,
2697
- "temBAD_AMM_TOKENS": -261,
2698
- "temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
2699
- "temXCHAIN_BAD_PROOF": -259,
2700
- "temXCHAIN_BRIDGE_BAD_ISSUES": -258,
2701
- "temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
2702
- "temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
2703
- "temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
2704
- "temEMPTY_DID": -254,
2882
+ "temBAD_MPTOKEN_TRANSFER_FEE": -261,
2883
+ "temBAD_AMM_TOKENS": -260,
2884
+ "temXCHAIN_EQUAL_DOOR_ACCOUNTS": -259,
2885
+ "temXCHAIN_BAD_PROOF": -258,
2886
+ "temXCHAIN_BRIDGE_BAD_ISSUES": -257,
2887
+ "temXCHAIN_BRIDGE_NONDOOR_OWNER": -256,
2888
+ "temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -255,
2889
+ "temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -254,
2890
+ "temEMPTY_DID": -253,
2891
+ "temARRAY_EMPTY": -252,
2892
+ "temARRAY_TOO_LARGE": -251,
2705
2893
  "tefFAILURE": -199,
2706
2894
  "tefALREADY": -198,
2707
2895
  "tefBAD_ADD_AUTH": -197,
@@ -2736,7 +2924,6 @@
2736
2924
  "terQUEUED": -89,
2737
2925
  "terPRE_TICKET": -88,
2738
2926
  "terNO_AMM": -87,
2739
- "terSUBMITTED": -86,
2740
2927
  "tesSUCCESS": 0,
2741
2928
  "tecCLAIM": 100,
2742
2929
  "tecPATH_PARTIAL": 101,
@@ -2810,7 +2997,15 @@
2810
2997
  "tecXCHAIN_SELF_COMMIT": 184,
2811
2998
  "tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
2812
2999
  "tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
2813
- "tecEMPTY_DID": 187
3000
+ "tecEMPTY_DID": 187,
3001
+ "tecINVALID_UPDATE_TIME": 188,
3002
+ "tecTOKEN_PAIR_NOT_FOUND": 189,
3003
+ "tecARRAY_EMPTY": 190,
3004
+ "tecARRAY_TOO_LARGE": 191,
3005
+ "tecMPTOKEN_EXISTS": 192,
3006
+ "tecMPT_MAX_AMOUNT_EXCEEDED": 193,
3007
+ "tecMPT_LOCKED": 194,
3008
+ "tecMPT_NOT_SUPPORTED": 195
2814
3009
  },
2815
3010
  "TRANSACTION_TYPES": {
2816
3011
  "Invalid": -1,
@@ -2859,6 +3054,12 @@
2859
3054
  "XChainCreateBridge": 48,
2860
3055
  "DIDSet": 49,
2861
3056
  "DIDDelete": 50,
3057
+ "OracleSet": 51,
3058
+ "OracleDelete": 52,
3059
+ "MPTokenIssuanceCreate": 53,
3060
+ "MPTokenIssuanceDestroy": 54,
3061
+ "MPTokenAuthorize": 55,
3062
+ "MPTokenIssuanceSet": 56,
2862
3063
  "EnableAmendment": 100,
2863
3064
  "SetFee": 101,
2864
3065
  "UNLModify": 102
@@ -18,11 +18,12 @@
18
18
  "PathSet": 18,
19
19
  "Vector256": 19,
20
20
  "UInt96": 20,
21
- "UInt192": 21,
21
+ "Hash192": 21,
22
22
  "UInt384": 22,
23
23
  "UInt512": 23,
24
24
  "Issue": 24,
25
25
  "XChainBridge": 25,
26
+ "Currency": 26,
26
27
  "Transaction": 10001,
27
28
  "LedgerEntry": 10002,
28
29
  "Validation": 10003,
@@ -51,6 +52,9 @@
51
52
  "NFTokenOffer": 55,
52
53
  "AMM": 121,
53
54
  "DID": 73,
55
+ "Oracle": 128,
56
+ "MPTokenIssuance": 126,
57
+ "MPToken": 127,
54
58
  "Any": -3,
55
59
  "Child": -2,
56
60
  "Nickname": 110,
@@ -208,6 +212,16 @@
208
212
  "type": "UInt8"
209
213
  }
210
214
  ],
215
+ [
216
+ "Scale",
217
+ {
218
+ "nth": 4,
219
+ "isVLEncoded": false,
220
+ "isSerialized": true,
221
+ "isSigningField": true,
222
+ "type": "UInt8"
223
+ }
224
+ ],
211
225
  [
212
226
  "TickSize",
213
227
  {
@@ -248,6 +262,16 @@
248
262
  "type": "UInt8"
249
263
  }
250
264
  ],
265
+ [
266
+ "AssetScale",
267
+ {
268
+ "nth": 20,
269
+ "isVLEncoded": false,
270
+ "isSerialized": true,
271
+ "isSigningField": true,
272
+ "type": "UInt8"
273
+ }
274
+ ],
251
275
  [
252
276
  "LedgerEntryType",
253
277
  {
@@ -498,6 +522,16 @@
498
522
  "type": "UInt32"
499
523
  }
500
524
  ],
525
+ [
526
+ "LastUpdateTime",
527
+ {
528
+ "nth": 15,
529
+ "isVLEncoded": false,
530
+ "isSerialized": true,
531
+ "isSigningField": true,
532
+ "type": "UInt32"
533
+ }
534
+ ],
501
535
  [
502
536
  "HighQualityIn",
503
537
  {
@@ -828,6 +862,16 @@
828
862
  "type": "UInt32"
829
863
  }
830
864
  ],
865
+ [
866
+ "OracleDocumentID",
867
+ {
868
+ "nth": 51,
869
+ "isVLEncoded": false,
870
+ "isSerialized": true,
871
+ "isSigningField": true,
872
+ "type": "UInt32"
873
+ }
874
+ ],
831
875
  [
832
876
  "IndexNext",
833
877
  {
@@ -1028,6 +1072,56 @@
1028
1072
  "type": "UInt64"
1029
1073
  }
1030
1074
  ],
1075
+ [
1076
+ "AssetPrice",
1077
+ {
1078
+ "nth": 23,
1079
+ "isVLEncoded": false,
1080
+ "isSerialized": true,
1081
+ "isSigningField": true,
1082
+ "type": "UInt64"
1083
+ }
1084
+ ],
1085
+ [
1086
+ "MaximumAmount",
1087
+ {
1088
+ "nth": 24,
1089
+ "isVLEncoded": false,
1090
+ "isSerialized": true,
1091
+ "isSigningField": true,
1092
+ "type": "UInt64"
1093
+ }
1094
+ ],
1095
+ [
1096
+ "OutstandingAmount",
1097
+ {
1098
+ "nth": 25,
1099
+ "isVLEncoded": false,
1100
+ "isSerialized": true,
1101
+ "isSigningField": true,
1102
+ "type": "UInt64"
1103
+ }
1104
+ ],
1105
+ [
1106
+ "LockedAmount",
1107
+ {
1108
+ "nth": 26,
1109
+ "isVLEncoded": false,
1110
+ "isSerialized": true,
1111
+ "isSigningField": true,
1112
+ "type": "UInt64"
1113
+ }
1114
+ ],
1115
+ [
1116
+ "MPTAmount",
1117
+ {
1118
+ "nth": 27,
1119
+ "isVLEncoded": false,
1120
+ "isSerialized": true,
1121
+ "isSigningField": true,
1122
+ "type": "UInt64"
1123
+ }
1124
+ ],
1031
1125
  [
1032
1126
  "EmailHash",
1033
1127
  {
@@ -1078,6 +1172,16 @@
1078
1172
  "type": "Hash160"
1079
1173
  }
1080
1174
  ],
1175
+ [
1176
+ "MPTokenIssuanceID",
1177
+ {
1178
+ "nth": 1,
1179
+ "isVLEncoded": false,
1180
+ "isSerialized": true,
1181
+ "isSigningField": true,
1182
+ "type": "Hash192"
1183
+ }
1184
+ ],
1081
1185
  [
1082
1186
  "LedgerHash",
1083
1187
  {
@@ -1918,6 +2022,36 @@
1918
2022
  "type": "Blob"
1919
2023
  }
1920
2024
  ],
2025
+ [
2026
+ "AssetClass",
2027
+ {
2028
+ "nth": 28,
2029
+ "isVLEncoded": true,
2030
+ "isSerialized": true,
2031
+ "isSigningField": true,
2032
+ "type": "Blob"
2033
+ }
2034
+ ],
2035
+ [
2036
+ "Provider",
2037
+ {
2038
+ "nth": 29,
2039
+ "isVLEncoded": true,
2040
+ "isSerialized": true,
2041
+ "isSigningField": true,
2042
+ "type": "Blob"
2043
+ }
2044
+ ],
2045
+ [
2046
+ "MPTokenMetadata",
2047
+ {
2048
+ "nth": 30,
2049
+ "isVLEncoded": true,
2050
+ "isSerialized": true,
2051
+ "isSigningField": true,
2052
+ "type": "Blob"
2053
+ }
2054
+ ],
1921
2055
  [
1922
2056
  "Account",
1923
2057
  {
@@ -2008,6 +2142,16 @@
2008
2142
  "type": "AccountID"
2009
2143
  }
2010
2144
  ],
2145
+ [
2146
+ "MPTokenHolder",
2147
+ {
2148
+ "nth": 11,
2149
+ "isVLEncoded": true,
2150
+ "isSerialized": true,
2151
+ "isSigningField": true,
2152
+ "type": "AccountID"
2153
+ }
2154
+ ],
2011
2155
  [
2012
2156
  "HookAccount",
2013
2157
  {
@@ -2128,6 +2272,26 @@
2128
2272
  "type": "PathSet"
2129
2273
  }
2130
2274
  ],
2275
+ [
2276
+ "BaseAsset",
2277
+ {
2278
+ "nth": 1,
2279
+ "isVLEncoded": false,
2280
+ "isSerialized": true,
2281
+ "isSigningField": true,
2282
+ "type": "Currency"
2283
+ }
2284
+ ],
2285
+ [
2286
+ "QuoteAsset",
2287
+ {
2288
+ "nth": 2,
2289
+ "isVLEncoded": false,
2290
+ "isSerialized": true,
2291
+ "isSigningField": true,
2292
+ "type": "Currency"
2293
+ }
2294
+ ],
2131
2295
  [
2132
2296
  "LockingChainIssue",
2133
2297
  {
@@ -2458,6 +2622,16 @@
2458
2622
  "type": "STObject"
2459
2623
  }
2460
2624
  ],
2625
+ [
2626
+ "PriceData",
2627
+ {
2628
+ "nth": 32,
2629
+ "isVLEncoded": false,
2630
+ "isSerialized": true,
2631
+ "isSigningField": true,
2632
+ "type": "STObject"
2633
+ }
2634
+ ],
2461
2635
  [
2462
2636
  "Signers",
2463
2637
  {
@@ -2628,6 +2802,16 @@
2628
2802
  "type": "STArray"
2629
2803
  }
2630
2804
  ],
2805
+ [
2806
+ "PriceDataSeries",
2807
+ {
2808
+ "nth": 24,
2809
+ "isVLEncoded": false,
2810
+ "isSerialized": true,
2811
+ "isSigningField": true,
2812
+ "type": "STArray"
2813
+ }
2814
+ ],
2631
2815
  [
2632
2816
  "AuthAccounts",
2633
2817
  {
@@ -2656,6 +2840,7 @@
2656
2840
  "telWRONG_NETWORK": -386,
2657
2841
  "telREQUIRES_NETWORK_ID": -385,
2658
2842
  "telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
2843
+ "telENV_RPC_FAILED": -383,
2659
2844
 
2660
2845
  "temMALFORMED": -299,
2661
2846
  "temBAD_AMOUNT": -298,
@@ -2695,14 +2880,17 @@
2695
2880
  "temUNKNOWN": -264,
2696
2881
  "temSEQ_AND_TICKET": -263,
2697
2882
  "temBAD_NFTOKEN_TRANSFER_FEE": -262,
2698
- "temBAD_AMM_TOKENS": -261,
2699
- "temXCHAIN_EQUAL_DOOR_ACCOUNTS": -260,
2700
- "temXCHAIN_BAD_PROOF": -259,
2701
- "temXCHAIN_BRIDGE_BAD_ISSUES": -258,
2702
- "temXCHAIN_BRIDGE_NONDOOR_OWNER": -257,
2703
- "temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
2704
- "temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
2705
- "temEMPTY_DID": -254,
2883
+ "temBAD_MPTOKEN_TRANSFER_FEE": -261,
2884
+ "temBAD_AMM_TOKENS": -260,
2885
+ "temXCHAIN_EQUAL_DOOR_ACCOUNTS": -259,
2886
+ "temXCHAIN_BAD_PROOF": -258,
2887
+ "temXCHAIN_BRIDGE_BAD_ISSUES": -257,
2888
+ "temXCHAIN_BRIDGE_NONDOOR_OWNER": -256,
2889
+ "temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -255,
2890
+ "temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -254,
2891
+ "temEMPTY_DID": -253,
2892
+ "temARRAY_EMPTY": -252,
2893
+ "temARRAY_TOO_LARGE": -251,
2706
2894
 
2707
2895
  "tefFAILURE": -199,
2708
2896
  "tefALREADY": -198,
@@ -2739,7 +2927,6 @@
2739
2927
  "terQUEUED": -89,
2740
2928
  "terPRE_TICKET": -88,
2741
2929
  "terNO_AMM": -87,
2742
- "terSUBMITTED": -86,
2743
2930
 
2744
2931
  "tesSUCCESS": 0,
2745
2932
 
@@ -2815,7 +3002,15 @@
2815
3002
  "tecXCHAIN_SELF_COMMIT": 184,
2816
3003
  "tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
2817
3004
  "tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
2818
- "tecEMPTY_DID": 187
3005
+ "tecEMPTY_DID": 187,
3006
+ "tecINVALID_UPDATE_TIME": 188,
3007
+ "tecTOKEN_PAIR_NOT_FOUND": 189,
3008
+ "tecARRAY_EMPTY": 190,
3009
+ "tecARRAY_TOO_LARGE": 191,
3010
+ "tecMPTOKEN_EXISTS": 192,
3011
+ "tecMPT_MAX_AMOUNT_EXCEEDED": 193,
3012
+ "tecMPT_LOCKED": 194,
3013
+ "tecMPT_NOT_SUPPORTED": 195
2819
3014
  },
2820
3015
  "TRANSACTION_TYPES": {
2821
3016
  "Invalid": -1,
@@ -2864,6 +3059,12 @@
2864
3059
  "XChainCreateBridge": 48,
2865
3060
  "DIDSet": 49,
2866
3061
  "DIDDelete": 50,
3062
+ "OracleSet": 51,
3063
+ "OracleDelete": 52,
3064
+ "MPTokenIssuanceCreate": 53,
3065
+ "MPTokenIssuanceDestroy": 54,
3066
+ "MPTokenAuthorize": 55,
3067
+ "MPTokenIssuanceSet": 56,
2867
3068
  "EnableAmendment": 100,
2868
3069
  "SetFee": 101,
2869
3070
  "UNLModify": 102
@@ -123,13 +123,13 @@ class BinaryParser {
123
123
  if (type === 0) {
124
124
  type = this.readUInt8();
125
125
  if (type === 0 || type < 16) {
126
- throw new Error('Cannot read FieldOrdinal, type_code out of range');
126
+ throw new Error(`Cannot read FieldOrdinal, type_code ${type} out of range`);
127
127
  }
128
128
  }
129
129
  if (nth === 0) {
130
130
  nth = this.readUInt8();
131
131
  if (nth === 0 || nth < 16) {
132
- throw new Error('Cannot read FieldOrdinal, field_code out of range');
132
+ throw new Error(`Cannot read FieldOrdinal, field_code ${nth} out of range`);
133
133
  }
134
134
  }
135
135
  return (type << 16) | nth;