nado-protocol 0.1.1__py3-none-any.whl → 0.1.3__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 (48) hide show
  1. nado_protocol/client/__init__.py +11 -2
  2. nado_protocol/client/apis/market/execute.py +10 -26
  3. nado_protocol/client/apis/market/query.py +2 -2
  4. nado_protocol/client/apis/rewards/execute.py +27 -27
  5. nado_protocol/client/apis/rewards/query.py +5 -4
  6. nado_protocol/client/apis/subaccount/query.py +1 -1
  7. nado_protocol/client/context.py +0 -2
  8. nado_protocol/contracts/__init__.py +41 -33
  9. nado_protocol/contracts/abis/Endpoint.json +151 -228
  10. nado_protocol/contracts/abis/FQuerier.json +91 -508
  11. nado_protocol/contracts/abis/IAirdrop.json +76 -0
  12. nado_protocol/contracts/abis/IClearinghouse.json +277 -390
  13. nado_protocol/contracts/abis/IEndpoint.json +42 -80
  14. nado_protocol/contracts/abis/IPerpEngine.json +69 -422
  15. nado_protocol/contracts/abis/IProductEngine.json +87 -205
  16. nado_protocol/contracts/abis/ISpotEngine.json +173 -362
  17. nado_protocol/contracts/abis/MockERC20.json +1 -1
  18. nado_protocol/contracts/deployments/{deployment.test.json → deployment.testing.json} +2 -5
  19. nado_protocol/contracts/deployments/deployment.testnet.json +15 -0
  20. nado_protocol/contracts/eip712/types.py +15 -20
  21. nado_protocol/contracts/types.py +15 -13
  22. nado_protocol/engine_client/execute.py +18 -39
  23. nado_protocol/engine_client/query.py +1 -1
  24. nado_protocol/engine_client/types/__init__.py +4 -8
  25. nado_protocol/engine_client/types/execute.py +37 -103
  26. nado_protocol/engine_client/types/models.py +3 -59
  27. nado_protocol/engine_client/types/query.py +3 -6
  28. nado_protocol/indexer_client/query.py +4 -9
  29. nado_protocol/indexer_client/types/__init__.py +4 -5
  30. nado_protocol/indexer_client/types/models.py +16 -23
  31. nado_protocol/indexer_client/types/query.py +12 -11
  32. nado_protocol/trigger_client/execute.py +1 -1
  33. nado_protocol/trigger_client/types/execute.py +3 -1
  34. nado_protocol/utils/__init__.py +18 -1
  35. nado_protocol/utils/backend.py +5 -2
  36. nado_protocol/utils/exceptions.py +3 -3
  37. nado_protocol/utils/execute.py +26 -67
  38. nado_protocol/utils/expiration.py +7 -28
  39. nado_protocol/utils/nonce.py +0 -4
  40. nado_protocol/utils/order.py +356 -0
  41. {nado_protocol-0.1.1.dist-info → nado_protocol-0.1.3.dist-info}/METADATA +4 -2
  42. nado_protocol-0.1.3.dist-info/RECORD +78 -0
  43. {nado_protocol-0.1.1.dist-info → nado_protocol-0.1.3.dist-info}/entry_points.txt +0 -1
  44. nado_protocol/contracts/abis/IERC20.json +0 -185
  45. nado_protocol/contracts/abis/IOffchainBook.json +0 -536
  46. nado_protocol/contracts/abis/IVrtxAirdrop.json +0 -138
  47. nado_protocol-0.1.1.dist-info/RECORD +0 -78
  48. {nado_protocol-0.1.1.dist-info → nado_protocol-0.1.3.dist-info}/WHEEL +0 -0
@@ -1,26 +1,4 @@
1
1
  [
2
- {
3
- "inputs": [
4
- {
5
- "internalType": "int256",
6
- "name": "x",
7
- "type": "int256"
8
- }
9
- ],
10
- "name": "PRBMathSD59x18__SqrtNegativeInput",
11
- "type": "error"
12
- },
13
- {
14
- "inputs": [
15
- {
16
- "internalType": "int256",
17
- "name": "x",
18
- "type": "int256"
19
- }
20
- ],
21
- "name": "PRBMathSD59x18__SqrtOverflow",
22
- "type": "error"
23
- },
24
2
  {
25
3
  "inputs": [],
26
4
  "name": "getAllProducts",
@@ -63,7 +41,7 @@
63
41
  },
64
42
  {
65
43
  "internalType": "int128",
66
- "name": "largePositionPenaltyX18",
44
+ "name": "priceX18",
67
45
  "type": "int128"
68
46
  }
69
47
  ],
