@strobelabs/perpcity-sdk 0.3.11 → 0.4.1
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/index.d.mts +225 -170
- package/dist/index.d.ts +225 -170
- package/dist/index.js +242 -178
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +242 -178
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -4,143 +4,204 @@ import { WalletClient, Address, Hex, PublicClient } from 'viem';
|
|
|
4
4
|
|
|
5
5
|
declare const BEACON_ABI: readonly [{
|
|
6
6
|
readonly inputs: readonly [{
|
|
7
|
-
readonly internalType: "
|
|
8
|
-
readonly name: "
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "owner";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "contract IVerifierAdapter";
|
|
12
|
+
readonly name: "adapter";
|
|
13
|
+
readonly type: "address";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "contract IIndexEngine";
|
|
16
|
+
readonly name: "engine";
|
|
9
17
|
readonly type: "address";
|
|
10
18
|
}, {
|
|
11
19
|
readonly internalType: "uint256";
|
|
12
|
-
readonly name: "
|
|
20
|
+
readonly name: "initialIndex";
|
|
13
21
|
readonly type: "uint256";
|
|
14
|
-
}, {
|
|
15
|
-
readonly internalType: "uint32";
|
|
16
|
-
readonly name: "initialCardinalityNext";
|
|
17
|
-
readonly type: "uint32";
|
|
18
22
|
}];
|
|
19
23
|
readonly stateMutability: "nonpayable";
|
|
20
24
|
readonly type: "constructor";
|
|
21
25
|
}, {
|
|
22
|
-
readonly inputs: readonly [
|
|
23
|
-
|
|
24
|
-
readonly name: "proof";
|
|
25
|
-
readonly type: "bytes";
|
|
26
|
-
}, {
|
|
27
|
-
readonly internalType: "bytes";
|
|
28
|
-
readonly name: "publicSignals";
|
|
29
|
-
readonly type: "bytes";
|
|
30
|
-
}];
|
|
31
|
-
readonly name: "InvalidProof";
|
|
26
|
+
readonly inputs: readonly [];
|
|
27
|
+
readonly name: "AlreadyInitialized";
|
|
32
28
|
readonly type: "error";
|
|
33
29
|
}, {
|
|
34
|
-
readonly inputs: readonly [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
readonly name: "
|
|
30
|
+
readonly inputs: readonly [];
|
|
31
|
+
readonly name: "NewOwnerIsZeroAddress";
|
|
32
|
+
readonly type: "error";
|
|
33
|
+
}, {
|
|
34
|
+
readonly inputs: readonly [];
|
|
35
|
+
readonly name: "NoHandoverRequest";
|
|
36
|
+
readonly type: "error";
|
|
37
|
+
}, {
|
|
38
|
+
readonly inputs: readonly [];
|
|
39
|
+
readonly name: "Unauthorized";
|
|
44
40
|
readonly type: "error";
|
|
45
41
|
}, {
|
|
46
42
|
readonly anonymous: false;
|
|
47
43
|
readonly inputs: readonly [{
|
|
48
44
|
readonly indexed: false;
|
|
49
45
|
readonly internalType: "uint256";
|
|
50
|
-
readonly name: "
|
|
46
|
+
readonly name: "index";
|
|
51
47
|
readonly type: "uint256";
|
|
52
48
|
}];
|
|
53
|
-
readonly name: "
|
|
49
|
+
readonly name: "IndexUpdated";
|
|
50
|
+
readonly type: "event";
|
|
51
|
+
}, {
|
|
52
|
+
readonly anonymous: false;
|
|
53
|
+
readonly inputs: readonly [{
|
|
54
|
+
readonly indexed: true;
|
|
55
|
+
readonly internalType: "address";
|
|
56
|
+
readonly name: "pendingOwner";
|
|
57
|
+
readonly type: "address";
|
|
58
|
+
}];
|
|
59
|
+
readonly name: "OwnershipHandoverCanceled";
|
|
60
|
+
readonly type: "event";
|
|
61
|
+
}, {
|
|
62
|
+
readonly anonymous: false;
|
|
63
|
+
readonly inputs: readonly [{
|
|
64
|
+
readonly indexed: true;
|
|
65
|
+
readonly internalType: "address";
|
|
66
|
+
readonly name: "pendingOwner";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
}];
|
|
69
|
+
readonly name: "OwnershipHandoverRequested";
|
|
70
|
+
readonly type: "event";
|
|
71
|
+
}, {
|
|
72
|
+
readonly anonymous: false;
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly indexed: true;
|
|
75
|
+
readonly internalType: "address";
|
|
76
|
+
readonly name: "oldOwner";
|
|
77
|
+
readonly type: "address";
|
|
78
|
+
}, {
|
|
79
|
+
readonly indexed: true;
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "newOwner";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "OwnershipTransferred";
|
|
54
85
|
readonly type: "event";
|
|
55
86
|
}, {
|
|
56
87
|
readonly inputs: readonly [];
|
|
57
|
-
readonly name: "
|
|
58
|
-
readonly outputs: readonly [
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
88
|
+
readonly name: "cancelOwnershipHandover";
|
|
89
|
+
readonly outputs: readonly [];
|
|
90
|
+
readonly stateMutability: "payable";
|
|
91
|
+
readonly type: "function";
|
|
92
|
+
}, {
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly internalType: "address";
|
|
95
|
+
readonly name: "pendingOwner";
|
|
96
|
+
readonly type: "address";
|
|
62
97
|
}];
|
|
63
|
-
readonly
|
|
98
|
+
readonly name: "completeOwnershipHandover";
|
|
99
|
+
readonly outputs: readonly [];
|
|
100
|
+
readonly stateMutability: "payable";
|
|
64
101
|
readonly type: "function";
|
|
65
102
|
}, {
|
|
66
|
-
readonly inputs: readonly [
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
readonly
|
|
70
|
-
readonly name: "";
|
|
71
|
-
readonly type: "int256";
|
|
103
|
+
readonly inputs: readonly [{
|
|
104
|
+
readonly internalType: "uint16";
|
|
105
|
+
readonly name: "newCap";
|
|
106
|
+
readonly type: "uint16";
|
|
72
107
|
}];
|
|
73
|
-
readonly
|
|
108
|
+
readonly name: "increaseCardinalityCap";
|
|
109
|
+
readonly outputs: readonly [];
|
|
110
|
+
readonly stateMutability: "nonpayable";
|
|
74
111
|
readonly type: "function";
|
|
75
112
|
}, {
|
|
76
113
|
readonly inputs: readonly [];
|
|
77
|
-
readonly name: "
|
|
114
|
+
readonly name: "index";
|
|
78
115
|
readonly outputs: readonly [{
|
|
79
|
-
readonly internalType: "
|
|
116
|
+
readonly internalType: "uint256";
|
|
80
117
|
readonly name: "";
|
|
81
|
-
readonly type: "
|
|
118
|
+
readonly type: "uint256";
|
|
82
119
|
}];
|
|
83
120
|
readonly stateMutability: "view";
|
|
84
121
|
readonly type: "function";
|
|
85
122
|
}, {
|
|
86
123
|
readonly inputs: readonly [];
|
|
87
|
-
readonly name: "
|
|
124
|
+
readonly name: "indexEngine";
|
|
88
125
|
readonly outputs: readonly [{
|
|
89
|
-
readonly internalType: "
|
|
126
|
+
readonly internalType: "contract IIndexEngine";
|
|
90
127
|
readonly name: "";
|
|
91
|
-
readonly type: "
|
|
128
|
+
readonly type: "address";
|
|
92
129
|
}];
|
|
93
130
|
readonly stateMutability: "view";
|
|
94
131
|
readonly type: "function";
|
|
95
132
|
}, {
|
|
96
133
|
readonly inputs: readonly [];
|
|
97
|
-
readonly name: "
|
|
134
|
+
readonly name: "owner";
|
|
98
135
|
readonly outputs: readonly [{
|
|
99
|
-
readonly internalType: "
|
|
100
|
-
readonly name: "";
|
|
101
|
-
readonly type: "
|
|
102
|
-
}, {
|
|
103
|
-
readonly internalType: "uint256";
|
|
104
|
-
readonly name: "";
|
|
105
|
-
readonly type: "uint256";
|
|
136
|
+
readonly internalType: "address";
|
|
137
|
+
readonly name: "result";
|
|
138
|
+
readonly type: "address";
|
|
106
139
|
}];
|
|
107
140
|
readonly stateMutability: "view";
|
|
108
141
|
readonly type: "function";
|
|
109
142
|
}, {
|
|
110
143
|
readonly inputs: readonly [{
|
|
111
|
-
readonly internalType: "
|
|
112
|
-
readonly name: "
|
|
113
|
-
readonly type: "
|
|
144
|
+
readonly internalType: "address";
|
|
145
|
+
readonly name: "pendingOwner";
|
|
146
|
+
readonly type: "address";
|
|
114
147
|
}];
|
|
115
|
-
readonly name: "
|
|
148
|
+
readonly name: "ownershipHandoverExpiresAt";
|
|
116
149
|
readonly outputs: readonly [{
|
|
117
150
|
readonly internalType: "uint256";
|
|
118
|
-
readonly name: "
|
|
151
|
+
readonly name: "result";
|
|
119
152
|
readonly type: "uint256";
|
|
120
153
|
}];
|
|
121
154
|
readonly stateMutability: "view";
|
|
122
155
|
readonly type: "function";
|
|
156
|
+
}, {
|
|
157
|
+
readonly inputs: readonly [];
|
|
158
|
+
readonly name: "renounceOwnership";
|
|
159
|
+
readonly outputs: readonly [];
|
|
160
|
+
readonly stateMutability: "payable";
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [];
|
|
164
|
+
readonly name: "requestOwnershipHandover";
|
|
165
|
+
readonly outputs: readonly [];
|
|
166
|
+
readonly stateMutability: "payable";
|
|
167
|
+
readonly type: "function";
|
|
123
168
|
}, {
|
|
124
169
|
readonly inputs: readonly [{
|
|
125
|
-
readonly internalType: "
|
|
126
|
-
readonly name: "
|
|
127
|
-
readonly type: "
|
|
170
|
+
readonly internalType: "contract IIndexEngine";
|
|
171
|
+
readonly name: "newIndexEngine";
|
|
172
|
+
readonly type: "address";
|
|
128
173
|
}];
|
|
129
|
-
readonly name: "
|
|
130
|
-
readonly outputs: readonly [
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
readonly internalType: "
|
|
136
|
-
readonly name: "
|
|
137
|
-
readonly type: "
|
|
174
|
+
readonly name: "setIndexEngine";
|
|
175
|
+
readonly outputs: readonly [];
|
|
176
|
+
readonly stateMutability: "nonpayable";
|
|
177
|
+
readonly type: "function";
|
|
178
|
+
}, {
|
|
179
|
+
readonly inputs: readonly [{
|
|
180
|
+
readonly internalType: "contract IVerifierAdapter";
|
|
181
|
+
readonly name: "newVerifierAdapter";
|
|
182
|
+
readonly type: "address";
|
|
138
183
|
}];
|
|
184
|
+
readonly name: "setVerifierAdapter";
|
|
185
|
+
readonly outputs: readonly [];
|
|
139
186
|
readonly stateMutability: "nonpayable";
|
|
140
187
|
readonly type: "function";
|
|
141
188
|
}, {
|
|
142
|
-
readonly inputs: readonly [
|
|
143
|
-
|
|
189
|
+
readonly inputs: readonly [{
|
|
190
|
+
readonly internalType: "address";
|
|
191
|
+
readonly name: "newOwner";
|
|
192
|
+
readonly type: "address";
|
|
193
|
+
}];
|
|
194
|
+
readonly name: "transferOwnership";
|
|
195
|
+
readonly outputs: readonly [];
|
|
196
|
+
readonly stateMutability: "payable";
|
|
197
|
+
readonly type: "function";
|
|
198
|
+
}, {
|
|
199
|
+
readonly inputs: readonly [{
|
|
200
|
+
readonly internalType: "uint32";
|
|
201
|
+
readonly name: "secondsAgo";
|
|
202
|
+
readonly type: "uint32";
|
|
203
|
+
}];
|
|
204
|
+
readonly name: "twAvg";
|
|
144
205
|
readonly outputs: readonly [{
|
|
145
206
|
readonly internalType: "uint256";
|
|
146
207
|
readonly name: "";
|
|
@@ -150,19 +211,19 @@ declare const BEACON_ABI: readonly [{
|
|
|
150
211
|
readonly type: "function";
|
|
151
212
|
}, {
|
|
152
213
|
readonly inputs: readonly [];
|
|
153
|
-
readonly name: "
|
|
214
|
+
readonly name: "twAvgState";
|
|
154
215
|
readonly outputs: readonly [{
|
|
155
|
-
readonly internalType: "
|
|
216
|
+
readonly internalType: "uint16";
|
|
156
217
|
readonly name: "index";
|
|
157
|
-
readonly type: "
|
|
218
|
+
readonly type: "uint16";
|
|
158
219
|
}, {
|
|
159
|
-
readonly internalType: "
|
|
220
|
+
readonly internalType: "uint16";
|
|
160
221
|
readonly name: "cardinality";
|
|
161
|
-
readonly type: "
|
|
222
|
+
readonly type: "uint16";
|
|
162
223
|
}, {
|
|
163
|
-
readonly internalType: "
|
|
164
|
-
readonly name: "
|
|
165
|
-
readonly type: "
|
|
224
|
+
readonly internalType: "uint16";
|
|
225
|
+
readonly name: "cardinalityCap";
|
|
226
|
+
readonly type: "uint16";
|
|
166
227
|
}];
|
|
167
228
|
readonly stateMutability: "view";
|
|
168
229
|
readonly type: "function";
|
|
@@ -173,24 +234,20 @@ declare const BEACON_ABI: readonly [{
|
|
|
173
234
|
readonly type: "bytes";
|
|
174
235
|
}, {
|
|
175
236
|
readonly internalType: "bytes";
|
|
176
|
-
readonly name: "
|
|
237
|
+
readonly name: "inputs";
|
|
177
238
|
readonly type: "bytes";
|
|
178
239
|
}];
|
|
179
|
-
readonly name: "
|
|
240
|
+
readonly name: "updateIndex";
|
|
180
241
|
readonly outputs: readonly [];
|
|
181
242
|
readonly stateMutability: "nonpayable";
|
|
182
243
|
readonly type: "function";
|
|
183
244
|
}, {
|
|
184
|
-
readonly inputs: readonly [
|
|
185
|
-
|
|
186
|
-
readonly name: "";
|
|
187
|
-
readonly type: "bytes";
|
|
188
|
-
}];
|
|
189
|
-
readonly name: "usedProofs";
|
|
245
|
+
readonly inputs: readonly [];
|
|
246
|
+
readonly name: "verifierAdapter";
|
|
190
247
|
readonly outputs: readonly [{
|
|
191
|
-
readonly internalType: "
|
|
248
|
+
readonly internalType: "contract IVerifierAdapter";
|
|
192
249
|
readonly name: "";
|
|
193
|
-
readonly type: "
|
|
250
|
+
readonly type: "address";
|
|
194
251
|
}];
|
|
195
252
|
readonly stateMutability: "view";
|
|
196
253
|
readonly type: "function";
|
|
@@ -224,6 +281,10 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
224
281
|
readonly inputs: readonly [];
|
|
225
282
|
readonly name: "BeaconNotRegistered";
|
|
226
283
|
readonly type: "error";
|
|
284
|
+
}, {
|
|
285
|
+
readonly inputs: readonly [];
|
|
286
|
+
readonly name: "CouldNotFullyFill";
|
|
287
|
+
readonly type: "error";
|
|
227
288
|
}, {
|
|
228
289
|
readonly inputs: readonly [];
|
|
229
290
|
readonly name: "FeeTooLarge";
|
|
@@ -244,29 +305,13 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
244
305
|
readonly inputs: readonly [];
|
|
245
306
|
readonly name: "InvalidCaller";
|
|
246
307
|
readonly type: "error";
|
|
247
|
-
}, {
|
|
248
|
-
readonly inputs: readonly [{
|
|
249
|
-
readonly internalType: "uint128";
|
|
250
|
-
readonly name: "liquidity";
|
|
251
|
-
readonly type: "uint128";
|
|
252
|
-
}];
|
|
253
|
-
readonly name: "InvalidLiquidity";
|
|
254
|
-
readonly type: "error";
|
|
255
308
|
}, {
|
|
256
309
|
readonly inputs: readonly [];
|
|
257
310
|
readonly name: "InvalidMargin";
|
|
258
311
|
readonly type: "error";
|
|
259
|
-
}, {
|
|
260
|
-
readonly inputs: readonly [{
|
|
261
|
-
readonly internalType: "uint256";
|
|
262
|
-
readonly name: "marginRatio";
|
|
263
|
-
readonly type: "uint256";
|
|
264
|
-
}];
|
|
265
|
-
readonly name: "InvalidMarginRatio";
|
|
266
|
-
readonly type: "error";
|
|
267
312
|
}, {
|
|
268
313
|
readonly inputs: readonly [];
|
|
269
|
-
readonly name: "
|
|
314
|
+
readonly name: "InvalidMarginRatio";
|
|
270
315
|
readonly type: "error";
|
|
271
316
|
}, {
|
|
272
317
|
readonly inputs: readonly [];
|
|
@@ -281,32 +326,12 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
281
326
|
readonly name: "MarginRatiosNotRegistered";
|
|
282
327
|
readonly type: "error";
|
|
283
328
|
}, {
|
|
284
|
-
readonly inputs: readonly [
|
|
285
|
-
readonly internalType: "uint256";
|
|
286
|
-
readonly name: "maximumAmount";
|
|
287
|
-
readonly type: "uint256";
|
|
288
|
-
}, {
|
|
289
|
-
readonly internalType: "uint256";
|
|
290
|
-
readonly name: "amountRequested";
|
|
291
|
-
readonly type: "uint256";
|
|
292
|
-
}];
|
|
329
|
+
readonly inputs: readonly [];
|
|
293
330
|
readonly name: "MaximumAmountExceeded";
|
|
294
331
|
readonly type: "error";
|
|
295
|
-
}, {
|
|
296
|
-
readonly inputs: readonly [{
|
|
297
|
-
readonly internalType: "uint256";
|
|
298
|
-
readonly name: "minimumAmount";
|
|
299
|
-
readonly type: "uint256";
|
|
300
|
-
}, {
|
|
301
|
-
readonly internalType: "uint256";
|
|
302
|
-
readonly name: "amountReceived";
|
|
303
|
-
readonly type: "uint256";
|
|
304
|
-
}];
|
|
305
|
-
readonly name: "MinimumAmountInsufficient";
|
|
306
|
-
readonly type: "error";
|
|
307
332
|
}, {
|
|
308
333
|
readonly inputs: readonly [];
|
|
309
|
-
readonly name: "
|
|
334
|
+
readonly name: "MinimumAmountInsufficient";
|
|
310
335
|
readonly type: "error";
|
|
311
336
|
}, {
|
|
312
337
|
readonly inputs: readonly [];
|
|
@@ -338,15 +363,23 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
338
363
|
readonly type: "error";
|
|
339
364
|
}, {
|
|
340
365
|
readonly inputs: readonly [];
|
|
341
|
-
readonly name: "
|
|
366
|
+
readonly name: "StartingSqrtPriceTooHigh";
|
|
342
367
|
readonly type: "error";
|
|
343
368
|
}, {
|
|
344
369
|
readonly inputs: readonly [];
|
|
345
|
-
readonly name: "
|
|
370
|
+
readonly name: "StartingSqrtPriceTooLow";
|
|
346
371
|
readonly type: "error";
|
|
347
372
|
}, {
|
|
348
373
|
readonly inputs: readonly [];
|
|
349
|
-
readonly name: "
|
|
374
|
+
readonly name: "TicksOutOfBounds";
|
|
375
|
+
readonly type: "error";
|
|
376
|
+
}, {
|
|
377
|
+
readonly inputs: readonly [];
|
|
378
|
+
readonly name: "TokenAlreadyExists";
|
|
379
|
+
readonly type: "error";
|
|
380
|
+
}, {
|
|
381
|
+
readonly inputs: readonly [];
|
|
382
|
+
readonly name: "TokenDoesNotExist";
|
|
350
383
|
readonly type: "error";
|
|
351
384
|
}, {
|
|
352
385
|
readonly inputs: readonly [];
|
|
@@ -368,6 +401,14 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
368
401
|
readonly inputs: readonly [];
|
|
369
402
|
readonly name: "ZeroDelta";
|
|
370
403
|
readonly type: "error";
|
|
404
|
+
}, {
|
|
405
|
+
readonly inputs: readonly [];
|
|
406
|
+
readonly name: "ZeroLiquidity";
|
|
407
|
+
readonly type: "error";
|
|
408
|
+
}, {
|
|
409
|
+
readonly inputs: readonly [];
|
|
410
|
+
readonly name: "ZeroNotional";
|
|
411
|
+
readonly type: "error";
|
|
371
412
|
}, {
|
|
372
413
|
readonly anonymous: false;
|
|
373
414
|
readonly inputs: readonly [{
|
|
@@ -829,6 +870,20 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
829
870
|
readonly outputs: readonly [];
|
|
830
871
|
readonly stateMutability: "payable";
|
|
831
872
|
readonly type: "function";
|
|
873
|
+
}, {
|
|
874
|
+
readonly inputs: readonly [{
|
|
875
|
+
readonly internalType: "PoolId";
|
|
876
|
+
readonly name: "perpId";
|
|
877
|
+
readonly type: "bytes32";
|
|
878
|
+
}];
|
|
879
|
+
readonly name: "cardinalityCap";
|
|
880
|
+
readonly outputs: readonly [{
|
|
881
|
+
readonly internalType: "uint16";
|
|
882
|
+
readonly name: "";
|
|
883
|
+
readonly type: "uint16";
|
|
884
|
+
}];
|
|
885
|
+
readonly stateMutability: "view";
|
|
886
|
+
readonly type: "function";
|
|
832
887
|
}, {
|
|
833
888
|
readonly inputs: readonly [{
|
|
834
889
|
readonly internalType: "PoolId";
|
|
@@ -1194,9 +1249,9 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
1194
1249
|
readonly name: "margin";
|
|
1195
1250
|
readonly type: "uint128";
|
|
1196
1251
|
}, {
|
|
1197
|
-
readonly internalType: "
|
|
1198
|
-
readonly name: "
|
|
1199
|
-
readonly type: "
|
|
1252
|
+
readonly internalType: "uint24";
|
|
1253
|
+
readonly name: "marginRatio";
|
|
1254
|
+
readonly type: "uint24";
|
|
1200
1255
|
}, {
|
|
1201
1256
|
readonly internalType: "uint128";
|
|
1202
1257
|
readonly name: "unspecifiedAmountLimit";
|
|
@@ -1358,9 +1413,9 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
1358
1413
|
}];
|
|
1359
1414
|
readonly name: "quoteClosePosition";
|
|
1360
1415
|
readonly outputs: readonly [{
|
|
1361
|
-
readonly internalType: "
|
|
1362
|
-
readonly name: "
|
|
1363
|
-
readonly type: "
|
|
1416
|
+
readonly internalType: "bytes";
|
|
1417
|
+
readonly name: "unexpectedReason";
|
|
1418
|
+
readonly type: "bytes";
|
|
1364
1419
|
}, {
|
|
1365
1420
|
readonly internalType: "int256";
|
|
1366
1421
|
readonly name: "pnl";
|
|
@@ -1421,9 +1476,9 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
1421
1476
|
}];
|
|
1422
1477
|
readonly name: "quoteOpenMakerPosition";
|
|
1423
1478
|
readonly outputs: readonly [{
|
|
1424
|
-
readonly internalType: "
|
|
1425
|
-
readonly name: "
|
|
1426
|
-
readonly type: "
|
|
1479
|
+
readonly internalType: "bytes";
|
|
1480
|
+
readonly name: "unexpectedReason";
|
|
1481
|
+
readonly type: "bytes";
|
|
1427
1482
|
}, {
|
|
1428
1483
|
readonly internalType: "int256";
|
|
1429
1484
|
readonly name: "perpDelta";
|
|
@@ -1454,9 +1509,9 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
1454
1509
|
readonly name: "margin";
|
|
1455
1510
|
readonly type: "uint128";
|
|
1456
1511
|
}, {
|
|
1457
|
-
readonly internalType: "
|
|
1458
|
-
readonly name: "
|
|
1459
|
-
readonly type: "
|
|
1512
|
+
readonly internalType: "uint24";
|
|
1513
|
+
readonly name: "marginRatio";
|
|
1514
|
+
readonly type: "uint24";
|
|
1460
1515
|
}, {
|
|
1461
1516
|
readonly internalType: "uint128";
|
|
1462
1517
|
readonly name: "unspecifiedAmountLimit";
|
|
@@ -1468,9 +1523,9 @@ declare const PERP_MANAGER_ABI: readonly [{
|
|
|
1468
1523
|
}];
|
|
1469
1524
|
readonly name: "quoteOpenTakerPosition";
|
|
1470
1525
|
readonly outputs: readonly [{
|
|
1471
|
-
readonly internalType: "
|
|
1472
|
-
readonly name: "
|
|
1473
|
-
readonly type: "
|
|
1526
|
+
readonly internalType: "bytes";
|
|
1527
|
+
readonly name: "unexpectedReason";
|
|
1528
|
+
readonly type: "bytes";
|
|
1474
1529
|
}, {
|
|
1475
1530
|
readonly internalType: "int256";
|
|
1476
1531
|
readonly name: "perpDelta";
|
|
@@ -6047,23 +6102,23 @@ declare class PerpCityContext {
|
|
|
6047
6102
|
[x: `function[${string}]`]: undefined;
|
|
6048
6103
|
[x: `address[${string}]`]: undefined;
|
|
6049
6104
|
[x: `uint256[${string}]`]: undefined;
|
|
6105
|
+
[x: `uint16[${string}]`]: undefined;
|
|
6050
6106
|
[x: `uint32[${string}]`]: undefined;
|
|
6051
6107
|
[x: `bytes[${string}]`]: undefined;
|
|
6052
|
-
[x: `int256[${string}]`]: undefined;
|
|
6053
|
-
[x: `bool[${string}]`]: undefined;
|
|
6054
6108
|
[x: `uint8[${string}]`]: undefined;
|
|
6055
|
-
[x: `
|
|
6109
|
+
[x: `bool[${string}]`]: undefined;
|
|
6056
6110
|
[x: `bytes32[${string}]`]: undefined;
|
|
6111
|
+
[x: `int256[${string}]`]: undefined;
|
|
6057
6112
|
[x: `int24[${string}]`]: undefined;
|
|
6058
6113
|
[x: `uint24[${string}]`]: undefined;
|
|
6114
|
+
[x: `uint128[${string}]`]: undefined;
|
|
6059
6115
|
[x: `uint160[${string}]`]: undefined;
|
|
6060
|
-
[x: `uint16[${string}]`]: undefined;
|
|
6061
6116
|
[x: `uint120[${string}]`]: undefined;
|
|
6062
6117
|
[x: `bytes4[${string}]`]: undefined;
|
|
6063
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
6064
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
6065
6118
|
[x: `bytes1[${string}]`]: undefined;
|
|
6066
|
-
[x: `
|
|
6119
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
6120
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
6121
|
+
[x: `bytes25[${string}]`]: undefined;
|
|
6067
6122
|
[x: `bytes6[${string}]`]: undefined;
|
|
6068
6123
|
[x: `bytes12[${string}]`]: undefined;
|
|
6069
6124
|
[x: `bytes10[${string}]`]: undefined;
|
|
@@ -6074,6 +6129,7 @@ declare class PerpCityContext {
|
|
|
6074
6129
|
[x: `bytes11[${string}]`]: undefined;
|
|
6075
6130
|
[x: `bytes13[${string}]`]: undefined;
|
|
6076
6131
|
[x: `bytes14[${string}]`]: undefined;
|
|
6132
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
6077
6133
|
[x: `bytes16[${string}]`]: undefined;
|
|
6078
6134
|
[x: `bytes17[${string}]`]: undefined;
|
|
6079
6135
|
[x: `bytes18[${string}]`]: undefined;
|
|
@@ -6083,7 +6139,6 @@ declare class PerpCityContext {
|
|
|
6083
6139
|
[x: `bytes22[${string}]`]: undefined;
|
|
6084
6140
|
[x: `bytes23[${string}]`]: undefined;
|
|
6085
6141
|
[x: `bytes24[${string}]`]: undefined;
|
|
6086
|
-
[x: `bytes25[${string}]`]: undefined;
|
|
6087
6142
|
[x: `bytes26[${string}]`]: undefined;
|
|
6088
6143
|
[x: `bytes27[${string}]`]: undefined;
|
|
6089
6144
|
[x: `bytes28[${string}]`]: undefined;
|
|
@@ -6092,7 +6147,6 @@ declare class PerpCityContext {
|
|
|
6092
6147
|
[x: `bytes31[${string}]`]: undefined;
|
|
6093
6148
|
[x: `int[${string}]`]: undefined;
|
|
6094
6149
|
[x: `int8[${string}]`]: undefined;
|
|
6095
|
-
[x: `int104[${string}]`]: undefined;
|
|
6096
6150
|
[x: `int16[${string}]`]: undefined;
|
|
6097
6151
|
[x: `int32[${string}]`]: undefined;
|
|
6098
6152
|
[x: `int40[${string}]`]: undefined;
|
|
@@ -6103,6 +6157,7 @@ declare class PerpCityContext {
|
|
|
6103
6157
|
[x: `int80[${string}]`]: undefined;
|
|
6104
6158
|
[x: `int88[${string}]`]: undefined;
|
|
6105
6159
|
[x: `int96[${string}]`]: undefined;
|
|
6160
|
+
[x: `int104[${string}]`]: undefined;
|
|
6106
6161
|
[x: `int112[${string}]`]: undefined;
|
|
6107
6162
|
[x: `int120[${string}]`]: undefined;
|
|
6108
6163
|
[x: `int128[${string}]`]: undefined;
|
|
@@ -6122,7 +6177,6 @@ declare class PerpCityContext {
|
|
|
6122
6177
|
[x: `int240[${string}]`]: undefined;
|
|
6123
6178
|
[x: `int248[${string}]`]: undefined;
|
|
6124
6179
|
[x: `uint[${string}]`]: undefined;
|
|
6125
|
-
[x: `uint104[${string}]`]: undefined;
|
|
6126
6180
|
[x: `uint40[${string}]`]: undefined;
|
|
6127
6181
|
[x: `uint48[${string}]`]: undefined;
|
|
6128
6182
|
[x: `uint56[${string}]`]: undefined;
|
|
@@ -6131,6 +6185,7 @@ declare class PerpCityContext {
|
|
|
6131
6185
|
[x: `uint80[${string}]`]: undefined;
|
|
6132
6186
|
[x: `uint88[${string}]`]: undefined;
|
|
6133
6187
|
[x: `uint96[${string}]`]: undefined;
|
|
6188
|
+
[x: `uint104[${string}]`]: undefined;
|
|
6134
6189
|
[x: `uint112[${string}]`]: undefined;
|
|
6135
6190
|
[x: `uint136[${string}]`]: undefined;
|
|
6136
6191
|
[x: `uint144[${string}]`]: undefined;
|
|
@@ -6149,23 +6204,23 @@ declare class PerpCityContext {
|
|
|
6149
6204
|
string?: undefined;
|
|
6150
6205
|
address?: undefined;
|
|
6151
6206
|
uint256?: undefined;
|
|
6207
|
+
uint16?: undefined;
|
|
6152
6208
|
uint32?: undefined;
|
|
6153
6209
|
bytes?: undefined;
|
|
6154
|
-
int256?: undefined;
|
|
6155
|
-
bool?: undefined;
|
|
6156
6210
|
uint8?: undefined;
|
|
6157
|
-
|
|
6211
|
+
bool?: undefined;
|
|
6158
6212
|
bytes32?: undefined;
|
|
6213
|
+
int256?: undefined;
|
|
6159
6214
|
int24?: undefined;
|
|
6160
6215
|
uint24?: undefined;
|
|
6216
|
+
uint128?: undefined;
|
|
6161
6217
|
uint160?: undefined;
|
|
6162
|
-
uint16?: undefined;
|
|
6163
6218
|
uint120?: undefined;
|
|
6164
6219
|
bytes4?: undefined;
|
|
6165
|
-
bytes3?: undefined;
|
|
6166
|
-
bytes2?: undefined;
|
|
6167
6220
|
bytes1?: undefined;
|
|
6168
|
-
|
|
6221
|
+
bytes2?: undefined;
|
|
6222
|
+
bytes3?: undefined;
|
|
6223
|
+
bytes25?: undefined;
|
|
6169
6224
|
bytes6?: undefined;
|
|
6170
6225
|
bytes12?: undefined;
|
|
6171
6226
|
bytes10?: undefined;
|
|
@@ -6176,6 +6231,7 @@ declare class PerpCityContext {
|
|
|
6176
6231
|
bytes11?: undefined;
|
|
6177
6232
|
bytes13?: undefined;
|
|
6178
6233
|
bytes14?: undefined;
|
|
6234
|
+
bytes15?: undefined;
|
|
6179
6235
|
bytes16?: undefined;
|
|
6180
6236
|
bytes17?: undefined;
|
|
6181
6237
|
bytes18?: undefined;
|
|
@@ -6185,7 +6241,6 @@ declare class PerpCityContext {
|
|
|
6185
6241
|
bytes22?: undefined;
|
|
6186
6242
|
bytes23?: undefined;
|
|
6187
6243
|
bytes24?: undefined;
|
|
6188
|
-
bytes25?: undefined;
|
|
6189
6244
|
bytes26?: undefined;
|
|
6190
6245
|
bytes27?: undefined;
|
|
6191
6246
|
bytes28?: undefined;
|
|
@@ -6193,7 +6248,6 @@ declare class PerpCityContext {
|
|
|
6193
6248
|
bytes30?: undefined;
|
|
6194
6249
|
bytes31?: undefined;
|
|
6195
6250
|
int8?: undefined;
|
|
6196
|
-
int104?: undefined;
|
|
6197
6251
|
int16?: undefined;
|
|
6198
6252
|
int32?: undefined;
|
|
6199
6253
|
int40?: undefined;
|
|
@@ -6204,6 +6258,7 @@ declare class PerpCityContext {
|
|
|
6204
6258
|
int80?: undefined;
|
|
6205
6259
|
int88?: undefined;
|
|
6206
6260
|
int96?: undefined;
|
|
6261
|
+
int104?: undefined;
|
|
6207
6262
|
int112?: undefined;
|
|
6208
6263
|
int120?: undefined;
|
|
6209
6264
|
int128?: undefined;
|
|
@@ -6222,7 +6277,6 @@ declare class PerpCityContext {
|
|
|
6222
6277
|
int232?: undefined;
|
|
6223
6278
|
int240?: undefined;
|
|
6224
6279
|
int248?: undefined;
|
|
6225
|
-
uint104?: undefined;
|
|
6226
6280
|
uint40?: undefined;
|
|
6227
6281
|
uint48?: undefined;
|
|
6228
6282
|
uint56?: undefined;
|
|
@@ -6231,6 +6285,7 @@ declare class PerpCityContext {
|
|
|
6231
6285
|
uint80?: undefined;
|
|
6232
6286
|
uint88?: undefined;
|
|
6233
6287
|
uint96?: undefined;
|
|
6288
|
+
uint104?: undefined;
|
|
6234
6289
|
uint112?: undefined;
|
|
6235
6290
|
uint136?: undefined;
|
|
6236
6291
|
uint144?: undefined;
|