@pump-fun/pump-sdk 1.18.5 → 1.18.6
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/esm/index.js +2146 -324
- package/dist/index.d.mts +46 -40
- package/dist/index.d.ts +46 -40
- package/dist/index.js +2116 -327
- package/package.json +2 -2
- package/src/index.ts +2 -11
- package/src/onlineSdk.ts +428 -0
- package/src/pda.ts +23 -51
- package/src/sdk.ts +9 -392
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BN from 'bn.js';
|
|
2
|
+
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
3
|
import { PublicKey, PublicKeyInitData, Connection, AccountInfo, TransactionInstruction } from '@solana/web3.js';
|
|
3
4
|
import { Program } from '@coral-xyz/anchor';
|
|
4
5
|
|
|
@@ -9581,28 +9582,23 @@ declare function bondingCurveMarketCap({ mintSupply, virtualSolReserves, virtual
|
|
|
9581
9582
|
virtualTokenReserves: BN;
|
|
9582
9583
|
}): BN;
|
|
9583
9584
|
|
|
9584
|
-
declare
|
|
9585
|
-
declare
|
|
9585
|
+
declare const GLOBAL_PDA: PublicKey;
|
|
9586
|
+
declare const PUMP_FEE_CONFIG_PDA: PublicKey;
|
|
9587
|
+
declare const GLOBAL_VOLUME_ACCUMULATOR_PDA: PublicKey;
|
|
9586
9588
|
declare function bondingCurvePda(mint: PublicKeyInitData): PublicKey;
|
|
9587
9589
|
declare function creatorVaultPda(creator: PublicKey): PublicKey;
|
|
9588
|
-
declare function pumpPoolAuthorityPda(mint: PublicKey):
|
|
9590
|
+
declare function pumpPoolAuthorityPda(mint: PublicKey): PublicKey;
|
|
9589
9591
|
declare const CANONICAL_POOL_INDEX = 0;
|
|
9590
|
-
declare function canonicalPumpPoolPda(mint: PublicKey):
|
|
9591
|
-
declare function
|
|
9592
|
-
declare function userVolumeAccumulatorPda(user: PublicKey): [PublicKey, number];
|
|
9592
|
+
declare function canonicalPumpPoolPda(mint: PublicKey): PublicKey;
|
|
9593
|
+
declare function userVolumeAccumulatorPda(user: PublicKey): PublicKey;
|
|
9593
9594
|
|
|
9594
9595
|
declare function getPumpProgram(connection: Connection): Program<Pump>;
|
|
9595
9596
|
declare const PUMP_PROGRAM_ID: PublicKey;
|
|
9596
9597
|
declare const PUMP_AMM_PROGRAM_ID: PublicKey;
|
|
9597
9598
|
declare const BONDING_CURVE_NEW_SIZE = 150;
|
|
9598
9599
|
declare class PumpSdk {
|
|
9599
|
-
private readonly connection;
|
|
9600
|
-
private readonly pumpProgram;
|
|
9601
9600
|
private readonly offlinePumpProgram;
|
|
9602
|
-
|
|
9603
|
-
private readonly pumpAmmAdminSdk;
|
|
9604
|
-
constructor(connection: Connection);
|
|
9605
|
-
programId(): PublicKey;
|
|
9601
|
+
constructor();
|
|
9606
9602
|
decodeGlobal(accountInfo: AccountInfo<Buffer>): Global;
|
|
9607
9603
|
decodeFeeConfig(accountInfo: AccountInfo<Buffer>): FeeConfig;
|
|
9608
9604
|
decodeBondingCurve(accountInfo: AccountInfo<Buffer>): BondingCurve;
|
|
@@ -9610,21 +9606,6 @@ declare class PumpSdk {
|
|
|
9610
9606
|
decodeGlobalVolumeAccumulator(accountInfo: AccountInfo<Buffer>): GlobalVolumeAccumulator;
|
|
9611
9607
|
decodeUserVolumeAccumulator(accountInfo: AccountInfo<Buffer>): UserVolumeAccumulator;
|
|
9612
9608
|
decodeUserVolumeAccumulatorNullable(accountInfo: AccountInfo<Buffer>): UserVolumeAccumulator | null;
|
|
9613
|
-
fetchGlobal(): Promise<Global>;
|
|
9614
|
-
fetchFeeConfig(): Promise<FeeConfig>;
|
|
9615
|
-
fetchBondingCurve(mint: PublicKeyInitData): Promise<BondingCurve>;
|
|
9616
|
-
fetchBuyState(mint: PublicKey, user: PublicKey): Promise<{
|
|
9617
|
-
bondingCurveAccountInfo: AccountInfo<Buffer<ArrayBufferLike>>;
|
|
9618
|
-
bondingCurve: BondingCurve;
|
|
9619
|
-
associatedUserAccountInfo: AccountInfo<Buffer<ArrayBufferLike>> | null;
|
|
9620
|
-
}>;
|
|
9621
|
-
fetchSellState(mint: PublicKey, user: PublicKey): Promise<{
|
|
9622
|
-
bondingCurveAccountInfo: AccountInfo<Buffer<ArrayBufferLike>>;
|
|
9623
|
-
bondingCurve: BondingCurve;
|
|
9624
|
-
}>;
|
|
9625
|
-
fetchGlobalVolumeAccumulator(): Promise<GlobalVolumeAccumulator>;
|
|
9626
|
-
fetchUserVolumeAccumulator(user: PublicKey): Promise<UserVolumeAccumulator | null>;
|
|
9627
|
-
fetchUserVolumeAccumulatorTotalStats(user: PublicKey): Promise<UserVolumeAccumulatorTotalStats>;
|
|
9628
9609
|
createInstruction({ mint, name, symbol, uri, creator, user, }: {
|
|
9629
9610
|
mint: PublicKey;
|
|
9630
9611
|
name: string;
|
|
@@ -9675,18 +9656,6 @@ declare class PumpSdk {
|
|
|
9675
9656
|
mint: PublicKey;
|
|
9676
9657
|
user: PublicKey;
|
|
9677
9658
|
}): Promise<TransactionInstruction>;
|
|
9678
|
-
collectCoinCreatorFeeInstructions(coinCreator: PublicKey): Promise<TransactionInstruction[]>;
|
|
9679
|
-
adminSetCoinCreatorInstructions(newCoinCreator: PublicKey, mint: PublicKey): Promise<TransactionInstruction[]>;
|
|
9680
|
-
getCreatorVaultBalance(creator: PublicKey): Promise<BN>;
|
|
9681
|
-
getCreatorVaultBalanceBothPrograms(creator: PublicKey): Promise<BN>;
|
|
9682
|
-
adminUpdateTokenIncentives(startTime: BN, endTime: BN, dayNumber: BN, tokenSupplyPerDay: BN, secondsInADay?: BN, mint?: PublicKey, tokenProgram?: PublicKey): Promise<TransactionInstruction>;
|
|
9683
|
-
adminUpdateTokenIncentivesBothPrograms(startTime: BN, endTime: BN, dayNumber: BN, tokenSupplyPerDay: BN, secondsInADay?: BN, mint?: PublicKey, tokenProgram?: PublicKey): Promise<TransactionInstruction[]>;
|
|
9684
|
-
claimTokenIncentives(user: PublicKey, payer: PublicKey): Promise<TransactionInstruction[]>;
|
|
9685
|
-
claimTokenIncentivesBothPrograms(user: PublicKey, payer: PublicKey): Promise<TransactionInstruction[]>;
|
|
9686
|
-
getTotalUnclaimedTokens(user: PublicKey): Promise<BN>;
|
|
9687
|
-
getTotalUnclaimedTokensBothPrograms(user: PublicKey): Promise<BN>;
|
|
9688
|
-
getCurrentDayTokens(user: PublicKey): Promise<BN>;
|
|
9689
|
-
getCurrentDayTokensBothPrograms(user: PublicKey): Promise<BN>;
|
|
9690
9659
|
syncUserVolumeAccumulator(user: PublicKey): Promise<TransactionInstruction>;
|
|
9691
9660
|
syncUserVolumeAccumulatorBothPrograms(user: PublicKey): Promise<TransactionInstruction[]>;
|
|
9692
9661
|
setCreator({ mint, setCreatorAuthority, creator, }: {
|
|
@@ -9719,7 +9688,44 @@ declare class PumpSdk {
|
|
|
9719
9688
|
private getSellInstructionInternal;
|
|
9720
9689
|
}
|
|
9721
9690
|
|
|
9691
|
+
declare class OnlinePumpSdk {
|
|
9692
|
+
private readonly connection;
|
|
9693
|
+
private readonly pumpProgram;
|
|
9694
|
+
private readonly offlinePumpProgram;
|
|
9695
|
+
private readonly pumpAmmSdk;
|
|
9696
|
+
private readonly pumpAmmAdminSdk;
|
|
9697
|
+
constructor(connection: Connection);
|
|
9698
|
+
fetchGlobal(): Promise<Global>;
|
|
9699
|
+
fetchFeeConfig(): Promise<FeeConfig>;
|
|
9700
|
+
fetchBondingCurve(mint: PublicKeyInitData): Promise<BondingCurve>;
|
|
9701
|
+
fetchBuyState(mint: PublicKey, user: PublicKey): Promise<{
|
|
9702
|
+
bondingCurveAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>>;
|
|
9703
|
+
bondingCurve: BondingCurve;
|
|
9704
|
+
associatedUserAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>> | null;
|
|
9705
|
+
}>;
|
|
9706
|
+
fetchSellState(mint: PublicKey, user: PublicKey): Promise<{
|
|
9707
|
+
bondingCurveAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>>;
|
|
9708
|
+
bondingCurve: BondingCurve;
|
|
9709
|
+
}>;
|
|
9710
|
+
fetchGlobalVolumeAccumulator(): Promise<GlobalVolumeAccumulator>;
|
|
9711
|
+
fetchUserVolumeAccumulator(user: PublicKey): Promise<UserVolumeAccumulator | null>;
|
|
9712
|
+
fetchUserVolumeAccumulatorTotalStats(user: PublicKey): Promise<UserVolumeAccumulatorTotalStats>;
|
|
9713
|
+
collectCoinCreatorFeeInstructions(coinCreator: PublicKey): Promise<TransactionInstruction[]>;
|
|
9714
|
+
adminSetCoinCreatorInstructions(newCoinCreator: PublicKey, mint: PublicKey): Promise<TransactionInstruction[]>;
|
|
9715
|
+
getCreatorVaultBalance(creator: PublicKey): Promise<BN>;
|
|
9716
|
+
getCreatorVaultBalanceBothPrograms(creator: PublicKey): Promise<BN>;
|
|
9717
|
+
adminUpdateTokenIncentives(startTime: BN, endTime: BN, dayNumber: BN, tokenSupplyPerDay: BN, secondsInADay?: BN, mint?: PublicKey, tokenProgram?: PublicKey): Promise<TransactionInstruction>;
|
|
9718
|
+
adminUpdateTokenIncentivesBothPrograms(startTime: BN, endTime: BN, dayNumber: BN, tokenSupplyPerDay: BN, secondsInADay?: BN, mint?: PublicKey, tokenProgram?: PublicKey): Promise<TransactionInstruction[]>;
|
|
9719
|
+
claimTokenIncentives(user: PublicKey, payer: PublicKey): Promise<TransactionInstruction[]>;
|
|
9720
|
+
claimTokenIncentivesBothPrograms(user: PublicKey, payer: PublicKey): Promise<TransactionInstruction[]>;
|
|
9721
|
+
getTotalUnclaimedTokens(user: PublicKey): Promise<BN>;
|
|
9722
|
+
getTotalUnclaimedTokensBothPrograms(user: PublicKey): Promise<BN>;
|
|
9723
|
+
getCurrentDayTokens(user: PublicKey): Promise<BN>;
|
|
9724
|
+
getCurrentDayTokensBothPrograms(user: PublicKey): Promise<BN>;
|
|
9725
|
+
syncUserVolumeAccumulatorBothPrograms(user: PublicKey): Promise<TransactionInstruction[]>;
|
|
9726
|
+
}
|
|
9727
|
+
|
|
9722
9728
|
declare function totalUnclaimedTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;
|
|
9723
9729
|
declare function currentDayTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;
|
|
9724
9730
|
|
|
9725
|
-
export { BONDING_CURVE_NEW_SIZE, type BondingCurve, CANONICAL_POOL_INDEX, type FeeConfig, type Global, type GlobalVolumeAccumulator, PUMP_AMM_PROGRAM_ID, PUMP_PROGRAM_ID, type Pump, PumpSdk, type UserVolumeAccumulator, type UserVolumeAccumulatorTotalStats, bondingCurveMarketCap, bondingCurvePda, canonicalPumpPoolPda, createFeeConfigFromGlobalConfig, creatorVaultPda, currentDayTokens, getBuySolAmountFromTokenAmount, getBuySolAmountFromTokenAmountQuote, getBuyTokenAmountFromSolAmount, getBuyTokenAmountFromSolAmountQuote, getPumpProgram, getSellSolAmountFromTokenAmount, getSellSolAmountFromTokenAmountQuote,
|
|
9731
|
+
export { BONDING_CURVE_NEW_SIZE, type BondingCurve, CANONICAL_POOL_INDEX, type FeeConfig, GLOBAL_PDA, GLOBAL_VOLUME_ACCUMULATOR_PDA, type Global, type GlobalVolumeAccumulator, OnlinePumpSdk, PUMP_AMM_PROGRAM_ID, PUMP_FEE_CONFIG_PDA, PUMP_PROGRAM_ID, type Pump, PumpSdk, type UserVolumeAccumulator, type UserVolumeAccumulatorTotalStats, bondingCurveMarketCap, bondingCurvePda, canonicalPumpPoolPda, createFeeConfigFromGlobalConfig, creatorVaultPda, currentDayTokens, getBuySolAmountFromTokenAmount, getBuySolAmountFromTokenAmountQuote, getBuyTokenAmountFromSolAmount, getBuyTokenAmountFromSolAmountQuote, getPumpProgram, getSellSolAmountFromTokenAmount, getSellSolAmountFromTokenAmountQuote, newBondingCurve, pump as pumpIdl, pumpPoolAuthorityPda, totalUnclaimedTokens, userVolumeAccumulatorPda };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import BN from 'bn.js';
|
|
2
|
+
import * as _solana_web3_js from '@solana/web3.js';
|
|
2
3
|
import { PublicKey, PublicKeyInitData, Connection, AccountInfo, TransactionInstruction } from '@solana/web3.js';
|
|
3
4
|
import { Program } from '@coral-xyz/anchor';
|
|
4
5
|
|
|
@@ -9581,28 +9582,23 @@ declare function bondingCurveMarketCap({ mintSupply, virtualSolReserves, virtual
|
|
|
9581
9582
|
virtualTokenReserves: BN;
|
|
9582
9583
|
}): BN;
|
|
9583
9584
|
|
|
9584
|
-
declare
|
|
9585
|
-
declare
|
|
9585
|
+
declare const GLOBAL_PDA: PublicKey;
|
|
9586
|
+
declare const PUMP_FEE_CONFIG_PDA: PublicKey;
|
|
9587
|
+
declare const GLOBAL_VOLUME_ACCUMULATOR_PDA: PublicKey;
|
|
9586
9588
|
declare function bondingCurvePda(mint: PublicKeyInitData): PublicKey;
|
|
9587
9589
|
declare function creatorVaultPda(creator: PublicKey): PublicKey;
|
|
9588
|
-
declare function pumpPoolAuthorityPda(mint: PublicKey):
|
|
9590
|
+
declare function pumpPoolAuthorityPda(mint: PublicKey): PublicKey;
|
|
9589
9591
|
declare const CANONICAL_POOL_INDEX = 0;
|
|
9590
|
-
declare function canonicalPumpPoolPda(mint: PublicKey):
|
|
9591
|
-
declare function
|
|
9592
|
-
declare function userVolumeAccumulatorPda(user: PublicKey): [PublicKey, number];
|
|
9592
|
+
declare function canonicalPumpPoolPda(mint: PublicKey): PublicKey;
|
|
9593
|
+
declare function userVolumeAccumulatorPda(user: PublicKey): PublicKey;
|
|
9593
9594
|
|
|
9594
9595
|
declare function getPumpProgram(connection: Connection): Program<Pump>;
|
|
9595
9596
|
declare const PUMP_PROGRAM_ID: PublicKey;
|
|
9596
9597
|
declare const PUMP_AMM_PROGRAM_ID: PublicKey;
|
|
9597
9598
|
declare const BONDING_CURVE_NEW_SIZE = 150;
|
|
9598
9599
|
declare class PumpSdk {
|
|
9599
|
-
private readonly connection;
|
|
9600
|
-
private readonly pumpProgram;
|
|
9601
9600
|
private readonly offlinePumpProgram;
|
|
9602
|
-
|
|
9603
|
-
private readonly pumpAmmAdminSdk;
|
|
9604
|
-
constructor(connection: Connection);
|
|
9605
|
-
programId(): PublicKey;
|
|
9601
|
+
constructor();
|
|
9606
9602
|
decodeGlobal(accountInfo: AccountInfo<Buffer>): Global;
|
|
9607
9603
|
decodeFeeConfig(accountInfo: AccountInfo<Buffer>): FeeConfig;
|
|
9608
9604
|
decodeBondingCurve(accountInfo: AccountInfo<Buffer>): BondingCurve;
|
|
@@ -9610,21 +9606,6 @@ declare class PumpSdk {
|
|
|
9610
9606
|
decodeGlobalVolumeAccumulator(accountInfo: AccountInfo<Buffer>): GlobalVolumeAccumulator;
|
|
9611
9607
|
decodeUserVolumeAccumulator(accountInfo: AccountInfo<Buffer>): UserVolumeAccumulator;
|
|
9612
9608
|
decodeUserVolumeAccumulatorNullable(accountInfo: AccountInfo<Buffer>): UserVolumeAccumulator | null;
|
|
9613
|
-
fetchGlobal(): Promise<Global>;
|
|
9614
|
-
fetchFeeConfig(): Promise<FeeConfig>;
|
|
9615
|
-
fetchBondingCurve(mint: PublicKeyInitData): Promise<BondingCurve>;
|
|
9616
|
-
fetchBuyState(mint: PublicKey, user: PublicKey): Promise<{
|
|
9617
|
-
bondingCurveAccountInfo: AccountInfo<Buffer<ArrayBufferLike>>;
|
|
9618
|
-
bondingCurve: BondingCurve;
|
|
9619
|
-
associatedUserAccountInfo: AccountInfo<Buffer<ArrayBufferLike>> | null;
|
|
9620
|
-
}>;
|
|
9621
|
-
fetchSellState(mint: PublicKey, user: PublicKey): Promise<{
|
|
9622
|
-
bondingCurveAccountInfo: AccountInfo<Buffer<ArrayBufferLike>>;
|
|
9623
|
-
bondingCurve: BondingCurve;
|
|
9624
|
-
}>;
|
|
9625
|
-
fetchGlobalVolumeAccumulator(): Promise<GlobalVolumeAccumulator>;
|
|
9626
|
-
fetchUserVolumeAccumulator(user: PublicKey): Promise<UserVolumeAccumulator | null>;
|
|
9627
|
-
fetchUserVolumeAccumulatorTotalStats(user: PublicKey): Promise<UserVolumeAccumulatorTotalStats>;
|
|
9628
9609
|
createInstruction({ mint, name, symbol, uri, creator, user, }: {
|
|
9629
9610
|
mint: PublicKey;
|
|
9630
9611
|
name: string;
|
|
@@ -9675,18 +9656,6 @@ declare class PumpSdk {
|
|
|
9675
9656
|
mint: PublicKey;
|
|
9676
9657
|
user: PublicKey;
|
|
9677
9658
|
}): Promise<TransactionInstruction>;
|
|
9678
|
-
collectCoinCreatorFeeInstructions(coinCreator: PublicKey): Promise<TransactionInstruction[]>;
|
|
9679
|
-
adminSetCoinCreatorInstructions(newCoinCreator: PublicKey, mint: PublicKey): Promise<TransactionInstruction[]>;
|
|
9680
|
-
getCreatorVaultBalance(creator: PublicKey): Promise<BN>;
|
|
9681
|
-
getCreatorVaultBalanceBothPrograms(creator: PublicKey): Promise<BN>;
|
|
9682
|
-
adminUpdateTokenIncentives(startTime: BN, endTime: BN, dayNumber: BN, tokenSupplyPerDay: BN, secondsInADay?: BN, mint?: PublicKey, tokenProgram?: PublicKey): Promise<TransactionInstruction>;
|
|
9683
|
-
adminUpdateTokenIncentivesBothPrograms(startTime: BN, endTime: BN, dayNumber: BN, tokenSupplyPerDay: BN, secondsInADay?: BN, mint?: PublicKey, tokenProgram?: PublicKey): Promise<TransactionInstruction[]>;
|
|
9684
|
-
claimTokenIncentives(user: PublicKey, payer: PublicKey): Promise<TransactionInstruction[]>;
|
|
9685
|
-
claimTokenIncentivesBothPrograms(user: PublicKey, payer: PublicKey): Promise<TransactionInstruction[]>;
|
|
9686
|
-
getTotalUnclaimedTokens(user: PublicKey): Promise<BN>;
|
|
9687
|
-
getTotalUnclaimedTokensBothPrograms(user: PublicKey): Promise<BN>;
|
|
9688
|
-
getCurrentDayTokens(user: PublicKey): Promise<BN>;
|
|
9689
|
-
getCurrentDayTokensBothPrograms(user: PublicKey): Promise<BN>;
|
|
9690
9659
|
syncUserVolumeAccumulator(user: PublicKey): Promise<TransactionInstruction>;
|
|
9691
9660
|
syncUserVolumeAccumulatorBothPrograms(user: PublicKey): Promise<TransactionInstruction[]>;
|
|
9692
9661
|
setCreator({ mint, setCreatorAuthority, creator, }: {
|
|
@@ -9719,7 +9688,44 @@ declare class PumpSdk {
|
|
|
9719
9688
|
private getSellInstructionInternal;
|
|
9720
9689
|
}
|
|
9721
9690
|
|
|
9691
|
+
declare class OnlinePumpSdk {
|
|
9692
|
+
private readonly connection;
|
|
9693
|
+
private readonly pumpProgram;
|
|
9694
|
+
private readonly offlinePumpProgram;
|
|
9695
|
+
private readonly pumpAmmSdk;
|
|
9696
|
+
private readonly pumpAmmAdminSdk;
|
|
9697
|
+
constructor(connection: Connection);
|
|
9698
|
+
fetchGlobal(): Promise<Global>;
|
|
9699
|
+
fetchFeeConfig(): Promise<FeeConfig>;
|
|
9700
|
+
fetchBondingCurve(mint: PublicKeyInitData): Promise<BondingCurve>;
|
|
9701
|
+
fetchBuyState(mint: PublicKey, user: PublicKey): Promise<{
|
|
9702
|
+
bondingCurveAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>>;
|
|
9703
|
+
bondingCurve: BondingCurve;
|
|
9704
|
+
associatedUserAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>> | null;
|
|
9705
|
+
}>;
|
|
9706
|
+
fetchSellState(mint: PublicKey, user: PublicKey): Promise<{
|
|
9707
|
+
bondingCurveAccountInfo: _solana_web3_js.AccountInfo<Buffer<ArrayBufferLike>>;
|
|
9708
|
+
bondingCurve: BondingCurve;
|
|
9709
|
+
}>;
|
|
9710
|
+
fetchGlobalVolumeAccumulator(): Promise<GlobalVolumeAccumulator>;
|
|
9711
|
+
fetchUserVolumeAccumulator(user: PublicKey): Promise<UserVolumeAccumulator | null>;
|
|
9712
|
+
fetchUserVolumeAccumulatorTotalStats(user: PublicKey): Promise<UserVolumeAccumulatorTotalStats>;
|
|
9713
|
+
collectCoinCreatorFeeInstructions(coinCreator: PublicKey): Promise<TransactionInstruction[]>;
|
|
9714
|
+
adminSetCoinCreatorInstructions(newCoinCreator: PublicKey, mint: PublicKey): Promise<TransactionInstruction[]>;
|
|
9715
|
+
getCreatorVaultBalance(creator: PublicKey): Promise<BN>;
|
|
9716
|
+
getCreatorVaultBalanceBothPrograms(creator: PublicKey): Promise<BN>;
|
|
9717
|
+
adminUpdateTokenIncentives(startTime: BN, endTime: BN, dayNumber: BN, tokenSupplyPerDay: BN, secondsInADay?: BN, mint?: PublicKey, tokenProgram?: PublicKey): Promise<TransactionInstruction>;
|
|
9718
|
+
adminUpdateTokenIncentivesBothPrograms(startTime: BN, endTime: BN, dayNumber: BN, tokenSupplyPerDay: BN, secondsInADay?: BN, mint?: PublicKey, tokenProgram?: PublicKey): Promise<TransactionInstruction[]>;
|
|
9719
|
+
claimTokenIncentives(user: PublicKey, payer: PublicKey): Promise<TransactionInstruction[]>;
|
|
9720
|
+
claimTokenIncentivesBothPrograms(user: PublicKey, payer: PublicKey): Promise<TransactionInstruction[]>;
|
|
9721
|
+
getTotalUnclaimedTokens(user: PublicKey): Promise<BN>;
|
|
9722
|
+
getTotalUnclaimedTokensBothPrograms(user: PublicKey): Promise<BN>;
|
|
9723
|
+
getCurrentDayTokens(user: PublicKey): Promise<BN>;
|
|
9724
|
+
getCurrentDayTokensBothPrograms(user: PublicKey): Promise<BN>;
|
|
9725
|
+
syncUserVolumeAccumulatorBothPrograms(user: PublicKey): Promise<TransactionInstruction[]>;
|
|
9726
|
+
}
|
|
9727
|
+
|
|
9722
9728
|
declare function totalUnclaimedTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;
|
|
9723
9729
|
declare function currentDayTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;
|
|
9724
9730
|
|
|
9725
|
-
export { BONDING_CURVE_NEW_SIZE, type BondingCurve, CANONICAL_POOL_INDEX, type FeeConfig, type Global, type GlobalVolumeAccumulator, PUMP_AMM_PROGRAM_ID, PUMP_PROGRAM_ID, type Pump, PumpSdk, type UserVolumeAccumulator, type UserVolumeAccumulatorTotalStats, bondingCurveMarketCap, bondingCurvePda, canonicalPumpPoolPda, createFeeConfigFromGlobalConfig, creatorVaultPda, currentDayTokens, getBuySolAmountFromTokenAmount, getBuySolAmountFromTokenAmountQuote, getBuyTokenAmountFromSolAmount, getBuyTokenAmountFromSolAmountQuote, getPumpProgram, getSellSolAmountFromTokenAmount, getSellSolAmountFromTokenAmountQuote,
|
|
9731
|
+
export { BONDING_CURVE_NEW_SIZE, type BondingCurve, CANONICAL_POOL_INDEX, type FeeConfig, GLOBAL_PDA, GLOBAL_VOLUME_ACCUMULATOR_PDA, type Global, type GlobalVolumeAccumulator, OnlinePumpSdk, PUMP_AMM_PROGRAM_ID, PUMP_FEE_CONFIG_PDA, PUMP_PROGRAM_ID, type Pump, PumpSdk, type UserVolumeAccumulator, type UserVolumeAccumulatorTotalStats, bondingCurveMarketCap, bondingCurvePda, canonicalPumpPoolPda, createFeeConfigFromGlobalConfig, creatorVaultPda, currentDayTokens, getBuySolAmountFromTokenAmount, getBuySolAmountFromTokenAmountQuote, getBuyTokenAmountFromSolAmount, getBuyTokenAmountFromSolAmountQuote, getPumpProgram, getSellSolAmountFromTokenAmount, getSellSolAmountFromTokenAmountQuote, newBondingCurve, pump as pumpIdl, pumpPoolAuthorityPda, totalUnclaimedTokens, userVolumeAccumulatorPda };
|