@streamflow/staking 11.1.0-alpha.p335.6615f0a → 11.1.0-alpha.p335.b571df3
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/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +6 -6
- package/dist/esm/index.d.ts +6 -6
- package/dist/esm/index.js.map +1 -1
- package/package.json +4 -4
package/dist/cjs/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IdlAccounts, Address, Program, ProgramAccount, Idl, AccountsCoder } from '@coral-xyz/anchor';
|
|
2
2
|
import { PublicKey, Keypair, Connection, Commitment, ConnectionConfig, TransactionInstruction } from '@solana/web3.js';
|
|
3
|
-
import { ICluster, ITransactionExt, ITransactionResult } from '@streamflow/common';
|
|
3
|
+
import { ICluster, ITransactionExt, ITransactionResult, IPrepareResult } from '@streamflow/common';
|
|
4
4
|
import PQueue from 'p-queue';
|
|
5
5
|
import BN from 'bn.js';
|
|
6
6
|
import { FeeManager } from './solana/descriptor/fee_manager.cjs';
|
|
@@ -3493,6 +3493,9 @@ interface CreateFundDelegateArgs extends TokenProgram {
|
|
|
3493
3493
|
period: BN;
|
|
3494
3494
|
expiryTs: BN;
|
|
3495
3495
|
}
|
|
3496
|
+
interface CreateFundDelegatePrepareResult extends IPrepareResult {
|
|
3497
|
+
tokenAccount: Address;
|
|
3498
|
+
}
|
|
3496
3499
|
interface CreateFundDelegateResult extends ITransactionResult {
|
|
3497
3500
|
tokenAccount: Address;
|
|
3498
3501
|
}
|
|
@@ -3633,10 +3636,7 @@ declare class SolanaStakingClient {
|
|
|
3633
3636
|
ixs: TransactionInstruction[];
|
|
3634
3637
|
}>;
|
|
3635
3638
|
createFundDelegate(data: CreateFundDelegateArgs, extParams: IInteractExt): Promise<CreateFundDelegateResult>;
|
|
3636
|
-
prepareCreateFundDelegateInstructions({ rewardPool, startTs, period, expiryTs, tokenProgramId }: CreateFundDelegateArgs, extParams: IInteractExt): Promise<
|
|
3637
|
-
ixs: TransactionInstruction[];
|
|
3638
|
-
tokenAccount: PublicKey;
|
|
3639
|
-
}>;
|
|
3639
|
+
prepareCreateFundDelegateInstructions({ rewardPool, startTs, period, expiryTs, tokenProgramId }: CreateFundDelegateArgs, extParams: IInteractExt): Promise<CreateFundDelegatePrepareResult>;
|
|
3640
3640
|
updateRewardPool(data: UpdateRewardPoolArgs, extParams: IInteractExt): Promise<{
|
|
3641
3641
|
ixs: TransactionInstruction[];
|
|
3642
3642
|
txId: string;
|
|
@@ -3697,4 +3697,4 @@ declare function calculateAmountWithTransferFees(connection: Connection, transfe
|
|
|
3697
3697
|
|
|
3698
3698
|
declare const calculateStakeWeight: (minDuration: BN, maxDuration: BN, maxWeight: BN, duration: BN) => BN;
|
|
3699
3699
|
|
|
3700
|
-
export { type BaseStakePoolArgs, type ClaimRewardPoolArgs, type CloseRewardEntryArgs, type CloseStakeEntryArgs, type CreateFundDelegateArgs, type CreateFundDelegateResult, type CreateRewardEntryArgs, type CreateRewardPoolArgs, type CreateStakePoolArgs, type DefaultFeeValueConfig, type FeeValue, type FundPoolArgs, type IInteractExt, type RewardEntry, RewardEntryAccumulator, type RewardPool, SolanaStakingClient, type StakeAndCreateEntriesArgs, type StakeArgs, type StakeEntry, type StakePool, type UnstakeAndClaimArgs, type UnstakeAndCloseArgs, type UnstakeArgs, type UpdateRewardPoolArgs, calcRewards, calculateAmountWithTransferFees, calculateDecimalsShift, calculateFeeAmount, calculateRewardAmountFromRate, calculateRewardAmountFromValue, calculateRewardRateFromAmount, calculateStakeWeight, constants, deriveConfigPDA, deriveFeeValuePDA, deriveFundDelegatePDA, deriveRewardEntryPDA, deriveRewardPoolPDA, deriveRewardVaultPDA, deriveStakeEntryPDA, deriveStakeMintPDA, deriveStakePoolPDA, deriveStakeVaultPDA };
|
|
3700
|
+
export { type BaseStakePoolArgs, type ClaimRewardPoolArgs, type CloseRewardEntryArgs, type CloseStakeEntryArgs, type CreateFundDelegateArgs, type CreateFundDelegatePrepareResult, type CreateFundDelegateResult, type CreateRewardEntryArgs, type CreateRewardPoolArgs, type CreateStakePoolArgs, type DefaultFeeValueConfig, type FeeValue, type FundPoolArgs, type IInteractExt, type RewardEntry, RewardEntryAccumulator, type RewardPool, SolanaStakingClient, type StakeAndCreateEntriesArgs, type StakeArgs, type StakeEntry, type StakePool, type UnstakeAndClaimArgs, type UnstakeAndCloseArgs, type UnstakeArgs, type UpdateRewardPoolArgs, calcRewards, calculateAmountWithTransferFees, calculateDecimalsShift, calculateFeeAmount, calculateRewardAmountFromRate, calculateRewardAmountFromValue, calculateRewardRateFromAmount, calculateStakeWeight, constants, deriveConfigPDA, deriveFeeValuePDA, deriveFundDelegatePDA, deriveRewardEntryPDA, deriveRewardPoolPDA, deriveRewardVaultPDA, deriveStakeEntryPDA, deriveStakeMintPDA, deriveStakePoolPDA, deriveStakeVaultPDA };
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IdlAccounts, Address, Program, ProgramAccount, Idl, AccountsCoder } from '@coral-xyz/anchor';
|
|
2
2
|
import { PublicKey, Keypair, Connection, Commitment, ConnectionConfig, TransactionInstruction } from '@solana/web3.js';
|
|
3
|
-
import { ICluster, ITransactionExt, ITransactionResult } from '@streamflow/common';
|
|
3
|
+
import { ICluster, ITransactionExt, ITransactionResult, IPrepareResult } from '@streamflow/common';
|
|
4
4
|
import PQueue from 'p-queue';
|
|
5
5
|
import BN from 'bn.js';
|
|
6
6
|
import { FeeManager } from './solana/descriptor/fee_manager.js';
|
|
@@ -3493,6 +3493,9 @@ interface CreateFundDelegateArgs extends TokenProgram {
|
|
|
3493
3493
|
period: BN;
|
|
3494
3494
|
expiryTs: BN;
|
|
3495
3495
|
}
|
|
3496
|
+
interface CreateFundDelegatePrepareResult extends IPrepareResult {
|
|
3497
|
+
tokenAccount: Address;
|
|
3498
|
+
}
|
|
3496
3499
|
interface CreateFundDelegateResult extends ITransactionResult {
|
|
3497
3500
|
tokenAccount: Address;
|
|
3498
3501
|
}
|
|
@@ -3633,10 +3636,7 @@ declare class SolanaStakingClient {
|
|
|
3633
3636
|
ixs: TransactionInstruction[];
|
|
3634
3637
|
}>;
|
|
3635
3638
|
createFundDelegate(data: CreateFundDelegateArgs, extParams: IInteractExt): Promise<CreateFundDelegateResult>;
|
|
3636
|
-
prepareCreateFundDelegateInstructions({ rewardPool, startTs, period, expiryTs, tokenProgramId }: CreateFundDelegateArgs, extParams: IInteractExt): Promise<
|
|
3637
|
-
ixs: TransactionInstruction[];
|
|
3638
|
-
tokenAccount: PublicKey;
|
|
3639
|
-
}>;
|
|
3639
|
+
prepareCreateFundDelegateInstructions({ rewardPool, startTs, period, expiryTs, tokenProgramId }: CreateFundDelegateArgs, extParams: IInteractExt): Promise<CreateFundDelegatePrepareResult>;
|
|
3640
3640
|
updateRewardPool(data: UpdateRewardPoolArgs, extParams: IInteractExt): Promise<{
|
|
3641
3641
|
ixs: TransactionInstruction[];
|
|
3642
3642
|
txId: string;
|
|
@@ -3697,4 +3697,4 @@ declare function calculateAmountWithTransferFees(connection: Connection, transfe
|
|
|
3697
3697
|
|
|
3698
3698
|
declare const calculateStakeWeight: (minDuration: BN, maxDuration: BN, maxWeight: BN, duration: BN) => BN;
|
|
3699
3699
|
|
|
3700
|
-
export { type BaseStakePoolArgs, type ClaimRewardPoolArgs, type CloseRewardEntryArgs, type CloseStakeEntryArgs, type CreateFundDelegateArgs, type CreateFundDelegateResult, type CreateRewardEntryArgs, type CreateRewardPoolArgs, type CreateStakePoolArgs, type DefaultFeeValueConfig, type FeeValue, type FundPoolArgs, type IInteractExt, type RewardEntry, RewardEntryAccumulator, type RewardPool, SolanaStakingClient, type StakeAndCreateEntriesArgs, type StakeArgs, type StakeEntry, type StakePool, type UnstakeAndClaimArgs, type UnstakeAndCloseArgs, type UnstakeArgs, type UpdateRewardPoolArgs, calcRewards, calculateAmountWithTransferFees, calculateDecimalsShift, calculateFeeAmount, calculateRewardAmountFromRate, calculateRewardAmountFromValue, calculateRewardRateFromAmount, calculateStakeWeight, constants, deriveConfigPDA, deriveFeeValuePDA, deriveFundDelegatePDA, deriveRewardEntryPDA, deriveRewardPoolPDA, deriveRewardVaultPDA, deriveStakeEntryPDA, deriveStakeMintPDA, deriveStakePoolPDA, deriveStakeVaultPDA };
|
|
3700
|
+
export { type BaseStakePoolArgs, type ClaimRewardPoolArgs, type CloseRewardEntryArgs, type CloseStakeEntryArgs, type CreateFundDelegateArgs, type CreateFundDelegatePrepareResult, type CreateFundDelegateResult, type CreateRewardEntryArgs, type CreateRewardPoolArgs, type CreateStakePoolArgs, type DefaultFeeValueConfig, type FeeValue, type FundPoolArgs, type IInteractExt, type RewardEntry, RewardEntryAccumulator, type RewardPool, SolanaStakingClient, type StakeAndCreateEntriesArgs, type StakeArgs, type StakeEntry, type StakePool, type UnstakeAndClaimArgs, type UnstakeAndCloseArgs, type UnstakeArgs, type UpdateRewardPoolArgs, calcRewards, calculateAmountWithTransferFees, calculateDecimalsShift, calculateFeeAmount, calculateRewardAmountFromRate, calculateRewardAmountFromValue, calculateRewardRateFromAmount, calculateStakeWeight, constants, deriveConfigPDA, deriveFeeValuePDA, deriveFundDelegatePDA, deriveRewardEntryPDA, deriveRewardPoolPDA, deriveRewardVaultPDA, deriveStakeEntryPDA, deriveStakeMintPDA, deriveStakePoolPDA, deriveStakeVaultPDA };
|