flash-sdk 11.11.4-alpha.0 → 11.12.2-alpha.0
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.
- package/dist/CustodyAccount.d.ts +1 -1
- package/dist/PerpetualsClient.d.ts +36 -36
- package/dist/PerpetualsClient.js +686 -491
- package/dist/PoolConfig.json +63 -1
- package/dist/idl/perpetuals.d.ts +9 -1
- package/dist/idl/perpetuals.js +9 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +3 -4
package/dist/CustodyAccount.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare class CustodyAccount implements Custody {
|
|
|
10
10
|
isStable: boolean;
|
|
11
11
|
depegAdjustment: boolean;
|
|
12
12
|
isVirtual: boolean;
|
|
13
|
-
|
|
13
|
+
inversePrice: boolean;
|
|
14
14
|
oracle: OracleParams;
|
|
15
15
|
pricing: PricingParams;
|
|
16
16
|
permissions: Permissions;
|
|
@@ -91,7 +91,7 @@ export declare class PerpetualsClient {
|
|
|
91
91
|
isStable: boolean;
|
|
92
92
|
depegAdjustment: boolean;
|
|
93
93
|
isVirtual: boolean;
|
|
94
|
-
|
|
94
|
+
inversePrice: boolean;
|
|
95
95
|
oracle: {
|
|
96
96
|
intOracleAccount: PublicKey;
|
|
97
97
|
extOracleAccount: PublicKey;
|
|
@@ -448,7 +448,7 @@ export declare class PerpetualsClient {
|
|
|
448
448
|
isStable: boolean;
|
|
449
449
|
depegAdjustment: boolean;
|
|
450
450
|
isVirtual: boolean;
|
|
451
|
-
|
|
451
|
+
inversePrice: boolean;
|
|
452
452
|
oracle: {
|
|
453
453
|
intOracleAccount: PublicKey;
|
|
454
454
|
extOracleAccount: PublicKey;
|
|
@@ -804,7 +804,7 @@ export declare class PerpetualsClient {
|
|
|
804
804
|
isStable: boolean;
|
|
805
805
|
depegAdjustment: boolean;
|
|
806
806
|
isVirtual: boolean;
|
|
807
|
-
|
|
807
|
+
inversePrice: boolean;
|
|
808
808
|
oracle: {
|
|
809
809
|
intOracleAccount: PublicKey;
|
|
810
810
|
extOracleAccount: PublicKey;
|
|
@@ -1164,7 +1164,7 @@ export declare class PerpetualsClient {
|
|
|
1164
1164
|
isStable: boolean;
|
|
1165
1165
|
depegAdjustment: boolean;
|
|
1166
1166
|
isVirtual: boolean;
|
|
1167
|
-
|
|
1167
|
+
inversePrice: boolean;
|
|
1168
1168
|
oracle: {
|
|
1169
1169
|
intOracleAccount: PublicKey;
|
|
1170
1170
|
extOracleAccount: PublicKey;
|
|
@@ -1523,7 +1523,7 @@ export declare class PerpetualsClient {
|
|
|
1523
1523
|
isStable: boolean;
|
|
1524
1524
|
depegAdjustment: boolean;
|
|
1525
1525
|
isVirtual: boolean;
|
|
1526
|
-
|
|
1526
|
+
inversePrice: boolean;
|
|
1527
1527
|
oracle: {
|
|
1528
1528
|
intOracleAccount: PublicKey;
|
|
1529
1529
|
extOracleAccount: PublicKey;
|
|
@@ -1880,7 +1880,7 @@ export declare class PerpetualsClient {
|
|
|
1880
1880
|
isStable: boolean;
|
|
1881
1881
|
depegAdjustment: boolean;
|
|
1882
1882
|
isVirtual: boolean;
|
|
1883
|
-
|
|
1883
|
+
inversePrice: boolean;
|
|
1884
1884
|
oracle: {
|
|
1885
1885
|
intOracleAccount: PublicKey;
|
|
1886
1886
|
extOracleAccount: PublicKey;
|
|
@@ -2236,7 +2236,7 @@ export declare class PerpetualsClient {
|
|
|
2236
2236
|
isStable: boolean;
|
|
2237
2237
|
depegAdjustment: boolean;
|
|
2238
2238
|
isVirtual: boolean;
|
|
2239
|
-
|
|
2239
|
+
inversePrice: boolean;
|
|
2240
2240
|
oracle: {
|
|
2241
2241
|
intOracleAccount: PublicKey;
|
|
2242
2242
|
extOracleAccount: PublicKey;
|
|
@@ -2592,7 +2592,7 @@ export declare class PerpetualsClient {
|
|
|
2592
2592
|
isStable: boolean;
|
|
2593
2593
|
depegAdjustment: boolean;
|
|
2594
2594
|
isVirtual: boolean;
|
|
2595
|
-
|
|
2595
|
+
inversePrice: boolean;
|
|
2596
2596
|
oracle: {
|
|
2597
2597
|
intOracleAccount: PublicKey;
|
|
2598
2598
|
extOracleAccount: PublicKey;
|
|
@@ -3000,7 +3000,7 @@ export declare class PerpetualsClient {
|
|
|
3000
3000
|
isStable: boolean;
|
|
3001
3001
|
depegAdjustment: boolean;
|
|
3002
3002
|
isVirtual: boolean;
|
|
3003
|
-
|
|
3003
|
+
inversePrice: boolean;
|
|
3004
3004
|
oracle: {
|
|
3005
3005
|
intOracleAccount: PublicKey;
|
|
3006
3006
|
extOracleAccount: PublicKey;
|
|
@@ -3356,7 +3356,7 @@ export declare class PerpetualsClient {
|
|
|
3356
3356
|
isStable: boolean;
|
|
3357
3357
|
depegAdjustment: boolean;
|
|
3358
3358
|
isVirtual: boolean;
|
|
3359
|
-
|
|
3359
|
+
inversePrice: boolean;
|
|
3360
3360
|
oracle: {
|
|
3361
3361
|
intOracleAccount: PublicKey;
|
|
3362
3362
|
extOracleAccount: PublicKey;
|
|
@@ -3712,7 +3712,7 @@ export declare class PerpetualsClient {
|
|
|
3712
3712
|
isStable: boolean;
|
|
3713
3713
|
depegAdjustment: boolean;
|
|
3714
3714
|
isVirtual: boolean;
|
|
3715
|
-
|
|
3715
|
+
inversePrice: boolean;
|
|
3716
3716
|
oracle: {
|
|
3717
3717
|
intOracleAccount: PublicKey;
|
|
3718
3718
|
extOracleAccount: PublicKey;
|
|
@@ -4068,7 +4068,7 @@ export declare class PerpetualsClient {
|
|
|
4068
4068
|
isStable: boolean;
|
|
4069
4069
|
depegAdjustment: boolean;
|
|
4070
4070
|
isVirtual: boolean;
|
|
4071
|
-
|
|
4071
|
+
inversePrice: boolean;
|
|
4072
4072
|
oracle: {
|
|
4073
4073
|
intOracleAccount: PublicKey;
|
|
4074
4074
|
extOracleAccount: PublicKey;
|
|
@@ -4424,7 +4424,7 @@ export declare class PerpetualsClient {
|
|
|
4424
4424
|
isStable: boolean;
|
|
4425
4425
|
depegAdjustment: boolean;
|
|
4426
4426
|
isVirtual: boolean;
|
|
4427
|
-
|
|
4427
|
+
inversePrice: boolean;
|
|
4428
4428
|
oracle: {
|
|
4429
4429
|
intOracleAccount: PublicKey;
|
|
4430
4430
|
extOracleAccount: PublicKey;
|
|
@@ -4908,47 +4908,47 @@ export declare class PerpetualsClient {
|
|
|
4908
4908
|
getLiquidationStateView: (positionAccount: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, poolConfig: PoolConfig) => Promise<any>;
|
|
4909
4909
|
getCompoundingTokenDataView: (poolConfig: PoolConfig) => Promise<any>;
|
|
4910
4910
|
getLpTokenPriceView: (poolConfig: PoolConfig) => Promise<any>;
|
|
4911
|
-
openPosition: (targetSymbol: string, collateralSymbol: string, priceWithSlippage: ContractOraclePrice, collateralWithfee: BN, size: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4911
|
+
openPosition: (targetSymbol: string, collateralSymbol: string, priceWithSlippage: ContractOraclePrice, collateralWithfee: BN, size: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
4912
4912
|
instructions: TransactionInstruction[];
|
|
4913
4913
|
additionalSigners: Signer[];
|
|
4914
4914
|
}>;
|
|
4915
|
-
closePosition: (marketSymbol: string, collateralSymbol: string, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?:
|
|
4915
|
+
closePosition: (marketSymbol: string, collateralSymbol: string, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
4916
4916
|
instructions: TransactionInstruction[];
|
|
4917
4917
|
additionalSigners: Signer[];
|
|
4918
4918
|
}>;
|
|
4919
|
-
swapAndOpen: (targetTokenSymbol: string, collateralTokenSymbol: string, userInputTokenSymbol: string, amountIn: BN, priceWithSlippage: ContractOraclePrice, sizeAmount: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4919
|
+
swapAndOpen: (targetTokenSymbol: string, collateralTokenSymbol: string, userInputTokenSymbol: string, amountIn: BN, priceWithSlippage: ContractOraclePrice, sizeAmount: BN, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
4920
4920
|
instructions: TransactionInstruction[];
|
|
4921
4921
|
additionalSigners: Signer[];
|
|
4922
4922
|
}>;
|
|
4923
|
-
closeAndSwap: (targetTokenSymbol: string, userOutputTokenSymbol: string, collateralTokenSymbol: string, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, ephemeralSignerPubkey?:
|
|
4923
|
+
closeAndSwap: (targetTokenSymbol: string, userOutputTokenSymbol: string, collateralTokenSymbol: string, priceWithSlippage: ContractOraclePrice, side: Side, poolConfig: PoolConfig, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, ephemeralSignerPubkey?: any) => Promise<{
|
|
4924
4924
|
instructions: TransactionInstruction[];
|
|
4925
4925
|
additionalSigners: Signer[];
|
|
4926
4926
|
}>;
|
|
4927
|
-
addCollateral: (collateralWithFee: BN, targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4927
|
+
addCollateral: (collateralWithFee: BN, targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
4928
4928
|
instructions: TransactionInstruction[];
|
|
4929
4929
|
additionalSigners: Signer[];
|
|
4930
4930
|
}>;
|
|
4931
|
-
swapAndAddCollateral: (targetSymbol: string, inputSymbol: string, collateralSymbol: string, amountIn: BN, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4931
|
+
swapAndAddCollateral: (targetSymbol: string, inputSymbol: string, collateralSymbol: string, amountIn: BN, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
4932
4932
|
instructions: TransactionInstruction[];
|
|
4933
4933
|
additionalSigners: Signer[];
|
|
4934
4934
|
}>;
|
|
4935
|
-
removeCollateral: (collateralDeltaUsd: BN, marketSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?:
|
|
4935
|
+
removeCollateral: (collateralDeltaUsd: BN, marketSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
4936
4936
|
instructions: TransactionInstruction[];
|
|
4937
4937
|
additionalSigners: Signer[];
|
|
4938
4938
|
}>;
|
|
4939
|
-
removeCollateralAndSwap: (targetSymbol: string, collateralSymbol: string, outputSymbol: string, collateralDeltaUsd: BN, side: Side, poolConfig: PoolConfig, ephemeralSignerPubkey?:
|
|
4939
|
+
removeCollateralAndSwap: (targetSymbol: string, collateralSymbol: string, outputSymbol: string, collateralDeltaUsd: BN, side: Side, poolConfig: PoolConfig, ephemeralSignerPubkey?: any) => Promise<{
|
|
4940
4940
|
instructions: TransactionInstruction[];
|
|
4941
4941
|
additionalSigners: Signer[];
|
|
4942
4942
|
}>;
|
|
4943
|
-
increaseSize: (targetSymbol: string, collateralSymbol: string, positionPubKey: PublicKey, side: Side, poolConfig: PoolConfig, priceWithSlippage: ContractOraclePrice, sizeDelta: BN, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey
|
|
4943
|
+
increaseSize: (targetSymbol: string, collateralSymbol: string, positionPubKey: PublicKey, side: Side, poolConfig: PoolConfig, priceWithSlippage: ContractOraclePrice, sizeDelta: BN, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey) => Promise<{
|
|
4944
4944
|
instructions: TransactionInstruction[];
|
|
4945
4945
|
additionalSigners: Signer[];
|
|
4946
4946
|
}>;
|
|
4947
|
-
decreaseSize: (targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, priceWithSlippage: ContractOraclePrice, sizeDelta: BN, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey
|
|
4947
|
+
decreaseSize: (targetSymbol: string, collateralSymbol: string, side: Side, positionPubKey: PublicKey, poolConfig: PoolConfig, priceWithSlippage: ContractOraclePrice, sizeDelta: BN, privilege: Privilege, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey) => Promise<{
|
|
4948
4948
|
instructions: TransactionInstruction[];
|
|
4949
4949
|
additionalSigners: Signer[];
|
|
4950
4950
|
}>;
|
|
4951
|
-
addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
4951
|
+
addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, isWhitelistedUser?: boolean) => Promise<{
|
|
4952
4952
|
instructions: TransactionInstruction[];
|
|
4953
4953
|
additionalSigners: Signer[];
|
|
4954
4954
|
}>;
|
|
@@ -4975,7 +4975,7 @@ export declare class PerpetualsClient {
|
|
|
4975
4975
|
additionalSigners: Signer[];
|
|
4976
4976
|
}>;
|
|
4977
4977
|
setFeeShareBps: (poolConfig: PoolConfig, flpStakeAccountPks: PublicKey[]) => Promise<TransactionInstruction>;
|
|
4978
|
-
unstakeRequest: (unstakeAmount: BN, poolConfig: PoolConfig
|
|
4978
|
+
unstakeRequest: (unstakeAmount: BN, poolConfig: PoolConfig) => Promise<{
|
|
4979
4979
|
instructions: TransactionInstruction[];
|
|
4980
4980
|
additionalSigners: Signer[];
|
|
4981
4981
|
}>;
|
|
@@ -4995,11 +4995,11 @@ export declare class PerpetualsClient {
|
|
|
4995
4995
|
instructions: TransactionInstruction[];
|
|
4996
4996
|
additionalSigners: Signer[];
|
|
4997
4997
|
}>;
|
|
4998
|
-
migrateStake: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean
|
|
4998
|
+
migrateStake: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
|
4999
4999
|
instructions: TransactionInstruction[];
|
|
5000
5000
|
additionalSigners: Signer[];
|
|
5001
5001
|
}>;
|
|
5002
|
-
migrateFlp: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig
|
|
5002
|
+
migrateFlp: (amount: BN, rewardTokenMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
|
5003
5003
|
instructions: TransactionInstruction[];
|
|
5004
5004
|
additionalSigners: Signer[];
|
|
5005
5005
|
}>;
|
|
@@ -5027,7 +5027,7 @@ export declare class PerpetualsClient {
|
|
|
5027
5027
|
instructions: TransactionInstruction[];
|
|
5028
5028
|
additionalSigners: Signer[];
|
|
5029
5029
|
}>;
|
|
5030
|
-
collectTokenReward: (owner: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean
|
|
5030
|
+
collectTokenReward: (owner: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean) => Promise<{
|
|
5031
5031
|
instructions: TransactionInstruction[];
|
|
5032
5032
|
additionalSigners: Signer[];
|
|
5033
5033
|
}>;
|
|
@@ -5043,11 +5043,11 @@ export declare class PerpetualsClient {
|
|
|
5043
5043
|
instructions: TransactionInstruction[];
|
|
5044
5044
|
additionalSigners: Signer[];
|
|
5045
5045
|
}>;
|
|
5046
|
-
placeLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, limitPrice: ContractOraclePrice, reserveAmount: BN, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
5046
|
+
placeLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, limitPrice: ContractOraclePrice, reserveAmount: BN, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
5047
5047
|
instructions: TransactionInstruction[];
|
|
5048
5048
|
additionalSigners: Signer[];
|
|
5049
5049
|
}>;
|
|
5050
|
-
editLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, orderId: number, limitPrice: ContractOraclePrice, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?:
|
|
5050
|
+
editLimitOrder: (targetSymbol: string, collateralSymbol: string, reserveSymbol: string, receiveSymbol: string, side: Side, orderId: number, limitPrice: ContractOraclePrice, sizeAmount: BN, stopLossPrice: ContractOraclePrice, takeProfitPrice: ContractOraclePrice, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any) => Promise<{
|
|
5051
5051
|
instructions: TransactionInstruction[];
|
|
5052
5052
|
additionalSigners: Signer[];
|
|
5053
5053
|
}>;
|
|
@@ -5059,19 +5059,19 @@ export declare class PerpetualsClient {
|
|
|
5059
5059
|
instructions: TransactionInstruction[];
|
|
5060
5060
|
additionalSigners: Signer[];
|
|
5061
5061
|
}>;
|
|
5062
|
-
placeTriggerOrder: (targetSymbol: string, collateralSymbol: string, receiveSymbol: string, side: Side, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, poolConfig: PoolConfig
|
|
5062
|
+
placeTriggerOrder: (targetSymbol: string, collateralSymbol: string, receiveSymbol: string, side: Side, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, poolConfig: PoolConfig) => Promise<{
|
|
5063
5063
|
instructions: TransactionInstruction[];
|
|
5064
5064
|
additionalSigners: Signer[];
|
|
5065
5065
|
}>;
|
|
5066
|
-
editTriggerOrder: (targetSymbol: string, collateralSymbol: string, receiveSymbol: string, side: Side, orderId: number, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, poolConfig: PoolConfig
|
|
5066
|
+
editTriggerOrder: (targetSymbol: string, collateralSymbol: string, receiveSymbol: string, side: Side, orderId: number, triggerPrice: ContractOraclePrice, deltaSizeAmount: BN, isStopLoss: boolean, poolConfig: PoolConfig) => Promise<{
|
|
5067
5067
|
instructions: TransactionInstruction[];
|
|
5068
5068
|
additionalSigners: Signer[];
|
|
5069
5069
|
}>;
|
|
5070
|
-
cancelTriggerOrder: (targetSymbol: string, collateralSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig
|
|
5070
|
+
cancelTriggerOrder: (targetSymbol: string, collateralSymbol: string, side: Side, orderId: number, isStopLoss: boolean, poolConfig: PoolConfig) => Promise<{
|
|
5071
5071
|
instructions: TransactionInstruction[];
|
|
5072
5072
|
additionalSigners: Signer[];
|
|
5073
5073
|
}>;
|
|
5074
|
-
cancelAllTriggerOrders: (targetSymbol: string, collateralSymbol: string, side: Side, poolConfig: PoolConfig
|
|
5074
|
+
cancelAllTriggerOrders: (targetSymbol: string, collateralSymbol: string, side: Side, poolConfig: PoolConfig) => Promise<{
|
|
5075
5075
|
instructions: TransactionInstruction[];
|
|
5076
5076
|
additionalSigners: Signer[];
|
|
5077
5077
|
}>;
|
|
@@ -5088,7 +5088,7 @@ export declare class PerpetualsClient {
|
|
|
5088
5088
|
signature: string;
|
|
5089
5089
|
versionedTransaction: VersionedTransaction;
|
|
5090
5090
|
}>;
|
|
5091
|
-
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?:
|
|
5091
|
+
swap: (userInputTokenSymbol: string, userOutputTokenSymbol: string, amountIn: BN, minAmountOut: BN, poolConfig: PoolConfig, useFeesPool?: boolean, createUserATA?: boolean, unWrapSol?: boolean, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, isWhitelistedUser?: boolean) => Promise<{
|
|
5092
5092
|
instructions: TransactionInstruction[];
|
|
5093
5093
|
additionalSigners: Signer[];
|
|
5094
5094
|
}>;
|
|
@@ -5104,7 +5104,7 @@ export declare class PerpetualsClient {
|
|
|
5104
5104
|
setAdminSigners: (admins: PublicKey[], minSignatures: number) => Promise<void>;
|
|
5105
5105
|
addPool: (name: string, maxAumUsd: BN, permissions: Permissions, metadataSymbol: string, metadataTitle: string, metadataUri: string, stakingFeeShareBps: BN, vpVolumeFactor: number, stakingFeeBoostBps: BN[], minLpPriceUsd: BN, maxLpPriceUsd: BN, thresholdUsd: BN) => Promise<void>;
|
|
5106
5106
|
removePool: (name: string) => Promise<void>;
|
|
5107
|
-
addCustody: (poolName: string, tokenMint: PublicKey, isToken222: boolean, isStable: boolean, isVirtual: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[], depegAdjustment: boolean, rewardThreshold: BN, minReserveUsd: BN, limitPriceBufferBps: BN) => Promise<void>;
|
|
5107
|
+
addCustody: (poolName: string, tokenMint: PublicKey, isToken222: boolean, isStable: boolean, isVirtual: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[], depegAdjustment: boolean, rewardThreshold: BN, minReserveUsd: BN, limitPriceBufferBps: BN, inversePrice: boolean) => Promise<void>;
|
|
5108
5108
|
editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
|
|
5109
5109
|
removeCustody: (poolName: string, tokenMint: PublicKey, ratios: TokenRatios[], poolConfig: PoolConfig) => Promise<void>;
|
|
5110
5110
|
protocolWithdrawFees: (rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|