Skip to content

Commit dac55c5

Browse files
committed
improve on fomo plugin and distingush it from pump.fun's plugin
1 parent 284f38a commit dac55c5

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

packages/plugin-solana/src/actions/fomo.ts

+4-7
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,6 @@ const promptConfirmation = async (): Promise<boolean> => {
362362
return true;
363363
};
364364

365-
// Save the base64 data to a file
366-
// import * as fs from "fs";
367-
// import * as path from "path";
368-
369365
const fomoTemplate = `Respond with a JSON markdown block containing only the extracted values. Use null for any values that cannot be determined.
370366
371367
Example response:
@@ -482,6 +478,7 @@ export default {
482478
formData.append("symbol", tokenMetadata.symbol);
483479
formData.append("description", tokenMetadata.description);
484480

481+
// FIXME: does fomo.fund have an ipfs call?
485482
const metadataResponse = await fetch("https://pump.fun/api/ipfs", {
486483
method: "POST",
487484
body: formData,
@@ -554,7 +551,7 @@ export default {
554551
if (callback) {
555552
if (result.success) {
556553
callback({
557-
text: `Token ${tokenMetadata.name} (${tokenMetadata.symbol}) created successfully!\nContract Address: ${result.ca}\nCreator: ${result.creator}\nView at: https://pump.fun/${result.ca}`,
554+
text: `Token ${tokenMetadata.name} (${tokenMetadata.symbol}) created successfully!\nContract Address: ${result.ca}\nCreator: ${result.creator}\nView at: https://fomo.fund/token/${result.ca}`,
558555
content: {
559556
tokenInfo: {
560557
symbol: tokenMetadata.symbol,
@@ -604,13 +601,13 @@ export default {
604601
{
605602
user: "{{user1}}",
606603
content: {
607-
text: "Create a new token called GLITCHIZA with symbol GLITCHIZA and generate a description about it. Also come up with a description for it to use for image generation .buy 0.00069 SOL worth.",
604+
text: "Create a new token called GLITCHIZA with symbol GLITCHIZA and generate a description about it on fomo.fund. Also come up with a description for it to use for image generation .buy 0.00069 SOL worth.",
608605
},
609606
},
610607
{
611608
user: "{{user2}}",
612609
content: {
613-
text: "Token GLITCHIZA (GLITCHIZA) created successfully!\nContract Address: 3kD5DN4bbA3nykb1abjS66VF7cYZkKdirX8bZ6ShJjBB\nCreator: 9jW8FPr6BSSsemWPV22UUCzSqkVdTp6HTyPqeqyuBbCa\nView at: https://pump.fun/EugPwuZ8oUMWsYHeBGERWvELfLGFmA1taDtmY8uMeX6r",
610+
text: "Token GLITCHIZA (GLITCHIZA) created successfully on fomo.fund!\nContract Address: 3kD5DN4bbA3nykb1abjS66VF7cYZkKdirX8bZ6ShJjBB\nCreator: 9jW8FPr6BSSsemWPV22UUCzSqkVdTp6HTyPqeqyuBbCa\nView at: https://fomo.fund/EugPwuZ8oUMWsYHeBGERWvELfLGFmA1taDtmY8uMeX6r",
614611
action: "CREATE_AND_BUY_TOKEN",
615612
content: {
616613
tokenInfo: {

packages/plugin-solana/src/actions/pumpfun.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -487,13 +487,13 @@ export default {
487487
{
488488
user: "{{user1}}",
489489
content: {
490-
text: "Create a new token called GLITCHIZA with symbol GLITCHIZA and generate a description about it. Also come up with a description for it to use for image generation .buy 0.00069 SOL worth.",
490+
text: "Create a new token called GLITCHIZA with symbol GLITCHIZA and generate a description about it on pump.fun. Also come up with a description for it to use for image generation .buy 0.00069 SOL worth.",
491491
},
492492
},
493493
{
494494
user: "{{user2}}",
495495
content: {
496-
text: "Token GLITCHIZA (GLITCHIZA) created successfully!\nContract Address: 3kD5DN4bbA3nykb1abjS66VF7cYZkKdirX8bZ6ShJjBB\nCreator: 9jW8FPr6BSSsemWPV22UUCzSqkVdTp6HTyPqeqyuBbCa\nView at: https://pump.fun/EugPwuZ8oUMWsYHeBGERWvELfLGFmA1taDtmY8uMeX6r",
496+
text: "Token GLITCHIZA (GLITCHIZA) created successfully on pump.fun!\nContract Address: 3kD5DN4bbA3nykb1abjS66VF7cYZkKdirX8bZ6ShJjBB\nCreator: 9jW8FPr6BSSsemWPV22UUCzSqkVdTp6HTyPqeqyuBbCa\nView at: https://pump.fun/EugPwuZ8oUMWsYHeBGERWvELfLGFmA1taDtmY8uMeX6r",
497497
action: "CREATE_AND_BUY_TOKEN",
498498
content: {
499499
tokenInfo: {

packages/plugin-solana/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const solanaPlugin: Plugin = {
2424
actions: [
2525
executeSwap,
2626
pumpfun,
27+
fomo,
2728
transferToken,
2829
executeSwapForDAO,
2930
take_order,

0 commit comments

Comments
 (0)