@@ -97,6 +75,16 @@
97
75
  "internalType": "int128",
98
76
  "name": "interestLargeCapX18",
99
77
  "type": "int128"
78
+ },
79
+ {
80
+ "internalType": "int128",
81
+ "name": "withdrawFeeX18",
82
+ "type": "int128"
83
+ },
84
+ {
85
+ "internalType": "int128",
86
+ "name": "minDepositRateX18",
87
+ "type": "int128"
100
88
  }
101
89
  ],
102
90
  "internalType": "struct ISpotEngine.Config",
@@ -130,52 +118,6 @@
130
118
  "name": "state",
131
119
  "type": "tuple"
132
120
  },
133
- {
134
- "components": [
135
- {
136
- "internalType": "int128",
137
- "name": "supply",
138
- "type": "int128"
139
- },
140
- {
141
- "components": [
142
- {
143
- "internalType": "int128",
144
- "name": "amount",
145
- "type": "int128"
146
- },
147
- {
148
- "internalType": "int128",
149
- "name": "lastCumulativeMultiplierX18",
150
- "type": "int128"
151
- }
152
- ],
153
- "internalType": "struct ISpotEngine.Balance",
154
- "name": "quote",
155
- "type": "tuple"
156
- },
157
- {
158
- "components": [
159
- {
160
- "internalType": "int128",
161
- "name": "amount",
162
- "type": "int128"
163
- },
164
- {
165
- "internalType": "int128",
166
- "name": "lastCumulativeMultiplierX18",
167
- "type": "int128"
168
- }
169
- ],
170
- "internalType": "struct ISpotEngine.Balance",
171
- "name": "base",
172
- "type": "tuple"
173
- }
174
- ],
175
- "internalType": "struct ISpotEngine.LpState",
176
- "name": "lpState",
177
- "type": "tuple"
178
- },
179
121
  {
180
122
  "components": [
181
123
  {
@@ -197,11 +139,6 @@
197
139
  "internalType": "int128",
198
140
  "name": "collectedFees",
199
141
  "type": "int128"
200
- },
201
- {
202
- "internalType": "int128",
203
- "name": "lpSpreadX18",
204
- "type": "int128"
205
142
  }
206
143
  ],
207
144
  "internalType": "struct FQuerier.BookInfo",
@@ -249,7 +186,7 @@
249
186
  },
250
187
  {
251
188
  "internalType": "int128",
252
- "name": "largePositionPenaltyX18",
189
+ "name": "priceX18",
253
190
  "type": "int128"
254
191
  }
255
192
  ],
@@ -284,38 +221,6 @@
284
221
  "name": "state",
285
222
  "type": "tuple"
286
223
  },
287
- {
288
- "components": [
289
- {
290
- "internalType": "int128",
291
- "name": "supply",
292
- "type": "int128"
293
- },
294
- {
295
- "internalType": "int128",
296
- "name": "lastCumulativeFundingX18",
297
- "type": "int128"
298
- },
299
- {
300
- "internalType": "int128",
301
- "name": "cumulativeFundingPerLpX18",
302
- "type": "int128"
303
- },
304
- {
305
- "internalType": "int128",
306
- "name": "base",
307
- "type": "int128"
308
- },
309
- {
310
- "internalType": "int128",
311
- "name": "quote",
312
- "type": "int128"
313
- }
314
- ],
315
- "internalType": "struct IPerpEngine.LpState",
316
- "name": "lpState",
317
- "type": "tuple"
318
- },
319
224
  {
320
225
  "components": [
321
226
  {
@@ -337,11 +242,6 @@
337
242
  "internalType": "int128",
338
243
  "name": "collectedFees",
339
244
  "type": "int128"
340
- },
341
- {
342
- "internalType": "int128",
343
- "name": "lpSpreadX18",
344
- "type": "int128"
345
245
  }
346
246
  ],
347
247
  "internalType": "struct FQuerier.BookInfo",
@@ -368,11 +268,6 @@
368
268
  "internalType": "uint32",
369
269
  "name": "productId",
370
270
  "type": "uint32"
371
- },
372
- {
373
- "internalType": "contract IProductEngine",
374
- "name": "engine",
375
- "type": "address"
376
271
  }
