fluxy-bot 0.10.3 → 0.10.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.
package/bin/cli.js CHANGED
@@ -845,9 +845,17 @@ async function init() {
845
845
  return mode;
846
846
  })();
847
847
 
848
- // Update config with chosen mode
848
+ // Update config with chosen mode + generate wallet if needed
849
849
  const config = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8'));
850
850
 
851
+ // Generate USDC wallet (skip if one already exists)
852
+ if (!config.wallet?.privateKey) {
853
+ const { generatePrivateKey, privateKeyToAccount } = await import('viem/accounts');
854
+ const privateKey = generatePrivateKey();
855
+ const account = privateKeyToAccount(privateKey);
856
+ config.wallet = { privateKey, address: account.address };
857
+ }
858
+
851
859
  // Handle named tunnel setup before starting
852
860
  if (tunnelMode === 'named') {
853
861
  const setup = await runNamedTunnelSetup();