pump-kit 0.1.0 → 0.1.3

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 (58) hide show
  1. package/README.md +13 -40
  2. package/dist/index.js +12 -12
  3. package/dist/types/ammsdk/generated/accounts/globalConfig.d.ts +4 -6
  4. package/dist/types/ammsdk/generated/accounts/index.d.ts +0 -4
  5. package/dist/types/ammsdk/generated/accounts/pool.d.ts +0 -2
  6. package/dist/types/ammsdk/generated/errors/pumpAmm.d.ts +29 -55
  7. package/dist/types/ammsdk/generated/index.d.ts +1 -1
  8. package/dist/types/ammsdk/generated/instructions/buy.d.ts +14 -67
  9. package/dist/types/ammsdk/generated/instructions/createConfig.d.ts +5 -26
  10. package/dist/types/ammsdk/generated/instructions/createPool.d.ts +12 -42
  11. package/dist/types/ammsdk/generated/instructions/deposit.d.ts +10 -33
  12. package/dist/types/ammsdk/generated/instructions/disable.d.ts +2 -16
  13. package/dist/types/ammsdk/generated/instructions/extendAccount.d.ts +2 -12
  14. package/dist/types/ammsdk/generated/instructions/index.d.ts +0 -9
  15. package/dist/types/ammsdk/generated/instructions/sell.d.ts +14 -54
  16. package/dist/types/ammsdk/generated/instructions/updateAdmin.d.ts +2 -12
  17. package/dist/types/ammsdk/generated/instructions/updateFeeConfig.d.ts +2 -22
  18. package/dist/types/ammsdk/generated/instructions/withdraw.d.ts +10 -33
  19. package/dist/types/ammsdk/generated/programs/pumpAmm.d.ts +15 -46
  20. package/dist/types/ammsdk/generated/types/buyEvent.d.ts +4 -25
  21. package/dist/types/ammsdk/generated/types/createConfigEvent.d.ts +0 -4
  22. package/dist/types/ammsdk/generated/types/createPoolEvent.d.ts +0 -2
  23. package/dist/types/ammsdk/generated/types/globalConfig.d.ts +49 -0
  24. package/dist/types/ammsdk/generated/types/index.d.ts +2 -12
  25. package/dist/types/ammsdk/generated/types/pool.d.ts +35 -0
  26. package/dist/types/ammsdk/generated/types/sellEvent.d.ts +0 -6
  27. package/dist/types/ammsdk/generated/types/updateFeeConfigEvent.d.ts +0 -4
  28. package/dist/types/clients/amm.d.ts +10 -2
  29. package/dist/types/pda/pumpAmm.d.ts +4 -0
  30. package/dist/types/pumpsdk/generated/index.d.ts +1 -1
  31. package/dist/types/swap/curve.d.ts +1 -4
  32. package/dist/types/swap.d.ts +7 -23
  33. package/package.json +1 -1
  34. package/dist/types/ammsdk/generated/accounts/bondingCurve.d.ts +0 -39
  35. package/dist/types/ammsdk/generated/accounts/feeConfig.d.ts +0 -33
  36. package/dist/types/ammsdk/generated/accounts/globalVolumeAccumulator.d.ts +0 -37
  37. package/dist/types/ammsdk/generated/accounts/userVolumeAccumulator.d.ts +0 -39
  38. package/dist/types/ammsdk/generated/instructions/adminSetCoinCreator.d.ts +0 -63
  39. package/dist/types/ammsdk/generated/instructions/adminUpdateTokenIncentives.d.ts +0 -99
  40. package/dist/types/ammsdk/generated/instructions/buyExactQuoteIn.d.ts +0 -144
  41. package/dist/types/ammsdk/generated/instructions/claimTokenIncentives.d.ts +0 -86
  42. package/dist/types/ammsdk/generated/instructions/closeUserVolumeAccumulator.d.ts +0 -54
  43. package/dist/types/ammsdk/generated/instructions/collectCoinCreatorFee.d.ts +0 -70
  44. package/dist/types/ammsdk/generated/instructions/initUserVolumeAccumulator.d.ts +0 -62
  45. package/dist/types/ammsdk/generated/instructions/setCoinCreator.d.ts +0 -58
  46. package/dist/types/ammsdk/generated/instructions/syncUserVolumeAccumulator.d.ts +0 -58
  47. package/dist/types/ammsdk/generated/types/adminSetCoinCreatorEvent.d.ts +0 -27
  48. package/dist/types/ammsdk/generated/types/adminUpdateTokenIncentivesEvent.d.ts +0 -29
  49. package/dist/types/ammsdk/generated/types/claimTokenIncentivesEvent.d.ts +0 -27
  50. package/dist/types/ammsdk/generated/types/closeUserVolumeAccumulatorEvent.d.ts +0 -27
  51. package/dist/types/ammsdk/generated/types/collectCoinCreatorFeeEvent.d.ts +0 -25
  52. package/dist/types/ammsdk/generated/types/feeTier.d.ts +0 -20
  53. package/dist/types/ammsdk/generated/types/fees.d.ts +0 -21
  54. package/dist/types/ammsdk/generated/types/initUserVolumeAccumulatorEvent.d.ts +0 -21
  55. package/dist/types/ammsdk/generated/types/optionBool.d.ts +0 -13
  56. package/dist/types/ammsdk/generated/types/setBondingCurveCoinCreatorEvent.d.ts +0 -25
  57. package/dist/types/ammsdk/generated/types/setMetaplexCoinCreatorEvent.d.ts +0 -25
  58. package/dist/types/ammsdk/generated/types/syncUserVolumeAccumulatorEvent.d.ts +0 -23
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Pump Kit
2
2
 
