ripple-binary-codec 2.4.1 → 2.5.0-smartescrow.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 +64 -32
- package/dist/enums/src/enums/definitions.json +64 -32
- package/dist/src/enums/definitions.json +64 -32
- package/dist/src/types/index.js +2 -0
- package/dist/src/types/index.js.map +1 -1
- package/dist/src/types/st-number.d.ts +54 -0
- package/dist/src/types/st-number.js +208 -0
- package/dist/src/types/st-number.js.map +1 -0
- package/dist/src/types/st-object.js +6 -1
- package/dist/src/types/st-object.js.map +1 -1
- package/dist/src/utils.d.ts +32 -0
- package/dist/src/utils.js +45 -1
- package/dist/src/utils.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/st-number.d.ts +54 -0
- package/dist/types/st-number.js +208 -0
- package/dist/types/st-number.js.map +1 -0
- package/dist/types/st-object.js +6 -1
- package/dist/types/st-object.js.map +1 -1
- package/dist/utils.d.ts +32 -0
- package/dist/utils.js +45 -1
- package/dist/utils.js.map +1 -1
- package/package.json +3 -2
- package/src/.DS_Store +0 -0
- package/src/enums/definitions.json +64 -32
- package/src/types/index.ts +2 -0
- package/src/types/st-number.ts +233 -0
- package/src/types/st-object.ts +7 -1
- package/src/utils.ts +68 -0
- package/dist/types/number.d.ts +0 -19
- package/dist/types/number.js +0 -158
- package/dist/types/number.js.map +0 -1
|
@@ -680,6 +680,56 @@
|
|
|
680
680
|
"type": "UInt32"
|
|
681
681
|
}
|
|
682
682
|
],
|
|
683
|
+
[
|
|
684
|
+
"ExtensionComputeLimit",
|
|
685
|
+
{
|
|
686
|
+
"isSerialized": true,
|
|
687
|
+
"isSigningField": true,
|
|
688
|
+
"isVLEncoded": false,
|
|
689
|
+
"nth": 53,
|
|
690
|
+
"type": "UInt32"
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
[
|
|
694
|
+
"ExtensionSizeLimit",
|
|
695
|
+
{
|
|
696
|
+
"isSerialized": true,
|
|
697
|
+
"isSigningField": true,
|
|
698
|
+
"isVLEncoded": false,
|
|
699
|
+
"nth": 54,
|
|
700
|
+
"type": "UInt32"
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
[
|
|
704
|
+
"GasPrice",
|
|
705
|
+
{
|
|
706
|
+
"isSerialized": true,
|
|
707
|
+
"isSigningField": true,
|
|
708
|
+
"isVLEncoded": false,
|
|
709
|
+
"nth": 55,
|
|
710
|
+
"type": "UInt32"
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
[
|
|
714
|
+
"ComputationAllowance",
|
|
715
|
+
{
|
|
716
|
+
"isSerialized": true,
|
|
717
|
+
"isSigningField": true,
|
|
718
|
+
"isVLEncoded": false,
|
|
719
|
+
"nth": 56,
|
|
720
|
+
"type": "UInt32"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
[
|
|
724
|
+
"GasUsed",
|
|
725
|
+
{
|
|
726
|
+
"isSerialized": true,
|
|
727
|
+
"isSigningField": true,
|
|
728
|
+
"isVLEncoded": false,
|
|
729
|
+
"nth": 57,
|
|
730
|
+
"type": "UInt32"
|
|
731
|
+
}
|
|
732
|
+
],
|
|
683
733
|
[
|
|
684
734
|
"IndexNext",
|
|
685
735
|
{
|
|
@@ -940,16 +990,6 @@
|
|
|
940
990
|
"type": "UInt64"
|
|
941
991
|
}
|
|
942
992
|
],
|
|
943
|
-
[
|
|
944
|
-
"LockedAmount",
|
|
945
|
-
{
|
|
946
|
-
"isSerialized": true,
|
|
947
|
-
"isSigningField": true,
|
|
948
|
-
"isVLEncoded": false,
|
|
949
|
-
"nth": 29,
|
|
950
|
-
"type": "UInt64"
|
|
951
|
-
}
|
|
952
|
-
],
|
|
953
993
|
[
|
|
954
994
|
"EmailHash",
|
|
955
995
|
{
|
|
@@ -1890,6 +1930,16 @@
|
|
|
1890
1930
|
"type": "Blob"
|
|
1891
1931
|
}
|
|
1892
1932
|
],
|
|
1933
|
+
[
|
|
1934
|
+
"FinishFunction",
|
|
1935
|
+
{
|
|
1936
|
+
"isSerialized": true,
|
|
1937
|
+
"isSigningField": true,
|
|
1938
|
+
"isVLEncoded": true,
|
|
1939
|
+
"nth": 32,
|
|
1940
|
+
"type": "Blob"
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1893
1943
|
[
|
|
1894
1944
|
"Account",
|
|
1895
1945
|
{
|
|
@@ -2460,16 +2510,6 @@
|
|
|
2460
2510
|
"type": "STObject"
|
|
2461
2511
|
}
|
|
2462
2512
|
],
|
|
2463
|
-
[
|
|
2464
|
-
"Book",
|
|
2465
|
-
{
|
|
2466
|
-
"isSerialized": true,
|
|
2467
|
-
"isSigningField": true,
|
|
2468
|
-
"isVLEncoded": false,
|
|
2469
|
-
"nth": 36,
|
|
2470
|
-
"type": "STObject"
|
|
2471
|
-
}
|
|
2472
|
-
],
|
|
2473
2513
|
[
|
|
2474
2514
|
"Signers",
|
|
2475
2515
|
{
|
|
@@ -2570,16 +2610,6 @@
|
|
|
2570
2610
|
"type": "STArray"
|
|
2571
2611
|
}
|
|
2572
2612
|
],
|
|
2573
|
-
[
|
|
2574
|
-
"AdditionalBooks",
|
|
2575
|
-
{
|
|
2576
|
-
"isSerialized": true,
|
|
2577
|
-
"isSigningField": true,
|
|
2578
|
-
"isVLEncoded": false,
|
|
2579
|
-
"nth": 13,
|
|
2580
|
-
"type": "STArray"
|
|
2581
|
-
}
|
|
2582
|
-
],
|
|
2583
2613
|
[
|
|
2584
2614
|
"Majorities",
|
|
2585
2615
|
{
|
|
@@ -3133,7 +3163,6 @@
|
|
|
3133
3163
|
"tecNFTOKEN_OFFER_TYPE_MISMATCH": 157,
|
|
3134
3164
|
"tecNO_ALTERNATIVE_KEY": 130,
|
|
3135
3165
|
"tecNO_AUTH": 134,
|
|
3136
|
-
"tecNO_DELEGATE_PERMISSION": 198,
|
|
3137
3166
|
"tecNO_DST": 124,
|
|
3138
3167
|
"tecNO_DST_INSUF_XRP": 125,
|
|
3139
3168
|
"tecNO_ENTRY": 140,
|
|
@@ -3150,7 +3179,6 @@
|
|
|
3150
3179
|
"tecOWNERS": 132,
|
|
3151
3180
|
"tecPATH_DRY": 128,
|
|
3152
3181
|
"tecPATH_PARTIAL": 101,
|
|
3153
|
-
"tecPRECISION_LOSS": 197,
|
|
3154
3182
|
"tecPSEUDO_ACCOUNT": 196,
|
|
3155
3183
|
"tecTOKEN_PAIR_NOT_FOUND": 189,
|
|
3156
3184
|
"tecTOO_SOON": 152,
|
|
@@ -3159,6 +3187,7 @@
|
|
|
3159
3187
|
"tecUNFUNDED_AMM": 162,
|
|
3160
3188
|
"tecUNFUNDED_OFFER": 103,
|
|
3161
3189
|
"tecUNFUNDED_PAYMENT": 104,
|
|
3190
|
+
"tecWASM_REJECTED": 197,
|
|
3162
3191
|
"tecWRONG_ASSET": 194,
|
|
3163
3192
|
"tecXCHAIN_ACCOUNT_CREATE_PAST": 181,
|
|
3164
3193
|
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 182,
|
|
@@ -3196,8 +3225,10 @@
|
|
|
3196
3225
|
"tefNOT_MULTI_SIGNING": -184,
|
|
3197
3226
|
"tefNO_AUTH_REQUIRED": -191,
|
|
3198
3227
|
"tefNO_TICKET": -180,
|
|
3228
|
+
"tefNO_WASM": -177,
|
|
3199
3229
|
"tefPAST_SEQ": -190,
|
|
3200
3230
|
"tefTOO_BIG": -181,
|
|
3231
|
+
"tefWASM_FIELD_NOT_INCLUDED": -176,
|
|
3201
3232
|
"tefWRONG_PRIOR": -189,
|
|
3202
3233
|
"telBAD_DOMAIN": -398,
|
|
3203
3234
|
"telBAD_PATH_COUNT": -397,
|
|
@@ -3243,6 +3274,7 @@
|
|
|
3243
3274
|
"temBAD_TICK_SIZE": -269,
|
|
3244
3275
|
"temBAD_TRANSFER_FEE": -251,
|
|
3245
3276
|
"temBAD_TRANSFER_RATE": -280,
|
|
3277
|
+
"temBAD_WASM": -249,
|
|
3246
3278
|
"temBAD_WEIGHT": -270,
|
|
3247
3279
|
"temCANNOT_PREAUTH_SELF": -267,
|
|
3248
3280
|
"temDISABLED": -273,
|
|
@@ -680,6 +680,56 @@
|
|
|
680
680
|
"type": "UInt32"
|
|
681
681
|
}
|
|
682
682
|
],
|
|
683
|
+
[
|
|
684
|
+
"ExtensionComputeLimit",
|
|
685
|
+
{
|
|
686
|
+
"isSerialized": true,
|
|
687
|
+
"isSigningField": true,
|
|
688
|
+
"isVLEncoded": false,
|
|
689
|
+
"nth": 53,
|
|
690
|
+
"type": "UInt32"
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
[
|
|
694
|
+
"ExtensionSizeLimit",
|
|
695
|
+
{
|
|
696
|
+
"isSerialized": true,
|
|
697
|
+
"isSigningField": true,
|
|
698
|
+
"isVLEncoded": false,
|
|
699
|
+
"nth": 54,
|
|
700
|
+
"type": "UInt32"
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
[
|
|
704
|
+
"GasPrice",
|
|
705
|
+
{
|
|
706
|
+
"isSerialized": true,
|
|
707
|
+
"isSigningField": true,
|
|
708
|
+
"isVLEncoded": false,
|
|
709
|
+
"nth": 55,
|
|
710
|
+
"type": "UInt32"
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
[
|
|
714
|
+
"ComputationAllowance",
|
|
715
|
+
{
|
|
716
|
+
"isSerialized": true,
|
|
717
|
+
"isSigningField": true,
|
|
718
|
+
"isVLEncoded": false,
|
|
719
|
+
"nth": 56,
|
|
720
|
+
"type": "UInt32"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
[
|
|
724
|
+
"GasUsed",
|
|
725
|
+
{
|
|
726
|
+
"isSerialized": true,
|
|
727
|
+
"isSigningField": true,
|
|
728
|
+
"isVLEncoded": false,
|
|
729
|
+
"nth": 57,
|
|
730
|
+
"type": "UInt32"
|
|
731
|
+
}
|
|
732
|
+
],
|
|
683
733
|
[
|
|
684
734
|
"IndexNext",
|
|
685
735
|
{
|
|
@@ -940,16 +990,6 @@
|
|
|
940
990
|
"type": "UInt64"
|
|
941
991
|
}
|
|
942
992
|
],
|
|
943
|
-
[
|
|
944
|
-
"LockedAmount",
|
|
945
|
-
{
|
|
946
|
-
"isSerialized": true,
|
|
947
|
-
"isSigningField": true,
|
|
948
|
-
"isVLEncoded": false,
|
|
949
|
-
"nth": 29,
|
|
950
|
-
"type": "UInt64"
|
|
951
|
-
}
|
|
952
|
-
],
|
|
953
993
|
[
|
|
954
994
|
"EmailHash",
|
|
955
995
|
{
|
|
@@ -1890,6 +1930,16 @@
|
|
|
1890
1930
|
"type": "Blob"
|
|
1891
1931
|
}
|
|
1892
1932
|
],
|
|
1933
|
+
[
|
|
1934
|
+
"FinishFunction",
|
|
1935
|
+
{
|
|
1936
|
+
"isSerialized": true,
|
|
1937
|
+
"isSigningField": true,
|
|
1938
|
+
"isVLEncoded": true,
|
|
1939
|
+
"nth": 32,
|
|
1940
|
+
"type": "Blob"
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1893
1943
|
[
|
|
1894
1944
|
"Account",
|
|
1895
1945
|
{
|
|
@@ -2460,16 +2510,6 @@
|
|
|
2460
2510
|
"type": "STObject"
|
|
2461
2511
|
}
|
|
2462
2512
|
],
|
|
2463
|
-
[
|
|
2464
|
-
"Book",
|
|
2465
|
-
{
|
|
2466
|
-
"isSerialized": true,
|
|
2467
|
-
"isSigningField": true,
|
|
2468
|
-
"isVLEncoded": false,
|
|
2469
|
-
"nth": 36,
|
|
2470
|
-
"type": "STObject"
|
|
2471
|
-
}
|
|
2472
|
-
],
|
|
2473
2513
|
[
|
|
2474
2514
|
"Signers",
|
|
2475
2515
|
{
|
|
@@ -2570,16 +2610,6 @@
|
|
|
2570
2610
|
"type": "STArray"
|
|
2571
2611
|
}
|
|
2572
2612
|
],
|
|
2573
|
-
[
|
|
2574
|
-
"AdditionalBooks",
|
|
2575
|
-
{
|
|
2576
|
-
"isSerialized": true,
|
|
2577
|
-
"isSigningField": true,
|
|
2578
|
-
"isVLEncoded": false,
|
|
2579
|
-
"nth": 13,
|
|
2580
|
-
"type": "STArray"
|
|
2581
|
-
}
|
|
2582
|
-
],
|
|
2583
2613
|
[
|
|
2584
2614
|
"Majorities",
|
|
2585
2615
|
{
|
|
@@ -3133,7 +3163,6 @@
|
|
|
3133
3163
|
"tecNFTOKEN_OFFER_TYPE_MISMATCH": 157,
|
|
3134
3164
|
"tecNO_ALTERNATIVE_KEY": 130,
|
|
3135
3165
|
"tecNO_AUTH": 134,
|
|
3136
|
-
"tecNO_DELEGATE_PERMISSION": 198,
|
|
3137
3166
|
"tecNO_DST": 124,
|
|
3138
3167
|
"tecNO_DST_INSUF_XRP": 125,
|
|
3139
3168
|
"tecNO_ENTRY": 140,
|
|
@@ -3150,7 +3179,6 @@
|
|
|
3150
3179
|
"tecOWNERS": 132,
|
|
3151
3180
|
"tecPATH_DRY": 128,
|
|
3152
3181
|
"tecPATH_PARTIAL": 101,
|
|
3153
|
-
"tecPRECISION_LOSS": 197,
|
|
3154
3182
|
"tecPSEUDO_ACCOUNT": 196,
|
|
3155
3183
|
"tecTOKEN_PAIR_NOT_FOUND": 189,
|
|
3156
3184
|
"tecTOO_SOON": 152,
|
|
@@ -3159,6 +3187,7 @@
|
|
|
3159
3187
|
"tecUNFUNDED_AMM": 162,
|
|
3160
3188
|
"tecUNFUNDED_OFFER": 103,
|
|
3161
3189
|
"tecUNFUNDED_PAYMENT": 104,
|
|
3190
|
+
"tecWASM_REJECTED": 197,
|
|
3162
3191
|
"tecWRONG_ASSET": 194,
|
|
3163
3192
|
"tecXCHAIN_ACCOUNT_CREATE_PAST": 181,
|
|
3164
3193
|
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 182,
|
|
@@ -3197,8 +3226,10 @@
|
|
|
3197
3226
|
"tefNOT_MULTI_SIGNING": -184,
|
|
3198
3227
|
"tefNO_AUTH_REQUIRED": -191,
|
|
3199
3228
|
"tefNO_TICKET": -180,
|
|
3229
|
+
"tefNO_WASM": -177,
|
|
3200
3230
|
"tefPAST_SEQ": -190,
|
|
3201
3231
|
"tefTOO_BIG": -181,
|
|
3232
|
+
"tefWASM_FIELD_NOT_INCLUDED": -176,
|
|
3202
3233
|
"tefWRONG_PRIOR": -189,
|
|
3203
3234
|
|
|
3204
3235
|
"telBAD_DOMAIN": -398,
|
|
@@ -3246,6 +3277,7 @@
|
|
|
3246
3277
|
"temBAD_TICK_SIZE": -269,
|
|
3247
3278
|
"temBAD_TRANSFER_FEE": -251,
|
|
3248
3279
|
"temBAD_TRANSFER_RATE": -280,
|
|
3280
|
+
"temBAD_WASM": -249,
|
|
3249
3281
|
"temBAD_WEIGHT": -270,
|
|
3250
3282
|
"temCANNOT_PREAUTH_SELF": -267,
|
|
3251
3283
|
"temDISABLED": -273,
|
|
@@ -680,6 +680,56 @@
|
|
|
680
680
|
"type": "UInt32"
|
|
681
681
|
}
|
|
682
682
|
],
|
|
683
|
+
[
|
|
684
|
+
"ExtensionComputeLimit",
|
|
685
|
+
{
|
|
686
|
+
"isSerialized": true,
|
|
687
|
+
"isSigningField": true,
|
|
688
|
+
"isVLEncoded": false,
|
|
689
|
+
"nth": 53,
|
|
690
|
+
"type": "UInt32"
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
[
|
|
694
|
+
"ExtensionSizeLimit",
|
|
695
|
+
{
|
|
696
|
+
"isSerialized": true,
|
|
697
|
+
"isSigningField": true,
|
|
698
|
+
"isVLEncoded": false,
|
|
699
|
+
"nth": 54,
|
|
700
|
+
"type": "UInt32"
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
[
|
|
704
|
+
"GasPrice",
|
|
705
|
+
{
|
|
706
|
+
"isSerialized": true,
|
|
707
|
+
"isSigningField": true,
|
|
708
|
+
"isVLEncoded": false,
|
|
709
|
+
"nth": 55,
|
|
710
|
+
"type": "UInt32"
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
[
|
|
714
|
+
"ComputationAllowance",
|
|
715
|
+
{
|
|
716
|
+
"isSerialized": true,
|
|
717
|
+
"isSigningField": true,
|
|
718
|
+
"isVLEncoded": false,
|
|
719
|
+
"nth": 56,
|
|
720
|
+
"type": "UInt32"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
[
|
|
724
|
+
"GasUsed",
|
|
725
|
+
{
|
|
726
|
+
"isSerialized": true,
|
|
727
|
+
"isSigningField": true,
|
|
728
|
+
"isVLEncoded": false,
|
|
729
|
+
"nth": 57,
|
|
730
|
+
"type": "UInt32"
|
|
731
|
+
}
|
|
732
|
+
],
|
|
683
733
|
[
|
|
684
734
|
"IndexNext",
|
|
685
735
|
{
|
|
@@ -940,16 +990,6 @@
|
|
|
940
990
|
"type": "UInt64"
|
|
941
991
|
}
|
|
942
992
|
],
|
|
943
|
-
[
|
|
944
|
-
"LockedAmount",
|
|
945
|
-
{
|
|
946
|
-
"isSerialized": true,
|
|
947
|
-
"isSigningField": true,
|
|
948
|
-
"isVLEncoded": false,
|
|
949
|
-
"nth": 29,
|
|
950
|
-
"type": "UInt64"
|
|
951
|
-
}
|
|
952
|
-
],
|
|
953
993
|
[
|
|
954
994
|
"EmailHash",
|
|
955
995
|
{
|
|
@@ -1890,6 +1930,16 @@
|
|
|
1890
1930
|
"type": "Blob"
|
|
1891
1931
|
}
|
|
1892
1932
|
],
|
|
1933
|
+
[
|
|
1934
|
+
"FinishFunction",
|
|
1935
|
+
{
|
|
1936
|
+
"isSerialized": true,
|
|
1937
|
+
"isSigningField": true,
|
|
1938
|
+
"isVLEncoded": true,
|
|
1939
|
+
"nth": 32,
|
|
1940
|
+
"type": "Blob"
|
|
1941
|
+
}
|
|
1942
|
+
],
|
|
1893
1943
|
[
|
|
1894
1944
|
"Account",
|
|
1895
1945
|
{
|
|
@@ -2460,16 +2510,6 @@
|
|
|
2460
2510
|
"type": "STObject"
|
|
2461
2511
|
}
|
|
2462
2512
|
],
|
|
2463
|
-
[
|
|
2464
|
-
"Book",
|
|
2465
|
-
{
|
|
2466
|
-
"isSerialized": true,
|
|
2467
|
-
"isSigningField": true,
|
|
2468
|
-
"isVLEncoded": false,
|
|
2469
|
-
"nth": 36,
|
|
2470
|
-
"type": "STObject"
|
|
2471
|
-
}
|
|
2472
|
-
],
|
|
2473
2513
|
[
|
|
2474
2514
|
"Signers",
|
|
2475
2515
|
{
|
|
@@ -2570,16 +2610,6 @@
|
|
|
2570
2610
|
"type": "STArray"
|
|
2571
2611
|
}
|
|
2572
2612
|
],
|
|
2573
|
-
[
|
|
2574
|
-
"AdditionalBooks",
|
|
2575
|
-
{
|
|
2576
|
-
"isSerialized": true,
|
|
2577
|
-
"isSigningField": true,
|
|
2578
|
-
"isVLEncoded": false,
|
|
2579
|
-
"nth": 13,
|
|
2580
|
-
"type": "STArray"
|
|
2581
|
-
}
|
|
2582
|
-
],
|
|
2583
2613
|
[
|
|
2584
2614
|
"Majorities",
|
|
2585
2615
|
{
|
|
@@ -3133,7 +3163,6 @@
|
|
|
3133
3163
|
"tecNFTOKEN_OFFER_TYPE_MISMATCH": 157,
|
|
3134
3164
|
"tecNO_ALTERNATIVE_KEY": 130,
|
|
3135
3165
|
"tecNO_AUTH": 134,
|
|
3136
|
-
"tecNO_DELEGATE_PERMISSION": 198,
|
|
3137
3166
|
"tecNO_DST": 124,
|
|
3138
3167
|
"tecNO_DST_INSUF_XRP": 125,
|
|
3139
3168
|
"tecNO_ENTRY": 140,
|
|
@@ -3150,7 +3179,6 @@
|
|
|
3150
3179
|
"tecOWNERS": 132,
|
|
3151
3180
|
"tecPATH_DRY": 128,
|
|
3152
3181
|
"tecPATH_PARTIAL": 101,
|
|
3153
|
-
"tecPRECISION_LOSS": 197,
|
|
3154
3182
|
"tecPSEUDO_ACCOUNT": 196,
|
|
3155
3183
|
"tecTOKEN_PAIR_NOT_FOUND": 189,
|
|
3156
3184
|
"tecTOO_SOON": 152,
|
|
@@ -3159,6 +3187,7 @@
|
|
|
3159
3187
|
"tecUNFUNDED_AMM": 162,
|
|
3160
3188
|
"tecUNFUNDED_OFFER": 103,
|
|
3161
3189
|
"tecUNFUNDED_PAYMENT": 104,
|
|
3190
|
+
"tecWASM_REJECTED": 197,
|
|
3162
3191
|
"tecWRONG_ASSET": 194,
|
|
3163
3192
|
"tecXCHAIN_ACCOUNT_CREATE_PAST": 181,
|
|
3164
3193
|
"tecXCHAIN_ACCOUNT_CREATE_TOO_MANY": 182,
|
|
@@ -3196,8 +3225,10 @@
|
|
|
3196
3225
|
"tefNOT_MULTI_SIGNING": -184,
|
|
3197
3226
|
"tefNO_AUTH_REQUIRED": -191,
|
|
3198
3227
|
"tefNO_TICKET": -180,
|
|
3228
|
+
"tefNO_WASM": -177,
|
|
3199
3229
|
"tefPAST_SEQ": -190,
|
|
3200
3230
|
"tefTOO_BIG": -181,
|
|
3231
|
+
"tefWASM_FIELD_NOT_INCLUDED": -176,
|
|
3201
3232
|
"tefWRONG_PRIOR": -189,
|
|
3202
3233
|
"telBAD_DOMAIN": -398,
|
|
3203
3234
|
"telBAD_PATH_COUNT": -397,
|
|
@@ -3243,6 +3274,7 @@
|
|
|
3243
3274
|
"temBAD_TICK_SIZE": -269,
|
|
3244
3275
|
"temBAD_TRANSFER_FEE": -251,
|
|
3245
3276
|
"temBAD_TRANSFER_RATE": -280,
|
|
3277
|
+
"temBAD_WASM": -249,
|
|
3246
3278
|
"temBAD_WEIGHT": -270,
|
|
3247
3279
|
"temCANNOT_PREAUTH_SELF": -267,
|
|
3248
3280
|
"temDISABLED": -273,
|
package/dist/src/types/index.js
CHANGED
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "Hash192", { enumerable: true, get: function () {
|
|
|
18
18
|
const hash_256_1 = require("./hash-256");
|
|
19
19
|
Object.defineProperty(exports, "Hash256", { enumerable: true, get: function () { return hash_256_1.Hash256; } });
|
|
20
20
|
const issue_1 = require("./issue");
|
|
21
|
+
const st_number_1 = require("./st-number");
|
|
21
22
|
const path_set_1 = require("./path-set");
|
|
22
23
|
Object.defineProperty(exports, "PathSet", { enumerable: true, get: function () { return path_set_1.PathSet; } });
|
|
23
24
|
const st_array_1 = require("./st-array");
|
|
@@ -46,6 +47,7 @@ const coreTypes = {
|
|
|
46
47
|
Hash192: hash_192_1.Hash192,
|
|
47
48
|
Hash256: hash_256_1.Hash256,
|
|
48
49
|
Issue: issue_1.Issue,
|
|
50
|
+
Number: st_number_1.STNumber,
|
|
49
51
|
PathSet: path_set_1.PathSet,
|
|
50
52
|
STArray: st_array_1.STArray,
|
|
51
53
|
STObject: st_object_1.STObject,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":";;;AAAA,6CAAwC;AAmDtC,0FAnDO,sBAAS,OAmDP;AAlDX,qCAAiC;AAmD/B,uFAnDO,eAAM,OAmDP;AAlDR,iCAA6B;AAmD3B,qFAnDO,WAAI,OAmDP;AAlDN,yCAAqC;AAmDnC,yFAnDO,mBAAQ,OAmDP;AAlDV,yCAAoC;AAmDlC,wFAnDO,kBAAO,OAmDP;AAlDT,yCAAoC;AAmDlC,wFAnDO,kBAAO,OAmDP;AAlDT,yCAAoC;AAmDlC,wFAnDO,kBAAO,OAmDP;AAlDT,yCAAoC;AAmDlC,wFAnDO,kBAAO,OAmDP;AAlDT,mCAA+B;AAC/B,2CAAsC;AACtC,yCAAoC;AAiDlC,wFAjDO,kBAAO,OAiDP;AAhDT,yCAAoC;AAiDlC,wFAjDO,kBAAO,OAiDP;AAhDT,2CAAsC;AAiDpC,yFAjDO,oBAAQ,OAiDP;AAhDV,uCAAkC;AAkDhC,uFAlDO,gBAAM,OAkDP;AAjDR,uCAAkC;AAkDhC,uFAlDO,gBAAM,OAkDP;AAjDR,uCAAkC;AAkDhC,uFAlDO,gBAAM,OAkDP;AAjDR,qCAAgC;AA8C9B,sFA9CO,cAAK,OA8CP;AA7CP,6CAAwC;AAiDtC,0FAjDO,sBAAS,OAiDP;AAhDX,mDAA8C;AAE9C,oCAA8C;AAE9C,MAAM,SAAS,GAA0C;IACvD,SAAS,EAAT,sBAAS;IACT,MAAM,EAAN,eAAM;IACN,IAAI,EAAJ,WAAI;IACJ,QAAQ,EAAR,mBAAQ;IACR,OAAO,EAAP,kBAAO;IACP,OAAO,EAAP,kBAAO;IACP,OAAO,EAAP,kBAAO;IACP,OAAO,EAAP,kBAAO;IACP,KAAK,EAAL,aAAK;IACL,MAAM,EAAE,oBAAQ;IAChB,OAAO,EAAP,kBAAO;IACP,OAAO,EAAP,kBAAO;IACP,QAAQ,EAAR,oBAAQ;IACR,KAAK,EAAL,cAAK;IACL,MAAM,EAAN,gBAAM;IACN,MAAM,EAAN,gBAAM;IACN,MAAM,EAAN,gBAAM;IACN,SAAS,EAAT,sBAAS;IACT,YAAY,EAAZ,4BAAY;CACb,CAAA;AAQC,8BAAS;AANX,2GAA2G;AAC3G,gFAAgF;AAChF,8FAA8F;AAC9F,2BAAmB,CAAC,cAAc,CAAC,SAAS,CAAC,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { BinaryParser } from '../serdes/binary-parser';
|
|
2
|
+
import { SerializedType } from './serialized-type';
|
|
3
|
+
/**
|
|
4
|
+
* STNumber: Encodes XRPL's "Number" type.
|
|
5
|
+
*
|
|
6
|
+
* - Always encoded as 12 bytes: 8-byte signed mantissa, 4-byte signed exponent, both big-endian.
|
|
7
|
+
* - Can only be constructed from a valid number string or another STNumber instance.
|
|
8
|
+
*
|
|
9
|
+
* Usage:
|
|
10
|
+
* STNumber.from("1.2345e5")
|
|
11
|
+
* STNumber.from("-123")
|
|
12
|
+
* STNumber.fromParser(parser)
|
|
13
|
+
*/
|
|
14
|
+
export declare class STNumber extends SerializedType {
|
|
15
|
+
/** 12 zero bytes, represents canonical zero. */
|
|
16
|
+
static defaultBytes: Uint8Array;
|
|
17
|
+
/**
|
|
18
|
+
* Construct a STNumber from 12 bytes (8 for mantissa, 4 for exponent).
|
|
19
|
+
* @param bytes - 12-byte Uint8Array
|
|
20
|
+
* @throws Error if input is not a Uint8Array of length 12.
|
|
21
|
+
*/
|
|
22
|
+
constructor(bytes?: Uint8Array);
|
|
23
|
+
/**
|
|
24
|
+
* Construct from a number string (or another STNumber).
|
|
25
|
+
*
|
|
26
|
+
* @param value - A string, or STNumber instance.
|
|
27
|
+
* @returns STNumber instance.
|
|
28
|
+
* @throws Error if not a string or STNumber.
|
|
29
|
+
*/
|
|
30
|
+
static from(value: unknown): STNumber;
|
|
31
|
+
/**
|
|
32
|
+
* Construct from a number string (integer, decimal, or scientific notation).
|
|
33
|
+
* Handles normalization to XRPL Number constraints.
|
|
34
|
+
*
|
|
35
|
+
* @param val - The number as a string (e.g. '1.23', '-123e5').
|
|
36
|
+
* @returns STNumber instance
|
|
37
|
+
* @throws Error if val is not a valid number string.
|
|
38
|
+
*/
|
|
39
|
+
static fromValue(val: string): STNumber;
|
|
40
|
+
/**
|
|
41
|
+
* Read a STNumber from a BinaryParser stream (12 bytes).
|
|
42
|
+
* @param parser - BinaryParser positioned at the start of a number
|
|
43
|
+
* @returns STNumber instance
|
|
44
|
+
*/
|
|
45
|
+
static fromParser(parser: BinaryParser): STNumber;
|
|
46
|
+
/**
|
|
47
|
+
* Convert this STNumber to a normalized string representation.
|
|
48
|
+
* The output is decimal or scientific notation, depending on exponent range.
|
|
49
|
+
* Follows XRPL convention: zero is "0", other values are normalized to a canonical string.
|
|
50
|
+
*
|
|
51
|
+
* @returns String representation of the value
|
|
52
|
+
*/
|
|
53
|
+
toJSON(): string;
|
|
54
|
+
}
|