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,116 @@
|
|
|
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_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
import { type OptionBool, type OptionBoolArgs } from '../types';
|
|
11
|
+
export declare const BUY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
12
|
+
export declare function getBuyDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type BuyInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountFeeRecipient extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountAssociatedBondingCurve extends string | AccountMeta<string> = string, TAccountAssociatedUser extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountCreatorVault extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P', TAccountGlobalVolumeAccumulator extends string | AccountMeta<string> = string, TAccountUserVolumeAccumulator extends string | AccountMeta<string> = string, TAccountFeeConfig extends string | AccountMeta<string> = string, TAccountFeeProgram extends string | AccountMeta<string> = 'pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
|
|
15
|
+
TAccountFeeRecipient extends string ? WritableAccount<TAccountFeeRecipient> : TAccountFeeRecipient,
|
|
16
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
17
|
+
TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
|
|
18
|
+
TAccountAssociatedBondingCurve extends string ? WritableAccount<TAccountAssociatedBondingCurve> : TAccountAssociatedBondingCurve,
|
|
19
|
+
TAccountAssociatedUser extends string ? WritableAccount<TAccountAssociatedUser> : TAccountAssociatedUser,
|
|
20
|
+
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
21
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
22
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
23
|
+
TAccountCreatorVault extends string ? WritableAccount<TAccountCreatorVault> : TAccountCreatorVault,
|
|
24
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
25
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
26
|
+
TAccountGlobalVolumeAccumulator extends string ? WritableAccount<TAccountGlobalVolumeAccumulator> : TAccountGlobalVolumeAccumulator,
|
|
27
|
+
TAccountUserVolumeAccumulator extends string ? WritableAccount<TAccountUserVolumeAccumulator> : TAccountUserVolumeAccumulator,
|
|
28
|
+
TAccountFeeConfig extends string ? ReadonlyAccount<TAccountFeeConfig> : TAccountFeeConfig,
|
|
29
|
+
TAccountFeeProgram extends string ? ReadonlyAccount<TAccountFeeProgram> : TAccountFeeProgram,
|
|
30
|
+
...TRemainingAccounts
|
|
31
|
+
]>;
|
|
32
|
+
export type BuyInstructionData = {
|
|
33
|
+
discriminator: ReadonlyUint8Array;
|
|
34
|
+
amount: bigint;
|
|
35
|
+
maxSolCost: bigint;
|
|
36
|
+
trackVolume: OptionBool;
|
|
37
|
+
};
|
|
38
|
+
export type BuyInstructionDataArgs = {
|
|
39
|
+
amount: number | bigint;
|
|
40
|
+
maxSolCost: number | bigint;
|
|
41
|
+
trackVolume: OptionBoolArgs;
|
|
42
|
+
};
|
|
43
|
+
export declare function getBuyInstructionDataEncoder(): FixedSizeEncoder<BuyInstructionDataArgs>;
|
|
44
|
+
export declare function getBuyInstructionDataDecoder(): FixedSizeDecoder<BuyInstructionData>;
|
|
45
|
+
export declare function getBuyInstructionDataCodec(): FixedSizeCodec<BuyInstructionDataArgs, BuyInstructionData>;
|
|
46
|
+
export type BuyAsyncInput<TAccountGlobal extends string = string, TAccountFeeRecipient extends string = string, TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountAssociatedBondingCurve extends string = string, TAccountAssociatedUser extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountCreatorVault extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountFeeConfig extends string = string, TAccountFeeProgram extends string = string> = {
|
|
47
|
+
global?: Address<TAccountGlobal>;
|
|
48
|
+
feeRecipient: Address<TAccountFeeRecipient>;
|
|
49
|
+
mint: Address<TAccountMint>;
|
|
50
|
+
bondingCurve?: Address<TAccountBondingCurve>;
|
|
51
|
+
associatedBondingCurve?: Address<TAccountAssociatedBondingCurve>;
|
|
52
|
+
associatedUser: Address<TAccountAssociatedUser>;
|
|
53
|
+
user: TransactionSigner<TAccountUser>;
|
|
54
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
55
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
56
|
+
creatorVault: Address<TAccountCreatorVault>;
|
|
57
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
58
|
+
program?: Address<TAccountProgram>;
|
|
59
|
+
globalVolumeAccumulator?: Address<TAccountGlobalVolumeAccumulator>;
|
|
60
|
+
userVolumeAccumulator?: Address<TAccountUserVolumeAccumulator>;
|
|
61
|
+
feeConfig?: Address<TAccountFeeConfig>;
|
|
62
|
+
feeProgram?: Address<TAccountFeeProgram>;
|
|
63
|
+
amount: BuyInstructionDataArgs['amount'];
|
|
64
|
+
maxSolCost: BuyInstructionDataArgs['maxSolCost'];
|
|
65
|
+
trackVolume: BuyInstructionDataArgs['trackVolume'];
|
|
66
|
+
};
|
|
67
|
+
export declare function getBuyInstructionAsync<TAccountGlobal extends string, TAccountFeeRecipient extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountAssociatedUser extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountCreatorVault extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TAccountGlobalVolumeAccumulator extends string, TAccountUserVolumeAccumulator extends string, TAccountFeeConfig extends string, TAccountFeeProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: BuyAsyncInput<TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountCreatorVault, TAccountEventAuthority, TAccountProgram, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountFeeConfig, TAccountFeeProgram>, config?: {
|
|
68
|
+
programAddress?: TProgramAddress;
|
|
69
|
+
}): Promise<BuyInstruction<TProgramAddress, TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountCreatorVault, TAccountEventAuthority, TAccountProgram, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountFeeConfig, TAccountFeeProgram>>;
|
|
70
|
+
export type BuyInput<TAccountGlobal extends string = string, TAccountFeeRecipient extends string = string, TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountAssociatedBondingCurve extends string = string, TAccountAssociatedUser extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountCreatorVault extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountFeeConfig extends string = string, TAccountFeeProgram extends string = string> = {
|
|
71
|
+
global: Address<TAccountGlobal>;
|
|
72
|
+
feeRecipient: Address<TAccountFeeRecipient>;
|
|
73
|
+
mint: Address<TAccountMint>;
|
|
74
|
+
bondingCurve: Address<TAccountBondingCurve>;
|
|
75
|
+
associatedBondingCurve: Address<TAccountAssociatedBondingCurve>;
|
|
76
|
+
associatedUser: Address<TAccountAssociatedUser>;
|
|
77
|
+
user: TransactionSigner<TAccountUser>;
|
|
78
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
79
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
80
|
+
creatorVault: Address<TAccountCreatorVault>;
|
|
81
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
82
|
+
program?: Address<TAccountProgram>;
|
|
83
|
+
globalVolumeAccumulator: Address<TAccountGlobalVolumeAccumulator>;
|
|
84
|
+
userVolumeAccumulator: Address<TAccountUserVolumeAccumulator>;
|
|
85
|
+
feeConfig: Address<TAccountFeeConfig>;
|
|
86
|
+
feeProgram?: Address<TAccountFeeProgram>;
|
|
87
|
+
amount: BuyInstructionDataArgs['amount'];
|
|
88
|
+
maxSolCost: BuyInstructionDataArgs['maxSolCost'];
|
|
89
|
+
trackVolume: BuyInstructionDataArgs['trackVolume'];
|
|
90
|
+
};
|
|
91
|
+
export declare function getBuyInstruction<TAccountGlobal extends string, TAccountFeeRecipient extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountAssociatedUser extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountCreatorVault extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TAccountGlobalVolumeAccumulator extends string, TAccountUserVolumeAccumulator extends string, TAccountFeeConfig extends string, TAccountFeeProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: BuyInput<TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountCreatorVault, TAccountEventAuthority, TAccountProgram, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountFeeConfig, TAccountFeeProgram>, config?: {
|
|
92
|
+
programAddress?: TProgramAddress;
|
|
93
|
+
}): BuyInstruction<TProgramAddress, TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountCreatorVault, TAccountEventAuthority, TAccountProgram, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountFeeConfig, TAccountFeeProgram>;
|
|
94
|
+
export type ParsedBuyInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
95
|
+
programAddress: Address<TProgram>;
|
|
96
|
+
accounts: {
|
|
97
|
+
global: TAccountMetas[0];
|
|
98
|
+
feeRecipient: TAccountMetas[1];
|
|
99
|
+
mint: TAccountMetas[2];
|
|
100
|
+
bondingCurve: TAccountMetas[3];
|
|
101
|
+
associatedBondingCurve: TAccountMetas[4];
|
|
102
|
+
associatedUser: TAccountMetas[5];
|
|
103
|
+
user: TAccountMetas[6];
|
|
104
|
+
systemProgram: TAccountMetas[7];
|
|
105
|
+
tokenProgram: TAccountMetas[8];
|
|
106
|
+
creatorVault: TAccountMetas[9];
|
|
107
|
+
eventAuthority: TAccountMetas[10];
|
|
108
|
+
program: TAccountMetas[11];
|
|
109
|
+
globalVolumeAccumulator: TAccountMetas[12];
|
|
110
|
+
userVolumeAccumulator: TAccountMetas[13];
|
|
111
|
+
feeConfig: TAccountMetas[14];
|
|
112
|
+
feeProgram: TAccountMetas[15];
|
|
113
|
+
};
|
|
114
|
+
data: BuyInstructionData;
|
|
115
|
+
};
|
|
116
|
+
export declare function parseBuyInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,116 @@
|
|
|
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_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
import { type OptionBool, type OptionBoolArgs } from '../types';
|
|
11
|
+
export declare const BUY_EXACT_SOL_IN_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
12
|
+
export declare function getBuyExactSolInDiscriminatorBytes(): ReadonlyUint8Array;
|
|
13
|
+
export type BuyExactSolInInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountFeeRecipient extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountAssociatedBondingCurve extends string | AccountMeta<string> = string, TAccountAssociatedUser extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountCreatorVault extends string | AccountMeta<string> = string, TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P', TAccountGlobalVolumeAccumulator extends string | AccountMeta<string> = string, TAccountUserVolumeAccumulator extends string | AccountMeta<string> = string, TAccountFeeConfig extends string | AccountMeta<string> = string, TAccountFeeProgram extends string | AccountMeta<string> = 'pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
14
|
+
TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
|
|
15
|
+
TAccountFeeRecipient extends string ? WritableAccount<TAccountFeeRecipient> : TAccountFeeRecipient,
|
|
16
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
17
|
+
TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
|
|
18
|
+
TAccountAssociatedBondingCurve extends string ? WritableAccount<TAccountAssociatedBondingCurve> : TAccountAssociatedBondingCurve,
|
|
19
|
+
TAccountAssociatedUser extends string ? WritableAccount<TAccountAssociatedUser> : TAccountAssociatedUser,
|
|
20
|
+
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
21
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
22
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
23
|
+
TAccountCreatorVault extends string ? WritableAccount<TAccountCreatorVault> : TAccountCreatorVault,
|
|
24
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
25
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
26
|
+
TAccountGlobalVolumeAccumulator extends string ? WritableAccount<TAccountGlobalVolumeAccumulator> : TAccountGlobalVolumeAccumulator,
|
|
27
|
+
TAccountUserVolumeAccumulator extends string ? WritableAccount<TAccountUserVolumeAccumulator> : TAccountUserVolumeAccumulator,
|
|
28
|
+
TAccountFeeConfig extends string ? ReadonlyAccount<TAccountFeeConfig> : TAccountFeeConfig,
|
|
29
|
+
TAccountFeeProgram extends string ? ReadonlyAccount<TAccountFeeProgram> : TAccountFeeProgram,
|
|
30
|
+
...TRemainingAccounts
|
|
31
|
+
]>;
|
|
32
|
+
export type BuyExactSolInInstructionData = {
|
|
33
|
+
discriminator: ReadonlyUint8Array;
|
|
34
|
+
spendableSolIn: bigint;
|
|
35
|
+
minTokensOut: bigint;
|
|
36
|
+
trackVolume: OptionBool;
|
|
37
|
+
};
|
|
38
|
+
export type BuyExactSolInInstructionDataArgs = {
|
|
39
|
+
spendableSolIn: number | bigint;
|
|
40
|
+
minTokensOut: number | bigint;
|
|
41
|
+
trackVolume: OptionBoolArgs;
|
|
42
|
+
};
|
|
43
|
+
export declare function getBuyExactSolInInstructionDataEncoder(): FixedSizeEncoder<BuyExactSolInInstructionDataArgs>;
|
|
44
|
+
export declare function getBuyExactSolInInstructionDataDecoder(): FixedSizeDecoder<BuyExactSolInInstructionData>;
|
|
45
|
+
export declare function getBuyExactSolInInstructionDataCodec(): FixedSizeCodec<BuyExactSolInInstructionDataArgs, BuyExactSolInInstructionData>;
|
|
46
|
+
export type BuyExactSolInAsyncInput<TAccountGlobal extends string = string, TAccountFeeRecipient extends string = string, TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountAssociatedBondingCurve extends string = string, TAccountAssociatedUser extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountCreatorVault extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountFeeConfig extends string = string, TAccountFeeProgram extends string = string> = {
|
|
47
|
+
global?: Address<TAccountGlobal>;
|
|
48
|
+
feeRecipient: Address<TAccountFeeRecipient>;
|
|
49
|
+
mint: Address<TAccountMint>;
|
|
50
|
+
bondingCurve?: Address<TAccountBondingCurve>;
|
|
51
|
+
associatedBondingCurve?: Address<TAccountAssociatedBondingCurve>;
|
|
52
|
+
associatedUser: Address<TAccountAssociatedUser>;
|
|
53
|
+
user: TransactionSigner<TAccountUser>;
|
|
54
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
55
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
56
|
+
creatorVault: Address<TAccountCreatorVault>;
|
|
57
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
58
|
+
program?: Address<TAccountProgram>;
|
|
59
|
+
globalVolumeAccumulator?: Address<TAccountGlobalVolumeAccumulator>;
|
|
60
|
+
userVolumeAccumulator?: Address<TAccountUserVolumeAccumulator>;
|
|
61
|
+
feeConfig?: Address<TAccountFeeConfig>;
|
|
62
|
+
feeProgram?: Address<TAccountFeeProgram>;
|
|
63
|
+
spendableSolIn: BuyExactSolInInstructionDataArgs['spendableSolIn'];
|
|
64
|
+
minTokensOut: BuyExactSolInInstructionDataArgs['minTokensOut'];
|
|
65
|
+
trackVolume: BuyExactSolInInstructionDataArgs['trackVolume'];
|
|
66
|
+
};
|
|
67
|
+
export declare function getBuyExactSolInInstructionAsync<TAccountGlobal extends string, TAccountFeeRecipient extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountAssociatedUser extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountCreatorVault extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TAccountGlobalVolumeAccumulator extends string, TAccountUserVolumeAccumulator extends string, TAccountFeeConfig extends string, TAccountFeeProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: BuyExactSolInAsyncInput<TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountCreatorVault, TAccountEventAuthority, TAccountProgram, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountFeeConfig, TAccountFeeProgram>, config?: {
|
|
68
|
+
programAddress?: TProgramAddress;
|
|
69
|
+
}): Promise<BuyExactSolInInstruction<TProgramAddress, TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountCreatorVault, TAccountEventAuthority, TAccountProgram, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountFeeConfig, TAccountFeeProgram>>;
|
|
70
|
+
export type BuyExactSolInInput<TAccountGlobal extends string = string, TAccountFeeRecipient extends string = string, TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountAssociatedBondingCurve extends string = string, TAccountAssociatedUser extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountCreatorVault extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountFeeConfig extends string = string, TAccountFeeProgram extends string = string> = {
|
|
71
|
+
global: Address<TAccountGlobal>;
|
|
72
|
+
feeRecipient: Address<TAccountFeeRecipient>;
|
|
73
|
+
mint: Address<TAccountMint>;
|
|
74
|
+
bondingCurve: Address<TAccountBondingCurve>;
|
|
75
|
+
associatedBondingCurve: Address<TAccountAssociatedBondingCurve>;
|
|
76
|
+
associatedUser: Address<TAccountAssociatedUser>;
|
|
77
|
+
user: TransactionSigner<TAccountUser>;
|
|
78
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
79
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
80
|
+
creatorVault: Address<TAccountCreatorVault>;
|
|
81
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
82
|
+
program?: Address<TAccountProgram>;
|
|
83
|
+
globalVolumeAccumulator: Address<TAccountGlobalVolumeAccumulator>;
|
|
84
|
+
userVolumeAccumulator: Address<TAccountUserVolumeAccumulator>;
|
|
85
|
+
feeConfig: Address<TAccountFeeConfig>;
|
|
86
|
+
feeProgram?: Address<TAccountFeeProgram>;
|
|
87
|
+
spendableSolIn: BuyExactSolInInstructionDataArgs['spendableSolIn'];
|
|
88
|
+
minTokensOut: BuyExactSolInInstructionDataArgs['minTokensOut'];
|
|
89
|
+
trackVolume: BuyExactSolInInstructionDataArgs['trackVolume'];
|
|
90
|
+
};
|
|
91
|
+
export declare function getBuyExactSolInInstruction<TAccountGlobal extends string, TAccountFeeRecipient extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountAssociatedUser extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountCreatorVault extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TAccountGlobalVolumeAccumulator extends string, TAccountUserVolumeAccumulator extends string, TAccountFeeConfig extends string, TAccountFeeProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: BuyExactSolInInput<TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountCreatorVault, TAccountEventAuthority, TAccountProgram, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountFeeConfig, TAccountFeeProgram>, config?: {
|
|
92
|
+
programAddress?: TProgramAddress;
|
|
93
|
+
}): BuyExactSolInInstruction<TProgramAddress, TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountCreatorVault, TAccountEventAuthority, TAccountProgram, TAccountGlobalVolumeAccumulator, TAccountUserVolumeAccumulator, TAccountFeeConfig, TAccountFeeProgram>;
|
|
94
|
+
export type ParsedBuyExactSolInInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
95
|
+
programAddress: Address<TProgram>;
|
|
96
|
+
accounts: {
|
|
97
|
+
global: TAccountMetas[0];
|
|
98
|
+
feeRecipient: TAccountMetas[1];
|
|
99
|
+
mint: TAccountMetas[2];
|
|
100
|
+
bondingCurve: TAccountMetas[3];
|
|
101
|
+
associatedBondingCurve: TAccountMetas[4];
|
|
102
|
+
associatedUser: TAccountMetas[5];
|
|
103
|
+
user: TAccountMetas[6];
|
|
104
|
+
systemProgram: TAccountMetas[7];
|
|
105
|
+
tokenProgram: TAccountMetas[8];
|
|
106
|
+
creatorVault: TAccountMetas[9];
|
|
107
|
+
eventAuthority: TAccountMetas[10];
|
|
108
|
+
program: TAccountMetas[11];
|
|
109
|
+
globalVolumeAccumulator: TAccountMetas[12];
|
|
110
|
+
userVolumeAccumulator: TAccountMetas[13];
|
|
111
|
+
feeConfig: TAccountMetas[14];
|
|
112
|
+
feeProgram: TAccountMetas[15];
|
|
113
|
+
};
|
|
114
|
+
data: BuyExactSolInInstructionData;
|
|
115
|
+
};
|
|
116
|
+
export declare function parseBuyExactSolInInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedBuyExactSolInInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,86 @@
|
|
|
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_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const CLAIM_TOKEN_INCENTIVES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getClaimTokenIncentivesDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type ClaimTokenIncentivesInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountUserAta extends string | AccountMeta<string> = string, TAccountGlobalVolumeAccumulator extends string | AccountMeta<string> = string, TAccountGlobalIncentiveTokenAccount extends string | AccountMeta<string> = string, TAccountUserVolumeAccumulator extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P', TAccountPayer extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountUser extends string ? ReadonlyAccount<TAccountUser> : TAccountUser,
|
|
14
|
+
TAccountUserAta extends string ? WritableAccount<TAccountUserAta> : TAccountUserAta,
|
|
15
|
+
TAccountGlobalVolumeAccumulator extends string ? ReadonlyAccount<TAccountGlobalVolumeAccumulator> : TAccountGlobalVolumeAccumulator,
|
|
16
|
+
TAccountGlobalIncentiveTokenAccount extends string ? WritableAccount<TAccountGlobalIncentiveTokenAccount> : TAccountGlobalIncentiveTokenAccount,
|
|
17
|
+
TAccountUserVolumeAccumulator extends string ? WritableAccount<TAccountUserVolumeAccumulator> : TAccountUserVolumeAccumulator,
|
|
18
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
19
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
20
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
21
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
22
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
23
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
24
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
25
|
+
...TRemainingAccounts
|
|
26
|
+
]>;
|
|
27
|
+
export type ClaimTokenIncentivesInstructionData = {
|
|
28
|
+
discriminator: ReadonlyUint8Array;
|
|
29
|
+
};
|
|
30
|
+
export type ClaimTokenIncentivesInstructionDataArgs = {};
|
|
31
|
+
export declare function getClaimTokenIncentivesInstructionDataEncoder(): FixedSizeEncoder<ClaimTokenIncentivesInstructionDataArgs>;
|
|
32
|
+
export declare function getClaimTokenIncentivesInstructionDataDecoder(): FixedSizeDecoder<ClaimTokenIncentivesInstructionData>;
|
|
33
|
+
export declare function getClaimTokenIncentivesInstructionDataCodec(): FixedSizeCodec<ClaimTokenIncentivesInstructionDataArgs, ClaimTokenIncentivesInstructionData>;
|
|
34
|
+
export type ClaimTokenIncentivesAsyncInput<TAccountUser extends string = string, TAccountUserAta extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountGlobalIncentiveTokenAccount extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string, TAccountPayer extends string = string> = {
|
|
35
|
+
user: Address<TAccountUser>;
|
|
36
|
+
userAta?: Address<TAccountUserAta>;
|
|
37
|
+
globalVolumeAccumulator?: Address<TAccountGlobalVolumeAccumulator>;
|
|
38
|
+
globalIncentiveTokenAccount?: Address<TAccountGlobalIncentiveTokenAccount>;
|
|
39
|
+
userVolumeAccumulator?: Address<TAccountUserVolumeAccumulator>;
|
|
40
|
+
mint: Address<TAccountMint>;
|
|
41
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
42
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
43
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
44
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
45
|
+
program?: Address<TAccountProgram>;
|
|
46
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
47
|
+
};
|
|
48
|
+
export declare function getClaimTokenIncentivesInstructionAsync<TAccountUser extends string, TAccountUserAta extends string, TAccountGlobalVolumeAccumulator extends string, TAccountGlobalIncentiveTokenAccount extends string, TAccountUserVolumeAccumulator extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ClaimTokenIncentivesAsyncInput<TAccountUser, TAccountUserAta, TAccountGlobalVolumeAccumulator, TAccountGlobalIncentiveTokenAccount, TAccountUserVolumeAccumulator, TAccountMint, TAccountTokenProgram, TAccountSystemProgram, TAccountAssociatedTokenProgram, TAccountEventAuthority, TAccountProgram, TAccountPayer>, config?: {
|
|
49
|
+
programAddress?: TProgramAddress;
|
|
50
|
+
}): Promise<ClaimTokenIncentivesInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountGlobalVolumeAccumulator, TAccountGlobalIncentiveTokenAccount, TAccountUserVolumeAccumulator, TAccountMint, TAccountTokenProgram, TAccountSystemProgram, TAccountAssociatedTokenProgram, TAccountEventAuthority, TAccountProgram, TAccountPayer>>;
|
|
51
|
+
export type ClaimTokenIncentivesInput<TAccountUser extends string = string, TAccountUserAta extends string = string, TAccountGlobalVolumeAccumulator extends string = string, TAccountGlobalIncentiveTokenAccount extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountMint extends string = string, TAccountTokenProgram extends string = string, TAccountSystemProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string, TAccountPayer extends string = string> = {
|
|
52
|
+
user: Address<TAccountUser>;
|
|
53
|
+
userAta: Address<TAccountUserAta>;
|
|
54
|
+
globalVolumeAccumulator: Address<TAccountGlobalVolumeAccumulator>;
|
|
55
|
+
globalIncentiveTokenAccount: Address<TAccountGlobalIncentiveTokenAccount>;
|
|
56
|
+
userVolumeAccumulator: Address<TAccountUserVolumeAccumulator>;
|
|
57
|
+
mint: Address<TAccountMint>;
|
|
58
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
59
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
60
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
61
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
62
|
+
program?: Address<TAccountProgram>;
|
|
63
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
64
|
+
};
|
|
65
|
+
export declare function getClaimTokenIncentivesInstruction<TAccountUser extends string, TAccountUserAta extends string, TAccountGlobalVolumeAccumulator extends string, TAccountGlobalIncentiveTokenAccount extends string, TAccountUserVolumeAccumulator extends string, TAccountMint extends string, TAccountTokenProgram extends string, TAccountSystemProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TAccountPayer extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ClaimTokenIncentivesInput<TAccountUser, TAccountUserAta, TAccountGlobalVolumeAccumulator, TAccountGlobalIncentiveTokenAccount, TAccountUserVolumeAccumulator, TAccountMint, TAccountTokenProgram, TAccountSystemProgram, TAccountAssociatedTokenProgram, TAccountEventAuthority, TAccountProgram, TAccountPayer>, config?: {
|
|
66
|
+
programAddress?: TProgramAddress;
|
|
67
|
+
}): ClaimTokenIncentivesInstruction<TProgramAddress, TAccountUser, TAccountUserAta, TAccountGlobalVolumeAccumulator, TAccountGlobalIncentiveTokenAccount, TAccountUserVolumeAccumulator, TAccountMint, TAccountTokenProgram, TAccountSystemProgram, TAccountAssociatedTokenProgram, TAccountEventAuthority, TAccountProgram, TAccountPayer>;
|
|
68
|
+
export type ParsedClaimTokenIncentivesInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
69
|
+
programAddress: Address<TProgram>;
|
|
70
|
+
accounts: {
|
|
71
|
+
user: TAccountMetas[0];
|
|
72
|
+
userAta: TAccountMetas[1];
|
|
73
|
+
globalVolumeAccumulator: TAccountMetas[2];
|
|
74
|
+
globalIncentiveTokenAccount: TAccountMetas[3];
|
|
75
|
+
userVolumeAccumulator: TAccountMetas[4];
|
|
76
|
+
mint: TAccountMetas[5];
|
|
77
|
+
tokenProgram: TAccountMetas[6];
|
|
78
|
+
systemProgram: TAccountMetas[7];
|
|
79
|
+
associatedTokenProgram: TAccountMetas[8];
|
|
80
|
+
eventAuthority: TAccountMetas[9];
|
|
81
|
+
program: TAccountMetas[10];
|
|
82
|
+
payer: TAccountMetas[11];
|
|
83
|
+
};
|
|
84
|
+
data: ClaimTokenIncentivesInstructionData;
|
|
85
|
+
};
|
|
86
|
+
export declare function parseClaimTokenIncentivesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedClaimTokenIncentivesInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,54 @@
|
|
|
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_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const CLOSE_USER_VOLUME_ACCUMULATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getCloseUserVolumeAccumulatorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type CloseUserVolumeAccumulatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountUser extends string | AccountMeta<string> = string, TAccountUserVolumeAccumulator 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
|
+
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
14
|
+
TAccountUserVolumeAccumulator extends string ? WritableAccount<TAccountUserVolumeAccumulator> : TAccountUserVolumeAccumulator,
|
|
15
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
16
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
17
|
+
...TRemainingAccounts
|
|
18
|
+
]>;
|
|
19
|
+
export type CloseUserVolumeAccumulatorInstructionData = {
|
|
20
|
+
discriminator: ReadonlyUint8Array;
|
|
21
|
+
};
|
|
22
|
+
export type CloseUserVolumeAccumulatorInstructionDataArgs = {};
|
|
23
|
+
export declare function getCloseUserVolumeAccumulatorInstructionDataEncoder(): FixedSizeEncoder<CloseUserVolumeAccumulatorInstructionDataArgs>;
|
|
24
|
+
export declare function getCloseUserVolumeAccumulatorInstructionDataDecoder(): FixedSizeDecoder<CloseUserVolumeAccumulatorInstructionData>;
|
|
25
|
+
export declare function getCloseUserVolumeAccumulatorInstructionDataCodec(): FixedSizeCodec<CloseUserVolumeAccumulatorInstructionDataArgs, CloseUserVolumeAccumulatorInstructionData>;
|
|
26
|
+
export type CloseUserVolumeAccumulatorAsyncInput<TAccountUser extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
27
|
+
user: TransactionSigner<TAccountUser>;
|
|
28
|
+
userVolumeAccumulator?: Address<TAccountUserVolumeAccumulator>;
|
|
29
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
30
|
+
program: Address<TAccountProgram>;
|
|
31
|
+
};
|
|
32
|
+
export declare function getCloseUserVolumeAccumulatorInstructionAsync<TAccountUser extends string, TAccountUserVolumeAccumulator extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: CloseUserVolumeAccumulatorAsyncInput<TAccountUser, TAccountUserVolumeAccumulator, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
33
|
+
programAddress?: TProgramAddress;
|
|
34
|
+
}): Promise<CloseUserVolumeAccumulatorInstruction<TProgramAddress, TAccountUser, TAccountUserVolumeAccumulator, TAccountEventAuthority, TAccountProgram>>;
|
|
35
|
+
export type CloseUserVolumeAccumulatorInput<TAccountUser extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
36
|
+
user: TransactionSigner<TAccountUser>;
|
|
37
|
+
userVolumeAccumulator: Address<TAccountUserVolumeAccumulator>;
|
|
38
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
39
|
+
program: Address<TAccountProgram>;
|
|
40
|
+
};
|
|
41
|
+
export declare function getCloseUserVolumeAccumulatorInstruction<TAccountUser extends string, TAccountUserVolumeAccumulator extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: CloseUserVolumeAccumulatorInput<TAccountUser, TAccountUserVolumeAccumulator, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
42
|
+
programAddress?: TProgramAddress;
|
|
43
|
+
}): CloseUserVolumeAccumulatorInstruction<TProgramAddress, TAccountUser, TAccountUserVolumeAccumulator, TAccountEventAuthority, TAccountProgram>;
|
|
44
|
+
export type ParsedCloseUserVolumeAccumulatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
45
|
+
programAddress: Address<TProgram>;
|
|
46
|
+
accounts: {
|
|
47
|
+
user: TAccountMetas[0];
|
|
48
|
+
userVolumeAccumulator: TAccountMetas[1];
|
|
49
|
+
eventAuthority: TAccountMetas[2];
|
|
50
|
+
program: TAccountMetas[3];
|
|
51
|
+
};
|
|
52
|
+
data: CloseUserVolumeAccumulatorInstructionData;
|
|
53
|
+
};
|
|
54
|
+
export declare function parseCloseUserVolumeAccumulatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCloseUserVolumeAccumulatorInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,58 @@
|
|
|
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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit';
|
|
9
|
+
import { PUMP_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const COLLECT_CREATOR_FEE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getCollectCreatorFeeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type CollectCreatorFeeInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountCreator extends string | AccountMeta<string> = string, TAccountCreatorVault extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountCreator extends string ? WritableAccount<TAccountCreator> : TAccountCreator,
|
|
14
|
+
TAccountCreatorVault extends string ? WritableAccount<TAccountCreatorVault> : TAccountCreatorVault,
|
|
15
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
16
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
17
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
18
|
+
...TRemainingAccounts
|
|
19
|
+
]>;
|
|
20
|
+
export type CollectCreatorFeeInstructionData = {
|
|
21
|
+
discriminator: ReadonlyUint8Array;
|
|
22
|
+
};
|
|
23
|
+
export type CollectCreatorFeeInstructionDataArgs = {};
|
|
24
|
+
export declare function getCollectCreatorFeeInstructionDataEncoder(): FixedSizeEncoder<CollectCreatorFeeInstructionDataArgs>;
|
|
25
|
+
export declare function getCollectCreatorFeeInstructionDataDecoder(): FixedSizeDecoder<CollectCreatorFeeInstructionData>;
|
|
26
|
+
export declare function getCollectCreatorFeeInstructionDataCodec(): FixedSizeCodec<CollectCreatorFeeInstructionDataArgs, CollectCreatorFeeInstructionData>;
|
|
27
|
+
export type CollectCreatorFeeAsyncInput<TAccountCreator extends string = string, TAccountCreatorVault extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
28
|
+
creator: Address<TAccountCreator>;
|
|
29
|
+
creatorVault?: Address<TAccountCreatorVault>;
|
|
30
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
31
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
32
|
+
program: Address<TAccountProgram>;
|
|
33
|
+
};
|
|
34
|
+
export declare function getCollectCreatorFeeInstructionAsync<TAccountCreator extends string, TAccountCreatorVault extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: CollectCreatorFeeAsyncInput<TAccountCreator, TAccountCreatorVault, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
35
|
+
programAddress?: TProgramAddress;
|
|
36
|
+
}): Promise<CollectCreatorFeeInstruction<TProgramAddress, TAccountCreator, TAccountCreatorVault, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
37
|
+
export type CollectCreatorFeeInput<TAccountCreator extends string = string, TAccountCreatorVault extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
38
|
+
creator: Address<TAccountCreator>;
|
|
39
|
+
creatorVault: Address<TAccountCreatorVault>;
|
|
40
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
41
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
42
|
+
program: Address<TAccountProgram>;
|
|
43
|
+
};
|
|
44
|
+
export declare function getCollectCreatorFeeInstruction<TAccountCreator extends string, TAccountCreatorVault extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: CollectCreatorFeeInput<TAccountCreator, TAccountCreatorVault, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
45
|
+
programAddress?: TProgramAddress;
|
|
46
|
+
}): CollectCreatorFeeInstruction<TProgramAddress, TAccountCreator, TAccountCreatorVault, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
47
|
+
export type ParsedCollectCreatorFeeInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
48
|
+
programAddress: Address<TProgram>;
|
|
49
|
+
accounts: {
|
|
50
|
+
creator: TAccountMetas[0];
|
|
51
|
+
creatorVault: TAccountMetas[1];
|
|
52
|
+
systemProgram: TAccountMetas[2];
|
|
53
|
+
eventAuthority: TAccountMetas[3];
|
|
54
|
+
program: TAccountMetas[4];
|
|
55
|
+
};
|
|
56
|
+
data: CollectCreatorFeeInstructionData;
|
|
57
|
+
};
|
|
58
|
+
export declare function parseCollectCreatorFeeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCollectCreatorFeeInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,111 @@
|
|
|
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 Codec, type Decoder, type Encoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit';
|
|
9
|
+
import { PUMP_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const CREATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getCreateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type CreateInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMint extends string | AccountMeta<string> = string, TAccountMintAuthority extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountAssociatedBondingCurve extends string | AccountMeta<string> = string, TAccountGlobal extends string | AccountMeta<string> = string, TAccountMplTokenMetadata extends string | AccountMeta<string> = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s', TAccountMetadata extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountRent extends string | AccountMeta<string> = 'SysvarRent111111111111111111111111111111111', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountMint extends string ? WritableSignerAccount<TAccountMint> & AccountSignerMeta<TAccountMint> : TAccountMint,
|
|
14
|
+
TAccountMintAuthority extends string ? ReadonlyAccount<TAccountMintAuthority> : TAccountMintAuthority,
|
|
15
|
+
TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
|
|
16
|
+
TAccountAssociatedBondingCurve extends string ? WritableAccount<TAccountAssociatedBondingCurve> : TAccountAssociatedBondingCurve,
|
|
17
|
+
TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
|
|
18
|
+
TAccountMplTokenMetadata extends string ? ReadonlyAccount<TAccountMplTokenMetadata> : TAccountMplTokenMetadata,
|
|
19
|
+
TAccountMetadata extends string ? WritableAccount<TAccountMetadata> : TAccountMetadata,
|
|
20
|
+
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
21
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
22
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
23
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
24
|
+
TAccountRent extends string ? ReadonlyAccount<TAccountRent> : TAccountRent,
|
|
25
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
26
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
27
|
+
...TRemainingAccounts
|
|
28
|
+
]>;
|
|
29
|
+
export type CreateInstructionData = {
|
|
30
|
+
discriminator: ReadonlyUint8Array;
|
|
31
|
+
name: string;
|
|
32
|
+
symbol: string;
|
|
33
|
+
uri: string;
|
|
34
|
+
creator: Address;
|
|
35
|
+
};
|
|
36
|
+
export type CreateInstructionDataArgs = {
|
|
37
|
+
name: string;
|
|
38
|
+
symbol: string;
|
|
39
|
+
uri: string;
|
|
40
|
+
creator: Address;
|
|
41
|
+
};
|
|
42
|
+
export declare function getCreateInstructionDataEncoder(): Encoder<CreateInstructionDataArgs>;
|
|
43
|
+
export declare function getCreateInstructionDataDecoder(): Decoder<CreateInstructionData>;
|
|
44
|
+
export declare function getCreateInstructionDataCodec(): Codec<CreateInstructionDataArgs, CreateInstructionData>;
|
|
45
|
+
export type CreateAsyncInput<TAccountMint extends string = string, TAccountMintAuthority extends string = string, TAccountBondingCurve extends string = string, TAccountAssociatedBondingCurve extends string = string, TAccountGlobal extends string = string, TAccountMplTokenMetadata extends string = string, TAccountMetadata extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountRent extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
46
|
+
mint: TransactionSigner<TAccountMint>;
|
|
47
|
+
mintAuthority?: Address<TAccountMintAuthority>;
|
|
48
|
+
bondingCurve?: Address<TAccountBondingCurve>;
|
|
49
|
+
associatedBondingCurve?: Address<TAccountAssociatedBondingCurve>;
|
|
50
|
+
global?: Address<TAccountGlobal>;
|
|
51
|
+
mplTokenMetadata?: Address<TAccountMplTokenMetadata>;
|
|
52
|
+
metadata?: Address<TAccountMetadata>;
|
|
53
|
+
user: TransactionSigner<TAccountUser>;
|
|
54
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
55
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
56
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
57
|
+
rent?: Address<TAccountRent>;
|
|
58
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
59
|
+
program: Address<TAccountProgram>;
|
|
60
|
+
name: CreateInstructionDataArgs['name'];
|
|
61
|
+
symbol: CreateInstructionDataArgs['symbol'];
|
|
62
|
+
uri: CreateInstructionDataArgs['uri'];
|
|
63
|
+
creator: CreateInstructionDataArgs['creator'];
|
|
64
|
+
};
|
|
65
|
+
export declare function getCreateInstructionAsync<TAccountMint extends string, TAccountMintAuthority extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountGlobal extends string, TAccountMplTokenMetadata extends string, TAccountMetadata extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountRent extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: CreateAsyncInput<TAccountMint, TAccountMintAuthority, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountGlobal, TAccountMplTokenMetadata, TAccountMetadata, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountRent, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
66
|
+
programAddress?: TProgramAddress;
|
|
67
|
+
}): Promise<CreateInstruction<TProgramAddress, TAccountMint, TAccountMintAuthority, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountGlobal, TAccountMplTokenMetadata, TAccountMetadata, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountRent, TAccountEventAuthority, TAccountProgram>>;
|
|
68
|
+
export type CreateInput<TAccountMint extends string = string, TAccountMintAuthority extends string = string, TAccountBondingCurve extends string = string, TAccountAssociatedBondingCurve extends string = string, TAccountGlobal extends string = string, TAccountMplTokenMetadata extends string = string, TAccountMetadata extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountRent extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
69
|
+
mint: TransactionSigner<TAccountMint>;
|
|
70
|
+
mintAuthority: Address<TAccountMintAuthority>;
|
|
71
|
+
bondingCurve: Address<TAccountBondingCurve>;
|
|
72
|
+
associatedBondingCurve: Address<TAccountAssociatedBondingCurve>;
|
|
73
|
+
global: Address<TAccountGlobal>;
|
|
74
|
+
mplTokenMetadata?: Address<TAccountMplTokenMetadata>;
|
|
75
|
+
metadata: Address<TAccountMetadata>;
|
|
76
|
+
user: TransactionSigner<TAccountUser>;
|
|
77
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
78
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
79
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
80
|
+
rent?: Address<TAccountRent>;
|
|
81
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
82
|
+
program: Address<TAccountProgram>;
|
|
83
|
+
name: CreateInstructionDataArgs['name'];
|
|
84
|
+
symbol: CreateInstructionDataArgs['symbol'];
|
|
85
|
+
uri: CreateInstructionDataArgs['uri'];
|
|
86
|
+
creator: CreateInstructionDataArgs['creator'];
|
|
87
|
+
};
|
|
88
|
+
export declare function getCreateInstruction<TAccountMint extends string, TAccountMintAuthority extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountGlobal extends string, TAccountMplTokenMetadata extends string, TAccountMetadata extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountAssociatedTokenProgram extends string, TAccountRent extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: CreateInput<TAccountMint, TAccountMintAuthority, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountGlobal, TAccountMplTokenMetadata, TAccountMetadata, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountRent, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
89
|
+
programAddress?: TProgramAddress;
|
|
90
|
+
}): CreateInstruction<TProgramAddress, TAccountMint, TAccountMintAuthority, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountGlobal, TAccountMplTokenMetadata, TAccountMetadata, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountAssociatedTokenProgram, TAccountRent, TAccountEventAuthority, TAccountProgram>;
|
|
91
|
+
export type ParsedCreateInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
92
|
+
programAddress: Address<TProgram>;
|
|
93
|
+
accounts: {
|
|
94
|
+
mint: TAccountMetas[0];
|
|
95
|
+
mintAuthority: TAccountMetas[1];
|
|
96
|
+
bondingCurve: TAccountMetas[2];
|
|
97
|
+
associatedBondingCurve: TAccountMetas[3];
|
|
98
|
+
global: TAccountMetas[4];
|
|
99
|
+
mplTokenMetadata: TAccountMetas[5];
|
|
100
|
+
metadata: TAccountMetas[6];
|
|
101
|
+
user: TAccountMetas[7];
|
|
102
|
+
systemProgram: TAccountMetas[8];
|
|
103
|
+
tokenProgram: TAccountMetas[9];
|
|
104
|
+
associatedTokenProgram: TAccountMetas[10];
|
|
105
|
+
rent: TAccountMetas[11];
|
|
106
|
+
eventAuthority: TAccountMetas[12];
|
|
107
|
+
program: TAccountMetas[13];
|
|
108
|
+
};
|
|
109
|
+
data: CreateInstructionData;
|
|
110
|
+
};
|
|
111
|
+
export declare function parseCreateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCreateInstruction<TProgram, TAccountMetas>;
|