3
3
  <p align="center">
4
- <img src="@pump-kit.png" alt="Pump Kit" width="600" />
4
+ <img src="https://amaranth-manual-buzzard-640.mypinata.cloud/ipfs/bafkreibp354xz2lzqxntalhdnq3gdvuyleilbxfw3u5pyjmigsaz6xidea" alt="Pump Kit" width="600" />
5
5
  </p>
6
6
 
7
7
  <p align="center">
@@ -16,9 +16,7 @@
16
16
  </a>
17
17
  </p>
18
18
 
19
- A TypeScript SDK for Pump.fun built on **Solana Kit 5.0**. Designed for high-performance applications including launch bots, bundlers, and low-latency trading systems using latest Solana best practices.
20
-
21
- **Production-ready package coming soon.**
19
+ A TypeScript SDK for Pump.fun built on **Solana Kit 5.0**. Designed for high-performance applications including launch bots, bundlers, and low-latency trading systems using latest Solana best practices.
22
20
 
23
21
  ## Features
24
22
 
@@ -30,10 +28,13 @@ A TypeScript SDK for Pump.fun built on **Solana Kit 5.0**. Designed for high-per
30
28
  - **Automatic slippage protection** – Built-in guards for buy/sell operations
31
29
  - **Full TypeScript support** – Strongly typed throughout with complete type coverage
32
30
 
33
- ### Coming Soon
31
+ ## TODO
32
+
33
+ These are the next actions we need to make happen:
34
34
 
35
- - **Launch & mint helpers** Create and seed new Pump.fun tokens once integration is ready
36
- - **Liquidity tooling** – Add/remove liquidity with tested helpers
35
+ - create pump fun curve launch helpers with dev buy
36
+ - provide/remove liquidity in existing pool
37
+ - create new liquidity pool
37
38
 
38
39
  ---
39
40
 
@@ -95,31 +96,27 @@ await curveSell({
95
96
  ### Buy Tokens (AMM)
96
97
 
97
98
  ```ts
98
- import { buy } from "pump-kit";
99
+ import { ammBuy } from "pump-kit";
99
100
 
100
- await buy({
101
+ await ammBuy({
101
102
  user: myWallet,
102
103
  mint: "TokenMintAddress",
103
104
  solAmount: 0.5,
104
- route: "amm", // force AMM routing
105
105
  poolCreator: "CreatorAddress", // optional if auto detection works
106
106
  rpc,
107
107
  });
108
108
  ```
109
109
 
110
- > `route` defaults to `"auto"`, which prefers the bonding curve when available and falls back to the AMM after migration.
111
-
112
110
  ### Sell Tokens (AMM)
113
111
 
114
112
  ```ts
115
- import { sell } from "pump-kit";
113
+ import { ammSell } from "pump-kit";
116
114
 
117
- await sell({
115
+ await ammSell({
118
116
  user: myWallet,
119
117
  mint: "TokenMintAddress",
120
118
  useWalletPercentage: true,
121
- walletPercentage: 50,
122
- route: "amm",
119
+ walletPercentage: 100,
123
120
  poolCreator: "CreatorAddress",
124
121
  rpc,
125
122
  });
@@ -129,19 +126,6 @@ await sell({
129
126
 
130
127
  ## API Reference
131
128
 
132
- ### Unified Swap Entry Points
133
-
134
- ```ts
135
- // Auto route (default)
136
- buy({ user, mint, solAmount, rpc, ...options });
137
-
138
- sell({ user, mint, tokenAmount?, useWalletPercentage?, rpc, ...options });
139
-
140
- // Force AMM routing, optionally provide pool hints
141
- buy({ user, mint, solAmount, rpc, route: "amm", poolCreator?, poolAddress?, quoteMint? });
142
- sell({ user, mint, route: "amm", poolCreator?, poolAddress?, quoteMint?, useWalletPercentage? });
143
- ```
144
-
145
129
  ### Curve Swap Helpers
146
130
 
147
131
  ```ts
@@ -172,17 +156,6 @@ ammSell({
172
156
  })
173
157
  ```
174
158
 
175
- ### Coming Soon
176
-
177
- ```ts
178
- // Create token with initial buy
179
- mintWithFirstBuy({ ... })
180
-
181
- // Liquidity helpers
182
- addLiquidity({ ... })
183
- removeLiquidity({ ... })
184
- ```
185
-
186
159
  ### Transaction Utilities
187
160
 
188
161
  ```ts