@@ -477,6 +477,7 @@ export declare namespace ReaderPricingUtils {
477
477
478
478
export declare namespace ReaderPositionUtils {
479
479
export type PositionInfoStruct = {
480
+ positionKey : BytesLike ;
480
481
position : Position . PropsStruct ;
481
482
fees : PositionPricingUtils . PositionFeesStruct ;
482
483
executionPriceResult : ReaderPricingUtils . ExecutionPriceResultStruct ;
@@ -486,13 +487,15 @@ export declare namespace ReaderPositionUtils {
486
487
} ;
487
488
488
489
export type PositionInfoStructOutput = [
490
+ positionKey : string ,
489
491
position : Position . PropsStructOutput ,
490
492
fees : PositionPricingUtils . PositionFeesStructOutput ,
491
493
executionPriceResult : ReaderPricingUtils . ExecutionPriceResultStructOutput ,
492
494
basePnlUsd : bigint ,
493
495
uncappedBasePnlUsd : bigint ,
494
496
pnlAfterPriceImpactUsd : bigint ,
495
497
] & {
498
+ positionKey : string ;
496
499
position : Position . PropsStructOutput ;
497
500
fees : PositionPricingUtils . PositionFeesStructOutput ;
498
501
executionPriceResult : ReaderPricingUtils . ExecutionPriceResultStructOutput ;
@@ -889,6 +892,7 @@ export interface SyntheticsReaderInterface extends Interface {
889
892
| "getAccountOrders"
890
893
| "getAccountPositionInfoList"
891
894
| "getAccountPositions"
895
+ | "getAdlState"
892
896
| "getDeposit"
893
897
| "getDepositAmountOut"
894
898
| "getExecutionPrice"
@@ -901,6 +905,7 @@ export interface SyntheticsReaderInterface extends Interface {
901
905
| "getNetPnl"
902
906
| "getOpenInterestWithPnl"
903
907
| "getOrder"
908
+ | "getPendingPositionImpactPoolDistributionAmount"
904
909
| "getPnl"
905
910
| "getPnlToPoolFactor"
906
911
| "getPosition"
@@ -936,6 +941,10 @@ export interface SyntheticsReaderInterface extends Interface {
936
941
functionFragment : "getAccountPositions" ,
937
942
values : [ AddressLike , AddressLike , BigNumberish , BigNumberish ]
938
943
) : string ;
944
+ encodeFunctionData (
945
+ functionFragment : "getAdlState" ,
946
+ values : [ AddressLike , AddressLike , boolean , MarketUtils . MarketPricesStruct ]
947
+ ) : string ;
939
948
encodeFunctionData ( functionFragment : "getDeposit" , values : [ AddressLike , BytesLike ] ) : string ;
940
949
encodeFunctionData (
941
950
functionFragment : "getDepositAmountOut" ,
@@ -986,6 +995,10 @@ export interface SyntheticsReaderInterface extends Interface {
986
995
values : [ AddressLike , Market . PropsStruct , Price . PropsStruct , boolean , boolean ]
987
996
) : string ;
988
997
encodeFunctionData ( functionFragment : "getOrder" , values : [ AddressLike , BytesLike ] ) : string ;
998
+ encodeFunctionData (
999
+ functionFragment : "getPendingPositionImpactPoolDistributionAmount" ,
1000
+ values : [ AddressLike , AddressLike ]
1001
+ ) : string ;
989
1002
encodeFunctionData (
990
1003
functionFragment : "getPnl" ,
991
1004
values : [ AddressLike , Market . PropsStruct , Price . PropsStruct , boolean , boolean ]
@@ -1029,6 +1042,7 @@ export interface SyntheticsReaderInterface extends Interface {
1029
1042
decodeFunctionResult ( functionFragment : "getAccountOrders" , data : BytesLike ) : Result ;
1030
1043
decodeFunctionResult ( functionFragment : "getAccountPositionInfoList" , data : BytesLike ) : Result ;
1031
1044
decodeFunctionResult ( functionFragment : "getAccountPositions" , data : BytesLike ) : Result ;
1045
+ decodeFunctionResult ( functionFragment : "getAdlState" , data : BytesLike ) : Result ;
1032
1046
decodeFunctionResult ( functionFragment : "getDeposit" , data : BytesLike ) : Result ;
1033
1047
decodeFunctionResult ( functionFragment : "getDepositAmountOut" , data : BytesLike ) : Result ;
1034
1048
decodeFunctionResult ( functionFragment : "getExecutionPrice" , data : BytesLike ) : Result ;
@@ -1041,6 +1055,7 @@ export interface SyntheticsReaderInterface extends Interface {
1041
1055
decodeFunctionResult ( functionFragment : "getNetPnl" , data : BytesLike ) : Result ;
1042
1056
decodeFunctionResult ( functionFragment : "getOpenInterestWithPnl" , data : BytesLike ) : Result ;
1043
1057
decodeFunctionResult ( functionFragment : "getOrder" , data : BytesLike ) : Result ;
1058
+ decodeFunctionResult ( functionFragment : "getPendingPositionImpactPoolDistributionAmount" , data : BytesLike ) : Result ;
1044
1059
decodeFunctionResult ( functionFragment : "getPnl" , data : BytesLike ) : Result ;
1045
1060
decodeFunctionResult ( functionFragment : "getPnlToPoolFactor" , data : BytesLike ) : Result ;
1046
1061
decodeFunctionResult ( functionFragment : "getPosition" , data : BytesLike ) : Result ;
@@ -1115,6 +1130,12 @@ export interface SyntheticsReader extends BaseContract {
1115
1130
"view"
1116
1131
> ;
1117
1132
1133
+ getAdlState : TypedContractMethod <
1134
+ [ dataStore : AddressLike , market : AddressLike , isLong : boolean , prices : MarketUtils . MarketPricesStruct ] ,
1135
+ [ [ bigint , boolean , bigint , bigint ] ] ,
1136
+ "view"
1137
+ > ;
1138
+
1118
1139
getDeposit : TypedContractMethod < [ dataStore : AddressLike , key : BytesLike ] , [ Deposit . PropsStructOutput ] , "view" > ;
1119
1140
1120
1141
getDepositAmountOut : TypedContractMethod <
@@ -1207,6 +1228,12 @@ export interface SyntheticsReader extends BaseContract {
1207
1228
1208
1229
getOrder : TypedContractMethod < [ dataStore : AddressLike , key : BytesLike ] , [ Order . PropsStructOutput ] , "view" > ;
1209
1230
1231
+ getPendingPositionImpactPoolDistributionAmount : TypedContractMethod <
1232
+ [ dataStore : AddressLike , market : AddressLike ] ,
1233
+ [ [ bigint , bigint ] ] ,
1234
+ "view"
1235
+ > ;
1236
+
1210
1237
getPnl : TypedContractMethod <
1211
1238
[
1212
1239
dataStore : AddressLike ,
@@ -1364,6 +1391,13 @@ export interface SyntheticsReader extends BaseContract {
1364
1391
[ Position . PropsStructOutput [ ] ] ,
1365
1392
"view"
1366
1393
> ;
1394
+ getFunction (
1395
+ nameOrSignature : "getAdlState"
1396
+ ) : TypedContractMethod <
1397
+ [ dataStore : AddressLike , market : AddressLike , isLong : boolean , prices : MarketUtils . MarketPricesStruct ] ,
1398
+ [ [ bigint , boolean , bigint , bigint ] ] ,
1399
+ "view"
1400
+ > ;
1367
1401
getFunction (
1368
1402
nameOrSignature : "getDeposit"
1369
1403
) : TypedContractMethod < [ dataStore : AddressLike , key : BytesLike ] , [ Deposit . PropsStructOutput ] , "view" > ;
@@ -1468,6 +1502,9 @@ export interface SyntheticsReader extends BaseContract {
1468
1502
getFunction (
1469
1503
nameOrSignature : "getOrder"
1470
1504
) : TypedContractMethod < [ dataStore : AddressLike , key : BytesLike ] , [ Order . PropsStructOutput ] , "view" > ;
1505
+ getFunction (
1506
+ nameOrSignature : "getPendingPositionImpactPoolDistributionAmount"
1507
+ ) : TypedContractMethod < [ dataStore : AddressLike , market : AddressLike ] , [ [ bigint , bigint ] ] , "view" > ;
1471
1508
getFunction (
1472
1509
nameOrSignature : "getPnl"
1473
1510
) : TypedContractMethod <
0 commit comments