377
272
  ],
378
273
  "name": "getBookInfo",
@@ -398,11 +293,6 @@
398
293
  "internalType": "int128",
399
294
  "name": "collectedFees",
400
295
  "type": "int128"
401
- },
402
- {
403
- "internalType": "int128",
404
- "name": "lpSpreadX18",
405
- "type": "int128"
406
296
  }
407
297
  ],
408
298
  "internalType": "struct FQuerier.BookInfo",
@@ -426,6 +316,48 @@
426
316
  "stateMutability": "view",
427
317
  "type": "function"
428
318
  },
319
+ {
320
+ "inputs": [],
321
+ "name": "getNlpPoolInfo",
322
+ "outputs": [
323
+ {
324
+ "components": [
325
+ {
326
+ "components": [
327
+ {
328
+ "internalType": "uint64",
329
+ "name": "poolId",
330
+ "type": "uint64"
331
+ },
332
+ {
333
+ "internalType": "bytes32",
334
+ "name": "subaccount",
335
+ "type": "bytes32"
336
+ },
337
+ {
338
+ "internalType": "address",
339
+ "name": "owner",
340
+ "type": "address"
341
+ },
342
+ {
343
+ "internalType": "uint128",
344
+ "name": "balanceWeightX18",
345
+ "type": "uint128"
346
+ }
347
+ ],
348
+ "internalType": "struct FQuerier.NlpPool[]",
349
+ "name": "nlpPools",
350
+ "type": "tuple[]"
351
+ }
352
+ ],
353
+ "internalType": "struct FQuerier.NlpPoolInfo",
354
+ "name": "",
355
+ "type": "tuple"
356
+ }
357
+ ],
358
+ "stateMutability": "view",
359
+ "type": "function"
360
+ },
429
361
  {
430
362
  "inputs": [
431
363
  {
@@ -448,23 +380,6 @@
448
380
  "name": "productId",
449
381
  "type": "uint32"
450
382
  },
451
- {
452
- "components": [
453
- {
454
- "internalType": "int128",
455
- "name": "amount",
456
- "type": "int128"
457
- },
458
- {
459
- "internalType": "int128",
460
- "name": "lastCumulativeFundingX18",
461
- "type": "int128"
462
- }
463
- ],
464
- "internalType": "struct IPerpEngine.LpBalance",
465
- "name": "lpBalance",
466
- "type": "tuple"
467
- },
468
383
  {
469
384
  "components": [
470
385
  {
@@ -518,23 +433,6 @@
518
433
  "name": "productId",
519
434
  "type": "uint32"
520
435
  },
521
- {
522
- "components": [
523
- {
524
- "internalType": "int128",
525
- "name": "amount",
526
- "type": "int128"
527
- },
528
- {
529
- "internalType": "int128",
530
- "name": "lastCumulativeFundingX18",
531
- "type": "int128"
532
- }
533
- ],
534
- "internalType": "struct IPerpEngine.LpBalance",
535
- "name": "lpBalance",
536
- "type": "tuple"
537
- },
538
436
  {
539
437
  "components": [
540
438
  {
@@ -612,7 +510,7 @@
612
510
  },
613
511
  {
614
512
  "internalType": "int128",
615
- "name": "largePositionPenaltyX18",
513
+ "name": "priceX18",
616
514
  "type": "int128"
617
515
  }
618
516
  ],
@@ -647,38 +545,6 @@
647
545
  "name": "state",
648
546
  "type": "tuple"
649
547
  },
650
- {
651
- "components": [
652
- {
653
- "internalType": "int128",
654
- "name": "supply",
655
- "type": "int128"
656
- },
657
- {
658
- "internalType": "int128",
659
- "name": "lastCumulativeFundingX18",
660
- "type": "int128"
661
- },
662
- {
663
- "internalType": "int128",
664
- "name": "cumulativeFundingPerLpX18",
665
- "type": "int128"
666
- },
667
- {
668
- "internalType": "int128",
669
- "name": "base",
670
- "type": "int128"
671
- },
672
- {
673
- "internalType": "int128",
674
- "name": "quote",
675
- "type": "int128"
676
- }
677
- ],
678
- "internalType": "struct IPerpEngine.LpState",
679
- "name": "lpState",
680
- "type": "tuple"
681
- },
682
548
  {
683
549
  "components": [
684
550
  {
@@ -700,11 +566,6 @@
700
566
  "internalType": "int128",
701
567
  "name": "collectedFees",
702
568
  "type": "int128"
703
- },
704
- {
705
- "internalType": "int128",
706
- "name": "lpSpreadX18",
707
- "type": "int128"
708
569
  }
709
570
  ],
710
571
  "internalType": "struct FQuerier.BookInfo",
@@ -766,7 +627,7 @@
766
627
  },
767
628
  {
768
629
  "internalType": "int128",
769
- "name": "largePositionPenaltyX18",
630
+ "name": "priceX18",
770
631
  "type": "int128"
771
632
  }
772
633
  ],
@@ -801,38 +662,6 @@
801
662
  "name": "state",
802
663
  "type": "tuple"
803
664
  },
804
- {
805
- "components": [
806
- {
807
- "internalType": "int128",
808
- "name": "supply",
809
- "type": "int128"
810
- },
811
- {
812
- "internalType": "int128",
813
- "name": "lastCumulativeFundingX18",
814
- "type": "int128"
815
- },
816
- {
817
- "internalType": "int128",
818
- "name": "cumulativeFundingPerLpX18",
819
- "type": "int128"
820
- },
821
- {
822
- "internalType": "int128",
823
- "name": "base",
824
- "type": "int128"
825
- },
826
- {
827
- "internalType": "int128",
828
- "name": "quote",
829
- "type": "int128"
830
- }
831
- ],
832
- "internalType": "struct IPerpEngine.LpState",
833
- "name": "lpState",
834
- "type": "tuple"
835
- },
836
665
  {
837
666
  "components": [
838
667
  {
@@ -854,11 +683,6 @@
854
683
  "internalType": "int128",
855
684
  "name": "collectedFees",
856
685
  "type": "int128"
857
- },
858
- {
859
- "internalType": "int128",
860
- "name": "lpSpreadX18",
861
- "type": "int128"
862
686
  }
863
687
  ],
864
688
  "internalType": "struct FQuerier.BookInfo",
@@ -904,23 +728,6 @@
904
728
  "type": "int128"
905
729
  }
906
730
  ],
907
- "internalType": "struct ISpotEngine.LpBalance",
908
- "name": "lpBalance",
909
- "type": "tuple"
910
- },
911
- {
912
- "components": [
913
- {
914
- "internalType": "int128",
915
- "name": "amount",
916
- "type": "int128"
917
- },
918
- {
919
- "internalType": "int128",
920
- "name": "lastCumulativeMultiplierX18",
921
- "type": "int128"
922
- }
923
- ],
924
731
  "internalType": "struct ISpotEngine.Balance",
925
732
  "name": "balance",
926
733
  "type": "tuple"
@@ -964,23 +771,6 @@
964
771
  "type": "int128"
965
772
  }
