Skip to content

Commit

Permalink
tokenRecommendation uuid
Browse files Browse the repository at this point in the history
Signed-off-by: MarcoMandar <malicemandar@gmail.com>
  • Loading branch information
MarcoMandar committed Nov 25, 2024
1 parent 2d93baa commit 5e7274c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/plugin-solana/src/providers/trustScoreProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
} from "@ai16z/plugin-trustdb";
import { settings } from "@ai16z/eliza";
import { IAgentRuntime, Memory, Provider, State } from "@ai16z/eliza";
import { v4 as uuidv4 } from "uuid";

const Wallet = settings.MAIN_WALLET_ADDRESS;
interface TradeData {
Expand Down Expand Up @@ -391,8 +392,10 @@ export class TrustScoreManager {
rapidDump: false,
};
this.trustScoreDb.addTradePerformance(creationData, data.is_simulation);

// generate unique uuid for each TokenRecommendation
const tokenUUId = uuidv4();
const tokenRecommendation: TokenRecommendation = {
id: tokenUUId,
recommenderId: recommenderId,
tokenAddress: tokenAddress,
timestamp: new Date(),
Expand Down

0 comments on commit 5e7274c

Please sign in to comment.