ripple-binary-codec 2.0.0 → 2.1.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 +112 -2
- package/dist/enums/src/enums/definitions.json +112 -2
- package/dist/serdes/binary-parser.js +2 -2
- package/dist/serdes/binary-parser.js.map +1 -1
- package/dist/src/enums/definitions.json +112 -2
- package/dist/src/serdes/binary-parser.js +2 -2
- package/dist/src/serdes/binary-parser.js.map +1 -1
- package/dist/src/types/blob.js +3 -0
- package/dist/src/types/blob.js.map +1 -1
- package/dist/src/types/st-array.js +4 -1
- package/dist/src/types/st-array.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/blob.js +3 -0
- package/dist/types/blob.js.map +1 -1
- package/dist/types/st-array.js +4 -1
- package/dist/types/st-array.js.map +1 -1
- package/package.json +3 -3
- package/src/enums/definitions.json +112 -2
- package/src/serdes/binary-parser.ts +6 -2
- package/src/types/blob.ts +3 -0
- package/src/types/st-array.ts +7 -1
|
@@ -23,6 +23,7 @@
|
|
|
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,7 @@
|
|
|
51
52
|
"NFTokenOffer": 55,
|
|
52
53
|
"AMM": 121,
|
|
53
54
|
"DID": 73,
|
|
55
|
+
"Oracle": 128,
|
|
54
56
|
"Any": -3,
|
|
55
57
|
"Child": -2,
|
|
56
58
|
"Nickname": 110,
|
|
@@ -208,6 +210,16 @@
|
|
|
208
210
|
"type": "UInt8"
|
|
209
211
|
}
|
|
210
212
|
],
|
|
213
|
+
[
|
|
214
|
+
"Scale",
|
|
215
|
+
{
|
|
216
|
+
"nth": 4,
|
|
217
|
+
"isVLEncoded": false,
|
|
218
|
+
"isSerialized": true,
|
|
219
|
+
"isSigningField": true,
|
|
220
|
+
"type": "UInt8"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
211
223
|
[
|
|
212
224
|
"TickSize",
|
|
213
225
|
{
|
|
@@ -498,6 +510,16 @@
|
|
|
498
510
|
"type": "UInt32"
|
|
499
511
|
}
|
|
500
512
|
],
|
|
513
|
+
[
|
|
514
|
+
"LastUpdateTime",
|
|
515
|
+
{
|
|
516
|
+
"nth": 15,
|
|
517
|
+
"isVLEncoded": false,
|
|
518
|
+
"isSerialized": true,
|
|
519
|
+
"isSigningField": true,
|
|
520
|
+
"type": "UInt32"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
501
523
|
[
|
|
502
524
|
"HighQualityIn",
|
|
503
525
|
{
|
|
@@ -828,6 +850,16 @@
|
|
|
828
850
|
"type": "UInt32"
|
|
829
851
|
}
|
|
830
852
|
],
|
|
853
|
+
[
|
|
854
|
+
"OracleDocumentID",
|
|
855
|
+
{
|
|
856
|
+
"nth": 51,
|
|
857
|
+
"isVLEncoded": false,
|
|
858
|
+
"isSerialized": true,
|
|
859
|
+
"isSigningField": true,
|
|
860
|
+
"type": "UInt32"
|
|
861
|
+
}
|
|
862
|
+
],
|
|
831
863
|
[
|
|
832
864
|
"IndexNext",
|
|
833
865
|
{
|
|
@@ -1028,6 +1060,16 @@
|
|
|
1028
1060
|
"type": "UInt64"
|
|
1029
1061
|
}
|
|
1030
1062
|
],
|
|
1063
|
+
[
|
|
1064
|
+
"AssetPrice",
|
|
1065
|
+
{
|
|
1066
|
+
"nth": 23,
|
|
1067
|
+
"isVLEncoded": false,
|
|
1068
|
+
"isSerialized": true,
|
|
1069
|
+
"isSigningField": true,
|
|
1070
|
+
"type": "UInt64"
|
|
1071
|
+
}
|
|
1072
|
+
],
|
|
1031
1073
|
[
|
|
1032
1074
|
"EmailHash",
|
|
1033
1075
|
{
|
|
@@ -1918,6 +1960,26 @@
|
|
|
1918
1960
|
"type": "Blob"
|
|
1919
1961
|
}
|
|
1920
1962
|
],
|
|
1963
|
+
[
|
|
1964
|
+
"AssetClass",
|
|
1965
|
+
{
|
|
1966
|
+
"nth": 28,
|
|
1967
|
+
"isVLEncoded": true,
|
|
1968
|
+
"isSerialized": true,
|
|
1969
|
+
"isSigningField": true,
|
|
1970
|
+
"type": "Blob"
|
|
1971
|
+
}
|
|
1972
|
+
],
|
|
1973
|
+
[
|
|
1974
|
+
"Provider",
|
|
1975
|
+
{
|
|
1976
|
+
"nth": 29,
|
|
1977
|
+
"isVLEncoded": true,
|
|
1978
|
+
"isSerialized": true,
|
|
1979
|
+
"isSigningField": true,
|
|
1980
|
+
"type": "Blob"
|
|
1981
|
+
}
|
|
1982
|
+
],
|
|
1921
1983
|
[
|
|
1922
1984
|
"Account",
|
|
1923
1985
|
{
|
|
@@ -2128,6 +2190,26 @@
|
|
|
2128
2190
|
"type": "PathSet"
|
|
2129
2191
|
}
|
|
2130
2192
|
],
|
|
2193
|
+
[
|
|
2194
|
+
"BaseAsset",
|
|
2195
|
+
{
|
|
2196
|
+
"nth": 1,
|
|
2197
|
+
"isVLEncoded": false,
|
|
2198
|
+
"isSerialized": true,
|
|
2199
|
+
"isSigningField": true,
|
|
2200
|
+
"type": "Currency"
|
|
2201
|
+
}
|
|
2202
|
+
],
|
|
2203
|
+
[
|
|
2204
|
+
"QuoteAsset",
|
|
2205
|
+
{
|
|
2206
|
+
"nth": 2,
|
|
2207
|
+
"isVLEncoded": false,
|
|
2208
|
+
"isSerialized": true,
|
|
2209
|
+
"isSigningField": true,
|
|
2210
|
+
"type": "Currency"
|
|
2211
|
+
}
|
|
2212
|
+
],
|
|
2131
2213
|
[
|
|
2132
2214
|
"LockingChainIssue",
|
|
2133
2215
|
{
|
|
@@ -2458,6 +2540,16 @@
|
|
|
2458
2540
|
"type": "STObject"
|
|
2459
2541
|
}
|
|
2460
2542
|
],
|
|
2543
|
+
[
|
|
2544
|
+
"PriceData",
|
|
2545
|
+
{
|
|
2546
|
+
"nth": 32,
|
|
2547
|
+
"isVLEncoded": false,
|
|
2548
|
+
"isSerialized": true,
|
|
2549
|
+
"isSigningField": true,
|
|
2550
|
+
"type": "STObject"
|
|
2551
|
+
}
|
|
2552
|
+
],
|
|
2461
2553
|
[
|
|
2462
2554
|
"Signers",
|
|
2463
2555
|
{
|
|
@@ -2628,6 +2720,16 @@
|
|
|
2628
2720
|
"type": "STArray"
|
|
2629
2721
|
}
|
|
2630
2722
|
],
|
|
2723
|
+
[
|
|
2724
|
+
"PriceDataSeries",
|
|
2725
|
+
{
|
|
2726
|
+
"nth": 24,
|
|
2727
|
+
"isVLEncoded": false,
|
|
2728
|
+
"isSerialized": true,
|
|
2729
|
+
"isSigningField": true,
|
|
2730
|
+
"type": "STArray"
|
|
2731
|
+
}
|
|
2732
|
+
],
|
|
2631
2733
|
[
|
|
2632
2734
|
"AuthAccounts",
|
|
2633
2735
|
{
|
|
@@ -2656,6 +2758,7 @@
|
|
|
2656
2758
|
"telWRONG_NETWORK": -386,
|
|
2657
2759
|
"telREQUIRES_NETWORK_ID": -385,
|
|
2658
2760
|
"telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
|
|
2761
|
+
"telENV_RPC_FAILED": -383,
|
|
2659
2762
|
"temMALFORMED": -299,
|
|
2660
2763
|
"temBAD_AMOUNT": -298,
|
|
2661
2764
|
"temBAD_CURRENCY": -297,
|
|
@@ -2702,6 +2805,8 @@
|
|
|
2702
2805
|
"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
|
|
2703
2806
|
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
|
|
2704
2807
|
"temEMPTY_DID": -254,
|
|
2808
|
+
"temARRAY_EMPTY": -253,
|
|
2809
|
+
"temARRAY_TOO_LARGE": -252,
|
|
2705
2810
|
"tefFAILURE": -199,
|
|
2706
2811
|
"tefALREADY": -198,
|
|
2707
2812
|
"tefBAD_ADD_AUTH": -197,
|
|
@@ -2736,7 +2841,6 @@
|
|
|
2736
2841
|
"terQUEUED": -89,
|
|
2737
2842
|
"terPRE_TICKET": -88,
|
|
2738
2843
|
"terNO_AMM": -87,
|
|
2739
|
-
"terSUBMITTED": -86,
|
|
2740
2844
|
"tesSUCCESS": 0,
|
|
2741
2845
|
"tecCLAIM": 100,
|
|
2742
2846
|
"tecPATH_PARTIAL": 101,
|
|
@@ -2810,7 +2914,11 @@
|
|
|
2810
2914
|
"tecXCHAIN_SELF_COMMIT": 184,
|
|
2811
2915
|
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
|
|
2812
2916
|
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
|
|
2813
|
-
"tecEMPTY_DID": 187
|
|
2917
|
+
"tecEMPTY_DID": 187,
|
|
2918
|
+
"tecINVALID_UPDATE_TIME": 188,
|
|
2919
|
+
"tecTOKEN_PAIR_NOT_FOUND": 189,
|
|
2920
|
+
"tecARRAY_EMPTY": 190,
|
|
2921
|
+
"tecARRAY_TOO_LARGE": 191
|
|
2814
2922
|
},
|
|
2815
2923
|
"TRANSACTION_TYPES": {
|
|
2816
2924
|
"Invalid": -1,
|
|
@@ -2859,6 +2967,8 @@
|
|
|
2859
2967
|
"XChainCreateBridge": 48,
|
|
2860
2968
|
"DIDSet": 49,
|
|
2861
2969
|
"DIDDelete": 50,
|
|
2970
|
+
"OracleSet": 51,
|
|
2971
|
+
"OracleDelete": 52,
|
|
2862
2972
|
"EnableAmendment": 100,
|
|
2863
2973
|
"SetFee": 101,
|
|
2864
2974
|
"UNLModify": 102
|
|
@@ -23,6 +23,7 @@
|
|
|
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,7 @@
|
|
|
51
52
|
"NFTokenOffer": 55,
|
|
52
53
|
"AMM": 121,
|
|
53
54
|
"DID": 73,
|
|
55
|
+
"Oracle": 128,
|
|
54
56
|
"Any": -3,
|
|
55
57
|
"Child": -2,
|
|
56
58
|
"Nickname": 110,
|
|
@@ -208,6 +210,16 @@
|
|
|
208
210
|
"type": "UInt8"
|
|
209
211
|
}
|
|
210
212
|
],
|
|
213
|
+
[
|
|
214
|
+
"Scale",
|
|
215
|
+
{
|
|
216
|
+
"nth": 4,
|
|
217
|
+
"isVLEncoded": false,
|
|
218
|
+
"isSerialized": true,
|
|
219
|
+
"isSigningField": true,
|
|
220
|
+
"type": "UInt8"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
211
223
|
[
|
|
212
224
|
"TickSize",
|
|
213
225
|
{
|
|
@@ -498,6 +510,16 @@
|
|
|
498
510
|
"type": "UInt32"
|
|
499
511
|
}
|
|
500
512
|
],
|
|
513
|
+
[
|
|
514
|
+
"LastUpdateTime",
|
|
515
|
+
{
|
|
516
|
+
"nth": 15,
|
|
517
|
+
"isVLEncoded": false,
|
|
518
|
+
"isSerialized": true,
|
|
519
|
+
"isSigningField": true,
|
|
520
|
+
"type": "UInt32"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
501
523
|
[
|
|
502
524
|
"HighQualityIn",
|
|
503
525
|
{
|
|
@@ -828,6 +850,16 @@
|
|
|
828
850
|
"type": "UInt32"
|
|
829
851
|
}
|
|
830
852
|
],
|
|
853
|
+
[
|
|
854
|
+
"OracleDocumentID",
|
|
855
|
+
{
|
|
856
|
+
"nth": 51,
|
|
857
|
+
"isVLEncoded": false,
|
|
858
|
+
"isSerialized": true,
|
|
859
|
+
"isSigningField": true,
|
|
860
|
+
"type": "UInt32"
|
|
861
|
+
}
|
|
862
|
+
],
|
|
831
863
|
[
|
|
832
864
|
"IndexNext",
|
|
833
865
|
{
|
|
@@ -1028,6 +1060,16 @@
|
|
|
1028
1060
|
"type": "UInt64"
|
|
1029
1061
|
}
|
|
1030
1062
|
],
|
|
1063
|
+
[
|
|
1064
|
+
"AssetPrice",
|
|
1065
|
+
{
|
|
1066
|
+
"nth": 23,
|
|
1067
|
+
"isVLEncoded": false,
|
|
1068
|
+
"isSerialized": true,
|
|
1069
|
+
"isSigningField": true,
|
|
1070
|
+
"type": "UInt64"
|
|
1071
|
+
}
|
|
1072
|
+
],
|
|
1031
1073
|
[
|
|
1032
1074
|
"EmailHash",
|
|
1033
1075
|
{
|
|
@@ -1918,6 +1960,26 @@
|
|
|
1918
1960
|
"type": "Blob"
|
|
1919
1961
|
}
|
|
1920
1962
|
],
|
|
1963
|
+
[
|
|
1964
|
+
"AssetClass",
|
|
1965
|
+
{
|
|
1966
|
+
"nth": 28,
|
|
1967
|
+
"isVLEncoded": true,
|
|
1968
|
+
"isSerialized": true,
|
|
1969
|
+
"isSigningField": true,
|
|
1970
|
+
"type": "Blob"
|
|
1971
|
+
}
|
|
1972
|
+
],
|
|
1973
|
+
[
|
|
1974
|
+
"Provider",
|
|
1975
|
+
{
|
|
1976
|
+
"nth": 29,
|
|
1977
|
+
"isVLEncoded": true,
|
|
1978
|
+
"isSerialized": true,
|
|
1979
|
+
"isSigningField": true,
|
|
1980
|
+
"type": "Blob"
|
|
1981
|
+
}
|
|
1982
|
+
],
|
|
1921
1983
|
[
|
|
1922
1984
|
"Account",
|
|
1923
1985
|
{
|
|
@@ -2128,6 +2190,26 @@
|
|
|
2128
2190
|
"type": "PathSet"
|
|
2129
2191
|
}
|
|
2130
2192
|
],
|
|
2193
|
+
[
|
|
2194
|
+
"BaseAsset",
|
|
2195
|
+
{
|
|
2196
|
+
"nth": 1,
|
|
2197
|
+
"isVLEncoded": false,
|
|
2198
|
+
"isSerialized": true,
|
|
2199
|
+
"isSigningField": true,
|
|
2200
|
+
"type": "Currency"
|
|
2201
|
+
}
|
|
2202
|
+
],
|
|
2203
|
+
[
|
|
2204
|
+
"QuoteAsset",
|
|
2205
|
+
{
|
|
2206
|
+
"nth": 2,
|
|
2207
|
+
"isVLEncoded": false,
|
|
2208
|
+
"isSerialized": true,
|
|
2209
|
+
"isSigningField": true,
|
|
2210
|
+
"type": "Currency"
|
|
2211
|
+
}
|
|
2212
|
+
],
|
|
2131
2213
|
[
|
|
2132
2214
|
"LockingChainIssue",
|
|
2133
2215
|
{
|
|
@@ -2458,6 +2540,16 @@
|
|
|
2458
2540
|
"type": "STObject"
|
|
2459
2541
|
}
|
|
2460
2542
|
],
|
|
2543
|
+
[
|
|
2544
|
+
"PriceData",
|
|
2545
|
+
{
|
|
2546
|
+
"nth": 32,
|
|
2547
|
+
"isVLEncoded": false,
|
|
2548
|
+
"isSerialized": true,
|
|
2549
|
+
"isSigningField": true,
|
|
2550
|
+
"type": "STObject"
|
|
2551
|
+
}
|
|
2552
|
+
],
|
|
2461
2553
|
[
|
|
2462
2554
|
"Signers",
|
|
2463
2555
|
{
|
|
@@ -2628,6 +2720,16 @@
|
|
|
2628
2720
|
"type": "STArray"
|
|
2629
2721
|
}
|
|
2630
2722
|
],
|
|
2723
|
+
[
|
|
2724
|
+
"PriceDataSeries",
|
|
2725
|
+
{
|
|
2726
|
+
"nth": 24,
|
|
2727
|
+
"isVLEncoded": false,
|
|
2728
|
+
"isSerialized": true,
|
|
2729
|
+
"isSigningField": true,
|
|
2730
|
+
"type": "STArray"
|
|
2731
|
+
}
|
|
2732
|
+
],
|
|
2631
2733
|
[
|
|
2632
2734
|
"AuthAccounts",
|
|
2633
2735
|
{
|
|
@@ -2656,6 +2758,7 @@
|
|
|
2656
2758
|
"telWRONG_NETWORK": -386,
|
|
2657
2759
|
"telREQUIRES_NETWORK_ID": -385,
|
|
2658
2760
|
"telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
|
|
2761
|
+
"telENV_RPC_FAILED": -383,
|
|
2659
2762
|
|
|
2660
2763
|
"temMALFORMED": -299,
|
|
2661
2764
|
"temBAD_AMOUNT": -298,
|
|
@@ -2703,6 +2806,8 @@
|
|
|
2703
2806
|
"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
|
|
2704
2807
|
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
|
|
2705
2808
|
"temEMPTY_DID": -254,
|
|
2809
|
+
"temARRAY_EMPTY": -253,
|
|
2810
|
+
"temARRAY_TOO_LARGE": -252,
|
|
2706
2811
|
|
|
2707
2812
|
"tefFAILURE": -199,
|
|
2708
2813
|
"tefALREADY": -198,
|
|
@@ -2739,7 +2844,6 @@
|
|
|
2739
2844
|
"terQUEUED": -89,
|
|
2740
2845
|
"terPRE_TICKET": -88,
|
|
2741
2846
|
"terNO_AMM": -87,
|
|
2742
|
-
"terSUBMITTED": -86,
|
|
2743
2847
|
|
|
2744
2848
|
"tesSUCCESS": 0,
|
|
2745
2849
|
|
|
@@ -2815,7 +2919,11 @@
|
|
|
2815
2919
|
"tecXCHAIN_SELF_COMMIT": 184,
|
|
2816
2920
|
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
|
|
2817
2921
|
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
|
|
2818
|
-
"tecEMPTY_DID": 187
|
|
2922
|
+
"tecEMPTY_DID": 187,
|
|
2923
|
+
"tecINVALID_UPDATE_TIME": 188,
|
|
2924
|
+
"tecTOKEN_PAIR_NOT_FOUND": 189,
|
|
2925
|
+
"tecARRAY_EMPTY": 190,
|
|
2926
|
+
"tecARRAY_TOO_LARGE": 191
|
|
2819
2927
|
},
|
|
2820
2928
|
"TRANSACTION_TYPES": {
|
|
2821
2929
|
"Invalid": -1,
|
|
@@ -2864,6 +2972,8 @@
|
|
|
2864
2972
|
"XChainCreateBridge": 48,
|
|
2865
2973
|
"DIDSet": 49,
|
|
2866
2974
|
"DIDDelete": 50,
|
|
2975
|
+
"OracleSet": 51,
|
|
2976
|
+
"OracleDelete": 52,
|
|
2867
2977
|
"EnableAmendment": 100,
|
|
2868
2978
|
"SetFee": 101,
|
|
2869
2979
|
"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(
|
|
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(
|
|
132
|
+
throw new Error(`Cannot read FieldOrdinal, field_code ${nth} out of range`);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
return (type << 16) | nth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary-parser.js","sourceRoot":"","sources":["../../src/serdes/binary-parser.ts"],"names":[],"mappings":";;;AAAA,oCAIiB;AAEjB,mDAAoD;AAEpD;;GAEG;AACH,MAAM,YAAY;IAIhB;;;;;;OAMG;IACH,YACE,QAAgB,EAChB,cAAmC,2BAAmB;QAEtD,IAAI,CAAC,KAAK,GAAG,IAAA,kBAAU,EAAC,QAAQ,CAAC,CAAA;QACjC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAA;IAChC,CAAC;IAED;;;;OAIG;IACH,IAAI;QACF,IAAI,IAAI,CAAC,KAAK,CAAC,UAAU,KAAK,CAAC,EAAE;YAC/B,MAAM,IAAI,KAAK,EAAE,CAAA;SAClB;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IACtB,CAAC;IAED;;;;OAIG;IACH,IAAI,CAAC,CAAS;QACZ,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE;YAC7B,MAAM,IAAI,KAAK,EAAE,CAAA;SAClB;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IAClC,CAAC;IAED;;;;;OAKG;IACH,IAAI,CAAC,CAAS;QACZ,IAAI,CAAC,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,CAAC,uBAAuB;YAC5C,CAAC,CAAC,IAAI,CAAC,wBAAwB,EAAE;YACjC,CAAC,CAAC,SAAS,CAAA;QACb,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;QAC7C,IAAI,KAAK,KAAK,SAAS,EAAE;YACvB,MAAM,IAAI,KAAK,CACb,mBAAmB,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,CAAC,IAAI,iBAAiB,CACnE,CAAA;SACF;QACD,OAAO,KAAK,CAAA;IACd,CAAC;IAED;;;;OAIG;IACH,iBAAiB;QACf,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,CAAA;QAC9B,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAA;IAC5C,CAAC;CACF;AAEQ,oCAAY"}
|
|
@@ -23,6 +23,7 @@
|
|
|
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,7 @@
|
|
|
51
52
|
"NFTokenOffer": 55,
|
|
52
53
|
"AMM": 121,
|
|
53
54
|
"DID": 73,
|
|
55
|
+
"Oracle": 128,
|
|
54
56
|
"Any": -3,
|
|
55
57
|
"Child": -2,
|
|
56
58
|
"Nickname": 110,
|
|
@@ -208,6 +210,16 @@
|
|
|
208
210
|
"type": "UInt8"
|
|
209
211
|
}
|
|
210
212
|
],
|
|
213
|
+
[
|
|
214
|
+
"Scale",
|
|
215
|
+
{
|
|
216
|
+
"nth": 4,
|
|
217
|
+
"isVLEncoded": false,
|
|
218
|
+
"isSerialized": true,
|
|
219
|
+
"isSigningField": true,
|
|
220
|
+
"type": "UInt8"
|
|
221
|
+
}
|
|
222
|
+
],
|
|
211
223
|
[
|
|
212
224
|
"TickSize",
|
|
213
225
|
{
|
|
@@ -498,6 +510,16 @@
|
|
|
498
510
|
"type": "UInt32"
|
|
499
511
|
}
|
|
500
512
|
],
|
|
513
|
+
[
|
|
514
|
+
"LastUpdateTime",
|
|
515
|
+
{
|
|
516
|
+
"nth": 15,
|
|
517
|
+
"isVLEncoded": false,
|
|
518
|
+
"isSerialized": true,
|
|
519
|
+
"isSigningField": true,
|
|
520
|
+
"type": "UInt32"
|
|
521
|
+
}
|
|
522
|
+
],
|
|
501
523
|
[
|
|
502
524
|
"HighQualityIn",
|
|
503
525
|
{
|
|
@@ -828,6 +850,16 @@
|
|
|
828
850
|
"type": "UInt32"
|
|
829
851
|
}
|
|
830
852
|
],
|
|
853
|
+
[
|
|
854
|
+
"OracleDocumentID",
|
|
855
|
+
{
|
|
856
|
+
"nth": 51,
|
|
857
|
+
"isVLEncoded": false,
|
|
858
|
+
"isSerialized": true,
|
|
859
|
+
"isSigningField": true,
|
|
860
|
+
"type": "UInt32"
|
|
861
|
+
}
|
|
862
|
+
],
|
|
831
863
|
[
|
|
832
864
|
"IndexNext",
|
|
833
865
|
{
|
|
@@ -1028,6 +1060,16 @@
|
|
|
1028
1060
|
"type": "UInt64"
|
|
1029
1061
|
}
|
|
1030
1062
|
],
|
|
1063
|
+
[
|
|
1064
|
+
"AssetPrice",
|
|
1065
|
+
{
|
|
1066
|
+
"nth": 23,
|
|
1067
|
+
"isVLEncoded": false,
|
|
1068
|
+
"isSerialized": true,
|
|
1069
|
+
"isSigningField": true,
|
|
1070
|
+
"type": "UInt64"
|
|
1071
|
+
}
|
|
1072
|
+
],
|
|
1031
1073
|
[
|
|
1032
1074
|
"EmailHash",
|
|
1033
1075
|
{
|
|
@@ -1918,6 +1960,26 @@
|
|
|
1918
1960
|
"type": "Blob"
|
|
1919
1961
|
}
|
|
1920
1962
|
],
|
|
1963
|
+
[
|
|
1964
|
+
"AssetClass",
|
|
1965
|
+
{
|
|
1966
|
+
"nth": 28,
|
|
1967
|
+
"isVLEncoded": true,
|
|
1968
|
+
"isSerialized": true,
|
|
1969
|
+
"isSigningField": true,
|
|
1970
|
+
"type": "Blob"
|
|
1971
|
+
}
|
|
1972
|
+
],
|
|
1973
|
+
[
|
|
1974
|
+
"Provider",
|
|
1975
|
+
{
|
|
1976
|
+
"nth": 29,
|
|
1977
|
+
"isVLEncoded": true,
|
|
1978
|
+
"isSerialized": true,
|
|
1979
|
+
"isSigningField": true,
|
|
1980
|
+
"type": "Blob"
|
|
1981
|
+
}
|
|
1982
|
+
],
|
|
1921
1983
|
[
|
|
1922
1984
|
"Account",
|
|
1923
1985
|
{
|
|
@@ -2128,6 +2190,26 @@
|
|
|
2128
2190
|
"type": "PathSet"
|
|
2129
2191
|
}
|
|
2130
2192
|
],
|
|
2193
|
+
[
|
|
2194
|
+
"BaseAsset",
|
|
2195
|
+
{
|
|
2196
|
+
"nth": 1,
|
|
2197
|
+
"isVLEncoded": false,
|
|
2198
|
+
"isSerialized": true,
|
|
2199
|
+
"isSigningField": true,
|
|
2200
|
+
"type": "Currency"
|
|
2201
|
+
}
|
|
2202
|
+
],
|
|
2203
|
+
[
|
|
2204
|
+
"QuoteAsset",
|
|
2205
|
+
{
|
|
2206
|
+
"nth": 2,
|
|
2207
|
+
"isVLEncoded": false,
|
|
2208
|
+
"isSerialized": true,
|
|
2209
|
+
"isSigningField": true,
|
|
2210
|
+
"type": "Currency"
|
|
2211
|
+
}
|
|
2212
|
+
],
|
|
2131
2213
|
[
|
|
2132
2214
|
"LockingChainIssue",
|
|
2133
2215
|
{
|
|
@@ -2458,6 +2540,16 @@
|
|
|
2458
2540
|
"type": "STObject"
|
|
2459
2541
|
}
|
|
2460
2542
|
],
|
|
2543
|
+
[
|
|
2544
|
+
"PriceData",
|
|
2545
|
+
{
|
|
2546
|
+
"nth": 32,
|
|
2547
|
+
"isVLEncoded": false,
|
|
2548
|
+
"isSerialized": true,
|
|
2549
|
+
"isSigningField": true,
|
|
2550
|
+
"type": "STObject"
|
|
2551
|
+
}
|
|
2552
|
+
],
|
|
2461
2553
|
[
|
|
2462
2554
|
"Signers",
|
|
2463
2555
|
{
|
|
@@ -2628,6 +2720,16 @@
|
|
|
2628
2720
|
"type": "STArray"
|
|
2629
2721
|
}
|
|
2630
2722
|
],
|
|
2723
|
+
[
|
|
2724
|
+
"PriceDataSeries",
|
|
2725
|
+
{
|
|
2726
|
+
"nth": 24,
|
|
2727
|
+
"isVLEncoded": false,
|
|
2728
|
+
"isSerialized": true,
|
|
2729
|
+
"isSigningField": true,
|
|
2730
|
+
"type": "STArray"
|
|
2731
|
+
}
|
|
2732
|
+
],
|
|
2631
2733
|
[
|
|
2632
2734
|
"AuthAccounts",
|
|
2633
2735
|
{
|
|
@@ -2656,6 +2758,7 @@
|
|
|
2656
2758
|
"telWRONG_NETWORK": -386,
|
|
2657
2759
|
"telREQUIRES_NETWORK_ID": -385,
|
|
2658
2760
|
"telNETWORK_ID_MAKES_TX_NON_CANONICAL": -384,
|
|
2761
|
+
"telENV_RPC_FAILED": -383,
|
|
2659
2762
|
"temMALFORMED": -299,
|
|
2660
2763
|
"temBAD_AMOUNT": -298,
|
|
2661
2764
|
"temBAD_CURRENCY": -297,
|
|
@@ -2702,6 +2805,8 @@
|
|
|
2702
2805
|
"temXCHAIN_BRIDGE_BAD_MIN_ACCOUNT_CREATE_AMOUNT": -256,
|
|
2703
2806
|
"temXCHAIN_BRIDGE_BAD_REWARD_AMOUNT": -255,
|
|
2704
2807
|
"temEMPTY_DID": -254,
|
|
2808
|
+
"temARRAY_EMPTY": -253,
|
|
2809
|
+
"temARRAY_TOO_LARGE": -252,
|
|
2705
2810
|
"tefFAILURE": -199,
|
|
2706
2811
|
"tefALREADY": -198,
|
|
2707
2812
|
"tefBAD_ADD_AUTH": -197,
|
|
@@ -2736,7 +2841,6 @@
|
|
|
2736
2841
|
"terQUEUED": -89,
|
|
2737
2842
|
"terPRE_TICKET": -88,
|
|
2738
2843
|
"terNO_AMM": -87,
|
|
2739
|
-
"terSUBMITTED": -86,
|
|
2740
2844
|
"tesSUCCESS": 0,
|
|
2741
2845
|
"tecCLAIM": 100,
|
|
2742
2846
|
"tecPATH_PARTIAL": 101,
|
|
@@ -2810,7 +2914,11 @@
|
|
|
2810
2914
|
"tecXCHAIN_SELF_COMMIT": 184,
|
|
2811
2915
|
"tecXCHAIN_BAD_PUBLIC_KEY_ACCOUNT_PAIR": 185,
|
|
2812
2916
|
"tecXCHAIN_CREATE_ACCOUNT_DISABLED": 186,
|
|
2813
|
-
"tecEMPTY_DID": 187
|
|
2917
|
+
"tecEMPTY_DID": 187,
|
|
2918
|
+
"tecINVALID_UPDATE_TIME": 188,
|
|
2919
|
+
"tecTOKEN_PAIR_NOT_FOUND": 189,
|
|
2920
|
+
"tecARRAY_EMPTY": 190,
|
|
2921
|
+
"tecARRAY_TOO_LARGE": 191
|
|
2814
2922
|
},
|
|
2815
2923
|
"TRANSACTION_TYPES": {
|
|
2816
2924
|
"Invalid": -1,
|
|
@@ -2859,6 +2967,8 @@
|
|
|
2859
2967
|
"XChainCreateBridge": 48,
|
|
2860
2968
|
"DIDSet": 49,
|
|
2861
2969
|
"DIDDelete": 50,
|
|
2970
|
+
"OracleSet": 51,
|
|
2971
|
+
"OracleDelete": 52,
|
|
2862
2972
|
"EnableAmendment": 100,
|
|
2863
2973
|
"SetFee": 101,
|
|
2864
2974
|
"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(
|
|
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(
|
|
132
|
+
throw new Error(`Cannot read FieldOrdinal, field_code ${nth} out of range`);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
return (type << 16) | nth;
|