966
773
  ],
967
- "internalType": "struct ISpotEngine.LpBalance",
968
- "name": "lpBalance",
969
- "type": "tuple"
970
- },
971
- {
972
- "components": [
973
- {
974
- "internalType": "int128",
975
- "name": "amount",
976
- "type": "int128"
977
- },
978
- {
979
- "internalType": "int128",
980
- "name": "lastCumulativeMultiplierX18",
981
- "type": "int128"
982
- }
983
- ],
984
774
  "internalType": "struct ISpotEngine.Balance",
985
775
  "name": "balance",
986
776
  "type": "tuple"
@@ -1040,7 +830,7 @@
1040
830
  },
1041
831
  {
1042
832
  "internalType": "int128",
1043
- "name": "largePositionPenaltyX18",
833
+ "name": "priceX18",
1044
834
  "type": "int128"
1045
835
  }
1046
836
  ],
@@ -1074,6 +864,16 @@
1074
864
  "internalType": "int128",
1075
865
  "name": "interestLargeCapX18",
1076
866
  "type": "int128"
867
+ },
868
+ {
869
+ "internalType": "int128",
870
+ "name": "withdrawFeeX18",
871
+ "type": "int128"
872
+ },
873
+ {
874
+ "internalType": "int128",
875
+ "name": "minDepositRateX18",
876
+ "type": "int128"
1077
877
  }
