pump-kit 0.2.4 → 0.2.5

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.
Files changed (98) hide show
  1. package/README.md +12 -36
  2. package/dist/index.js +12 -12
  3. package/dist/types/ammsdk/generated/accounts/bondingCurve.d.ts +43 -0
  4. package/dist/types/ammsdk/generated/accounts/feeConfig.d.ts +33 -0
  5. package/dist/types/ammsdk/generated/accounts/globalConfig.d.ts +16 -4
  6. package/dist/types/ammsdk/generated/accounts/globalVolumeAccumulator.d.ts +37 -0
  7. package/dist/types/ammsdk/generated/accounts/index.d.ts +5 -0
  8. package/dist/types/ammsdk/generated/accounts/pool.d.ts +6 -0
  9. package/dist/types/ammsdk/generated/accounts/sharingConfig.d.ts +39 -0
  10. package/dist/types/ammsdk/generated/accounts/userVolumeAccumulator.d.ts +43 -0
  11. package/dist/types/ammsdk/generated/errors/pumpAmm.d.ts +79 -29
  12. package/dist/types/ammsdk/generated/instructions/adminSetCoinCreator.d.ts +63 -0
  13. package/dist/types/ammsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +99 -0
  14. package/dist/types/ammsdk/generated/instructions/buy.d.ts +67 -14
  15. package/dist/types/ammsdk/generated/instructions/buyExactQuoteIn.d.ts +144 -0
  16. package/dist/types/ammsdk/generated/instructions/claimCashback.d.ts +74 -0
  17. package/dist/types/ammsdk/generated/instructions/claimTokenIncentives.d.ts +86 -0
  18. package/dist/types/ammsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +54 -0
  19. package/dist/types/ammsdk/generated/instructions/collectCoinCreatorFee.d.ts +70 -0
  20. package/dist/types/ammsdk/generated/instructions/createConfig.d.ts +26 -5
  21. package/dist/types/ammsdk/generated/instructions/createPool.d.ts +51 -12
  22. package/dist/types/ammsdk/generated/instructions/deposit.d.ts +33 -10
  23. package/dist/types/ammsdk/generated/instructions/disable.d.ts +16 -2
  24. package/dist/types/ammsdk/generated/instructions/extendAccount.d.ts +12 -2
  25. package/dist/types/ammsdk/generated/instructions/index.d.ts +15 -0
  26. package/dist/types/ammsdk/generated/instructions/initUserVolumeAccumulator.d.ts +62 -0
  27. package/dist/types/ammsdk/generated/instructions/migratePoolCoinCreator.d.ts +54 -0
  28. package/dist/types/ammsdk/generated/instructions/sell.d.ts +54 -14
  29. package/dist/types/ammsdk/generated/instructions/setCoinCreator.d.ts +58 -0
  30. package/dist/types/ammsdk/generated/instructions/setReservedFeeRecipients.d.ts +59 -0
  31. package/dist/types/ammsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +58 -0
  32. package/dist/types/ammsdk/generated/instructions/toggleCashbackEnabled.d.ts +59 -0
  33. package/dist/types/ammsdk/generated/instructions/toggleMayhemMode.d.ts +59 -0
  34. package/dist/types/ammsdk/generated/instructions/transferCreatorFeesToPump.d.ts +81 -0
  35. package/dist/types/ammsdk/generated/instructions/updateAdmin.d.ts +12 -2
  36. package/dist/types/ammsdk/generated/instructions/updateFeeConfig.d.ts +22 -2
  37. package/dist/types/ammsdk/generated/instructions/withdraw.d.ts +33 -10
  38. package/dist/types/ammsdk/generated/programs/pumpAmm.d.ts +65 -15
  39. package/dist/types/ammsdk/generated/types/adminSetCoinCreatorEvent.d.ts +27 -0
  40. package/dist/types/ammsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +29 -0
  41. package/dist/types/ammsdk/generated/types/buyEvent.d.ts +29 -4
  42. package/dist/types/ammsdk/generated/types/claimCashbackEvent.d.ts +25 -0
  43. package/dist/types/ammsdk/generated/types/claimTokenIncentivesEvent.d.ts +27 -0
  44. package/dist/types/ammsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +27 -0
  45. package/dist/types/ammsdk/generated/types/collectCoinCreatorFeeEvent.d.ts +25 -0
  46. package/dist/types/ammsdk/generated/types/configStatus.d.ts +16 -0
  47. package/dist/types/ammsdk/generated/types/createConfigEvent.d.ts +4 -0
  48. package/dist/types/ammsdk/generated/types/createPoolEvent.d.ts +4 -0
  49. package/dist/types/ammsdk/generated/types/feeTier.d.ts +20 -0
  50. package/dist/types/ammsdk/generated/types/fees.d.ts +21 -0
  51. package/dist/types/ammsdk/generated/types/index.d.ts +17 -2
  52. package/dist/types/ammsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +21 -0
  53. package/dist/types/ammsdk/generated/types/migratePoolCoinCreatorEvent.d.ts +27 -0
  54. package/dist/types/ammsdk/generated/types/optionBool.d.ts +13 -0
  55. package/dist/types/ammsdk/generated/types/reservedFeeRecipientsEvent.d.ts +21 -0
  56. package/dist/types/ammsdk/generated/types/sellEvent.d.ts +10 -0
  57. package/dist/types/ammsdk/generated/types/setBondingCurveCoinCreatorEvent.d.ts +25 -0
  58. package/dist/types/ammsdk/generated/types/setMetaplexCoinCreatorEvent.d.ts +25 -0
  59. package/dist/types/ammsdk/generated/types/shareholder.d.ts +16 -0
  60. package/dist/types/ammsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +23 -0
  61. package/dist/types/ammsdk/generated/types/updateFeeConfigEvent.d.ts +4 -0
  62. package/dist/types/clients/amm.d.ts +2 -10
  63. package/dist/types/pumpsdk/generated/accounts/bondingCurve.d.ts +4 -0
  64. package/dist/types/pumpsdk/generated/accounts/global.d.ts +12 -0
  65. package/dist/types/pumpsdk/generated/accounts/index.d.ts +1 -0
  66. package/dist/types/pumpsdk/generated/accounts/sharingConfig.d.ts +39 -0
  67. package/dist/types/pumpsdk/generated/accounts/userVolumeAccumulator.d.ts +4 -0
  68. package/dist/types/pumpsdk/generated/errors/pump.d.ts +29 -1
  69. package/dist/types/pumpsdk/generated/instructions/buy.d.ts +1 -1
  70. package/dist/types/pumpsdk/generated/instructions/buyExactSolIn.d.ts +1 -1
  71. package/dist/types/pumpsdk/generated/instructions/claimCashback.d.ts +58 -0
  72. package/dist/types/pumpsdk/generated/instructions/createV2.d.ts +128 -0
  73. package/dist/types/pumpsdk/generated/instructions/distributeCreatorFees.d.ts +66 -0
  74. package/dist/types/pumpsdk/generated/instructions/getMinimumDistributableFee.d.ts +54 -0
  75. package/dist/types/pumpsdk/generated/instructions/index.d.ts +10 -0
  76. package/dist/types/pumpsdk/generated/instructions/migrateBondingCurveCreator.d.ts +58 -0
  77. package/dist/types/pumpsdk/generated/instructions/setMayhemVirtualParams.d.ts +70 -0
  78. package/dist/types/pumpsdk/generated/instructions/setReservedFeeRecipients.d.ts +59 -0
  79. package/dist/types/pumpsdk/generated/instructions/toggleCashbackEnabled.d.ts +59 -0
  80. package/dist/types/pumpsdk/generated/instructions/toggleCreateV2.d.ts +59 -0
  81. package/dist/types/pumpsdk/generated/instructions/toggleMayhemMode.d.ts +59 -0
  82. package/dist/types/pumpsdk/generated/programs/pump.d.ts +47 -16
  83. package/dist/types/pumpsdk/generated/types/claimCashbackEvent.d.ts +25 -0
  84. package/dist/types/pumpsdk/generated/types/configStatus.d.ts +16 -0
  85. package/dist/types/pumpsdk/generated/types/createEvent.d.ts +6 -0
  86. package/dist/types/pumpsdk/generated/types/distributeCreatorFeesEvent.d.ts +30 -0
  87. package/dist/types/pumpsdk/generated/types/index.d.ts +8 -0
  88. package/dist/types/pumpsdk/generated/types/migrateBondingCurveCreatorEvent.d.ts +27 -0
  89. package/dist/types/pumpsdk/generated/types/minimumDistributableFeeEvent.d.ts +21 -0
  90. package/dist/types/pumpsdk/generated/types/reservedFeeRecipientsEvent.d.ts +21 -0
  91. package/dist/types/pumpsdk/generated/types/shareholder.d.ts +16 -0
  92. package/dist/types/pumpsdk/generated/types/tradeEvent.d.ts +6 -0
  93. package/dist/types/pumpsdk/generated/types/updateMayhemVirtualParamsEvent.d.ts +31 -0
  94. package/llms.txt +24 -0
  95. package/metadata/actions-registry.json +278 -0
  96. package/package.json +4 -2
  97. package/dist/types/ammsdk/generated/types/globalConfig.d.ts +0 -49
  98. package/dist/types/ammsdk/generated/types/pool.d.ts +0 -35
