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

44 lines 1.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ChainNotFoundError = exports.InvalidRpcUrlError = exports.IncompatibleClientError = void 0; const base_js_1 = require("./base.js"); class IncompatibleClientError extends base_js_1.BaseError { constructor(expectedClient, method, client) { super([ `Client of type (${client.type}) is not a ${expectedClient}.`, `Create one with \`createSmartAccountClient\` first before using \`${method}\``, ].join("\n")); Object.defineProperty(this, "name", { enumerable: true, configurable: true, writable: true, value: "IncompatibleClientError" }); } } exports.IncompatibleClientError = IncompatibleClientError; class InvalidRpcUrlError extends base_js_1.BaseError { constructor(rpcUrl) { super(`Invalid RPC URL ${rpcUrl}`); Object.defineProperty(this, "name", { enumerable: true, configurable: true, writable: true, value: "InvalidRpcUrlError" }); } } exports.InvalidRpcUrlError = InvalidRpcUrlError; class ChainNotFoundError extends base_js_1.BaseError { constructor() { super("No chain supplied to the client"); Object.defineProperty(this, "name", { enumerable: true, configurable: true, writable: true, value: "ChainNotFoundError" }); } } exports.ChainNotFoundError = ChainNotFoundError; //# sourceMappingURL=client.js.map