1078
878
  ],
1079
879
  "internalType": "struct ISpotEngine.Config",
@@ -1107,52 +907,6 @@
1107
907
  "name": "state",
1108
908
  "type": "tuple"
1109
909
  },
1110
- {
1111
- "components": [
1112
- {
1113
- "internalType": "int128",
1114
- "name": "supply",
1115
- "type": "int128"
1116
- },
1117
- {
1118
- "components": [
1119
- {
1120
- "internalType": "int128",
1121
- "name": "amount",
1122
- "type": "int128"
1123
- },
1124
- {
1125
- "internalType": "int128",
1126
- "name": "lastCumulativeMultiplierX18",
1127
- "type": "int128"
1128
- }
1129
- ],
1130
- "internalType": "struct ISpotEngine.Balance",
1131
- "name": "quote",
1132
- "type": "tuple"
1133
- },
1134
- {
1135
- "components": [
1136
- {
1137
- "internalType": "int128",
1138
- "name": "amount",
1139
- "type": "int128"
1140
- },
1141
- {
1142
- "internalType": "int128",
1143
- "name": "lastCumulativeMultiplierX18",
1144
- "type": "int128"
1145
- }
1146
- ],
1147
- "internalType": "struct ISpotEngine.Balance",
1148
- "name": "base",
1149
- "type": "tuple"
1150
- }
1151
- ],
1152
- "internalType": "struct ISpotEngine.LpState",
1153
- "name": "lpState",
1154
- "type": "tuple"
1155
- },
1156
910
  {
1157
911
  "components": [
1158
912
  {
@@ -1174,11 +928,6 @@
1174
928
  "internalType": "int128",
1175
929
  "name": "collectedFees",
1176
930
  "type": "int128"
1177
- },
1178
- {
1179
- "internalType": "int128",
1180
- "name": "lpSpreadX18",
1181
- "type": "int128"
1182
931
  }
1183
932
  ],
1184
933
  "internalType": "struct FQuerier.BookInfo",
@@ -1240,7 +989,7 @@
1240
989
  },
1241
990
  {
1242
991
  "internalType": "int128",
1243
- "name": "largePositionPenaltyX18",
992
+ "name": "priceX18",
1244
993
  "type": "int128"
1245
994
  }
1246
995
  ],
@@ -1274,6 +1023,16 @@
1274
1023
  "internalType": "int128",
1275
1024
  "name": "interestLargeCapX18",
1276
1025
  "type": "int128"
1026
+ },
1027
+ {
1028
+ "internalType": "int128",
1029
+ "name": "withdrawFeeX18",
1030
+ "type": "int128"
1031
+ },
1032
+ {
1033
+ "internalType": "int128",
1034
+ "name": "minDepositRateX18",
1035
+ "type": "int128"
1277
1036
  }
1278
1037
  ],
1279
1038
  "internalType": "struct ISpotEngine.Config",
@@ -1307,52 +1066,6 @@
1307
1066
  "name": "state",
1308
1067
  "type": "tuple"
1309
1068
  },
