flash-sdk 9.0.2 → 9.9.0-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/OraclePrice.d.ts +0 -1
- package/dist/OrderAccount.d.ts +0 -1
- package/dist/PerpetualsClient.d.ts +24 -20
- package/dist/PerpetualsClient.js +344 -501
- package/dist/PoolAccount.d.ts +0 -1
- package/dist/PoolConfig.d.ts +2 -1
- package/dist/PoolConfig.js +10 -2
- package/dist/PoolConfig.json +1605 -396
- package/dist/PoolDataClient.d.ts +0 -1
- package/dist/PositionAccount.d.ts +0 -1
- package/dist/TokenStakeAccount.d.ts +0 -1
- package/dist/TokenVaultAccount.d.ts +0 -1
- package/dist/TradingAccount.d.ts +0 -1
- package/dist/ViewHelper.js +2 -2
- package/dist/backupOracle.js +4 -4
- package/dist/constants/index.d.ts +0 -1
- package/dist/idl/perpetuals.d.ts +226 -524
- package/dist/idl/perpetuals.js +225 -523
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +3 -3
- package/dist/utils/IdlCoder.js +17 -7
- package/dist/utils/alt.js +5 -6
- package/dist/utils/anchorCpiEvents.d.ts +0 -1
- 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,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="bn.js" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
1
|
import { Program, AnchorProvider, BN } from "@coral-xyz/anchor";
|
|
4
2
|
import { PublicKey, TransactionInstruction, Commitment, Signer, AddressLookupTableAccount, VersionedTransaction } from "@solana/web3.js";
|
|
5
3
|
import { PoolAccount } from "./PoolAccount";
|
|
@@ -43,6 +41,7 @@ export declare class PerpetualsClient {
|
|
|
43
41
|
bump: number;
|
|
44
42
|
};
|
|
45
43
|
addressLookupTables: AddressLookupTableAccount[];
|
|
44
|
+
pusherAddressLookupTables: AddressLookupTableAccount;
|
|
46
45
|
eventAuthority: {
|
|
47
46
|
publicKey: PublicKey;
|
|
48
47
|
bump: number;
|
|
@@ -261,6 +260,7 @@ export declare class PerpetualsClient {
|
|
|
261
260
|
conf: BN;
|
|
262
261
|
ema: BN;
|
|
263
262
|
publishTime: BN;
|
|
263
|
+
extOracleAccount: PublicKey;
|
|
264
264
|
market: PublicKey;
|
|
265
265
|
limitOrders: unknown;
|
|
266
266
|
takeProfitOrders: unknown;
|
|
@@ -602,6 +602,7 @@ export declare class PerpetualsClient {
|
|
|
602
602
|
conf: BN;
|
|
603
603
|
ema: BN;
|
|
604
604
|
publishTime: BN;
|
|
605
|
+
extOracleAccount: PublicKey;
|
|
605
606
|
market: PublicKey;
|
|
606
607
|
limitOrders: unknown;
|
|
607
608
|
takeProfitOrders: unknown;
|
|
@@ -942,6 +943,7 @@ export declare class PerpetualsClient {
|
|
|
942
943
|
conf: BN;
|
|
943
944
|
ema: BN;
|
|
944
945
|
publishTime: BN;
|
|
946
|
+
extOracleAccount: PublicKey;
|
|
945
947
|
market: PublicKey;
|
|
946
948
|
limitOrders: unknown;
|
|
947
949
|
takeProfitOrders: unknown;
|
|
@@ -1286,6 +1288,7 @@ export declare class PerpetualsClient {
|
|
|
1286
1288
|
conf: BN;
|
|
1287
1289
|
ema: BN;
|
|
1288
1290
|
publishTime: BN;
|
|
1291
|
+
extOracleAccount: PublicKey;
|
|
1289
1292
|
market: PublicKey;
|
|
1290
1293
|
limitOrders: unknown;
|
|
1291
1294
|
takeProfitOrders: unknown;
|
|
@@ -1629,6 +1632,7 @@ export declare class PerpetualsClient {
|
|
|
1629
1632
|
conf: BN;
|
|
1630
1633
|
ema: BN;
|
|
1631
1634
|
publishTime: BN;
|
|
1635
|
+
extOracleAccount: PublicKey;
|
|
1632
1636
|
market: PublicKey;
|
|
1633
1637
|
limitOrders: unknown;
|
|
1634
1638
|
takeProfitOrders: unknown;
|
|
@@ -1970,6 +1974,7 @@ export declare class PerpetualsClient {
|
|
|
1970
1974
|
conf: BN;
|
|
1971
1975
|
ema: BN;
|
|
1972
1976
|
publishTime: BN;
|
|
1977
|
+
extOracleAccount: PublicKey;
|
|
1973
1978
|
market: PublicKey;
|
|
1974
1979
|
limitOrders: unknown;
|
|
1975
1980
|
takeProfitOrders: unknown;
|
|
@@ -2310,6 +2315,7 @@ export declare class PerpetualsClient {
|
|
|
2310
2315
|
conf: BN;
|
|
2311
2316
|
ema: BN;
|
|
2312
2317
|
publishTime: BN;
|
|
2318
|
+
extOracleAccount: PublicKey;
|
|
2313
2319
|
market: PublicKey;
|
|
2314
2320
|
limitOrders: unknown;
|
|
2315
2321
|
takeProfitOrders: unknown;
|
|
@@ -2650,6 +2656,7 @@ export declare class PerpetualsClient {
|
|
|
2650
2656
|
conf: BN;
|
|
2651
2657
|
ema: BN;
|
|
2652
2658
|
publishTime: BN;
|
|
2659
|
+
extOracleAccount: PublicKey;
|
|
2653
2660
|
market: PublicKey;
|
|
2654
2661
|
limitOrders: unknown;
|
|
2655
2662
|
takeProfitOrders: unknown;
|
|
@@ -3037,6 +3044,7 @@ export declare class PerpetualsClient {
|
|
|
3037
3044
|
conf: BN;
|
|
3038
3045
|
ema: BN;
|
|
3039
3046
|
publishTime: BN;
|
|
3047
|
+
extOracleAccount: PublicKey;
|
|
3040
3048
|
market: PublicKey;
|
|
3041
3049
|
limitOrders: unknown;
|
|
3042
3050
|
takeProfitOrders: unknown;
|
|
@@ -3377,6 +3385,7 @@ export declare class PerpetualsClient {
|
|
|
3377
3385
|
conf: BN;
|
|
3378
3386
|
ema: BN;
|
|
3379
3387
|
publishTime: BN;
|
|
3388
|
+
extOracleAccount: PublicKey;
|
|
3380
3389
|
market: PublicKey;
|
|
3381
3390
|
limitOrders: unknown;
|
|
3382
3391
|
takeProfitOrders: unknown;
|
|
@@ -3717,6 +3726,7 @@ export declare class PerpetualsClient {
|
|
|
3717
3726
|
conf: BN;
|
|
3718
3727
|
ema: BN;
|
|
3719
3728
|
publishTime: BN;
|
|
3729
|
+
extOracleAccount: PublicKey;
|
|
3720
3730
|
market: PublicKey;
|
|
3721
3731
|
limitOrders: unknown;
|
|
3722
3732
|
takeProfitOrders: unknown;
|
|
@@ -4057,6 +4067,7 @@ export declare class PerpetualsClient {
|
|
|
4057
4067
|
conf: BN;
|
|
4058
4068
|
ema: BN;
|
|
4059
4069
|
publishTime: BN;
|
|
4070
|
+
extOracleAccount: PublicKey;
|
|
4060
4071
|
market: PublicKey;
|
|
4061
4072
|
limitOrders: unknown;
|
|
4062
4073
|
takeProfitOrders: unknown;
|
|
@@ -4397,6 +4408,7 @@ export declare class PerpetualsClient {
|
|
|
4397
4408
|
conf: BN;
|
|
4398
4409
|
ema: BN;
|
|
4399
4410
|
publishTime: BN;
|
|
4411
|
+
extOracleAccount: PublicKey;
|
|
4400
4412
|
market: PublicKey;
|
|
4401
4413
|
limitOrders: unknown;
|
|
4402
4414
|
takeProfitOrders: unknown;
|
|
@@ -4710,14 +4722,6 @@ export declare class PerpetualsClient {
|
|
|
4710
4722
|
instructions: TransactionInstruction[];
|
|
4711
4723
|
additionalSigners: Signer[];
|
|
4712
4724
|
}>;
|
|
4713
|
-
updateNftAccount: (nftMint: PublicKey, updateReferer: boolean, updateBooster: boolean, flpStakeAccounts: PublicKey[]) => Promise<{
|
|
4714
|
-
instructions: TransactionInstruction[];
|
|
4715
|
-
additionalSigners: Signer[];
|
|
4716
|
-
}>;
|
|
4717
|
-
levelUp: (poolConfig: PoolConfig, nftMint: PublicKey, authorizationRulesAccount: PublicKey) => Promise<{
|
|
4718
|
-
instructions: TransactionInstruction[];
|
|
4719
|
-
additionalSigners: Signer[];
|
|
4720
|
-
}>;
|
|
4721
4725
|
depositStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
|
4722
4726
|
instructions: TransactionInstruction[];
|
|
4723
4727
|
additionalSigners: Signer[];
|
|
@@ -4761,14 +4765,6 @@ export declare class PerpetualsClient {
|
|
|
4761
4765
|
instructions: TransactionInstruction[];
|
|
4762
4766
|
additionalSigners: Signer[];
|
|
4763
4767
|
}>;
|
|
4764
|
-
burnAndClaim: (owner: PublicKey, nftMint: PublicKey, poolConfig: PoolConfig, createAta: boolean) => Promise<{
|
|
4765
|
-
instructions: TransactionInstruction[];
|
|
4766
|
-
additionalSigners: Signer[];
|
|
4767
|
-
}>;
|
|
4768
|
-
burnAndStake: (owner: PublicKey, feePayer: PublicKey, nftMint: PublicKey, poolConfig: PoolConfig) => Promise<{
|
|
4769
|
-
instructions: TransactionInstruction[];
|
|
4770
|
-
additionalSigners: Signer[];
|
|
4771
|
-
}>;
|
|
4772
4768
|
depositTokenStake: (owner: PublicKey, feePayer: PublicKey, depositAmount: BN, poolConfig: PoolConfig) => Promise<{
|
|
4773
4769
|
instructions: TransactionInstruction[];
|
|
4774
4770
|
additionalSigners: Signer[];
|
|
@@ -4894,11 +4890,11 @@ export declare class PerpetualsClient {
|
|
|
4894
4890
|
instructions: TransactionInstruction[];
|
|
4895
4891
|
additionalSigners: Signer[];
|
|
4896
4892
|
}>;
|
|
4897
|
-
setInternalOraclePrice: (tokenMint: PublicKey, price: BN, expo: number, conf: BN, ema: BN, publishTime: BN, poolConfig: PoolConfig) => Promise<{
|
|
4893
|
+
setInternalOraclePrice: (tokenMint: PublicKey, useCurrentTime: number, price: BN, expo: number, conf: BN, ema: BN, publishTime: BN, poolConfig: PoolConfig) => Promise<{
|
|
4898
4894
|
instructions: TransactionInstruction[];
|
|
4899
4895
|
additionalSigners: Signer[];
|
|
4900
4896
|
}>;
|
|
4901
|
-
setInternalOraclePriceBatch: (tokenMintList: PublicKey[], tokenInternalPrices: InternalPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
|
|
4897
|
+
setInternalOraclePriceBatch: (useCurrentTime: number, tokenMintList: PublicKey[], tokenInternalPrices: InternalPrice[], POOL_CONFIGS: PoolConfig[]) => Promise<{
|
|
4902
4898
|
instructions: TransactionInstruction[];
|
|
4903
4899
|
additionalSigners: Signer[];
|
|
4904
4900
|
}>;
|
|
@@ -4930,6 +4926,10 @@ export declare class PerpetualsClient {
|
|
|
4930
4926
|
instructions: TransactionInstruction[];
|
|
4931
4927
|
additionalSigners: Signer[];
|
|
4932
4928
|
}>;
|
|
4929
|
+
withdrawUnclaimedTokens: (poolConfig: PoolConfig) => Promise<{
|
|
4930
|
+
instructions: TransactionInstruction[];
|
|
4931
|
+
additionalSigners: Signer[];
|
|
4932
|
+
}>;
|
|
4933
4933
|
initRevenueTokenAccount: (feeShareBps: BN, rewardSymbol: string, poolConfig: PoolConfig) => Promise<{
|
|
4934
4934
|
instructions: TransactionInstruction[];
|
|
4935
4935
|
additionalSigners: Signer[];
|
|
@@ -4946,4 +4946,8 @@ export declare class PerpetualsClient {
|
|
|
4946
4946
|
instructions: TransactionInstruction[];
|
|
4947
4947
|
additionalSigners: Signer[];
|
|
4948
4948
|
}>;
|
|
4949
|
+
resizeInternalOracle: (extOracle: PublicKey, tokenMint: PublicKey, intOracleAccount: PublicKey) => Promise<{
|
|
4950
|
+
instructions: TransactionInstruction[];
|
|
4951
|
+
additionalSigners: Signer[];
|
|
4952
|
+
}>;
|
|
4949
4953
|
}
|