@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
34 lines • 1.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WaitForUserOperationError = exports.InvalidUserOperationError = void 0;
const base_js_1 = require("./base.js");
class InvalidUserOperationError extends base_js_1.BaseError {
constructor(uo) {
super(`Request is missing parameters. All properties on UserOperationStruct must be set. uo: ${JSON.stringify(uo, (_key, value) => typeof value === "bigint"
? {
type: "bigint",
value: value.toString(),
}
: value, 2)}`);
Object.defineProperty(this, "name", {
enumerable: true,
configurable: true,
writable: true,
value: "InvalidUserOperationError"
});
}
}
exports.InvalidUserOperationError = InvalidUserOperationError;
class WaitForUserOperationError extends base_js_1.BaseError {
constructor(request, error) {
super(`Failed to find User Operation: ${error.message}`);
Object.defineProperty(this, "request", {
enumerable: true,
configurable: true,
writable: true,
value: request
});
}
}
exports.WaitForUserOperationError = WaitForUserOperationError;
//# sourceMappingURL=useroperation.js.map