@naculus/connect-appkit-core 0.2.6 → 0.2.7

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.d.cts CHANGED
@@ -509,9 +509,9 @@ interface DestinationValidation {
509
509
  issue: DestinationIssue | null;
510
510
  }
511
511
  /**
512
- * Burn heuristic kept from the React hook: known sinks plus any well-formed
513
- * address containing "dead". Stricter than connect-core's prefix-only
514
- * `isBurnAddress`; unifying the two is a connect-lib change.
512
+ * connect-core's `isBurnAddress` is the single definition (sinks, vanity
513
+ * prefixes, "dead" anywhere) since connect-lib 0.2.6; this name stays for
514
+ * callers that imported it.
515
515
  */
516
516
  declare function isBurnDestination(address: string): boolean;
517
517
  declare function validateDestination(address: string): DestinationValidation;
package/dist/index.d.ts CHANGED
@@ -509,9 +509,9 @@ interface DestinationValidation {
509
509
  issue: DestinationIssue | null;
510
510
  }
511
511
  /**
512
- * Burn heuristic kept from the React hook: known sinks plus any well-formed
513
- * address containing "dead". Stricter than connect-core's prefix-only
514
- * `isBurnAddress`; unifying the two is a connect-lib change.
512
+ * connect-core's `isBurnAddress` is the single definition (sinks, vanity
513
+ * prefixes, "dead" anywhere) since connect-lib 0.2.6; this name stays for
514
+ * callers that imported it.
515
515
  */
516
516
  declare function isBurnDestination(address: string): boolean;
517
517
  declare function validateDestination(address: string): DestinationValidation;
package/dist/index.js CHANGED
@@ -523,14 +523,13 @@ async function clearOneInAppNotification(channel, id) {
523
523
  }
524
524
 
525
525
  // src/destination.ts
526
- import { isEvmAddress, isZeroAddress } from "@naculus/connect-core";
527
- var DEAD_ADDRESSES = /* @__PURE__ */ new Set([
528
- "0x0000000000000000000000000000000000000001",
529
- "0x000000000000000000000000000000000000dead"
530
- ]);
526
+ import {
527
+ isBurnAddress,
528
+ isEvmAddress,
529
+ isZeroAddress
530
+ } from "@naculus/connect-core";
531
531
  function isBurnDestination(address) {
532
- const lower = address.toLowerCase();
533
- return DEAD_ADDRESSES.has(lower) || lower.includes("dead");
532
+ return isBurnAddress(address);
534
533
  }
535
534
  function validateDestination(address) {
536
535
  if (!address) return { isValid: false, level: "blocked", issue: "empty" };