flash-sdk 1.0.61 → 1.0.63

Sign up to get free protection for your applications and to get access to all the features.
@@ -65,7 +65,7 @@ export declare class PerpetualsClient {
65
65
  pyth?: Record<string, never>;
66
66
  backup?: Record<string, never>;
67
67
  };
68
- maxDifferenceThreshold: BN;
68
+ maxDeviationThreshold: BN;
69
69
  maxPriceError: BN;
70
70
  maxPriceAgeSec: number;
71
71
  };
@@ -184,7 +184,7 @@ export declare class PerpetualsClient {
184
184
  sizeUsd: BN;
185
185
  borrowSizeUsd: BN;
186
186
  lockedAmount: BN;
187
- weightedPrice: BN;
187
+ averagePrice: BN;
188
188
  totalQuantity: BN;
189
189
  cumulativeInterestUsd: BN;
190
190
  cumulativeInterestSnapshot: BN;
@@ -196,7 +196,7 @@ export declare class PerpetualsClient {
196
196
  sizeUsd: BN;
197
197
  borrowSizeUsd: BN;
198
198
  lockedAmount: BN;
199
- weightedPrice: BN;
199
+ averagePrice: BN;
200
200
  totalQuantity: BN;
201
201
  cumulativeInterestUsd: BN;
202
202
  cumulativeInterestSnapshot: BN;
@@ -236,7 +236,7 @@ export declare class PerpetualsClient {
236
236
  aumUsd: BN;
237
237
  lpTokenBump: number;
238
238
  owner: PublicKey;
239
- payer: PublicKey;
239
+ delegate: PublicKey;
240
240
  custody: PublicKey;
241
241
  collateralCustody: PublicKey;
242
242
  openTime: BN;
@@ -254,6 +254,7 @@ export declare class PerpetualsClient {
254
254
  cumulativeInterestSnapshot: BN;
255
255
  lockedAmount: BN;
256
256
  collateralAmount: BN;
257
+ sizeAmount: BN;
257
258
  }>;
258
259
  getPoolKey: (name: string) => PublicKey;
259
260
  getPool: (name: string) => Promise<{
@@ -272,7 +273,7 @@ export declare class PerpetualsClient {
272
273
  pyth?: Record<string, never>;
273
274
  backup?: Record<string, never>;
274
275
  };
275
- maxDifferenceThreshold: BN;
276
+ maxDeviationThreshold: BN;
276
277
  maxPriceError: BN;
277
278
  maxPriceAgeSec: number;
278
279
  };
@@ -391,7 +392,7 @@ export declare class PerpetualsClient {
391
392
  sizeUsd: BN;
392
393
  borrowSizeUsd: BN;
393
394
  lockedAmount: BN;
394
- weightedPrice: BN;
395
+ averagePrice: BN;
395
396
  totalQuantity: BN;
396
397
  cumulativeInterestUsd: BN;
397
398
  cumulativeInterestSnapshot: BN;
@@ -403,7 +404,7 @@ export declare class PerpetualsClient {
403
404
  sizeUsd: BN;
404
405
  borrowSizeUsd: BN;
405
406
  lockedAmount: BN;
406
- weightedPrice: BN;
407
+ averagePrice: BN;
407
408
  totalQuantity: BN;
408
409
  cumulativeInterestUsd: BN;
409
410
  cumulativeInterestSnapshot: BN;
@@ -443,7 +444,7 @@ export declare class PerpetualsClient {
443
444
  aumUsd: BN;
444
445
  lpTokenBump: number;
445
446
  owner: PublicKey;
446
- payer: PublicKey;
447
+ delegate: PublicKey;
447
448
  custody: PublicKey;
448
449
  collateralCustody: PublicKey;
449
450
  openTime: BN;
@@ -461,6 +462,7 @@ export declare class PerpetualsClient {
461
462
  cumulativeInterestSnapshot: BN;
462
463
  lockedAmount: BN;
463
464
  collateralAmount: BN;
465
+ sizeAmount: BN;
464
466
  }>;
465
467
  getPools: () => Promise<{
466
468
  pool: PublicKey;
@@ -478,7 +480,7 @@ export declare class PerpetualsClient {
478
480
  pyth?: Record<string, never>;
479
481
  backup?: Record<string, never>;
480
482
  };
481
- maxDifferenceThreshold: BN;
483
+ maxDeviationThreshold: BN;
482
484
  maxPriceError: BN;
483
485
  maxPriceAgeSec: number;
484
486
  };
@@ -597,7 +599,7 @@ export declare class PerpetualsClient {
597
599
  sizeUsd: BN;
598
600
  borrowSizeUsd: BN;
599
601
  lockedAmount: BN;
600
- weightedPrice: BN;
602
+ averagePrice: BN;
601
603
  totalQuantity: BN;
602
604
  cumulativeInterestUsd: BN;
603
605
  cumulativeInterestSnapshot: BN;
@@ -609,7 +611,7 @@ export declare class PerpetualsClient {
609
611
  sizeUsd: BN;
610
612
  borrowSizeUsd: BN;
611
613
  lockedAmount: BN;
612
- weightedPrice: BN;
614
+ averagePrice: BN;
613
615
  totalQuantity: BN;
614
616
  cumulativeInterestUsd: BN;
615
617
  cumulativeInterestSnapshot: BN;
@@ -649,7 +651,7 @@ export declare class PerpetualsClient {
649
651
  aumUsd: BN;
650
652
  lpTokenBump: number;
651
653
  owner: PublicKey;
652
- payer: PublicKey;
654
+ delegate: PublicKey;
653
655
  custody: PublicKey;
654
656
  collateralCustody: PublicKey;
655
657
  openTime: BN;
@@ -667,6 +669,7 @@ export declare class PerpetualsClient {
667
669
  cumulativeInterestSnapshot: BN;
668
670
  lockedAmount: BN;
669
671
  collateralAmount: BN;
672
+ sizeAmount: BN;
670
673
  }[]>;
671
674
  getPoolLpTokenKey: (name: string) => PublicKey;
672
675
  getCustodyKey: (poolName: string, tokenMint: PublicKey) => PublicKey;
@@ -689,7 +692,7 @@ export declare class PerpetualsClient {
689
692
  pyth?: Record<string, never>;
690
693
  backup?: Record<string, never>;
691
694
  };
692
- maxDifferenceThreshold: BN;
695
+ maxDeviationThreshold: BN;
693
696
  maxPriceError: BN;
694
697
  maxPriceAgeSec: number;
695
698
  };
@@ -808,7 +811,7 @@ export declare class PerpetualsClient {
808
811
  sizeUsd: BN;
809
812
  borrowSizeUsd: BN;
810
813
  lockedAmount: BN;
811
- weightedPrice: BN;
814
+ averagePrice: BN;
812
815
  totalQuantity: BN;
813
816
  cumulativeInterestUsd: BN;
814
817
  cumulativeInterestSnapshot: BN;
@@ -820,7 +823,7 @@ export declare class PerpetualsClient {
820
823
  sizeUsd: BN;
821
824
  borrowSizeUsd: BN;
822
825
  lockedAmount: BN;
823
- weightedPrice: BN;
826
+ averagePrice: BN;
824
827
  totalQuantity: BN;
825
828
  cumulativeInterestUsd: BN;
826
829
  cumulativeInterestSnapshot: BN;
@@ -860,7 +863,7 @@ export declare class PerpetualsClient {
860
863
  aumUsd: BN;
861
864
  lpTokenBump: number;
862
865
  owner: PublicKey;
863
- payer: PublicKey;
866
+ delegate: PublicKey;
864
867
  custody: PublicKey;
865
868
  collateralCustody: PublicKey;
866
869
  openTime: BN;
@@ -878,6 +881,7 @@ export declare class PerpetualsClient {
878
881
  cumulativeInterestSnapshot: BN;
879
882
  lockedAmount: BN;
880
883
  collateralAmount: BN;
884
+ sizeAmount: BN;
881
885
  }>;
882
886
  getCustodies: (poolName: string) => Promise<{
883
887
  pool: PublicKey;
@@ -895,7 +899,7 @@ export declare class PerpetualsClient {
895
899
  pyth?: Record<string, never>;
896
900
  backup?: Record<string, never>;
897
901
  };
898
- maxDifferenceThreshold: BN;
902
+ maxDeviationThreshold: BN;
899
903
  maxPriceError: BN;
900
904
  maxPriceAgeSec: number;
901
905
  };
@@ -1014,7 +1018,7 @@ export declare class PerpetualsClient {
1014
1018
  sizeUsd: BN;
1015
1019
  borrowSizeUsd: BN;
1016
1020
  lockedAmount: BN;
1017
- weightedPrice: BN;
1021
+ averagePrice: BN;
1018
1022
  totalQuantity: BN;
1019
1023
  cumulativeInterestUsd: BN;
1020
1024
  cumulativeInterestSnapshot: BN;
@@ -1026,7 +1030,7 @@ export declare class PerpetualsClient {
1026
1030
  sizeUsd: BN;
1027
1031
  borrowSizeUsd: BN;
1028
1032
  lockedAmount: BN;
1029
- weightedPrice: BN;
1033
+ averagePrice: BN;
1030
1034
  totalQuantity: BN;
1031
1035
  cumulativeInterestUsd: BN;
1032
1036
  cumulativeInterestSnapshot: BN;
@@ -1066,7 +1070,7 @@ export declare class PerpetualsClient {
1066
1070
  aumUsd: BN;
1067
1071
  lpTokenBump: number;
1068
1072
  owner: PublicKey;
1069
- payer: PublicKey;
1073
+ delegate: PublicKey;
1070
1074
  custody: PublicKey;
1071
1075
  collateralCustody: PublicKey;
1072
1076
  openTime: BN;
@@ -1084,6 +1088,7 @@ export declare class PerpetualsClient {
1084
1088
  cumulativeInterestSnapshot: BN;
1085
1089
  lockedAmount: BN;
1086
1090
  collateralAmount: BN;
1091
+ sizeAmount: BN;
1087
1092
  }[]>;
1088
1093
  getCustodyMetas: (poolName: string) => Promise<any[]>;
1089
1094
  getMultisig: () => Promise<{
@@ -1102,7 +1107,7 @@ export declare class PerpetualsClient {
1102
1107
  pyth?: Record<string, never>;
1103
1108
  backup?: Record<string, never>;
1104
1109
  };
1105
- maxDifferenceThreshold: BN;
1110
+ maxDeviationThreshold: BN;
1106
1111
  maxPriceError: BN;
1107
1112
  maxPriceAgeSec: number;
1108
1113
  };
@@ -1221,7 +1226,7 @@ export declare class PerpetualsClient {
1221
1226
  sizeUsd: BN;
1222
1227
  borrowSizeUsd: BN;
1223
1228
  lockedAmount: BN;
1224
- weightedPrice: BN;
1229
+ averagePrice: BN;
1225
1230
  totalQuantity: BN;
1226
1231
  cumulativeInterestUsd: BN;
1227
1232
  cumulativeInterestSnapshot: BN;
@@ -1233,7 +1238,7 @@ export declare class PerpetualsClient {
1233
1238
  sizeUsd: BN;
1234
1239
  borrowSizeUsd: BN;
1235
1240
  lockedAmount: BN;
1236
- weightedPrice: BN;
1241
+ averagePrice: BN;
1237
1242
  totalQuantity: BN;
1238
1243
  cumulativeInterestUsd: BN;
1239
1244
  cumulativeInterestSnapshot: BN;
@@ -1273,7 +1278,7 @@ export declare class PerpetualsClient {
1273
1278
  aumUsd: BN;
1274
1279
  lpTokenBump: number;
1275
1280
  owner: PublicKey;
1276
- payer: PublicKey;
1281
+ delegate: PublicKey;
1277
1282
  custody: PublicKey;
1278
1283
  collateralCustody: PublicKey;
1279
1284
  openTime: BN;
@@ -1291,6 +1296,7 @@ export declare class PerpetualsClient {
1291
1296
  cumulativeInterestSnapshot: BN;
1292
1297
  lockedAmount: BN;
1293
1298
  collateralAmount: BN;
1299
+ sizeAmount: BN;
1294
1300
  }>;
1295
1301
  getPositionKey: (wallet: PublicKey, poolName: string, tokenMint: PublicKey, side: PositionSide) => PublicKey;
1296
1302
  getPosition: (postionKey: PublicKey) => Promise<{
@@ -1309,7 +1315,7 @@ export declare class PerpetualsClient {
1309
1315
  pyth?: Record<string, never>;
1310
1316
  backup?: Record<string, never>;
1311
1317
  };
1312
- maxDifferenceThreshold: BN;
1318
+ maxDeviationThreshold: BN;
1313
1319
  maxPriceError: BN;
1314
1320
  maxPriceAgeSec: number;
1315
1321
  };
@@ -1428,7 +1434,7 @@ export declare class PerpetualsClient {
1428
1434
  sizeUsd: BN;
1429
1435
  borrowSizeUsd: BN;
1430
1436
  lockedAmount: BN;
1431
- weightedPrice: BN;
1437
+ averagePrice: BN;
1432
1438
  totalQuantity: BN;
1433
1439
  cumulativeInterestUsd: BN;
1434
1440
  cumulativeInterestSnapshot: BN;
@@ -1440,7 +1446,7 @@ export declare class PerpetualsClient {
1440
1446
  sizeUsd: BN;
1441
1447
  borrowSizeUsd: BN;
1442
1448
  lockedAmount: BN;
1443
- weightedPrice: BN;
1449
+ averagePrice: BN;
1444
1450
  totalQuantity: BN;
1445
1451
  cumulativeInterestUsd: BN;
1446
1452
  cumulativeInterestSnapshot: BN;
@@ -1480,7 +1486,7 @@ export declare class PerpetualsClient {
1480
1486
  aumUsd: BN;
1481
1487
  lpTokenBump: number;
1482
1488
  owner: PublicKey;
1483
- payer: PublicKey;
1489
+ delegate: PublicKey;
1484
1490
  custody: PublicKey;
1485
1491
  collateralCustody: PublicKey;
1486
1492
  openTime: BN;
@@ -1498,6 +1504,7 @@ export declare class PerpetualsClient {
1498
1504
  cumulativeInterestSnapshot: BN;
1499
1505
  lockedAmount: BN;
1500
1506
  collateralAmount: BN;
1507
+ sizeAmount: BN;
1501
1508
  }>;
1502
1509
  getUserPosition: (wallet: PublicKey, poolName: string, tokenMint: PublicKey, side: PositionSide) => Promise<{
1503
1510
  pool: PublicKey;
@@ -1515,7 +1522,7 @@ export declare class PerpetualsClient {
1515
1522
  pyth?: Record<string, never>;
1516
1523
  backup?: Record<string, never>;
1517
1524
  };
1518
- maxDifferenceThreshold: BN;
1525
+ maxDeviationThreshold: BN;
1519
1526
  maxPriceError: BN;
1520
1527
  maxPriceAgeSec: number;
1521
1528
  };
@@ -1634,7 +1641,7 @@ export declare class PerpetualsClient {
1634
1641
  sizeUsd: BN;
1635
1642
  borrowSizeUsd: BN;
1636
1643
  lockedAmount: BN;
1637
- weightedPrice: BN;
1644
+ averagePrice: BN;
1638
1645
  totalQuantity: BN;
1639
1646
  cumulativeInterestUsd: BN;
1640
1647
  cumulativeInterestSnapshot: BN;
@@ -1646,7 +1653,7 @@ export declare class PerpetualsClient {
1646
1653
  sizeUsd: BN;
1647
1654
  borrowSizeUsd: BN;
1648
1655
  lockedAmount: BN;
1649
- weightedPrice: BN;
1656
+ averagePrice: BN;
1650
1657
  totalQuantity: BN;
1651
1658
  cumulativeInterestUsd: BN;
1652
1659
  cumulativeInterestSnapshot: BN;
@@ -1686,7 +1693,7 @@ export declare class PerpetualsClient {
1686
1693
  aumUsd: BN;
1687
1694
  lpTokenBump: number;
1688
1695
  owner: PublicKey;
1689
- payer: PublicKey;
1696
+ delegate: PublicKey;
1690
1697
  custody: PublicKey;
1691
1698
  collateralCustody: PublicKey;
1692
1699
  openTime: BN;
@@ -1704,6 +1711,7 @@ export declare class PerpetualsClient {
1704
1711
  cumulativeInterestSnapshot: BN;
1705
1712
  lockedAmount: BN;
1706
1713
  collateralAmount: BN;
1714
+ sizeAmount: BN;
1707
1715
  }>;
1708
1716
  getUserPositions: (wallet: PublicKey, poolConfig: PoolConfig) => Promise<{
1709
1717
  pool: PublicKey;
@@ -1721,7 +1729,7 @@ export declare class PerpetualsClient {
1721
1729
  pyth?: Record<string, never>;
1722
1730
  backup?: Record<string, never>;
1723
1731
  };
1724
- maxDifferenceThreshold: BN;
1732
+ maxDeviationThreshold: BN;
1725
1733
  maxPriceError: BN;
1726
1734
  maxPriceAgeSec: number;
1727
1735
  };
@@ -1840,7 +1848,7 @@ export declare class PerpetualsClient {
1840
1848
  sizeUsd: BN;
1841
1849
  borrowSizeUsd: BN;
1842
1850
  lockedAmount: BN;
1843
- weightedPrice: BN;
1851
+ averagePrice: BN;
1844
1852
  totalQuantity: BN;
1845
1853
  cumulativeInterestUsd: BN;
1846
1854
  cumulativeInterestSnapshot: BN;
@@ -1852,7 +1860,7 @@ export declare class PerpetualsClient {
1852
1860
  sizeUsd: BN;
1853
1861
  borrowSizeUsd: BN;
1854
1862
  lockedAmount: BN;
1855
- weightedPrice: BN;
1863
+ averagePrice: BN;
1856
1864
  totalQuantity: BN;
1857
1865
  cumulativeInterestUsd: BN;
1858
1866
  cumulativeInterestSnapshot: BN;
@@ -1892,7 +1900,7 @@ export declare class PerpetualsClient {
1892
1900
  aumUsd: BN;
1893
1901
  lpTokenBump: number;
1894
1902
  owner: PublicKey;
1895
- payer: PublicKey;
1903
+ delegate: PublicKey;
1896
1904
  custody: PublicKey;
1897
1905
  collateralCustody: PublicKey;
1898
1906
  openTime: BN;
@@ -1910,6 +1918,7 @@ export declare class PerpetualsClient {
1910
1918
  cumulativeInterestSnapshot: BN;
1911
1919
  lockedAmount: BN;
1912
1920
  collateralAmount: BN;
1921
+ sizeAmount: BN;
1913
1922
  pubkey: PublicKey;
1914
1923
  }[]>;
1915
1924
  getPoolTokenPositions: (poolName: string, tokenMint: PublicKey) => Promise<{
@@ -1928,7 +1937,7 @@ export declare class PerpetualsClient {
1928
1937
  pyth?: Record<string, never>;
1929
1938
  backup?: Record<string, never>;
1930
1939
  };
1931
- maxDifferenceThreshold: BN;
1940
+ maxDeviationThreshold: BN;
1932
1941
  maxPriceError: BN;
1933
1942
  maxPriceAgeSec: number;
1934
1943
  };
@@ -2047,7 +2056,7 @@ export declare class PerpetualsClient {
2047
2056
  sizeUsd: BN;
2048
2057
  borrowSizeUsd: BN;
2049
2058
  lockedAmount: BN;
2050
- weightedPrice: BN;
2059
+ averagePrice: BN;
2051
2060
  totalQuantity: BN;
2052
2061
  cumulativeInterestUsd: BN;
2053
2062
  cumulativeInterestSnapshot: BN;
@@ -2059,7 +2068,7 @@ export declare class PerpetualsClient {
2059
2068
  sizeUsd: BN;
2060
2069
  borrowSizeUsd: BN;
2061
2070
  lockedAmount: BN;
2062
- weightedPrice: BN;
2071
+ averagePrice: BN;
2063
2072
  totalQuantity: BN;
2064
2073
  cumulativeInterestUsd: BN;
2065
2074
  cumulativeInterestSnapshot: BN;
@@ -2099,7 +2108,7 @@ export declare class PerpetualsClient {
2099
2108
  aumUsd: BN;
2100
2109
  lpTokenBump: number;
2101
2110
  owner: PublicKey;
2102
- payer: PublicKey;
2111
+ delegate: PublicKey;
2103
2112
  custody: PublicKey;
2104
2113
  collateralCustody: PublicKey;
2105
2114
  openTime: BN;
@@ -2117,6 +2126,7 @@ export declare class PerpetualsClient {
2117
2126
  cumulativeInterestSnapshot: BN;
2118
2127
  lockedAmount: BN;
2119
2128
  collateralAmount: BN;
2129
+ sizeAmount: BN;
2120
2130
  }[]>;
2121
2131
  getAllPositions: () => Promise<import("@coral-xyz/anchor").ProgramAccount<{
2122
2132
  pool: PublicKey;
@@ -2134,7 +2144,7 @@ export declare class PerpetualsClient {
2134
2144
  pyth?: Record<string, never>;
2135
2145
  backup?: Record<string, never>;
2136
2146
  };
2137
- maxDifferenceThreshold: BN;
2147
+ maxDeviationThreshold: BN;
2138
2148
  maxPriceError: BN;
2139
2149
  maxPriceAgeSec: number;
2140
2150
  };
@@ -2253,7 +2263,7 @@ export declare class PerpetualsClient {
2253
2263
  sizeUsd: BN;
2254
2264
  borrowSizeUsd: BN;
2255
2265
  lockedAmount: BN;
2256
- weightedPrice: BN;
2266
+ averagePrice: BN;
2257
2267
  totalQuantity: BN;
2258
2268
  cumulativeInterestUsd: BN;
2259
2269
  cumulativeInterestSnapshot: BN;
@@ -2265,7 +2275,7 @@ export declare class PerpetualsClient {
2265
2275
  sizeUsd: BN;
2266
2276
  borrowSizeUsd: BN;
2267
2277
  lockedAmount: BN;
2268
- weightedPrice: BN;
2278
+ averagePrice: BN;
2269
2279
  totalQuantity: BN;
2270
2280
  cumulativeInterestUsd: BN;
2271
2281
  cumulativeInterestSnapshot: BN;
@@ -2305,7 +2315,7 @@ export declare class PerpetualsClient {
2305
2315
  aumUsd: BN;
2306
2316
  lpTokenBump: number;
2307
2317
  owner: PublicKey;
2308
- payer: PublicKey;
2318
+ delegate: PublicKey;
2309
2319
  custody: PublicKey;
2310
2320
  collateralCustody: PublicKey;
2311
2321
  openTime: BN;
@@ -2323,6 +2333,7 @@ export declare class PerpetualsClient {
2323
2333
  cumulativeInterestSnapshot: BN;
2324
2334
  lockedAmount: BN;
2325
2335
  collateralAmount: BN;
2336
+ sizeAmount: BN;
2326
2337
  }>[]>;
2327
2338
  getAccountDiscriminator: (name: string) => Buffer;
2328
2339
  log: (...message: string[]) => void;
@@ -2331,9 +2342,10 @@ export declare class PerpetualsClient {
2331
2342
  setAdminSigners: (admins: PublicKey[], minSignatures: number) => Promise<void>;
2332
2343
  addPool: (name: string) => Promise<void>;
2333
2344
  removePool: (name: string) => Promise<void>;
2334
- addCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
2345
+ addCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, isVirtual: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
2335
2346
  editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
2336
2347
  removeCustody: (poolName: string, tokenMint: PublicKey, ratios: TokenRatios[]) => Promise<void>;
2348
+ validateCollectivePnl: (marketSymbol: string, collateralSymbol: string, poolConfig: PoolConfig, poolName: string, side: Side) => Promise<void>;
2337
2349
  upgradeCustody: (poolName: string, tokenMint: PublicKey) => Promise<void>;
2338
2350
  liquidate: (wallet: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, side: PositionSide, receivingAccount: PublicKey, rewardsReceivingAccount: PublicKey) => Promise<string>;
2339
2351
  getOraclePrice: (poolName: string, tokenMint: PublicKey, ema: boolean) => Promise<any>;
@@ -2389,6 +2401,14 @@ export declare class PerpetualsClient {
2389
2401
  instructions: TransactionInstruction[];
2390
2402
  additionalSigners: Signer[];
2391
2403
  }>;
2404
+ increaseSize: (marketSymbol: string, collateralSymbol: string, positionPubKey: PublicKey, poolConfig: PoolConfig, price: BN, sizeDelta: BN) => Promise<{
2405
+ instructions: TransactionInstruction[];
2406
+ additionalSigners: Signer[];
2407
+ }>;
2408
+ decreaseSize: (marketSymbol: string, collateralSymbol: string, positionPubKey: PublicKey, poolConfig: PoolConfig, price: BN, sizeDelta: BN) => Promise<{
2409
+ instructions: TransactionInstruction[];
2410
+ additionalSigners: Signer[];
2411
+ }>;
2392
2412
  addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean) => Promise<{
2393
2413
  instructions: TransactionInstruction[];
2394
2414
  additionalSigners: Signer[];