@katanaperps/katana-perps-sdk 1.0.0 → 1.0.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.
Files changed (84) hide show
  1. package/README.md +1 -1
  2. package/dist/abis/ExchangeLayerZeroAdapter_v1.json +728 -0
  3. package/dist/abis/IVaultComposerSync.json +537 -0
  4. package/dist/abis/KatanaPerpsStargateForwarder_v1.json +563 -0
  5. package/dist/bridge/config.d.ts +46 -57
  6. package/dist/bridge/config.d.ts.map +1 -1
  7. package/dist/bridge/config.js +39 -48
  8. package/dist/bridge/deposit.d.ts +23 -3
  9. package/dist/bridge/deposit.d.ts.map +1 -1
  10. package/dist/bridge/deposit.js +114 -42
  11. package/dist/bridge/utils.d.ts +26 -32
  12. package/dist/bridge/utils.d.ts.map +1 -1
  13. package/dist/bridge/withdraw.d.ts +1 -1
  14. package/dist/bridge/withdraw.d.ts.map +1 -1
  15. package/dist/bridge/withdraw.js +13 -32
  16. package/dist/client/rest/authenticated.d.ts +1 -0
  17. package/dist/client/rest/authenticated.d.ts.map +1 -1
  18. package/dist/client/rest/authenticated.js +24 -13
  19. package/dist/client/rest/public.d.ts +23 -0
  20. package/dist/client/rest/public.d.ts.map +1 -1
  21. package/dist/client/rest/public.js +25 -0
  22. package/dist/typechain-types/{ExchangeLayerZeroAdapter_v3.d.ts → ExchangeLayerZeroAdapter_v1.d.ts} +32 -37
  23. package/dist/typechain-types/ExchangeLayerZeroAdapter_v1.d.ts.map +1 -0
  24. package/dist/typechain-types/IVaultComposerSync.d.ts +247 -0
  25. package/dist/typechain-types/IVaultComposerSync.d.ts.map +1 -0
  26. package/dist/typechain-types/{KumaStargateForwarder_v2.d.ts → KatanaPerpsStargateForwarder_v1.d.ts} +38 -14
  27. package/dist/typechain-types/KatanaPerpsStargateForwarder_v1.d.ts.map +1 -0
  28. package/dist/typechain-types/factories/{ExchangeLayerZeroAdapter_v3__factory.d.ts → ExchangeLayerZeroAdapter_v1__factory.d.ts} +62 -36
  29. package/dist/typechain-types/factories/{ExchangeLayerZeroAdapter_v3__factory.d.ts.map → ExchangeLayerZeroAdapter_v1__factory.d.ts.map} +1 -1
  30. package/dist/typechain-types/factories/{ExchangeLayerZeroAdapter_v3__factory.js → ExchangeLayerZeroAdapter_v1__factory.js} +77 -42
  31. package/dist/typechain-types/factories/IVaultComposerSync__factory.d.ts +422 -0
  32. package/dist/typechain-types/factories/IVaultComposerSync__factory.d.ts.map +1 -0
  33. package/dist/typechain-types/factories/IVaultComposerSync__factory.js +554 -0
  34. package/dist/typechain-types/factories/{KumaStargateForwarder_v2__factory.d.ts → KatanaPerpsStargateForwarder_v1__factory.d.ts} +103 -31
  35. package/dist/typechain-types/factories/KatanaPerpsStargateForwarder_v1__factory.d.ts.map +1 -0
  36. package/dist/typechain-types/factories/{KumaStargateForwarder_v2__factory.js → KatanaPerpsStargateForwarder_v1__factory.js} +125 -31
  37. package/dist/typechain-types/factories/index.d.ts +3 -0
  38. package/dist/typechain-types/factories/index.d.ts.map +1 -1
  39. package/dist/typechain-types/factories/index.js +7 -1
  40. package/dist/typechain-types/index.d.ts +6 -0
  41. package/dist/typechain-types/index.d.ts.map +1 -1
  42. package/dist/typechain-types/index.js +7 -1
  43. package/dist/types/enums/request.d.ts +2 -4
  44. package/dist/types/enums/request.d.ts.map +1 -1
  45. package/dist/types/enums/request.js +1 -2
  46. package/dist/types/rest/endpoints/GetExchange.d.ts +10 -0
  47. package/dist/types/rest/endpoints/GetExchange.d.ts.map +1 -1
  48. package/dist/types/rest/endpoints/GetFundingRateSamples.d.ts +40 -0
  49. package/dist/types/rest/endpoints/GetFundingRateSamples.d.ts.map +1 -0
  50. package/dist/types/rest/endpoints/GetGasFees.d.ts +2 -0
  51. package/dist/types/rest/endpoints/GetGasFees.d.ts.map +1 -1
  52. package/dist/types/rest/endpoints/index.d.ts +1 -0
  53. package/dist/types/rest/endpoints/index.d.ts.map +1 -1
  54. package/dist/types/rest/endpoints/index.js +1 -0
  55. package/package.json +1 -1
  56. package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts +0 -253
  57. package/dist/typechain-types/ExchangeLayerZeroAdapter.d.ts.map +0 -1
  58. package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts +0 -338
  59. package/dist/typechain-types/ExchangeLayerZeroAdapter_v2.d.ts.map +0 -1
  60. package/dist/typechain-types/ExchangeLayerZeroAdapter_v3.d.ts.map +0 -1
  61. package/dist/typechain-types/Exchange_v2.d.ts +0 -2148
  62. package/dist/typechain-types/Exchange_v2.d.ts.map +0 -1
  63. package/dist/typechain-types/KumaStargateForwarder_v1.d.ts +0 -252
  64. package/dist/typechain-types/KumaStargateForwarder_v1.d.ts.map +0 -1
  65. package/dist/typechain-types/KumaStargateForwarder_v1.js +0 -2
  66. package/dist/typechain-types/KumaStargateForwarder_v2.d.ts.map +0 -1
  67. package/dist/typechain-types/KumaStargateForwarder_v2.js +0 -2
  68. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts +0 -359
  69. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.d.ts.map +0 -1
  70. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter__factory.js +0 -471
  71. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts +0 -419
  72. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.d.ts.map +0 -1
  73. package/dist/typechain-types/factories/ExchangeLayerZeroAdapter_v2__factory.js +0 -545
  74. package/dist/typechain-types/factories/Exchange_v2__factory.d.ts +0 -2832
  75. package/dist/typechain-types/factories/Exchange_v2__factory.d.ts.map +0 -1
  76. package/dist/typechain-types/factories/Exchange_v2__factory.js +0 -3636
  77. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts +0 -354
  78. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.d.ts.map +0 -1
  79. package/dist/typechain-types/factories/KumaStargateForwarder_v1__factory.js +0 -464
  80. package/dist/typechain-types/factories/KumaStargateForwarder_v2__factory.d.ts.map +0 -1
  81. /package/dist/typechain-types/{ExchangeLayerZeroAdapter.js → ExchangeLayerZeroAdapter_v1.js} +0 -0
  82. /package/dist/typechain-types/{ExchangeLayerZeroAdapter_v2.js → IVaultComposerSync.js} +0 -0
  83. /package/dist/typechain-types/{ExchangeLayerZeroAdapter_v3.js → KatanaPerpsStargateForwarder_v1.js} +0 -0
  84. /package/dist/{typechain-types/Exchange_v2.js → types/rest/endpoints/GetFundingRateSamples.js} +0 -0
