From e35656093643befe7d5f95d411b0983a4a671f80 Mon Sep 17 00:00:00 2001 From: Elliot Braem Date: Mon, 9 Dec 2024 18:17:26 -0600 Subject: [PATCH] clean up --- src/app/utils/account-summary.ts | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/utils/account-summary.ts b/src/app/utils/account-summary.ts index 7af48b9..257a2c1 100644 --- a/src/app/utils/account-summary.ts +++ b/src/app/utils/account-summary.ts @@ -8,7 +8,6 @@ import { TokenContract, Transaction, } from "../lib/fastnear"; -import { runLLMInference } from "../lib/open-ai"; import { analyzeInteractionPatterns, analyzeNftHoldings, @@ -198,30 +197,27 @@ Notable Interactions: ${interactionSummary} 🥩 STAKING BEHAVIOR: -${ - data.staking.pools.length === 0 - ? "Not staking anything, certified paper hands" - : `Staking in ${data.staking.pools.length} pools: ${data.staking.pools.join(", ")}` -} +${data.staking.pools.length === 0 + ? "Not staking anything, certified paper hands" + : `Staking in ${data.staking.pools.length} pools: ${data.staking.pools.join(", ")}` + } 🎯 ANALYSIS SUMMARY: -This account shows all the classic signs of ${ - txCount > 1000 +This account shows all the classic signs of ${txCount > 1000 ? "a terminally online degen" : txCount > 500 ? "someone who needs to touch grass" : txCount > 100 ? "your average NEAR user" : "a blockchain tourist" - } + } -Their portfolio clearly indicates ${ - data.assets.totalTokens > 10 +Their portfolio clearly indicates ${data.assets.totalTokens > 10 ? "a severe addiction to shitcoins" : data.assets.totalTokens > 5 ? "an aspiring shitcoin collector" : "someone who hasn't discovered meme tokens yet" - }`; + }`; } export async function getAccountSummary(accountId: string): Promise { @@ -237,7 +233,11 @@ export async function getAccountSummary(accountId: string): Promise { const processedData = processAccountData(details, allActivity); // Create the summary from processed data - return createSummary(processedData); + const summary = createSummary(processedData); + + console.log("summary: ", summary); + + return summary; } catch (error) { console.error("Error generating account summary:", error); throw error;