@@ -0,0 +1,66 @@
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 DISTRIBUTE_CREATOR_FEES_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getDistributeCreatorFeesDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type DistributeCreatorFeesInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMint extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountSharingConfig 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> = '6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P', TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
14
+ TAccountBondingCurve extends string ? ReadonlyAccount<TAccountBondingCurve> : TAccountBondingCurve,
15
+ TAccountSharingConfig extends string ? ReadonlyAccount<TAccountSharingConfig> : TAccountSharingConfig,
16
+ TAccountCreatorVault extends string ? WritableAccount<TAccountCreatorVault> : TAccountCreatorVault,
17
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
18
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
19
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
20
+ ...TRemainingAccounts
21
+ ]>;
22
+ export type DistributeCreatorFeesInstructionData = {
23
+ discriminator: ReadonlyUint8Array;
24
+ };
25
+ export type DistributeCreatorFeesInstructionDataArgs = {};
26
+ export declare function getDistributeCreatorFeesInstructionDataEncoder(): FixedSizeEncoder<DistributeCreatorFeesInstructionDataArgs>;
27
+ export declare function getDistributeCreatorFeesInstructionDataDecoder(): FixedSizeDecoder<DistributeCreatorFeesInstructionData>;
28
+ export declare function getDistributeCreatorFeesInstructionDataCodec(): FixedSizeCodec<DistributeCreatorFeesInstructionDataArgs, DistributeCreatorFeesInstructionData>;
29
+ export type DistributeCreatorFeesAsyncInput<TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountSharingConfig extends string = string, TAccountCreatorVault extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
30
+ mint: Address<TAccountMint>;
31
+ bondingCurve?: Address<TAccountBondingCurve>;
32
+ sharingConfig?: Address<TAccountSharingConfig>;
33
+ creatorVault: Address<TAccountCreatorVault>;
34
+ systemProgram?: Address<TAccountSystemProgram>;
35
+ eventAuthority?: Address<TAccountEventAuthority>;
36
+ program?: Address<TAccountProgram>;
37
+ };
38
+ export declare function getDistributeCreatorFeesInstructionAsync<TAccountMint extends string, TAccountBondingCurve extends string, TAccountSharingConfig extends string, TAccountCreatorVault extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: DistributeCreatorFeesAsyncInput<TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountCreatorVault, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
39
+ programAddress?: TProgramAddress;
40
+ }): Promise<DistributeCreatorFeesInstruction<TProgramAddress, TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountCreatorVault, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>>;
41
+ export type DistributeCreatorFeesInput<TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountSharingConfig extends string = string, TAccountCreatorVault extends string = string, TAccountSystemProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
42
+ mint: Address<TAccountMint>;
43
+ bondingCurve: Address<TAccountBondingCurve>;
44
+ sharingConfig: Address<TAccountSharingConfig>;
45
+ creatorVault: Address<TAccountCreatorVault>;
46
+ systemProgram?: Address<TAccountSystemProgram>;
47
+ eventAuthority: Address<TAccountEventAuthority>;
48
+ program?: Address<TAccountProgram>;
49
+ };
50
+ export declare function getDistributeCreatorFeesInstruction<TAccountMint extends string, TAccountBondingCurve extends string, TAccountSharingConfig extends string, TAccountCreatorVault extends string, TAccountSystemProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: DistributeCreatorFeesInput<TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountCreatorVault, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>, config?: {
51
+ programAddress?: TProgramAddress;
52
+ }): DistributeCreatorFeesInstruction<TProgramAddress, TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountCreatorVault, TAccountSystemProgram, TAccountEventAuthority, TAccountProgram>;
53
+ export type ParsedDistributeCreatorFeesInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
54
+ programAddress: Address<TProgram>;
55
+ accounts: {
56
+ mint: TAccountMetas[0];
57
+ bondingCurve: TAccountMetas[1];
58
+ sharingConfig: TAccountMetas[2];
59
+ creatorVault: TAccountMetas[3];
60
+ systemProgram: TAccountMetas[4];
61
+ eventAuthority: TAccountMetas[5];
62
+ program: TAccountMetas[6];
63
+ };
64
+ data: DistributeCreatorFeesInstructionData;
65
+ };
66
+ export declare function parseDistributeCreatorFeesInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedDistributeCreatorFeesInstruction<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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array } from '@solana/kit';
9
+ import { PUMP_PROGRAM_ADDRESS } from '../programs';
10
+ export declare const GET_MINIMUM_DISTRIBUTABLE_FEE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getGetMinimumDistributableFeeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type GetMinimumDistributableFeeInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMint extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountSharingConfig extends string | AccountMeta<string> = string, TAccountCreatorVault extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
14
+ TAccountBondingCurve extends string ? ReadonlyAccount<TAccountBondingCurve> : TAccountBondingCurve,
15
+ TAccountSharingConfig extends string ? ReadonlyAccount<TAccountSharingConfig> : TAccountSharingConfig,
16
+ TAccountCreatorVault extends string ? ReadonlyAccount<TAccountCreatorVault> : TAccountCreatorVault,
17
+ ...TRemainingAccounts
18
+ ]>;
19
+ export type GetMinimumDistributableFeeInstructionData = {
20
+ discriminator: ReadonlyUint8Array;
21
+ };
22
+ export type GetMinimumDistributableFeeInstructionDataArgs = {};
23
+ export declare function getGetMinimumDistributableFeeInstructionDataEncoder(): FixedSizeEncoder<GetMinimumDistributableFeeInstructionDataArgs>;
24
+ export declare function getGetMinimumDistributableFeeInstructionDataDecoder(): FixedSizeDecoder<GetMinimumDistributableFeeInstructionData>;
25
+ export declare function getGetMinimumDistributableFeeInstructionDataCodec(): FixedSizeCodec<GetMinimumDistributableFeeInstructionDataArgs, GetMinimumDistributableFeeInstructionData>;
26
+ export type GetMinimumDistributableFeeAsyncInput<TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountSharingConfig extends string = string, TAccountCreatorVault extends string = string> = {
27
+ mint: Address<TAccountMint>;
28
+ bondingCurve?: Address<TAccountBondingCurve>;
29
+ sharingConfig?: Address<TAccountSharingConfig>;
30
+ creatorVault: Address<TAccountCreatorVault>;
31
+ };
32
+ export declare function getGetMinimumDistributableFeeInstructionAsync<TAccountMint extends string, TAccountBondingCurve extends string, TAccountSharingConfig extends string, TAccountCreatorVault extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: GetMinimumDistributableFeeAsyncInput<TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountCreatorVault>, config?: {
33
+ programAddress?: TProgramAddress;
34
+ }): Promise<GetMinimumDistributableFeeInstruction<TProgramAddress, TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountCreatorVault>>;
35
+ export type GetMinimumDistributableFeeInput<TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountSharingConfig extends string = string, TAccountCreatorVault extends string = string> = {
36
+ mint: Address<TAccountMint>;
37
+ bondingCurve: Address<TAccountBondingCurve>;
38
+ sharingConfig: Address<TAccountSharingConfig>;
39
+ creatorVault: Address<TAccountCreatorVault>;
40
+ };
41
+ export declare function getGetMinimumDistributableFeeInstruction<TAccountMint extends string, TAccountBondingCurve extends string, TAccountSharingConfig extends string, TAccountCreatorVault extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: GetMinimumDistributableFeeInput<TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountCreatorVault>, config?: {
42
+ programAddress?: TProgramAddress;
43
+ }): GetMinimumDistributableFeeInstruction<TProgramAddress, TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountCreatorVault>;
44
+ export type ParsedGetMinimumDistributableFeeInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
45
+ programAddress: Address<TProgram>;
46
+ accounts: {
47
+ mint: TAccountMetas[0];
48
+ bondingCurve: TAccountMetas[1];
49
+ sharingConfig: TAccountMetas[2];
50
+ creatorVault: TAccountMetas[3];
51
+ };
52
+ data: GetMinimumDistributableFeeInstructionData;
53
+ };
54
+ export declare function parseGetMinimumDistributableFeeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedGetMinimumDistributableFeeInstruction<TProgram, TAccountMetas>;
@@ -10,17 +10,27 @@ export * from './adminSetIdlAuthority';
10
10
  export * from './adminUpdateTokenIncentives';
