@pendle/sdk-boros 0.3.30-beta → 0.3.30
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/contracts/viemAbis.d.ts +38 -318
- package/dist/contracts/viemAbis.js +16 -170
- package/dist/contracts/viemAbis.js.map +1 -1
- package/dist/entities/exchange/utils.d.ts +0 -89
- package/dist/types/encoders.d.ts +6 -16
- package/dist/types/encoders.js.map +1 -1
- package/dist/utils/signing/index.d.ts +1 -1
- package/dist/utils/signing/index.js +2 -1
- package/dist/utils/signing/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -187,95 +187,6 @@ export declare const iAMMFactoryAbi: readonly [{
|
|
|
187
187
|
readonly type: "function";
|
|
188
188
|
}];
|
|
189
189
|
export declare const iMarketHubEntryOnlyAbi: readonly [{
|
|
190
|
-
readonly inputs: readonly [{
|
|
191
|
-
readonly internalType: "MarketId";
|
|
192
|
-
readonly name: "marketId";
|
|
193
|
-
readonly type: "uint24";
|
|
194
|
-
}, {
|
|
195
|
-
readonly internalType: "MarketAcc";
|
|
196
|
-
readonly name: "user";
|
|
197
|
-
readonly type: "bytes26";
|
|
198
|
-
}, {
|
|
199
|
-
readonly components: readonly [{
|
|
200
|
-
readonly internalType: "OrderId[]";
|
|
201
|
-
readonly name: "ids";
|
|
202
|
-
readonly type: "uint64[]";
|
|
203
|
-
}, {
|
|
204
|
-
readonly internalType: "bool";
|
|
205
|
-
readonly name: "isAll";
|
|
206
|
-
readonly type: "bool";
|
|
207
|
-
}, {
|
|
208
|
-
readonly internalType: "bool";
|
|
209
|
-
readonly name: "isStrict";
|
|
210
|
-
readonly type: "bool";
|
|
211
|
-
}];
|
|
212
|
-
readonly internalType: "struct CancelData";
|
|
213
|
-
readonly name: "cancelData";
|
|
214
|
-
readonly type: "tuple";
|
|
215
|
-
}, {
|
|
216
|
-
readonly components: readonly [{
|
|
217
|
-
readonly internalType: "enum TimeInForce";
|
|
218
|
-
readonly name: "tif";
|
|
219
|
-
readonly type: "uint8";
|
|
220
|
-
}, {
|
|
221
|
-
readonly internalType: "enum Side";
|
|
222
|
-
readonly name: "side";
|
|
223
|
-
readonly type: "uint8";
|
|
224
|
-
}, {
|
|
225
|
-
readonly internalType: "uint256[]";
|
|
226
|
-
readonly name: "sizes";
|
|
227
|
-
readonly type: "uint256[]";
|
|
228
|
-
}, {
|
|
229
|
-
readonly internalType: "int16[]";
|
|
230
|
-
readonly name: "limitTicks";
|
|
231
|
-
readonly type: "int16[]";
|
|
232
|
-
}];
|
|
233
|
-
readonly internalType: "struct LongShort";
|
|
234
|
-
readonly name: "orders1";
|
|
235
|
-
readonly type: "tuple";
|
|
236
|
-
}, {
|
|
237
|
-
readonly components: readonly [{
|
|
238
|
-
readonly internalType: "enum TimeInForce";
|
|
239
|
-
readonly name: "tif";
|
|
240
|
-
readonly type: "uint8";
|
|
241
|
-
}, {
|
|
242
|
-
readonly internalType: "enum Side";
|
|
243
|
-
readonly name: "side";
|
|
244
|
-
readonly type: "uint8";
|
|
245
|
-
}, {
|
|
246
|
-
readonly internalType: "uint256[]";
|
|
247
|
-
readonly name: "sizes";
|
|
248
|
-
readonly type: "uint256[]";
|
|
249
|
-
}, {
|
|
250
|
-
readonly internalType: "int16[]";
|
|
251
|
-
readonly name: "limitTicks";
|
|
252
|
-
readonly type: "int16[]";
|
|
253
|
-
}];
|
|
254
|
-
readonly internalType: "struct LongShort";
|
|
255
|
-
readonly name: "orders2";
|
|
256
|
-
readonly type: "tuple";
|
|
257
|
-
}];
|
|
258
|
-
readonly name: "bulkOrders";
|
|
259
|
-
readonly outputs: readonly [{
|
|
260
|
-
readonly internalType: "Trade";
|
|
261
|
-
readonly name: "matched1";
|
|
262
|
-
readonly type: "uint256";
|
|
263
|
-
}, {
|
|
264
|
-
readonly internalType: "Trade";
|
|
265
|
-
readonly name: "matched2";
|
|
266
|
-
readonly type: "uint256";
|
|
267
|
-
}, {
|
|
268
|
-
readonly internalType: "uint256";
|
|
269
|
-
readonly name: "takerFee1";
|
|
270
|
-
readonly type: "uint256";
|
|
271
|
-
}, {
|
|
272
|
-
readonly internalType: "uint256";
|
|
273
|
-
readonly name: "takerFee2";
|
|
274
|
-
readonly type: "uint256";
|
|
275
|
-
}];
|
|
276
|
-
readonly stateMutability: "nonpayable";
|
|
277
|
-
readonly type: "function";
|
|
278
|
-
}, {
|
|
279
190
|
readonly inputs: readonly [{
|
|
280
191
|
readonly internalType: "MarketId";
|
|
281
192
|
readonly name: "marketId";
|
|
@@ -893,95 +804,6 @@ export declare const iMarketHubAbi: readonly [{
|
|
|
893
804
|
}];
|
|
894
805
|
readonly stateMutability: "view";
|
|
895
806
|
readonly type: "function";
|
|
896
|
-
}, {
|
|
897
|
-
readonly inputs: readonly [{
|
|
898
|
-
readonly internalType: "MarketId";
|
|
899
|
-
readonly name: "marketId";
|
|
900
|
-
readonly type: "uint24";
|
|
901
|
-
}, {
|
|
902
|
-
readonly internalType: "MarketAcc";
|
|
903
|
-
readonly name: "user";
|
|
904
|
-
readonly type: "bytes26";
|
|
905
|
-
}, {
|
|
906
|
-
readonly components: readonly [{
|
|
907
|
-
readonly internalType: "OrderId[]";
|
|
908
|
-
readonly name: "ids";
|
|
909
|
-
readonly type: "uint64[]";
|
|
910
|
-
}, {
|
|
911
|
-
readonly internalType: "bool";
|
|
912
|
-
readonly name: "isAll";
|
|
913
|
-
readonly type: "bool";
|
|
914
|
-
}, {
|
|
915
|
-
readonly internalType: "bool";
|
|
916
|
-
readonly name: "isStrict";
|
|
917
|
-
readonly type: "bool";
|
|
918
|
-
}];
|
|
919
|
-
readonly internalType: "struct CancelData";
|
|
920
|
-
readonly name: "cancelData";
|
|
921
|
-
readonly type: "tuple";
|
|
922
|
-
}, {
|
|
923
|
-
readonly components: readonly [{
|
|
924
|
-
readonly internalType: "enum TimeInForce";
|
|
925
|
-
readonly name: "tif";
|
|
926
|
-
readonly type: "uint8";
|
|
927
|
-
}, {
|
|
928
|
-
readonly internalType: "enum Side";
|
|
929
|
-
readonly name: "side";
|
|
930
|
-
readonly type: "uint8";
|
|
931
|
-
}, {
|
|
932
|
-
readonly internalType: "uint256[]";
|
|
933
|
-
readonly name: "sizes";
|
|
934
|
-
readonly type: "uint256[]";
|
|
935
|
-
}, {
|
|
936
|
-
readonly internalType: "int16[]";
|
|
937
|
-
readonly name: "limitTicks";
|
|
938
|
-
readonly type: "int16[]";
|
|
939
|
-
}];
|
|
940
|
-
readonly internalType: "struct LongShort";
|
|
941
|
-
readonly name: "orders1";
|
|
942
|
-
readonly type: "tuple";
|
|
943
|
-
}, {
|
|
944
|
-
readonly components: readonly [{
|
|
945
|
-
readonly internalType: "enum TimeInForce";
|
|
946
|
-
readonly name: "tif";
|
|
947
|
-
readonly type: "uint8";
|
|
948
|
-
}, {
|
|
949
|
-
readonly internalType: "enum Side";
|
|
950
|
-
readonly name: "side";
|
|
951
|
-
readonly type: "uint8";
|
|
952
|
-
}, {
|
|
953
|
-
readonly internalType: "uint256[]";
|
|
954
|
-
readonly name: "sizes";
|
|
955
|
-
readonly type: "uint256[]";
|
|
956
|
-
}, {
|
|
957
|
-
readonly internalType: "int16[]";
|
|
958
|
-
readonly name: "limitTicks";
|
|
959
|
-
readonly type: "int16[]";
|
|
960
|
-
}];
|
|
961
|
-
readonly internalType: "struct LongShort";
|
|
962
|
-
readonly name: "orders2";
|
|
963
|
-
readonly type: "tuple";
|
|
964
|
-
}];
|
|
965
|
-
readonly name: "bulkOrders";
|
|
966
|
-
readonly outputs: readonly [{
|
|
967
|
-
readonly internalType: "Trade";
|
|
968
|
-
readonly name: "matched1";
|
|
969
|
-
readonly type: "uint256";
|
|
970
|
-
}, {
|
|
971
|
-
readonly internalType: "Trade";
|
|
972
|
-
readonly name: "matched2";
|
|
973
|
-
readonly type: "uint256";
|
|
974
|
-
}, {
|
|
975
|
-
readonly internalType: "uint256";
|
|
976
|
-
readonly name: "takerFee1";
|
|
977
|
-
readonly type: "uint256";
|
|
978
|
-
}, {
|
|
979
|
-
readonly internalType: "uint256";
|
|
980
|
-
readonly name: "takerFee2";
|
|
981
|
-
readonly type: "uint256";
|
|
982
|
-
}];
|
|
983
|
-
readonly stateMutability: "nonpayable";
|
|
984
|
-
readonly type: "function";
|
|
985
807
|
}, {
|
|
986
808
|
readonly inputs: readonly [{
|
|
987
809
|
readonly internalType: "MarketId";
|
|
@@ -3838,71 +3660,28 @@ export declare const iRouterAbi: readonly [{
|
|
|
3838
3660
|
readonly name: "marketId";
|
|
3839
3661
|
readonly type: "uint24";
|
|
3840
3662
|
}, {
|
|
3841
|
-
readonly
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
readonly type: "uint64[]";
|
|
3845
|
-
}, {
|
|
3846
|
-
readonly internalType: "bool";
|
|
3847
|
-
readonly name: "isAll";
|
|
3848
|
-
readonly type: "bool";
|
|
3849
|
-
}, {
|
|
3850
|
-
readonly internalType: "bool";
|
|
3851
|
-
readonly name: "isStrict";
|
|
3852
|
-
readonly type: "bool";
|
|
3853
|
-
}];
|
|
3854
|
-
readonly internalType: "struct CancelData";
|
|
3855
|
-
readonly name: "cancels";
|
|
3856
|
-
readonly type: "tuple";
|
|
3663
|
+
readonly internalType: "enum Side";
|
|
3664
|
+
readonly name: "side";
|
|
3665
|
+
readonly type: "uint8";
|
|
3857
3666
|
}, {
|
|
3858
|
-
readonly
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
readonly type: "uint8";
|
|
3862
|
-
}, {
|
|
3863
|
-
readonly internalType: "enum Side";
|
|
3864
|
-
readonly name: "side";
|
|
3865
|
-
readonly type: "uint8";
|
|
3866
|
-
}, {
|
|
3867
|
-
readonly internalType: "uint256[]";
|
|
3868
|
-
readonly name: "sizes";
|
|
3869
|
-
readonly type: "uint256[]";
|
|
3870
|
-
}, {
|
|
3871
|
-
readonly internalType: "int16[]";
|
|
3872
|
-
readonly name: "limitTicks";
|
|
3873
|
-
readonly type: "int16[]";
|
|
3874
|
-
}];
|
|
3875
|
-
readonly internalType: "struct LongShort";
|
|
3876
|
-
readonly name: "orders1";
|
|
3877
|
-
readonly type: "tuple";
|
|
3667
|
+
readonly internalType: "enum TimeInForce";
|
|
3668
|
+
readonly name: "tif";
|
|
3669
|
+
readonly type: "uint8";
|
|
3878
3670
|
}, {
|
|
3879
|
-
readonly
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
readonly type: "uint8";
|
|
3883
|
-
}, {
|
|
3884
|
-
readonly internalType: "enum Side";
|
|
3885
|
-
readonly name: "side";
|
|
3886
|
-
readonly type: "uint8";
|
|
3887
|
-
}, {
|
|
3888
|
-
readonly internalType: "uint256[]";
|
|
3889
|
-
readonly name: "sizes";
|
|
3890
|
-
readonly type: "uint256[]";
|
|
3891
|
-
}, {
|
|
3892
|
-
readonly internalType: "int16[]";
|
|
3893
|
-
readonly name: "limitTicks";
|
|
3894
|
-
readonly type: "int16[]";
|
|
3895
|
-
}];
|
|
3896
|
-
readonly internalType: "struct LongShort";
|
|
3897
|
-
readonly name: "orders2";
|
|
3898
|
-
readonly type: "tuple";
|
|
3671
|
+
readonly internalType: "uint256[]";
|
|
3672
|
+
readonly name: "sizes";
|
|
3673
|
+
readonly type: "uint256[]";
|
|
3899
3674
|
}, {
|
|
3900
|
-
readonly internalType: "
|
|
3901
|
-
readonly name: "
|
|
3902
|
-
readonly type: "
|
|
3675
|
+
readonly internalType: "int16[]";
|
|
3676
|
+
readonly name: "limitTicks";
|
|
3677
|
+
readonly type: "int16[]";
|
|
3678
|
+
}, {
|
|
3679
|
+
readonly internalType: "OrderId[]";
|
|
3680
|
+
readonly name: "idsToStrictCancel";
|
|
3681
|
+
readonly type: "uint64[]";
|
|
3903
3682
|
}, {
|
|
3904
3683
|
readonly internalType: "int128";
|
|
3905
|
-
readonly name: "
|
|
3684
|
+
readonly name: "desiredMatchRate";
|
|
3906
3685
|
readonly type: "int128";
|
|
3907
3686
|
}];
|
|
3908
3687
|
readonly internalType: "struct IRouterEventsAndTypes.BulkOrders";
|
|
@@ -3912,19 +3691,11 @@ export declare const iRouterAbi: readonly [{
|
|
|
3912
3691
|
readonly name: "bulkOrders";
|
|
3913
3692
|
readonly outputs: readonly [{
|
|
3914
3693
|
readonly internalType: "Trade";
|
|
3915
|
-
readonly name: "
|
|
3916
|
-
readonly type: "uint256";
|
|
3917
|
-
}, {
|
|
3918
|
-
readonly internalType: "Trade";
|
|
3919
|
-
readonly name: "matched2";
|
|
3920
|
-
readonly type: "uint256";
|
|
3921
|
-
}, {
|
|
3922
|
-
readonly internalType: "uint256";
|
|
3923
|
-
readonly name: "takerFee1";
|
|
3694
|
+
readonly name: "matched";
|
|
3924
3695
|
readonly type: "uint256";
|
|
3925
3696
|
}, {
|
|
3926
3697
|
readonly internalType: "uint256";
|
|
3927
|
-
readonly name: "
|
|
3698
|
+
readonly name: "takerFee";
|
|
3928
3699
|
readonly type: "uint256";
|
|
3929
3700
|
}];
|
|
3930
3701
|
readonly stateMutability: "nonpayable";
|
|
@@ -12624,71 +12395,28 @@ export declare const iTradeModuleAbi: readonly [{
|
|
|
12624
12395
|
readonly name: "marketId";
|
|
12625
12396
|
readonly type: "uint24";
|
|
12626
12397
|
}, {
|
|
12627
|
-
readonly
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
readonly type: "uint64[]";
|
|
12631
|
-
}, {
|
|
12632
|
-
readonly internalType: "bool";
|
|
12633
|
-
readonly name: "isAll";
|
|
12634
|
-
readonly type: "bool";
|
|
12635
|
-
}, {
|
|
12636
|
-
readonly internalType: "bool";
|
|
12637
|
-
readonly name: "isStrict";
|
|
12638
|
-
readonly type: "bool";
|
|
12639
|
-
}];
|
|
12640
|
-
readonly internalType: "struct CancelData";
|
|
12641
|
-
readonly name: "cancels";
|
|
12642
|
-
readonly type: "tuple";
|
|
12398
|
+
readonly internalType: "enum Side";
|
|
12399
|
+
readonly name: "side";
|
|
12400
|
+
readonly type: "uint8";
|
|
12643
12401
|
}, {
|
|
12644
|
-
readonly
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
readonly type: "uint8";
|
|
12648
|
-
}, {
|
|
12649
|
-
readonly internalType: "enum Side";
|
|
12650
|
-
readonly name: "side";
|
|
12651
|
-
readonly type: "uint8";
|
|
12652
|
-
}, {
|
|
12653
|
-
readonly internalType: "uint256[]";
|
|
12654
|
-
readonly name: "sizes";
|
|
12655
|
-
readonly type: "uint256[]";
|
|
12656
|
-
}, {
|
|
12657
|
-
readonly internalType: "int16[]";
|
|
12658
|
-
readonly name: "limitTicks";
|
|
12659
|
-
readonly type: "int16[]";
|
|
12660
|
-
}];
|
|
12661
|
-
readonly internalType: "struct LongShort";
|
|
12662
|
-
readonly name: "orders1";
|
|
12663
|
-
readonly type: "tuple";
|
|
12402
|
+
readonly internalType: "enum TimeInForce";
|
|
12403
|
+
readonly name: "tif";
|
|
12404
|
+
readonly type: "uint8";
|
|
12664
12405
|
}, {
|
|
12665
|
-
readonly
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
readonly type: "uint8";
|
|
12669
|
-
}, {
|
|
12670
|
-
readonly internalType: "enum Side";
|
|
12671
|
-
readonly name: "side";
|
|
12672
|
-
readonly type: "uint8";
|
|
12673
|
-
}, {
|
|
12674
|
-
readonly internalType: "uint256[]";
|
|
12675
|
-
readonly name: "sizes";
|
|
12676
|
-
readonly type: "uint256[]";
|
|
12677
|
-
}, {
|
|
12678
|
-
readonly internalType: "int16[]";
|
|
12679
|
-
readonly name: "limitTicks";
|
|
12680
|
-
readonly type: "int16[]";
|
|
12681
|
-
}];
|
|
12682
|
-
readonly internalType: "struct LongShort";
|
|
12683
|
-
readonly name: "orders2";
|
|
12684
|
-
readonly type: "tuple";
|
|
12406
|
+
readonly internalType: "uint256[]";
|
|
12407
|
+
readonly name: "sizes";
|
|
12408
|
+
readonly type: "uint256[]";
|
|
12685
12409
|
}, {
|
|
12686
|
-
readonly internalType: "
|
|
12687
|
-
readonly name: "
|
|
12688
|
-
readonly type: "
|
|
12410
|
+
readonly internalType: "int16[]";
|
|
12411
|
+
readonly name: "limitTicks";
|
|
12412
|
+
readonly type: "int16[]";
|
|
12413
|
+
}, {
|
|
12414
|
+
readonly internalType: "OrderId[]";
|
|
12415
|
+
readonly name: "idsToStrictCancel";
|
|
12416
|
+
readonly type: "uint64[]";
|
|
12689
12417
|
}, {
|
|
12690
12418
|
readonly internalType: "int128";
|
|
12691
|
-
readonly name: "
|
|
12419
|
+
readonly name: "desiredMatchRate";
|
|
12692
12420
|
readonly type: "int128";
|
|
12693
12421
|
}];
|
|
12694
12422
|
readonly internalType: "struct IRouterEventsAndTypes.BulkOrders";
|
|
@@ -12698,19 +12426,11 @@ export declare const iTradeModuleAbi: readonly [{
|
|
|
12698
12426
|
readonly name: "bulkOrders";
|
|
12699
12427
|
readonly outputs: readonly [{
|
|
12700
12428
|
readonly internalType: "Trade";
|
|
12701
|
-
readonly name: "
|
|
12702
|
-
readonly type: "uint256";
|
|
12703
|
-
}, {
|
|
12704
|
-
readonly internalType: "Trade";
|
|
12705
|
-
readonly name: "matched2";
|
|
12706
|
-
readonly type: "uint256";
|
|
12707
|
-
}, {
|
|
12708
|
-
readonly internalType: "uint256";
|
|
12709
|
-
readonly name: "takerFee1";
|
|
12429
|
+
readonly name: "matched";
|
|
12710
12430
|
readonly type: "uint256";
|
|
12711
12431
|
}, {
|
|
12712
12432
|
readonly internalType: "uint256";
|
|
12713
|
-
readonly name: "
|
|
12433
|
+
readonly name: "takerFee";
|
|
12714
12434
|
readonly type: "uint256";
|
|
12715
12435
|
}];
|
|
12716
12436
|
readonly stateMutability: "nonpayable";
|
|
@@ -86,53 +86,6 @@ exports.iAMMFactoryAbi = [
|
|
|
86
86
|
},
|
|
87
87
|
];
|
|
88
88
|
exports.iMarketHubEntryOnlyAbi = [
|
|
89
|
-
{
|
|
90
|
-
inputs: [
|
|
91
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
92
|
-
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
93
|
-
{
|
|
94
|
-
components: [
|
|
95
|
-
{ internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
|
|
96
|
-
{ internalType: 'bool', name: 'isAll', type: 'bool' },
|
|
97
|
-
{ internalType: 'bool', name: 'isStrict', type: 'bool' },
|
|
98
|
-
],
|
|
99
|
-
internalType: 'struct CancelData',
|
|
100
|
-
name: 'cancelData',
|
|
101
|
-
type: 'tuple',
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
components: [
|
|
105
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
106
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
107
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
108
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
109
|
-
],
|
|
110
|
-
internalType: 'struct LongShort',
|
|
111
|
-
name: 'orders1',
|
|
112
|
-
type: 'tuple',
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
components: [
|
|
116
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
117
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
118
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
119
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
120
|
-
],
|
|
121
|
-
internalType: 'struct LongShort',
|
|
122
|
-
name: 'orders2',
|
|
123
|
-
type: 'tuple',
|
|
124
|
-
},
|
|
125
|
-
],
|
|
126
|
-
name: 'bulkOrders',
|
|
127
|
-
outputs: [
|
|
128
|
-
{ internalType: 'Trade', name: 'matched1', type: 'uint256' },
|
|
129
|
-
{ internalType: 'Trade', name: 'matched2', type: 'uint256' },
|
|
130
|
-
{ internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
|
|
131
|
-
{ internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
|
|
132
|
-
],
|
|
133
|
-
stateMutability: 'nonpayable',
|
|
134
|
-
type: 'function',
|
|
135
|
-
},
|
|
136
89
|
{
|
|
137
90
|
inputs: [
|
|
138
91
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
@@ -493,53 +446,6 @@ exports.iMarketHubAbi = [
|
|
|
493
446
|
stateMutability: 'view',
|
|
494
447
|
type: 'function',
|
|
495
448
|
},
|
|
496
|
-
{
|
|
497
|
-
inputs: [
|
|
498
|
-
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
499
|
-
{ internalType: 'MarketAcc', name: 'user', type: 'bytes26' },
|
|
500
|
-
{
|
|
501
|
-
components: [
|
|
502
|
-
{ internalType: 'OrderId[]', name: 'ids', type: 'uint64[]' },
|
|
503
|
-
{ internalType: 'bool', name: 'isAll', type: 'bool' },
|
|
504
|
-
{ internalType: 'bool', name: 'isStrict', type: 'bool' },
|
|
505
|
-
],
|
|
506
|
-
internalType: 'struct CancelData',
|
|
507
|
-
name: 'cancelData',
|
|
508
|
-
type: 'tuple',
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
components: [
|
|
512
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
513
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
514
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
515
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
516
|
-
],
|
|
517
|
-
internalType: 'struct LongShort',
|
|
518
|
-
name: 'orders1',
|
|
519
|
-
type: 'tuple',
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
components: [
|
|
523
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
524
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
525
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
526
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
527
|
-
],
|
|
528
|
-
internalType: 'struct LongShort',
|
|
529
|
-
name: 'orders2',
|
|
530
|
-
type: 'tuple',
|
|
531
|
-
},
|
|
532
|
-
],
|
|
533
|
-
name: 'bulkOrders',
|
|
534
|
-
outputs: [
|
|
535
|
-
{ internalType: 'Trade', name: 'matched1', type: 'uint256' },
|
|
536
|
-
{ internalType: 'Trade', name: 'matched2', type: 'uint256' },
|
|
537
|
-
{ internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
|
|
538
|
-
{ internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
|
|
539
|
-
],
|
|
540
|
-
stateMutability: 'nonpayable',
|
|
541
|
-
type: 'function',
|
|
542
|
-
},
|
|
543
449
|
{
|
|
544
450
|
inputs: [
|
|
545
451
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
@@ -2182,40 +2088,12 @@ exports.iRouterAbi = [
|
|
|
2182
2088
|
components: [
|
|
2183
2089
|
{ internalType: 'bool', name: 'cross', type: 'bool' },
|
|
2184
2090
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
2185
|
-
{
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
internalType: 'struct CancelData',
|
|
2192
|
-
name: 'cancels',
|
|
2193
|
-
type: 'tuple',
|
|
2194
|
-
},
|
|
2195
|
-
{
|
|
2196
|
-
components: [
|
|
2197
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
2198
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
2199
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
2200
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
2201
|
-
],
|
|
2202
|
-
internalType: 'struct LongShort',
|
|
2203
|
-
name: 'orders1',
|
|
2204
|
-
type: 'tuple',
|
|
2205
|
-
},
|
|
2206
|
-
{
|
|
2207
|
-
components: [
|
|
2208
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
2209
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
2210
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
2211
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
2212
|
-
],
|
|
2213
|
-
internalType: 'struct LongShort',
|
|
2214
|
-
name: 'orders2',
|
|
2215
|
-
type: 'tuple',
|
|
2216
|
-
},
|
|
2217
|
-
{ internalType: 'int128', name: 'desiredMatchRate1', type: 'int128' },
|
|
2218
|
-
{ internalType: 'int128', name: 'desiredMatchRate2', type: 'int128' },
|
|
2091
|
+
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
2092
|
+
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
2093
|
+
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
2094
|
+
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
2095
|
+
{ internalType: 'OrderId[]', name: 'idsToStrictCancel', type: 'uint64[]' },
|
|
2096
|
+
{ internalType: 'int128', name: 'desiredMatchRate', type: 'int128' },
|
|
2219
2097
|
],
|
|
2220
2098
|
internalType: 'struct IRouterEventsAndTypes.BulkOrders',
|
|
2221
2099
|
name: 'req',
|
|
@@ -2224,10 +2102,8 @@ exports.iRouterAbi = [
|
|
|
2224
2102
|
],
|
|
2225
2103
|
name: 'bulkOrders',
|
|
2226
2104
|
outputs: [
|
|
2227
|
-
{ internalType: 'Trade', name: '
|
|
2228
|
-
{ internalType: '
|
|
2229
|
-
{ internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
|
|
2230
|
-
{ internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
|
|
2105
|
+
{ internalType: 'Trade', name: 'matched', type: 'uint256' },
|
|
2106
|
+
{ internalType: 'uint256', name: 'takerFee', type: 'uint256' },
|
|
2231
2107
|
],
|
|
2232
2108
|
stateMutability: 'nonpayable',
|
|
2233
2109
|
type: 'function',
|
|
@@ -6975,40 +6851,12 @@ exports.iTradeModuleAbi = [
|
|
|
6975
6851
|
components: [
|
|
6976
6852
|
{ internalType: 'bool', name: 'cross', type: 'bool' },
|
|
6977
6853
|
{ internalType: 'MarketId', name: 'marketId', type: 'uint24' },
|
|
6978
|
-
{
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
internalType: 'struct CancelData',
|
|
6985
|
-
name: 'cancels',
|
|
6986
|
-
type: 'tuple',
|
|
6987
|
-
},
|
|
6988
|
-
{
|
|
6989
|
-
components: [
|
|
6990
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
6991
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
6992
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
6993
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
6994
|
-
],
|
|
6995
|
-
internalType: 'struct LongShort',
|
|
6996
|
-
name: 'orders1',
|
|
6997
|
-
type: 'tuple',
|
|
6998
|
-
},
|
|
6999
|
-
{
|
|
7000
|
-
components: [
|
|
7001
|
-
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
7002
|
-
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
7003
|
-
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
7004
|
-
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
7005
|
-
],
|
|
7006
|
-
internalType: 'struct LongShort',
|
|
7007
|
-
name: 'orders2',
|
|
7008
|
-
type: 'tuple',
|
|
7009
|
-
},
|
|
7010
|
-
{ internalType: 'int128', name: 'desiredMatchRate1', type: 'int128' },
|
|
7011
|
-
{ internalType: 'int128', name: 'desiredMatchRate2', type: 'int128' },
|
|
6854
|
+
{ internalType: 'enum Side', name: 'side', type: 'uint8' },
|
|
6855
|
+
{ internalType: 'enum TimeInForce', name: 'tif', type: 'uint8' },
|
|
6856
|
+
{ internalType: 'uint256[]', name: 'sizes', type: 'uint256[]' },
|
|
6857
|
+
{ internalType: 'int16[]', name: 'limitTicks', type: 'int16[]' },
|
|
6858
|
+
{ internalType: 'OrderId[]', name: 'idsToStrictCancel', type: 'uint64[]' },
|
|
6859
|
+
{ internalType: 'int128', name: 'desiredMatchRate', type: 'int128' },
|
|
7012
6860
|
],
|
|
7013
6861
|
internalType: 'struct IRouterEventsAndTypes.BulkOrders',
|
|
7014
6862
|
name: 'req',
|
|
@@ -7017,10 +6865,8 @@ exports.iTradeModuleAbi = [
|
|
|
7017
6865
|
],
|
|
7018
6866
|
name: 'bulkOrders',
|
|
7019
6867
|
outputs: [
|
|
7020
|
-
{ internalType: 'Trade', name: '
|
|
7021
|
-
{ internalType: '
|
|
7022
|
-
{ internalType: 'uint256', name: 'takerFee1', type: 'uint256' },
|
|
7023
|
-
{ internalType: 'uint256', name: 'takerFee2', type: 'uint256' },
|
|
6868
|
+
{ internalType: 'Trade', name: 'matched', type: 'uint256' },
|
|
6869
|
+
{ internalType: 'uint256', name: 'takerFee', type: 'uint256' },
|
|
7024
6870
|
],
|
|
7025
6871
|
stateMutability: 'nonpayable',
|
|
7026
6872
|
type: 'function',
|