flash-sdk 15.5.5 → 15.8.1
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/PerpetualsClient.d.ts +5 -20
- package/dist/PerpetualsClient.js +260 -320
- package/dist/PoolConfig.json +4 -518
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -5
|
@@ -776,26 +776,11 @@ export declare class PerpetualsClient {
|
|
|
776
776
|
}>;
|
|
777
777
|
init: (admins: PublicKey[], config: any) => Promise<void>;
|
|
778
778
|
setAdminSigners: (admins: PublicKey[], minSignatures: number) => Promise<void>;
|
|
779
|
-
addPool: (name: string,
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
instructions: TransactionInstruction[];
|
|
785
|
-
additionalSigners: Signer[];
|
|
786
|
-
}>;
|
|
787
|
-
addCustody: (poolName: string, tokenMint: PublicKey, isToken22: 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<{
|
|
788
|
-
instructions: TransactionInstruction[];
|
|
789
|
-
additionalSigners: Signer[];
|
|
790
|
-
}>;
|
|
791
|
-
editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<{
|
|
792
|
-
instructions: TransactionInstruction[];
|
|
793
|
-
additionalSigners: Signer[];
|
|
794
|
-
}>;
|
|
795
|
-
removeCustody: (poolName: string, tokenMint: PublicKey, ratios: TokenRatios[], poolConfig: PoolConfig) => Promise<{
|
|
796
|
-
instructions: TransactionInstruction[];
|
|
797
|
-
additionalSigners: Signer[];
|
|
798
|
-
}>;
|
|
779
|
+
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>;
|
|
780
|
+
removePool: (name: string) => Promise<void>;
|
|
781
|
+
addCustody: (poolName: string, tokenMint: PublicKey, isToken22: 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>;
|
|
782
|
+
editCustody: (poolName: string, tokenMint: PublicKey, isStable: boolean, oracle: OracleParams, pricing: PricingParams, permissions: Permissions, fees: Fees, borrowRate: BorrowRateParams, ratios: TokenRatios[]) => Promise<void>;
|
|
783
|
+
removeCustody: (poolName: string, tokenMint: PublicKey, ratios: TokenRatios[], poolConfig: PoolConfig) => Promise<void>;
|
|
799
784
|
protocolWithdrawFees: (rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
|
800
785
|
instructions: TransactionInstruction[];
|
|
801
786
|
additionalSigners: Signer[];
|