decharge-scout 4.11.1 → 4.12.0

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.
package/.env.example CHANGED
@@ -19,9 +19,10 @@ SOLANA_RPC_URL=https://api.devnet.solana.com
19
19
  # Mock Oracle Escrow Address (Replace with your test wallet for demo)
20
20
  ORACLE_ESCROW_ADDRESS=YourDevWalletPublicKeyHere
21
21
 
22
- # Dashboard API (Optional - for testing dashboard integration)
23
- DASHBOARD_API_URL=http://localhost:3000/api/submit
24
- DASHBOARD_FLEET_API_URL=http://localhost:3000/agentone/api/fleet-submit
22
+ # Dashboard API (leave blank to use production defaults)
23
+ DASHBOARD_API_URL=https://decharge-scout.vercel.app/api/submit
24
+ DASHBOARD_FLEET_API_URL=https://decharge-scout.vercel.app/api/agentone/fleet-submit
25
+ # Local dev: http://localhost:3000/api/submit | http://localhost:3000/api/agentone/fleet-submit
25
26
 
26
27
  # Stake Amount (in SOL)
27
28
  STAKE_AMOUNT=0.01
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decharge-scout",
3
- "version": "4.11.1",
3
+ "version": "4.12.0",
4
4
  "description": "Global Energy Scout - Weather-powered intelligent energy price forecasting with Solana integration",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/fleet.js CHANGED
@@ -386,7 +386,7 @@ export async function runFleetOptimization(options) {
386
386
  // Submit to dashboard API
387
387
  try {
388
388
  const dashboardSpinner = ora('Submitting to AgentOne dashboard...').start();
389
- const apiUrl = process.env.DASHBOARD_FLEET_API_URL || 'https://decharge-scout.vercel.app/agentone/api/fleet-submit';
389
+ const apiUrl = process.env.DASHBOARD_FLEET_API_URL || 'https://decharge-scout.vercel.app/api/agentone/fleet-submit';
390
390
 
391
391
  console.log(chalk.gray(` POST ${apiUrl}`));
392
392
 
@@ -11,46 +11,46 @@
11
11
 
12
12
  /**
13
13
  * Regional Base Pricing Map (USD/kWh)
14
- * Based on real-world average electricity prices
14
+ * Commercial EV charging station prices ($/kWh) — DC fast charging rates
15
15
  */
16
16
  const REGIONAL_BASE_PRICES = {
17
17
  // North America
18
- US: { base: 0.14, currency: 'USD', name: 'United States' },
19
- CA: { base: 0.12, currency: 'CAD', name: 'Canada' },
20
- MX: { base: 0.09, currency: 'MXN', name: 'Mexico' },
18
+ US: { base: 0.35, currency: 'USD', name: 'United States' },
19
+ CA: { base: 0.30, currency: 'CAD', name: 'Canada' },
20
+ MX: { base: 0.22, currency: 'MXN', name: 'Mexico' },
21
21
 
22
22
  // Europe
23
- DE: { base: 0.32, currency: 'EUR', name: 'Germany' },
24
- FR: { base: 0.19, currency: 'EUR', name: 'France' },
25
- GB: { base: 0.28, currency: 'GBP', name: 'United Kingdom' },
26
- ES: { base: 0.24, currency: 'EUR', name: 'Spain' },
27
- IT: { base: 0.26, currency: 'EUR', name: 'Italy' },
28
- PL: { base: 0.16, currency: 'EUR', name: 'Poland' },
29
- NL: { base: 0.27, currency: 'EUR', name: 'Netherlands' },
23
+ DE: { base: 0.65, currency: 'EUR', name: 'Germany' },
24
+ FR: { base: 0.45, currency: 'EUR', name: 'France' },
25
+ GB: { base: 0.60, currency: 'GBP', name: 'United Kingdom' },
26
+ ES: { base: 0.50, currency: 'EUR', name: 'Spain' },
27
+ IT: { base: 0.55, currency: 'EUR', name: 'Italy' },
28
+ PL: { base: 0.38, currency: 'EUR', name: 'Poland' },
29
+ NL: { base: 0.58, currency: 'EUR', name: 'Netherlands' },
30
30
 
31
31
  // Asia
32
- IN: { base: 0.08, currency: 'INR', name: 'India' },
33
- CN: { base: 0.08, currency: 'CNY', name: 'China' },
34
- JP: { base: 0.26, currency: 'JPY', name: 'Japan' },
35
- KR: { base: 0.10, currency: 'KRW', name: 'South Korea' },
36
- SG: { base: 0.19, currency: 'SGD', name: 'Singapore' },
32
+ IN: { base: 0.18, currency: 'INR', name: 'India' },
33
+ CN: { base: 0.20, currency: 'CNY', name: 'China' },
34
+ JP: { base: 0.55, currency: 'JPY', name: 'Japan' },
35
+ KR: { base: 0.28, currency: 'KRW', name: 'South Korea' },
36
+ SG: { base: 0.42, currency: 'SGD', name: 'Singapore' },
37
37
 
38
38
  // South America
39
- BR: { base: 0.11, currency: 'BRL', name: 'Brazil' },
40
- AR: { base: 0.06, currency: 'ARS', name: 'Argentina' },
41
- CL: { base: 0.14, currency: 'CLP', name: 'Chile' },
39
+ BR: { base: 0.25, currency: 'BRL', name: 'Brazil' },
40
+ AR: { base: 0.18, currency: 'ARS', name: 'Argentina' },
41
+ CL: { base: 0.30, currency: 'CLP', name: 'Chile' },
42
42
 
43
43
  // Oceania
44
- AU: { base: 0.21, currency: 'AUD', name: 'Australia' },
45
- NZ: { base: 0.18, currency: 'NZD', name: 'New Zealand' },
44
+ AU: { base: 0.45, currency: 'AUD', name: 'Australia' },
45
+ NZ: { base: 0.40, currency: 'NZD', name: 'New Zealand' },
46
46
 
47
47
  // Africa
48
- ZA: { base: 0.09, currency: 'ZAR', name: 'South Africa' },
49
- NG: { base: 0.05, currency: 'NGN', name: 'Nigeria' },
50
- KE: { base: 0.12, currency: 'KES', name: 'Kenya' },
48
+ ZA: { base: 0.22, currency: 'ZAR', name: 'South Africa' },
49
+ NG: { base: 0.15, currency: 'NGN', name: 'Nigeria' },
50
+ KE: { base: 0.28, currency: 'KES', name: 'Kenya' },
51
51
 
52
52
  // Default
53
- DEFAULT: { base: 0.12, currency: 'USD', name: 'Global Average' }
53
+ DEFAULT: { base: 0.33, currency: 'USD', name: 'Global Average' }
54
54
  };
55
55
 
56
56
  /**