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

18 lines 722 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isBaseSmartAccountClient = exports.isSmartAccountClient = void 0; const smartAccountClient_js_1 = require("./decorators/smartAccountClient.js"); function isSmartAccountClient(client) { for (const key of smartAccountClient_js_1.smartAccountClientMethodKeys) { if (!(key in client)) { return false; } } return client && "middleware" in client; } exports.isSmartAccountClient = isSmartAccountClient; function isBaseSmartAccountClient(client) { return client && "middleware" in client; } exports.isBaseSmartAccountClient = isBaseSmartAccountClient; //# sourceMappingURL=isSmartAccountClient.js.map