1310
- {
1311
- "components": [
1312
- {
1313
- "internalType": "int128",
1314
- "name": "supply",
1315
- "type": "int128"
1316
- },
1317
- {
1318
- "components": [
1319
- {
1320
- "internalType": "int128",
1321
- "name": "amount",
1322
- "type": "int128"
1323
- },
1324
- {
1325
- "internalType": "int128",
1326
- "name": "lastCumulativeMultiplierX18",
1327
- "type": "int128"
1328
- }
1329
- ],
1330
- "internalType": "struct ISpotEngine.Balance",
1331
- "name": "quote",
1332
- "type": "tuple"
1333
- },
1334
- {
1335
- "components": [
1336
- {
1337
- "internalType": "int128",
1338
- "name": "amount",
1339
- "type": "int128"
1340
- },
1341
- {
1342
- "internalType": "int128",
1343
- "name": "lastCumulativeMultiplierX18",
1344
- "type": "int128"
1345
- }
1346
- ],
1347
- "internalType": "struct ISpotEngine.Balance",
1348
- "name": "base",
1349
- "type": "tuple"
1350
- }
1351
- ],
1352
- "internalType": "struct ISpotEngine.LpState",
1353
- "name": "lpState",
1354
- "type": "tuple"
1355
- },
1356
1069
  {
1357
1070
  "components": [
1358
1071
  {
@@ -1374,11 +1087,6 @@
1374
1087
  "internalType": "int128",
1375
1088
  "name": "collectedFees",
1376
1089
  "type": "int128"
1377
- },
1378
- {
1379
- "internalType": "int128",
1380
- "name": "lpSpreadX18",
1381
- "type": "int128"
1382
1090
  }
1383
1091
  ],
1384
1092
  "internalType": "struct FQuerier.BookInfo",
@@ -1468,23 +1176,6 @@
1468
1176
  "type": "int128"
1469
1177
  }
1470
1178
  ],
1471
- "internalType": "struct ISpotEngine.LpBalance",
1472
- "name": "lpBalance",
1473
- "type": "tuple"
1474
- },
1475
- {
1476
- "components": [
1477
- {
1478
- "internalType": "int128",
1479
- "name": "amount",
1480
- "type": "int128"
1481
- },
1482
- {
1483
- "internalType": "int128",
1484
- "name": "lastCumulativeMultiplierX18",
1485
- "type": "int128"
1486
- }
1487
- ],
1488
1179
  "internalType": "struct ISpotEngine.Balance",
1489
1180
  "name": "balance",
1490
1181
  "type": "tuple"
@@ -1501,23 +1192,6 @@
1501
1192
  "name": "productId",
1502
1193
  "type": "uint32"
1503
1194
  },
1504
- {
1505
- "components": [
1506
- {
1507
- "internalType": "int128",
1508
- "name": "amount",
1509
- "type": "int128"
1510
- },
1511
- {
1512
- "internalType": "int128",
1513
- "name": "lastCumulativeFundingX18",
1514
- "type": "int128"
1515
- }
1516
- ],
1517
- "internalType": "struct IPerpEngine.LpBalance",
1518
- "name": "lpBalance",
1519
- "type": "tuple"
1520
- },
1521
1195
  {
1522
1196
  "components": [
1523
1197
  {
@@ -1581,7 +1255,7 @@
1581
1255
  },
1582
1256
  {
1583
1257
  "internalType": "int128",
1584
- "name": "largePositionPenaltyX18",
1258
+ "name": "priceX18",
1585
1259
  "type": "int128"
1586
1260
  }
1587
1261
  ],
@@ -1615,6 +1289,16 @@
1615
1289
  "internalType": "int128",
1616
1290
  "name": "interestLargeCapX18",
1617
1291
  "type": "int128"
1292
+ },
1293
+ {
1294
+ "internalType": "int128",
1295
+ "name": "withdrawFeeX18",
1296
+ "type": "int128"
1297
+ },
1298
+ {
1299
+ "internalType": "int128",
1300
+ "name": "minDepositRateX18",
1301
+ "type": "int128"
1618
1302
  }
1619
1303
  ],
1620
1304
  "internalType": "struct ISpotEngine.Config",
@@ -1648,52 +1332,6 @@
1648
1332
  "name": "state",
1649
1333
  "type": "tuple"
1650
1334
  },
