decharge-scout 2.5.4 → 2.5.5

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.
Files changed (2) hide show
  1. package/index.js +4 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -347,7 +347,7 @@ async function runQueryCycle(wallet, agentName, location, options) {
347
347
  headers: { 'Content-Type': 'application/json' },
348
348
  body: JSON.stringify({
349
349
  ...submissionData,
350
- wallet: walletAddress,
350
+ wallet: wallet, // wallet parameter from runQueryCycle
351
351
  run_number: totalRuns
352
352
  })
353
353
  });
@@ -373,8 +373,8 @@ async function runQueryCycle(wallet, agentName, location, options) {
373
373
  const bonusPoints = savings > 15 ? 2 : 0; // Bonus for good savings
374
374
  const totalPointsEarned = basePoints + bonusPoints;
375
375
 
376
- awardPoints(walletAddress, totalPointsEarned);
377
- const currentPoints = getPoints(walletAddress);
376
+ awardPoints(wallet, totalPointsEarned);
377
+ const currentPoints = getPoints(wallet);
378
378
 
379
379
  console.log(chalk.magenta(`\n⭐ Earned ${totalPointsEarned} points! (${basePoints} base${bonusPoints > 0 ? ` + ${bonusPoints} bonus` : ''})`));
380
380
  console.log(chalk.magenta(`⭐ Total Points: ${currentPoints}`));
@@ -383,7 +383,7 @@ async function runQueryCycle(wallet, agentName, location, options) {
383
383
  if (options.premium && totalRuns % 3 === 0) {
384
384
  console.log(chalk.yellow('\n🔒 Premium Feature Available!'));
385
385
  try {
386
- const premiumData = await purchasePremiumData(walletAddress);
386
+ const premiumData = await purchasePremiumData(wallet);
387
387
  console.log(chalk.green(`Premium forecast data: ${JSON.stringify(premiumData)}`));
388
388
  } catch (error) {
389
389
  console.log(chalk.red(`Premium purchase failed: ${error.message}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decharge-scout",
3
- "version": "2.5.4",
3
+ "version": "2.5.5",
4
4
  "description": "AI-powered energy grid data scout with Solana integration",
5
5
  "main": "index.js",
6
6
  "type": "module",