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
@@ -6,14 +6,15 @@
6
6
  * @see https://github.com/codama-idl/codama
7
7
  */
8
8
  import { type Address, type ReadonlyUint8Array } from '@solana/kit';
9
- import { type ParsedAdminSetCreatorInstruction, type ParsedAdminSetIdlAuthorityInstruction, type ParsedAdminUpdateTokenIncentivesInstruction, type ParsedBuyExactSolInInstruction, type ParsedBuyInstruction, type ParsedClaimTokenIncentivesInstruction, type ParsedCloseUserVolumeAccumulatorInstruction, type ParsedCollectCreatorFeeInstruction, type ParsedCreateInstruction, type ParsedExtendAccountInstruction, type ParsedInitializeInstruction, type ParsedInitUserVolumeAccumulatorInstruction, type ParsedMigrateInstruction, type ParsedSellInstruction, type ParsedSetCreatorInstruction, type ParsedSetMetaplexCreatorInstruction, type ParsedSetParamsInstruction, type ParsedSyncUserVolumeAccumulatorInstruction, type ParsedUpdateGlobalAuthorityInstruction } from '../instructions';
9
+ import { type ParsedAdminSetCreatorInstruction, type ParsedAdminSetIdlAuthorityInstruction, type ParsedAdminUpdateTokenIncentivesInstruction, type ParsedBuyExactSolInInstruction, type ParsedBuyInstruction, type ParsedClaimCashbackInstruction, type ParsedClaimTokenIncentivesInstruction, type ParsedCloseUserVolumeAccumulatorInstruction, type ParsedCollectCreatorFeeInstruction, type ParsedCreateInstruction, type ParsedCreateV2Instruction, type ParsedDistributeCreatorFeesInstruction, type ParsedExtendAccountInstruction, type ParsedGetMinimumDistributableFeeInstruction, type ParsedInitializeInstruction, type ParsedInitUserVolumeAccumulatorInstruction, type ParsedMigrateBondingCurveCreatorInstruction, type ParsedMigrateInstruction, type ParsedSellInstruction, type ParsedSetCreatorInstruction, type ParsedSetMayhemVirtualParamsInstruction, type ParsedSetMetaplexCreatorInstruction, type ParsedSetParamsInstruction, type ParsedSetReservedFeeRecipientsInstruction, type ParsedSyncUserVolumeAccumulatorInstruction, type ParsedToggleCashbackEnabledInstruction, type ParsedToggleCreateV2Instruction, type ParsedToggleMayhemModeInstruction, type ParsedUpdateGlobalAuthorityInstruction } from '../instructions';
10
10
  export declare const PUMP_PROGRAM_ADDRESS: Address<"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P">;
11
11
  export declare enum PumpAccount {
12
12
  BondingCurve = 0,
13
13
  FeeConfig = 1,
14
14
  Global = 2,
15
15
  GlobalVolumeAccumulator = 3,
16
- UserVolumeAccumulator = 4
16
+ SharingConfig = 4,
17
+ UserVolumeAccumulator = 5
17
18
  }
