@pump-fun/pump-sdk 1.27.0 → 1.28.0-devnet.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -163,3 +163,49 @@ const tx = new Transaction().add(...instructions);
163
163
  ```
164
164
 
165
165
  This method automatically handles graduated tokens by including the `transferCreatorFeesToPump` instruction to consolidate fees from the AMM vault before distributing.
166
+
167
+ ## GitHub Recipient and Social Fee PDA Requirements
168
+
169
+ If you are adding a **GitHub recipient** as a fee recipient in sharing config, make sure to initialize the social fee pda before adding it as a recipient. Use one of these methods:
170
+
171
+ ```ts
172
+ import {
173
+ Platform,
174
+ PUMP_SDK,
175
+ } from "@pump-fun/pump-sdk";
176
+
177
+ // 1) Update an existing sharing config
178
+ await PUMP_SDK.updateSharingConfigWithSocialRecipients({
179
+ authority,
180
+ mint,
181
+ currentShareholders,
182
+ newShareholders: [
183
+ { address: authority, shareBps: 7000 },
184
+ { userId: "1234567", platform: Platform.GitHub, shareBps: 3000 },
185
+ ],
186
+ });
187
+
188
+ // 2) Create sharing config + set social recipients in one flow
189
+ // - Use pool for graduated coins
190
+ // - Use null for ungraduated coins
191
+ await PUMP_SDK.createSharingConfigWithSocialRecipients({
192
+ creator,
193
+ mint,
194
+ pool,
195
+ newShareholders: [
196
+ { address: creator, shareBps: 7000 },
197
+ { userId: "1234567", platform: Platform.GitHub, shareBps: 3000 },
198
+ ],
199
+ });
200
+ ```
201
+
202
+ Method selection:
203
+ - `updateSharingConfigWithSocialRecipients`: use when sharing config already exists.
204
+ - `createSharingConfigWithSocialRecipients`: use for first-time setup (creates config, then updates shares).
205
+
206
+ ✅ Checklist
207
+
208
+ - [ ] The GitHub user must be able to log in to claim fees. **GitHub organizations are not supported** for social fee recipients; adding an organization account can result in fees being permanently lost.
209
+ - [ ] Only `Platform.GitHub` is supported. Any attempt to use a different platform value can result in the coin being banned or **fees lost**.
210
+ - [ ] Fees in a GitHub vault can only be claimed by the linked GitHub user, and only through Pump.fun (web or mobile). You are responsible for directing users to claim there; we do not support any claim flow outside our apps.
211
+ - [ ] You have initialized the social fee recipient pda by using one of the above helper or `createSocialFeePda`