flash-sdk 11.11.5 → 11.11.6
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 +22 -22
- package/dist/PerpetualsClient.js +227 -200
- package/dist/PoolConfig.json +265 -17
- package/dist/idl/perpetuals.d.ts +9 -1
- package/dist/idl/perpetuals.js +9 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
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;
|
|
@@ -4883,7 +4883,9 @@ export declare class PerpetualsClient {
|
|
|
4883
4883
|
};
|
|
4884
4884
|
getIndexPriceAtParticularTime: (poolConfig: PoolConfig, targetPricesAtT1Ui: Number[], targetPricesAtT2Ui: Number[], tokenRatiosAtT2BN: BN[]) => string;
|
|
4885
4885
|
getUserClaimableRevenueAmount: (POOL_CONFIG: PoolConfig, userPublicKey: PublicKey, enableDebuglogs?: boolean) => Promise<BN>;
|
|
4886
|
-
|
|
4886
|
+
getLpTokenPriceView: (poolConfig: PoolConfig, includeRemainingAccounts?: boolean) => Promise<any>;
|
|
4887
|
+
getStakedLpTokenPrice: (poolKey: PublicKey, POOL_CONFIG: PoolConfig, includeRemainingAccounts?: boolean) => Promise<string>;
|
|
4888
|
+
getCompoundingLPTokenPrice: (poolKey: PublicKey, POOL_CONFIG: PoolConfig, includeRemainingAccounts?: boolean) => Promise<string>;
|
|
4887
4889
|
getAssetsUnderManagement: (poolKey: PublicKey, POOL_CONFIG: PoolConfig) => Promise<string>;
|
|
4888
4890
|
getAddLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, depositCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean, whitelist?: PublicKey | undefined) => Promise<{
|
|
4889
4891
|
amount: BN | undefined;
|
|
@@ -4895,7 +4897,6 @@ export declare class PerpetualsClient {
|
|
|
4895
4897
|
fee: BN;
|
|
4896
4898
|
error?: string;
|
|
4897
4899
|
}>;
|
|
4898
|
-
getCompoundingLPTokenPrice: (poolKey: PublicKey, POOL_CONFIG: PoolConfig) => Promise<string>;
|
|
4899
4900
|
getAddCompoundingLiquidityAmountAndFeeView: (amount: BN, poolKey: PublicKey, depositCustodyKey: PublicKey, POOL_CONFIG: PoolConfig, userPublicKey?: PublicKey | undefined, enableBackupOracle?: boolean, whitelist?: PublicKey) => Promise<{
|
|
4900
4901
|
amount: BN;
|
|
4901
4902
|
fee: BN;
|
|
@@ -4907,7 +4908,6 @@ export declare class PerpetualsClient {
|
|
|
4907
4908
|
getLiquidationPriceView: (positionAccountKey: PublicKey, poolConfig: PoolConfig) => Promise<any>;
|
|
4908
4909
|
getLiquidationStateView: (positionAccount: PublicKey, poolName: string, tokenMint: PublicKey, collateralMint: PublicKey, poolConfig: PoolConfig) => Promise<any>;
|
|
4909
4910
|
getCompoundingTokenDataView: (poolConfig: PoolConfig) => Promise<any>;
|
|
4910
|
-
getLpTokenPriceView: (poolConfig: PoolConfig) => Promise<any>;
|
|
4911
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[];
|
|
@@ -4948,15 +4948,15 @@ export declare class PerpetualsClient {
|
|
|
4948
4948
|
instructions: TransactionInstruction[];
|
|
4949
4949
|
additionalSigners: Signer[];
|
|
4950
4950
|
}>;
|
|
4951
|
-
addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, isWhitelistedUser?: boolean) => Promise<{
|
|
4951
|
+
addLiquidity: (payTokenSymbol: string, tokenAmountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, isWhitelistedUser?: boolean, includeRemainingAccounts?: boolean) => Promise<{
|
|
4952
4952
|
instructions: TransactionInstruction[];
|
|
4953
4953
|
additionalSigners: Signer[];
|
|
4954
4954
|
}>;
|
|
4955
|
-
addLiquidityAndStake: (inputSymbol: string, amountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, isWhitelistedUser?: boolean) => Promise<{
|
|
4955
|
+
addLiquidityAndStake: (inputSymbol: string, amountIn: BN, minLpAmountOut: BN, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, isWhitelistedUser?: boolean, includeRemainingAccounts?: boolean) => Promise<{
|
|
4956
4956
|
instructions: TransactionInstruction[];
|
|
4957
4957
|
additionalSigners: Signer[];
|
|
4958
4958
|
}>;
|
|
4959
|
-
removeLiquidity: (recieveTokenSymbol: string, liquidityAmountIn: BN, minTokenAmountOut: BN, poolConfig: PoolConfig, closeLpATA?: boolean, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, isWhitelistedUser?: boolean) => Promise<{
|
|
4959
|
+
removeLiquidity: (recieveTokenSymbol: string, liquidityAmountIn: BN, minTokenAmountOut: BN, poolConfig: PoolConfig, closeLpATA?: boolean, createUserATA?: boolean, closeUsersWSOLATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, isWhitelistedUser?: boolean, includeRemainingAccounts?: boolean) => Promise<{
|
|
4960
4960
|
instructions: TransactionInstruction[];
|
|
4961
4961
|
additionalSigners: Signer[];
|
|
4962
4962
|
}>;
|
|
@@ -4987,11 +4987,11 @@ export declare class PerpetualsClient {
|
|
|
4987
4987
|
instructions: TransactionInstruction[];
|
|
4988
4988
|
additionalSigners: Signer[];
|
|
4989
4989
|
}>;
|
|
4990
|
-
addCompoundingLiquidity: (amountIn: BN, minCompoundingAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, enableHeapSizeIx?: boolean, isWhitelistedUser?: boolean) => Promise<{
|
|
4990
|
+
addCompoundingLiquidity: (amountIn: BN, minCompoundingAmountOut: BN, inTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, skipBalanceChecks?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, enableHeapSizeIx?: boolean, isWhitelistedUser?: boolean, includeRemainingAccounts?: boolean) => Promise<{
|
|
4991
4991
|
instructions: TransactionInstruction[];
|
|
4992
4992
|
additionalSigners: Signer[];
|
|
4993
4993
|
}>;
|
|
4994
|
-
removeCompoundingLiquidity: (compoundingAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, enableHeapSizeIx?: boolean, isWhitelistedUser?: boolean) => Promise<{
|
|
4994
|
+
removeCompoundingLiquidity: (compoundingAmountIn: BN, minAmountOut: BN, outTokenSymbol: string, rewardTokenMint: PublicKey, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any, userPublicKey?: PublicKey | undefined, enableHeapSizeIx?: boolean, isWhitelistedUser?: boolean, includeRemainingAccounts?: boolean) => Promise<{
|
|
4995
4995
|
instructions: TransactionInstruction[];
|
|
4996
4996
|
additionalSigners: Signer[];
|
|
4997
4997
|
}>;
|
|
@@ -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<{
|