Skip to content

Commit 4c0910b

Browse files
committed
flaunch updates
1 parent 4a01dc4 commit 4c0910b

39 files changed

+8695
-196
lines changed

agent/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"@elizaos/plugin-node": "workspace:*",
4040
"@elizaos/plugin-quick-intel": "workspace:*",
4141
"@elizaos/plugin-rss": "workspace:*",
42+
"@elizaos/plugin-social-dex": "workspace:*",
4243
"@elizaos/plugin-tee": "workspace:*",
4344
"@elizaos/plugin-tee-log": "workspace:*",
4445
"@elizaos/plugin-tee-marlin": "workspace:*",

packages/client-farcaster/src/interactions.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ export class FarcasterInteractionManager {
113113
});
114114

115115
const memory: Memory = {
116-
content: { text: mention.text },
116+
content: {
117+
text: mention.text,
118+
source: "farcaster",
119+
},
117120
agentId: this.runtime.agentId,
118121
userId,
119122
roomId,

packages/plugin-flaunch/src/actions/updateLaunch.ts

+375
Large diffs are not rendered by default.

packages/plugin-flaunch/src/evaluators/tokenLaunchEvaluator.ts

+57-57
Original file line numberDiff line numberDiff line change
@@ -384,69 +384,69 @@ export const tokenLaunchEvaluator: Evaluator = {
384384
console.log("[Evaluator Response Check]", significantProgressMade, isReadyToLaunch, lastAction, lastActionWasComponentUpdate)
385385
if ((significantProgressMade && isReadyToLaunch)) {
386386

387-
console.log("[tokenLaunchEvaluator] Significant progress detected, generating response");
387+
console.log("[tokenLaunchEvaluator] Significant progress detected, check if response needed");
388388

389-
let responseContext;
389+
// let responseContext;
390390

391-
if (isReadyToLaunch) {
392-
responseContext = composeContext({
393-
state: {
394-
...state,
395-
tokenDetails: updatedLaunchDetails
396-
},
397-
template: `
398-
You are a friendly token launch assistant.
399-
All requirements for the token launch have been met! Generate a message that:
400-
1. Shows excitement that the launch is ready to proceed
401-
2. Summarizes the key details of the token:
402-
- Name: ${updatedLaunchDetails.name}
403-
- Ticker: ${updatedLaunchDetails.ticker}}
404-
- Chain: ${updatedLaunchDetails.chain}
405-
- Fee Share: ${updatedLaunchDetails.feeShare}%
406-
- Receiver: ${updatedLaunchDetails.receiver.ensName ? updatedLaunchDetails.receiver.ensName + `(${updatedLaunchDetails.receiver.address})` : updatedLaunchDetails.receiver.address}
407-
3. Keeps response under 280 characters, so truncated and summarize the data above as necessary.
408-
3. Asks the user to type "FLAUNCH IT" to confirm and launch the token
391+
// if (isReadyToLaunch) {
392+
// responseContext = composeContext({
393+
// state: {
394+
// ...state,
395+
// tokenDetails: updatedLaunchDetails
396+
// },
397+
// template: `
398+
// You are a friendly token launch assistant.
399+
// All requirements for the token launch have been met! Generate a message that:
400+
// 1. Shows excitement that the launch is ready to proceed
401+
// 2. Summarizes the key details of the token:
402+
// - Name: ${updatedLaunchDetails.name}
403+
// - Ticker: ${updatedLaunchDetails.ticker}}
404+
// - Chain: ${updatedLaunchDetails.chain}
405+
// - Fee Share: ${updatedLaunchDetails.feeShare}%
406+
// - Receiver: ${updatedLaunchDetails.receiver.ensName ? updatedLaunchDetails.receiver.ensName + `(${updatedLaunchDetails.receiver.address})` : updatedLaunchDetails.receiver.address}
407+
// 3. Keeps response under 280 characters, so truncated and summarize the data above as necessary.
408+
// 3. Asks the user to type "FLAUNCH IT" to confirm and launch the token
409409

410-
Keep it concise, friendly, and in your character's voice. Be casual and excited!
411-
`,
412-
templatingEngine: "handlebars"
413-
});
414-
} else {
415-
// Get the missing fields
416-
const missingFields = requiredFields
417-
.filter(field => !isFieldComplete(field, updatedLaunchDetails[field]))
418-
.map(field => field === 'imageUri' ? 'image' : field);
410+
// Keep it concise, friendly, and in your character's voice. Be casual and excited!
411+
// `,
412+
// templatingEngine: "handlebars"
413+
// });
414+
// } else {
415+
// // Get the missing fields
416+
// const missingFields = requiredFields
417+
// .filter(field => !isFieldComplete(field, updatedLaunchDetails[field]))
418+
// .map(field => field === 'imageUri' ? 'image' : field);
419419

420-
responseContext = composeContext({
421-
state: {
422-
...state,
423-
tokenDetails: updatedLaunchDetails,
424-
missingFields: missingFields.join(', ')
425-
},
426-
template: `
427-
You are a friendly token launch assistant.
428-
Create a brief message that:
429-
1. Acknowledges the progress made so far on the token launch
430-
2. Mentions what information has been received successfully
431-
3. CLEARLY states what is still needed to complete the launch: {{missingFields}}
420+
// responseContext = composeContext({
421+
// state: {
422+
// ...state,
423+
// tokenDetails: updatedLaunchDetails,
424+
// missingFields: missingFields.join(', ')
425+
// },
426+
// template: `
427+
// You are a friendly token launch assistant.
428+
// Create a brief message that:
429+
// 1. Acknowledges the progress made so far on the token launch
430+
// 2. Mentions what information has been received successfully
431+
// 3. CLEARLY states what is still needed to complete the launch: {{missingFields}}
432432

433-
Keep it concise, friendly, and in your character's voice.
434-
`,
435-
templatingEngine: "handlebars"
436-
});
437-
}
433+
// Keep it concise, friendly, and in your character's voice.
434+
// `,
435+
// templatingEngine: "handlebars"
436+
// });
437+
// }
438438

439-
const responseText = await generateMessageResponse({
440-
runtime,
441-
context: responseContext,
442-
modelClass: ModelClass.LARGE
443-
});
444-
console.log("[Evaluator Response]")
445-
await callback({
446-
text: responseText.text,
447-
action: isReadyToLaunch ? "LAUNCH_READY" : "LAUNCH_PROGRESS_UPDATE",
448-
inReplyTo: message.content.inReplyTo || null
449-
});
439+
// const responseText = await generateMessageResponse({
440+
// runtime,
441+
// context: responseContext,
442+
// modelClass: ModelClass.LARGE
443+
// });
444+
// console.log("[Evaluator Response]:\n", responseText.text)
445+
// await callback({
446+
// text: responseText.text,
447+
// action: isReadyToLaunch ? "LAUNCH_READY" : "LAUNCH_PROGRESS_UPDATE",
448+
// inReplyTo: message.content.inReplyTo || null
449+
// });
450450
}
451451
},
452452
examples: [

packages/plugin-flaunch/src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
import { Plugin } from "@elizaos/core";
22
import { cancelAction } from "./actions/cancel.ts";
3+
import { updateLaunchAction } from "./actions/updateLaunch.ts";
34
import { launchAction } from "./actions/launch.ts";
45
import { fullLaunchAction } from "./actions/fullLaunch.ts";
56
import { tokenLaunchEvaluator } from "./evaluators/tokenLaunchEvaluator.ts";
67
import { tokenLaunchProvider } from "./providers/tokenLaunchProvider.ts";
8+
import { evmWalletProvider } from "./providers/wallet.ts";
79
import { addressResolutionAction } from "./actions/addressResolution.ts";
810
import { imageUploadAction } from "./actions/imageUpload.ts";
911

1012
export const flaunchPlugin: Plugin = {
1113
name: "flaunch",
1214
description: "Automated token launches",
13-
actions: [fullLaunchAction, cancelAction, launchAction, addressResolutionAction, imageUploadAction],
15+
actions: [fullLaunchAction, cancelAction, launchAction, addressResolutionAction, imageUploadAction, updateLaunchAction],
1416
evaluators: [tokenLaunchEvaluator],
15-
providers: [tokenLaunchProvider],
17+
providers: [evmWalletProvider,tokenLaunchProvider],
1618
};

0 commit comments

Comments
 (0)