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,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 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_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const EXTEND_ACCOUNT_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getExtendAccountDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type ExtendAccountInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountAccount extends string | AccountMeta<string> = string, TAccountUser 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
|
+
TAccountAccount extends string ? WritableAccount<TAccountAccount> : TAccountAccount,
|
|
14
|
+
TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
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 ExtendAccountInstructionData = {
|
|
21
|
+
discriminator: ReadonlyUint8Array;
|
|
22
|
+
};
|
|
23
|
+
export type ExtendAccountInstructionDataArgs = {};
|
|
24
|
+
export declare function getExtendAccountInstructionDataEncoder(): FixedSizeEncoder<ExtendAccountInstructionDataArgs>;
|
|
25
|
+
export declare function getExtendAccountInstructionDataDecoder(): FixedSizeDecoder<ExtendAccountInstructionData>;
|
|
26
|
+
export declare function getExtendAccountInstructionDataCodec(): FixedSizeCodec<ExtendAccountInstructionDataArgs, ExtendAccountInstructionData>;
|
|
27
|
+
export type ExtendAccountAsyncInput<TAccountAccount extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
28
|
+
account: Address<TAccountAccount>;
|
|
29
|
+
user: TransactionSigner<TAccountUser>;
|
|
30
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
31
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
32
|
+
program: Address<TAccountProgram>;
|
|
33
|
+
};
|
|
34
|
+
export declare function getExtendAccountInstructionAsync<TAccountAccount extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ExtendAccountAsyncInput<TAccountAccount, TAccountUser, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
35
|
+
programAddress?: TProgramAddress;
|
|
36
|
+
}): Promise<ExtendAccountInstruction<TProgramAddress, TAccountAccount, TAccountUser, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
37
|
+
export type ExtendAccountInput<TAccountAccount extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
38
|
+
account: Address<TAccountAccount>;
|
|
39
|
+
user: TransactionSigner<TAccountUser>;
|
|
40
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
41
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
42
|
+
program: Address<TAccountProgram>;
|
|
43
|
+
};
|
|
44
|
+
export declare function getExtendAccountInstruction<TAccountAccount extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ExtendAccountInput<TAccountAccount, TAccountUser, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
45
|
+
programAddress?: TProgramAddress;
|
|
46
|
+
}): ExtendAccountInstruction<TProgramAddress, TAccountAccount, TAccountUser, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
47
|
+
export type ParsedExtendAccountInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
48
|
+
programAddress: Address<TProgram>;
|
|
49
|
+
accounts: {
|
|
50
|
+
account: TAccountMetas[0];
|
|
51
|
+
user: TAccountMetas[1];
|
|
52
|
+
systemProgram: TAccountMetas[2];
|
|
53
|
+
eventAuthority: TAccountMetas[3];
|
|
54
|
+
program: TAccountMetas[4];
|
|
55
|
+
};
|
|
56
|
+
data: ExtendAccountInstructionData;
|
|
57
|
+
};
|
|
58
|
+
export declare function parseExtendAccountInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedExtendAccountInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 './adminSetCreator';
|
|
9
|
+
export * from './adminSetIdlAuthority';
|
|
10
|
+
export * from './adminUpdateTokenIncentives';
|
|
11
|
+
export * from './buy';
|
|
12
|
+
export * from './buyExactSolIn';
|
|
13
|
+
export * from './claimTokenIncentives';
|
|
14
|
+
export * from './closeUserVolumeAccumulator';
|
|
15
|
+
export * from './collectCreatorFee';
|
|
16
|
+
export * from './create';
|
|
17
|
+
export * from './extendAccount';
|
|
18
|
+
export * from './initialize';
|
|
19
|
+
export * from './initUserVolumeAccumulator';
|
|
20
|
+
export * from './migrate';
|
|
21
|
+
export * from './sell';
|
|
22
|
+
export * from './setCreator';
|
|
23
|
+
export * from './setMetaplexCreator';
|
|
24
|
+
export * from './setParams';
|
|
25
|
+
export * from './syncUserVolumeAccumulator';
|
|
26
|
+
export * from './updateGlobalAuthority';
|
|
@@ -0,0 +1,62 @@
|
|
|
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 INIT_USER_VOLUME_ACCUMULATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getInitUserVolumeAccumulatorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type InitUserVolumeAccumulatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountPayer extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountUserVolumeAccumulator 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
|
+
TAccountPayer extends string ? WritableSignerAccount<TAccountPayer> & AccountSignerMeta<TAccountPayer> : TAccountPayer,
|
|
14
|
+
TAccountUser extends string ? ReadonlyAccount<TAccountUser> : TAccountUser,
|
|
15
|
+
TAccountUserVolumeAccumulator extends string ? WritableAccount<TAccountUserVolumeAccumulator> : TAccountUserVolumeAccumulator,
|
|
16
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
17
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
18
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
19
|
+
...TRemainingAccounts
|
|
20
|
+
]>;
|
|
21
|
+
export type InitUserVolumeAccumulatorInstructionData = {
|
|
22
|
+
discriminator: ReadonlyUint8Array;
|
|
23
|
+
};
|
|
24
|
+
export type InitUserVolumeAccumulatorInstructionDataArgs = {};
|
|
25
|
+
export declare function getInitUserVolumeAccumulatorInstructionDataEncoder(): FixedSizeEncoder<InitUserVolumeAccumulatorInstructionDataArgs>;
|
|
26
|
+
export declare function getInitUserVolumeAccumulatorInstructionDataDecoder(): FixedSizeDecoder<InitUserVolumeAccumulatorInstructionData>;
|
|
27
|
+
export declare function getInitUserVolumeAccumulatorInstructionDataCodec(): FixedSizeCodec<InitUserVolumeAccumulatorInstructionDataArgs, InitUserVolumeAccumulatorInstructionData>;
|
|
28
|
+
export type InitUserVolumeAccumulatorAsyncInput<TAccountPayer extends string = string, TAccountUser extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
29
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
30
|
+
user: Address<TAccountUser>;
|
|
31
|
+
userVolumeAccumulator?: Address<TAccountUserVolumeAccumulator>;
|
|
32
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
33
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
34
|
+
program: Address<TAccountProgram>;
|
|
35
|
+
};
|
|
36
|
+
export declare function getInitUserVolumeAccumulatorInstructionAsync<TAccountPayer extends string, TAccountUser extends string, TAccountUserVolumeAccumulator extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: InitUserVolumeAccumulatorAsyncInput<TAccountPayer, TAccountUser, TAccountUserVolumeAccumulator, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
37
|
+
programAddress?: TProgramAddress;
|
|
38
|
+
}): Promise<InitUserVolumeAccumulatorInstruction<TProgramAddress, TAccountPayer, TAccountUser, TAccountUserVolumeAccumulator, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
|
|
39
|
+
export type InitUserVolumeAccumulatorInput<TAccountPayer extends string = string, TAccountUser extends string = string, TAccountUserVolumeAccumulator extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
40
|
+
payer: TransactionSigner<TAccountPayer>;
|
|
41
|
+
user: Address<TAccountUser>;
|
|
42
|
+
userVolumeAccumulator: Address<TAccountUserVolumeAccumulator>;
|
|
43
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
44
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
45
|
+
program: Address<TAccountProgram>;
|
|
46
|
+
};
|
|
47
|
+
export declare function getInitUserVolumeAccumulatorInstruction<TAccountPayer extends string, TAccountUser extends string, TAccountUserVolumeAccumulator extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: InitUserVolumeAccumulatorInput<TAccountPayer, TAccountUser, TAccountUserVolumeAccumulator, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
48
|
+
programAddress?: TProgramAddress;
|
|
49
|
+
}): InitUserVolumeAccumulatorInstruction<TProgramAddress, TAccountPayer, TAccountUser, TAccountUserVolumeAccumulator, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
|
|
50
|
+
export type ParsedInitUserVolumeAccumulatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
51
|
+
programAddress: Address<TProgram>;
|
|
52
|
+
accounts: {
|
|
53
|
+
payer: TAccountMetas[0];
|
|
54
|
+
user: TAccountMetas[1];
|
|
55
|
+
userVolumeAccumulator: TAccountMetas[2];
|
|
56
|
+
systemProgram: TAccountMetas[3];
|
|
57
|
+
eventAuthority: TAccountMetas[4];
|
|
58
|
+
program: TAccountMetas[5];
|
|
59
|
+
};
|
|
60
|
+
data: InitUserVolumeAccumulatorInstructionData;
|
|
61
|
+
};
|
|
62
|
+
export declare function parseInitUserVolumeAccumulatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitUserVolumeAccumulatorInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 INITIALIZE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getInitializeDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type InitializeInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountGlobal extends string ? WritableAccount<TAccountGlobal> : TAccountGlobal,
|
|
14
|
+
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
15
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
16
|
+
...TRemainingAccounts
|
|
17
|
+
]>;
|
|
18
|
+
export type InitializeInstructionData = {
|
|
19
|
+
discriminator: ReadonlyUint8Array;
|
|
20
|
+
};
|
|
21
|
+
export type InitializeInstructionDataArgs = {};
|
|
22
|
+
export declare function getInitializeInstructionDataEncoder(): FixedSizeEncoder<InitializeInstructionDataArgs>;
|
|
23
|
+
export declare function getInitializeInstructionDataDecoder(): FixedSizeDecoder<InitializeInstructionData>;
|
|
24
|
+
export declare function getInitializeInstructionDataCodec(): FixedSizeCodec<InitializeInstructionDataArgs, InitializeInstructionData>;
|
|
25
|
+
export type InitializeAsyncInput<TAccountGlobal extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string> = {
|
|
26
|
+
global?: Address<TAccountGlobal>;
|
|
27
|
+
user: TransactionSigner<TAccountUser>;
|
|
28
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
29
|
+
};
|
|
30
|
+
export declare function getInitializeInstructionAsync<TAccountGlobal extends string, TAccountUser extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: InitializeAsyncInput<TAccountGlobal, TAccountUser, TAccountSystemProgram>, config?: {
|
|
31
|
+
programAddress?: TProgramAddress;
|
|
32
|
+
}): Promise<InitializeInstruction<TProgramAddress, TAccountGlobal, TAccountUser, TAccountSystemProgram>>;
|
|
33
|
+
export type InitializeInput<TAccountGlobal extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string> = {
|
|
34
|
+
global: Address<TAccountGlobal>;
|
|
35
|
+
user: TransactionSigner<TAccountUser>;
|
|
36
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
37
|
+
};
|
|
38
|
+
export declare function getInitializeInstruction<TAccountGlobal extends string, TAccountUser extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: InitializeInput<TAccountGlobal, TAccountUser, TAccountSystemProgram>, config?: {
|
|
39
|
+
programAddress?: TProgramAddress;
|
|
40
|
+
}): InitializeInstruction<TProgramAddress, TAccountGlobal, TAccountUser, TAccountSystemProgram>;
|
|
41
|
+
export type ParsedInitializeInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
42
|
+
programAddress: Address<TProgram>;
|
|
43
|
+
accounts: {
|
|
44
|
+
global: TAccountMetas[0];
|
|
45
|
+
user: TAccountMetas[1];
|
|
46
|
+
systemProgram: TAccountMetas[2];
|
|
47
|
+
};
|
|
48
|
+
data: InitializeInstructionData;
|
|
49
|
+
};
|
|
50
|
+
export declare function parseInitializeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedInitializeInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,134 @@
|
|
|
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_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const MIGRATE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getMigrateDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type MigrateInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountWithdrawAuthority extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountAssociatedBondingCurve extends string | AccountMeta<string> = string, TAccountUser extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountPumpAmm extends string | AccountMeta<string> = 'pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA', TAccountPool extends string | AccountMeta<string> = string, TAccountPoolAuthority extends string | AccountMeta<string> = string, TAccountPoolAuthorityMintAccount extends string | AccountMeta<string> = string, TAccountPoolAuthorityWsolAccount extends string | AccountMeta<string> = string, TAccountAmmGlobalConfig extends string | AccountMeta<string> = string, TAccountWsolMint extends string | AccountMeta<string> = 'So11111111111111111111111111111111111111112', TAccountLpMint extends string | AccountMeta<string> = string, TAccountUserPoolTokenAccount extends string | AccountMeta<string> = string, TAccountPoolBaseTokenAccount extends string | AccountMeta<string> = string, TAccountPoolQuoteTokenAccount extends string | AccountMeta<string> = string, TAccountToken2022Program extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountAssociatedTokenProgram extends string | AccountMeta<string> = 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL', TAccountPumpAmmEventAuthority 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
|
+
TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
|
|
14
|
+
TAccountWithdrawAuthority extends string ? WritableAccount<TAccountWithdrawAuthority> : TAccountWithdrawAuthority,
|
|
15
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
16
|
+
TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
|
|
17
|
+
TAccountAssociatedBondingCurve extends string ? WritableAccount<TAccountAssociatedBondingCurve> : TAccountAssociatedBondingCurve,
|
|
18
|
+
TAccountUser extends string ? ReadonlySignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
19
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
20
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
21
|
+
TAccountPumpAmm extends string ? ReadonlyAccount<TAccountPumpAmm> : TAccountPumpAmm,
|
|
22
|
+
TAccountPool extends string ? WritableAccount<TAccountPool> : TAccountPool,
|
|
23
|
+
TAccountPoolAuthority extends string ? WritableAccount<TAccountPoolAuthority> : TAccountPoolAuthority,
|
|
24
|
+
TAccountPoolAuthorityMintAccount extends string ? WritableAccount<TAccountPoolAuthorityMintAccount> : TAccountPoolAuthorityMintAccount,
|
|
25
|
+
TAccountPoolAuthorityWsolAccount extends string ? WritableAccount<TAccountPoolAuthorityWsolAccount> : TAccountPoolAuthorityWsolAccount,
|
|
26
|
+
TAccountAmmGlobalConfig extends string ? ReadonlyAccount<TAccountAmmGlobalConfig> : TAccountAmmGlobalConfig,
|
|
27
|
+
TAccountWsolMint extends string ? ReadonlyAccount<TAccountWsolMint> : TAccountWsolMint,
|
|
28
|
+
TAccountLpMint extends string ? WritableAccount<TAccountLpMint> : TAccountLpMint,
|
|
29
|
+
TAccountUserPoolTokenAccount extends string ? WritableAccount<TAccountUserPoolTokenAccount> : TAccountUserPoolTokenAccount,
|
|
30
|
+
TAccountPoolBaseTokenAccount extends string ? WritableAccount<TAccountPoolBaseTokenAccount> : TAccountPoolBaseTokenAccount,
|
|
31
|
+
TAccountPoolQuoteTokenAccount extends string ? WritableAccount<TAccountPoolQuoteTokenAccount> : TAccountPoolQuoteTokenAccount,
|
|
32
|
+
TAccountToken2022Program extends string ? ReadonlyAccount<TAccountToken2022Program> : TAccountToken2022Program,
|
|
33
|
+
TAccountAssociatedTokenProgram extends string ? ReadonlyAccount<TAccountAssociatedTokenProgram> : TAccountAssociatedTokenProgram,
|
|
34
|
+
TAccountPumpAmmEventAuthority extends string ? ReadonlyAccount<TAccountPumpAmmEventAuthority> : TAccountPumpAmmEventAuthority,
|
|
35
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
36
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
37
|
+
...TRemainingAccounts
|
|
38
|
+
]>;
|
|
39
|
+
export type MigrateInstructionData = {
|
|
40
|
+
discriminator: ReadonlyUint8Array;
|
|
41
|
+
};
|
|
42
|
+
export type MigrateInstructionDataArgs = {};
|
|
43
|
+
export declare function getMigrateInstructionDataEncoder(): FixedSizeEncoder<MigrateInstructionDataArgs>;
|
|
44
|
+
export declare function getMigrateInstructionDataDecoder(): FixedSizeDecoder<MigrateInstructionData>;
|
|
45
|
+
export declare function getMigrateInstructionDataCodec(): FixedSizeCodec<MigrateInstructionDataArgs, MigrateInstructionData>;
|
|
46
|
+
export type MigrateAsyncInput<TAccountGlobal extends string = string, TAccountWithdrawAuthority extends string = string, TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountAssociatedBondingCurve extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountPumpAmm extends string = string, TAccountPool extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolAuthorityMintAccount extends string = string, TAccountPoolAuthorityWsolAccount extends string = string, TAccountAmmGlobalConfig extends string = string, TAccountWsolMint extends string = string, TAccountLpMint extends string = string, TAccountUserPoolTokenAccount extends string = string, TAccountPoolBaseTokenAccount extends string = string, TAccountPoolQuoteTokenAccount extends string = string, TAccountToken2022Program extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountPumpAmmEventAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
47
|
+
global?: Address<TAccountGlobal>;
|
|
48
|
+
withdrawAuthority: Address<TAccountWithdrawAuthority>;
|
|
49
|
+
mint: Address<TAccountMint>;
|
|
50
|
+
bondingCurve?: Address<TAccountBondingCurve>;
|
|
51
|
+
associatedBondingCurve?: Address<TAccountAssociatedBondingCurve>;
|
|
52
|
+
user: TransactionSigner<TAccountUser>;
|
|
53
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
54
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
55
|
+
pumpAmm?: Address<TAccountPumpAmm>;
|
|
56
|
+
pool?: Address<TAccountPool>;
|
|
57
|
+
poolAuthority?: Address<TAccountPoolAuthority>;
|
|
58
|
+
poolAuthorityMintAccount?: Address<TAccountPoolAuthorityMintAccount>;
|
|
59
|
+
poolAuthorityWsolAccount?: Address<TAccountPoolAuthorityWsolAccount>;
|
|
60
|
+
ammGlobalConfig?: Address<TAccountAmmGlobalConfig>;
|
|
61
|
+
wsolMint?: Address<TAccountWsolMint>;
|
|
62
|
+
lpMint?: Address<TAccountLpMint>;
|
|
63
|
+
userPoolTokenAccount?: Address<TAccountUserPoolTokenAccount>;
|
|
64
|
+
poolBaseTokenAccount?: Address<TAccountPoolBaseTokenAccount>;
|
|
65
|
+
poolQuoteTokenAccount?: Address<TAccountPoolQuoteTokenAccount>;
|
|
66
|
+
token2022Program?: Address<TAccountToken2022Program>;
|
|
67
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
68
|
+
pumpAmmEventAuthority?: Address<TAccountPumpAmmEventAuthority>;
|
|
69
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
70
|
+
program: Address<TAccountProgram>;
|
|
71
|
+
};
|
|
72
|
+
export declare function getMigrateInstructionAsync<TAccountGlobal extends string, TAccountWithdrawAuthority extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountPumpAmm extends string, TAccountPool extends string, TAccountPoolAuthority extends string, TAccountPoolAuthorityMintAccount extends string, TAccountPoolAuthorityWsolAccount extends string, TAccountAmmGlobalConfig extends string, TAccountWsolMint extends string, TAccountLpMint extends string, TAccountUserPoolTokenAccount extends string, TAccountPoolBaseTokenAccount extends string, TAccountPoolQuoteTokenAccount extends string, TAccountToken2022Program extends string, TAccountAssociatedTokenProgram extends string, TAccountPumpAmmEventAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: MigrateAsyncInput<TAccountGlobal, TAccountWithdrawAuthority, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountPumpAmm, TAccountPool, TAccountPoolAuthority, TAccountPoolAuthorityMintAccount, TAccountPoolAuthorityWsolAccount, TAccountAmmGlobalConfig, TAccountWsolMint, TAccountLpMint, TAccountUserPoolTokenAccount, TAccountPoolBaseTokenAccount, TAccountPoolQuoteTokenAccount, TAccountToken2022Program, TAccountAssociatedTokenProgram, TAccountPumpAmmEventAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
73
|
+
programAddress?: TProgramAddress;
|
|
74
|
+
}): Promise<MigrateInstruction<TProgramAddress, TAccountGlobal, TAccountWithdrawAuthority, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountPumpAmm, TAccountPool, TAccountPoolAuthority, TAccountPoolAuthorityMintAccount, TAccountPoolAuthorityWsolAccount, TAccountAmmGlobalConfig, TAccountWsolMint, TAccountLpMint, TAccountUserPoolTokenAccount, TAccountPoolBaseTokenAccount, TAccountPoolQuoteTokenAccount, TAccountToken2022Program, TAccountAssociatedTokenProgram, TAccountPumpAmmEventAuthority, TAccountEventAuthority, TAccountProgram>>;
|
|
75
|
+
export type MigrateInput<TAccountGlobal extends string = string, TAccountWithdrawAuthority extends string = string, TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountAssociatedBondingCurve extends string = string, TAccountUser extends string = string, TAccountSystemProgram extends string = string, TAccountTokenProgram extends string = string, TAccountPumpAmm extends string = string, TAccountPool extends string = string, TAccountPoolAuthority extends string = string, TAccountPoolAuthorityMintAccount extends string = string, TAccountPoolAuthorityWsolAccount extends string = string, TAccountAmmGlobalConfig extends string = string, TAccountWsolMint extends string = string, TAccountLpMint extends string = string, TAccountUserPoolTokenAccount extends string = string, TAccountPoolBaseTokenAccount extends string = string, TAccountPoolQuoteTokenAccount extends string = string, TAccountToken2022Program extends string = string, TAccountAssociatedTokenProgram extends string = string, TAccountPumpAmmEventAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
76
|
+
global: Address<TAccountGlobal>;
|
|
77
|
+
withdrawAuthority: Address<TAccountWithdrawAuthority>;
|
|
78
|
+
mint: Address<TAccountMint>;
|
|
79
|
+
bondingCurve: Address<TAccountBondingCurve>;
|
|
80
|
+
associatedBondingCurve: Address<TAccountAssociatedBondingCurve>;
|
|
81
|
+
user: TransactionSigner<TAccountUser>;
|
|
82
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
83
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
84
|
+
pumpAmm?: Address<TAccountPumpAmm>;
|
|
85
|
+
pool: Address<TAccountPool>;
|
|
86
|
+
poolAuthority: Address<TAccountPoolAuthority>;
|
|
87
|
+
poolAuthorityMintAccount: Address<TAccountPoolAuthorityMintAccount>;
|
|
88
|
+
poolAuthorityWsolAccount: Address<TAccountPoolAuthorityWsolAccount>;
|
|
89
|
+
ammGlobalConfig: Address<TAccountAmmGlobalConfig>;
|
|
90
|
+
wsolMint?: Address<TAccountWsolMint>;
|
|
91
|
+
lpMint: Address<TAccountLpMint>;
|
|
92
|
+
userPoolTokenAccount: Address<TAccountUserPoolTokenAccount>;
|
|
93
|
+
poolBaseTokenAccount: Address<TAccountPoolBaseTokenAccount>;
|
|
94
|
+
poolQuoteTokenAccount: Address<TAccountPoolQuoteTokenAccount>;
|
|
95
|
+
token2022Program?: Address<TAccountToken2022Program>;
|
|
96
|
+
associatedTokenProgram?: Address<TAccountAssociatedTokenProgram>;
|
|
97
|
+
pumpAmmEventAuthority: Address<TAccountPumpAmmEventAuthority>;
|
|
98
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
99
|
+
program: Address<TAccountProgram>;
|
|
100
|
+
};
|
|
101
|
+
export declare function getMigrateInstruction<TAccountGlobal extends string, TAccountWithdrawAuthority extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountTokenProgram extends string, TAccountPumpAmm extends string, TAccountPool extends string, TAccountPoolAuthority extends string, TAccountPoolAuthorityMintAccount extends string, TAccountPoolAuthorityWsolAccount extends string, TAccountAmmGlobalConfig extends string, TAccountWsolMint extends string, TAccountLpMint extends string, TAccountUserPoolTokenAccount extends string, TAccountPoolBaseTokenAccount extends string, TAccountPoolQuoteTokenAccount extends string, TAccountToken2022Program extends string, TAccountAssociatedTokenProgram extends string, TAccountPumpAmmEventAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: MigrateInput<TAccountGlobal, TAccountWithdrawAuthority, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountPumpAmm, TAccountPool, TAccountPoolAuthority, TAccountPoolAuthorityMintAccount, TAccountPoolAuthorityWsolAccount, TAccountAmmGlobalConfig, TAccountWsolMint, TAccountLpMint, TAccountUserPoolTokenAccount, TAccountPoolBaseTokenAccount, TAccountPoolQuoteTokenAccount, TAccountToken2022Program, TAccountAssociatedTokenProgram, TAccountPumpAmmEventAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
102
|
+
programAddress?: TProgramAddress;
|
|
103
|
+
}): MigrateInstruction<TProgramAddress, TAccountGlobal, TAccountWithdrawAuthority, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountUser, TAccountSystemProgram, TAccountTokenProgram, TAccountPumpAmm, TAccountPool, TAccountPoolAuthority, TAccountPoolAuthorityMintAccount, TAccountPoolAuthorityWsolAccount, TAccountAmmGlobalConfig, TAccountWsolMint, TAccountLpMint, TAccountUserPoolTokenAccount, TAccountPoolBaseTokenAccount, TAccountPoolQuoteTokenAccount, TAccountToken2022Program, TAccountAssociatedTokenProgram, TAccountPumpAmmEventAuthority, TAccountEventAuthority, TAccountProgram>;
|
|
104
|
+
export type ParsedMigrateInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
105
|
+
programAddress: Address<TProgram>;
|
|
106
|
+
accounts: {
|
|
107
|
+
global: TAccountMetas[0];
|
|
108
|
+
withdrawAuthority: TAccountMetas[1];
|
|
109
|
+
mint: TAccountMetas[2];
|
|
110
|
+
bondingCurve: TAccountMetas[3];
|
|
111
|
+
associatedBondingCurve: TAccountMetas[4];
|
|
112
|
+
user: TAccountMetas[5];
|
|
113
|
+
systemProgram: TAccountMetas[6];
|
|
114
|
+
tokenProgram: TAccountMetas[7];
|
|
115
|
+
pumpAmm: TAccountMetas[8];
|
|
116
|
+
pool: TAccountMetas[9];
|
|
117
|
+
poolAuthority: TAccountMetas[10];
|
|
118
|
+
poolAuthorityMintAccount: TAccountMetas[11];
|
|
119
|
+
poolAuthorityWsolAccount: TAccountMetas[12];
|
|
120
|
+
ammGlobalConfig: TAccountMetas[13];
|
|
121
|
+
wsolMint: TAccountMetas[14];
|
|
122
|
+
lpMint: TAccountMetas[15];
|
|
123
|
+
userPoolTokenAccount: TAccountMetas[16];
|
|
124
|
+
poolBaseTokenAccount: TAccountMetas[17];
|
|
125
|
+
poolQuoteTokenAccount: TAccountMetas[18];
|
|
126
|
+
token2022Program: TAccountMetas[19];
|
|
127
|
+
associatedTokenProgram: TAccountMetas[20];
|
|
128
|
+
pumpAmmEventAuthority: TAccountMetas[21];
|
|
129
|
+
eventAuthority: TAccountMetas[22];
|
|
130
|
+
program: TAccountMetas[23];
|
|
131
|
+
};
|
|
132
|
+
data: MigrateInstructionData;
|
|
133
|
+
};
|
|
134
|
+
export declare function parseMigrateInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMigrateInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,103 @@
|
|
|
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 SELL_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getSellDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type SellInstruction<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', TAccountCreatorVault extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P', TAccountFeeConfig extends string | AccountMeta<string> = string, TAccountFeeProgram extends string | AccountMeta<string> = 'pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
|
|
13
|
+
TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
|
|
14
|
+
TAccountFeeRecipient extends string ? WritableAccount<TAccountFeeRecipient> : TAccountFeeRecipient,
|
|
15
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
16
|
+
TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
|
|
17
|
+
TAccountAssociatedBondingCurve extends string ? WritableAccount<TAccountAssociatedBondingCurve> : TAccountAssociatedBondingCurve,
|
|
18
|
+
TAccountAssociatedUser extends string ? WritableAccount<TAccountAssociatedUser> : TAccountAssociatedUser,
|
|
19
|
+
TAccountUser extends string ? WritableSignerAccount<TAccountUser> & AccountSignerMeta<TAccountUser> : TAccountUser,
|
|
20
|
+
TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
|
|
21
|
+
TAccountCreatorVault extends string ? WritableAccount<TAccountCreatorVault> : TAccountCreatorVault,
|
|
22
|
+
TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
|
|
23
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
24
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
25
|
+
TAccountFeeConfig extends string ? ReadonlyAccount<TAccountFeeConfig> : TAccountFeeConfig,
|
|
26
|
+
TAccountFeeProgram extends string ? ReadonlyAccount<TAccountFeeProgram> : TAccountFeeProgram,
|
|
27
|
+
...TRemainingAccounts
|
|
28
|
+
]>;
|
|
29
|
+
export type SellInstructionData = {
|
|
30
|
+
discriminator: ReadonlyUint8Array;
|
|
31
|
+
amount: bigint;
|
|
32
|
+
minSolOutput: bigint;
|
|
33
|
+
};
|
|
34
|
+
export type SellInstructionDataArgs = {
|
|
35
|
+
amount: number | bigint;
|
|
36
|
+
minSolOutput: number | bigint;
|
|
37
|
+
};
|
|
38
|
+
export declare function getSellInstructionDataEncoder(): FixedSizeEncoder<SellInstructionDataArgs>;
|
|
39
|
+
export declare function getSellInstructionDataDecoder(): FixedSizeDecoder<SellInstructionData>;
|
|
40
|
+
export declare function getSellInstructionDataCodec(): FixedSizeCodec<SellInstructionDataArgs, SellInstructionData>;
|
|
41
|
+
export type SellAsyncInput<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, TAccountCreatorVault extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string, TAccountFeeConfig extends string = string, TAccountFeeProgram extends string = string> = {
|
|
42
|
+
global?: Address<TAccountGlobal>;
|
|
43
|
+
feeRecipient: Address<TAccountFeeRecipient>;
|
|
44
|
+
mint: Address<TAccountMint>;
|
|
45
|
+
bondingCurve?: Address<TAccountBondingCurve>;
|
|
46
|
+
associatedBondingCurve?: Address<TAccountAssociatedBondingCurve>;
|
|
47
|
+
associatedUser: Address<TAccountAssociatedUser>;
|
|
48
|
+
user: TransactionSigner<TAccountUser>;
|
|
49
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
50
|
+
creatorVault: Address<TAccountCreatorVault>;
|
|
51
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
52
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
53
|
+
program?: Address<TAccountProgram>;
|
|
54
|
+
feeConfig?: Address<TAccountFeeConfig>;
|
|
55
|
+
feeProgram?: Address<TAccountFeeProgram>;
|
|
56
|
+
amount: SellInstructionDataArgs['amount'];
|
|
57
|
+
minSolOutput: SellInstructionDataArgs['minSolOutput'];
|
|
58
|
+
};
|
|
59
|
+
export declare function getSellInstructionAsync<TAccountGlobal extends string, TAccountFeeRecipient extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountAssociatedUser extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountCreatorVault extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TAccountFeeConfig extends string, TAccountFeeProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SellAsyncInput<TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountCreatorVault, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram, TAccountFeeConfig, TAccountFeeProgram>, config?: {
|
|
60
|
+
programAddress?: TProgramAddress;
|
|
61
|
+
}): Promise<SellInstruction<TProgramAddress, TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountCreatorVault, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram, TAccountFeeConfig, TAccountFeeProgram>>;
|
|
62
|
+
export type SellInput<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, TAccountCreatorVault extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string, TAccountFeeConfig extends string = string, TAccountFeeProgram extends string = string> = {
|
|
63
|
+
global: Address<TAccountGlobal>;
|
|
64
|
+
feeRecipient: Address<TAccountFeeRecipient>;
|
|
65
|
+
mint: Address<TAccountMint>;
|
|
66
|
+
bondingCurve: Address<TAccountBondingCurve>;
|
|
67
|
+
associatedBondingCurve: Address<TAccountAssociatedBondingCurve>;
|
|
68
|
+
associatedUser: Address<TAccountAssociatedUser>;
|
|
69
|
+
user: TransactionSigner<TAccountUser>;
|
|
70
|
+
systemProgram?: Address<TAccountSystemProgram>;
|
|
71
|
+
creatorVault: Address<TAccountCreatorVault>;
|
|
72
|
+
tokenProgram?: Address<TAccountTokenProgram>;
|
|
73
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
74
|
+
program?: Address<TAccountProgram>;
|
|
75
|
+
feeConfig: Address<TAccountFeeConfig>;
|
|
76
|
+
feeProgram?: Address<TAccountFeeProgram>;
|
|
77
|
+
amount: SellInstructionDataArgs['amount'];
|
|
78
|
+
minSolOutput: SellInstructionDataArgs['minSolOutput'];
|
|
79
|
+
};
|
|
80
|
+
export declare function getSellInstruction<TAccountGlobal extends string, TAccountFeeRecipient extends string, TAccountMint extends string, TAccountBondingCurve extends string, TAccountAssociatedBondingCurve extends string, TAccountAssociatedUser extends string, TAccountUser extends string, TAccountSystemProgram extends string, TAccountCreatorVault extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TAccountFeeConfig extends string, TAccountFeeProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SellInput<TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountCreatorVault, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram, TAccountFeeConfig, TAccountFeeProgram>, config?: {
|
|
81
|
+
programAddress?: TProgramAddress;
|
|
82
|
+
}): SellInstruction<TProgramAddress, TAccountGlobal, TAccountFeeRecipient, TAccountMint, TAccountBondingCurve, TAccountAssociatedBondingCurve, TAccountAssociatedUser, TAccountUser, TAccountSystemProgram, TAccountCreatorVault, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram, TAccountFeeConfig, TAccountFeeProgram>;
|
|
83
|
+
export type ParsedSellInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
84
|
+
programAddress: Address<TProgram>;
|
|
85
|
+
accounts: {
|
|
86
|
+
global: TAccountMetas[0];
|
|
87
|
+
feeRecipient: TAccountMetas[1];
|
|
88
|
+
mint: TAccountMetas[2];
|
|
89
|
+
bondingCurve: TAccountMetas[3];
|
|
90
|
+
associatedBondingCurve: TAccountMetas[4];
|
|
91
|
+
associatedUser: TAccountMetas[5];
|
|
92
|
+
user: TAccountMetas[6];
|
|
93
|
+
systemProgram: TAccountMetas[7];
|
|
94
|
+
creatorVault: TAccountMetas[8];
|
|
95
|
+
tokenProgram: TAccountMetas[9];
|
|
96
|
+
eventAuthority: TAccountMetas[10];
|
|
97
|
+
program: TAccountMetas[11];
|
|
98
|
+
feeConfig: TAccountMetas[12];
|
|
99
|
+
feeProgram: TAccountMetas[13];
|
|
100
|
+
};
|
|
101
|
+
data: SellInstructionData;
|
|
102
|
+
};
|
|
103
|
+
export declare function parseSellInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSellInstruction<TProgram, TAccountMetas>;
|
|
@@ -0,0 +1,71 @@
|
|
|
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_PROGRAM_ADDRESS } from '../programs';
|
|
10
|
+
export declare const SET_CREATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getSetCreatorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type SetCreatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountSetCreatorAuthority extends string | AccountMeta<string> = string, TAccountGlobal extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountMetadata extends string | AccountMeta<string> = string, TAccountBondingCurve 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
|
+
TAccountSetCreatorAuthority extends string ? ReadonlySignerAccount<TAccountSetCreatorAuthority> & AccountSignerMeta<TAccountSetCreatorAuthority> : TAccountSetCreatorAuthority,
|
|
14
|
+
TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
|
|
15
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
16
|
+
TAccountMetadata extends string ? ReadonlyAccount<TAccountMetadata> : TAccountMetadata,
|
|
17
|
+
TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
|
|
18
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
19
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
20
|
+
...TRemainingAccounts
|
|
21
|
+
]>;
|
|
22
|
+
export type SetCreatorInstructionData = {
|
|
23
|
+
discriminator: ReadonlyUint8Array;
|
|
24
|
+
creator: Address;
|
|
25
|
+
};
|
|
26
|
+
export type SetCreatorInstructionDataArgs = {
|
|
27
|
+
creator: Address;
|
|
28
|
+
};
|
|
29
|
+
export declare function getSetCreatorInstructionDataEncoder(): FixedSizeEncoder<SetCreatorInstructionDataArgs>;
|
|
30
|
+
export declare function getSetCreatorInstructionDataDecoder(): FixedSizeDecoder<SetCreatorInstructionData>;
|
|
31
|
+
export declare function getSetCreatorInstructionDataCodec(): FixedSizeCodec<SetCreatorInstructionDataArgs, SetCreatorInstructionData>;
|
|
32
|
+
export type SetCreatorAsyncInput<TAccountSetCreatorAuthority extends string = string, TAccountGlobal extends string = string, TAccountMint extends string = string, TAccountMetadata extends string = string, TAccountBondingCurve extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
33
|
+
setCreatorAuthority: TransactionSigner<TAccountSetCreatorAuthority>;
|
|
34
|
+
global?: Address<TAccountGlobal>;
|
|
35
|
+
mint: Address<TAccountMint>;
|
|
36
|
+
metadata?: Address<TAccountMetadata>;
|
|
37
|
+
bondingCurve?: Address<TAccountBondingCurve>;
|
|
38
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
39
|
+
program: Address<TAccountProgram>;
|
|
40
|
+
creator: SetCreatorInstructionDataArgs['creator'];
|
|
41
|
+
};
|
|
42
|
+
export declare function getSetCreatorInstructionAsync<TAccountSetCreatorAuthority extends string, TAccountGlobal extends string, TAccountMint extends string, TAccountMetadata extends string, TAccountBondingCurve extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetCreatorAsyncInput<TAccountSetCreatorAuthority, TAccountGlobal, TAccountMint, TAccountMetadata, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
43
|
+
programAddress?: TProgramAddress;
|
|
44
|
+
}): Promise<SetCreatorInstruction<TProgramAddress, TAccountSetCreatorAuthority, TAccountGlobal, TAccountMint, TAccountMetadata, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>>;
|
|
45
|
+
export type SetCreatorInput<TAccountSetCreatorAuthority extends string = string, TAccountGlobal extends string = string, TAccountMint extends string = string, TAccountMetadata extends string = string, TAccountBondingCurve extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
46
|
+
setCreatorAuthority: TransactionSigner<TAccountSetCreatorAuthority>;
|
|
47
|
+
global: Address<TAccountGlobal>;
|
|
48
|
+
mint: Address<TAccountMint>;
|
|
49
|
+
metadata: Address<TAccountMetadata>;
|
|
50
|
+
bondingCurve: Address<TAccountBondingCurve>;
|
|
51
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
52
|
+
program: Address<TAccountProgram>;
|
|
53
|
+
creator: SetCreatorInstructionDataArgs['creator'];
|
|
54
|
+
};
|
|
55
|
+
export declare function getSetCreatorInstruction<TAccountSetCreatorAuthority extends string, TAccountGlobal extends string, TAccountMint extends string, TAccountMetadata extends string, TAccountBondingCurve extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetCreatorInput<TAccountSetCreatorAuthority, TAccountGlobal, TAccountMint, TAccountMetadata, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
56
|
+
programAddress?: TProgramAddress;
|
|
57
|
+
}): SetCreatorInstruction<TProgramAddress, TAccountSetCreatorAuthority, TAccountGlobal, TAccountMint, TAccountMetadata, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>;
|
|
58
|
+
export type ParsedSetCreatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
59
|
+
programAddress: Address<TProgram>;
|
|
60
|
+
accounts: {
|
|
61
|
+
setCreatorAuthority: TAccountMetas[0];
|
|
62
|
+
global: TAccountMetas[1];
|
|
63
|
+
mint: TAccountMetas[2];
|
|
64
|
+
metadata: TAccountMetas[3];
|
|
65
|
+
bondingCurve: TAccountMetas[4];
|
|
66
|
+
eventAuthority: TAccountMetas[5];
|
|
67
|
+
program: TAccountMetas[6];
|
|
68
|
+
};
|
|
69
|
+
data: SetCreatorInstructionData;
|
|
70
|
+
};
|
|
71
|
+
export declare function parseSetCreatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetCreatorInstruction<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 SET_METAPLEX_CREATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
|
|
11
|
+
export declare function getSetMetaplexCreatorDiscriminatorBytes(): ReadonlyUint8Array;
|
|
12
|
+
export type SetMetaplexCreatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMint extends string | AccountMeta<string> = string, TAccountMetadata extends string | AccountMeta<string> = string, TAccountBondingCurve 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
|
+
TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
|
|
14
|
+
TAccountMetadata extends string ? ReadonlyAccount<TAccountMetadata> : TAccountMetadata,
|
|
15
|
+
TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
|
|
16
|
+
TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
|
|
17
|
+
TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
|
|
18
|
+
...TRemainingAccounts
|
|
19
|
+
]>;
|
|
20
|
+
export type SetMetaplexCreatorInstructionData = {
|
|
21
|
+
discriminator: ReadonlyUint8Array;
|
|
22
|
+
};
|
|
23
|
+
export type SetMetaplexCreatorInstructionDataArgs = {};
|
|
24
|
+
export declare function getSetMetaplexCreatorInstructionDataEncoder(): FixedSizeEncoder<SetMetaplexCreatorInstructionDataArgs>;
|
|
25
|
+
export declare function getSetMetaplexCreatorInstructionDataDecoder(): FixedSizeDecoder<SetMetaplexCreatorInstructionData>;
|
|
26
|
+
export declare function getSetMetaplexCreatorInstructionDataCodec(): FixedSizeCodec<SetMetaplexCreatorInstructionDataArgs, SetMetaplexCreatorInstructionData>;
|
|
27
|
+
export type SetMetaplexCreatorAsyncInput<TAccountMint extends string = string, TAccountMetadata extends string = string, TAccountBondingCurve extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
28
|
+
mint: Address<TAccountMint>;
|
|
29
|
+
metadata?: Address<TAccountMetadata>;
|
|
30
|
+
bondingCurve?: Address<TAccountBondingCurve>;
|
|
31
|
+
eventAuthority?: Address<TAccountEventAuthority>;
|
|
32
|
+
program: Address<TAccountProgram>;
|
|
33
|
+
};
|
|
34
|
+
export declare function getSetMetaplexCreatorInstructionAsync<TAccountMint extends string, TAccountMetadata extends string, TAccountBondingCurve extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetMetaplexCreatorAsyncInput<TAccountMint, TAccountMetadata, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
35
|
+
programAddress?: TProgramAddress;
|
|
36
|
+
}): Promise<SetMetaplexCreatorInstruction<TProgramAddress, TAccountMint, TAccountMetadata, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>>;
|
|
37
|
+
export type SetMetaplexCreatorInput<TAccountMint extends string = string, TAccountMetadata extends string = string, TAccountBondingCurve extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
|
|
38
|
+
mint: Address<TAccountMint>;
|
|
39
|
+
metadata: Address<TAccountMetadata>;
|
|
40
|
+
bondingCurve: Address<TAccountBondingCurve>;
|
|
41
|
+
eventAuthority: Address<TAccountEventAuthority>;
|
|
42
|
+
program: Address<TAccountProgram>;
|
|
43
|
+
};
|
|
44
|
+
export declare function getSetMetaplexCreatorInstruction<TAccountMint extends string, TAccountMetadata extends string, TAccountBondingCurve extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetMetaplexCreatorInput<TAccountMint, TAccountMetadata, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>, config?: {
|
|
45
|
+
programAddress?: TProgramAddress;
|
|
46
|
+
}): SetMetaplexCreatorInstruction<TProgramAddress, TAccountMint, TAccountMetadata, TAccountBondingCurve, TAccountEventAuthority, TAccountProgram>;
|
|
47
|
+
export type ParsedSetMetaplexCreatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
|
|
48
|
+
programAddress: Address<TProgram>;
|
|
49
|
+
accounts: {
|
|
50
|
+
mint: TAccountMetas[0];
|
|
51
|
+
metadata: TAccountMetas[1];
|
|
52
|
+
bondingCurve: TAccountMetas[2];
|
|
53
|
+
eventAuthority: TAccountMetas[3];
|
|
54
|
+
program: TAccountMetas[4];
|
|
55
|
+
};
|
|
56
|
+
data: SetMetaplexCreatorInstructionData;
|
|
57
|
+
};
|
|
58
|
+
export declare function parseSetMetaplexCreatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetMetaplexCreatorInstruction<TProgram, TAccountMetas>;
|