@@ -1,3636 +0,0 @@
1
- "use strict";
2
- /* Autogenerated file. Do not edit manually. */
3
- /* tslint:disable */
4
- /* eslint-disable */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Exchange_v2__factory = void 0;
7
- const ethers_1 = require("ethers");
8
- const _abi = [
9
- {
10
- inputs: [
11
- {
12
- internalType: 'contract IExchange',
13
- name: 'balanceMigrationSource',
14
- type: 'address',
15
- },
16
- {
17
- internalType: 'address',
18
- name: 'exitFundWallet_',
19
- type: 'address',
20
- },
21
- {
22
- internalType: 'address',
23
- name: 'feeWallet_',
24
- type: 'address',
25
- },
26
- {
27
- internalType: 'contract IIndexPriceAdapter[]',
28
- name: 'indexPriceAdapters',
29
- type: 'address[]',
30
- },
31
- {
32
- internalType: 'address',
33
- name: 'insuranceFundWallet_',
34
- type: 'address',
35
- },
36
- {
37
- internalType: 'contract IOraclePriceAdapter',
38
- name: 'oraclePriceAdapter_',
39
- type: 'address',
40
- },
41
- {
42
- internalType: 'address',
43
- name: 'quoteTokenAddress_',
44
- type: 'address',
45
- },
46
- ],
47
- stateMutability: 'nonpayable',
48
- type: 'constructor',
49
- },
50
- {
51
- inputs: [],
52
- name: 'ExitFundCannotHaveOpenPosition',
53
- type: 'error',
54
- },
55
- {
56
- inputs: [],
57
- name: 'ExitFundHasNoPositions',
58
- type: 'error',
59
- },
60
- {
61
- inputs: [],
62
- name: 'InvalidContractAddress',
63
- type: 'error',
64
- },
65
- {
66
- inputs: [],
67
- name: 'InvalidShortString',
68
- type: 'error',
69
- },
70
- {
71
- inputs: [],
72
- name: 'InvalidWalletAddress',
73
- type: 'error',
74
- },
75
- {
76
- inputs: [],
77
- name: 'NewInsuranceFundWalletCannotBeExited',
78
- type: 'error',
79
- },
80
- {
81
- inputs: [],
82
- name: 'NewValueExceedsMaximum',
83
- type: 'error',
84
- },
85
- {
86
- inputs: [],
87
- name: 'NewValueMustBeDifferentFromCurrent',
88
- type: 'error',
89
- },
90
- {
91
- inputs: [],
92
- name: 'SenderMustBeAdmin',
93
- type: 'error',
94
- },
95
- {
96
- inputs: [],
97
- name: 'SenderMustBeAdminOrDispatcher',
98
- type: 'error',
99
- },
100
- {
101
- inputs: [],
102
- name: 'SenderMustBeDispatcher',
103
- type: 'error',
104
- },
105
- {
106
- inputs: [],
107
- name: 'SenderMustBeGovernance',
108
- type: 'error',
109
- },
110
- {
111
- inputs: [],
112
- name: 'SenderMustBeOwner',
113
- type: 'error',
114
- },
115
- {
116
- inputs: [
117
- {
118
- internalType: 'string',
119
- name: 'str',
120
- type: 'string',
121
- },
122
- ],
123
- name: 'StringTooLong',
124
- type: 'error',
125
- },
126
- {
127
- inputs: [],
128
- name: 'UnknownBaseAssetSymbol',
129
- type: 'error',
130
- },
131
- {
132
- inputs: [],
133
- name: 'ValueCanOnlyBetSetOnce',
134
- type: 'error',
135
- },
136
- {
137
- inputs: [],
138
- name: 'WalletCannotBeExited',
139
- type: 'error',
140
- },
141
- {
142
- inputs: [],
143
- name: 'WalletHasNoOverridesForMarket',
144
- type: 'error',
145
- },
146
- {
147
- inputs: [],
148
- name: 'WalletMustBeExited',
149
- type: 'error',
150
- },
151
- {
152
- anonymous: false,
153
- inputs: [
154
- {
155
- indexed: false,
156
- internalType: 'uint256',
157
- name: 'previousValue',
158
- type: 'uint256',
159
- },
160
- {
161
- indexed: false,
162
- internalType: 'uint256',
163
- name: 'newValue',
164
- type: 'uint256',
165
- },
166
- ],
167
- name: 'ChainPropagationPeriodChanged',
168
- type: 'event',
169
- },
170
- {
171
- anonymous: false,
172
- inputs: [
173
- {
174
- indexed: false,
175
- internalType: 'uint256',
176
- name: 'previousValue',
177
- type: 'uint256',
178
- },
179
- {
180
- indexed: false,
181
- internalType: 'uint256',
182
- name: 'newValue',
183
- type: 'uint256',
184
- },
185
- ],
186
- name: 'DelegateKeyExpirationPeriodChanged',
187
- type: 'event',
188
- },
189
- {
190
- anonymous: false,
191
- inputs: [
192
- {
193
- indexed: false,
194
- internalType: 'string',
195
- name: 'baseAssetSymbol',
196
- type: 'string',
197
- },
198
- {
199
- indexed: false,
200
- internalType: 'address',
201
- name: 'counterpartyWallet',
202
- type: 'address',
203
- },
204
- {
205
- indexed: false,
206
- internalType: 'address',
207
- name: 'liquidatingWallet',
208
- type: 'address',
209
- },
210
- {
211
- indexed: false,
212
- internalType: 'uint64',
213
- name: 'liquidationBaseQuantity',
214
- type: 'uint64',
215
- },
216
- {
217
- indexed: false,
218
- internalType: 'uint64',
219
- name: 'liquidationQuoteQuantity',
220
- type: 'uint64',
221
- },
222
- ],
223
- name: 'DeleveragedExitAcquisition',
224
- type: 'event',
225
- },
226
- {
227
- anonymous: false,
228
- inputs: [
229
- {
230
- indexed: false,
231
- internalType: 'string',
232
- name: 'baseAssetSymbol',
233
- type: 'string',
234
- },
235
- {
236
- indexed: false,
237
- internalType: 'address',
238
- name: 'counterpartyWallet',
239
- type: 'address',
240
- },
241
- {
242
- indexed: false,
243
- internalType: 'address',
244
- name: 'exitFundWallet',
245
- type: 'address',
246
- },
247
- {
248
- indexed: false,
249
- internalType: 'uint64',
250
- name: 'liquidationBaseQuantity',
251
- type: 'uint64',
252
- },
253
- {
254
- indexed: false,
255
- internalType: 'uint64',
256
- name: 'liquidationQuoteQuantity',
257
- type: 'uint64',
258
- },
259
- ],
260
- name: 'DeleveragedExitFundClosure',
261
- type: 'event',
262
- },
263
- {
264
- anonymous: false,
265
- inputs: [
266
- {
267
- indexed: false,
268
- internalType: 'string',
269
- name: 'baseAssetSymbol',
270
- type: 'string',
271
- },
272
- {
273
- indexed: false,
274
- internalType: 'address',
275
- name: 'counterpartyWallet',
276
- type: 'address',
277
- },
278
- {
279
- indexed: false,
280
- internalType: 'address',
281
- name: 'liquidatingWallet',
282
- type: 'address',
283
- },
284
- {
285
- indexed: false,
286
- internalType: 'uint64',
287
- name: 'liquidationBaseQuantity',
288
- type: 'uint64',
289
- },
290
- {
291
- indexed: false,
292
- internalType: 'uint64',
293
- name: 'liquidationQuoteQuantity',
294
- type: 'uint64',
295
- },
296
- ],
297
- name: 'DeleveragedInMaintenanceAcquisition',
298
- type: 'event',
299
- },
300
- {
301
- anonymous: false,
302
- inputs: [
303
- {
304
- indexed: false,
305
- internalType: 'string',
306
- name: 'baseAssetSymbol',
307
- type: 'string',
308
- },
309
- {
310
- indexed: false,
311
- internalType: 'address',
312
- name: 'counterpartyWallet',
313
- type: 'address',
314
- },
315
- {
316
- indexed: false,
317
- internalType: 'address',
318
- name: 'insuranceFundWallet',
319
- type: 'address',
320
- },
321
- {
322
- indexed: false,
323
- internalType: 'uint64',
324
- name: 'liquidationBaseQuantity',
325
- type: 'uint64',
326
- },
327
- {
328
- indexed: false,
329
- internalType: 'uint64',
330
- name: 'liquidationQuoteQuantity',
331
- type: 'uint64',
332
- },
333
- ],
334
- name: 'DeleveragedInsuranceFundClosure',
335
- type: 'event',
336
- },
337
- {
338
- anonymous: false,
339
- inputs: [
340
- {
341
- indexed: false,
342
- internalType: 'uint64',
343
- name: 'index',
344
- type: 'uint64',
345
- },
346
- {
347
- indexed: false,
348
- internalType: 'address',
349
- name: 'sourceWallet',
350
- type: 'address',
351
- },
352
- {
353
- indexed: false,
354
- internalType: 'address',
355
- name: 'depositorWallet',
356
- type: 'address',
357
- },
358
- {
359
- indexed: false,
360
- internalType: 'uint64',
361
- name: 'quantity',
362
- type: 'uint64',
363
- },
364
- {
365
- indexed: false,
366
- internalType: 'bool',
367
- name: 'isAssociatedWithManagedAccount',
368
- type: 'bool',
369
- },
370
- ],
371
- name: 'Deposited',
372
- type: 'event',
373
- },
374
- {
375
- anonymous: false,
376
- inputs: [],
377
- name: 'DepositsDisabled',
378
- type: 'event',
379
- },
380
- {
381
- anonymous: false,
382
- inputs: [],
383
- name: 'DepositsEnabled',
384
- type: 'event',
385
- },
386
- {
387
- anonymous: false,
388
- inputs: [
389
- {
390
- indexed: false,
391
- internalType: 'address',
392
- name: 'previousValue',
393
- type: 'address',
394
- },
395
- {
396
- indexed: false,
397
- internalType: 'address',
398
- name: 'newValue',
399
- type: 'address',
400
- },
401
- ],
402
- name: 'DispatcherChanged',
403
- type: 'event',
404
- },
405
- {
406
- anonymous: false,
407
- inputs: [],
408
- name: 'EIP712DomainChanged',
409
- type: 'event',
410
- },
411
- {
412
- anonymous: false,
413
- inputs: [
414
- {
415
- indexed: false,
416
- internalType: 'address',
417
- name: 'previousValue',
418
- type: 'address',
419
- },
420
- {
421
- indexed: false,
422
- internalType: 'address',
423
- name: 'newValue',
424
- type: 'address',
425
- },
426
- ],
427
- name: 'ExitFundWalletChanged',
428
- type: 'event',
429
- },
430
- {
431
- anonymous: false,
432
- inputs: [
433
- {
434
- indexed: false,
435
- internalType: 'address',
436
- name: 'previousValue',
437
- type: 'address',
438
- },
439
- {
440
- indexed: false,
441
- internalType: 'address',
442
- name: 'newValue',
443
- type: 'address',
444
- },
445
- ],
446
- name: 'FeeWalletChanged',
447
- type: 'event',
448
- },
449
- {
450
- anonymous: false,
451
- inputs: [
452
- {
453
- indexed: false,
454
- internalType: 'string',
455
- name: 'baseAssetSymbol',
456
- type: 'string',
457
- },
458
- {
459
- indexed: false,
460
- internalType: 'int64',
461
- name: 'fundingRate',
462
- type: 'int64',
463
- },
464
- ],
465
- name: 'FundingRatePublished',
466
- type: 'event',
467
- },
468
- {
469
- anonymous: false,
470
- inputs: [
471
- {
472
- indexed: false,
473
- internalType: 'string',
474
- name: 'baseAssetSymbol',
475
- type: 'string',
476
- },
477
- {
478
- indexed: false,
479
- internalType: 'uint64',
480
- name: 'timestampInMs',
481
- type: 'uint64',
482
- },
483
- {
484
- indexed: false,
485
- internalType: 'uint64',
486
- name: 'price',
487
- type: 'uint64',
488
- },
489
- ],
490
- name: 'IndexPricePublished',
491
- type: 'event',
492
- },
493
- {
494
- anonymous: false,
495
- inputs: [
496
- {
497
- indexed: false,
498
- internalType: 'string',
499
- name: 'baseAssetSymbol',
500
- type: 'string',
501
- },
502
- {
503
- indexed: false,
504
- internalType: 'address',
505
- name: 'liquidatingWallet',
506
- type: 'address',
507
- },
508
- {
509
- indexed: false,
510
- internalType: 'uint64',
511
- name: 'liquidationBaseQuantity',
512
- type: 'uint64',
513
- },
514
- {
515
- indexed: false,
516
- internalType: 'uint64',
517
- name: 'liquidationQuoteQuantity',
518
- type: 'uint64',
519
- },
520
- ],
521
- name: 'LiquidatedPositionBelowMinimum',
522
- type: 'event',
523
- },
524
- {
525
- anonymous: false,
526
- inputs: [
527
- {
528
- indexed: false,
529
- internalType: 'string',
530
- name: 'baseAssetSymbol',
531
- type: 'string',
532
- },
533
- {
534
- indexed: false,
535
- internalType: 'address',
536
- name: 'liquidatingWallet',
537
- type: 'address',
538
- },
539
- {
540
- indexed: false,
541
- internalType: 'uint64',
542
- name: 'liquidationBaseQuantity',
543
- type: 'uint64',
544
- },
545
- {
546
- indexed: false,
547
- internalType: 'uint64',
548
- name: 'liquidationQuoteQuantity',
549
- type: 'uint64',
550
- },
551
- ],
552
- name: 'LiquidatedPositionInDeactivatedMarket',
553
- type: 'event',
554
- },
555
- {
556
- anonymous: false,
557
- inputs: [
558
- {
559
- indexed: false,
560
- internalType: 'address',
561
- name: 'liquidatingWallet',
562
- type: 'address',
563
- },
564
- ],
565
- name: 'LiquidatedWalletExit',
566
- type: 'event',
567
- },
568
- {
569
- anonymous: false,
570
- inputs: [
571
- {
572
- indexed: false,
573
- internalType: 'address',
574
- name: 'liquidatingWallet',
575
- type: 'address',
576
- },
577
- ],
578
- name: 'LiquidatedWalletInMaintenance',
579
- type: 'event',
580
- },
581
- {
582
- anonymous: false,
583
- inputs: [
584
- {
585
- indexed: false,
586
- internalType: 'address',
587
- name: 'liquidatingWallet',
588
- type: 'address',
589
- },
590
- ],
591
- name: 'LiquidatedWalletInMaintenanceDuringSystemRecovery',
592
- type: 'event',
593
- },
594
- {
595
- anonymous: false,
596
- inputs: [
597
- {
598
- indexed: false,
599
- internalType: 'address',
600
- name: 'buyWallet',
601
- type: 'address',
602
- },
603
- {
604
- indexed: false,
605
- internalType: 'address',
606
- name: 'sellWallet',
607
- type: 'address',
608
- },
609
- {
610
- indexed: false,
611
- internalType: 'string',
612
- name: 'baseAssetSymbol',
613
- type: 'string',
614
- },
615
- {
616
- indexed: false,
617
- internalType: 'string',
618
- name: 'quoteAssetSymbol',
619
- type: 'string',
620
- },
621
- {
622
- indexed: false,
623
- internalType: 'uint64',
624
- name: 'baseQuantity',
625
- type: 'uint64',
626
- },
627
- {
628
- indexed: false,
629
- internalType: 'uint64',
630
- name: 'quoteQuantity',
631
- type: 'uint64',
632
- },
633
- {
634
- indexed: false,
635
- internalType: 'enum OrderSide',
636
- name: 'makerSide',
637
- type: 'uint8',
638
- },
639
- {
640
- indexed: false,
641
- internalType: 'int64',
642
- name: 'makerFeeQuantity',
643
- type: 'int64',
644
- },
645
- {
646
- indexed: false,
647
- internalType: 'uint64',
648
- name: 'takerFeeQuantity',
649
- type: 'uint64',
650
- },
651
- ],
652
- name: 'LiquidationAcquisitionExecuted',
653
- type: 'event',
654
- },
655
- {
656
- anonymous: false,
657
- inputs: [
658
- {
659
- indexed: false,
660
- internalType: 'string',
661
- name: 'baseAssetSymbol',
662
- type: 'string',
663
- },
664
- ],
665
- name: 'MarketActivated',
666
- type: 'event',
667
- },
668
- {
669
- anonymous: false,
670
- inputs: [
671
- {
672
- indexed: false,
673
- internalType: 'string',
674
- name: 'baseAssetSymbol',
675
- type: 'string',
676
- },
677
- ],
678
- name: 'MarketAdded',
679
- type: 'event',
680
- },
681
- {
682
- anonymous: false,
683
- inputs: [
684
- {
685
- indexed: false,
686
- internalType: 'string',
687
- name: 'baseAssetSymbol',
688
- type: 'string',
689
- },
690
- ],
691
- name: 'MarketDeactivated',
692
- type: 'event',
693
- },
694
- {
695
- anonymous: false,
696
- inputs: [
697
- {
698
- indexed: false,
699
- internalType: 'string',
700
- name: 'baseAssetSymbol',
701
- type: 'string',
702
- },
703
- {
704
- indexed: false,
705
- internalType: 'address',
706
- name: 'wallet',
707
- type: 'address',
708
- },
709
- ],
710
- name: 'MarketOverridesUnset',
711
- type: 'event',
712
- },
713
- {
714
- anonymous: false,
715
- inputs: [
716
- {
717
- indexed: false,
718
- internalType: 'address',
719
- name: 'wallet',
720
- type: 'address',
721
- },
722
- {
723
- indexed: false,
724
- internalType: 'uint128',
725
- name: 'nonce',
726
- type: 'uint128',
727
- },
728
- {
729
- indexed: false,
730
- internalType: 'uint128',
731
- name: 'timestampInMs',
732
- type: 'uint128',
733
- },
734
- {
735
- indexed: false,
736
- internalType: 'uint256',
737
- name: 'effectiveBlockTimestamp',
738
- type: 'uint256',
739
- },
740
- ],
741
- name: 'OrderNonceInvalidated',
742
- type: 'event',
743
- },
744
- {
745
- anonymous: false,
746
- inputs: [
747
- {
748
- indexed: false,
749
- internalType: 'address',
750
- name: 'wallet',
751
- type: 'address',
752
- },
753
- {
754
- indexed: false,
755
- internalType: 'uint64',
756
- name: 'quantity',
757
- type: 'uint64',
758
- },
759
- {
760
- indexed: false,
761
- internalType: 'int64',
762
- name: 'newExchangeBalance',
763
- type: 'int64',
764
- },
765
- {
766
- indexed: false,
767
- internalType: 'bool',
768
- name: 'isAssociatedWithManagedAccount',
769
- type: 'bool',
770
- },
771
- ],
772
- name: 'PendingDepositApplied',
773
- type: 'event',
774
- },
775
- {
776
- anonymous: false,
777
- inputs: [
778
- {
779
- indexed: false,
780
- internalType: 'uint256',
781
- name: 'previousValue',
782
- type: 'uint256',
783
- },
784
- {
785
- indexed: false,
786
- internalType: 'uint256',
787
- name: 'newValue',
788
- type: 'uint256',
789
- },
790
- ],
791
- name: 'PositionBelowMinimumLiquidationPriceToleranceMultiplierChanged',
792
- type: 'event',
793
- },
794
- {
795
- anonymous: false,
796
- inputs: [
797
- {
798
- indexed: false,
799
- internalType: 'address',
800
- name: 'previousValue',
801
- type: 'address',
802
- },
803
- {
804
- indexed: false,
805
- internalType: 'address',
806
- name: 'newValue',
807
- type: 'address',
808
- },
809
- ],
810
- name: 'QuoteTokenAddressChanged',
811
- type: 'event',
812
- },
813
- {
814
- anonymous: false,
815
- inputs: [
816
- {
817
- indexed: false,
818
- internalType: 'address',
819
- name: 'buyWallet',
820
- type: 'address',
821
- },
822
- {
823
- indexed: false,
824
- internalType: 'address',
825
- name: 'sellWallet',
826
- type: 'address',
827
- },
828
- {
829
- indexed: false,
830
- internalType: 'string',
831
- name: 'baseAssetSymbol',
832
- type: 'string',
833
- },
834
- {
835
- indexed: false,
836
- internalType: 'string',
837
- name: 'quoteAssetSymbol',
838
- type: 'string',
839
- },
840
- {
841
- indexed: false,
842
- internalType: 'uint64',
843
- name: 'baseQuantity',
844
- type: 'uint64',
845
- },
846
- {
847
- indexed: false,
848
- internalType: 'uint64',
849
- name: 'quoteQuantity',
850
- type: 'uint64',
851
- },
852
- {
853
- indexed: false,
854
- internalType: 'enum OrderSide',
855
- name: 'makerSide',
856
- type: 'uint8',
857
- },
858
- {
859
- indexed: false,
860
- internalType: 'int64',
861
- name: 'makerFeeQuantity',
862
- type: 'int64',
863
- },
864
- {
865
- indexed: false,
866
- internalType: 'uint64',
867
- name: 'takerFeeQuantity',
868
- type: 'uint64',
869
- },
870
- ],
871
- name: 'TradeExecuted',
872
- type: 'event',
873
- },
874
- {
875
- anonymous: false,
876
- inputs: [
877
- {
878
- indexed: false,
879
- internalType: 'address',
880
- name: 'destinationWallet',
881
- type: 'address',
882
- },
883
- {
884
- indexed: false,
885
- internalType: 'address',
886
- name: 'sourceWallet',
887
- type: 'address',
888
- },
889
- {
890
- indexed: false,
891
- internalType: 'uint64',
892
- name: 'quantity',
893
- type: 'uint64',
894
- },
895
- {
896
- indexed: false,
897
- internalType: 'int64',
898
- name: 'newDestinationWalletExchangeBalance',
899
- type: 'int64',
900
- },
901
- {
902
- indexed: false,
903
- internalType: 'int64',
904
- name: 'newSourceWalletExchangeBalance',
905
- type: 'int64',
906
- },
907
- ],
908
- name: 'Transferred',
909
- type: 'event',
910
- },
911
- {
912
- anonymous: false,
913
- inputs: [
914
- {
915
- indexed: false,
916
- internalType: 'address',
917
- name: 'wallet',
918
- type: 'address',
919
- },
920
- ],
921
- name: 'WalletExitCleared',
922
- type: 'event',
923
- },
924
- {
925
- anonymous: false,
926
- inputs: [
927
- {
928
- indexed: false,
929
- internalType: 'address',
930
- name: 'managerWallet',
931
- type: 'address',
932
- },
933
- {
934
- indexed: false,
935
- internalType: 'address',
936
- name: 'depositorWallet',
937
- type: 'address',
938
- },
939
- {
940
- indexed: false,
941
- internalType: 'uint64',
942
- name: 'quantity',
943
- type: 'uint64',
944
- },
945
- ],
946
- name: 'WalletExitFromManagedAccountWithdrawn',
947
- type: 'event',
948
- },
949
- {
950
- anonymous: false,
951
- inputs: [
952
- {
953
- indexed: false,
954
- internalType: 'address',
955
- name: 'wallet',
956
- type: 'address',
957
- },
958
- {
959
- indexed: false,
960
- internalType: 'uint64',
961
- name: 'quantity',
962
- type: 'uint64',
963
- },
964
- ],
965
- name: 'WalletExitWithdrawn',
966
- type: 'event',
967
- },
968
- {
969
- anonymous: false,
970
- inputs: [
971
- {
972
- indexed: false,
973
- internalType: 'address',
974
- name: 'wallet',
975
- type: 'address',
976
- },
977
- {
978
- indexed: false,
979
- internalType: 'uint256',
980
- name: 'effectiveBlockTimestamp',
981
- type: 'uint256',
982
- },
983
- {
984
- indexed: false,
985
- internalType: 'bool',
986
- name: 'isAssociatedWithManagedAccount',
987
- type: 'bool',
988
- },
989
- ],
990
- name: 'WalletExited',
991
- type: 'event',
992
- },
993
- {
994
- anonymous: false,
995
- inputs: [
996
- {
997
- indexed: false,
998
- internalType: 'address',
999
- name: 'wallet',
1000
- type: 'address',
1001
- },
1002
- {
1003
- indexed: false,
1004
- internalType: 'uint64',
1005
- name: 'quantity',
1006
- type: 'uint64',
1007
- },
1008
- {
1009
- indexed: false,
1010
- internalType: 'int64',
1011
- name: 'newExchangeBalance',
1012
- type: 'int64',
1013
- },
1014
- {
1015
- indexed: false,
1016
- internalType: 'bool',
1017
- name: 'isAssociatedWithManagedAccount',
1018
- type: 'bool',
1019
- },
1020
- ],
1021
- name: 'Withdrawn',
1022
- type: 'event',
1023
- },
1024
- {
1025
- inputs: [
1026
- {
1027
- internalType: 'string',
1028
- name: 'baseAssetSymbol',
1029
- type: 'string',
1030
- },
1031
- ],
1032
- name: 'activateMarket',
1033
- outputs: [],
1034
- stateMutability: 'nonpayable',
1035
- type: 'function',
1036
- },
1037
- {
1038
- inputs: [
1039
- {
1040
- components: [
1041
- {
1042
- internalType: 'bool',
1043
- name: 'exists',
1044
- type: 'bool',
1045
- },
1046
- {
1047
- internalType: 'bool',
1048
- name: 'isActive',
1049
- type: 'bool',
1050
- },
1051
- {
1052
- internalType: 'string',
1053
- name: 'baseAssetSymbol',
1054
- type: 'string',
1055
- },
1056
- {
1057
- internalType: 'uint64',
1058
- name: 'indexPriceAtDeactivation',
1059
- type: 'uint64',
1060
- },
1061
- {
1062
- internalType: 'uint64',
1063
- name: 'lastIndexPrice',
1064
- type: 'uint64',
1065
- },
1066
- {
1067
- internalType: 'uint64',
1068
- name: 'lastIndexPriceTimestampInMs',
1069
- type: 'uint64',
1070
- },
1071
- {
1072
- components: [
1073
- {
1074
- internalType: 'uint64',
1075
- name: 'initialMarginFraction',
1076
- type: 'uint64',
1077
- },
1078
- {
1079
- internalType: 'uint64',
1080
- name: 'maintenanceMarginFraction',
1081
- type: 'uint64',
1082
- },
1083
- {
1084
- internalType: 'uint64',
1085
- name: 'incrementalInitialMarginFraction',
1086
- type: 'uint64',
1087
- },
1088
- {
1089
- internalType: 'uint64',
1090
- name: 'baselinePositionSize',
1091
- type: 'uint64',
1092
- },
1093
- {
1094
- internalType: 'uint64',
1095
- name: 'incrementalPositionSize',
1096
- type: 'uint64',
1097
- },
1098
- {
1099
- internalType: 'uint64',
1100
- name: 'maximumPositionSize',
1101
- type: 'uint64',
1102
- },
1103
- {
1104
- internalType: 'uint64',
1105
- name: 'minimumPositionSize',
1106
- type: 'uint64',
1107
- },
1108
- ],
1109
- internalType: 'struct OverridableMarketFields',
1110
- name: 'overridableFields',
1111
- type: 'tuple',
1112
- },
1113
- ],
1114
- internalType: 'struct Market',
1115
- name: 'newMarket',
1116
- type: 'tuple',
1117
- },
1118
- ],
1119
- name: 'addMarket',
1120
- outputs: [],
1121
- stateMutability: 'nonpayable',
1122
- type: 'function',
1123
- },
1124
- {
1125
- inputs: [],
1126
- name: 'adminWallet',
1127
- outputs: [
1128
- {
1129
- internalType: 'address',
1130
- name: '',
1131
- type: 'address',
1132
- },
1133
- ],
1134
- stateMutability: 'view',
1135
- type: 'function',
1136
- },
1137
- {
1138
- inputs: [
1139
- {
1140
- internalType: 'address',
1141
- name: 'wallet',
1142
- type: 'address',
1143
- },
1144
- {
1145
- internalType: 'string',
1146
- name: 'baseAssetSymbol',
1147
- type: 'string',
1148
- },
1149
- ],
1150
- name: 'applyOutstandingWalletFundingForMarket',
1151
- outputs: [],
1152
- stateMutability: 'nonpayable',
1153
- type: 'function',
1154
- },
1155
- {
1156
- inputs: [
1157
- {
1158
- internalType: 'uint64',
1159
- name: 'depositIndex_',
1160
- type: 'uint64',
1161
- },
1162
- {
1163
- internalType: 'uint64',
1164
- name: 'quantity',
1165
- type: 'uint64',
1166
- },
1167
- {
1168
- internalType: 'address',
1169
- name: 'managerWallet',
1170
- type: 'address',
1171
- },
1172
- ],
1173
- name: 'applyPendingDepositForManagedAccount',
1174
- outputs: [],
1175
- stateMutability: 'nonpayable',
1176
- type: 'function',
1177
- },
1178
- {
1179
- inputs: [
1180
- {
1181
- internalType: 'uint64',
1182
- name: 'quantity',
1183
- type: 'uint64',
1184
- },
1185
- {
1186
- internalType: 'address',
1187
- name: 'wallet',
1188
- type: 'address',
1189
- },
1190
- ],
1191
- name: 'applyPendingDepositsForWallet',
1192
- outputs: [],
1193
- stateMutability: 'nonpayable',
1194
- type: 'function',
1195
- },
1196
- {
1197
- inputs: [
1198
- {
1199
- internalType: 'address',
1200
- name: 'managerWallet',
1201
- type: 'address',
1202
- },
1203
- ],
1204
- name: 'associateManagerWalletWithManagedAccount',
1205
- outputs: [],
1206
- stateMutability: 'nonpayable',
1207
- type: 'function',
1208
- },
1209
- {
1210
- inputs: [
1211
- {
1212
- components: [
1213
- {
1214
- internalType: 'enum ManagedAccountWithdrawalType',
1215
- name: 'withdrawalType',
1216
- type: 'uint8',
1217
- },
1218
- {
1219
- components: [
1220
- {
1221
- internalType: 'uint128',
1222
- name: 'nonce',
1223
- type: 'uint128',
1224
- },
1225
- {
1226
- internalType: 'address',
1227
- name: 'managerWallet',
1228
- type: 'address',
1229
- },
1230
- {
1231
- internalType: 'address',
1232
- name: 'depositorWallet',
1233
- type: 'address',
1234
- },
1235
- {
1236
- internalType: 'uint64',
1237
- name: 'grossQuantity',
1238
- type: 'uint64',
1239
- },
1240
- {
1241
- internalType: 'uint64',
1242
- name: 'maxShares',
1243
- type: 'uint64',
1244
- },
1245
- {
1246
- internalType: 'uint64',
1247
- name: 'maximumGasFee',
1248
- type: 'uint64',
1249
- },
1250
- {
1251
- internalType: 'contract IManagedAccountProvider',
1252
- name: 'managedAccountProvider',
1253
- type: 'address',
1254
- },
1255
- {
1256
- internalType: 'bytes',
1257
- name: 'managedAccountProviderPayload',
1258
- type: 'bytes',
1259
- },
1260
- {
1261
- internalType: 'address',
1262
- name: 'bridgeAdapter',
1263
- type: 'address',
1264
- },
1265
- {
1266
- internalType: 'bytes',
1267
- name: 'bridgeAdapterPayload',
1268
- type: 'bytes',
1269
- },
1270
- {
1271
- internalType: 'uint64',
1272
- name: 'gasFee',
1273
- type: 'uint64',
1274
- },
1275
- {
1276
- internalType: 'bytes',
1277
- name: 'walletSignature',
1278
- type: 'bytes',
1279
- },
1280
- ],
1281
- internalType: 'struct WithdrawalFromManagedAccountByQuantity',
1282
- name: 'withdrawalByQuantity',
1283
- type: 'tuple',
1284
- },
1285
- {
1286
- components: [
1287
- {
1288
- internalType: 'uint128',
1289
- name: 'nonce',
1290
- type: 'uint128',
1291
- },
1292
- {
1293
- internalType: 'address',
1294
- name: 'managerWallet',
1295
- type: 'address',
1296
- },
1297
- {
1298
- internalType: 'address',
1299
- name: 'depositorWallet',
1300
- type: 'address',
1301
- },
1302
- {
1303
- internalType: 'uint64',
1304
- name: 'shares',
1305
- type: 'uint64',
1306
- },
1307
- {
1308
- internalType: 'uint64',
1309
- name: 'minimumQuantity',
1310
- type: 'uint64',
1311
- },
1312
- {
1313
- internalType: 'uint64',
1314
- name: 'maximumGasFee',
1315
- type: 'uint64',
1316
- },
1317
- {
1318
- internalType: 'contract IManagedAccountProvider',
1319
- name: 'managedAccountProvider',
1320
- type: 'address',
1321
- },
1322
- {
1323
- internalType: 'bytes',
1324
- name: 'managedAccountProviderPayload',
1325
- type: 'bytes',
1326
- },
1327
- {
1328
- internalType: 'address',
1329
- name: 'bridgeAdapter',
1330
- type: 'address',
1331
- },
1332
- {
1333
- internalType: 'bytes',
1334
- name: 'bridgeAdapterPayload',
1335
- type: 'bytes',
1336
- },
1337
- {
1338
- internalType: 'uint64',
1339
- name: 'gasFee',
1340
- type: 'uint64',
1341
- },
1342
- {
1343
- internalType: 'uint64',
1344
- name: 'grossQuantity',
1345
- type: 'uint64',
1346
- },
1347
- {
1348
- internalType: 'bytes',
1349
- name: 'walletSignature',
1350
- type: 'bytes',
1351
- },
1352
- ],
1353
- internalType: 'struct WithdrawalFromManagedAccountByShares',
1354
- name: 'withdrawalByShares',
1355
- type: 'tuple',
1356
- },
1357
- ],
1358
- internalType: 'struct WithdrawalFromManagedAccount',
1359
- name: 'withdrawal',
1360
- type: 'tuple',
1361
- },
1362
- ],
1363
- name: 'cancelWithdrawalFromManagedAccount',
1364
- outputs: [],
1365
- stateMutability: 'nonpayable',
1366
- type: 'function',
1367
- },
1368
- {
1369
- inputs: [],
1370
- name: 'chainPropagationPeriodInS',
1371
- outputs: [
1372
- {
1373
- internalType: 'uint256',
1374
- name: '',
1375
- type: 'uint256',
1376
- },
1377
- ],
1378
- stateMutability: 'view',
1379
- type: 'function',
1380
- },
1381
- {
1382
- inputs: [],
1383
- name: 'clearWalletExit',
1384
- outputs: [],
1385
- stateMutability: 'nonpayable',
1386
- type: 'function',
1387
- },
1388
- {
1389
- inputs: [],
1390
- name: 'custodian',
1391
- outputs: [
1392
- {
1393
- internalType: 'contract ICustodian',
1394
- name: '',
1395
- type: 'address',
1396
- },
1397
- ],
1398
- stateMutability: 'view',
1399
- type: 'function',
1400
- },
1401
- {
1402
- inputs: [
1403
- {
1404
- internalType: 'string',
1405
- name: 'baseAssetSymbol',
1406
- type: 'string',
1407
- },
1408
- ],
1409
- name: 'deactivateMarket',
1410
- outputs: [],
1411
- stateMutability: 'nonpayable',
1412
- type: 'function',
1413
- },
1414
- {
1415
- inputs: [],
1416
- name: 'delegateKeyExpirationPeriodInMs',
1417
- outputs: [
1418
- {
1419
- internalType: 'uint64',
1420
- name: '',
1421
- type: 'uint64',
1422
- },
1423
- ],
1424
- stateMutability: 'view',
1425
- type: 'function',
1426
- },
1427
- {
1428
- inputs: [
1429
- {
1430
- components: [
1431
- {
1432
- internalType: 'string',
1433
- name: 'baseAssetSymbol',
1434
- type: 'string',
1435
- },
1436
- {
1437
- internalType: 'address',
1438
- name: 'counterpartyWallet',
1439
- type: 'address',
1440
- },
1441
- {
1442
- internalType: 'address',
1443
- name: 'liquidatingWallet',
1444
- type: 'address',
1445
- },
1446
- {
1447
- internalType: 'uint64',
1448
- name: 'liquidationBaseQuantity',
1449
- type: 'uint64',
1450
- },
1451
- {
1452
- internalType: 'uint64',
1453
- name: 'liquidationQuoteQuantity',
1454
- type: 'uint64',
1455
- },
1456
- ],
1457
- internalType: 'struct AcquisitionDeleverageArguments',
1458
- name: 'deleverageArguments',
1459
- type: 'tuple',
1460
- },
1461
- ],
1462
- name: 'deleverageExitAcquisition',
1463
- outputs: [],
1464
- stateMutability: 'nonpayable',
1465
- type: 'function',
1466
- },
1467
- {
1468
- inputs: [
1469
- {
1470
- components: [
1471
- {
1472
- internalType: 'string',
1473
- name: 'baseAssetSymbol',
1474
- type: 'string',
1475
- },
1476
- {
1477
- internalType: 'address',
1478
- name: 'counterpartyWallet',
1479
- type: 'address',
1480
- },
1481
- {
1482
- internalType: 'address',
1483
- name: 'liquidatingWallet',
1484
- type: 'address',
1485
- },
1486
- {
1487
- internalType: 'uint64',
1488
- name: 'liquidationBaseQuantity',
1489
- type: 'uint64',
1490
- },
1491
- {
1492
- internalType: 'uint64',
1493
- name: 'liquidationQuoteQuantity',
1494
- type: 'uint64',
1495
- },
1496
- ],
1497
- internalType: 'struct ClosureDeleverageArguments',
1498
- name: 'deleverageArguments',
1499
- type: 'tuple',
1500
- },
1501
- ],
1502
- name: 'deleverageExitFundClosure',
1503
- outputs: [],
1504
- stateMutability: 'nonpayable',
1505
- type: 'function',
1506
- },
1507
- {
1508
- inputs: [
1509
- {
1510
- components: [
1511
- {
1512
- internalType: 'string',
1513
- name: 'baseAssetSymbol',
1514
- type: 'string',
1515
- },
1516
- {
1517
- internalType: 'address',
1518
- name: 'counterpartyWallet',
1519
- type: 'address',
1520
- },
1521
- {
1522
- internalType: 'address',
1523
- name: 'liquidatingWallet',
1524
- type: 'address',
1525
- },
1526
- {
1527
- internalType: 'uint64',
1528
- name: 'liquidationBaseQuantity',
1529
- type: 'uint64',
1530
- },
1531
- {
1532
- internalType: 'uint64',
1533
- name: 'liquidationQuoteQuantity',
1534
- type: 'uint64',
1535
- },
1536
- ],
1537
- internalType: 'struct AcquisitionDeleverageArguments',
1538
- name: 'deleverageArguments',
1539
- type: 'tuple',
1540
- },
1541
- ],
1542
- name: 'deleverageInMaintenanceAcquisition',
1543
- outputs: [],
1544
- stateMutability: 'nonpayable',
1545
- type: 'function',
1546
- },
1547
- {
1548
- inputs: [
1549
- {
1550
- components: [
1551
- {
1552
- internalType: 'string',
1553
- name: 'baseAssetSymbol',
1554
- type: 'string',
1555
- },
1556
- {
1557
- internalType: 'address',
1558
- name: 'counterpartyWallet',
1559
- type: 'address',
1560
- },
1561
- {
1562
- internalType: 'address',
1563
- name: 'liquidatingWallet',
1564
- type: 'address',
1565
- },
1566
- {
1567
- internalType: 'uint64',
1568
- name: 'liquidationBaseQuantity',
1569
- type: 'uint64',
1570
- },
1571
- {
1572
- internalType: 'uint64',
1573
- name: 'liquidationQuoteQuantity',
1574
- type: 'uint64',
1575
- },
1576
- ],
1577
- internalType: 'struct ClosureDeleverageArguments',
1578
- name: 'deleverageArguments',
1579
- type: 'tuple',
1580
- },
1581
- ],
1582
- name: 'deleverageInsuranceFundClosure',
1583
- outputs: [],
1584
- stateMutability: 'nonpayable',
1585
- type: 'function',
1586
- },
1587
- {
1588
- inputs: [
1589
- {
1590
- internalType: 'uint256',
1591
- name: 'quantityInAssetUnits',
1592
- type: 'uint256',
1593
- },
1594
- {
1595
- internalType: 'address',
1596
- name: 'depositorWallet',
1597
- type: 'address',
1598
- },
1599
- ],
1600
- name: 'deposit',
1601
- outputs: [],
1602
- stateMutability: 'nonpayable',
1603
- type: 'function',
1604
- },
1605
- {
1606
- inputs: [],
1607
- name: 'depositIndex',
1608
- outputs: [
1609
- {
1610
- internalType: 'uint64',
1611
- name: '',
1612
- type: 'uint64',
1613
- },
1614
- ],
1615
- stateMutability: 'view',
1616
- type: 'function',
1617
- },
1618
- {
1619
- inputs: [
1620
- {
1621
- internalType: 'uint256',
1622
- name: 'quantityInAssetUnits',
1623
- type: 'uint256',
1624
- },
1625
- {
1626
- internalType: 'address',
1627
- name: 'depositorWallet',
1628
- type: 'address',
1629
- },
1630
- {
1631
- internalType: 'contract IManagedAccountProvider',
1632
- name: 'managedAccountProvider',
1633
- type: 'address',
1634
- },
1635
- {
1636
- internalType: 'bytes',
1637
- name: 'managedAccountProviderPayload',
1638
- type: 'bytes',
1639
- },
1640
- {
1641
- internalType: 'address',
1642
- name: 'managerWallet',
1643
- type: 'address',
1644
- },
1645
- ],
1646
- name: 'depositToManagedAccount',
1647
- outputs: [],
1648
- stateMutability: 'nonpayable',
1649
- type: 'function',
1650
- },
1651
- {
1652
- inputs: [],
1653
- name: 'dispatcherWallet',
1654
- outputs: [
1655
- {
1656
- internalType: 'address',
1657
- name: '',
1658
- type: 'address',
1659
- },
1660
- ],
1661
- stateMutability: 'view',
1662
- type: 'function',
1663
- },
1664
- {
1665
- inputs: [],
1666
- name: 'domainSeparatorV4',
1667
- outputs: [
1668
- {
1669
- internalType: 'bytes32',
1670
- name: '',
1671
- type: 'bytes32',
1672
- },
1673
- ],
1674
- stateMutability: 'view',
1675
- type: 'function',
1676
- },
1677
- {
1678
- inputs: [],
1679
- name: 'eip712Domain',
1680
- outputs: [
1681
- {
1682
- internalType: 'bytes1',
1683
- name: 'fields',
1684
- type: 'bytes1',
1685
- },
1686
- {
1687
- internalType: 'string',
1688
- name: 'name',
1689
- type: 'string',
1690
- },
1691
- {
1692
- internalType: 'string',
1693
- name: 'version',
1694
- type: 'string',
1695
- },
1696
- {
1697
- internalType: 'uint256',
1698
- name: 'chainId',
1699
- type: 'uint256',
1700
- },
1701
- {
1702
- internalType: 'address',
1703
- name: 'verifyingContract',
1704
- type: 'address',
1705
- },
1706
- {
1707
- internalType: 'bytes32',
1708
- name: 'salt',
1709
- type: 'bytes32',
1710
- },
1711
- {
1712
- internalType: 'uint256[]',
1713
- name: 'extensions',
1714
- type: 'uint256[]',
1715
- },
1716
- ],
1717
- stateMutability: 'view',
1718
- type: 'function',
1719
- },
1720
- {
1721
- inputs: [
1722
- {
1723
- components: [
1724
- {
1725
- internalType: 'string',
1726
- name: 'baseAssetSymbol',
1727
- type: 'string',
1728
- },
1729
- {
1730
- internalType: 'uint64',
1731
- name: 'baseQuantity',
1732
- type: 'uint64',
1733
- },
1734
- {
1735
- internalType: 'uint64',
1736
- name: 'quoteQuantity',
1737
- type: 'uint64',
1738
- },
1739
- {
1740
- internalType: 'int64',
1741
- name: 'makerFeeQuantity',
1742
- type: 'int64',
1743
- },
1744
- {
1745
- internalType: 'uint64',
1746
- name: 'takerFeeQuantity',
1747
- type: 'uint64',
1748
- },
1749
- {
1750
- internalType: 'uint64',
1751
- name: 'price',
1752
- type: 'uint64',
1753
- },
1754
- {
1755
- internalType: 'enum OrderSide',
1756
- name: 'makerSide',
1757
- type: 'uint8',
1758
- },
1759
- ],
1760
- internalType: 'struct Trade',
1761
- name: 'trade',
1762
- type: 'tuple',
1763
- },
1764
- {
1765
- components: [
1766
- {
1767
- internalType: 'uint128',
1768
- name: 'nonce',
1769
- type: 'uint128',
1770
- },
1771
- {
1772
- internalType: 'address',
1773
- name: 'wallet',
1774
- type: 'address',
1775
- },
1776
- {
1777
- internalType: 'enum OrderType',
1778
- name: 'orderType',
1779
- type: 'uint8',
1780
- },
1781
- {
1782
- internalType: 'enum OrderSide',
1783
- name: 'side',
1784
- type: 'uint8',
1785
- },
1786
- {
1787
- internalType: 'uint64',
1788
- name: 'quantity',
1789
- type: 'uint64',
1790
- },
1791
- {
1792
- internalType: 'uint64',
1793
- name: 'limitPrice',
1794
- type: 'uint64',
1795
- },
1796
- {
1797
- internalType: 'uint64',
1798
- name: 'triggerPrice',
1799
- type: 'uint64',
1800
- },
1801
- {
1802
- internalType: 'enum OrderTriggerType',
1803
- name: 'triggerType',
1804
- type: 'uint8',
1805
- },
1806
- {
1807
- internalType: 'uint64',
1808
- name: 'callbackRate',
1809
- type: 'uint64',
1810
- },
1811
- {
1812
- internalType: 'uint128',
1813
- name: 'conditionalOrderId',
1814
- type: 'uint128',
1815
- },
1816
- {
1817
- internalType: 'bool',
1818
- name: 'isReduceOnly',
1819
- type: 'bool',
1820
- },
1821
- {
1822
- internalType: 'enum OrderTimeInForce',
1823
- name: 'timeInForce',
1824
- type: 'uint8',
1825
- },
1826
- {
1827
- internalType: 'enum OrderSelfTradePrevention',
1828
- name: 'selfTradePrevention',
1829
- type: 'uint8',
1830
- },
1831
- {
1832
- internalType: 'bool',
1833
- name: 'isLiquidationAcquisitionOnly',
1834
- type: 'bool',
1835
- },
1836
- {
1837
- internalType: 'bool',
1838
- name: 'isSignedByDelegatedKey',
1839
- type: 'bool',
1840
- },
1841
- {
1842
- components: [
1843
- {
1844
- internalType: 'uint128',
1845
- name: 'nonce',
1846
- type: 'uint128',
1847
- },
1848
- {
1849
- internalType: 'address',
1850
- name: 'delegatedPublicKey',
1851
- type: 'address',
1852
- },
1853
- {
1854
- internalType: 'bytes',
1855
- name: 'signature',
1856
- type: 'bytes',
1857
- },
1858
- ],
1859
- internalType: 'struct DelegatedKeyAuthorization',
1860
- name: 'delegatedKeyAuthorization',
1861
- type: 'tuple',
1862
- },
1863
- {
1864
- internalType: 'string',
1865
- name: 'clientOrderId',
1866
- type: 'string',
1867
- },
1868
- {
1869
- internalType: 'bytes',
1870
- name: 'walletSignature',
1871
- type: 'bytes',
1872
- },
1873
- ],
1874
- internalType: 'struct Order',
1875
- name: 'buy',
1876
- type: 'tuple',
1877
- },
1878
- {
1879
- components: [
1880
- {
1881
- internalType: 'uint128',
1882
- name: 'nonce',
1883
- type: 'uint128',
1884
- },
1885
- {
1886
- internalType: 'address',
1887
- name: 'wallet',
1888
- type: 'address',
1889
- },
1890
- {
1891
- internalType: 'enum OrderType',
1892
- name: 'orderType',
1893
- type: 'uint8',
1894
- },
1895
- {
1896
- internalType: 'enum OrderSide',
1897
- name: 'side',
1898
- type: 'uint8',
1899
- },
1900
- {
1901
- internalType: 'uint64',
1902
- name: 'quantity',
1903
- type: 'uint64',
1904
- },
1905
- {
1906
- internalType: 'uint64',
1907
- name: 'limitPrice',
1908
- type: 'uint64',
1909
- },
1910
- {
1911
- internalType: 'uint64',
1912
- name: 'triggerPrice',
1913
- type: 'uint64',
1914
- },
1915
- {
1916
- internalType: 'enum OrderTriggerType',
1917
- name: 'triggerType',
1918
- type: 'uint8',
1919
- },
1920
- {
1921
- internalType: 'uint64',
1922
- name: 'callbackRate',
1923
- type: 'uint64',
1924
- },
1925
- {
1926
- internalType: 'uint128',
1927
- name: 'conditionalOrderId',
1928
- type: 'uint128',
1929
- },
1930
- {
1931
- internalType: 'bool',
1932
- name: 'isReduceOnly',
1933
- type: 'bool',
1934
- },
1935
- {
1936
- internalType: 'enum OrderTimeInForce',
1937
- name: 'timeInForce',
1938
- type: 'uint8',
1939
- },
1940
- {
1941
- internalType: 'enum OrderSelfTradePrevention',
1942
- name: 'selfTradePrevention',
1943
- type: 'uint8',
1944
- },
1945
- {
1946
- internalType: 'bool',
1947
- name: 'isLiquidationAcquisitionOnly',
1948
- type: 'bool',
1949
- },
1950
- {
1951
- internalType: 'bool',
1952
- name: 'isSignedByDelegatedKey',
1953
- type: 'bool',
1954
- },
1955
- {
1956
- components: [
1957
- {
1958
- internalType: 'uint128',
1959
- name: 'nonce',
1960
- type: 'uint128',
1961
- },
1962
- {
1963
- internalType: 'address',
1964
- name: 'delegatedPublicKey',
1965
- type: 'address',
1966
- },
1967
- {
1968
- internalType: 'bytes',
1969
- name: 'signature',
1970
- type: 'bytes',
1971
- },
1972
- ],
1973
- internalType: 'struct DelegatedKeyAuthorization',
1974
- name: 'delegatedKeyAuthorization',
1975
- type: 'tuple',
1976
- },
1977
- {
1978
- internalType: 'string',
1979
- name: 'clientOrderId',
1980
- type: 'string',
1981
- },
1982
- {
1983
- internalType: 'bytes',
1984
- name: 'walletSignature',
1985
- type: 'bytes',
1986
- },
1987
- ],
1988
- internalType: 'struct Order',
1989
- name: 'sell',
1990
- type: 'tuple',
1991
- },
1992
- ],
1993
- name: 'executeTrade',
1994
- outputs: [],
1995
- stateMutability: 'nonpayable',
1996
- type: 'function',
1997
- },
1998
- {
1999
- inputs: [],
2000
- name: 'exitFundPositionOpenedAtBlockTimestamp',
2001
- outputs: [
2002
- {
2003
- internalType: 'uint256',
2004
- name: '',
2005
- type: 'uint256',
2006
- },
2007
- ],
2008
- stateMutability: 'view',
2009
- type: 'function',
2010
- },
2011
- {
2012
- inputs: [],
2013
- name: 'exitFundWallet',
2014
- outputs: [
2015
- {
2016
- internalType: 'address',
2017
- name: '',
2018
- type: 'address',
2019
- },
2020
- ],
2021
- stateMutability: 'view',
2022
- type: 'function',
2023
- },
2024
- {
2025
- inputs: [
2026
- {
2027
- internalType: 'address',
2028
- name: 'wallet',
2029
- type: 'address',
2030
- },
2031
- ],
2032
- name: 'exitWallet',
2033
- outputs: [],
2034
- stateMutability: 'nonpayable',
2035
- type: 'function',
2036
- },
2037
- {
2038
- inputs: [],
2039
- name: 'feeWallet',
2040
- outputs: [
2041
- {
2042
- internalType: 'address',
2043
- name: '',
2044
- type: 'address',
2045
- },
2046
- ],
2047
- stateMutability: 'view',
2048
- type: 'function',
2049
- },
2050
- {
2051
- inputs: [
2052
- {
2053
- internalType: 'string',
2054
- name: '',
2055
- type: 'string',
2056
- },
2057
- {
2058
- internalType: 'uint256',
2059
- name: '',
2060
- type: 'uint256',
2061
- },
2062
- ],
2063
- name: 'fundingMultipliersByBaseAssetSymbol',
2064
- outputs: [
2065
- {
2066
- internalType: 'int64',
2067
- name: 'fundingMultiplier0',
2068
- type: 'int64',
2069
- },
2070
- {
2071
- internalType: 'int64',
2072
- name: 'fundingMultiplier1',
2073
- type: 'int64',
2074
- },
2075
- {
2076
- internalType: 'int64',
2077
- name: 'fundingMultiplier2',
2078
- type: 'int64',
2079
- },
2080
- {
2081
- internalType: 'int64',
2082
- name: 'fundingMultiplier3',
2083
- type: 'int64',
2084
- },
2085
- ],
2086
- stateMutability: 'view',
2087
- type: 'function',
2088
- },
2089
- {
2090
- inputs: [],
2091
- name: 'insuranceFundWallet',
2092
- outputs: [
2093
- {
2094
- internalType: 'address',
2095
- name: '',
2096
- type: 'address',
2097
- },
2098
- ],
2099
- stateMutability: 'view',
2100
- type: 'function',
2101
- },
2102
- {
2103
- inputs: [
2104
- {
2105
- internalType: 'uint128',
2106
- name: 'nonce',
2107
- type: 'uint128',
2108
- },
2109
- ],
2110
- name: 'invalidateNonce',
2111
- outputs: [],
2112
- stateMutability: 'nonpayable',
2113
- type: 'function',
2114
- },
2115
- {
2116
- inputs: [],
2117
- name: 'isDepositEnabled',
2118
- outputs: [
2119
- {
2120
- internalType: 'bool',
2121
- name: '',
2122
- type: 'bool',
2123
- },
2124
- ],
2125
- stateMutability: 'view',
2126
- type: 'function',
2127
- },
2128
- {
2129
- inputs: [
2130
- {
2131
- internalType: 'string',
2132
- name: '',
2133
- type: 'string',
2134
- },
2135
- ],
2136
- name: 'lastFundingRatePublishTimestampInMsByBaseAssetSymbol',
2137
- outputs: [
2138
- {
2139
- internalType: 'uint64',
2140
- name: '',
2141
- type: 'uint64',
2142
- },
2143
- ],
2144
- stateMutability: 'view',
2145
- type: 'function',
2146
- },
2147
- {
2148
- inputs: [
2149
- {
2150
- components: [
2151
- {
2152
- internalType: 'string',
2153
- name: 'baseAssetSymbol',
2154
- type: 'string',
2155
- },
2156
- {
2157
- internalType: 'address',
2158
- name: 'liquidatingWallet',
2159
- type: 'address',
2160
- },
2161
- {
2162
- internalType: 'uint64',
2163
- name: 'liquidationQuoteQuantity',
2164
- type: 'uint64',
2165
- },
2166
- ],
2167
- internalType: 'struct PositionBelowMinimumLiquidationArguments',
2168
- name: 'liquidationArguments',
2169
- type: 'tuple',
2170
- },
2171
- ],
2172
- name: 'liquidatePositionBelowMinimum',
2173
- outputs: [],
2174
- stateMutability: 'nonpayable',
2175
- type: 'function',
2176
- },
2177
- {
2178
- inputs: [
2179
- {
2180
- components: [
2181
- {
2182
- internalType: 'string',
2183
- name: 'baseAssetSymbol',
2184
- type: 'string',
2185
- },
2186
- {
2187
- internalType: 'uint64',
2188
- name: 'feeQuantity',
2189
- type: 'uint64',
2190
- },
2191
- {
2192
- internalType: 'address',
2193
- name: 'liquidatingWallet',
2194
- type: 'address',
2195
- },
2196
- {
2197
- internalType: 'uint64',
2198
- name: 'liquidationQuoteQuantity',
2199
- type: 'uint64',
2200
- },
2201
- ],
2202
- internalType: 'struct PositionInDeactivatedMarketLiquidationArguments',
2203
- name: 'liquidationArguments',
2204
- type: 'tuple',
2205
- },
2206
- ],
2207
- name: 'liquidatePositionInDeactivatedMarket',
2208
- outputs: [],
2209
- stateMutability: 'nonpayable',
2210
- type: 'function',
2211
- },
2212
- {
2213
- inputs: [
2214
- {
2215
- components: [
2216
- {
2217
- internalType: 'address',
2218
- name: 'counterpartyWallet',
2219
- type: 'address',
2220
- },
2221
- {
2222
- internalType: 'address',
2223
- name: 'liquidatingWallet',
2224
- type: 'address',
2225
- },
2226
- {
2227
- internalType: 'uint64[]',
2228
- name: 'liquidationQuoteQuantities',
2229
- type: 'uint64[]',
2230
- },
2231
- ],
2232
- internalType: 'struct WalletLiquidationArguments',
2233
- name: 'liquidationArguments',
2234
- type: 'tuple',
2235
- },
2236
- ],
2237
- name: 'liquidateWalletExit',
2238
- outputs: [],
2239
- stateMutability: 'nonpayable',
2240
- type: 'function',
2241
- },
2242
- {
2243
- inputs: [
2244
- {
2245
- components: [
2246
- {
2247
- internalType: 'address',
2248
- name: 'counterpartyWallet',
2249
- type: 'address',
2250
- },
2251
- {
2252
- internalType: 'address',
2253
- name: 'liquidatingWallet',
2254
- type: 'address',
2255
- },
2256
- {
2257
- internalType: 'uint64[]',
2258
- name: 'liquidationQuoteQuantities',
2259
- type: 'uint64[]',
2260
- },
2261
- ],
2262
- internalType: 'struct WalletLiquidationArguments',
2263
- name: 'liquidationArguments',
2264
- type: 'tuple',
2265
- },
2266
- ],
2267
- name: 'liquidateWalletInMaintenance',
2268
- outputs: [],
2269
- stateMutability: 'nonpayable',
2270
- type: 'function',
2271
- },
2272
- {
2273
- inputs: [
2274
- {
2275
- components: [
2276
- {
2277
- internalType: 'address',
2278
- name: 'counterpartyWallet',
2279
- type: 'address',
2280
- },
2281
- {
2282
- internalType: 'address',
2283
- name: 'liquidatingWallet',
2284
- type: 'address',
2285
- },
2286
- {
2287
- internalType: 'uint64[]',
2288
- name: 'liquidationQuoteQuantities',
2289
- type: 'uint64[]',
2290
- },
2291
- ],
2292
- internalType: 'struct WalletLiquidationArguments',
2293
- name: 'liquidationArguments',
2294
- type: 'tuple',
2295
- },
2296
- ],
2297
- name: 'liquidateWalletInMaintenanceDuringSystemRecovery',
2298
- outputs: [],
2299
- stateMutability: 'nonpayable',
2300
- type: 'function',
2301
- },
2302
- {
2303
- inputs: [
2304
- {
2305
- internalType: 'address',
2306
- name: 'wallet',
2307
- type: 'address',
2308
- },
2309
- {
2310
- internalType: 'string',
2311
- name: 'assetSymbol',
2312
- type: 'string',
2313
- },
2314
- ],
2315
- name: 'loadBalanceBySymbol',
2316
- outputs: [
2317
- {
2318
- internalType: 'int64',
2319
- name: '',
2320
- type: 'int64',
2321
- },
2322
- ],
2323
- stateMutability: 'view',
2324
- type: 'function',
2325
- },
2326
- {
2327
- inputs: [
2328
- {
2329
- internalType: 'address',
2330
- name: 'wallet',
2331
- type: 'address',
2332
- },
2333
- {
2334
- internalType: 'string',
2335
- name: 'assetSymbol',
2336
- type: 'string',
2337
- },
2338
- ],
2339
- name: 'loadBalanceStructBySymbol',
2340
- outputs: [
2341
- {
2342
- components: [
2343
- {
2344
- internalType: 'bool',
2345
- name: 'isMigrated',
2346
- type: 'bool',
2347
- },
2348
- {
2349
- internalType: 'contract IManagedAccountProvider',
2350
- name: 'managedAccountProvider',
2351
- type: 'address',
2352
- },
2353
- {
2354
- internalType: 'int64',
2355
- name: 'balance',
2356
- type: 'int64',
2357
- },
2358
- {
2359
- internalType: 'int64',
2360
- name: 'costBasis',
2361
- type: 'int64',
2362
- },
2363
- {
2364
- internalType: 'uint64',
2365
- name: 'lastUpdateTimestampInMs',
2366
- type: 'uint64',
2367
- },
2368
- ],
2369
- internalType: 'struct Balance',
2370
- name: '',
2371
- type: 'tuple',
2372
- },
2373
- ],
2374
- stateMutability: 'view',
2375
- type: 'function',
2376
- },
2377
- {
2378
- inputs: [
2379
- {
2380
- internalType: 'address',
2381
- name: 'wallet',
2382
- type: 'address',
2383
- },
2384
- ],
2385
- name: 'loadBaseAssetSymbolsWithOpenPositionsByWallet',
2386
- outputs: [
2387
- {
2388
- internalType: 'string[]',
2389
- name: '',
2390
- type: 'string[]',
2391
- },
2392
- ],
2393
- stateMutability: 'view',
2394
- type: 'function',
2395
- },
2396
- {
2397
- inputs: [
2398
- {
2399
- internalType: 'uint8',
2400
- name: 'index',
2401
- type: 'uint8',
2402
- },
2403
- ],
2404
- name: 'loadBridgeAdapter',
2405
- outputs: [
2406
- {
2407
- internalType: 'contract IBridgeAdapter',
2408
- name: '',
2409
- type: 'address',
2410
- },
2411
- ],
2412
- stateMutability: 'view',
2413
- type: 'function',
2414
- },
2415
- {
2416
- inputs: [],
2417
- name: 'loadBridgeAdaptersLength',
2418
- outputs: [
2419
- {
2420
- internalType: 'uint256',
2421
- name: '',
2422
- type: 'uint256',
2423
- },
2424
- ],
2425
- stateMutability: 'view',
2426
- type: 'function',
2427
- },
2428
- {
2429
- inputs: [],
2430
- name: 'loadIndexPriceAdaptersLength',
2431
- outputs: [
2432
- {
2433
- internalType: 'uint256',
2434
- name: '',
2435
- type: 'uint256',
2436
- },
2437
- ],
2438
- stateMutability: 'view',
2439
- type: 'function',
2440
- },
2441
- {
2442
- inputs: [
2443
- {
2444
- internalType: 'uint8',
2445
- name: 'index',
2446
- type: 'uint8',
2447
- },
2448
- ],
2449
- name: 'loadIndexPriceAdaptersProvider',
2450
- outputs: [
2451
- {
2452
- internalType: 'contract IIndexPriceAdapter',
2453
- name: '',
2454
- type: 'address',
2455
- },
2456
- ],
2457
- stateMutability: 'view',
2458
- type: 'function',
2459
- },
2460
- {
2461
- inputs: [
2462
- {
2463
- internalType: 'address',
2464
- name: 'wallet',
2465
- type: 'address',
2466
- },
2467
- ],
2468
- name: 'loadLastNonceInvalidationForWallet',
2469
- outputs: [
2470
- {
2471
- components: [
2472
- {
2473
- internalType: 'uint64',
2474
- name: 'timestampInMs',
2475
- type: 'uint64',
2476
- },
2477
- {
2478
- internalType: 'uint256',
2479
- name: 'effectiveBlockTimestamp',
2480
- type: 'uint256',
2481
- },
2482
- ],
2483
- internalType: 'struct NonceInvalidation',
2484
- name: 'nonceInvalidation',
2485
- type: 'tuple',
2486
- },
2487
- ],
2488
- stateMutability: 'view',
2489
- type: 'function',
2490
- },
2491
- {
2492
- inputs: [
2493
- {
2494
- internalType: 'uint8',
2495
- name: 'index',
2496
- type: 'uint8',
2497
- },
2498
- ],
2499
- name: 'loadManagedAccountProvider',
2500
- outputs: [
2501
- {
2502
- internalType: 'contract IManagedAccountProvider',
2503
- name: '',
2504
- type: 'address',
2505
- },
2506
- ],
2507
- stateMutability: 'view',
2508
- type: 'function',
2509
- },
2510
- {
2511
- inputs: [],
2512
- name: 'loadManagedAccountProvidersLength',
2513
- outputs: [
2514
- {
2515
- internalType: 'uint256',
2516
- name: '',
2517
- type: 'uint256',
2518
- },
2519
- ],
2520
- stateMutability: 'view',
2521
- type: 'function',
2522
- },
2523
- {
2524
- inputs: [
2525
- {
2526
- internalType: 'uint8',
2527
- name: 'index',
2528
- type: 'uint8',
2529
- },
2530
- ],
2531
- name: 'loadMarket',
2532
- outputs: [
2533
- {
2534
- components: [
2535
- {
2536
- internalType: 'bool',
2537
- name: 'exists',
2538
- type: 'bool',
2539
- },
2540
- {
2541
- internalType: 'bool',
2542
- name: 'isActive',
2543
- type: 'bool',
2544
- },
2545
- {
2546
- internalType: 'string',
2547
- name: 'baseAssetSymbol',
2548
- type: 'string',
2549
- },
2550
- {
2551
- internalType: 'uint64',
2552
- name: 'indexPriceAtDeactivation',
2553
- type: 'uint64',
2554
- },
2555
- {
2556
- internalType: 'uint64',
2557
- name: 'lastIndexPrice',
2558
- type: 'uint64',
2559
- },
2560
- {
2561
- internalType: 'uint64',
2562
- name: 'lastIndexPriceTimestampInMs',
2563
- type: 'uint64',
2564
- },
2565
- {
2566
- components: [
2567
- {
2568
- internalType: 'uint64',
2569
- name: 'initialMarginFraction',
2570
- type: 'uint64',
2571
- },
2572
- {
2573
- internalType: 'uint64',
2574
- name: 'maintenanceMarginFraction',
2575
- type: 'uint64',
2576
- },
2577
- {
2578
- internalType: 'uint64',
2579
- name: 'incrementalInitialMarginFraction',
2580
- type: 'uint64',
2581
- },
2582
- {
2583
- internalType: 'uint64',
2584
- name: 'baselinePositionSize',
2585
- type: 'uint64',
2586
- },
2587
- {
2588
- internalType: 'uint64',
2589
- name: 'incrementalPositionSize',
2590
- type: 'uint64',
2591
- },
2592
- {
2593
- internalType: 'uint64',
2594
- name: 'maximumPositionSize',
2595
- type: 'uint64',
2596
- },
2597
- {
2598
- internalType: 'uint64',
2599
- name: 'minimumPositionSize',
2600
- type: 'uint64',
2601
- },
2602
- ],
2603
- internalType: 'struct OverridableMarketFields',
2604
- name: 'overridableFields',
2605
- type: 'tuple',
2606
- },
2607
- ],
2608
- internalType: 'struct Market',
2609
- name: '',
2610
- type: 'tuple',
2611
- },
2612
- ],
2613
- stateMutability: 'view',
2614
- type: 'function',
2615
- },
2616
- {
2617
- inputs: [],
2618
- name: 'loadMarketsLength',
2619
- outputs: [
2620
- {
2621
- internalType: 'uint256',
2622
- name: '',
2623
- type: 'uint256',
2624
- },
2625
- ],
2626
- stateMutability: 'view',
2627
- type: 'function',
2628
- },
2629
- {
2630
- inputs: [
2631
- {
2632
- internalType: 'address',
2633
- name: 'wallet',
2634
- type: 'address',
2635
- },
2636
- ],
2637
- name: 'loadOutstandingWalletFunding',
2638
- outputs: [
2639
- {
2640
- internalType: 'int64',
2641
- name: '',
2642
- type: 'int64',
2643
- },
2644
- ],
2645
- stateMutability: 'view',
2646
- type: 'function',
2647
- },
2648
- {
2649
- inputs: [
2650
- {
2651
- internalType: 'address',
2652
- name: 'wallet',
2653
- type: 'address',
2654
- },
2655
- ],
2656
- name: 'loadQuoteQuantityAvailableForExitWithdrawal',
2657
- outputs: [
2658
- {
2659
- internalType: 'int64',
2660
- name: '',
2661
- type: 'int64',
2662
- },
2663
- ],
2664
- stateMutability: 'view',
2665
- type: 'function',
2666
- },
2667
- {
2668
- inputs: [
2669
- {
2670
- internalType: 'address',
2671
- name: 'wallet',
2672
- type: 'address',
2673
- },
2674
- ],
2675
- name: 'loadTotalAccountValueFromIndexPrices',
2676
- outputs: [
2677
- {
2678
- internalType: 'int64',
2679
- name: '',
2680
- type: 'int64',
2681
- },
2682
- ],
2683
- stateMutability: 'view',
2684
- type: 'function',
2685
- },
2686
- {
2687
- inputs: [
2688
- {
2689
- internalType: 'address',
2690
- name: 'wallet',
2691
- type: 'address',
2692
- },
2693
- ],
2694
- name: 'loadTotalAccountValueFromOraclePrices',
2695
- outputs: [
2696
- {
2697
- internalType: 'int64',
2698
- name: '',
2699
- type: 'int64',
2700
- },
2701
- ],
2702
- stateMutability: 'view',
2703
- type: 'function',
2704
- },
2705
- {
2706
- inputs: [
2707
- {
2708
- internalType: 'address',
2709
- name: 'wallet',
2710
- type: 'address',
2711
- },
2712
- ],
2713
- name: 'loadTotalInitialMarginRequirementFromIndexPrices',
2714
- outputs: [
2715
- {
2716
- internalType: 'uint64',
2717
- name: '',
2718
- type: 'uint64',
2719
- },
2720
- ],
2721
- stateMutability: 'view',
2722
- type: 'function',
2723
- },
2724
- {
2725
- inputs: [
2726
- {
2727
- internalType: 'address',
2728
- name: 'wallet',
2729
- type: 'address',
2730
- },
2731
- ],
2732
- name: 'loadTotalInitialMarginRequirementFromOraclePrices',
2733
- outputs: [
2734
- {
2735
- internalType: 'uint64',
2736
- name: '',
2737
- type: 'uint64',
2738
- },
2739
- ],
2740
- stateMutability: 'view',
2741
- type: 'function',
2742
- },
2743
- {
2744
- inputs: [
2745
- {
2746
- internalType: 'address',
2747
- name: 'wallet',
2748
- type: 'address',
2749
- },
2750
- ],
2751
- name: 'loadTotalMaintenanceMarginRequirementFromIndexPrices',
2752
- outputs: [
2753
- {
2754
- internalType: 'uint64',
2755
- name: '',
2756
- type: 'uint64',
2757
- },
2758
- ],
2759
- stateMutability: 'view',
2760
- type: 'function',
2761
- },
2762
- {
2763
- inputs: [
2764
- {
2765
- internalType: 'address',
2766
- name: 'wallet',
2767
- type: 'address',
2768
- },
2769
- ],
2770
- name: 'loadTotalMaintenanceMarginRequirementFromOraclePrices',
2771
- outputs: [
2772
- {
2773
- internalType: 'uint64',
2774
- name: '',
2775
- type: 'uint64',
2776
- },
2777
- ],
2778
- stateMutability: 'view',
2779
- type: 'function',
2780
- },
2781
- {
2782
- inputs: [
2783
- {
2784
- internalType: 'address',
2785
- name: 'wallet',
2786
- type: 'address',
2787
- },
2788
- ],
2789
- name: 'loadWalletExitStatus',
2790
- outputs: [
2791
- {
2792
- components: [
2793
- {
2794
- internalType: 'bool',
2795
- name: 'exists',
2796
- type: 'bool',
2797
- },
2798
- {
2799
- internalType: 'uint64',
2800
- name: 'effectiveBlockTimestamp',
2801
- type: 'uint64',
2802
- },
2803
- {
2804
- internalType: 'enum WalletExitAcquisitionDeleveragePriceStrategy',
2805
- name: 'deleveragePriceStrategy',
2806
- type: 'uint8',
2807
- },
2808
- ],
2809
- internalType: 'struct WalletExit',
2810
- name: '',
2811
- type: 'tuple',
2812
- },
2813
- ],
2814
- stateMutability: 'view',
2815
- type: 'function',
2816
- },
2817
- {
2818
- inputs: [
2819
- {
2820
- internalType: 'string',
2821
- name: '',
2822
- type: 'string',
2823
- },
2824
- {
2825
- internalType: 'address',
2826
- name: '',
2827
- type: 'address',
2828
- },
2829
- ],
2830
- name: 'marketOverridesByBaseAssetSymbolAndWallet',
2831
- outputs: [
2832
- {
2833
- internalType: 'bool',
2834
- name: 'exists',
2835
- type: 'bool',
2836
- },
2837
- {
2838
- components: [
2839
- {
2840
- internalType: 'uint64',
2841
- name: 'initialMarginFraction',
2842
- type: 'uint64',
2843
- },
2844
- {
2845
- internalType: 'uint64',
2846
- name: 'maintenanceMarginFraction',
2847
- type: 'uint64',
2848
- },
2849
- {
2850
- internalType: 'uint64',
2851
- name: 'incrementalInitialMarginFraction',
2852
- type: 'uint64',
2853
- },
2854
- {
2855
- internalType: 'uint64',
2856
- name: 'baselinePositionSize',
2857
- type: 'uint64',
2858
- },
2859
- {
2860
- internalType: 'uint64',
2861
- name: 'incrementalPositionSize',
2862
- type: 'uint64',
2863
- },
2864
- {
2865
- internalType: 'uint64',
2866
- name: 'maximumPositionSize',
2867
- type: 'uint64',
2868
- },
2869
- {
2870
- internalType: 'uint64',
2871
- name: 'minimumPositionSize',
2872
- type: 'uint64',
2873
- },
2874
- ],
2875
- internalType: 'struct OverridableMarketFields',
2876
- name: 'overridableFields',
2877
- type: 'tuple',
2878
- },
2879
- ],
2880
- stateMutability: 'view',
2881
- type: 'function',
2882
- },
2883
- {
2884
- inputs: [],
2885
- name: 'migrateQuoteTokenAddress',
2886
- outputs: [],
2887
- stateMutability: 'nonpayable',
2888
- type: 'function',
2889
- },
2890
- {
2891
- inputs: [],
2892
- name: 'oraclePriceAdapter',
2893
- outputs: [
2894
- {
2895
- internalType: 'contract IOraclePriceAdapter',
2896
- name: '',
2897
- type: 'address',
2898
- },
2899
- ],
2900
- stateMutability: 'view',
2901
- type: 'function',
2902
- },
2903
- {
2904
- inputs: [],
2905
- name: 'ownerWallet',
2906
- outputs: [
2907
- {
2908
- internalType: 'address',
2909
- name: '',
2910
- type: 'address',
2911
- },
2912
- ],
2913
- stateMutability: 'view',
2914
- type: 'function',
2915
- },
2916
- {
2917
- inputs: [
2918
- {
2919
- internalType: 'address',
2920
- name: '',
2921
- type: 'address',
2922
- },
2923
- ],
2924
- name: 'pendingDepositQuantityByWallet',
2925
- outputs: [
2926
- {
2927
- internalType: 'uint64',
2928
- name: '',
2929
- type: 'uint64',
2930
- },
2931
- ],
2932
- stateMutability: 'view',
2933
- type: 'function',
2934
- },
2935
- {
2936
- inputs: [],
2937
- name: 'positionBelowMinimumLiquidationPriceToleranceMultiplier',
2938
- outputs: [
2939
- {
2940
- internalType: 'uint64',
2941
- name: '',
2942
- type: 'uint64',
2943
- },
2944
- ],
2945
- stateMutability: 'view',
2946
- type: 'function',
2947
- },
2948
- {
2949
- inputs: [
2950
- {
2951
- internalType: 'string',
2952
- name: 'baseAssetSymbol',
2953
- type: 'string',
2954
- },
2955
- {
2956
- internalType: 'int64',
2957
- name: 'fundingRate',
2958
- type: 'int64',
2959
- },
2960
- ],
2961
- name: 'publishFundingMultiplier',
2962
- outputs: [],
2963
- stateMutability: 'nonpayable',
2964
- type: 'function',
2965
- },
2966
- {
2967
- inputs: [
2968
- {
2969
- components: [
2970
- {
2971
- internalType: 'address',
2972
- name: 'indexPriceAdapter',
2973
- type: 'address',
2974
- },
2975
- {
2976
- internalType: 'bytes',
2977
- name: 'payload',
2978
- type: 'bytes',
2979
- },
2980
- ],
2981
- internalType: 'struct IndexPricePayload[]',
2982
- name: 'encodedIndexPrices',
2983
- type: 'tuple[]',
2984
- },
2985
- ],
2986
- name: 'publishIndexPrices',
2987
- outputs: [],
2988
- stateMutability: 'nonpayable',
2989
- type: 'function',
2990
- },
2991
- {
2992
- inputs: [],
2993
- name: 'quoteTokenAddress',
2994
- outputs: [
2995
- {
2996
- internalType: 'address',
2997
- name: '',
2998
- type: 'address',
2999
- },
3000
- ],
3001
- stateMutability: 'view',
3002
- type: 'function',
3003
- },
3004
- {
3005
- inputs: [],
3006
- name: 'removeAdmin',
3007
- outputs: [],
3008
- stateMutability: 'nonpayable',
3009
- type: 'function',
3010
- },
3011
- {
3012
- inputs: [],
3013
- name: 'removeDispatcher',
3014
- outputs: [],
3015
- stateMutability: 'nonpayable',
3016
- type: 'function',
3017
- },
3018
- {
3019
- inputs: [],
3020
- name: 'removeOwner',
3021
- outputs: [],
3022
- stateMutability: 'nonpayable',
3023
- type: 'function',
3024
- },
3025
- {
3026
- inputs: [
3027
- {
3028
- internalType: 'address',
3029
- name: 'newAdmin',
3030
- type: 'address',
3031
- },
3032
- ],
3033
- name: 'setAdmin',
3034
- outputs: [],
3035
- stateMutability: 'nonpayable',
3036
- type: 'function',
3037
- },
3038
- {
3039
- inputs: [
3040
- {
3041
- internalType: 'contract IBridgeAdapter[]',
3042
- name: 'newBridgeAdapters',
3043
- type: 'address[]',
3044
- },
3045
- ],
3046
- name: 'setBridgeAdapters',
3047
- outputs: [],
3048
- stateMutability: 'nonpayable',
3049
- type: 'function',
3050
- },
3051
- {
3052
- inputs: [
3053
- {
3054
- internalType: 'uint256',
3055
- name: 'newChainPropagationPeriodInS',
3056
- type: 'uint256',
3057
- },
3058
- ],
3059
- name: 'setChainPropagationPeriod',
3060
- outputs: [],
3061
- stateMutability: 'nonpayable',
3062
- type: 'function',
3063
- },
3064
- {
3065
- inputs: [
3066
- {
3067
- internalType: 'contract ICustodian',
3068
- name: 'newCustodian',
3069
- type: 'address',
3070
- },
3071
- ],
3072
- name: 'setCustodian',
3073
- outputs: [],
3074
- stateMutability: 'nonpayable',
3075
- type: 'function',
3076
- },
3077
- {
3078
- inputs: [
3079
- {
3080
- internalType: 'uint64',
3081
- name: 'newDelegateKeyExpirationPeriodInMs',
3082
- type: 'uint64',
3083
- },
3084
- ],
3085
- name: 'setDelegateKeyExpirationPeriod',
3086
- outputs: [],
3087
- stateMutability: 'nonpayable',
3088
- type: 'function',
3089
- },
3090
- {
3091
- inputs: [
3092
- {
3093
- internalType: 'bool',
3094
- name: 'isEnabled',
3095
- type: 'bool',
3096
- },
3097
- ],
3098
- name: 'setDepositEnabled',
3099
- outputs: [],
3100
- stateMutability: 'nonpayable',
3101
- type: 'function',
3102
- },
3103
- {
3104
- inputs: [],
3105
- name: 'setDepositIndex',
3106
- outputs: [],
3107
- stateMutability: 'nonpayable',
3108
- type: 'function',
3109
- },
3110
- {
3111
- inputs: [
3112
- {
3113
- internalType: 'address',
3114
- name: 'newDispatcherWallet',
3115
- type: 'address',
3116
- },
3117
- ],
3118
- name: 'setDispatcher',
3119
- outputs: [],
3120
- stateMutability: 'nonpayable',
3121
- type: 'function',
3122
- },
3123
- {
3124
- inputs: [
3125
- {
3126
- internalType: 'address',
3127
- name: 'newExitFundWallet',
3128
- type: 'address',
3129
- },
3130
- ],
3131
- name: 'setExitFundWallet',
3132
- outputs: [],
3133
- stateMutability: 'nonpayable',
3134
- type: 'function',
3135
- },
3136
- {
3137
- inputs: [
3138
- {
3139
- internalType: 'address',
3140
- name: 'newFeeWallet',
3141
- type: 'address',
3142
- },
3143
- ],
3144
- name: 'setFeeWallet',
3145
- outputs: [],
3146
- stateMutability: 'nonpayable',
3147
- type: 'function',
3148
- },
3149
- {
3150
- inputs: [
3151
- {
3152
- internalType: 'contract IIndexPriceAdapter[]',
3153
- name: 'newIndexPriceAdapters',
3154
- type: 'address[]',
3155
- },
3156
- ],
3157
- name: 'setIndexPriceAdapters',
3158
- outputs: [],
3159
- stateMutability: 'nonpayable',
3160
- type: 'function',
3161
- },
3162
- {
3163
- inputs: [
3164
- {
3165
- internalType: 'address',
3166
- name: 'newInsuranceFundWallet',
3167
- type: 'address',
3168
- },
3169
- ],
3170
- name: 'setInsuranceFundWallet',
3171
- outputs: [],
3172
- stateMutability: 'nonpayable',
3173
- type: 'function',
3174
- },
3175
- {
3176
- inputs: [
3177
- {
3178
- internalType: 'contract IManagedAccountProvider[]',
3179
- name: 'newManagedAccountProviders',
3180
- type: 'address[]',
3181
- },
3182
- ],
3183
- name: 'setManagedAccounts',
3184
- outputs: [],
3185
- stateMutability: 'nonpayable',
3186
- type: 'function',
3187
- },
3188
- {
3189
- inputs: [
3190
- {
3191
- internalType: 'string',
3192
- name: 'baseAssetSymbol',
3193
- type: 'string',
3194
- },
3195
- {
3196
- components: [
3197
- {
3198
- internalType: 'uint64',
3199
- name: 'initialMarginFraction',
3200
- type: 'uint64',
3201
- },
3202
- {
3203
- internalType: 'uint64',
3204
- name: 'maintenanceMarginFraction',
3205
- type: 'uint64',
3206
- },
3207
- {
3208
- internalType: 'uint64',
3209
- name: 'incrementalInitialMarginFraction',
3210
- type: 'uint64',
3211
- },
3212
- {
3213
- internalType: 'uint64',
3214
- name: 'baselinePositionSize',
3215
- type: 'uint64',
3216
- },
3217
- {
3218
- internalType: 'uint64',
3219
- name: 'incrementalPositionSize',
3220
- type: 'uint64',
3221
- },
3222
- {
3223
- internalType: 'uint64',
3224
- name: 'maximumPositionSize',
3225
- type: 'uint64',
3226
- },
3227
- {
3228
- internalType: 'uint64',
3229
- name: 'minimumPositionSize',
3230
- type: 'uint64',
3231
- },
3232
- ],
3233
- internalType: 'struct OverridableMarketFields',
3234
- name: 'overridableFields',
3235
- type: 'tuple',
3236
- },
3237
- {
3238
- internalType: 'address',
3239
- name: 'wallet',
3240
- type: 'address',
3241
- },
3242
- ],
3243
- name: 'setMarketOverrides',
3244
- outputs: [],
3245
- stateMutability: 'nonpayable',
3246
- type: 'function',
3247
- },
3248
- {
3249
- inputs: [
3250
- {
3251
- internalType: 'contract IOraclePriceAdapter',
3252
- name: 'newOraclePriceAdapter',
3253
- type: 'address',
3254
- },
3255
- ],
3256
- name: 'setOraclePriceAdapter',
3257
- outputs: [],
3258
- stateMutability: 'nonpayable',
3259
- type: 'function',
3260
- },
3261
- {
3262
- inputs: [
3263
- {
3264
- internalType: 'address',
3265
- name: 'newOwner',
3266
- type: 'address',
3267
- },
3268
- ],
3269
- name: 'setOwner',
3270
- outputs: [],
3271
- stateMutability: 'nonpayable',
3272
- type: 'function',
3273
- },
3274
- {
3275
- inputs: [
3276
- {
3277
- internalType: 'uint64',
3278
- name: 'newPositionBelowMinimumLiquidationPriceToleranceMultiplier',
3279
- type: 'uint64',
3280
- },
3281
- ],
3282
- name: 'setPositionBelowMinimumLiquidationPriceToleranceMultiplier',
3283
- outputs: [],
3284
- stateMutability: 'nonpayable',
3285
- type: 'function',
3286
- },
3287
- {
3288
- inputs: [
3289
- {
3290
- internalType: 'address',
3291
- name: 'tokenAddress',
3292
- type: 'address',
3293
- },
3294
- ],
3295
- name: 'skim',
3296
- outputs: [],
3297
- stateMutability: 'nonpayable',
3298
- type: 'function',
3299
- },
3300
- {
3301
- inputs: [
3302
- {
3303
- components: [
3304
- {
3305
- internalType: 'uint128',
3306
- name: 'nonce',
3307
- type: 'uint128',
3308
- },
3309
- {
3310
- internalType: 'address',
3311
- name: 'sourceWallet',
3312
- type: 'address',
3313
- },
3314
- {
3315
- internalType: 'address',
3316
- name: 'destinationWallet',
3317
- type: 'address',
3318
- },
3319
- {
3320
- internalType: 'uint64',
3321
- name: 'grossQuantity',
3322
- type: 'uint64',
3323
- },
3324
- {
3325
- internalType: 'uint64',
3326
- name: 'gasFee',
3327
- type: 'uint64',
3328
- },
3329
- {
3330
- internalType: 'bytes',
3331
- name: 'walletSignature',
3332
- type: 'bytes',
3333
- },
3334
- ],
3335
- internalType: 'struct Transfer',
3336
- name: 'transfer_',
3337
- type: 'tuple',
3338
- },
3339
- ],
3340
- name: 'transfer',
3341
- outputs: [],
3342
- stateMutability: 'nonpayable',
3343
- type: 'function',
3344
- },
3345
- {
3346
- inputs: [
3347
- {
3348
- internalType: 'string',
3349
- name: 'baseAssetSymbol',
3350
- type: 'string',
3351
- },
3352
- {
3353
- internalType: 'address',
3354
- name: 'wallet',
3355
- type: 'address',
3356
- },
3357
- ],
3358
- name: 'unsetMarketOverridesForWallet',
3359
- outputs: [],
3360
- stateMutability: 'nonpayable',
3361
- type: 'function',
3362
- },
3363
- {
3364
- inputs: [
3365
- {
3366
- components: [
3367
- {
3368
- internalType: 'uint128',
3369
- name: 'nonce',
3370
- type: 'uint128',
3371
- },
3372
- {
3373
- internalType: 'address',
3374
- name: 'wallet',
3375
- type: 'address',
3376
- },
3377
- {
3378
- internalType: 'uint64',
3379
- name: 'grossQuantity',
3380
- type: 'uint64',
3381
- },
3382
- {
3383
- internalType: 'uint64',
3384
- name: 'maximumGasFee',
3385
- type: 'uint64',
3386
- },
3387
- {
3388
- internalType: 'address',
3389
- name: 'bridgeAdapter',
3390
- type: 'address',
3391
- },
3392
- {
3393
- internalType: 'bytes',
3394
- name: 'bridgeAdapterPayload',
3395
- type: 'bytes',
3396
- },
3397
- {
3398
- internalType: 'uint64',
3399
- name: 'gasFee',
3400
- type: 'uint64',
3401
- },
3402
- {
3403
- internalType: 'bytes',
3404
- name: 'walletSignature',
3405
- type: 'bytes',
3406
- },
3407
- ],
3408
- internalType: 'struct Withdrawal',
3409
- name: 'withdrawal',
3410
- type: 'tuple',
3411
- },
3412
- ],
3413
- name: 'withdraw',
3414
- outputs: [],
3415
- stateMutability: 'nonpayable',
3416
- type: 'function',
3417
- },
3418
- {
3419
- inputs: [
3420
- {
3421
- internalType: 'address',
3422
- name: 'wallet',
3423
- type: 'address',
3424
- },
3425
- ],
3426
- name: 'withdrawExit',
3427
- outputs: [],
3428
- stateMutability: 'nonpayable',
3429
- type: 'function',
3430
- },
3431
- {
3432
- inputs: [
3433
- {
3434
- internalType: 'address',
3435
- name: 'wallet',
3436
- type: 'address',
3437
- },
3438
- ],
3439
- name: 'withdrawExitAdmin',
3440
- outputs: [],
3441
- stateMutability: 'nonpayable',
3442
- type: 'function',
3443
- },
3444
- {
3445
- inputs: [
3446
- {
3447
- internalType: 'address',
3448
- name: 'depositorWallet',
3449
- type: 'address',
3450
- },
3451
- {
3452
- internalType: 'address',
3453
- name: 'managerWallet',
3454
- type: 'address',
3455
- },
3456
- {
3457
- internalType: 'uint64',
3458
- name: 'quantity',
3459
- type: 'uint64',
3460
- },
3461
- ],
3462
- name: 'withdrawExitFromManagedAccount',
3463
- outputs: [],
3464
- stateMutability: 'nonpayable',
3465
- type: 'function',
3466
- },
3467
- {
3468
- inputs: [
3469
- {
3470
- components: [
3471
- {
3472
- internalType: 'enum ManagedAccountWithdrawalType',
3473
- name: 'withdrawalType',
3474
- type: 'uint8',
3475
- },
3476
- {
3477
- components: [
3478
- {
3479
- internalType: 'uint128',
3480
- name: 'nonce',
3481
- type: 'uint128',
3482
- },
3483
- {
3484
- internalType: 'address',
3485
- name: 'managerWallet',
3486
- type: 'address',
3487
- },
3488
- {
3489
- internalType: 'address',
3490
- name: 'depositorWallet',
3491
- type: 'address',
3492
- },
3493
- {
3494
- internalType: 'uint64',
3495
- name: 'grossQuantity',
3496
- type: 'uint64',
3497
- },
3498
- {
3499
- internalType: 'uint64',
3500
- name: 'maxShares',
3501
- type: 'uint64',
3502
- },
3503
- {
3504
- internalType: 'uint64',
3505
- name: 'maximumGasFee',
3506
- type: 'uint64',
3507
- },
3508
- {
3509
- internalType: 'contract IManagedAccountProvider',
3510
- name: 'managedAccountProvider',
3511
- type: 'address',
3512
- },
3513
- {
3514
- internalType: 'bytes',
3515
- name: 'managedAccountProviderPayload',
3516
- type: 'bytes',
3517
- },
3518
- {
3519
- internalType: 'address',
3520
- name: 'bridgeAdapter',
3521
- type: 'address',
3522
- },
3523
- {
3524
- internalType: 'bytes',
3525
- name: 'bridgeAdapterPayload',
3526
- type: 'bytes',
3527
- },
3528
- {
3529
- internalType: 'uint64',
3530
- name: 'gasFee',
3531
- type: 'uint64',
3532
- },
3533
- {
3534
- internalType: 'bytes',
3535
- name: 'walletSignature',
3536
- type: 'bytes',
3537
- },
3538
- ],
3539
- internalType: 'struct WithdrawalFromManagedAccountByQuantity',
3540
- name: 'withdrawalByQuantity',
3541
- type: 'tuple',
3542
- },
3543
- {
3544
- components: [
3545
- {
3546
- internalType: 'uint128',
3547
- name: 'nonce',
3548
- type: 'uint128',
3549
- },
3550
- {
3551
- internalType: 'address',
3552
- name: 'managerWallet',
3553
- type: 'address',
3554
- },
3555
- {
3556
- internalType: 'address',
3557
- name: 'depositorWallet',
3558
- type: 'address',
3559
- },
3560
- {
3561
- internalType: 'uint64',
3562
- name: 'shares',
3563
- type: 'uint64',
3564
- },
3565
- {
3566
- internalType: 'uint64',
3567
- name: 'minimumQuantity',
3568
- type: 'uint64',
3569
- },
3570
- {
3571
- internalType: 'uint64',
3572
- name: 'maximumGasFee',
3573
- type: 'uint64',
3574
- },
3575
- {
3576
- internalType: 'contract IManagedAccountProvider',
3577
- name: 'managedAccountProvider',
3578
- type: 'address',
3579
- },
3580
- {
3581
- internalType: 'bytes',
3582
- name: 'managedAccountProviderPayload',
3583
- type: 'bytes',
3584
- },
3585
- {
3586
- internalType: 'address',
3587
- name: 'bridgeAdapter',
3588
- type: 'address',
3589
- },
3590
- {
3591
- internalType: 'bytes',
3592
- name: 'bridgeAdapterPayload',
3593
- type: 'bytes',
3594
- },
3595
- {
3596
- internalType: 'uint64',
3597
- name: 'gasFee',
3598
- type: 'uint64',
3599
- },
3600
- {
3601
- internalType: 'uint64',
3602
- name: 'grossQuantity',
3603
- type: 'uint64',
3604
- },
3605
- {
3606
- internalType: 'bytes',
3607
- name: 'walletSignature',
3608
- type: 'bytes',
3609
- },
3610
- ],
3611
- internalType: 'struct WithdrawalFromManagedAccountByShares',
3612
- name: 'withdrawalByShares',
3613
- type: 'tuple',
3614
- },
3615
- ],
3616
- internalType: 'struct WithdrawalFromManagedAccount',
3617
- name: 'withdrawal',
3618
- type: 'tuple',
3619
- },
3620
- ],
3621
- name: 'withdrawFromManagedAccount',
3622
- outputs: [],
3623
- stateMutability: 'nonpayable',
3624
- type: 'function',
3625
- },
3626
- ];
3627
- class Exchange_v2__factory {
3628
- static abi = _abi;
3629
- static createInterface() {
3630
- return new ethers_1.Interface(_abi);
3631
- }
3632
- static connect(address, runner) {
3633
- return new ethers_1.Contract(address, _abi, runner);
3634
- }
3635
- }
3636
- exports.Exchange_v2__factory = Exchange_v2__factory;