nado-protocol 0.1.0__py3-none-any.whl

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 (78) hide show
  1. nado_protocol/__init__.py +0 -0
  2. nado_protocol/client/__init__.py +200 -0
  3. nado_protocol/client/apis/__init__.py +26 -0
  4. nado_protocol/client/apis/base.py +42 -0
  5. nado_protocol/client/apis/market/__init__.py +23 -0
  6. nado_protocol/client/apis/market/execute.py +192 -0
  7. nado_protocol/client/apis/market/query.py +310 -0
  8. nado_protocol/client/apis/perp/__init__.py +18 -0
  9. nado_protocol/client/apis/perp/query.py +30 -0
  10. nado_protocol/client/apis/rewards/__init__.py +6 -0
  11. nado_protocol/client/apis/rewards/execute.py +131 -0
  12. nado_protocol/client/apis/rewards/query.py +12 -0
  13. nado_protocol/client/apis/spot/__init__.py +23 -0
  14. nado_protocol/client/apis/spot/base.py +32 -0
  15. nado_protocol/client/apis/spot/execute.py +117 -0
  16. nado_protocol/client/apis/spot/query.py +79 -0
  17. nado_protocol/client/apis/subaccount/__init__.py +24 -0
  18. nado_protocol/client/apis/subaccount/execute.py +54 -0
  19. nado_protocol/client/apis/subaccount/query.py +145 -0
  20. nado_protocol/client/context.py +90 -0
  21. nado_protocol/contracts/__init__.py +377 -0
  22. nado_protocol/contracts/abis/Endpoint.json +636 -0
  23. nado_protocol/contracts/abis/FQuerier.json +1909 -0
  24. nado_protocol/contracts/abis/IClearinghouse.json +876 -0
  25. nado_protocol/contracts/abis/IERC20.json +185 -0
  26. nado_protocol/contracts/abis/IEndpoint.json +250 -0
  27. nado_protocol/contracts/abis/IFoundationRewardsAirdrop.json +76 -0
  28. nado_protocol/contracts/abis/IOffchainBook.json +536 -0
  29. nado_protocol/contracts/abis/IPerpEngine.json +931 -0
  30. nado_protocol/contracts/abis/IProductEngine.json +352 -0
  31. nado_protocol/contracts/abis/ISpotEngine.json +813 -0
  32. nado_protocol/contracts/abis/IStaking.json +288 -0
  33. nado_protocol/contracts/abis/IVrtxAirdrop.json +138 -0
  34. nado_protocol/contracts/abis/MockERC20.json +311 -0
  35. nado_protocol/contracts/deployments/deployment.test.json +18 -0
  36. nado_protocol/contracts/eip712/__init__.py +16 -0
  37. nado_protocol/contracts/eip712/domain.py +36 -0
  38. nado_protocol/contracts/eip712/sign.py +79 -0
  39. nado_protocol/contracts/eip712/types.py +154 -0
  40. nado_protocol/contracts/loader.py +55 -0
  41. nado_protocol/contracts/types.py +141 -0
  42. nado_protocol/engine_client/__init__.py +35 -0
  43. nado_protocol/engine_client/execute.py +416 -0
  44. nado_protocol/engine_client/query.py +481 -0
  45. nado_protocol/engine_client/types/__init__.py +113 -0
  46. nado_protocol/engine_client/types/execute.py +680 -0
  47. nado_protocol/engine_client/types/models.py +247 -0
  48. nado_protocol/engine_client/types/query.py +516 -0
  49. nado_protocol/engine_client/types/stream.py +6 -0
  50. nado_protocol/indexer_client/__init__.py +28 -0
  51. nado_protocol/indexer_client/query.py +466 -0
  52. nado_protocol/indexer_client/types/__init__.py +122 -0
  53. nado_protocol/indexer_client/types/models.py +364 -0
  54. nado_protocol/indexer_client/types/query.py +819 -0
  55. nado_protocol/trigger_client/__init__.py +17 -0
  56. nado_protocol/trigger_client/execute.py +118 -0
  57. nado_protocol/trigger_client/query.py +61 -0
  58. nado_protocol/trigger_client/types/__init__.py +7 -0
  59. nado_protocol/trigger_client/types/execute.py +89 -0
  60. nado_protocol/trigger_client/types/models.py +44 -0
  61. nado_protocol/trigger_client/types/query.py +77 -0
  62. nado_protocol/utils/__init__.py +37 -0
  63. nado_protocol/utils/backend.py +111 -0
  64. nado_protocol/utils/bytes32.py +159 -0
  65. nado_protocol/utils/enum.py +6 -0
  66. nado_protocol/utils/exceptions.py +58 -0
  67. nado_protocol/utils/execute.py +403 -0
  68. nado_protocol/utils/expiration.py +45 -0
  69. nado_protocol/utils/interest.py +66 -0
  70. nado_protocol/utils/math.py +67 -0
  71. nado_protocol/utils/model.py +79 -0
  72. nado_protocol/utils/nonce.py +33 -0
  73. nado_protocol/utils/subaccount.py +18 -0
  74. nado_protocol/utils/time.py +21 -0
  75. nado_protocol-0.1.0.dist-info/METADATA +157 -0
  76. nado_protocol-0.1.0.dist-info/RECORD +78 -0
  77. nado_protocol-0.1.0.dist-info/WHEEL +4 -0
  78. nado_protocol-0.1.0.dist-info/entry_points.txt +11 -0
