@blockrun/clawrouter 0.12.148 → 0.12.149

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/dist/index.js CHANGED
@@ -82235,27 +82235,29 @@ var plugin = {
82235
82235
  }
82236
82236
  });
82237
82237
  if (!isGatewayMode()) {
82238
- resolveOrGenerateWalletKey().then(({ address: address2, source }) => {
82239
- if (source === "generated") {
82240
- api.logger.warn(`\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550`);
82241
- api.logger.warn(` NEW WALLET GENERATED \u2014 BACK UP YOUR KEY NOW!`);
82242
- api.logger.warn(` Address : ${address2}`);
82243
- api.logger.warn(` Run /wallet export to get your private key`);
82244
- api.logger.warn(` Losing this key = losing your USDC funds`);
82245
- api.logger.warn(`\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550`);
82246
- } else if (source === "saved") {
82247
- api.logger.info(`Using saved wallet: ${address2}`);
82248
- } else if (source === "config") {
82249
- api.logger.info(`Using wallet from plugin config: ${address2}`);
82250
- } else {
82251
- api.logger.info(`Using wallet from BLOCKRUN_WALLET_KEY: ${address2}`);
82252
- }
82253
- }).catch((err) => {
82254
- api.logger.warn(
82255
- `Failed to initialize wallet: ${err instanceof Error ? err.message : String(err)}`
82256
- );
82257
- });
82258
- api.logger.info("Not in gateway mode \u2014 proxy will start when gateway runs");
82238
+ if (shouldLogRegistration) {
82239
+ resolveOrGenerateWalletKey().then(({ address: address2, source }) => {
82240
+ if (source === "generated") {
82241
+ api.logger.warn(`\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550`);
82242
+ api.logger.warn(` NEW WALLET GENERATED \u2014 BACK UP YOUR KEY NOW!`);
82243
+ api.logger.warn(` Address : ${address2}`);
82244
+ api.logger.warn(` Run /wallet export to get your private key`);
82245
+ api.logger.warn(` Losing this key = losing your USDC funds`);
82246
+ api.logger.warn(`\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550`);
82247
+ } else if (source === "saved") {
82248
+ api.logger.info(`Using saved wallet: ${address2}`);
82249
+ } else if (source === "config") {
82250
+ api.logger.info(`Using wallet from plugin config: ${address2}`);
82251
+ } else {
82252
+ api.logger.info(`Using wallet from BLOCKRUN_WALLET_KEY: ${address2}`);
82253
+ }
82254
+ }).catch((err) => {
82255
+ api.logger.warn(
82256
+ `Failed to initialize wallet: ${err instanceof Error ? err.message : String(err)}`
82257
+ );
82258
+ });
82259
+ api.logger.info("Not in gateway mode \u2014 proxy will start when gateway runs");
82260
+ }
82259
82261
  return;
82260
82262
  }
82261
82263
  const pluginConfigEmpty = !api.pluginConfig || typeof api.pluginConfig !== "object" || Object.keys(api.pluginConfig).length === 0;
@@ -82268,15 +82270,17 @@ var plugin = {
82268
82270
  "Populated pluginConfig arrived after provisional default startup \u2014 switching proxy to current config"
82269
82271
  );
82270
82272
  supersedeEmptyConfigStartup(api);
82271
- } else {
82273
+ } else if (shouldLogRegistration) {
82272
82274
  api.logger.info("Proxy already started by earlier register() call \u2014 skipping");
82273
82275
  }
82274
82276
  return;
82275
82277
  }
82276
82278
  if (pluginConfigEmpty) {
82277
- api.logger.info(
82278
- "pluginConfig empty \u2014 deferring proxy startup 250ms in case a populated config arrives"
82279
- );
82279
+ if (shouldLogRegistration) {
82280
+ api.logger.info(
82281
+ "pluginConfig empty \u2014 deferring proxy startup 250ms in case a populated config arrives"
82282
+ );
82283
+ }
82280
82284
  proc.__clawrouterDeferredStartTimer = setTimeout(() => {
82281
82285
  proc.__clawrouterDeferredStartTimer = void 0;
82282
82286
  if (proc.__clawrouterProxyStarted) return;