11
11
  export * from './buy';
12
12
  export * from './buyExactSolIn';
13
+ export * from './claimCashback';
13
14
  export * from './claimTokenIncentives';
14
15
  export * from './closeUserVolumeAccumulator';
15
16
  export * from './collectCreatorFee';
16
17
  export * from './create';
18
+ export * from './createV2';
19
+ export * from './distributeCreatorFees';
17
20
  export * from './extendAccount';
21
+ export * from './getMinimumDistributableFee';
18
22
  export * from './initialize';
19
23
  export * from './initUserVolumeAccumulator';
20
24
  export * from './migrate';
25
+ export * from './migrateBondingCurveCreator';
21
26
  export * from './sell';
22
27
  export * from './setCreator';
28
+ export * from './setMayhemVirtualParams';
23
29
  export * from './setMetaplexCreator';
24
30
  export * from './setParams';
31
+ export * from './setReservedFeeRecipients';
25
32
  export * from './syncUserVolumeAccumulator';
33
+ export * from './toggleCashbackEnabled';
34
+ export * from './toggleCreateV2';
35
+ export * from './toggleMayhemMode';
26
36
  export * from './updateGlobalAuthority';
@@ -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 MIGRATE_BONDING_CURVE_CREATOR_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getMigrateBondingCurveCreatorDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type MigrateBondingCurveCreatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMint extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountSharingConfig 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
+ TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
15
+ TAccountSharingConfig extends string ? ReadonlyAccount<TAccountSharingConfig> : TAccountSharingConfig,
16
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
17
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
18
+ ...TRemainingAccounts
19
+ ]>;
20
+ export type MigrateBondingCurveCreatorInstructionData = {
21
+ discriminator: ReadonlyUint8Array;
22
+ };
23
+ export type MigrateBondingCurveCreatorInstructionDataArgs = {};
24
+ export declare function getMigrateBondingCurveCreatorInstructionDataEncoder(): FixedSizeEncoder<MigrateBondingCurveCreatorInstructionDataArgs>;
25
+ export declare function getMigrateBondingCurveCreatorInstructionDataDecoder(): FixedSizeDecoder<MigrateBondingCurveCreatorInstructionData>;
26
+ export declare function getMigrateBondingCurveCreatorInstructionDataCodec(): FixedSizeCodec<MigrateBondingCurveCreatorInstructionDataArgs, MigrateBondingCurveCreatorInstructionData>;
27
+ export type MigrateBondingCurveCreatorAsyncInput<TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountSharingConfig extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
28
+ mint: Address<TAccountMint>;
29
+ bondingCurve?: Address<TAccountBondingCurve>;
30
+ sharingConfig?: Address<TAccountSharingConfig>;
31
+ eventAuthority?: Address<TAccountEventAuthority>;
32
+ program: Address<TAccountProgram>;
33
+ };
34
+ export declare function getMigrateBondingCurveCreatorInstructionAsync<TAccountMint extends string, TAccountBondingCurve extends string, TAccountSharingConfig extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: MigrateBondingCurveCreatorAsyncInput<TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountEventAuthority, TAccountProgram>, config?: {
35
+ programAddress?: TProgramAddress;
36
+ }): Promise<MigrateBondingCurveCreatorInstruction<TProgramAddress, TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountEventAuthority, TAccountProgram>>;
37
+ export type MigrateBondingCurveCreatorInput<TAccountMint extends string = string, TAccountBondingCurve extends string = string, TAccountSharingConfig extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
38
+ mint: Address<TAccountMint>;
39
+ bondingCurve: Address<TAccountBondingCurve>;
40
+ sharingConfig: Address<TAccountSharingConfig>;
41
+ eventAuthority: Address<TAccountEventAuthority>;
42
+ program: Address<TAccountProgram>;
43
+ };
44
+ export declare function getMigrateBondingCurveCreatorInstruction<TAccountMint extends string, TAccountBondingCurve extends string, TAccountSharingConfig extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: MigrateBondingCurveCreatorInput<TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountEventAuthority, TAccountProgram>, config?: {
45
+ programAddress?: TProgramAddress;
46
+ }): MigrateBondingCurveCreatorInstruction<TProgramAddress, TAccountMint, TAccountBondingCurve, TAccountSharingConfig, TAccountEventAuthority, TAccountProgram>;
47
+ export type ParsedMigrateBondingCurveCreatorInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
48
+ programAddress: Address<TProgram>;
49
+ accounts: {
50
+ mint: TAccountMetas[0];
51
+ bondingCurve: TAccountMetas[1];
52
+ sharingConfig: TAccountMetas[2];
53
+ eventAuthority: TAccountMetas[3];
54
+ program: TAccountMetas[4];
55
+ };
56
+ data: MigrateBondingCurveCreatorInstructionData;
57
+ };
58
+ export declare function parseMigrateBondingCurveCreatorInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedMigrateBondingCurveCreatorInstruction<TProgram, TAccountMetas>;
@@ -0,0 +1,70 @@
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 SET_MAYHEM_VIRTUAL_PARAMS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getSetMayhemVirtualParamsDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type SetMayhemVirtualParamsInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountSolVaultAuthority extends string | AccountMeta<string> = string, TAccountMayhemTokenVault extends string | AccountMeta<string> = string, TAccountMint extends string | AccountMeta<string> = string, TAccountGlobal extends string | AccountMeta<string> = string, TAccountBondingCurve extends string | AccountMeta<string> = string, TAccountTokenProgram extends string | AccountMeta<string> = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TAccountEventAuthority extends string | AccountMeta<string> = string, TAccountProgram extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountSolVaultAuthority extends string ? WritableSignerAccount<TAccountSolVaultAuthority> & AccountSignerMeta<TAccountSolVaultAuthority> : TAccountSolVaultAuthority,
14
+ TAccountMayhemTokenVault extends string ? WritableAccount<TAccountMayhemTokenVault> : TAccountMayhemTokenVault,
15
+ TAccountMint extends string ? ReadonlyAccount<TAccountMint> : TAccountMint,
16
+ TAccountGlobal extends string ? ReadonlyAccount<TAccountGlobal> : TAccountGlobal,
17
+ TAccountBondingCurve extends string ? WritableAccount<TAccountBondingCurve> : TAccountBondingCurve,
18
+ TAccountTokenProgram extends string ? ReadonlyAccount<TAccountTokenProgram> : TAccountTokenProgram,
19
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
20
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
21
+ ...TRemainingAccounts
22
+ ]>;
23
+ export type SetMayhemVirtualParamsInstructionData = {
24
+ discriminator: ReadonlyUint8Array;
25
+ };
26
+ export type SetMayhemVirtualParamsInstructionDataArgs = {};
27
+ export declare function getSetMayhemVirtualParamsInstructionDataEncoder(): FixedSizeEncoder<SetMayhemVirtualParamsInstructionDataArgs>;
28
+ export declare function getSetMayhemVirtualParamsInstructionDataDecoder(): FixedSizeDecoder<SetMayhemVirtualParamsInstructionData>;
29
+ export declare function getSetMayhemVirtualParamsInstructionDataCodec(): FixedSizeCodec<SetMayhemVirtualParamsInstructionDataArgs, SetMayhemVirtualParamsInstructionData>;
30
+ export type SetMayhemVirtualParamsAsyncInput<TAccountSolVaultAuthority extends string = string, TAccountMayhemTokenVault extends string = string, TAccountMint extends string = string, TAccountGlobal extends string = string, TAccountBondingCurve extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
31
+ solVaultAuthority?: TransactionSigner<TAccountSolVaultAuthority>;
32
+ mayhemTokenVault?: Address<TAccountMayhemTokenVault>;
33
+ mint: Address<TAccountMint>;
34
+ global?: Address<TAccountGlobal>;
35
+ bondingCurve?: Address<TAccountBondingCurve>;
36
+ tokenProgram?: Address<TAccountTokenProgram>;
37
+ eventAuthority?: Address<TAccountEventAuthority>;
38
+ program: Address<TAccountProgram>;
39
+ };
40
+ export declare function getSetMayhemVirtualParamsInstructionAsync<TAccountSolVaultAuthority extends string, TAccountMayhemTokenVault extends string, TAccountMint extends string, TAccountGlobal extends string, TAccountBondingCurve extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetMayhemVirtualParamsAsyncInput<TAccountSolVaultAuthority, TAccountMayhemTokenVault, TAccountMint, TAccountGlobal, TAccountBondingCurve, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
41
+ programAddress?: TProgramAddress;
42
+ }): Promise<SetMayhemVirtualParamsInstruction<TProgramAddress, TAccountSolVaultAuthority, TAccountMayhemTokenVault, TAccountMint, TAccountGlobal, TAccountBondingCurve, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>>;
43
+ export type SetMayhemVirtualParamsInput<TAccountSolVaultAuthority extends string = string, TAccountMayhemTokenVault extends string = string, TAccountMint extends string = string, TAccountGlobal extends string = string, TAccountBondingCurve extends string = string, TAccountTokenProgram extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
44
+ solVaultAuthority: TransactionSigner<TAccountSolVaultAuthority>;
45
+ mayhemTokenVault: Address<TAccountMayhemTokenVault>;
46
+ mint: Address<TAccountMint>;
47
+ global: Address<TAccountGlobal>;
48
+ bondingCurve: Address<TAccountBondingCurve>;
49
+ tokenProgram?: Address<TAccountTokenProgram>;
50
+ eventAuthority: Address<TAccountEventAuthority>;
51
+ program: Address<TAccountProgram>;
52
+ };
53
+ export declare function getSetMayhemVirtualParamsInstruction<TAccountSolVaultAuthority extends string, TAccountMayhemTokenVault extends string, TAccountMint extends string, TAccountGlobal extends string, TAccountBondingCurve extends string, TAccountTokenProgram extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetMayhemVirtualParamsInput<TAccountSolVaultAuthority, TAccountMayhemTokenVault, TAccountMint, TAccountGlobal, TAccountBondingCurve, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>, config?: {
54
+ programAddress?: TProgramAddress;
55
+ }): SetMayhemVirtualParamsInstruction<TProgramAddress, TAccountSolVaultAuthority, TAccountMayhemTokenVault, TAccountMint, TAccountGlobal, TAccountBondingCurve, TAccountTokenProgram, TAccountEventAuthority, TAccountProgram>;
56
+ export type ParsedSetMayhemVirtualParamsInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
57
+ programAddress: Address<TProgram>;
58
+ accounts: {
59
+ solVaultAuthority: TAccountMetas[0];
60
+ mayhemTokenVault: TAccountMetas[1];
61
+ mint: TAccountMetas[2];
62
+ global: TAccountMetas[3];
63
+ bondingCurve: TAccountMetas[4];
64
+ tokenProgram: TAccountMetas[5];
65
+ eventAuthority: TAccountMetas[6];
66
+ program: TAccountMetas[7];
67
+ };
68
+ data: SetMayhemVirtualParamsInstructionData;
69
+ };
70
+ export declare function parseSetMayhemVirtualParamsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetMayhemVirtualParamsInstruction<TProgram, TAccountMetas>;
@@ -0,0 +1,59 @@
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_RESERVED_FEE_RECIPIENTS_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getSetReservedFeeRecipientsDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type SetReservedFeeRecipientsInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountAuthority 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 ? WritableAccount<TAccountGlobal> : TAccountGlobal,
14
+ TAccountAuthority extends string ? ReadonlySignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
15
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
16
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
17
+ ...TRemainingAccounts
18
+ ]>;
19
+ export type SetReservedFeeRecipientsInstructionData = {
20
+ discriminator: ReadonlyUint8Array;
21
+ whitelistPda: Address;
22
+ };
23
+ export type SetReservedFeeRecipientsInstructionDataArgs = {
24
+ whitelistPda: Address;
25
+ };
26
+ export declare function getSetReservedFeeRecipientsInstructionDataEncoder(): FixedSizeEncoder<SetReservedFeeRecipientsInstructionDataArgs>;
27
+ export declare function getSetReservedFeeRecipientsInstructionDataDecoder(): FixedSizeDecoder<SetReservedFeeRecipientsInstructionData>;
28
+ export declare function getSetReservedFeeRecipientsInstructionDataCodec(): FixedSizeCodec<SetReservedFeeRecipientsInstructionDataArgs, SetReservedFeeRecipientsInstructionData>;
29
+ export type SetReservedFeeRecipientsAsyncInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
30
+ global?: Address<TAccountGlobal>;
31
+ authority: TransactionSigner<TAccountAuthority>;
32
+ eventAuthority?: Address<TAccountEventAuthority>;
33
+ program: Address<TAccountProgram>;
34
+ whitelistPda: SetReservedFeeRecipientsInstructionDataArgs['whitelistPda'];
35
+ };
36
+ export declare function getSetReservedFeeRecipientsInstructionAsync<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetReservedFeeRecipientsAsyncInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
37
+ programAddress?: TProgramAddress;
38
+ }): Promise<SetReservedFeeRecipientsInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>>;
39
+ export type SetReservedFeeRecipientsInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
40
+ global: Address<TAccountGlobal>;
41
+ authority: TransactionSigner<TAccountAuthority>;
42
+ eventAuthority: Address<TAccountEventAuthority>;
43
+ program: Address<TAccountProgram>;
44
+ whitelistPda: SetReservedFeeRecipientsInstructionDataArgs['whitelistPda'];
45
+ };
46
+ export declare function getSetReservedFeeRecipientsInstruction<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: SetReservedFeeRecipientsInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
47
+ programAddress?: TProgramAddress;
48
+ }): SetReservedFeeRecipientsInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>;
49
+ export type ParsedSetReservedFeeRecipientsInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
50
+ programAddress: Address<TProgram>;
51
+ accounts: {
52
+ global: TAccountMetas[0];
53
+ authority: TAccountMetas[1];
54
+ eventAuthority: TAccountMetas[2];
55
+ program: TAccountMetas[3];
56
+ };
57
+ data: SetReservedFeeRecipientsInstructionData;
58
+ };
59
+ export declare function parseSetReservedFeeRecipientsInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedSetReservedFeeRecipientsInstruction<TProgram, TAccountMetas>;
@@ -0,0 +1,59 @@
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 TOGGLE_CASHBACK_ENABLED_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getToggleCashbackEnabledDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type ToggleCashbackEnabledInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountAuthority 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 ? WritableAccount<TAccountGlobal> : TAccountGlobal,
14
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
15
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
16
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
17
+ ...TRemainingAccounts
18
+ ]>;
19
+ export type ToggleCashbackEnabledInstructionData = {
20
+ discriminator: ReadonlyUint8Array;
21
+ enabled: boolean;
22
+ };
23
+ export type ToggleCashbackEnabledInstructionDataArgs = {
24
+ enabled: boolean;
25
+ };
26
+ export declare function getToggleCashbackEnabledInstructionDataEncoder(): FixedSizeEncoder<ToggleCashbackEnabledInstructionDataArgs>;
27
+ export declare function getToggleCashbackEnabledInstructionDataDecoder(): FixedSizeDecoder<ToggleCashbackEnabledInstructionData>;
28
+ export declare function getToggleCashbackEnabledInstructionDataCodec(): FixedSizeCodec<ToggleCashbackEnabledInstructionDataArgs, ToggleCashbackEnabledInstructionData>;
29
+ export type ToggleCashbackEnabledAsyncInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
30
+ global?: Address<TAccountGlobal>;
31
+ authority: TransactionSigner<TAccountAuthority>;
32
+ eventAuthority?: Address<TAccountEventAuthority>;
33
+ program: Address<TAccountProgram>;
34
+ enabled: ToggleCashbackEnabledInstructionDataArgs['enabled'];
35
+ };
36
+ export declare function getToggleCashbackEnabledInstructionAsync<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ToggleCashbackEnabledAsyncInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
37
+ programAddress?: TProgramAddress;
38
+ }): Promise<ToggleCashbackEnabledInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>>;
39
+ export type ToggleCashbackEnabledInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
40
+ global: Address<TAccountGlobal>;
41
+ authority: TransactionSigner<TAccountAuthority>;
42
+ eventAuthority: Address<TAccountEventAuthority>;
43
+ program: Address<TAccountProgram>;
44
+ enabled: ToggleCashbackEnabledInstructionDataArgs['enabled'];
45
+ };
46
+ export declare function getToggleCashbackEnabledInstruction<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ToggleCashbackEnabledInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
47
+ programAddress?: TProgramAddress;
48
+ }): ToggleCashbackEnabledInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>;
49
+ export type ParsedToggleCashbackEnabledInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
50
+ programAddress: Address<TProgram>;
51
+ accounts: {
52
+ global: TAccountMetas[0];
53
+ authority: TAccountMetas[1];
54
+ eventAuthority: TAccountMetas[2];
55
+ program: TAccountMetas[3];
56
+ };
57
+ data: ToggleCashbackEnabledInstructionData;
58
+ };
59
+ export declare function parseToggleCashbackEnabledInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedToggleCashbackEnabledInstruction<TProgram, TAccountMetas>;
@@ -0,0 +1,59 @@
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 TOGGLE_CREATE_V2_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getToggleCreateV2DiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type ToggleCreateV2Instruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountAuthority 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 ? WritableAccount<TAccountGlobal> : TAccountGlobal,
14
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
15
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
16
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
17
+ ...TRemainingAccounts
18
+ ]>;
19
+ export type ToggleCreateV2InstructionData = {
20
+ discriminator: ReadonlyUint8Array;
21
+ enabled: boolean;
22
+ };
23
+ export type ToggleCreateV2InstructionDataArgs = {
24
+ enabled: boolean;
25
+ };
26
+ export declare function getToggleCreateV2InstructionDataEncoder(): FixedSizeEncoder<ToggleCreateV2InstructionDataArgs>;
27
+ export declare function getToggleCreateV2InstructionDataDecoder(): FixedSizeDecoder<ToggleCreateV2InstructionData>;
28
+ export declare function getToggleCreateV2InstructionDataCodec(): FixedSizeCodec<ToggleCreateV2InstructionDataArgs, ToggleCreateV2InstructionData>;
29
+ export type ToggleCreateV2AsyncInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
30
+ global?: Address<TAccountGlobal>;
31
+ authority: TransactionSigner<TAccountAuthority>;
32
+ eventAuthority?: Address<TAccountEventAuthority>;
33
+ program: Address<TAccountProgram>;
34
+ enabled: ToggleCreateV2InstructionDataArgs['enabled'];
35
+ };
36
+ export declare function getToggleCreateV2InstructionAsync<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ToggleCreateV2AsyncInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
37
+ programAddress?: TProgramAddress;
38
+ }): Promise<ToggleCreateV2Instruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>>;
39
+ export type ToggleCreateV2Input<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
40
+ global: Address<TAccountGlobal>;
41
+ authority: TransactionSigner<TAccountAuthority>;
42
+ eventAuthority: Address<TAccountEventAuthority>;
43
+ program: Address<TAccountProgram>;
44
+ enabled: ToggleCreateV2InstructionDataArgs['enabled'];
45
+ };
46
+ export declare function getToggleCreateV2Instruction<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ToggleCreateV2Input<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
47
+ programAddress?: TProgramAddress;
48
+ }): ToggleCreateV2Instruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>;
49
+ export type ParsedToggleCreateV2Instruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
50
+ programAddress: Address<TProgram>;
51
+ accounts: {
52
+ global: TAccountMetas[0];
53
+ authority: TAccountMetas[1];
54
+ eventAuthority: TAccountMetas[2];
55
+ program: TAccountMetas[3];
56
+ };
57
+ data: ToggleCreateV2InstructionData;
58
+ };
59
+ export declare function parseToggleCreateV2Instruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedToggleCreateV2Instruction<TProgram, TAccountMetas>;
@@ -0,0 +1,59 @@
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 TOGGLE_MAYHEM_MODE_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getToggleMayhemModeDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type ToggleMayhemModeInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountGlobal extends string | AccountMeta<string> = string, TAccountAuthority 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 ? WritableAccount<TAccountGlobal> : TAccountGlobal,
14
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
15
+ TAccountEventAuthority extends string ? ReadonlyAccount<TAccountEventAuthority> : TAccountEventAuthority,
16
+ TAccountProgram extends string ? ReadonlyAccount<TAccountProgram> : TAccountProgram,
17
+ ...TRemainingAccounts
18
+ ]>;
19
+ export type ToggleMayhemModeInstructionData = {
20
+ discriminator: ReadonlyUint8Array;
21
+ enabled: boolean;
22
+ };
23
+ export type ToggleMayhemModeInstructionDataArgs = {
24
+ enabled: boolean;
25
+ };
26
+ export declare function getToggleMayhemModeInstructionDataEncoder(): FixedSizeEncoder<ToggleMayhemModeInstructionDataArgs>;
27
+ export declare function getToggleMayhemModeInstructionDataDecoder(): FixedSizeDecoder<ToggleMayhemModeInstructionData>;
28
+ export declare function getToggleMayhemModeInstructionDataCodec(): FixedSizeCodec<ToggleMayhemModeInstructionDataArgs, ToggleMayhemModeInstructionData>;
29
+ export type ToggleMayhemModeAsyncInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
30
+ global?: Address<TAccountGlobal>;
31
+ authority: TransactionSigner<TAccountAuthority>;
32
+ eventAuthority?: Address<TAccountEventAuthority>;
33
+ program: Address<TAccountProgram>;
34
+ enabled: ToggleMayhemModeInstructionDataArgs['enabled'];
35
+ };
36
+ export declare function getToggleMayhemModeInstructionAsync<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ToggleMayhemModeAsyncInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
37
+ programAddress?: TProgramAddress;
38
+ }): Promise<ToggleMayhemModeInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>>;
39
+ export type ToggleMayhemModeInput<TAccountGlobal extends string = string, TAccountAuthority extends string = string, TAccountEventAuthority extends string = string, TAccountProgram extends string = string> = {
40
+ global: Address<TAccountGlobal>;
41
+ authority: TransactionSigner<TAccountAuthority>;
42
+ eventAuthority: Address<TAccountEventAuthority>;
43
+ program: Address<TAccountProgram>;
44
+ enabled: ToggleMayhemModeInstructionDataArgs['enabled'];
45
+ };
46
+ export declare function getToggleMayhemModeInstruction<TAccountGlobal extends string, TAccountAuthority extends string, TAccountEventAuthority extends string, TAccountProgram extends string, TProgramAddress extends Address = typeof PUMP_PROGRAM_ADDRESS>(input: ToggleMayhemModeInput<TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>, config?: {
47
+ programAddress?: TProgramAddress;
48
+ }): ToggleMayhemModeInstruction<TProgramAddress, TAccountGlobal, TAccountAuthority, TAccountEventAuthority, TAccountProgram>;
49
+ export type ParsedToggleMayhemModeInstruction<TProgram extends string = typeof PUMP_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
50
+ programAddress: Address<TProgram>;
51
+ accounts: {
52
+ global: TAccountMetas[0];
53
+ authority: TAccountMetas[1];
54
+ eventAuthority: TAccountMetas[2];
55
+ program: TAccountMetas[3];
56
+ };
57
+ data: ToggleMayhemModeInstructionData;
58
+ };
59
+ export declare function parseToggleMayhemModeInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedToggleMayhemModeInstruction<TProgram, TAccountMetas>;