flash-sdk 10.6.0 → 10.6.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/OraclePrice.d.ts +1 -0
- package/dist/OrderAccount.d.ts +1 -0
- package/dist/PerpetualsClient.d.ts +6 -16
- package/dist/PerpetualsClient.js +273 -472
- package/dist/PoolAccount.d.ts +1 -0
- package/dist/PoolDataClient.d.ts +1 -0
- package/dist/PositionAccount.d.ts +1 -0
- package/dist/TokenStakeAccount.d.ts +1 -0
- package/dist/TokenVaultAccount.d.ts +1 -0
- package/dist/TradingAccount.d.ts +1 -0
- package/dist/ViewHelper.js +2 -2
- package/dist/backupOracle.js +4 -4
- package/dist/constants/index.d.ts +1 -0
- package/dist/idl/perpetuals.d.ts +72 -505
- package/dist/idl/perpetuals.js +72 -505
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.js +3 -3
- package/dist/utils/IdlCoder.js +7 -17
- package/dist/utils/alt.js +6 -5
- package/dist/utils/anchorCpiEvents.d.ts +1 -0
- package/dist/utils/anchorCpiEvents.js +4 -4
- package/dist/utils/index.js +6 -6
- package/dist/utils/rpc.js +9 -9
- package/package.json +1 -1
package/dist/OraclePrice.d.ts
CHANGED
package/dist/OrderAccount.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference types="bn.js" />
|
|
2
|
+
/// <reference types="node" />
|
|
1
3
|
import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
|
|
2
4
|
import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
|
|
3
5
|
import { PoolAccount } from "./PoolAccount";
|
|
@@ -4721,14 +4723,6 @@ export declare class PerpetualsClient {
|
|
|
4721
4723
|
instructions: TransactionInstruction[];
|
|
4722
4724
|
additionalSigners: Signer[];
|
|
4723
4725
|
}>;
|
|
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
4726
|
depositStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
|
4733
4727
|
instructions: TransactionInstruction[];
|
|
4734
4728
|
additionalSigners: Signer[];
|
|
@@ -4772,14 +4766,6 @@ export declare class PerpetualsClient {
|
|
|
4772
4766
|
instructions: TransactionInstruction[];
|
|
4773
4767
|
additionalSigners: Signer[];
|
|
4774
4768
|
}>;
|
|
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
4769
|
depositTokenStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
|
4784
4770
|
instructions: TransactionInstruction[];
|
|
4785
4771
|
additionalSigners: Signer[];
|
|
@@ -4941,6 +4927,10 @@ export declare class PerpetualsClient {
|
|
|
4941
4927
|
instructions: TransactionInstruction[];
|
|
4942
4928
|
additionalSigners: Signer[];
|
|
4943
4929
|
}>;
|
|
4930
|
+
withdrawUnclaimedTokens: (poolConfig: PoolConfig) => Promise<{
|
|
4931
|
+
instructions: TransactionInstruction[];
|
|
4932
|
+
additionalSigners: Signer[];
|
|
4933
|
+
}>;
|
|
4944
4934
|
initRevenueTokenAccount: (feeShareBps: BN, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
|
4945
4935
|
instructions: TransactionInstruction[];
|
|
4946
4936
|
additionalSigners: Signer[];
|