18
19
  export declare function identifyPumpAccount(account: {
19
20
  data: ReadonlyUint8Array;
@@ -24,20 +25,30 @@ export declare enum PumpInstruction {
24
25
  AdminUpdateTokenIncentives = 2,
25
26
  Buy = 3,
26
27
  BuyExactSolIn = 4,
27
- ClaimTokenIncentives = 5,
28
- CloseUserVolumeAccumulator = 6,
29
- CollectCreatorFee = 7,
30
- Create = 8,
31
- ExtendAccount = 9,
32
- InitUserVolumeAccumulator = 10,
33
- Initialize = 11,
34
- Migrate = 12,
35
- Sell = 13,
36
- SetCreator = 14,
37
- SetMetaplexCreator = 15,
38
- SetParams = 16,
39
- SyncUserVolumeAccumulator = 17,
40
- UpdateGlobalAuthority = 18
28
+ ClaimCashback = 5,
29
+ ClaimTokenIncentives = 6,
30
+ CloseUserVolumeAccumulator = 7,
31
+ CollectCreatorFee = 8,
32
+ Create = 9,
33
+ CreateV2 = 10,
34
+ DistributeCreatorFees = 11,
35
+ ExtendAccount = 12,
36
+ GetMinimumDistributableFee = 13,
37
+ InitUserVolumeAccumulator = 14,
38
+ Initialize = 15,
39
+ Migrate = 16,
40
+ MigrateBondingCurveCreator = 17,
41
+ Sell = 18,
42
+ SetCreator = 19,
43
+ SetMayhemVirtualParams = 20,
44
+ SetMetaplexCreator = 21,
45
+ SetParams = 22,
46
+ SetReservedFeeRecipients = 23,
47
+ SyncUserVolumeAccumulator = 24,
48
+ ToggleCashbackEnabled = 25,
49
+ ToggleCreateV2 = 26,
50
+ ToggleMayhemMode = 27,
51
+ UpdateGlobalAuthority = 28
41
52
  }
42
53
  export declare function identifyPumpInstruction(instruction: {
43
54
  data: ReadonlyUint8Array;
@@ -53,6 +64,8 @@ export type ParsedPumpInstruction<TProgram extends string = '6EF8rrecthR5Dkzon8N
53
64
  } & ParsedBuyInstruction<TProgram>) | ({
54
65
  instructionType: PumpInstruction.BuyExactSolIn;
55
66
  } & ParsedBuyExactSolInInstruction<TProgram>) | ({
67
+ instructionType: PumpInstruction.ClaimCashback;
68
+ } & ParsedClaimCashbackInstruction<TProgram>) | ({
56
69
  instructionType: PumpInstruction.ClaimTokenIncentives;
57
70
  } & ParsedClaimTokenIncentivesInstruction<TProgram>) | ({
58
71
  instructionType: PumpInstruction.CloseUserVolumeAccumulator;
@@ -61,23 +74,41 @@ export type ParsedPumpInstruction<TProgram extends string = '6EF8rrecthR5Dkzon8N
61
74
  } & ParsedCollectCreatorFeeInstruction<TProgram>) | ({
62
75
  instructionType: PumpInstruction.Create;
63
76
  } & ParsedCreateInstruction<TProgram>) | ({
77
+ instructionType: PumpInstruction.CreateV2;
78
+ } & ParsedCreateV2Instruction<TProgram>) | ({
79
+ instructionType: PumpInstruction.DistributeCreatorFees;
80
+ } & ParsedDistributeCreatorFeesInstruction<TProgram>) | ({
64
81
  instructionType: PumpInstruction.ExtendAccount;
65
82
  } & ParsedExtendAccountInstruction<TProgram>) | ({
83
+ instructionType: PumpInstruction.GetMinimumDistributableFee;
84
+ } & ParsedGetMinimumDistributableFeeInstruction<TProgram>) | ({
66
85
  instructionType: PumpInstruction.InitUserVolumeAccumulator;
67
86
  } & ParsedInitUserVolumeAccumulatorInstruction<TProgram>) | ({
68
87
  instructionType: PumpInstruction.Initialize;
69
88
  } & ParsedInitializeInstruction<TProgram>) | ({
70
89
  instructionType: PumpInstruction.Migrate;
71
90
  } & ParsedMigrateInstruction<TProgram>) | ({
91
+ instructionType: PumpInstruction.MigrateBondingCurveCreator;
92
+ } & ParsedMigrateBondingCurveCreatorInstruction<TProgram>) | ({
72
93
  instructionType: PumpInstruction.Sell;
73
94
  } & ParsedSellInstruction<TProgram>) | ({
74
95
  instructionType: PumpInstruction.SetCreator;
75
96
  } & ParsedSetCreatorInstruction<TProgram>) | ({
97
+ instructionType: PumpInstruction.SetMayhemVirtualParams;
98
+ } & ParsedSetMayhemVirtualParamsInstruction<TProgram>) | ({
76
99
  instructionType: PumpInstruction.SetMetaplexCreator;
77
100
  } & ParsedSetMetaplexCreatorInstruction<TProgram>) | ({
78
101
  instructionType: PumpInstruction.SetParams;
79
102
  } & ParsedSetParamsInstruction<TProgram>) | ({
103
+ instructionType: PumpInstruction.SetReservedFeeRecipients;
104
+ } & ParsedSetReservedFeeRecipientsInstruction<TProgram>) | ({
80
105
  instructionType: PumpInstruction.SyncUserVolumeAccumulator;
81
106
  } & ParsedSyncUserVolumeAccumulatorInstruction<TProgram>) | ({
107
+ instructionType: PumpInstruction.ToggleCashbackEnabled;
108
+ } & ParsedToggleCashbackEnabledInstruction<TProgram>) | ({
109
+ instructionType: PumpInstruction.ToggleCreateV2;
110
+ } & ParsedToggleCreateV2Instruction<TProgram>) | ({
111
+ instructionType: PumpInstruction.ToggleMayhemMode;
112
+ } & ParsedToggleMayhemModeInstruction<TProgram>) | ({
82
113
  instructionType: PumpInstruction.UpdateGlobalAuthority;
83
114
  } & ParsedUpdateGlobalAuthorityInstruction<TProgram>);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
9
+ export type ClaimCashbackEvent = {
10
+ user: Address;
11
+ amount: bigint;
12
+ timestamp: bigint;
13
+ totalClaimed: bigint;
14
+ totalCashbackEarned: bigint;
15
+ };
16
+ export type ClaimCashbackEventArgs = {
17
+ user: Address;
18
+ amount: number | bigint;
19
+ timestamp: number | bigint;
20
+ totalClaimed: number | bigint;
21
+ totalCashbackEarned: number | bigint;
22
+ };
23
+ export declare function getClaimCashbackEventEncoder(): FixedSizeEncoder<ClaimCashbackEventArgs>;
24
+ export declare function getClaimCashbackEventDecoder(): FixedSizeDecoder<ClaimCashbackEvent>;
25
+ export declare function getClaimCashbackEventCodec(): FixedSizeCodec<ClaimCashbackEventArgs, ClaimCashbackEvent>;
@@ -0,0 +1,16 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
9
+ export declare enum ConfigStatus {
10
+ Paused = 0,
11
+ Active = 1
12
+ }
13
+ export type ConfigStatusArgs = ConfigStatus;
14
+ export declare function getConfigStatusEncoder(): FixedSizeEncoder<ConfigStatusArgs>;
15
+ export declare function getConfigStatusDecoder(): FixedSizeDecoder<ConfigStatus>;
16
+ export declare function getConfigStatusCodec(): FixedSizeCodec<ConfigStatusArgs, ConfigStatus>;
@@ -19,6 +19,9 @@ export type CreateEvent = {
19
19
  virtualSolReserves: bigint;
20
20
  realTokenReserves: bigint;
21
21
  tokenTotalSupply: bigint;
22
+ tokenProgram: Address;
23
+ isMayhemMode: boolean;
24
+ isCashbackEnabled: boolean;
22
25
  };
23
26
  export type CreateEventArgs = {
24
27
  name: string;
@@ -33,6 +36,9 @@ export type CreateEventArgs = {
33
36
  virtualSolReserves: number | bigint;
34
37
  realTokenReserves: number | bigint;
35
38
  tokenTotalSupply: number | bigint;
39
+ tokenProgram: Address;
40
+ isMayhemMode: boolean;
41
+ isCashbackEnabled: boolean;
36
42
  };
37
43
  export declare function getCreateEventEncoder(): Encoder<CreateEventArgs>;
38
44
  export declare function getCreateEventDecoder(): Decoder<CreateEvent>;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Address, type Codec, type Decoder, type Encoder } from '@solana/kit';
9
+ import { type Shareholder, type ShareholderArgs } from '.';
10
+ export type DistributeCreatorFeesEvent = {
11
+ timestamp: bigint;
12
+ mint: Address;
13
+ bondingCurve: Address;
14
+ sharingConfig: Address;
15
+ admin: Address;
16
+ shareholders: Array<Shareholder>;
17
+ distributed: bigint;
18
+ };
19
+ export type DistributeCreatorFeesEventArgs = {
20
+ timestamp: number | bigint;
21
+ mint: Address;
22
+ bondingCurve: Address;
23
+ sharingConfig: Address;
24
+ admin: Address;
25
+ shareholders: Array<ShareholderArgs>;
26
+ distributed: number | bigint;
27
+ };
28
+ export declare function getDistributeCreatorFeesEventEncoder(): Encoder<DistributeCreatorFeesEventArgs>;
29
+ export declare function getDistributeCreatorFeesEventDecoder(): Decoder<DistributeCreatorFeesEvent>;
30
+ export declare function getDistributeCreatorFeesEventCodec(): Codec<DistributeCreatorFeesEventArgs, DistributeCreatorFeesEvent>;
@@ -8,20 +8,28 @@
8
8
  export * from './adminSetCreatorEvent';
9
9
  export * from './adminSetIdlAuthorityEvent';
10
10
  export * from './adminUpdateTokenIncentivesEvent';
11
+ export * from './claimCashbackEvent';
11
12
  export * from './claimTokenIncentivesEvent';
12
13
  export * from './closeUserVolumeAccumulatorEvent';
13
14
  export * from './collectCreatorFeeEvent';
14
15
  export * from './completeEvent';
15
16
  export * from './completePumpAmmMigrationEvent';
17
+ export * from './configStatus';
16
18
  export * from './createEvent';
19
+ export * from './distributeCreatorFeesEvent';
17
20
  export * from './extendAccountEvent';
18
21
  export * from './fees';
19
22
  export * from './feeTier';
20
23
  export * from './initUserVolumeAccumulatorEvent';
24
+ export * from './migrateBondingCurveCreatorEvent';
25
+ export * from './minimumDistributableFeeEvent';
21
26
  export * from './optionBool';
27
+ export * from './reservedFeeRecipientsEvent';
22
28
  export * from './setCreatorEvent';
23
29
  export * from './setMetaplexCreatorEvent';
24
30
  export * from './setParamsEvent';
31
+ export * from './shareholder';
25
32
  export * from './syncUserVolumeAccumulatorEvent';
26
33
  export * from './tradeEvent';
27
34
  export * from './updateGlobalAuthorityEvent';
35
+ export * from './updateMayhemVirtualParamsEvent';
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
9
+ export type MigrateBondingCurveCreatorEvent = {
10
+ timestamp: bigint;
11
+ mint: Address;
12
+ bondingCurve: Address;
13
+ sharingConfig: Address;
14
+ oldCreator: Address;
15
+ newCreator: Address;
16
+ };
17
+ export type MigrateBondingCurveCreatorEventArgs = {
18
+ timestamp: number | bigint;
19
+ mint: Address;
20
+ bondingCurve: Address;
21
+ sharingConfig: Address;
22
+ oldCreator: Address;
23
+ newCreator: Address;
24
+ };
25
+ export declare function getMigrateBondingCurveCreatorEventEncoder(): FixedSizeEncoder<MigrateBondingCurveCreatorEventArgs>;
26
+ export declare function getMigrateBondingCurveCreatorEventDecoder(): FixedSizeDecoder<MigrateBondingCurveCreatorEvent>;
27
+ export declare function getMigrateBondingCurveCreatorEventCodec(): FixedSizeCodec<MigrateBondingCurveCreatorEventArgs, MigrateBondingCurveCreatorEvent>;
@@ -0,0 +1,21 @@
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 FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
9
+ export type MinimumDistributableFeeEvent = {
10
+ minimumRequired: bigint;
11
+ distributableFees: bigint;
12
+ canDistribute: boolean;
13
+ };
14
+ export type MinimumDistributableFeeEventArgs = {
15
+ minimumRequired: number | bigint;
16
+ distributableFees: number | bigint;
17
+ canDistribute: boolean;
18
+ };
19
+ export declare function getMinimumDistributableFeeEventEncoder(): FixedSizeEncoder<MinimumDistributableFeeEventArgs>;
20
+ export declare function getMinimumDistributableFeeEventDecoder(): FixedSizeDecoder<MinimumDistributableFeeEvent>;
21
+ export declare function getMinimumDistributableFeeEventCodec(): FixedSizeCodec<MinimumDistributableFeeEventArgs, MinimumDistributableFeeEvent>;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
9
+ export type ReservedFeeRecipientsEvent = {
10
+ timestamp: bigint;
11
+ reservedFeeRecipient: Address;
12
+ reservedFeeRecipients: Array<Address>;
13
+ };
14
+ export type ReservedFeeRecipientsEventArgs = {
15
+ timestamp: number | bigint;
16
+ reservedFeeRecipient: Address;
17
+ reservedFeeRecipients: Array<Address>;
18
+ };
19
+ export declare function getReservedFeeRecipientsEventEncoder(): FixedSizeEncoder<ReservedFeeRecipientsEventArgs>;
20
+ export declare function getReservedFeeRecipientsEventDecoder(): FixedSizeDecoder<ReservedFeeRecipientsEvent>;
21
+ export declare function getReservedFeeRecipientsEventCodec(): FixedSizeCodec<ReservedFeeRecipientsEventArgs, ReservedFeeRecipientsEvent>;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
9
+ export type Shareholder = {
10
+ address: Address;
11
+ shareBps: number;
12
+ };
13
+ export type ShareholderArgs = Shareholder;
14
+ export declare function getShareholderEncoder(): FixedSizeEncoder<ShareholderArgs>;
15
+ export declare function getShareholderDecoder(): FixedSizeDecoder<Shareholder>;
16
+ export declare function getShareholderCodec(): FixedSizeCodec<ShareholderArgs, Shareholder>;
@@ -30,6 +30,9 @@ export type TradeEvent = {
30
30
  currentSolVolume: bigint;
31
31
  lastUpdateTimestamp: bigint;
32
32
  ixName: string;
33
+ mayhemMode: boolean;
34
+ cashbackFeeBasisPoints: bigint;
35
+ cashback: bigint;
33
36
  };
34
37
  export type TradeEventArgs = {
35
38
  mint: Address;
@@ -54,6 +57,9 @@ export type TradeEventArgs = {
54
57
  currentSolVolume: number | bigint;
55
58
  lastUpdateTimestamp: number | bigint;
56
59
  ixName: string;
60
+ mayhemMode: boolean;
61
+ cashbackFeeBasisPoints: number | bigint;
62
+ cashback: number | bigint;
57
63
  };
58
64
  export declare function getTradeEventEncoder(): Encoder<TradeEventArgs>;
59
65
  export declare function getTradeEventDecoder(): Decoder<TradeEvent>;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder } from '@solana/kit';
9
+ export type UpdateMayhemVirtualParamsEvent = {
10
+ timestamp: bigint;
11
+ mint: Address;
12
+ virtualTokenReserves: bigint;
13
+ virtualSolReserves: bigint;
14
+ newVirtualTokenReserves: bigint;
15
+ newVirtualSolReserves: bigint;
16
+ realTokenReserves: bigint;
17
+ realSolReserves: bigint;
18
+ };
19
+ export type UpdateMayhemVirtualParamsEventArgs = {
20
+ timestamp: number | bigint;
21
+ mint: Address;
22
+ virtualTokenReserves: number | bigint;
23
+ virtualSolReserves: number | bigint;
24
+ newVirtualTokenReserves: number | bigint;
25
+ newVirtualSolReserves: number | bigint;
26
+ realTokenReserves: number | bigint;
27
+ realSolReserves: number | bigint;
28
+ };
29
+ export declare function getUpdateMayhemVirtualParamsEventEncoder(): FixedSizeEncoder<UpdateMayhemVirtualParamsEventArgs>;
30
+ export declare function getUpdateMayhemVirtualParamsEventDecoder(): FixedSizeDecoder<UpdateMayhemVirtualParamsEvent>;
31
+ export declare function getUpdateMayhemVirtualParamsEventCodec(): FixedSizeCodec<UpdateMayhemVirtualParamsEventArgs, UpdateMayhemVirtualParamsEvent>;
package/llms.txt ADDED
@@ -0,0 +1,24 @@
1
+ # pump-kit
2
+ > TypeScript SDK for Pump.fun built on Solana Kit 6.
3
+
4
+ Canonical docs: `README.md`
5
+ Testing guide: `TESTING.md`
6
+ WSOL guide: `WRAPPING.md`
7
+ Machine-readable action registry: `metadata/actions-registry.json`
8
+
9
+ Entry points:
10
+ - `pump-kit` (full API)
11
+ - `pump-kit/simple` (minimal API)
12
+
13
+ Agent integration notes:
14
+ - Pass slippage in basis points (`slippageBps`), not percent.
15
+ - For swap helpers, use either explicit lamport limits or estimate+`slippageBps` mode; do not mix modes.
16
+ - JSON transports should encode bigint values as decimal strings and cast with `BigInt(...)` before calling SDK functions.
17
+ - Provide `bondingCurveCreator`/`poolCreator` when known to avoid extra RPC lookups.
18
+
19
+ High-value actions:
20
+ - `curveBuy`, `curveSell`
21
+ - `ammBuy`, `ammSell`
22
+ - `addLiquidity`, `removeLiquidity`
23
+ - `mintWithFirstBuy`, `createAndBuy`
24
+ - `buildTransaction`, `sendAndConfirmTransaction`, `simulateTransaction`