@@ -0,0 +1,813 @@
1
+ [
2
+ {
3
+ "anonymous": false,
4
+ "inputs": [
5
+ {
6
+ "indexed": false,
7
+ "internalType": "uint32",
8
+ "name": "productId",
9
+ "type": "uint32"
10
+ }
11
+ ],
12
+ "name": "AddProduct",
13
+ "type": "event"
14
+ },
15
+ {
16
+ "inputs": [
17
+ {
18
+ "components": [
19
+ {
20
+ "internalType": "uint32",
21
+ "name": "productId",
22
+ "type": "uint32"
23
+ },
24
+ {
25
+ "internalType": "bytes32",
26
+ "name": "subaccount",
27
+ "type": "bytes32"
28
+ },
29
+ {
30
+ "internalType": "int128",
31
+ "name": "amountDelta",
32
+ "type": "int128"
33
+ },
34
+ {
35
+ "internalType": "int128",
36
+ "name": "vQuoteDelta",
37
+ "type": "int128"
38
+ }
39
+ ],
40
+ "internalType": "struct IProductEngine.ProductDelta[]",
41
+ "name": "deltas",
42
+ "type": "tuple[]"
43
+ }
44
+ ],
45
+ "name": "applyDeltas",
46
+ "outputs": [],
47
+ "stateMutability": "nonpayable",
48
+ "type": "function"
49
+ },
50
+ {
51
+ "inputs": [
52
+ {
53
+ "internalType": "uint32",
54
+ "name": "productId",
55
+ "type": "uint32"
56
+ },
57
+ {
58
+ "internalType": "bytes32",
59
+ "name": "subaccount",
60
+ "type": "bytes32"
61
+ },
62
+ {
63
+ "internalType": "int128",
64
+ "name": "amountLp",
65
+ "type": "int128"
66
+ }
67
+ ],
68
+ "name": "burnLp",
69
+ "outputs": [
70
+ {
71
+ "internalType": "int128",
72
+ "name": "",
73
+ "type": "int128"
74
+ },
75
+ {
76
+ "internalType": "int128",
77
+ "name": "",
78
+ "type": "int128"
79
+ }
80
+ ],
81
+ "stateMutability": "nonpayable",
82
+ "type": "function"
83
+ },
84
+ {
85
+ "inputs": [
86
+ {
87
+ "internalType": "bytes32",
88
+ "name": "liquidatee",
89
+ "type": "bytes32"
90
+ },
91
+ {
92
+ "internalType": "bytes32",
93
+ "name": "liquidator",
94
+ "type": "bytes32"
95
+ },
96
+ {
97
+ "internalType": "address",
98
+ "name": "feeCalculator",
99
+ "type": "address"
100
+ }
101
+ ],
102
+ "name": "decomposeLps",
103
+ "outputs": [
104
+ {
105
+ "internalType": "int128",
106
+ "name": "",
107
+ "type": "int128"
108
+ }
109
+ ],
110
+ "stateMutability": "nonpayable",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [
115
+ {
116
+ "internalType": "uint32",
117
+ "name": "productId",
118
+ "type": "uint32"
119
+ },
120
+ {
121
+ "internalType": "bytes32",
122
+ "name": "subaccount",
123
+ "type": "bytes32"
124
+ }
125
+ ],
126
+ "name": "getBalance",
127
+ "outputs": [
128
+ {
129
+ "components": [
130
+ {
131
+ "internalType": "int128",
132
+ "name": "amount",
133
+ "type": "int128"
134
+ },
135
+ {
136
+ "internalType": "int128",
137
+ "name": "lastCumulativeMultiplierX18",
138
+ "type": "int128"
139
+ }
140
+ ],
141
+ "internalType": "struct ISpotEngine.Balance",
142
+ "name": "",
143
+ "type": "tuple"
144
+ }
145
+ ],
146
+ "stateMutability": "view",
147
+ "type": "function"
148
+ },
149
+ {
150
+ "inputs": [
151
+ {
152
+ "internalType": "uint32",
153
+ "name": "productId",
154
+ "type": "uint32"
155
+ },
156
+ {
157
+ "internalType": "bytes32",
158
+ "name": "subaccount",
159
+ "type": "bytes32"
160
+ }
161
+ ],
162
+ "name": "getBalanceAmount",
163
+ "outputs": [
164
+ {
165
+ "internalType": "int128",
166
+ "name": "",
167
+ "type": "int128"
168
+ }
169
+ ],
170
+ "stateMutability": "view",
171
+ "type": "function"
172
+ },
173
+ {
174
+ "inputs": [
175
+ {
176
+ "internalType": "uint32",
177
+ "name": "productId",
178
+ "type": "uint32"
179
+ },
180
+ {
181
+ "internalType": "bytes32",
182
+ "name": "subaccount",
183
+ "type": "bytes32"
184
+ }
185
+ ],
186
+ "name": "getBalances",
187
+ "outputs": [
188
+ {
189
+ "components": [
190
+ {
191
+ "internalType": "int128",
192
+ "name": "amount",
193
+ "type": "int128"
194
+ }
195
+ ],
196
+ "internalType": "struct ISpotEngine.LpBalance",
197
+ "name": "",
198
+ "type": "tuple"
199
+ },
200
+ {
201
+ "components": [
202
+ {
203
+ "internalType": "int128",
204
+ "name": "amount",
205
+ "type": "int128"
206
+ },
207
+ {
208
+ "internalType": "int128",
209
+ "name": "lastCumulativeMultiplierX18",
210
+ "type": "int128"
211
+ }
212
+ ],
213
+ "internalType": "struct ISpotEngine.Balance",
214
+ "name": "",
215
+ "type": "tuple"
216
+ }
217
+ ],
218
+ "stateMutability": "view",
219
+ "type": "function"
220
+ },
221
+ {
222
+ "inputs": [],
223
+ "name": "getClearinghouse",
224
+ "outputs": [
225
+ {
226
+ "internalType": "address",
227
+ "name": "",
228
+ "type": "address"
229
+ }
230
+ ],
231
+ "stateMutability": "view",
232
+ "type": "function"
233
+ },
234
+ {
235
+ "inputs": [
236
+ {
237
+ "internalType": "uint32",
238
+ "name": "productId",
239
+ "type": "uint32"
240
+ }
241
+ ],
242
+ "name": "getConfig",
243
+ "outputs": [
244
+ {
245
+ "components": [
246
+ {
247
+ "internalType": "address",
248
+ "name": "token",
249
+ "type": "address"
250
+ },
251
+ {
252
+ "internalType": "int128",
253
+ "name": "interestInflectionUtilX18",
254
+ "type": "int128"
255
+ },
256
+ {
257
+ "internalType": "int128",
258
+ "name": "interestFloorX18",
259
+ "type": "int128"
260
+ },
261
+ {
262
+ "internalType": "int128",
263
+ "name": "interestSmallCapX18",
264
+ "type": "int128"
265
+ },
266
+ {
267
+ "internalType": "int128",
268
+ "name": "interestLargeCapX18",
269
+ "type": "int128"
270
+ }
271
+ ],
272
+ "internalType": "struct ISpotEngine.Config",
273
+ "name": "",
274
+ "type": "tuple"
275
+ }
276
+ ],
277
+ "stateMutability": "view",
278
+ "type": "function"
279
+ },
280
+ {
281
+ "inputs": [],
282
+ "name": "getEngineType",
283
+ "outputs": [
284
+ {
285
+ "internalType": "enum IProductEngine.EngineType",
286
+ "name": "",
287
+ "type": "uint8"
288
+ }
289
+ ],
290
+ "stateMutability": "pure",
291
+ "type": "function"
292
+ },
293
+ {
294
+ "inputs": [
295
+ {
296
+ "internalType": "uint32",
297
+ "name": "productId",
298
+ "type": "uint32"
299
+ }
300
+ ],
301
+ "name": "getLpState",
302
+ "outputs": [
303
+ {
304
+ "components": [
305
+ {
306
+ "internalType": "int128",
307
+ "name": "supply",
308
+ "type": "int128"
309
+ },
310
+ {
311
+ "components": [
312
+ {
313
+ "internalType": "int128",
314
+ "name": "amount",
315
+ "type": "int128"
316
+ },
317
+ {
318
+ "internalType": "int128",
319
+ "name": "lastCumulativeMultiplierX18",
320
+ "type": "int128"
321
+ }
322
+ ],
323
+ "internalType": "struct ISpotEngine.Balance",
324
+ "name": "quote",
325
+ "type": "tuple"
326
+ },
327
+ {
328
+ "components": [
329
+ {
330
+ "internalType": "int128",
331
+ "name": "amount",
332
+ "type": "int128"
333
+ },
334
+ {
335
+ "internalType": "int128",
336
+ "name": "lastCumulativeMultiplierX18",
337
+ "type": "int128"
338
+ }
339
+ ],
340
+ "internalType": "struct ISpotEngine.Balance",
341
+ "name": "base",
342
+ "type": "tuple"
343
+ }
344
+ ],
345
+ "internalType": "struct ISpotEngine.LpState",
346
+ "name": "",
347
+ "type": "tuple"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [
355
+ {
356
+ "internalType": "uint32",
357
+ "name": "productId",
358
+ "type": "uint32"
359
+ }
360
+ ],
361
+ "name": "getOrderbook",
362
+ "outputs": [
363
+ {
364
+ "internalType": "address",
365
+ "name": "",
366
+ "type": "address"
367
+ }
368
+ ],
369
+ "stateMutability": "view",
370
+ "type": "function"
371
+ },
372
+ {
373
+ "inputs": [],
374
+ "name": "getProductIds",
375
+ "outputs": [
376
+ {
377
+ "internalType": "uint32[]",
378
+ "name": "",
379
+ "type": "uint32[]"
380
+ }
381
+ ],
382
+ "stateMutability": "view",
383
+ "type": "function"
384
+ },
385
+ {
386
+ "inputs": [
387
+ {
388
+ "internalType": "uint32",
389
+ "name": "productId",
390
+ "type": "uint32"
391
+ },
392
+ {
393
+ "internalType": "bytes32",
394
+ "name": "subaccount",
395
+ "type": "bytes32"
396
+ }
397
+ ],
398
+ "name": "getStateAndBalance",
399
+ "outputs": [
400
+ {
401
+ "components": [
402
+ {
403
+ "internalType": "int128",
404
+ "name": "cumulativeDepositsMultiplierX18",
405
+ "type": "int128"
406
+ },
407
+ {
408
+ "internalType": "int128",
409
+ "name": "cumulativeBorrowsMultiplierX18",
410
+ "type": "int128"
411
+ },
412
+ {
413
+ "internalType": "int128",
414
+ "name": "totalDepositsNormalized",
415
+ "type": "int128"
416
+ },
417
+ {
418
+ "internalType": "int128",
419
+ "name": "totalBorrowsNormalized",
420
+ "type": "int128"
421
+ }
422
+ ],
423
+ "internalType": "struct ISpotEngine.State",
424
+ "name": "",
425
+ "type": "tuple"
426
+ },
427
+ {
428
+ "components": [
429
+ {
430
+ "internalType": "int128",
431
+ "name": "amount",
432
+ "type": "int128"
433
+ },
434
+ {
435
+ "internalType": "int128",
436
+ "name": "lastCumulativeMultiplierX18",
437
+ "type": "int128"
438
+ }
439
+ ],
440
+ "internalType": "struct ISpotEngine.Balance",
441
+ "name": "",
442
+ "type": "tuple"
443
+ }
444
+ ],
445
+ "stateMutability": "view",
446
+ "type": "function"
447
+ },
448
+ {
449
+ "inputs": [
450
+ {
451
+ "internalType": "uint32",
452
+ "name": "productId",
453
+ "type": "uint32"
454
+ },
455
+ {
456
+ "internalType": "bytes32",
457
+ "name": "subaccount",
458
+ "type": "bytes32"
459
+ }
460
+ ],
461
+ "name": "getStatesAndBalances",
462
+ "outputs": [
463
+ {
464
+ "components": [
465
+ {
466
+ "internalType": "int128",
467
+ "name": "supply",
468
+ "type": "int128"
469
+ },
470
+ {
471
+ "components": [
472
+ {
473
+ "internalType": "int128",
474
+ "name": "amount",
475
+ "type": "int128"
476
+ },
477
+ {
478
+ "internalType": "int128",
479
+ "name": "lastCumulativeMultiplierX18",
480
+ "type": "int128"
481
+ }
482
+ ],
483
+ "internalType": "struct ISpotEngine.Balance",
484
+ "name": "quote",
485
+ "type": "tuple"
486
+ },
487
+ {
488
+ "components": [
489
+ {
490
+ "internalType": "int128",
491
+ "name": "amount",
492
+ "type": "int128"
493
+ },
494
+ {
495
+ "internalType": "int128",
496
+ "name": "lastCumulativeMultiplierX18",
497
+ "type": "int128"
498
+ }
499
+ ],
500
+ "internalType": "struct ISpotEngine.Balance",
501
+ "name": "base",
502
+ "type": "tuple"
503
+ }
504
+ ],
505
+ "internalType": "struct ISpotEngine.LpState",
506
+ "name": "",
507
+ "type": "tuple"
508
+ },
509
+ {
510
+ "components": [
511
+ {
512
+ "internalType": "int128",
513
+ "name": "amount",
514
+ "type": "int128"
515
+ }
516
+ ],
517
+ "internalType": "struct ISpotEngine.LpBalance",
518
+ "name": "",
519
+ "type": "tuple"
520
+ },
521
+ {
522
+ "components": [
523
+ {
524
+ "internalType": "int128",
525
+ "name": "cumulativeDepositsMultiplierX18",
526
+ "type": "int128"
527
+ },
528
+ {
529
+ "internalType": "int128",
530
+ "name": "cumulativeBorrowsMultiplierX18",
531
+ "type": "int128"
532
+ },
533
+ {
534
+ "internalType": "int128",
535
+ "name": "totalDepositsNormalized",
536
+ "type": "int128"
537
+ },
538
+ {
539
+ "internalType": "int128",
540
+ "name": "totalBorrowsNormalized",
541
+ "type": "int128"
542
+ }
543
+ ],
544
+ "internalType": "struct ISpotEngine.State",
545
+ "name": "",
546
+ "type": "tuple"
547
+ },
548
+ {
549
+ "components": [
550
+ {
551
+ "internalType": "int128",
552
+ "name": "amount",
553
+ "type": "int128"
554
+ },
555
+ {
556
+ "internalType": "int128",
557
+ "name": "lastCumulativeMultiplierX18",
558
+ "type": "int128"
559
+ }
560
+ ],
561
+ "internalType": "struct ISpotEngine.Balance",
562
+ "name": "",
563
+ "type": "tuple"
564
+ }
565
+ ],
566
+ "stateMutability": "view",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [
571
+ {
572
+ "internalType": "uint32",
573
+ "name": "productId",
574
+ "type": "uint32"
575
+ }
576
+ ],
577
+ "name": "getWithdrawFee",
578
+ "outputs": [
579
+ {
580
+ "internalType": "int128",
581
+ "name": "",
582
+ "type": "int128"
583
+ }
584
+ ],
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "uint32",
592
+ "name": "productId",
593
+ "type": "uint32"
594
+ },
595
+ {
596
+ "internalType": "bytes32",
597
+ "name": "subaccount",
598
+ "type": "bytes32"
599
+ }
600
+ ],
601
+ "name": "hasBalance",
602
+ "outputs": [
603
+ {
604
+ "internalType": "bool",
605
+ "name": "",
606
+ "type": "bool"
607
+ }
608
+ ],
609
+ "stateMutability": "view",
610
+ "type": "function"
611
+ },
612
+ {
613
+ "inputs": [
614
+ {
615
+ "internalType": "address",
616
+ "name": "_clearinghouse",
617
+ "type": "address"
618
+ },
619
+ {
620
+ "internalType": "address",
621
+ "name": "_quote",
622
+ "type": "address"
623
+ },
624
+ {
625
+ "internalType": "address",
626
+ "name": "_endpoint",
627
+ "type": "address"
628
+ },
629
+ {
630
+ "internalType": "address",
631
+ "name": "_admin",
632
+ "type": "address"
633
+ },
634
+ {
635
+ "internalType": "address",
636
+ "name": "_fees",
637
+ "type": "address"
638
+ }
639
+ ],
640
+ "name": "initialize",
641
+ "outputs": [],
642
+ "stateMutability": "nonpayable",
643
+ "type": "function"
644
+ },
645
+ {
646
+ "inputs": [
647
+ {
648
+ "internalType": "int128[]",
649
+ "name": "totalDeposits",
650
+ "type": "int128[]"
651
+ },
652
+ {
653
+ "internalType": "int128[]",
654
+ "name": "totalBorrows",
655
+ "type": "int128[]"
656
+ }
657
+ ],
658
+ "name": "manualAssert",
659
+ "outputs": [],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "inputs": [
665
+ {
666
+ "internalType": "uint32",
667
+ "name": "productId",
668
+ "type": "uint32"
669
+ },
670
+ {
671
+ "internalType": "bytes32",
672
+ "name": "subaccount",
673
+ "type": "bytes32"
674
+ },
675
+ {
676
+ "internalType": "int128",
677
+ "name": "amountBase",
678
+ "type": "int128"
679
+ },
680
+ {
681
+ "internalType": "int128",
682
+ "name": "quoteAmountLow",
683
+ "type": "int128"
684
+ },
685
+ {
686
+ "internalType": "int128",
687
+ "name": "quoteAmountHigh",
688
+ "type": "int128"
689
+ }
690
+ ],
691
+ "name": "mintLp",
692
+ "outputs": [],
693
+ "stateMutability": "nonpayable",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "inputs": [
698
+ {
699
+ "internalType": "bytes32",
700
+ "name": "subaccount",
701
+ "type": "bytes32"
702
+ }
703
+ ],
704
+ "name": "socializeSubaccount",
705
+ "outputs": [],
706
+ "stateMutability": "nonpayable",
707
+ "type": "function"
708
+ },
709
+ {
710
+ "inputs": [
711
+ {
712
+ "internalType": "uint32",
713
+ "name": "productId",
714
+ "type": "uint32"
715
+ },
716
+ {
717
+ "internalType": "int128",
718
+ "name": "baseDelta",
719
+ "type": "int128"
720
+ },
721
+ {
722
+ "internalType": "int128",
723
+ "name": "quoteDelta",
724
+ "type": "int128"
725
+ }
726
+ ],
727
+ "name": "swapLp",
728
+ "outputs": [
729
+ {
730
+ "internalType": "int128",
731
+ "name": "",
732
+ "type": "int128"
733
+ },
734
+ {
735
+ "internalType": "int128",
736
+ "name": "",
737
+ "type": "int128"
738
+ }
739
+ ],
740
+ "stateMutability": "nonpayable",
741
+ "type": "function"
742
+ },
743
+ {
744
+ "inputs": [
745
+ {
746
+ "internalType": "uint32",
747
+ "name": "productId",
748
+ "type": "uint32"
749
+ },
750
+ {
751
+ "internalType": "int128",
752
+ "name": "amount",
753
+ "type": "int128"
754
+ },
755
+ {
756
+ "internalType": "int128",
757
+ "name": "priceX18",
758
+ "type": "int128"
759
+ },
760
+ {
761
+ "internalType": "int128",
762
+ "name": "sizeIncrement",
763
+ "type": "int128"
764
+ },
765
+ {
766
+ "internalType": "int128",
767
+ "name": "lpSpreadX18",
768
+ "type": "int128"
769
+ }
770
+ ],
771
+ "name": "swapLp",
772
+ "outputs": [
773
+ {
774
+ "internalType": "int128",
775
+ "name": "",
776
+ "type": "int128"
777
+ },
778
+ {
779
+ "internalType": "int128",
780
+ "name": "",
781
+ "type": "int128"
782
+ }
783
+ ],
784
+ "stateMutability": "nonpayable",
785
+ "type": "function"
786
+ },
787
+ {
788
+ "inputs": [
789
+ {
790
+ "internalType": "bytes",
791
+ "name": "txn",
792
+ "type": "bytes"
793
+ }
794
+ ],
795
+ "name": "updateProduct",
796
+ "outputs": [],
797
+ "stateMutability": "nonpayable",
798
+ "type": "function"
799
+ },
800
+ {
801
+ "inputs": [
802
+ {
803
+ "internalType": "uint128",
804
+ "name": "dt",
805
+ "type": "uint128"
806
+ }
807
+ ],
808
+ "name": "updateStates",
809
+ "outputs": [],
810
+ "stateMutability": "nonpayable",
811
+ "type": "function"
812
+ }
813
+ ]