@unicitylabs/sphere-sdk 0.6.11 → 0.6.13-dev.1

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.
@@ -1540,8 +1540,8 @@ interface BaseProviders {
1540
1540
  tokenStorage: TokenStorageProvider<TxfStorageDataBase>;
1541
1541
  transport: TransportProvider;
1542
1542
  oracle: OracleProvider;
1543
- /** L1 configuration (for passing to Sphere.init) */
1544
- l1?: L1Config;
1543
+ /** L1 configuration (for passing to Sphere.init). Pass null to disable L1 entirely. */
1544
+ l1?: L1Config | null;
1545
1545
  /** Price provider (optional — enables fiat value display) */
1546
1546
  price?: PriceProvider;
1547
1547
  }
@@ -1540,8 +1540,8 @@ interface BaseProviders {
1540
1540
  tokenStorage: TokenStorageProvider<TxfStorageDataBase>;
1541
1541
  transport: TransportProvider;
1542
1542
  oracle: OracleProvider;
1543
- /** L1 configuration (for passing to Sphere.init) */
1544
- l1?: L1Config;
1543
+ /** L1 configuration (for passing to Sphere.init). Pass null to disable L1 entirely. */
1544
+ l1?: L1Config | null;
1545
1545
  /** Price provider (optional — enables fiat value display) */
1546
1546
  price?: PriceProvider;
1547
1547
  }
@@ -1204,6 +1204,9 @@ var NostrTransportProvider = class _NostrTransportProvider {
1204
1204
  onReconnected: (url) => {
1205
1205
  logger.debug("Nostr", "NostrClient reconnected to relay:", url);
1206
1206
  this.emitEvent({ type: "transport:connected", timestamp: Date.now() });
1207
+ this.subscribeToEvents().catch((err) => {
1208
+ logger.error("Nostr", "Failed to re-subscribe after reconnect:", err);
1209
+ });
1207
1210
  }
1208
1211
  });
1209
1212
  await Promise.race([