@pendle/sdk-boros 0.3.37 → 0.3.39
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 +645 -683
- package/dist/contracts/viemAbis.js +416 -348
- package/dist/contracts/viemAbis.js.map +1 -1
- package/dist/entities/Distributor/index.d.ts +1 -1
- package/dist/entities/Distributor/index.js +2 -2
- package/dist/entities/Distributor/index.js.map +1 -1
- package/dist/entities/Distributor/metadata.d.ts +14 -0
- package/dist/entities/Distributor/metadata.js +15 -1
- package/dist/entities/Distributor/metadata.js.map +1 -1
- package/dist/entities/exchange/exchange.d.ts +72 -88
- package/dist/entities/exchange/utils.d.ts +141 -95
- package/dist/types/encoders.d.ts +7 -8
- package/dist/types/encoders.js +0 -14
- package/dist/types/encoders.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,144 @@
|
|
|
1
|
+
export declare const iArbitrageExecutorAbi: readonly [{
|
|
2
|
+
readonly anonymous: false;
|
|
3
|
+
readonly inputs: readonly [{
|
|
4
|
+
readonly indexed: false;
|
|
5
|
+
readonly internalType: "AMMId";
|
|
6
|
+
readonly name: "ammId";
|
|
7
|
+
readonly type: "uint24";
|
|
8
|
+
}, {
|
|
9
|
+
readonly indexed: false;
|
|
10
|
+
readonly internalType: "int256";
|
|
11
|
+
readonly name: "profit";
|
|
12
|
+
readonly type: "int256";
|
|
13
|
+
}];
|
|
14
|
+
readonly name: "ArbitrageExecuted";
|
|
15
|
+
readonly type: "event";
|
|
16
|
+
}, {
|
|
17
|
+
readonly inputs: readonly [];
|
|
18
|
+
readonly name: "MARKET_HUB";
|
|
19
|
+
readonly outputs: readonly [{
|
|
20
|
+
readonly internalType: "address";
|
|
21
|
+
readonly name: "";
|
|
22
|
+
readonly type: "address";
|
|
23
|
+
}];
|
|
24
|
+
readonly stateMutability: "view";
|
|
25
|
+
readonly type: "function";
|
|
26
|
+
}, {
|
|
27
|
+
readonly inputs: readonly [];
|
|
28
|
+
readonly name: "ROUTER";
|
|
29
|
+
readonly outputs: readonly [{
|
|
30
|
+
readonly internalType: "address";
|
|
31
|
+
readonly name: "";
|
|
32
|
+
readonly type: "address";
|
|
33
|
+
}];
|
|
34
|
+
readonly stateMutability: "view";
|
|
35
|
+
readonly type: "function";
|
|
36
|
+
}, {
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly internalType: "TokenId";
|
|
39
|
+
readonly name: "tokenId";
|
|
40
|
+
readonly type: "uint16";
|
|
41
|
+
}, {
|
|
42
|
+
readonly internalType: "uint256";
|
|
43
|
+
readonly name: "amount";
|
|
44
|
+
readonly type: "uint256";
|
|
45
|
+
}];
|
|
46
|
+
readonly name: "deposit";
|
|
47
|
+
readonly outputs: readonly [];
|
|
48
|
+
readonly stateMutability: "nonpayable";
|
|
49
|
+
readonly type: "function";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly components: readonly [{
|
|
53
|
+
readonly internalType: "enum Side";
|
|
54
|
+
readonly name: "bookSide";
|
|
55
|
+
readonly type: "uint8";
|
|
56
|
+
}, {
|
|
57
|
+
readonly internalType: "AMMId";
|
|
58
|
+
readonly name: "ammId";
|
|
59
|
+
readonly type: "uint24";
|
|
60
|
+
}, {
|
|
61
|
+
readonly internalType: "int256";
|
|
62
|
+
readonly name: "minProfit";
|
|
63
|
+
readonly type: "int256";
|
|
64
|
+
}, {
|
|
65
|
+
readonly internalType: "bool";
|
|
66
|
+
readonly name: "maximizeProfit";
|
|
67
|
+
readonly type: "bool";
|
|
68
|
+
}];
|
|
69
|
+
readonly internalType: "struct IArbitrageExecutor.ArbitrageParams";
|
|
70
|
+
readonly name: "params";
|
|
71
|
+
readonly type: "tuple";
|
|
72
|
+
}];
|
|
73
|
+
readonly name: "executeArbitrage";
|
|
74
|
+
readonly outputs: readonly [{
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "arbSize";
|
|
77
|
+
readonly type: "uint256";
|
|
78
|
+
}, {
|
|
79
|
+
readonly internalType: "int256";
|
|
80
|
+
readonly name: "profit";
|
|
81
|
+
readonly type: "int256";
|
|
82
|
+
}];
|
|
83
|
+
readonly stateMutability: "nonpayable";
|
|
84
|
+
readonly type: "function";
|
|
85
|
+
}, {
|
|
86
|
+
readonly inputs: readonly [];
|
|
87
|
+
readonly name: "nTicksToTryAtOnce";
|
|
88
|
+
readonly outputs: readonly [{
|
|
89
|
+
readonly internalType: "uint16";
|
|
90
|
+
readonly name: "";
|
|
91
|
+
readonly type: "uint16";
|
|
92
|
+
}];
|
|
93
|
+
readonly stateMutability: "view";
|
|
94
|
+
readonly type: "function";
|
|
95
|
+
}, {
|
|
96
|
+
readonly inputs: readonly [{
|
|
97
|
+
readonly internalType: "bool";
|
|
98
|
+
readonly name: "cross";
|
|
99
|
+
readonly type: "bool";
|
|
100
|
+
}, {
|
|
101
|
+
readonly internalType: "MarketId";
|
|
102
|
+
readonly name: "marketId";
|
|
103
|
+
readonly type: "uint24";
|
|
104
|
+
}];
|
|
105
|
+
readonly name: "payMarketEntranceFee";
|
|
106
|
+
readonly outputs: readonly [];
|
|
107
|
+
readonly stateMutability: "nonpayable";
|
|
108
|
+
readonly type: "function";
|
|
109
|
+
}, {
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly internalType: "TokenId";
|
|
112
|
+
readonly name: "tokenId";
|
|
113
|
+
readonly type: "uint16";
|
|
114
|
+
}, {
|
|
115
|
+
readonly internalType: "uint256";
|
|
116
|
+
readonly name: "amount";
|
|
117
|
+
readonly type: "uint256";
|
|
118
|
+
}];
|
|
119
|
+
readonly name: "requestWithdrawal";
|
|
120
|
+
readonly outputs: readonly [];
|
|
121
|
+
readonly stateMutability: "nonpayable";
|
|
122
|
+
readonly type: "function";
|
|
123
|
+
}, {
|
|
124
|
+
readonly inputs: readonly [{
|
|
125
|
+
readonly internalType: "TokenId";
|
|
126
|
+
readonly name: "tokenId";
|
|
127
|
+
readonly type: "uint16";
|
|
128
|
+
}, {
|
|
129
|
+
readonly internalType: "uint256";
|
|
130
|
+
readonly name: "amount";
|
|
131
|
+
readonly type: "uint256";
|
|
132
|
+
}, {
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
readonly name: "receiver";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
}];
|
|
137
|
+
readonly name: "withdraw";
|
|
138
|
+
readonly outputs: readonly [];
|
|
139
|
+
readonly stateMutability: "nonpayable";
|
|
140
|
+
readonly type: "function";
|
|
141
|
+
}];
|
|
1
142
|
export declare const iAMMFactoryAbi: readonly [{
|
|
2
143
|
readonly anonymous: false;
|
|
3
144
|
readonly inputs: readonly [{
|
|
@@ -188,90 +329,71 @@ export declare const iAMMFactoryAbi: readonly [{
|
|
|
188
329
|
}];
|
|
189
330
|
export declare const iMarketHubEntryOnlyAbi: readonly [{
|
|
190
331
|
readonly inputs: readonly [{
|
|
191
|
-
readonly internalType: "MarketId";
|
|
192
|
-
readonly name: "marketId";
|
|
193
|
-
readonly type: "uint24";
|
|
194
|
-
}, {
|
|
195
332
|
readonly internalType: "MarketAcc";
|
|
196
333
|
readonly name: "user";
|
|
197
334
|
readonly type: "bytes26";
|
|
198
335
|
}, {
|
|
199
336
|
readonly components: readonly [{
|
|
200
|
-
readonly internalType: "
|
|
201
|
-
readonly name: "
|
|
202
|
-
readonly type: "
|
|
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";
|
|
337
|
+
readonly internalType: "MarketId";
|
|
338
|
+
readonly name: "marketId";
|
|
339
|
+
readonly type: "uint24";
|
|
245
340
|
}, {
|
|
246
|
-
readonly
|
|
247
|
-
|
|
248
|
-
|
|
341
|
+
readonly components: readonly [{
|
|
342
|
+
readonly internalType: "enum TimeInForce";
|
|
343
|
+
readonly name: "tif";
|
|
344
|
+
readonly type: "uint8";
|
|
345
|
+
}, {
|
|
346
|
+
readonly internalType: "enum Side";
|
|
347
|
+
readonly name: "side";
|
|
348
|
+
readonly type: "uint8";
|
|
349
|
+
}, {
|
|
350
|
+
readonly internalType: "uint256[]";
|
|
351
|
+
readonly name: "sizes";
|
|
352
|
+
readonly type: "uint256[]";
|
|
353
|
+
}, {
|
|
354
|
+
readonly internalType: "int16[]";
|
|
355
|
+
readonly name: "limitTicks";
|
|
356
|
+
readonly type: "int16[]";
|
|
357
|
+
}];
|
|
358
|
+
readonly internalType: "struct LongShort";
|
|
359
|
+
readonly name: "orders";
|
|
360
|
+
readonly type: "tuple";
|
|
249
361
|
}, {
|
|
250
|
-
readonly
|
|
251
|
-
|
|
252
|
-
|
|
362
|
+
readonly components: readonly [{
|
|
363
|
+
readonly internalType: "OrderId[]";
|
|
364
|
+
readonly name: "ids";
|
|
365
|
+
readonly type: "uint64[]";
|
|
366
|
+
}, {
|
|
367
|
+
readonly internalType: "bool";
|
|
368
|
+
readonly name: "isAll";
|
|
369
|
+
readonly type: "bool";
|
|
370
|
+
}, {
|
|
371
|
+
readonly internalType: "bool";
|
|
372
|
+
readonly name: "isStrict";
|
|
373
|
+
readonly type: "bool";
|
|
374
|
+
}];
|
|
375
|
+
readonly internalType: "struct CancelData";
|
|
376
|
+
readonly name: "cancelData";
|
|
377
|
+
readonly type: "tuple";
|
|
253
378
|
}];
|
|
254
|
-
readonly internalType: "struct
|
|
255
|
-
readonly name: "
|
|
256
|
-
readonly type: "tuple";
|
|
379
|
+
readonly internalType: "struct BulkOrder[]";
|
|
380
|
+
readonly name: "bulks";
|
|
381
|
+
readonly type: "tuple[]";
|
|
257
382
|
}];
|
|
258
383
|
readonly name: "bulkOrders";
|
|
259
384
|
readonly outputs: readonly [{
|
|
260
|
-
readonly
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
readonly
|
|
270
|
-
readonly
|
|
271
|
-
|
|
272
|
-
readonly internalType: "uint256";
|
|
273
|
-
readonly name: "takerFee2";
|
|
274
|
-
readonly type: "uint256";
|
|
385
|
+
readonly components: readonly [{
|
|
386
|
+
readonly internalType: "Trade";
|
|
387
|
+
readonly name: "matched";
|
|
388
|
+
readonly type: "uint256";
|
|
389
|
+
}, {
|
|
390
|
+
readonly internalType: "uint256";
|
|
391
|
+
readonly name: "takerFee";
|
|
392
|
+
readonly type: "uint256";
|
|
393
|
+
}];
|
|
394
|
+
readonly internalType: "struct BulkOrderResult[]";
|
|
395
|
+
readonly name: "results";
|
|
396
|
+
readonly type: "tuple[]";
|
|
275
397
|
}];
|
|
276
398
|
readonly stateMutability: "nonpayable";
|
|
277
399
|
readonly type: "function";
|
|
@@ -455,6 +577,20 @@ export declare const iMarketHubEntryOnlyAbi: readonly [{
|
|
|
455
577
|
readonly type: "function";
|
|
456
578
|
}];
|
|
457
579
|
export declare const iMarketHubRiskManagementAbi: readonly [{
|
|
580
|
+
readonly inputs: readonly [{
|
|
581
|
+
readonly internalType: "MarketAcc";
|
|
582
|
+
readonly name: "user";
|
|
583
|
+
readonly type: "bytes26";
|
|
584
|
+
}, {
|
|
585
|
+
readonly internalType: "int256";
|
|
586
|
+
readonly name: "delta";
|
|
587
|
+
readonly type: "int256";
|
|
588
|
+
}];
|
|
589
|
+
readonly name: "adjustAccCash";
|
|
590
|
+
readonly outputs: readonly [];
|
|
591
|
+
readonly stateMutability: "nonpayable";
|
|
592
|
+
readonly type: "function";
|
|
593
|
+
}, {
|
|
458
594
|
readonly inputs: readonly [{
|
|
459
595
|
readonly internalType: "MarketId";
|
|
460
596
|
readonly name: "marketId";
|
|
@@ -540,6 +676,28 @@ export declare const iMarketHubRiskManagementAbi: readonly [{
|
|
|
540
676
|
readonly type: "uint256";
|
|
541
677
|
}];
|
|
542
678
|
readonly name: "forcePurgeOobOrders";
|
|
679
|
+
readonly outputs: readonly [{
|
|
680
|
+
readonly internalType: "uint256";
|
|
681
|
+
readonly name: "totalTicksPurgedLong";
|
|
682
|
+
readonly type: "uint256";
|
|
683
|
+
}, {
|
|
684
|
+
readonly internalType: "uint256";
|
|
685
|
+
readonly name: "totalTicksPurgedShort";
|
|
686
|
+
readonly type: "uint256";
|
|
687
|
+
}];
|
|
688
|
+
readonly stateMutability: "nonpayable";
|
|
689
|
+
readonly type: "function";
|
|
690
|
+
}, {
|
|
691
|
+
readonly inputs: readonly [{
|
|
692
|
+
readonly internalType: "MarketAcc";
|
|
693
|
+
readonly name: "user";
|
|
694
|
+
readonly type: "bytes26";
|
|
695
|
+
}, {
|
|
696
|
+
readonly internalType: "int256";
|
|
697
|
+
readonly name: "desiredCash";
|
|
698
|
+
readonly type: "int256";
|
|
699
|
+
}];
|
|
700
|
+
readonly name: "setAccCash";
|
|
543
701
|
readonly outputs: readonly [];
|
|
544
702
|
readonly stateMutability: "nonpayable";
|
|
545
703
|
readonly type: "function";
|
|
@@ -791,6 +949,11 @@ export declare const iMarketHubAbi: readonly [{
|
|
|
791
949
|
readonly internalType: "TokenId";
|
|
792
950
|
readonly name: "tokenId";
|
|
793
951
|
readonly type: "uint16";
|
|
952
|
+
}, {
|
|
953
|
+
readonly indexed: false;
|
|
954
|
+
readonly internalType: "uint256";
|
|
955
|
+
readonly name: "totalUnscaledAmount";
|
|
956
|
+
readonly type: "uint256";
|
|
794
957
|
}];
|
|
795
958
|
readonly name: "VaultWithdrawalCanceled";
|
|
796
959
|
readonly type: "event";
|
|
@@ -895,90 +1058,85 @@ export declare const iMarketHubAbi: readonly [{
|
|
|
895
1058
|
readonly type: "function";
|
|
896
1059
|
}, {
|
|
897
1060
|
readonly inputs: readonly [{
|
|
898
|
-
readonly internalType: "MarketId";
|
|
899
|
-
readonly name: "marketId";
|
|
900
|
-
readonly type: "uint24";
|
|
901
|
-
}, {
|
|
902
1061
|
readonly internalType: "MarketAcc";
|
|
903
1062
|
readonly name: "user";
|
|
904
1063
|
readonly type: "bytes26";
|
|
905
1064
|
}, {
|
|
906
|
-
readonly
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
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";
|
|
1065
|
+
readonly internalType: "int256";
|
|
1066
|
+
readonly name: "delta";
|
|
1067
|
+
readonly type: "int256";
|
|
1068
|
+
}];
|
|
1069
|
+
readonly name: "adjustAccCash";
|
|
1070
|
+
readonly outputs: readonly [];
|
|
1071
|
+
readonly stateMutability: "nonpayable";
|
|
1072
|
+
readonly type: "function";
|
|
1073
|
+
}, {
|
|
1074
|
+
readonly inputs: readonly [{
|
|
1075
|
+
readonly internalType: "MarketAcc";
|
|
1076
|
+
readonly name: "user";
|
|
1077
|
+
readonly type: "bytes26";
|
|
943
1078
|
}, {
|
|
944
1079
|
readonly components: readonly [{
|
|
945
|
-
readonly internalType: "
|
|
946
|
-
readonly name: "
|
|
947
|
-
readonly type: "
|
|
948
|
-
}, {
|
|
949
|
-
readonly internalType: "enum Side";
|
|
950
|
-
readonly name: "side";
|
|
951
|
-
readonly type: "uint8";
|
|
1080
|
+
readonly internalType: "MarketId";
|
|
1081
|
+
readonly name: "marketId";
|
|
1082
|
+
readonly type: "uint24";
|
|
952
1083
|
}, {
|
|
953
|
-
readonly
|
|
954
|
-
|
|
955
|
-
|
|
1084
|
+
readonly components: readonly [{
|
|
1085
|
+
readonly internalType: "enum TimeInForce";
|
|
1086
|
+
readonly name: "tif";
|
|
1087
|
+
readonly type: "uint8";
|
|
1088
|
+
}, {
|
|
1089
|
+
readonly internalType: "enum Side";
|
|
1090
|
+
readonly name: "side";
|
|
1091
|
+
readonly type: "uint8";
|
|
1092
|
+
}, {
|
|
1093
|
+
readonly internalType: "uint256[]";
|
|
1094
|
+
readonly name: "sizes";
|
|
1095
|
+
readonly type: "uint256[]";
|
|
1096
|
+
}, {
|
|
1097
|
+
readonly internalType: "int16[]";
|
|
1098
|
+
readonly name: "limitTicks";
|
|
1099
|
+
readonly type: "int16[]";
|
|
1100
|
+
}];
|
|
1101
|
+
readonly internalType: "struct LongShort";
|
|
1102
|
+
readonly name: "orders";
|
|
1103
|
+
readonly type: "tuple";
|
|
956
1104
|
}, {
|
|
957
|
-
readonly
|
|
958
|
-
|
|
959
|
-
|
|
1105
|
+
readonly components: readonly [{
|
|
1106
|
+
readonly internalType: "OrderId[]";
|
|
1107
|
+
readonly name: "ids";
|
|
1108
|
+
readonly type: "uint64[]";
|
|
1109
|
+
}, {
|
|
1110
|
+
readonly internalType: "bool";
|
|
1111
|
+
readonly name: "isAll";
|
|
1112
|
+
readonly type: "bool";
|
|
1113
|
+
}, {
|
|
1114
|
+
readonly internalType: "bool";
|
|
1115
|
+
readonly name: "isStrict";
|
|
1116
|
+
readonly type: "bool";
|
|
1117
|
+
}];
|
|
1118
|
+
readonly internalType: "struct CancelData";
|
|
1119
|
+
readonly name: "cancelData";
|
|
1120
|
+
readonly type: "tuple";
|
|
960
1121
|
}];
|
|
961
|
-
readonly internalType: "struct
|
|
962
|
-
readonly name: "
|
|
963
|
-
readonly type: "tuple";
|
|
1122
|
+
readonly internalType: "struct BulkOrder[]";
|
|
1123
|
+
readonly name: "bulks";
|
|
1124
|
+
readonly type: "tuple[]";
|
|
964
1125
|
}];
|
|
965
1126
|
readonly name: "bulkOrders";
|
|
966
1127
|
readonly outputs: readonly [{
|
|
967
|
-
readonly
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
readonly
|
|
977
|
-
readonly
|
|
978
|
-
|
|
979
|
-
readonly internalType: "uint256";
|
|
980
|
-
readonly name: "takerFee2";
|
|
981
|
-
readonly type: "uint256";
|
|
1128
|
+
readonly components: readonly [{
|
|
1129
|
+
readonly internalType: "Trade";
|
|
1130
|
+
readonly name: "matched";
|
|
1131
|
+
readonly type: "uint256";
|
|
1132
|
+
}, {
|
|
1133
|
+
readonly internalType: "uint256";
|
|
1134
|
+
readonly name: "takerFee";
|
|
1135
|
+
readonly type: "uint256";
|
|
1136
|
+
}];
|
|
1137
|
+
readonly internalType: "struct BulkOrderResult[]";
|
|
1138
|
+
readonly name: "results";
|
|
1139
|
+
readonly type: "tuple[]";
|
|
982
1140
|
}];
|
|
983
1141
|
readonly stateMutability: "nonpayable";
|
|
984
1142
|
readonly type: "function";
|
|
@@ -1221,7 +1379,15 @@ export declare const iMarketHubAbi: readonly [{
|
|
|
1221
1379
|
readonly type: "uint256";
|
|
1222
1380
|
}];
|
|
1223
1381
|
readonly name: "forcePurgeOobOrders";
|
|
1224
|
-
readonly outputs: readonly [
|
|
1382
|
+
readonly outputs: readonly [{
|
|
1383
|
+
readonly internalType: "uint256";
|
|
1384
|
+
readonly name: "totalTicksPurgedLong";
|
|
1385
|
+
readonly type: "uint256";
|
|
1386
|
+
}, {
|
|
1387
|
+
readonly internalType: "uint256";
|
|
1388
|
+
readonly name: "totalTicksPurgedShort";
|
|
1389
|
+
readonly type: "uint256";
|
|
1390
|
+
}];
|
|
1225
1391
|
readonly stateMutability: "nonpayable";
|
|
1226
1392
|
readonly type: "function";
|
|
1227
1393
|
}, {
|
|
@@ -1559,6 +1725,20 @@ export declare const iMarketHubAbi: readonly [{
|
|
|
1559
1725
|
}];
|
|
1560
1726
|
readonly stateMutability: "view";
|
|
1561
1727
|
readonly type: "function";
|
|
1728
|
+
}, {
|
|
1729
|
+
readonly inputs: readonly [{
|
|
1730
|
+
readonly internalType: "MarketAcc";
|
|
1731
|
+
readonly name: "user";
|
|
1732
|
+
readonly type: "bytes26";
|
|
1733
|
+
}, {
|
|
1734
|
+
readonly internalType: "int256";
|
|
1735
|
+
readonly name: "desiredCash";
|
|
1736
|
+
readonly type: "int256";
|
|
1737
|
+
}];
|
|
1738
|
+
readonly name: "setAccCash";
|
|
1739
|
+
readonly outputs: readonly [];
|
|
1740
|
+
readonly stateMutability: "nonpayable";
|
|
1741
|
+
readonly type: "function";
|
|
1562
1742
|
}, {
|
|
1563
1743
|
readonly inputs: readonly [{
|
|
1564
1744
|
readonly internalType: "int128";
|
|
@@ -1730,6 +1910,24 @@ export declare const iMarketHubAbi: readonly [{
|
|
|
1730
1910
|
readonly outputs: readonly [];
|
|
1731
1911
|
readonly stateMutability: "nonpayable";
|
|
1732
1912
|
readonly type: "function";
|
|
1913
|
+
}, {
|
|
1914
|
+
readonly inputs: readonly [{
|
|
1915
|
+
readonly internalType: "address";
|
|
1916
|
+
readonly name: "root";
|
|
1917
|
+
readonly type: "address";
|
|
1918
|
+
}, {
|
|
1919
|
+
readonly internalType: "TokenId";
|
|
1920
|
+
readonly name: "tokenId";
|
|
1921
|
+
readonly type: "uint16";
|
|
1922
|
+
}, {
|
|
1923
|
+
readonly internalType: "uint256";
|
|
1924
|
+
readonly name: "unscaled";
|
|
1925
|
+
readonly type: "uint256";
|
|
1926
|
+
}];
|
|
1927
|
+
readonly name: "vaultPayTreasury";
|
|
1928
|
+
readonly outputs: readonly [];
|
|
1929
|
+
readonly stateMutability: "nonpayable";
|
|
1930
|
+
readonly type: "function";
|
|
1733
1931
|
}, {
|
|
1734
1932
|
readonly inputs: readonly [{
|
|
1735
1933
|
readonly internalType: "TokenId[]";
|
|
@@ -1893,6 +2091,24 @@ export declare const iMarginManagerOnlyAbi: readonly [{
|
|
|
1893
2091
|
readonly outputs: readonly [];
|
|
1894
2092
|
readonly stateMutability: "nonpayable";
|
|
1895
2093
|
readonly type: "function";
|
|
2094
|
+
}, {
|
|
2095
|
+
readonly inputs: readonly [{
|
|
2096
|
+
readonly internalType: "address";
|
|
2097
|
+
readonly name: "root";
|
|
2098
|
+
readonly type: "address";
|
|
2099
|
+
}, {
|
|
2100
|
+
readonly internalType: "TokenId";
|
|
2101
|
+
readonly name: "tokenId";
|
|
2102
|
+
readonly type: "uint16";
|
|
2103
|
+
}, {
|
|
2104
|
+
readonly internalType: "uint256";
|
|
2105
|
+
readonly name: "unscaled";
|
|
2106
|
+
readonly type: "uint256";
|
|
2107
|
+
}];
|
|
2108
|
+
readonly name: "vaultPayTreasury";
|
|
2109
|
+
readonly outputs: readonly [];
|
|
2110
|
+
readonly stateMutability: "nonpayable";
|
|
2111
|
+
readonly type: "function";
|
|
1896
2112
|
}];
|
|
1897
2113
|
export declare const iMarketHubAllEventsAndTypesAbi: readonly [{
|
|
1898
2114
|
readonly anonymous: false;
|
|
@@ -2141,6 +2357,11 @@ export declare const iMarketHubAllEventsAndTypesAbi: readonly [{
|
|
|
2141
2357
|
readonly internalType: "TokenId";
|
|
2142
2358
|
readonly name: "tokenId";
|
|
2143
2359
|
readonly type: "uint16";
|
|
2360
|
+
}, {
|
|
2361
|
+
readonly indexed: false;
|
|
2362
|
+
readonly internalType: "uint256";
|
|
2363
|
+
readonly name: "totalUnscaledAmount";
|
|
2364
|
+
readonly type: "uint256";
|
|
2144
2365
|
}];
|
|
2145
2366
|
readonly name: "VaultWithdrawalCanceled";
|
|
2146
2367
|
readonly type: "event";
|
|
@@ -2437,6 +2658,11 @@ export declare const iMarketHubStorageOnlyAbi: readonly [{
|
|
|
2437
2658
|
readonly internalType: "TokenId";
|
|
2438
2659
|
readonly name: "tokenId";
|
|
2439
2660
|
readonly type: "uint16";
|
|
2661
|
+
}, {
|
|
2662
|
+
readonly indexed: false;
|
|
2663
|
+
readonly internalType: "uint256";
|
|
2664
|
+
readonly name: "totalUnscaledAmount";
|
|
2665
|
+
readonly type: "uint256";
|
|
2440
2666
|
}];
|
|
2441
2667
|
readonly name: "VaultWithdrawalCanceled";
|
|
2442
2668
|
readonly type: "event";
|
|
@@ -3746,6 +3972,25 @@ export declare const iRouterAbi: readonly [{
|
|
|
3746
3972
|
readonly outputs: readonly [];
|
|
3747
3973
|
readonly stateMutability: "nonpayable";
|
|
3748
3974
|
readonly type: "function";
|
|
3975
|
+
}, {
|
|
3976
|
+
readonly inputs: readonly [{
|
|
3977
|
+
readonly components: readonly [{
|
|
3978
|
+
readonly internalType: "Account";
|
|
3979
|
+
readonly name: "account";
|
|
3980
|
+
readonly type: "bytes21";
|
|
3981
|
+
}, {
|
|
3982
|
+
readonly internalType: "bytes";
|
|
3983
|
+
readonly name: "data";
|
|
3984
|
+
readonly type: "bytes";
|
|
3985
|
+
}];
|
|
3986
|
+
readonly internalType: "struct IMiscModule.ManipulateData[]";
|
|
3987
|
+
readonly name: "calls";
|
|
3988
|
+
readonly type: "tuple[]";
|
|
3989
|
+
}];
|
|
3990
|
+
readonly name: "batchManipulate";
|
|
3991
|
+
readonly outputs: readonly [];
|
|
3992
|
+
readonly stateMutability: "nonpayable";
|
|
3993
|
+
readonly type: "function";
|
|
3749
3994
|
}, {
|
|
3750
3995
|
readonly inputs: readonly [{
|
|
3751
3996
|
readonly components: readonly [{
|
|
@@ -3833,99 +4078,76 @@ export declare const iRouterAbi: readonly [{
|
|
|
3833
4078
|
readonly internalType: "bool";
|
|
3834
4079
|
readonly name: "cross";
|
|
3835
4080
|
readonly type: "bool";
|
|
3836
|
-
}, {
|
|
3837
|
-
readonly internalType: "MarketId";
|
|
3838
|
-
readonly name: "marketId";
|
|
3839
|
-
readonly type: "uint24";
|
|
3840
|
-
}, {
|
|
3841
|
-
readonly components: readonly [{
|
|
3842
|
-
readonly internalType: "OrderId[]";
|
|
3843
|
-
readonly name: "ids";
|
|
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";
|
|
3857
|
-
}, {
|
|
3858
|
-
readonly components: readonly [{
|
|
3859
|
-
readonly internalType: "enum TimeInForce";
|
|
3860
|
-
readonly name: "tif";
|
|
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";
|
|
3878
4081
|
}, {
|
|
3879
4082
|
readonly components: readonly [{
|
|
3880
|
-
readonly internalType: "
|
|
3881
|
-
readonly name: "
|
|
3882
|
-
readonly type: "
|
|
3883
|
-
}, {
|
|
3884
|
-
readonly internalType: "enum Side";
|
|
3885
|
-
readonly name: "side";
|
|
3886
|
-
readonly type: "uint8";
|
|
4083
|
+
readonly internalType: "MarketId";
|
|
4084
|
+
readonly name: "marketId";
|
|
4085
|
+
readonly type: "uint24";
|
|
3887
4086
|
}, {
|
|
3888
|
-
readonly
|
|
3889
|
-
|
|
3890
|
-
|
|
4087
|
+
readonly components: readonly [{
|
|
4088
|
+
readonly internalType: "enum TimeInForce";
|
|
4089
|
+
readonly name: "tif";
|
|
4090
|
+
readonly type: "uint8";
|
|
4091
|
+
}, {
|
|
4092
|
+
readonly internalType: "enum Side";
|
|
4093
|
+
readonly name: "side";
|
|
4094
|
+
readonly type: "uint8";
|
|
4095
|
+
}, {
|
|
4096
|
+
readonly internalType: "uint256[]";
|
|
4097
|
+
readonly name: "sizes";
|
|
4098
|
+
readonly type: "uint256[]";
|
|
4099
|
+
}, {
|
|
4100
|
+
readonly internalType: "int16[]";
|
|
4101
|
+
readonly name: "limitTicks";
|
|
4102
|
+
readonly type: "int16[]";
|
|
4103
|
+
}];
|
|
4104
|
+
readonly internalType: "struct LongShort";
|
|
4105
|
+
readonly name: "orders";
|
|
4106
|
+
readonly type: "tuple";
|
|
3891
4107
|
}, {
|
|
3892
|
-
readonly
|
|
3893
|
-
|
|
3894
|
-
|
|
4108
|
+
readonly components: readonly [{
|
|
4109
|
+
readonly internalType: "OrderId[]";
|
|
4110
|
+
readonly name: "ids";
|
|
4111
|
+
readonly type: "uint64[]";
|
|
4112
|
+
}, {
|
|
4113
|
+
readonly internalType: "bool";
|
|
4114
|
+
readonly name: "isAll";
|
|
4115
|
+
readonly type: "bool";
|
|
4116
|
+
}, {
|
|
4117
|
+
readonly internalType: "bool";
|
|
4118
|
+
readonly name: "isStrict";
|
|
4119
|
+
readonly type: "bool";
|
|
4120
|
+
}];
|
|
4121
|
+
readonly internalType: "struct CancelData";
|
|
4122
|
+
readonly name: "cancelData";
|
|
4123
|
+
readonly type: "tuple";
|
|
3895
4124
|
}];
|
|
3896
|
-
readonly internalType: "struct
|
|
3897
|
-
readonly name: "
|
|
3898
|
-
readonly type: "tuple";
|
|
3899
|
-
}, {
|
|
3900
|
-
readonly internalType: "int128";
|
|
3901
|
-
readonly name: "desiredMatchRate1";
|
|
3902
|
-
readonly type: "int128";
|
|
4125
|
+
readonly internalType: "struct BulkOrder[]";
|
|
4126
|
+
readonly name: "bulks";
|
|
4127
|
+
readonly type: "tuple[]";
|
|
3903
4128
|
}, {
|
|
3904
|
-
readonly internalType: "int128";
|
|
3905
|
-
readonly name: "
|
|
3906
|
-
readonly type: "int128";
|
|
4129
|
+
readonly internalType: "int128[]";
|
|
4130
|
+
readonly name: "desiredMatchRates";
|
|
4131
|
+
readonly type: "int128[]";
|
|
3907
4132
|
}];
|
|
3908
|
-
readonly internalType: "struct IRouterEventsAndTypes.
|
|
4133
|
+
readonly internalType: "struct IRouterEventsAndTypes.BulkOrdersReq";
|
|
3909
4134
|
readonly name: "req";
|
|
3910
4135
|
readonly type: "tuple";
|
|
3911
4136
|
}];
|
|
3912
4137
|
readonly name: "bulkOrders";
|
|
3913
4138
|
readonly outputs: readonly [{
|
|
3914
|
-
readonly
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
readonly
|
|
3924
|
-
readonly
|
|
3925
|
-
|
|
3926
|
-
readonly internalType: "uint256";
|
|
3927
|
-
readonly name: "takerFee2";
|
|
3928
|
-
readonly type: "uint256";
|
|
4139
|
+
readonly components: readonly [{
|
|
4140
|
+
readonly internalType: "Trade";
|
|
4141
|
+
readonly name: "matched";
|
|
4142
|
+
readonly type: "uint256";
|
|
4143
|
+
}, {
|
|
4144
|
+
readonly internalType: "uint256";
|
|
4145
|
+
readonly name: "takerFee";
|
|
4146
|
+
readonly type: "uint256";
|
|
4147
|
+
}];
|
|
4148
|
+
readonly internalType: "struct BulkOrderResult[]";
|
|
4149
|
+
readonly name: "results";
|
|
4150
|
+
readonly type: "tuple[]";
|
|
3929
4151
|
}];
|
|
3930
4152
|
readonly stateMutability: "nonpayable";
|
|
3931
4153
|
readonly type: "function";
|
|
@@ -4040,36 +4262,6 @@ export declare const iRouterAbi: readonly [{
|
|
|
4040
4262
|
readonly outputs: readonly [];
|
|
4041
4263
|
readonly stateMutability: "nonpayable";
|
|
4042
4264
|
readonly type: "function";
|
|
4043
|
-
}, {
|
|
4044
|
-
readonly inputs: readonly [{
|
|
4045
|
-
readonly internalType: "bool";
|
|
4046
|
-
readonly name: "cross";
|
|
4047
|
-
readonly type: "bool";
|
|
4048
|
-
}, {
|
|
4049
|
-
readonly internalType: "MarketId";
|
|
4050
|
-
readonly name: "marketId";
|
|
4051
|
-
readonly type: "uint24";
|
|
4052
|
-
}, {
|
|
4053
|
-
readonly internalType: "MarketAcc";
|
|
4054
|
-
readonly name: "violator";
|
|
4055
|
-
readonly type: "bytes26";
|
|
4056
|
-
}, {
|
|
4057
|
-
readonly internalType: "int256";
|
|
4058
|
-
readonly name: "sizeToLiquidator";
|
|
4059
|
-
readonly type: "int256";
|
|
4060
|
-
}];
|
|
4061
|
-
readonly name: "liquidate";
|
|
4062
|
-
readonly outputs: readonly [{
|
|
4063
|
-
readonly internalType: "Trade";
|
|
4064
|
-
readonly name: "liqTrade";
|
|
4065
|
-
readonly type: "uint256";
|
|
4066
|
-
}, {
|
|
4067
|
-
readonly internalType: "uint256";
|
|
4068
|
-
readonly name: "liqFee";
|
|
4069
|
-
readonly type: "uint256";
|
|
4070
|
-
}];
|
|
4071
|
-
readonly stateMutability: "nonpayable";
|
|
4072
|
-
readonly type: "function";
|
|
4073
4265
|
}, {
|
|
4074
4266
|
readonly inputs: readonly [];
|
|
4075
4267
|
readonly name: "maxIterationAndEps";
|
|
@@ -4414,23 +4606,13 @@ export declare const iRouterAbi: readonly [{
|
|
|
4414
4606
|
readonly outputs: readonly [];
|
|
4415
4607
|
readonly stateMutability: "nonpayable";
|
|
4416
4608
|
readonly type: "function";
|
|
4417
|
-
}, {
|
|
4418
|
-
readonly inputs: readonly [{
|
|
4419
|
-
readonly internalType: "uint16";
|
|
4420
|
-
readonly name: "newNumTicksToTryAtOnce";
|
|
4421
|
-
readonly type: "uint16";
|
|
4422
|
-
}];
|
|
4423
|
-
readonly name: "setNumTicksToTryAtOnce";
|
|
4424
|
-
readonly outputs: readonly [];
|
|
4425
|
-
readonly stateMutability: "nonpayable";
|
|
4426
|
-
readonly type: "function";
|
|
4427
|
-
}, {
|
|
4428
|
-
readonly inputs: readonly [{
|
|
4429
|
-
readonly internalType: "MarketAcc";
|
|
4430
|
-
readonly name: "user";
|
|
4431
|
-
readonly type: "bytes26";
|
|
4609
|
+
}, {
|
|
4610
|
+
readonly inputs: readonly [{
|
|
4611
|
+
readonly internalType: "uint16";
|
|
4612
|
+
readonly name: "newNumTicksToTryAtOnce";
|
|
4613
|
+
readonly type: "uint16";
|
|
4432
4614
|
}];
|
|
4433
|
-
readonly name: "
|
|
4615
|
+
readonly name: "setNumTicksToTryAtOnce";
|
|
4434
4616
|
readonly outputs: readonly [];
|
|
4435
4617
|
readonly stateMutability: "nonpayable";
|
|
4436
4618
|
readonly type: "function";
|
|
@@ -4658,6 +4840,51 @@ export declare const iRouterAbi: readonly [{
|
|
|
4658
4840
|
readonly outputs: readonly [];
|
|
4659
4841
|
readonly stateMutability: "nonpayable";
|
|
4660
4842
|
readonly type: "function";
|
|
4843
|
+
}, {
|
|
4844
|
+
readonly inputs: readonly [{
|
|
4845
|
+
readonly components: readonly [{
|
|
4846
|
+
readonly internalType: "address";
|
|
4847
|
+
readonly name: "root";
|
|
4848
|
+
readonly type: "address";
|
|
4849
|
+
}, {
|
|
4850
|
+
readonly internalType: "TokenId";
|
|
4851
|
+
readonly name: "tokenId";
|
|
4852
|
+
readonly type: "uint16";
|
|
4853
|
+
}, {
|
|
4854
|
+
readonly internalType: "uint256";
|
|
4855
|
+
readonly name: "amount";
|
|
4856
|
+
readonly type: "uint256";
|
|
4857
|
+
}, {
|
|
4858
|
+
readonly internalType: "uint64";
|
|
4859
|
+
readonly name: "nonce";
|
|
4860
|
+
readonly type: "uint64";
|
|
4861
|
+
}];
|
|
4862
|
+
readonly internalType: "struct IRouterEventsAndTypes.VaultPayTreasuryMessage";
|
|
4863
|
+
readonly name: "message";
|
|
4864
|
+
readonly type: "tuple";
|
|
4865
|
+
}, {
|
|
4866
|
+
readonly internalType: "bytes";
|
|
4867
|
+
readonly name: "signature";
|
|
4868
|
+
readonly type: "bytes";
|
|
4869
|
+
}];
|
|
4870
|
+
readonly name: "vaultPayTreasury";
|
|
4871
|
+
readonly outputs: readonly [];
|
|
4872
|
+
readonly stateMutability: "nonpayable";
|
|
4873
|
+
readonly type: "function";
|
|
4874
|
+
}, {
|
|
4875
|
+
readonly inputs: readonly [{
|
|
4876
|
+
readonly internalType: "TokenId";
|
|
4877
|
+
readonly name: "tokenId";
|
|
4878
|
+
readonly type: "uint16";
|
|
4879
|
+
}, {
|
|
4880
|
+
readonly internalType: "uint256";
|
|
4881
|
+
readonly name: "amount";
|
|
4882
|
+
readonly type: "uint256";
|
|
4883
|
+
}];
|
|
4884
|
+
readonly name: "vaultPayTreasury";
|
|
4885
|
+
readonly outputs: readonly [];
|
|
4886
|
+
readonly stateMutability: "nonpayable";
|
|
4887
|
+
readonly type: "function";
|
|
4661
4888
|
}];
|
|
4662
4889
|
export declare const iMarketAllEventsAndTypesAbi: readonly [{
|
|
4663
4890
|
readonly anonymous: false;
|
|
@@ -6134,6 +6361,16 @@ export declare const iMarketAbi: readonly [{
|
|
|
6134
6361
|
}];
|
|
6135
6362
|
readonly stateMutability: "nonpayable";
|
|
6136
6363
|
readonly type: "function";
|
|
6364
|
+
}, {
|
|
6365
|
+
readonly inputs: readonly [{
|
|
6366
|
+
readonly internalType: "MarketAcc";
|
|
6367
|
+
readonly name: "user";
|
|
6368
|
+
readonly type: "bytes26";
|
|
6369
|
+
}];
|
|
6370
|
+
readonly name: "resetDelevLiqNonce";
|
|
6371
|
+
readonly outputs: readonly [];
|
|
6372
|
+
readonly stateMutability: "nonpayable";
|
|
6373
|
+
readonly type: "function";
|
|
6137
6374
|
}, {
|
|
6138
6375
|
readonly inputs: readonly [{
|
|
6139
6376
|
readonly internalType: "uint64";
|
|
@@ -7759,6 +7996,16 @@ export declare const iMarketOffAbi: readonly [{
|
|
|
7759
7996
|
}];
|
|
7760
7997
|
readonly stateMutability: "nonpayable";
|
|
7761
7998
|
readonly type: "function";
|
|
7999
|
+
}, {
|
|
8000
|
+
readonly inputs: readonly [{
|
|
8001
|
+
readonly internalType: "MarketAcc";
|
|
8002
|
+
readonly name: "user";
|
|
8003
|
+
readonly type: "bytes26";
|
|
8004
|
+
}];
|
|
8005
|
+
readonly name: "resetDelevLiqNonce";
|
|
8006
|
+
readonly outputs: readonly [];
|
|
8007
|
+
readonly stateMutability: "nonpayable";
|
|
8008
|
+
readonly type: "function";
|
|
7762
8009
|
}, {
|
|
7763
8010
|
readonly inputs: readonly [{
|
|
7764
8011
|
readonly internalType: "uint64";
|
|
@@ -10562,6 +10809,16 @@ export declare const iMarketEntryAbi: readonly [{
|
|
|
10562
10809
|
}];
|
|
10563
10810
|
readonly stateMutability: "nonpayable";
|
|
10564
10811
|
readonly type: "function";
|
|
10812
|
+
}, {
|
|
10813
|
+
readonly inputs: readonly [{
|
|
10814
|
+
readonly internalType: "MarketAcc";
|
|
10815
|
+
readonly name: "user";
|
|
10816
|
+
readonly type: "bytes26";
|
|
10817
|
+
}];
|
|
10818
|
+
readonly name: "resetDelevLiqNonce";
|
|
10819
|
+
readonly outputs: readonly [];
|
|
10820
|
+
readonly stateMutability: "nonpayable";
|
|
10821
|
+
readonly type: "function";
|
|
10565
10822
|
}, {
|
|
10566
10823
|
readonly inputs: readonly [{
|
|
10567
10824
|
readonly internalType: "MarketAcc";
|
|
@@ -12619,99 +12876,76 @@ export declare const iTradeModuleAbi: readonly [{
|
|
|
12619
12876
|
readonly internalType: "bool";
|
|
12620
12877
|
readonly name: "cross";
|
|
12621
12878
|
readonly type: "bool";
|
|
12622
|
-
}, {
|
|
12623
|
-
readonly internalType: "MarketId";
|
|
12624
|
-
readonly name: "marketId";
|
|
12625
|
-
readonly type: "uint24";
|
|
12626
|
-
}, {
|
|
12627
|
-
readonly components: readonly [{
|
|
12628
|
-
readonly internalType: "OrderId[]";
|
|
12629
|
-
readonly name: "ids";
|
|
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";
|
|
12643
|
-
}, {
|
|
12644
|
-
readonly components: readonly [{
|
|
12645
|
-
readonly internalType: "enum TimeInForce";
|
|
12646
|
-
readonly name: "tif";
|
|
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";
|
|
12664
12879
|
}, {
|
|
12665
12880
|
readonly components: readonly [{
|
|
12666
|
-
readonly internalType: "
|
|
12667
|
-
readonly name: "
|
|
12668
|
-
readonly type: "
|
|
12669
|
-
}, {
|
|
12670
|
-
readonly internalType: "enum Side";
|
|
12671
|
-
readonly name: "side";
|
|
12672
|
-
readonly type: "uint8";
|
|
12881
|
+
readonly internalType: "MarketId";
|
|
12882
|
+
readonly name: "marketId";
|
|
12883
|
+
readonly type: "uint24";
|
|
12673
12884
|
}, {
|
|
12674
|
-
readonly
|
|
12675
|
-
|
|
12676
|
-
|
|
12885
|
+
readonly components: readonly [{
|
|
12886
|
+
readonly internalType: "enum TimeInForce";
|
|
12887
|
+
readonly name: "tif";
|
|
12888
|
+
readonly type: "uint8";
|
|
12889
|
+
}, {
|
|
12890
|
+
readonly internalType: "enum Side";
|
|
12891
|
+
readonly name: "side";
|
|
12892
|
+
readonly type: "uint8";
|
|
12893
|
+
}, {
|
|
12894
|
+
readonly internalType: "uint256[]";
|
|
12895
|
+
readonly name: "sizes";
|
|
12896
|
+
readonly type: "uint256[]";
|
|
12897
|
+
}, {
|
|
12898
|
+
readonly internalType: "int16[]";
|
|
12899
|
+
readonly name: "limitTicks";
|
|
12900
|
+
readonly type: "int16[]";
|
|
12901
|
+
}];
|
|
12902
|
+
readonly internalType: "struct LongShort";
|
|
12903
|
+
readonly name: "orders";
|
|
12904
|
+
readonly type: "tuple";
|
|
12677
12905
|
}, {
|
|
12678
|
-
readonly
|
|
12679
|
-
|
|
12680
|
-
|
|
12906
|
+
readonly components: readonly [{
|
|
12907
|
+
readonly internalType: "OrderId[]";
|
|
12908
|
+
readonly name: "ids";
|
|
12909
|
+
readonly type: "uint64[]";
|
|
12910
|
+
}, {
|
|
12911
|
+
readonly internalType: "bool";
|
|
12912
|
+
readonly name: "isAll";
|
|
12913
|
+
readonly type: "bool";
|
|
12914
|
+
}, {
|
|
12915
|
+
readonly internalType: "bool";
|
|
12916
|
+
readonly name: "isStrict";
|
|
12917
|
+
readonly type: "bool";
|
|
12918
|
+
}];
|
|
12919
|
+
readonly internalType: "struct CancelData";
|
|
12920
|
+
readonly name: "cancelData";
|
|
12921
|
+
readonly type: "tuple";
|
|
12681
12922
|
}];
|
|
12682
|
-
readonly internalType: "struct
|
|
12683
|
-
readonly name: "
|
|
12684
|
-
readonly type: "tuple";
|
|
12685
|
-
}, {
|
|
12686
|
-
readonly internalType: "int128";
|
|
12687
|
-
readonly name: "desiredMatchRate1";
|
|
12688
|
-
readonly type: "int128";
|
|
12923
|
+
readonly internalType: "struct BulkOrder[]";
|
|
12924
|
+
readonly name: "bulks";
|
|
12925
|
+
readonly type: "tuple[]";
|
|
12689
12926
|
}, {
|
|
12690
|
-
readonly internalType: "int128";
|
|
12691
|
-
readonly name: "
|
|
12692
|
-
readonly type: "int128";
|
|
12927
|
+
readonly internalType: "int128[]";
|
|
12928
|
+
readonly name: "desiredMatchRates";
|
|
12929
|
+
readonly type: "int128[]";
|
|
12693
12930
|
}];
|
|
12694
|
-
readonly internalType: "struct IRouterEventsAndTypes.
|
|
12931
|
+
readonly internalType: "struct IRouterEventsAndTypes.BulkOrdersReq";
|
|
12695
12932
|
readonly name: "req";
|
|
12696
12933
|
readonly type: "tuple";
|
|
12697
12934
|
}];
|
|
12698
12935
|
readonly name: "bulkOrders";
|
|
12699
12936
|
readonly outputs: readonly [{
|
|
12700
|
-
readonly
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
readonly
|
|
12710
|
-
readonly
|
|
12711
|
-
|
|
12712
|
-
readonly internalType: "uint256";
|
|
12713
|
-
readonly name: "takerFee2";
|
|
12714
|
-
readonly type: "uint256";
|
|
12937
|
+
readonly components: readonly [{
|
|
12938
|
+
readonly internalType: "Trade";
|
|
12939
|
+
readonly name: "matched";
|
|
12940
|
+
readonly type: "uint256";
|
|
12941
|
+
}, {
|
|
12942
|
+
readonly internalType: "uint256";
|
|
12943
|
+
readonly name: "takerFee";
|
|
12944
|
+
readonly type: "uint256";
|
|
12945
|
+
}];
|
|
12946
|
+
readonly internalType: "struct BulkOrderResult[]";
|
|
12947
|
+
readonly name: "results";
|
|
12948
|
+
readonly type: "tuple[]";
|
|
12715
12949
|
}];
|
|
12716
12950
|
readonly stateMutability: "nonpayable";
|
|
12717
12951
|
readonly type: "function";
|
|
@@ -12781,36 +13015,6 @@ export declare const iTradeModuleAbi: readonly [{
|
|
|
12781
13015
|
readonly outputs: readonly [];
|
|
12782
13016
|
readonly stateMutability: "nonpayable";
|
|
12783
13017
|
readonly type: "function";
|
|
12784
|
-
}, {
|
|
12785
|
-
readonly inputs: readonly [{
|
|
12786
|
-
readonly internalType: "bool";
|
|
12787
|
-
readonly name: "cross";
|
|
12788
|
-
readonly type: "bool";
|
|
12789
|
-
}, {
|
|
12790
|
-
readonly internalType: "MarketId";
|
|
12791
|
-
readonly name: "marketId";
|
|
12792
|
-
readonly type: "uint24";
|
|
12793
|
-
}, {
|
|
12794
|
-
readonly internalType: "MarketAcc";
|
|
12795
|
-
readonly name: "violator";
|
|
12796
|
-
readonly type: "bytes26";
|
|
12797
|
-
}, {
|
|
12798
|
-
readonly internalType: "int256";
|
|
12799
|
-
readonly name: "sizeToLiquidator";
|
|
12800
|
-
readonly type: "int256";
|
|
12801
|
-
}];
|
|
12802
|
-
readonly name: "liquidate";
|
|
12803
|
-
readonly outputs: readonly [{
|
|
12804
|
-
readonly internalType: "Trade";
|
|
12805
|
-
readonly name: "liqTrade";
|
|
12806
|
-
readonly type: "uint256";
|
|
12807
|
-
}, {
|
|
12808
|
-
readonly internalType: "uint256";
|
|
12809
|
-
readonly name: "liqFee";
|
|
12810
|
-
readonly type: "uint256";
|
|
12811
|
-
}];
|
|
12812
|
-
readonly stateMutability: "nonpayable";
|
|
12813
|
-
readonly type: "function";
|
|
12814
13018
|
}, {
|
|
12815
13019
|
readonly inputs: readonly [{
|
|
12816
13020
|
readonly components: readonly [{
|
|
@@ -12928,16 +13132,6 @@ export declare const iTradeModuleAbi: readonly [{
|
|
|
12928
13132
|
readonly outputs: readonly [];
|
|
12929
13133
|
readonly stateMutability: "nonpayable";
|
|
12930
13134
|
readonly type: "function";
|
|
12931
|
-
}, {
|
|
12932
|
-
readonly inputs: readonly [{
|
|
12933
|
-
readonly internalType: "MarketAcc";
|
|
12934
|
-
readonly name: "user";
|
|
12935
|
-
readonly type: "bytes26";
|
|
12936
|
-
}];
|
|
12937
|
-
readonly name: "settlePaymentAndOrders";
|
|
12938
|
-
readonly outputs: readonly [];
|
|
12939
|
-
readonly stateMutability: "nonpayable";
|
|
12940
|
-
readonly type: "function";
|
|
12941
13135
|
}, {
|
|
12942
13136
|
readonly inputs: readonly [{
|
|
12943
13137
|
readonly internalType: "uint8";
|
|
@@ -12986,6 +13180,20 @@ export declare const iTradeModuleAbi: readonly [{
|
|
|
12986
13180
|
readonly outputs: readonly [];
|
|
12987
13181
|
readonly stateMutability: "nonpayable";
|
|
12988
13182
|
readonly type: "function";
|
|
13183
|
+
}, {
|
|
13184
|
+
readonly inputs: readonly [{
|
|
13185
|
+
readonly internalType: "TokenId";
|
|
13186
|
+
readonly name: "tokenId";
|
|
13187
|
+
readonly type: "uint16";
|
|
13188
|
+
}, {
|
|
13189
|
+
readonly internalType: "uint256";
|
|
13190
|
+
readonly name: "amount";
|
|
13191
|
+
readonly type: "uint256";
|
|
13192
|
+
}];
|
|
13193
|
+
readonly name: "vaultPayTreasury";
|
|
13194
|
+
readonly outputs: readonly [];
|
|
13195
|
+
readonly stateMutability: "nonpayable";
|
|
13196
|
+
readonly type: "function";
|
|
12989
13197
|
}];
|
|
12990
13198
|
export declare const iAuthModuleAbi: readonly [{
|
|
12991
13199
|
readonly anonymous: false;
|
|
@@ -13604,6 +13812,37 @@ export declare const iAuthModuleAbi: readonly [{
|
|
|
13604
13812
|
readonly outputs: readonly [];
|
|
13605
13813
|
readonly stateMutability: "nonpayable";
|
|
13606
13814
|
readonly type: "function";
|
|
13815
|
+
}, {
|
|
13816
|
+
readonly inputs: readonly [{
|
|
13817
|
+
readonly components: readonly [{
|
|
13818
|
+
readonly internalType: "address";
|
|
13819
|
+
readonly name: "root";
|
|
13820
|
+
readonly type: "address";
|
|
13821
|
+
}, {
|
|
13822
|
+
readonly internalType: "TokenId";
|
|
13823
|
+
readonly name: "tokenId";
|
|
13824
|
+
readonly type: "uint16";
|
|
13825
|
+
}, {
|
|
13826
|
+
readonly internalType: "uint256";
|
|
13827
|
+
readonly name: "amount";
|
|
13828
|
+
readonly type: "uint256";
|
|
13829
|
+
}, {
|
|
13830
|
+
readonly internalType: "uint64";
|
|
13831
|
+
readonly name: "nonce";
|
|
13832
|
+
readonly type: "uint64";
|
|
13833
|
+
}];
|
|
13834
|
+
readonly internalType: "struct IRouterEventsAndTypes.VaultPayTreasuryMessage";
|
|
13835
|
+
readonly name: "message";
|
|
13836
|
+
readonly type: "tuple";
|
|
13837
|
+
}, {
|
|
13838
|
+
readonly internalType: "bytes";
|
|
13839
|
+
readonly name: "signature";
|
|
13840
|
+
readonly type: "bytes";
|
|
13841
|
+
}];
|
|
13842
|
+
readonly name: "vaultPayTreasury";
|
|
13843
|
+
readonly outputs: readonly [];
|
|
13844
|
+
readonly stateMutability: "nonpayable";
|
|
13845
|
+
readonly type: "function";
|
|
13607
13846
|
}];
|
|
13608
13847
|
export declare const iFIndexOracleAbi: readonly [{
|
|
13609
13848
|
readonly anonymous: false;
|
|
@@ -13621,12 +13860,7 @@ export declare const iFIndexOracleAbi: readonly [{
|
|
|
13621
13860
|
readonly indexed: false;
|
|
13622
13861
|
readonly internalType: "uint32";
|
|
13623
13862
|
readonly name: "newMaxUpdateDelay";
|
|
13624
|
-
readonly type: "uint32";
|
|
13625
|
-
}, {
|
|
13626
|
-
readonly indexed: false;
|
|
13627
|
-
readonly internalType: "uint128";
|
|
13628
|
-
readonly name: "newMaxFRateDeviation";
|
|
13629
|
-
readonly type: "uint128";
|
|
13863
|
+
readonly type: "uint32";
|
|
13630
13864
|
}];
|
|
13631
13865
|
readonly name: "ConfigUpdated";
|
|
13632
13866
|
readonly type: "event";
|
|
@@ -13655,10 +13889,6 @@ export declare const iFIndexOracleAbi: readonly [{
|
|
|
13655
13889
|
readonly internalType: "uint32";
|
|
13656
13890
|
readonly name: "maxUpdateDelay";
|
|
13657
13891
|
readonly type: "uint32";
|
|
13658
|
-
}, {
|
|
13659
|
-
readonly internalType: "uint128";
|
|
13660
|
-
readonly name: "maxFRateDeviation";
|
|
13661
|
-
readonly type: "uint128";
|
|
13662
13892
|
}];
|
|
13663
13893
|
readonly stateMutability: "view";
|
|
13664
13894
|
readonly type: "function";
|
|
@@ -13735,10 +13965,6 @@ export declare const iFIndexOracleAbi: readonly [{
|
|
|
13735
13965
|
readonly internalType: "uint32";
|
|
13736
13966
|
readonly name: "maxFUpdateDelay";
|
|
13737
13967
|
readonly type: "uint32";
|
|
13738
|
-
}, {
|
|
13739
|
-
readonly internalType: "uint128";
|
|
13740
|
-
readonly name: "maxFRateDeviation";
|
|
13741
|
-
readonly type: "uint128";
|
|
13742
13968
|
}];
|
|
13743
13969
|
readonly name: "setConfig";
|
|
13744
13970
|
readonly outputs: readonly [];
|
|
@@ -13757,7 +13983,7 @@ export declare const iFIndexOracleAbi: readonly [{
|
|
|
13757
13983
|
}, {
|
|
13758
13984
|
readonly inputs: readonly [{
|
|
13759
13985
|
readonly internalType: "int112";
|
|
13760
|
-
readonly name: "
|
|
13986
|
+
readonly name: "floatingIndexDelta";
|
|
13761
13987
|
readonly type: "int112";
|
|
13762
13988
|
}, {
|
|
13763
13989
|
readonly internalType: "uint32";
|
|
@@ -13925,6 +14151,16 @@ export declare const iAMMAbi: readonly [{
|
|
|
13925
14151
|
}];
|
|
13926
14152
|
readonly name: "TotalSupplyCapUpdated";
|
|
13927
14153
|
readonly type: "event";
|
|
14154
|
+
}, {
|
|
14155
|
+
readonly inputs: readonly [];
|
|
14156
|
+
readonly name: "ACCOUNT_ONE";
|
|
14157
|
+
readonly outputs: readonly [{
|
|
14158
|
+
readonly internalType: "MarketAcc";
|
|
14159
|
+
readonly name: "";
|
|
14160
|
+
readonly type: "bytes26";
|
|
14161
|
+
}];
|
|
14162
|
+
readonly stateMutability: "view";
|
|
14163
|
+
readonly type: "function";
|
|
13928
14164
|
}, {
|
|
13929
14165
|
readonly inputs: readonly [];
|
|
13930
14166
|
readonly name: "AMM_ID";
|
|
@@ -14612,277 +14848,3 @@ export declare const iMultiTokenMerkleDistributorAbi: readonly [{
|
|
|
14612
14848
|
readonly stateMutability: "nonpayable";
|
|
14613
14849
|
readonly type: "function";
|
|
14614
14850
|
}];
|
|
14615
|
-
export declare const arbitrageExecutorAbi: readonly [{
|
|
14616
|
-
readonly inputs: readonly [{
|
|
14617
|
-
readonly internalType: "address";
|
|
14618
|
-
readonly name: "permissionController_";
|
|
14619
|
-
readonly type: "address";
|
|
14620
|
-
}, {
|
|
14621
|
-
readonly internalType: "address";
|
|
14622
|
-
readonly name: "router_";
|
|
14623
|
-
readonly type: "address";
|
|
14624
|
-
}, {
|
|
14625
|
-
readonly internalType: "address";
|
|
14626
|
-
readonly name: "marketHub_";
|
|
14627
|
-
readonly type: "address";
|
|
14628
|
-
}, {
|
|
14629
|
-
readonly internalType: "uint16";
|
|
14630
|
-
readonly name: "nTicksToTryAtOnce_";
|
|
14631
|
-
readonly type: "uint16";
|
|
14632
|
-
}];
|
|
14633
|
-
readonly stateMutability: "nonpayable";
|
|
14634
|
-
readonly type: "constructor";
|
|
14635
|
-
}, {
|
|
14636
|
-
readonly inputs: readonly [{
|
|
14637
|
-
readonly internalType: "address";
|
|
14638
|
-
readonly name: "target";
|
|
14639
|
-
readonly type: "address";
|
|
14640
|
-
}];
|
|
14641
|
-
readonly name: "AddressEmptyCode";
|
|
14642
|
-
readonly type: "error";
|
|
14643
|
-
}, {
|
|
14644
|
-
readonly inputs: readonly [{
|
|
14645
|
-
readonly internalType: "address";
|
|
14646
|
-
readonly name: "implementation";
|
|
14647
|
-
readonly type: "address";
|
|
14648
|
-
}];
|
|
14649
|
-
readonly name: "ERC1967InvalidImplementation";
|
|
14650
|
-
readonly type: "error";
|
|
14651
|
-
}, {
|
|
14652
|
-
readonly inputs: readonly [];
|
|
14653
|
-
readonly name: "ERC1967NonPayable";
|
|
14654
|
-
readonly type: "error";
|
|
14655
|
-
}, {
|
|
14656
|
-
readonly inputs: readonly [];
|
|
14657
|
-
readonly name: "FailedCall";
|
|
14658
|
-
readonly type: "error";
|
|
14659
|
-
}, {
|
|
14660
|
-
readonly inputs: readonly [];
|
|
14661
|
-
readonly name: "InsufficientProfit";
|
|
14662
|
-
readonly type: "error";
|
|
14663
|
-
}, {
|
|
14664
|
-
readonly inputs: readonly [];
|
|
14665
|
-
readonly name: "InvalidInitialization";
|
|
14666
|
-
readonly type: "error";
|
|
14667
|
-
}, {
|
|
14668
|
-
readonly inputs: readonly [];
|
|
14669
|
-
readonly name: "MarketMatured";
|
|
14670
|
-
readonly type: "error";
|
|
14671
|
-
}, {
|
|
14672
|
-
readonly inputs: readonly [];
|
|
14673
|
-
readonly name: "NotInitializing";
|
|
14674
|
-
readonly type: "error";
|
|
14675
|
-
}, {
|
|
14676
|
-
readonly inputs: readonly [];
|
|
14677
|
-
readonly name: "ProfitMismatch";
|
|
14678
|
-
readonly type: "error";
|
|
14679
|
-
}, {
|
|
14680
|
-
readonly inputs: readonly [{
|
|
14681
|
-
readonly internalType: "address";
|
|
14682
|
-
readonly name: "token";
|
|
14683
|
-
readonly type: "address";
|
|
14684
|
-
}];
|
|
14685
|
-
readonly name: "SafeERC20FailedOperation";
|
|
14686
|
-
readonly type: "error";
|
|
14687
|
-
}, {
|
|
14688
|
-
readonly inputs: readonly [];
|
|
14689
|
-
readonly name: "UUPSUnauthorizedCallContext";
|
|
14690
|
-
readonly type: "error";
|
|
14691
|
-
}, {
|
|
14692
|
-
readonly inputs: readonly [{
|
|
14693
|
-
readonly internalType: "bytes32";
|
|
14694
|
-
readonly name: "slot";
|
|
14695
|
-
readonly type: "bytes32";
|
|
14696
|
-
}];
|
|
14697
|
-
readonly name: "UUPSUnsupportedProxiableUUID";
|
|
14698
|
-
readonly type: "error";
|
|
14699
|
-
}, {
|
|
14700
|
-
readonly inputs: readonly [];
|
|
14701
|
-
readonly name: "Unauthorized";
|
|
14702
|
-
readonly type: "error";
|
|
14703
|
-
}, {
|
|
14704
|
-
readonly anonymous: false;
|
|
14705
|
-
readonly inputs: readonly [{
|
|
14706
|
-
readonly indexed: false;
|
|
14707
|
-
readonly internalType: "uint64";
|
|
14708
|
-
readonly name: "version";
|
|
14709
|
-
readonly type: "uint64";
|
|
14710
|
-
}];
|
|
14711
|
-
readonly name: "Initialized";
|
|
14712
|
-
readonly type: "event";
|
|
14713
|
-
}, {
|
|
14714
|
-
readonly anonymous: false;
|
|
14715
|
-
readonly inputs: readonly [{
|
|
14716
|
-
readonly indexed: true;
|
|
14717
|
-
readonly internalType: "address";
|
|
14718
|
-
readonly name: "implementation";
|
|
14719
|
-
readonly type: "address";
|
|
14720
|
-
}];
|
|
14721
|
-
readonly name: "Upgraded";
|
|
14722
|
-
readonly type: "event";
|
|
14723
|
-
}, {
|
|
14724
|
-
readonly inputs: readonly [];
|
|
14725
|
-
readonly name: "UPGRADE_INTERFACE_VERSION";
|
|
14726
|
-
readonly outputs: readonly [{
|
|
14727
|
-
readonly internalType: "string";
|
|
14728
|
-
readonly name: "";
|
|
14729
|
-
readonly type: "string";
|
|
14730
|
-
}];
|
|
14731
|
-
readonly stateMutability: "view";
|
|
14732
|
-
readonly type: "function";
|
|
14733
|
-
}, {
|
|
14734
|
-
readonly inputs: readonly [{
|
|
14735
|
-
readonly internalType: "TokenId";
|
|
14736
|
-
readonly name: "tokenId";
|
|
14737
|
-
readonly type: "uint16";
|
|
14738
|
-
}, {
|
|
14739
|
-
readonly internalType: "uint256";
|
|
14740
|
-
readonly name: "amount";
|
|
14741
|
-
readonly type: "uint256";
|
|
14742
|
-
}];
|
|
14743
|
-
readonly name: "deposit";
|
|
14744
|
-
readonly outputs: readonly [];
|
|
14745
|
-
readonly stateMutability: "nonpayable";
|
|
14746
|
-
readonly type: "function";
|
|
14747
|
-
}, {
|
|
14748
|
-
readonly inputs: readonly [{
|
|
14749
|
-
readonly components: readonly [{
|
|
14750
|
-
readonly internalType: "enum Side";
|
|
14751
|
-
readonly name: "bookSide";
|
|
14752
|
-
readonly type: "uint8";
|
|
14753
|
-
}, {
|
|
14754
|
-
readonly internalType: "AMMId";
|
|
14755
|
-
readonly name: "ammId";
|
|
14756
|
-
readonly type: "uint24";
|
|
14757
|
-
}, {
|
|
14758
|
-
readonly internalType: "int256";
|
|
14759
|
-
readonly name: "minProfit";
|
|
14760
|
-
readonly type: "int256";
|
|
14761
|
-
}, {
|
|
14762
|
-
readonly internalType: "bool";
|
|
14763
|
-
readonly name: "maximizeProfit";
|
|
14764
|
-
readonly type: "bool";
|
|
14765
|
-
}];
|
|
14766
|
-
readonly internalType: "struct ArbitrageExecutor.ArbitrageParams";
|
|
14767
|
-
readonly name: "params";
|
|
14768
|
-
readonly type: "tuple";
|
|
14769
|
-
}];
|
|
14770
|
-
readonly name: "executeArbitrage";
|
|
14771
|
-
readonly outputs: readonly [{
|
|
14772
|
-
readonly internalType: "uint256";
|
|
14773
|
-
readonly name: "arbSize";
|
|
14774
|
-
readonly type: "uint256";
|
|
14775
|
-
}, {
|
|
14776
|
-
readonly internalType: "int256";
|
|
14777
|
-
readonly name: "profit";
|
|
14778
|
-
readonly type: "int256";
|
|
14779
|
-
}];
|
|
14780
|
-
readonly stateMutability: "nonpayable";
|
|
14781
|
-
readonly type: "function";
|
|
14782
|
-
}, {
|
|
14783
|
-
readonly inputs: readonly [];
|
|
14784
|
-
readonly name: "initialize";
|
|
14785
|
-
readonly outputs: readonly [];
|
|
14786
|
-
readonly stateMutability: "nonpayable";
|
|
14787
|
-
readonly type: "function";
|
|
14788
|
-
}, {
|
|
14789
|
-
readonly inputs: readonly [];
|
|
14790
|
-
readonly name: "marketHub";
|
|
14791
|
-
readonly outputs: readonly [{
|
|
14792
|
-
readonly internalType: "contract IMarketHub";
|
|
14793
|
-
readonly name: "";
|
|
14794
|
-
readonly type: "address";
|
|
14795
|
-
}];
|
|
14796
|
-
readonly stateMutability: "view";
|
|
14797
|
-
readonly type: "function";
|
|
14798
|
-
}, {
|
|
14799
|
-
readonly inputs: readonly [];
|
|
14800
|
-
readonly name: "nTicksToTryAtOnce";
|
|
14801
|
-
readonly outputs: readonly [{
|
|
14802
|
-
readonly internalType: "uint16";
|
|
14803
|
-
readonly name: "";
|
|
14804
|
-
readonly type: "uint16";
|
|
14805
|
-
}];
|
|
14806
|
-
readonly stateMutability: "view";
|
|
14807
|
-
readonly type: "function";
|
|
14808
|
-
}, {
|
|
14809
|
-
readonly inputs: readonly [{
|
|
14810
|
-
readonly internalType: "bool";
|
|
14811
|
-
readonly name: "cross";
|
|
14812
|
-
readonly type: "bool";
|
|
14813
|
-
}, {
|
|
14814
|
-
readonly internalType: "MarketId";
|
|
14815
|
-
readonly name: "marketId";
|
|
14816
|
-
readonly type: "uint24";
|
|
14817
|
-
}];
|
|
14818
|
-
readonly name: "payMarketEntranceFee";
|
|
14819
|
-
readonly outputs: readonly [];
|
|
14820
|
-
readonly stateMutability: "nonpayable";
|
|
14821
|
-
readonly type: "function";
|
|
14822
|
-
}, {
|
|
14823
|
-
readonly inputs: readonly [];
|
|
14824
|
-
readonly name: "proxiableUUID";
|
|
14825
|
-
readonly outputs: readonly [{
|
|
14826
|
-
readonly internalType: "bytes32";
|
|
14827
|
-
readonly name: "";
|
|
14828
|
-
readonly type: "bytes32";
|
|
14829
|
-
}];
|
|
14830
|
-
readonly stateMutability: "view";
|
|
14831
|
-
readonly type: "function";
|
|
14832
|
-
}, {
|
|
14833
|
-
readonly inputs: readonly [{
|
|
14834
|
-
readonly internalType: "TokenId";
|
|
14835
|
-
readonly name: "tokenId";
|
|
14836
|
-
readonly type: "uint16";
|
|
14837
|
-
}, {
|
|
14838
|
-
readonly internalType: "uint256";
|
|
14839
|
-
readonly name: "amount";
|
|
14840
|
-
readonly type: "uint256";
|
|
14841
|
-
}];
|
|
14842
|
-
readonly name: "requestWithdrawal";
|
|
14843
|
-
readonly outputs: readonly [];
|
|
14844
|
-
readonly stateMutability: "nonpayable";
|
|
14845
|
-
readonly type: "function";
|
|
14846
|
-
}, {
|
|
14847
|
-
readonly inputs: readonly [];
|
|
14848
|
-
readonly name: "router";
|
|
14849
|
-
readonly outputs: readonly [{
|
|
14850
|
-
readonly internalType: "contract IRouter";
|
|
14851
|
-
readonly name: "";
|
|
14852
|
-
readonly type: "address";
|
|
14853
|
-
}];
|
|
14854
|
-
readonly stateMutability: "view";
|
|
14855
|
-
readonly type: "function";
|
|
14856
|
-
}, {
|
|
14857
|
-
readonly inputs: readonly [{
|
|
14858
|
-
readonly internalType: "address";
|
|
14859
|
-
readonly name: "newImplementation";
|
|
14860
|
-
readonly type: "address";
|
|
14861
|
-
}, {
|
|
14862
|
-
readonly internalType: "bytes";
|
|
14863
|
-
readonly name: "data";
|
|
14864
|
-
readonly type: "bytes";
|
|
14865
|
-
}];
|
|
14866
|
-
readonly name: "upgradeToAndCall";
|
|
14867
|
-
readonly outputs: readonly [];
|
|
14868
|
-
readonly stateMutability: "payable";
|
|
14869
|
-
readonly type: "function";
|
|
14870
|
-
}, {
|
|
14871
|
-
readonly inputs: readonly [{
|
|
14872
|
-
readonly internalType: "TokenId";
|
|
14873
|
-
readonly name: "tokenId";
|
|
14874
|
-
readonly type: "uint16";
|
|
14875
|
-
}, {
|
|
14876
|
-
readonly internalType: "uint256";
|
|
14877
|
-
readonly name: "amount";
|
|
14878
|
-
readonly type: "uint256";
|
|
14879
|
-
}, {
|
|
14880
|
-
readonly internalType: "address";
|
|
14881
|
-
readonly name: "receiver";
|
|
14882
|
-
readonly type: "address";
|
|
14883
|
-
}];
|
|
14884
|
-
readonly name: "withdraw";
|
|
14885
|
-
readonly outputs: readonly [];
|
|
14886
|
-
readonly stateMutability: "nonpayable";
|
|
14887
|
-
readonly type: "function";
|
|
14888
|
-
}];
|