@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
32 lines • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidEntryPointError = exports.EntryPointNotFoundError = void 0;
const base_js_1 = require("./base.js");
class EntryPointNotFoundError extends base_js_1.BaseError {
constructor(chain, entryPointVersion) {
super([
`No default entry point v${entryPointVersion} exists for ${chain.name}.`,
`Supply an override.`,
].join("\n"));
Object.defineProperty(this, "name", {
enumerable: true,
configurable: true,
writable: true,
value: "EntryPointNotFoundError"
});
}
}
exports.EntryPointNotFoundError = EntryPointNotFoundError;
class InvalidEntryPointError extends base_js_1.BaseError {
constructor(chain, entryPointVersion) {
super(`Invalid entry point: unexpected version ${entryPointVersion} for ${chain.name}.`);
Object.defineProperty(this, "name", {
enumerable: true,
configurable: true,
writable: true,
value: "InvalidEntryPointError"
});
}
}
exports.InvalidEntryPointError = InvalidEntryPointError;
//# sourceMappingURL=entrypoint.js.map