flash-sdk 2.45.3 → 2.46.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/PerpetualsClient.d.ts +18 -13
- package/dist/PerpetualsClient.js +331 -202
- package/dist/idl/perpetuals.d.ts +102 -1
- package/dist/idl/perpetuals.js +102 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -209,7 +209,7 @@ export declare class PerpetualsClient {
|
|
209
209
|
rewardSnapshot: BN;
|
210
210
|
unclaimedRewards: BN;
|
211
211
|
feeShareBps: BN;
|
212
|
-
isInitialized: boolean;
|
212
|
+
isInitialized: number | boolean;
|
213
213
|
targetCustody: PublicKey;
|
214
214
|
collateralCustody: PublicKey;
|
215
215
|
side: {
|
@@ -532,7 +532,7 @@ export declare class PerpetualsClient {
|
|
532
532
|
rewardSnapshot: BN;
|
533
533
|
unclaimedRewards: BN;
|
534
534
|
feeShareBps: BN;
|
535
|
-
isInitialized: boolean;
|
535
|
+
isInitialized: number | boolean;
|
536
536
|
targetCustody: PublicKey;
|
537
537
|
collateralCustody: PublicKey;
|
538
538
|
side: {
|
@@ -854,7 +854,7 @@ export declare class PerpetualsClient {
|
|
854
854
|
rewardSnapshot: BN;
|
855
855
|
unclaimedRewards: BN;
|
856
856
|
feeShareBps: BN;
|
857
|
-
isInitialized: boolean;
|
857
|
+
isInitialized: number | boolean;
|
858
858
|
targetCustody: PublicKey;
|
859
859
|
collateralCustody: PublicKey;
|
860
860
|
side: {
|
@@ -1180,7 +1180,7 @@ export declare class PerpetualsClient {
|
|
1180
1180
|
rewardSnapshot: BN;
|
1181
1181
|
unclaimedRewards: BN;
|
1182
1182
|
feeShareBps: BN;
|
1183
|
-
isInitialized: boolean;
|
1183
|
+
isInitialized: number | boolean;
|
1184
1184
|
targetCustody: PublicKey;
|
1185
1185
|
collateralCustody: PublicKey;
|
1186
1186
|
side: {
|
@@ -1505,7 +1505,7 @@ export declare class PerpetualsClient {
|
|
1505
1505
|
rewardSnapshot: BN;
|
1506
1506
|
unclaimedRewards: BN;
|
1507
1507
|
feeShareBps: BN;
|
1508
|
-
isInitialized: boolean;
|
1508
|
+
isInitialized: number | boolean;
|
1509
1509
|
targetCustody: PublicKey;
|
1510
1510
|
collateralCustody: PublicKey;
|
1511
1511
|
side: {
|
@@ -1827,7 +1827,7 @@ export declare class PerpetualsClient {
|
|
1827
1827
|
rewardSnapshot: BN;
|
1828
1828
|
unclaimedRewards: BN;
|
1829
1829
|
feeShareBps: BN;
|
1830
|
-
isInitialized: boolean;
|
1830
|
+
isInitialized: number | boolean;
|
1831
1831
|
targetCustody: PublicKey;
|
1832
1832
|
collateralCustody: PublicKey;
|
1833
1833
|
side: {
|
@@ -2149,7 +2149,7 @@ export declare class PerpetualsClient {
|
|
2149
2149
|
rewardSnapshot: BN;
|
2150
2150
|
unclaimedRewards: BN;
|
2151
2151
|
feeShareBps: BN;
|
2152
|
-
isInitialized: boolean;
|
2152
|
+
isInitialized: number | boolean;
|
2153
2153
|
targetCustody: PublicKey;
|
2154
2154
|
collateralCustody: PublicKey;
|
2155
2155
|
side: {
|
@@ -2471,7 +2471,7 @@ export declare class PerpetualsClient {
|
|
2471
2471
|
rewardSnapshot: BN;
|
2472
2472
|
unclaimedRewards: BN;
|
2473
2473
|
feeShareBps: BN;
|
2474
|
-
isInitialized: boolean;
|
2474
|
+
isInitialized: number | boolean;
|
2475
2475
|
targetCustody: PublicKey;
|
2476
2476
|
collateralCustody: PublicKey;
|
2477
2477
|
side: {
|
@@ -2843,7 +2843,7 @@ export declare class PerpetualsClient {
|
|
2843
2843
|
rewardSnapshot: BN;
|
2844
2844
|
unclaimedRewards: BN;
|
2845
2845
|
feeShareBps: BN;
|
2846
|
-
isInitialized: boolean;
|
2846
|
+
isInitialized: number | boolean;
|
2847
2847
|
targetCustody: PublicKey;
|
2848
2848
|
collateralCustody: PublicKey;
|
2849
2849
|
side: {
|
@@ -3165,7 +3165,7 @@ export declare class PerpetualsClient {
|
|
3165
3165
|
rewardSnapshot: BN;
|
3166
3166
|
unclaimedRewards: BN;
|
3167
3167
|
feeShareBps: BN;
|
3168
|
-
isInitialized: boolean;
|
3168
|
+
isInitialized: number | boolean;
|
3169
3169
|
targetCustody: PublicKey;
|
3170
3170
|
collateralCustody: PublicKey;
|
3171
3171
|
side: {
|
@@ -3487,7 +3487,7 @@ export declare class PerpetualsClient {
|
|
3487
3487
|
rewardSnapshot: BN;
|
3488
3488
|
unclaimedRewards: BN;
|
3489
3489
|
feeShareBps: BN;
|
3490
|
-
isInitialized: boolean;
|
3490
|
+
isInitialized: number | boolean;
|
3491
3491
|
targetCustody: PublicKey;
|
3492
3492
|
collateralCustody: PublicKey;
|
3493
3493
|
side: {
|
@@ -3809,7 +3809,7 @@ export declare class PerpetualsClient {
|
|
3809
3809
|
rewardSnapshot: BN;
|
3810
3810
|
unclaimedRewards: BN;
|
3811
3811
|
feeShareBps: BN;
|
3812
|
-
isInitialized: boolean;
|
3812
|
+
isInitialized: number | boolean;
|
3813
3813
|
targetCustody: PublicKey;
|
3814
3814
|
collateralCustody: PublicKey;
|
3815
3815
|
side: {
|
@@ -4131,7 +4131,7 @@ export declare class PerpetualsClient {
|
|
4131
4131
|
rewardSnapshot: BN;
|
4132
4132
|
unclaimedRewards: BN;
|
4133
4133
|
feeShareBps: BN;
|
4134
|
-
isInitialized: boolean;
|
4134
|
+
isInitialized: number | boolean;
|
4135
4135
|
targetCustody: PublicKey;
|
4136
4136
|
collateralCustody: PublicKey;
|
4137
4137
|
side: {
|
@@ -4514,6 +4514,7 @@ export declare class PerpetualsClient {
|
|
4514
4514
|
}>;
|
4515
4515
|
refreshStakeWithAllFlpStakeAccounts: (poolConfig: PoolConfig) => Promise<TransactionInstruction[]>;
|
4516
4516
|
refreshStake: (rewardSymbol: string, poolConfig: PoolConfig, flpStakeAccountPks: PublicKey[]) => Promise<TransactionInstruction>;
|
4517
|
+
migrateUnclaimedReward: (rewardSymbol: string, poolConfig: PoolConfig, flpStakeAccountPks: PublicKey[]) => Promise<TransactionInstruction>;
|
4517
4518
|
unstakeInstant: (rewardSymbol: string, unstakeAmount: BN, poolConfig: PoolConfig) => Promise<{
|
4518
4519
|
instructions: TransactionInstruction[];
|
4519
4520
|
additionalSigners: Signer[];
|
@@ -4635,6 +4636,10 @@ export declare class PerpetualsClient {
|
|
4635
4636
|
instructions: TransactionInstruction[];
|
4636
4637
|
additionalSigners: Signer[];
|
4637
4638
|
}>;
|
4639
|
+
cancelAllTriggerOrders: (targetSymbol: string, collateralSymbol: string, side: Side, poolConfig: PoolConfig) => Promise<{
|
4640
|
+
instructions: TransactionInstruction[];
|
4641
|
+
additionalSigners: Signer[];
|
4642
|
+
}>;
|
4638
4643
|
executeTriggerWithSwap: (owner: PublicKey, targetSymbol: string, collateralSymbol: string, receivingSymbol: string, side: Side, orderId: number, isStopLoss: boolean, privilege: Privilege, poolConfig: PoolConfig, createUserATA?: boolean, ephemeralSignerPubkey?: any, tokenStakeAccount?: PublicKey, userReferralAccount?: PublicKey, rebateTokenAccount?: PublicKey) => Promise<{
|
4639
4644
|
instructions: TransactionInstruction[];
|
4640
4645
|
additionalSigners: Signer[];
|