@naculus/connect-appkit-core 0.2.6 → 0.2.8
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 +7 -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 +12 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
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" };
|
|
@@ -865,6 +864,12 @@ function createDelegationPolicyFlow(deps) {
|
|
|
865
864
|
"This flow creates signed off-chain policies only. EIP-7702 and AA-module policies require a configured on-chain execution adapter."
|
|
866
865
|
);
|
|
867
866
|
}
|
|
867
|
+
if (scope.allowedRecipients && scope.allowedRecipients.length > 0) {
|
|
868
|
+
throw new WalletError7(
|
|
869
|
+
"method_not_allowed",
|
|
870
|
+
"Recipient-limited policies are not supported by this flow: its executions sign raw digests, which connect-core refuses while allowedRecipients is set."
|
|
871
|
+
);
|
|
872
|
+
}
|
|
868
873
|
if (!deps.encryptionKeyConfigured) {
|
|
869
874
|
throw new WalletError7(
|
|
870
875
|
"method_not_allowed",
|