1651
- {
1652
- "components": [
1653
- {
1654
- "internalType": "int128",
1655
- "name": "supply",
1656
- "type": "int128"
1657
- },
1658
- {
1659
- "components": [
1660
- {
1661
- "internalType": "int128",
1662
- "name": "amount",
1663
- "type": "int128"
1664
- },
1665
- {
1666
- "internalType": "int128",
1667
- "name": "lastCumulativeMultiplierX18",
1668
- "type": "int128"
1669
- }
1670
- ],
1671
- "internalType": "struct ISpotEngine.Balance",
1672
- "name": "quote",
1673
- "type": "tuple"
1674
- },
1675
- {
1676
- "components": [
1677
- {
1678
- "internalType": "int128",
1679
- "name": "amount",
1680
- "type": "int128"
1681
- },
1682
- {
1683
- "internalType": "int128",
1684
- "name": "lastCumulativeMultiplierX18",
1685
- "type": "int128"
1686
- }
1687
- ],
1688
- "internalType": "struct ISpotEngine.Balance",
1689
- "name": "base",
1690
- "type": "tuple"
1691
- }
1692
- ],
1693
- "internalType": "struct ISpotEngine.LpState",
1694
- "name": "lpState",
1695
- "type": "tuple"
1696
- },
1697
1335
  {
1698
1336
  "components": [
1699
1337
  {
@@ -1715,11 +1353,6 @@
1715
1353
  "internalType": "int128",
1716
1354
  "name": "collectedFees",
1717
1355
  "type": "int128"
1718
- },
1719
- {
1720
- "internalType": "int128",
1721
- "name": "lpSpreadX18",
1722
- "type": "int128"
1723
1356
  }
1724
1357
  ],
1725
1358
  "internalType": "struct FQuerier.BookInfo",
@@ -1767,7 +1400,7 @@
1767
1400
  },
1768
1401
  {
1769
1402
  "internalType": "int128",
1770
- "name": "largePositionPenaltyX18",
1403
+ "name": "priceX18",
1771
1404
  "type": "int128"
1772
1405
  }
1773
1406
  ],
@@ -1802,38 +1435,6 @@
1802
1435
  "name": "state",
1803
1436
  "type": "tuple"
1804
1437
  },
1805
- {
1806
- "components": [
1807
- {
1808
- "internalType": "int128",
1809
- "name": "supply",
1810
- "type": "int128"
1811
- },
1812
- {
1813
- "internalType": "int128",
1814
- "name": "lastCumulativeFundingX18",
1815
- "type": "int128"
1816
- },
1817
- {
1818
- "internalType": "int128",
1819
- "name": "cumulativeFundingPerLpX18",
1820
- "type": "int128"
1821
- },
1822
- {
1823
- "internalType": "int128",
1824
- "name": "base",
1825
- "type": "int128"
1826
- },
1827
- {
1828
- "internalType": "int128",
1829
- "name": "quote",
1830
- "type": "int128"
1831
- }
1832
- ],
1833
- "internalType": "struct IPerpEngine.LpState",
1834
- "name": "lpState",
1835
- "type": "tuple"
1836
- },
1837
1438
  {
1838
1439
  "components": [
1839
1440
  {
@@ -1855,11 +1456,6 @@
1855
1456
  "internalType": "int128",
1856
1457
  "name": "collectedFees",
1857
1458
  "type": "int128"
1858
- },
1859
- {
1860
- "internalType": "int128",
1861
- "name": "lpSpreadX18",
1862
- "type": "int128"
1863
1459
  }
1864
1460
  ],
1865
1461
  "internalType": "struct FQuerier.BookInfo",
@@ -1880,19 +1476,6 @@
1880
1476
  "stateMutability": "view",
1881
1477
  "type": "function"
1882
1478
  },
1883
- {
1884
- "inputs": [],
1885
- "name": "getVersion",
1886
- "outputs": [
1887
- {
1888
- "internalType": "uint64",
1889
- "name": "",
1890
- "type": "uint64"
1891
- }
1892
- ],
1893
- "stateMutability": "pure",
1894
- "type": "function"
1895
- },
1896
1479
  {
1897
1480
  "inputs": [
1898
1481
  {
@@ -1906,4 +1489,4 @@
1906
1489
  "stateMutability": "nonpayable",
1907
1490
  "type": "function"
1908
1491
  }
1909
- ]
1492
+ ]