UNPKG

@alchemy/aa-core

Version:

viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts

16 lines 547 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SignerSchema = exports.isSigner = void 0; const zod_1 = require("zod"); const isSigner = (signer) => { return (signer != null && typeof signer === "object" && "signerType" in signer && "signMessage" in signer && "signTypedData" in signer && "getAddress" in signer && "inner" in signer); }; exports.isSigner = isSigner; exports.SignerSchema = zod_1.z.custom(exports.isSigner); //# sourceMappingURL=schema.js.map