pump-kit 0.0.1
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/@pump-kit.png +0 -0
- package/README.md +133 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +173 -0
- package/dist/types/ammsdk/bondingCurveMath.d.ts +41 -0
- package/dist/types/ammsdk/generated/accounts/bondingCurve.d.ts +39 -0
- package/dist/types/ammsdk/generated/accounts/feeConfig.d.ts +33 -0
- package/dist/types/ammsdk/generated/accounts/globalConfig.d.ts +61 -0
- package/dist/types/ammsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
- package/dist/types/ammsdk/generated/accounts/index.d.ts +13 -0
- package/dist/types/ammsdk/generated/accounts/pool.d.ts +47 -0
- package/dist/types/ammsdk/generated/accounts/userVolumeAccumulator.d.ts +39 -0
- package/dist/types/ammsdk/generated/errors/index.d.ts +8 -0
- package/dist/types/ammsdk/generated/errors/pumpAmm.d.ts +101 -0
- package/dist/types/ammsdk/generated/index.d.ts +12 -0
- package/dist/types/ammsdk/generated/instructions/adminSetCoinCreator.d.ts +63 -0
- package/dist/types/ammsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
- package/dist/types/ammsdk/generated/instructions/buy.d.ts +144 -0
- package/dist/types/ammsdk/generated/instructions/buyExactQuoteIn.d.ts +144 -0
- package/dist/types/ammsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
- package/dist/types/ammsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
- package/dist/types/ammsdk/generated/instructions/collectCoinCreatorFee.d.ts +70 -0
- package/dist/types/ammsdk/generated/instructions/createConfig.d.ts +79 -0
- package/dist/types/ammsdk/generated/instructions/createPool.d.ts +127 -0
- package/dist/types/ammsdk/generated/instructions/deposit.d.ts +111 -0
- package/dist/types/ammsdk/generated/instructions/disable.d.ts +75 -0
- package/dist/types/ammsdk/generated/instructions/extendAccount.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/index.d.ts +26 -0
- package/dist/types/ammsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
- package/dist/types/ammsdk/generated/instructions/sell.d.ts +131 -0
- package/dist/types/ammsdk/generated/instructions/setCoinCreator.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/updateAdmin.d.ts +58 -0
- package/dist/types/ammsdk/generated/instructions/updateFeeConfig.d.ts +75 -0
- package/dist/types/ammsdk/generated/instructions/withdraw.d.ts +111 -0
- package/dist/types/ammsdk/generated/programs/index.d.ts +8 -0
- package/dist/types/ammsdk/generated/programs/pumpAmm.d.ts +84 -0
- package/dist/types/ammsdk/generated/shared/index.d.ts +49 -0
- package/dist/types/ammsdk/generated/types/adminSetCoinCreatorEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/buyEvent.d.ts +76 -0
- package/dist/types/ammsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
- package/dist/types/ammsdk/generated/types/collectCoinCreatorFeeEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/createConfigEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/createPoolEvent.d.ts +55 -0
- package/dist/types/ammsdk/generated/types/depositEvent.d.ts +47 -0
- package/dist/types/ammsdk/generated/types/disableEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/extendAccountEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/feeTier.d.ts +20 -0
- package/dist/types/ammsdk/generated/types/fees.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/index.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/optionBool.d.ts +13 -0
- package/dist/types/ammsdk/generated/types/sellEvent.d.ts +61 -0
- package/dist/types/ammsdk/generated/types/setBondingCurveCoinCreatorEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/setMetaplexCoinCreatorEvent.d.ts +25 -0
- package/dist/types/ammsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
- package/dist/types/ammsdk/generated/types/updateAdminEvent.d.ts +21 -0
- package/dist/types/ammsdk/generated/types/updateFeeConfigEvent.d.ts +29 -0
- package/dist/types/ammsdk/generated/types/withdrawEvent.d.ts +47 -0
- package/dist/types/clients/amm.d.ts +109 -0
- package/dist/types/clients/pump.d.ts +76 -0
- package/dist/types/config/addresses.d.ts +12 -0
- package/dist/types/config/commitment.d.ts +4 -0
- package/dist/types/config/connection.d.ts +10 -0
- package/dist/types/config/constants.d.ts +4 -0
- package/dist/types/config/polyfills.d.ts +1 -0
- package/dist/types/events/pumpEvents.d.ts +30 -0
- package/dist/types/helpers/createAndBuy.d.ts +34 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/liquidity.d.ts +47 -0
- package/dist/types/pda/ata.d.ts +29 -0
- package/dist/types/pda/pump.d.ts +46 -0
- package/dist/types/pda/pumpAmm.d.ts +55 -0
- package/dist/types/pumpsdk/generated/accounts/bondingCurve.d.ts +39 -0
- package/dist/types/pumpsdk/generated/accounts/feeConfig.d.ts +33 -0
- package/dist/types/pumpsdk/generated/accounts/global.d.ts +59 -0
- package/dist/types/pumpsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
- package/dist/types/pumpsdk/generated/accounts/index.d.ts +12 -0
- package/dist/types/pumpsdk/generated/accounts/userVolumeAccumulator.d.ts +39 -0
- package/dist/types/pumpsdk/generated/errors/index.d.ts +8 -0
- package/dist/types/pumpsdk/generated/errors/pump.d.ts +105 -0
- package/dist/types/pumpsdk/generated/index.d.ts +12 -0
- package/dist/types/pumpsdk/generated/instructions/adminSetCreator.d.ts +67 -0
- package/dist/types/pumpsdk/generated/instructions/adminSetIdlAuthority.d.ts +71 -0
- package/dist/types/pumpsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
- package/dist/types/pumpsdk/generated/instructions/buy.d.ts +116 -0
- package/dist/types/pumpsdk/generated/instructions/buyExactSolIn.d.ts +116 -0
- package/dist/types/pumpsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
- package/dist/types/pumpsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
- package/dist/types/pumpsdk/generated/instructions/collectCreatorFee.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/create.d.ts +111 -0
- package/dist/types/pumpsdk/generated/instructions/extendAccount.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/index.d.ts +26 -0
- package/dist/types/pumpsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
- package/dist/types/pumpsdk/generated/instructions/initialize.d.ts +50 -0
- package/dist/types/pumpsdk/generated/instructions/migrate.d.ts +134 -0
- package/dist/types/pumpsdk/generated/instructions/sell.d.ts +103 -0
- package/dist/types/pumpsdk/generated/instructions/setCreator.d.ts +71 -0
- package/dist/types/pumpsdk/generated/instructions/setMetaplexCreator.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/setParams.d.ts +99 -0
- package/dist/types/pumpsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
- package/dist/types/pumpsdk/generated/instructions/updateGlobalAuthority.d.ts +58 -0
- package/dist/types/pumpsdk/generated/programs/index.d.ts +8 -0
- package/dist/types/pumpsdk/generated/programs/pump.d.ts +83 -0
- package/dist/types/pumpsdk/generated/shared/index.d.ts +49 -0
- package/dist/types/pumpsdk/generated/types/adminSetCreatorEvent.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/adminSetIdlAuthorityEvent.d.ts +15 -0
- package/dist/types/pumpsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +29 -0
- package/dist/types/pumpsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/collectCreatorFeeEvent.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/completeEvent.d.ts +23 -0
- package/dist/types/pumpsdk/generated/types/completePumpAmmMigrationEvent.d.ts +31 -0
- package/dist/types/pumpsdk/generated/types/createEvent.d.ts +39 -0
- package/dist/types/pumpsdk/generated/types/extendAccountEvent.d.ts +25 -0
- package/dist/types/pumpsdk/generated/types/feeTier.d.ts +20 -0
- package/dist/types/pumpsdk/generated/types/fees.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/index.d.ts +27 -0
- package/dist/types/pumpsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
- package/dist/types/pumpsdk/generated/types/optionBool.d.ts +13 -0
- package/dist/types/pumpsdk/generated/types/setCreatorEvent.d.ts +23 -0
- package/dist/types/pumpsdk/generated/types/setMetaplexCreatorEvent.d.ts +25 -0
- package/dist/types/pumpsdk/generated/types/setParamsEvent.d.ts +43 -0
- package/dist/types/pumpsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
- package/dist/types/pumpsdk/generated/types/tradeEvent.d.ts +60 -0
- package/dist/types/pumpsdk/generated/types/updateGlobalAuthorityEvent.d.ts +23 -0
- package/dist/types/recipes/buy.d.ts +51 -0
- package/dist/types/recipes/mintFirstBuy.d.ts +51 -0
- package/dist/types/recipes/provideLiquidity.d.ts +42 -0
- package/dist/types/recipes/removeLiquidity.d.ts +40 -0
- package/dist/types/recipes/sell.d.ts +39 -0
- package/dist/types/simple.d.ts +10 -0
- package/dist/types/swap.d.ts +49 -0
- package/dist/types/utils/amounts.d.ts +4 -0
- package/dist/types/utils/ata.d.ts +15 -0
- package/dist/types/utils/slippage.d.ts +37 -0
- package/dist/types/utils/transaction.d.ts +101 -0
- package/dist/types/utils/wsol.d.ts +18 -0
- package/metadata/social.json +8 -0
- package/package.json +56 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Deterministic bonding curve math helpers shared across buy/sell flows.
|
|
3
|
+
* Implements the same constant-product math used by the on-chain program,
|
|
4
|
+
* accounting for flat protocol + creator fees expressed in basis points.
|
|
5
|
+
*/
|
|
6
|
+
import type { BondingCurve } from "../pumpsdk/generated/accounts/bondingCurve";
|
|
7
|
+
import type { Fees } from "../pumpsdk/generated/types/fees";
|
|
8
|
+
declare const BPS_DENOMINATOR = 10000n;
|
|
9
|
+
export type BondingCurveState = Pick<BondingCurve, "virtualTokenReserves" | "virtualSolReserves" | "realTokenReserves" | "realSolReserves" | "creator">;
|
|
10
|
+
export type FeeStructure = Pick<Fees, "lpFeeBps" | "protocolFeeBps" | "creatorFeeBps">;
|
|
11
|
+
export type BuyQuote = {
|
|
12
|
+
tokenAmount: bigint;
|
|
13
|
+
/** Total SOL cost including protocol + creator fees */
|
|
14
|
+
totalSolCostLamports: bigint;
|
|
15
|
+
/** Net SOL that actually hits the bonding curve reserves */
|
|
16
|
+
effectiveSolInLamports: bigint;
|
|
17
|
+
feeLamports: bigint;
|
|
18
|
+
creatorFeeLamports: bigint;
|
|
19
|
+
};
|
|
20
|
+
export type SellQuote = {
|
|
21
|
+
/** Net SOL the curve returns after subtracting protocol + creator fees */
|
|
22
|
+
solOutputLamports: bigint;
|
|
23
|
+
/** SOL output before extracting protocol + creator fees */
|
|
24
|
+
preFeeSolOutputLamports: bigint;
|
|
25
|
+
feeLamports: bigint;
|
|
26
|
+
creatorFeeLamports: bigint;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Quote how many tokens can be purchased with a given total SOL cost (before slippage),
|
|
30
|
+
* returning the derived token amount alongside the fee breakdown.
|
|
31
|
+
*/
|
|
32
|
+
export declare function quoteBuyWithSolAmount(state: BondingCurveState, fees: FeeStructure, totalSolCostLamports: bigint): BuyQuote;
|
|
33
|
+
/**
|
|
34
|
+
* Inverse of `quoteBuyWithSolAmount`: given an exact token amount, compute the SOL budget required.
|
|
35
|
+
*/
|
|
36
|
+
export declare function quoteSolCostForBuy(state: BondingCurveState, fees: FeeStructure, tokenAmount: bigint): BuyQuote;
|
|
37
|
+
/**
|
|
38
|
+
* Quote how much SOL will be returned for selling a given token amount.
|
|
39
|
+
*/
|
|
40
|
+
export declare function quoteSellForTokenAmount(state: BondingCurveState, fees: FeeStructure, tokenAmount: bigint): SellQuote;
|
|
41
|
+
export { BPS_DENOMINATOR };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
export declare const BONDING_CURVE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getBondingCurveDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type BondingCurve = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
virtualTokenReserves: bigint;
|
|
14
|
+
virtualSolReserves: bigint;
|
|
15
|
+
realTokenReserves: bigint;
|
|
16
|
+
realSolReserves: bigint;
|
|
17
|
+
tokenTotalSupply: bigint;
|
|
18
|
+
complete: boolean;
|
|
19
|
+
creator: Address;
|
|
20
|
+
};
|
|
21
|
+
export type BondingCurveArgs = {
|
|
22
|
+
virtualTokenReserves: number | bigint;
|
|
23
|
+
virtualSolReserves: number | bigint;
|
|
24
|
+
realTokenReserves: number | bigint;
|
|
25
|
+
realSolReserves: number | bigint;
|
|
26
|
+
tokenTotalSupply: number | bigint;
|
|
27
|
+
complete: boolean;
|
|
28
|
+
creator: Address;
|
|
29
|
+
};
|
|
30
|
+
export declare function getBondingCurveEncoder(): FixedSizeEncoder<BondingCurveArgs>;
|
|
31
|
+
export declare function getBondingCurveDecoder(): FixedSizeDecoder<BondingCurve>;
|
|
32
|
+
export declare function getBondingCurveCodec(): FixedSizeCodec<BondingCurveArgs, BondingCurve>;
|
|
33
|
+
export declare function decodeBondingCurve<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<BondingCurve, TAddress>;
|
|
34
|
+
export declare function decodeBondingCurve<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<BondingCurve, TAddress>;
|
|
35
|
+
export declare function fetchBondingCurve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<BondingCurve, TAddress>>;
|
|
36
|
+
export declare function fetchMaybeBondingCurve<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<BondingCurve, TAddress>>;
|
|
37
|
+
export declare function fetchAllBondingCurve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<BondingCurve>[]>;
|
|
38
|
+
export declare function fetchAllMaybeBondingCurve(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<BondingCurve>[]>;
|
|
39
|
+
export declare function getBondingCurveSize(): number;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type Codec, type Decoder, type EncodedAccount, type Encoder, type FetchAccountConfig, type FetchAccountsConfig, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
import { type Fees, type FeesArgs, type FeeTier, type FeeTierArgs } from '../types';
|
|
10
|
+
export declare const FEE_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getFeeConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type FeeConfig = {
|
|
13
|
+
discriminator: ReadonlyUint8Array;
|
|
14
|
+
bump: number;
|
|
15
|
+
admin: Address;
|
|
16
|
+
flatFees: Fees;
|
|
17
|
+
feeTiers: Array<FeeTier>;
|
|
18
|
+
};
|
|
19
|
+
export type FeeConfigArgs = {
|
|
20
|
+
bump: number;
|
|
21
|
+
admin: Address;
|
|
22
|
+
flatFees: FeesArgs;
|
|
23
|
+
feeTiers: Array<FeeTierArgs>;
|
|
24
|
+
};
|
|
25
|
+
export declare function getFeeConfigEncoder(): Encoder<FeeConfigArgs>;
|
|
26
|
+
export declare function getFeeConfigDecoder(): Decoder<FeeConfig>;
|
|
27
|
+
export declare function getFeeConfigCodec(): Codec<FeeConfigArgs, FeeConfig>;
|
|
28
|
+
export declare function decodeFeeConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<FeeConfig, TAddress>;
|
|
29
|
+
export declare function decodeFeeConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<FeeConfig, TAddress>;
|
|
30
|
+
export declare function fetchFeeConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<FeeConfig, TAddress>>;
|
|
31
|
+
export declare function fetchMaybeFeeConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<FeeConfig, TAddress>>;
|
|
32
|
+
export declare function fetchAllFeeConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<FeeConfig>[]>;
|
|
33
|
+
export declare function fetchAllMaybeFeeConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<FeeConfig>[]>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
export declare const GLOBAL_CONFIG_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getGlobalConfigDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type GlobalConfig = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
/** The admin pubkey */
|
|
14
|
+
admin: Address;
|
|
15
|
+
lpFeeBasisPoints: bigint;
|
|
16
|
+
protocolFeeBasisPoints: bigint;
|
|
17
|
+
/**
|
|
18
|
+
* Flags to disable certain functionality
|
|
19
|
+
* bit 0 - Disable create pool
|
|
20
|
+
* bit 1 - Disable deposit
|
|
21
|
+
* bit 2 - Disable withdraw
|
|
22
|
+
* bit 3 - Disable buy
|
|
23
|
+
* bit 4 - Disable sell
|
|
24
|
+
*/
|
|
25
|
+
disableFlags: number;
|
|
26
|
+
/** Addresses of the protocol fee recipients */
|
|
27
|
+
protocolFeeRecipients: Array<Address>;
|
|
28
|
+
coinCreatorFeeBasisPoints: bigint;
|
|
29
|
+
/** The admin authority for setting coin creators */
|
|
30
|
+
adminSetCoinCreatorAuthority: Address;
|
|
31
|
+
};
|
|
32
|
+
export type GlobalConfigArgs = {
|
|
33
|
+
/** The admin pubkey */
|
|
34
|
+
admin: Address;
|
|
35
|
+
lpFeeBasisPoints: number | bigint;
|
|
36
|
+
protocolFeeBasisPoints: number | bigint;
|
|
37
|
+
/**
|
|
38
|
+
* Flags to disable certain functionality
|
|
39
|
+
* bit 0 - Disable create pool
|
|
40
|
+
* bit 1 - Disable deposit
|
|
41
|
+
* bit 2 - Disable withdraw
|
|
42
|
+
* bit 3 - Disable buy
|
|
43
|
+
* bit 4 - Disable sell
|
|
44
|
+
*/
|
|
45
|
+
disableFlags: number;
|
|
46
|
+
/** Addresses of the protocol fee recipients */
|
|
47
|
+
protocolFeeRecipients: Array<Address>;
|
|
48
|
+
coinCreatorFeeBasisPoints: number | bigint;
|
|
49
|
+
/** The admin authority for setting coin creators */
|
|
50
|
+
adminSetCoinCreatorAuthority: Address;
|
|
51
|
+
};
|
|
52
|
+
export declare function getGlobalConfigEncoder(): FixedSizeEncoder<GlobalConfigArgs>;
|
|
53
|
+
export declare function getGlobalConfigDecoder(): FixedSizeDecoder<GlobalConfig>;
|
|
54
|
+
export declare function getGlobalConfigCodec(): FixedSizeCodec<GlobalConfigArgs, GlobalConfig>;
|
|
55
|
+
export declare function decodeGlobalConfig<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<GlobalConfig, TAddress>;
|
|
56
|
+
export declare function decodeGlobalConfig<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<GlobalConfig, TAddress>;
|
|
57
|
+
export declare function fetchGlobalConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<GlobalConfig, TAddress>>;
|
|
58
|
+
export declare function fetchMaybeGlobalConfig<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<GlobalConfig, TAddress>>;
|
|
59
|
+
export declare function fetchAllGlobalConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<GlobalConfig>[]>;
|
|
60
|
+
export declare function fetchAllMaybeGlobalConfig(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<GlobalConfig>[]>;
|
|
61
|
+
export declare function getGlobalConfigSize(): number;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
export declare const GLOBAL_VOLUME_ACCUMULATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getGlobalVolumeAccumulatorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type GlobalVolumeAccumulator = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
startTime: bigint;
|
|
14
|
+
endTime: bigint;
|
|
15
|
+
secondsInADay: bigint;
|
|
16
|
+
mint: Address;
|
|
17
|
+
totalTokenSupply: Array<bigint>;
|
|
18
|
+
solVolumes: Array<bigint>;
|
|
19
|
+
};
|
|
20
|
+
export type GlobalVolumeAccumulatorArgs = {
|
|
21
|
+
startTime: number | bigint;
|
|
22
|
+
endTime: number | bigint;
|
|
23
|
+
secondsInADay: number | bigint;
|
|
24
|
+
mint: Address;
|
|
25
|
+
totalTokenSupply: Array<number | bigint>;
|
|
26
|
+
solVolumes: Array<number | bigint>;
|
|
27
|
+
};
|
|
28
|
+
export declare function getGlobalVolumeAccumulatorEncoder(): FixedSizeEncoder<GlobalVolumeAccumulatorArgs>;
|
|
29
|
+
export declare function getGlobalVolumeAccumulatorDecoder(): FixedSizeDecoder<GlobalVolumeAccumulator>;
|
|
30
|
+
export declare function getGlobalVolumeAccumulatorCodec(): FixedSizeCodec<GlobalVolumeAccumulatorArgs, GlobalVolumeAccumulator>;
|
|
31
|
+
export declare function decodeGlobalVolumeAccumulator<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<GlobalVolumeAccumulator, TAddress>;
|
|
32
|
+
export declare function decodeGlobalVolumeAccumulator<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<GlobalVolumeAccumulator, TAddress>;
|
|
33
|
+
export declare function fetchGlobalVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<GlobalVolumeAccumulator, TAddress>>;
|
|
34
|
+
export declare function fetchMaybeGlobalVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<GlobalVolumeAccumulator, TAddress>>;
|
|
35
|
+
export declare function fetchAllGlobalVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<GlobalVolumeAccumulator>[]>;
|
|
36
|
+
export declare function fetchAllMaybeGlobalVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<GlobalVolumeAccumulator>[]>;
|
|
37
|
+
export declare function getGlobalVolumeAccumulatorSize(): number;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from './bondingCurve';
|
|
9
|
+
export * from './feeConfig';
|
|
10
|
+
export * from './globalConfig';
|
|
11
|
+
export * from './globalVolumeAccumulator';
|
|
12
|
+
export * from './pool';
|
|
13
|
+
export * from './userVolumeAccumulator';
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
export declare const POOL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getPoolDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type Pool = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
poolBump: number;
|
|
14
|
+
index: number;
|
|
15
|
+
creator: Address;
|
|
16
|
+
baseMint: Address;
|
|
17
|
+
quoteMint: Address;
|
|
18
|
+
lpMint: Address;
|
|
19
|
+
poolBaseTokenAccount: Address;
|
|
20
|
+
poolQuoteTokenAccount: Address;
|
|
21
|
+
/** True circulating supply without burns and lock-ups */
|
|
22
|
+
lpSupply: bigint;
|
|
23
|
+
coinCreator: Address;
|
|
24
|
+
};
|
|
25
|
+
export type PoolArgs = {
|
|
26
|
+
poolBump: number;
|
|
27
|
+
index: number;
|
|
28
|
+
creator: Address;
|
|
29
|
+
baseMint: Address;
|
|
30
|
+
quoteMint: Address;
|
|
31
|
+
lpMint: Address;
|
|
32
|
+
poolBaseTokenAccount: Address;
|
|
33
|
+
poolQuoteTokenAccount: Address;
|
|
34
|
+
/** True circulating supply without burns and lock-ups */
|
|
35
|
+
lpSupply: number | bigint;
|
|
36
|
+
coinCreator: Address;
|
|
37
|
+
};
|
|
38
|
+
export declare function getPoolEncoder(): FixedSizeEncoder<PoolArgs>;
|
|
39
|
+
export declare function getPoolDecoder(): FixedSizeDecoder<Pool>;
|
|
40
|
+
export declare function getPoolCodec(): FixedSizeCodec<PoolArgs, Pool>;
|
|
41
|
+
export declare function decodePool<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<Pool, TAddress>;
|
|
42
|
+
export declare function decodePool<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<Pool, TAddress>;
|
|
43
|
+
export declare function fetchPool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<Pool, TAddress>>;
|
|
44
|
+
export declare function fetchMaybePool<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<Pool, TAddress>>;
|
|
45
|
+
export declare function fetchAllPool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<Pool>[]>;
|
|
46
|
+
export declare function fetchAllMaybePool(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<Pool>[]>;
|
|
47
|
+
export declare function getPoolSize(): number;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { fetchEncodedAccount, fetchEncodedAccounts, type Account, type Address, type EncodedAccount, type FetchAccountConfig, type FetchAccountsConfig, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type MaybeAccount, type MaybeEncodedAccount, type ReadonlyUint8Array } from '@solana/kit';
|
|
9
|
+
export declare const USER_VOLUME_ACCUMULATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
10
|
+
export declare function getUserVolumeAccumulatorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
11
|
+
export type UserVolumeAccumulator = {
|
|
12
|
+
discriminator: ReadonlyUint8Array;
|
|
13
|
+
user: Address;
|
|
14
|
+
needsClaim: boolean;
|
|
15
|
+
totalUnclaimedTokens: bigint;
|
|
16
|
+
totalClaimedTokens: bigint;
|
|
17
|
+
currentSolVolume: bigint;
|
|
18
|
+
lastUpdateTimestamp: bigint;
|
|
19
|
+
hasTotalClaimedTokens: boolean;
|
|
20
|
+
};
|
|
21
|
+
export type UserVolumeAccumulatorArgs = {
|
|
22
|
+
user: Address;
|
|
23
|
+
needsClaim: boolean;
|
|
24
|
+
totalUnclaimedTokens: number | bigint;
|
|
25
|
+
totalClaimedTokens: number | bigint;
|
|
26
|
+
currentSolVolume: number | bigint;
|
|
27
|
+
lastUpdateTimestamp: number | bigint;
|
|
28
|
+
hasTotalClaimedTokens: boolean;
|
|
29
|
+
};
|
|
30
|
+
export declare function getUserVolumeAccumulatorEncoder(): FixedSizeEncoder<UserVolumeAccumulatorArgs>;
|
|
31
|
+
export declare function getUserVolumeAccumulatorDecoder(): FixedSizeDecoder<UserVolumeAccumulator>;
|
|
32
|
+
export declare function getUserVolumeAccumulatorCodec(): FixedSizeCodec<UserVolumeAccumulatorArgs, UserVolumeAccumulator>;
|
|
33
|
+
export declare function decodeUserVolumeAccumulator<TAddress extends string = string>(encodedAccount: EncodedAccount<TAddress>): Account<UserVolumeAccumulator, TAddress>;
|
|
34
|
+
export declare function decodeUserVolumeAccumulator<TAddress extends string = string>(encodedAccount: MaybeEncodedAccount<TAddress>): MaybeAccount<UserVolumeAccumulator, TAddress>;
|
|
35
|
+
export declare function fetchUserVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<Account<UserVolumeAccumulator, TAddress>>;
|
|
36
|
+
export declare function fetchMaybeUserVolumeAccumulator<TAddress extends string = string>(rpc: Parameters<typeof fetchEncodedAccount>[0], address: Address<TAddress>, config?: FetchAccountConfig): Promise<MaybeAccount<UserVolumeAccumulator, TAddress>>;
|
|
37
|
+
export declare function fetchAllUserVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<Account<UserVolumeAccumulator>[]>;
|
|
38
|
+
export declare function fetchAllMaybeUserVolumeAccumulator(rpc: Parameters<typeof fetchEncodedAccounts>[0], addresses: Array<Address>, config?: FetchAccountsConfig): Promise<MaybeAccount<UserVolumeAccumulator>[]>;
|
|
39
|
+
export declare function getUserVolumeAccumulatorSize(): number;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type Address, type SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM, type SolanaError } from '@solana/kit';
|
|
9
|
+
/** FeeBasisPointsExceedsMaximum: */
|
|
10
|
+
export declare const PUMP_AMM_ERROR__FEE_BASIS_POINTS_EXCEEDS_MAXIMUM = 6000;
|
|
11
|
+
/** ZeroBaseAmount: */
|
|
12
|
+
export declare const PUMP_AMM_ERROR__ZERO_BASE_AMOUNT = 6001;
|
|
13
|
+
/** ZeroQuoteAmount: */
|
|
14
|
+
export declare const PUMP_AMM_ERROR__ZERO_QUOTE_AMOUNT = 6002;
|
|
15
|
+
/** TooLittlePoolTokenLiquidity: */
|
|
16
|
+
export declare const PUMP_AMM_ERROR__TOO_LITTLE_POOL_TOKEN_LIQUIDITY = 6003;
|
|
17
|
+
/** ExceededSlippage: */
|
|
18
|
+
export declare const PUMP_AMM_ERROR__EXCEEDED_SLIPPAGE = 6004;
|
|
19
|
+
/** InvalidAdmin: */
|
|
20
|
+
export declare const PUMP_AMM_ERROR__INVALID_ADMIN = 6005;
|
|
21
|
+
/** UnsupportedBaseMint: */
|
|
22
|
+
export declare const PUMP_AMM_ERROR__UNSUPPORTED_BASE_MINT = 6006;
|
|
23
|
+
/** UnsupportedQuoteMint: */
|
|
24
|
+
export declare const PUMP_AMM_ERROR__UNSUPPORTED_QUOTE_MINT = 6007;
|
|
25
|
+
/** InvalidBaseMint: */
|
|
26
|
+
export declare const PUMP_AMM_ERROR__INVALID_BASE_MINT = 6008;
|
|
27
|
+
/** InvalidQuoteMint: */
|
|
28
|
+
export declare const PUMP_AMM_ERROR__INVALID_QUOTE_MINT = 6009;
|
|
29
|
+
/** InvalidLpMint: */
|
|
30
|
+
export declare const PUMP_AMM_ERROR__INVALID_LP_MINT = 6010;
|
|
31
|
+
/** AllProtocolFeeRecipientsShouldBeNonZero: */
|
|
32
|
+
export declare const PUMP_AMM_ERROR__ALL_PROTOCOL_FEE_RECIPIENTS_SHOULD_BE_NON_ZERO = 6011;
|
|
33
|
+
/** UnsortedNotUniqueProtocolFeeRecipients: */
|
|
34
|
+
export declare const PUMP_AMM_ERROR__UNSORTED_NOT_UNIQUE_PROTOCOL_FEE_RECIPIENTS = 6012;
|
|
35
|
+
/** InvalidProtocolFeeRecipient: */
|
|
36
|
+
export declare const PUMP_AMM_ERROR__INVALID_PROTOCOL_FEE_RECIPIENT = 6013;
|
|
37
|
+
/** InvalidPoolBaseTokenAccount: */
|
|
38
|
+
export declare const PUMP_AMM_ERROR__INVALID_POOL_BASE_TOKEN_ACCOUNT = 6014;
|
|
39
|
+
/** InvalidPoolQuoteTokenAccount: */
|
|
40
|
+
export declare const PUMP_AMM_ERROR__INVALID_POOL_QUOTE_TOKEN_ACCOUNT = 6015;
|
|
41
|
+
/** BuyMoreBaseAmountThanPoolReserves: */
|
|
42
|
+
export declare const PUMP_AMM_ERROR__BUY_MORE_BASE_AMOUNT_THAN_POOL_RESERVES = 6016;
|
|
43
|
+
/** DisabledCreatePool: */
|
|
44
|
+
export declare const PUMP_AMM_ERROR__DISABLED_CREATE_POOL = 6017;
|
|
45
|
+
/** DisabledDeposit: */
|
|
46
|
+
export declare const PUMP_AMM_ERROR__DISABLED_DEPOSIT = 6018;
|
|
47
|
+
/** DisabledWithdraw: */
|
|
48
|
+
export declare const PUMP_AMM_ERROR__DISABLED_WITHDRAW = 6019;
|
|
49
|
+
/** DisabledBuy: */
|
|
50
|
+
export declare const PUMP_AMM_ERROR__DISABLED_BUY = 6020;
|
|
51
|
+
/** DisabledSell: */
|
|
52
|
+
export declare const PUMP_AMM_ERROR__DISABLED_SELL = 6021;
|
|
53
|
+
/** SameMint: */
|
|
54
|
+
export declare const PUMP_AMM_ERROR__SAME_MINT = 6022;
|
|
55
|
+
/** Overflow: */
|
|
56
|
+
export declare const PUMP_AMM_ERROR__OVERFLOW = 6023;
|
|
57
|
+
/** Truncation: */
|
|
58
|
+
export declare const PUMP_AMM_ERROR__TRUNCATION = 6024;
|
|
59
|
+
/** DivisionByZero: */
|
|
60
|
+
export declare const PUMP_AMM_ERROR__DIVISION_BY_ZERO = 6025;
|
|
61
|
+
/** NewSizeLessThanCurrentSize: */
|
|
62
|
+
export declare const PUMP_AMM_ERROR__NEW_SIZE_LESS_THAN_CURRENT_SIZE = 6026;
|
|
63
|
+
/** AccountTypeNotSupported: */
|
|
64
|
+
export declare const PUMP_AMM_ERROR__ACCOUNT_TYPE_NOT_SUPPORTED = 6027;
|
|
65
|
+
/** OnlyCanonicalPumpPoolsCanHaveCoinCreator: */
|
|
66
|
+
export declare const PUMP_AMM_ERROR__ONLY_CANONICAL_PUMP_POOLS_CAN_HAVE_COIN_CREATOR = 6028;
|
|
67
|
+
/** InvalidAdminSetCoinCreatorAuthority: */
|
|
68
|
+
export declare const PUMP_AMM_ERROR__INVALID_ADMIN_SET_COIN_CREATOR_AUTHORITY = 6029;
|
|
69
|
+
/** StartTimeInThePast: */
|
|
70
|
+
export declare const PUMP_AMM_ERROR__START_TIME_IN_THE_PAST = 6030;
|
|
71
|
+
/** EndTimeInThePast: */
|
|
72
|
+
export declare const PUMP_AMM_ERROR__END_TIME_IN_THE_PAST = 6031;
|
|
73
|
+
/** EndTimeBeforeStartTime: */
|
|
74
|
+
export declare const PUMP_AMM_ERROR__END_TIME_BEFORE_START_TIME = 6032;
|
|
75
|
+
/** TimeRangeTooLarge: */
|
|
76
|
+
export declare const PUMP_AMM_ERROR__TIME_RANGE_TOO_LARGE = 6033;
|
|
77
|
+
/** EndTimeBeforeCurrentDay: */
|
|
78
|
+
export declare const PUMP_AMM_ERROR__END_TIME_BEFORE_CURRENT_DAY = 6034;
|
|
79
|
+
/** SupplyUpdateForFinishedRange: */
|
|
80
|
+
export declare const PUMP_AMM_ERROR__SUPPLY_UPDATE_FOR_FINISHED_RANGE = 6035;
|
|
81
|
+
/** DayIndexAfterEndIndex: */
|
|
82
|
+
export declare const PUMP_AMM_ERROR__DAY_INDEX_AFTER_END_INDEX = 6036;
|
|
83
|
+
/** DayInActiveRange: */
|
|
84
|
+
export declare const PUMP_AMM_ERROR__DAY_IN_ACTIVE_RANGE = 6037;
|
|
85
|
+
/** InvalidIncentiveMint: */
|
|
86
|
+
export declare const PUMP_AMM_ERROR__INVALID_INCENTIVE_MINT = 6038;
|
|
87
|
+
/** BuyNotEnoughQuoteTokensToCoverFees: buy: Not enough quote tokens to cover for fees. */
|
|
88
|
+
export declare const PUMP_AMM_ERROR__BUY_NOT_ENOUGH_QUOTE_TOKENS_TO_COVER_FEES = 6039;
|
|
89
|
+
/** BuySlippageBelowMinBaseAmountOut: buy: slippage - would buy less tokens than expected min_base_amount_out */
|
|
90
|
+
export declare const PUMP_AMM_ERROR__BUY_SLIPPAGE_BELOW_MIN_BASE_AMOUNT_OUT = 6040;
|
|
91
|
+
export type PumpAmmError = typeof PUMP_AMM_ERROR__ACCOUNT_TYPE_NOT_SUPPORTED | typeof PUMP_AMM_ERROR__ALL_PROTOCOL_FEE_RECIPIENTS_SHOULD_BE_NON_ZERO | typeof PUMP_AMM_ERROR__BUY_MORE_BASE_AMOUNT_THAN_POOL_RESERVES | typeof PUMP_AMM_ERROR__BUY_NOT_ENOUGH_QUOTE_TOKENS_TO_COVER_FEES | typeof PUMP_AMM_ERROR__BUY_SLIPPAGE_BELOW_MIN_BASE_AMOUNT_OUT | typeof PUMP_AMM_ERROR__DAY_IN_ACTIVE_RANGE | typeof PUMP_AMM_ERROR__DAY_INDEX_AFTER_END_INDEX | typeof PUMP_AMM_ERROR__DISABLED_BUY | typeof PUMP_AMM_ERROR__DISABLED_CREATE_POOL | typeof PUMP_AMM_ERROR__DISABLED_DEPOSIT | typeof PUMP_AMM_ERROR__DISABLED_SELL | typeof PUMP_AMM_ERROR__DISABLED_WITHDRAW | typeof PUMP_AMM_ERROR__DIVISION_BY_ZERO | typeof PUMP_AMM_ERROR__END_TIME_BEFORE_CURRENT_DAY | typeof PUMP_AMM_ERROR__END_TIME_BEFORE_START_TIME | typeof PUMP_AMM_ERROR__END_TIME_IN_THE_PAST | typeof PUMP_AMM_ERROR__EXCEEDED_SLIPPAGE | typeof PUMP_AMM_ERROR__FEE_BASIS_POINTS_EXCEEDS_MAXIMUM | typeof PUMP_AMM_ERROR__INVALID_ADMIN | typeof PUMP_AMM_ERROR__INVALID_ADMIN_SET_COIN_CREATOR_AUTHORITY | typeof PUMP_AMM_ERROR__INVALID_BASE_MINT | typeof PUMP_AMM_ERROR__INVALID_INCENTIVE_MINT | typeof PUMP_AMM_ERROR__INVALID_LP_MINT | typeof PUMP_AMM_ERROR__INVALID_POOL_BASE_TOKEN_ACCOUNT | typeof PUMP_AMM_ERROR__INVALID_POOL_QUOTE_TOKEN_ACCOUNT | typeof PUMP_AMM_ERROR__INVALID_PROTOCOL_FEE_RECIPIENT | typeof PUMP_AMM_ERROR__INVALID_QUOTE_MINT | typeof PUMP_AMM_ERROR__NEW_SIZE_LESS_THAN_CURRENT_SIZE | typeof PUMP_AMM_ERROR__ONLY_CANONICAL_PUMP_POOLS_CAN_HAVE_COIN_CREATOR | typeof PUMP_AMM_ERROR__OVERFLOW | typeof PUMP_AMM_ERROR__SAME_MINT | typeof PUMP_AMM_ERROR__START_TIME_IN_THE_PAST | typeof PUMP_AMM_ERROR__SUPPLY_UPDATE_FOR_FINISHED_RANGE | typeof PUMP_AMM_ERROR__TIME_RANGE_TOO_LARGE | typeof PUMP_AMM_ERROR__TOO_LITTLE_POOL_TOKEN_LIQUIDITY | typeof PUMP_AMM_ERROR__TRUNCATION | typeof PUMP_AMM_ERROR__UNSORTED_NOT_UNIQUE_PROTOCOL_FEE_RECIPIENTS | typeof PUMP_AMM_ERROR__UNSUPPORTED_BASE_MINT | typeof PUMP_AMM_ERROR__UNSUPPORTED_QUOTE_MINT | typeof PUMP_AMM_ERROR__ZERO_BASE_AMOUNT | typeof PUMP_AMM_ERROR__ZERO_QUOTE_AMOUNT;
|
|
92
|
+
export declare function getPumpAmmErrorMessage(code: PumpAmmError): string;
|
|
93
|
+
export declare function isPumpAmmError<TProgramErrorCode extends PumpAmmError>(error: unknown, transactionMessage: {
|
|
94
|
+
instructions: Record<number, {
|
|
95
|
+
programAddress: Address;
|
|
96
|
+
}>;
|
|
97
|
+
}, code?: TProgramErrorCode): error is SolanaError<typeof SOLANA_ERROR__INSTRUCTION_ERROR__CUSTOM> & Readonly<{
|
|
98
|
+
context: Readonly<{
|
|
99
|
+
code: TProgramErrorCode;
|
|
100
|
+
}>;
|
|
101
|
+
}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
export * from './accounts';
|
|
9
|
+
export * from './errors';
|
|
10
|
+
export * from './instructions';
|
|
11
|
+
export * from './programs';
|
|
12
|
+
export * from './types';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { PUMP_AMM_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const ADMIN_SET_COIN_CREATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getAdminSetCoinCreatorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type AdminSetCoinCreatorInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountAdminSetCoinCreatorAuthority extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountPool extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountAdminSetCoinCreatorAuthority extends string ? ReadonlySignerAccount<TAccountAdminSetCoinCreatorAuthority> & AccountSignerMeta<TAccountAdminSetCoinCreatorAuthority> : TAccountAdminSetCoinCreatorAuthority,
|
|
14
|
+
TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig,
|
|
15
|
+
TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
|
|
16
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
17
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
18
|
+
...TRemainingAccounts
|
|
19
|
+
]>;
|
|
20
|
+
export type AdminSetCoinCreatorInstructionData = {
|
|
21
|
+
discriminator: ReadonlyUint8Array;
|
|
22
|
+
coinCreator: Address;
|
|
23
|
+
};
|
|
24
|
+
export type AdminSetCoinCreatorInstructionDataArgs = {
|
|
25
|
+
coinCreator: Address;
|
|
26
|
+
};
|
|
27
|
+
export declare function getAdminSetCoinCreatorInstructionDataEncoder(): FixedSizeEncoder<AdminSetCoinCreatorInstructionDataArgs>;
|
|
28
|
+
export declare function getAdminSetCoinCreatorInstructionDataDecoder(): FixedSizeDecoder<AdminSetCoinCreatorInstructionData>;
|
|
29
|
+
export declare function getAdminSetCoinCreatorInstructionDataCodec(): FixedSizeCodec<AdminSetCoinCreatorInstructionDataArgs, AdminSetCoinCreatorInstructionData>;
|
|
30
|
+
export type AdminSetCoinCreatorAsyncInput<TAccountAdminSetCoinCreatorAuthority extends string = string, TAccountGlobalConfig extends string = string, TAccountPool extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
31
|
+
adminSetCoinCreatorAuthority: TransactionSigner<TAccountAdminSetCoinCreatorAuthority>;
|
|
32
|
+
globalConfig: Address<TAccountGlobalConfig>;
|
|
33
|
+
pool: Address<TAccountPool>;
|
|
34
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
35
|
+
program: Address<TAccountProgram>;
|
|
36
|
+
coinCreator: AdminSetCoinCreatorInstructionDataArgs['coinCreator'];
|
|
37
|
+
};
|
|
38
|
+
export declare function getAdminSetCoinCreatorInstructionAsync<TAccountAdminSetCoinCreatorAuthority extends string, TAccountGlobalConfig extends string, TAccountPool extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: AdminSetCoinCreatorAsyncInput<TAccountAdminSetCoinCreatorAuthority, TAccountGlobalConfig, TAccountPool, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
39
|
+
programAddress?: TProgramAddress;
|
|
40
|
+
}): Promise<AdminSetCoinCreatorInstruction<TProgramAddress, TAccountAdminSetCoinCreatorAuthority, TAccountGlobalConfig, TAccountPool, TAccountEventAuthority, TAccountProgram>>;
|
|
41
|
+
export type AdminSetCoinCreatorInput<TAccountAdminSetCoinCreatorAuthority extends string = string, TAccountGlobalConfig extends string = string, TAccountPool extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
42
|
+
adminSetCoinCreatorAuthority: TransactionSigner<TAccountAdminSetCoinCreatorAuthority>;
|
|
43
|
+
globalConfig: Address<TAccountGlobalConfig>;
|
|
44
|
+
pool: Address<TAccountPool>;
|
|
45
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
46
|
+
program: Address<TAccountProgram>;
|
|
47
|
+
coinCreator: AdminSetCoinCreatorInstructionDataArgs['coinCreator'];
|
|
48
|
+
};
|
|
49
|
+
export declare function getAdminSetCoinCreatorInstruction<TAccountAdminSetCoinCreatorAuthority extends string, TAccountGlobalConfig extends string, TAccountPool extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: AdminSetCoinCreatorInput<TAccountAdminSetCoinCreatorAuthority, TAccountGlobalConfig, TAccountPool, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
50
|
+
programAddress?: TProgramAddress;
|
|
51
|
+
}): AdminSetCoinCreatorInstruction<TProgramAddress, TAccountAdminSetCoinCreatorAuthority, TAccountGlobalConfig, TAccountPool, TAccountEventAuthority, TAccountProgram>;
|
|
52
|
+
export type ParsedAdminSetCoinCreatorInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
53
|
+
programAddress: Address<TProgram>;
|
|
54
|
+
accounts: {
|
|
55
|
+
adminSetCoinCreatorAuthority: TAccountMetas[0];
|
|
56
|
+
globalConfig: TAccountMetas[1];
|
|
57
|
+
pool: TAccountMetas[2];
|
|
58
|
+
eventAuthority: TAccountMetas[3];
|
|
59
|
+
program: TAccountMetas[4];
|
|
60
|
+
};
|
|
61
|
+
data: AdminSetCoinCreatorInstructionData;
|
|
62
|
+
};
|
|
63
|
+
export declare function parseAdminSetCoinCreatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAdminSetCoinCreatorInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the Codama library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun Codama to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/codama-idl/codama
|
|
7
|
+
*/
|
|
8
|
+
import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { PUMP_AMM_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const ADMIN_UPDATE_TOKEN_INCENTIVES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getAdminUpdateTokenIncentivesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type AdminUpdateTokenIncentivesInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountAdmin extends string | AccountMeta<string> = string, TAccountGlobalConfig extends string | AccountMeta<string> = string, TAccountGlobalVolumeAccumulator extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountGlobalIncentiveTokenAccount extends string | AccountMeta<string> = string, TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountAdmin extends string ? WritableSignerAccount<TAccountAdmin> & AccountSignerMeta<TAccountAdmin> : TAccountAdmin,
|
|
14
|
+
TAccountGlobalConfig extends string ? ReadonlyAccount<TAccountGlobalConfig> : TAccountGlobalConfig,
|
|
15
|
+
TAccountGlobalVolumeAccumulator extends string ? WritableAccount<TAccountGlobalVolumeAccumulator> : TAccountGlobalVolumeAccumulator,
|
|
16
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
17
|
+
TAccountGlobalIncentiveTokenAccount extends string ? WritableAccount<TAccountGlobalIncentiveTokenAccount> : TAccountGlobalIncentiveTokenAccount,
|
|
18
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
19
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
20
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
21
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
22
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
23
|
+
...TRemainingAccounts
|
|
24
|
+
]>;
|
|
25
|
+
export type AdminUpdateTokenIncentivesInstructionData = {
|
|
26
|
+
discriminator: ReadonlyUint8Array;
|
|
27
|
+
startTime: bigint;
|
|
28
|
+
endTime: bigint;
|
|
29
|
+
secondsInADay: bigint;
|
|
30
|
+
dayNumber: bigint;
|
|
31
|
+
tokenSupplyPerDay: bigint;
|
|
32
|
+
};
|
|
33
|
+
export type AdminUpdateTokenIncentivesInstructionDataArgs = {
|
|
34
|
+
startTime: number | bigint;
|
|
35
|
+
endTime: number | bigint;
|
|
36
|
+
secondsInADay: number | bigint;
|
|
37
|
+
dayNumber: number | bigint;
|
|
38
|
+
tokenSupplyPerDay: number | bigint;
|
|
39
|
+
};
|
|
40
|
+
export declare function getAdminUpdateTokenIncentivesInstructionDataEncoder(): FixedSizeEncoder<AdminUpdateTokenIncentivesInstructionDataArgs>;
|
|
41
|
+
export declare function getAdminUpdateTokenIncentivesInstructionDataDecoder(): FixedSizeDecoder<AdminUpdateTokenIncentivesInstructionData>;
|
|
42
|
+
export declare function getAdminUpdateTokenIncentivesInstructionDataCodec(): FixedSizeCodec<AdminUpdateTokenIncentivesInstructionDataArgs, AdminUpdateTokenIncentivesInstructionData>;
|
|
43
|
+
export type AdminUpdateTokenIncentivesAsyncInput<TAccountAdmin extends string = string, TAccountGlobalConfig extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountMint extends string = string, TAccountGlobalIncentiveTokenAccount extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
44
|
+
admin: TransactionSigner<TAccountAdmin>;
|
|
45
|
+
globalConfig?: Address<TAccountGlobalConfig>;
|
|
46
|
+
globalVolumeAccumulator?: Address<TAccountGlobalVolumeAccumulator>;
|
|
47
|
+
mint: Address<TAccountMint>;
|
|
48
|
+
globalIncentiveTokenAccount?: Address<TAccountGlobalIncentiveTokenAccount>;
|
|
49
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
50
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
51
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
52
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
53
|
+
program: Address<TAccountProgram>;
|
|
54
|
+
startTime: AdminUpdateTokenIncentivesInstructionDataArgs['startTime'];
|
|
55
|
+
endTime: AdminUpdateTokenIncentivesInstructionDataArgs['endTime'];
|
|
56
|
+
secondsInADay: AdminUpdateTokenIncentivesInstructionDataArgs['secondsInADay'];
|
|
57
|
+
dayNumber: AdminUpdateTokenIncentivesInstructionDataArgs['dayNumber'];
|
|
58
|
+
tokenSupplyPerDay: AdminUpdateTokenIncentivesInstructionDataArgs['tokenSupplyPerDay'];
|
|
59
|
+
};
|
|
60
|
+
export declare function getAdminUpdateTokenIncentivesInstructionAsync<TAccountAdmin extends string, TAccountGlobalConfig extends string, TAccountGlobalVolumeAccumulator extends string, TAccountMint extends string, TAccountGlobalIncentiveTokenAccount extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: AdminUpdateTokenIncentivesAsyncInput<TAccountAdmin, TAccountGlobalConfig, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
61
|
+
programAddress?: TProgramAddress;
|
|
62
|
+
}): Promise<AdminUpdateTokenIncentivesInstruction<TProgramAddress, TAccountAdmin, TAccountGlobalConfig, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
63
|
+
export type AdminUpdateTokenIncentivesInput<TAccountAdmin extends string = string, TAccountGlobalConfig extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountMint extends string = string, TAccountGlobalIncentiveTokenAccount extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
64
|
+
admin: TransactionSigner<TAccountAdmin>;
|
|
65
|
+
globalConfig: Address<TAccountGlobalConfig>;
|
|
66
|
+
globalVolumeAccumulator: Address<TAccountGlobalVolumeAccumulator>;
|
|
67
|
+
mint: Address<TAccountMint>;
|
|
68
|
+
globalIncentiveTokenAccount: Address<TAccountGlobalIncentiveTokenAccount>;
|
|
69
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
70
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
71
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
72
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
73
|
+
program: Address<TAccountProgram>;
|
|
74
|
+
startTime: AdminUpdateTokenIncentivesInstructionDataArgs['startTime'];
|
|
75
|
+
endTime: AdminUpdateTokenIncentivesInstructionDataArgs['endTime'];
|
|
76
|
+
secondsInADay: AdminUpdateTokenIncentivesInstructionDataArgs['secondsInADay'];
|
|
77
|
+
dayNumber: AdminUpdateTokenIncentivesInstructionDataArgs['dayNumber'];
|
|
78
|
+
tokenSupplyPerDay: AdminUpdateTokenIncentivesInstructionDataArgs['tokenSupplyPerDay'];
|
|
79
|
+
};
|
|
80
|
+
export declare function getAdminUpdateTokenIncentivesInstruction<TAccountAdmin extends string, TAccountGlobalConfig extends string, TAccountGlobalVolumeAccumulator extends string, TAccountMint extends string, TAccountGlobalIncentiveTokenAccount extends string, TAccountAssociatedTokenProgram extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_AMM_PROGRAM_ADDRESS>(input: AdminUpdateTokenIncentivesInput<TAccountAdmin, TAccountGlobalConfig, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
81
|
+
programAddress?: TProgramAddress;
|
|
82
|
+
}): AdminUpdateTokenIncentivesInstruction<TProgramAddress, TAccountAdmin, TAccountGlobalConfig, TAccountGlobalVolumeAccumulator, TAccountMint, TAccountGlobalIncentiveTokenAccount, TAccountAssociatedTokenProgram, TAccountSystemProgram, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>;
|
|
83
|
+
export type ParsedAdminUpdateTokenIncentivesInstruction<TProgram extends string = typeof PUMP_AMM_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
84
|
+
programAddress: Address<TProgram>;
|
|
85
|
+
accounts: {
|
|
86
|
+
admin: TAccountMetas[0];
|
|
87
|
+
globalConfig: TAccountMetas[1];
|
|
88
|
+
globalVolumeAccumulator: TAccountMetas[2];
|
|
89
|
+
mint: TAccountMetas[3];
|
|
90
|
+
globalIncentiveTokenAccount: TAccountMetas[4];
|
|
91
|
+
associatedTokenProgram: TAccountMetas[5];
|
|
92
|
+
systemProgram: TAccountMetas[6];
|
|
93
|
+
tokenProgram: TAccountMetas[7];
|
|
94
|
+
eventAuthority: TAccountMetas[8];
|
|
95
|
+
program: TAccountMetas[9];
|
|
96
|
+
};
|
|
97
|
+
data: AdminUpdateTokenIncentivesInstructionData;
|
|
98
|
+
};
|
|
99
|
+
export declare function parseAdminUpdateTokenIncentivesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAdminUpdateTokenIncentivesInstruction<TProgram, TAccountMetas>;
|