flash-sdk 10.0.0-alpha.0 → 10.0.0-alpha.2
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 +6 -18
- package/dist/PerpetualsClient.js +293 -484
- package/dist/PoolConfig.js +1 -1
- package/dist/PoolConfig.json +92 -3272
- package/dist/idl/perpetuals.d.ts +409 -529
- package/dist/idl/perpetuals.js +409 -529
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4721,14 +4721,6 @@ export declare class PerpetualsClient {
|
|
|
4721
4721
|
instructions: TransactionInstruction[];
|
|
4722
4722
|
additionalSigners: Signer[];
|
|
4723
4723
|
}>;
|
|
4724
|
-
updateNftAccount: (nftMint: PublicKey, updateReferer: boolean, updateBooster: boolean, flpStakeAccounts: PublicKey[]) => Promise<{
|
|
4725
|
-
instructions: TransactionInstruction[];
|
|
4726
|
-
additionalSigners: Signer[];
|
|
4727
|
-
}>;
|
|
4728
|
-
levelUp: (poolConfig: PoolConfig, nftMint: PublicKey, authorizationRulesAccount: PublicKey) => Promise<{
|
|
4729
|
-
instructions: TransactionInstruction[];
|
|
4730
|
-
additionalSigners: Signer[];
|
|
4731
|
-
}>;
|
|
4732
4724
|
depositStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
|
4733
4725
|
instructions: TransactionInstruction[];
|
|
4734
4726
|
additionalSigners: Signer[];
|
|
@@ -4772,14 +4764,6 @@ export declare class PerpetualsClient {
|
|
|
4772
4764
|
instructions: TransactionInstruction[];
|
|
4773
4765
|
additionalSigners: Signer[];
|
|
4774
4766
|
}>;
|
|
4775
|
-
burnAndClaim: (owner: PublicKey, nftMint: PublicKey, poolConfig: PoolConfig, createAta: boolean) => Promise<{
|
|
4776
|
-
instructions: TransactionInstruction[];
|
|
4777
|
-
additionalSigners: Signer[];
|
|
4778
|
-
}>;
|
|
4779
|
-
burnAndStake: (owner: PublicKey, feePayer: PublicKey, nftMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
|
4780
|
-
instructions: TransactionInstruction[];
|
|
4781
|
-
additionalSigners: Signer[];
|
|
4782
|
-
}>;
|
|
4783
4767
|
depositTokenStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
|
4784
4768
|
instructions: TransactionInstruction[];
|
|
4785
4769
|
additionalSigners: Signer[];
|
|
@@ -4905,11 +4889,11 @@ export declare class PerpetualsClient {
|
|
|
4905
4889
|
instructions: TransactionInstruction[];
|
|
4906
4890
|
additionalSigners: Signer[];
|
|
4907
4891
|
}>;
|
|
4908
|
-
setInternalOraclePrice: (tokenMint: PublicKey, price: BN, expo: number, conf: BN, ema: BN, publishTime: BN, poolConfig: PoolConfig) => Promise<{
|
|
4892
|
+
setInternalOraclePrice: (tokenMint: PublicKey, useCurrentTime: number, price: BN, expo: number, conf: BN, ema: BN, publishTime: BN, poolConfig: PoolConfig) => Promise<{
|
|
4909
4893
|
instructions: TransactionInstruction[];
|
|
4910
4894
|
additionalSigners: Signer[];
|
|
4911
4895
|
}>;
|
|
4912
|
-
setInternalOraclePriceBatch: (tokenMintList: PublicKey[], tokenInternalPrices: InternalPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
|
|
4896
|
+
setInternalOraclePriceBatch: (useCurrentTime: number, tokenMintList: PublicKey[], tokenInternalPrices: InternalPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
|
|
4913
4897
|
instructions: TransactionInstruction[];
|
|
4914
4898
|
additionalSigners: Signer[];
|
|
4915
4899
|
}>;
|
|
@@ -4941,6 +4925,10 @@ export declare class PerpetualsClient {
|
|
|
4941
4925
|
instructions: TransactionInstruction[];
|
|
4942
4926
|
additionalSigners: Signer[];
|
|
4943
4927
|
}>;
|
|
4928
|
+
withdrawUnclaimedTokens: (poolConfig: PoolConfig) => Promise<{
|
|
4929
|
+
instructions: TransactionInstruction[];
|
|
4930
|
+
additionalSigners: Signer[];
|
|
4931
|
+
}>;
|
|
4944
4932
|
initRevenueTokenAccount: (feeShareBps: BN, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
|
4945
4933
|
instructions: TransactionInstruction[];
|
|
4946
4934
|
additionalSigners: Signer[];
|