@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.cjs +1 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +6 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -509,9 +509,9 @@ interface DestinationValidation {
|
|
|
509
509
|
issue: DestinationIssue | null;
|
|
510
510
|
}
|
|
511
511
|
/**
|
|
512
|
-
*
|
|
513
|
-
*
|
|
514
|
-
*
|
|
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
|
-
*
|
|
513
|
-
*
|
|
514
|
-
*
|
|
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 {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
526
|
+
import {
|
|
527
|
+
isBurnAddress,
|
|
528
|
+
isEvmAddress,
|
|
529
|
+
isZeroAddress
|
|
530
|
+
} from "@naculus/connect-core";
|
|
531
531
|
function isBurnDestination(address) {
|
|
532
|
-
|
|
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" };
|