Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alchemy/aa-core

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alchemy/aa-core - npm Package Compare versions

Comparing version 3.12.2 to 3.12.3

11

./dist/cjs/index.js

@@ -26,5 +26,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.convertChainIdToCoinType = exports.createSmartAccountClientFromExisting = exports.createSmartAccountClient = exports.SmartAccountClientOptsSchema = exports.ConnectionConfigSchema = exports.isSmartAccountClient = exports.smartAccountClientActions = exports.bundlerActions = exports.createBundlerClientFromExisting = exports.createBundlerClient = exports.zoraSepolia = exports.zora = exports.fraxtalSepolia = exports.fraxtal = exports.sepolia = exports.polygonMumbai = exports.polygonAmoy = exports.polygon = exports.optimismSepolia = exports.optimismGoerli = exports.optimism = exports.mainnet = exports.goerli = exports.baseSepolia = exports.baseGoerli = exports.base = exports.arbitrumSepolia = exports.arbitrumGoerli = exports.arbitrum = exports.waitForUserOperationTransaction = exports.sendUserOperation = exports.sendTransactions = exports.sendTransaction = exports.dropAndReplaceUserOperation = exports.checkGasSponsorshipEligibility = exports.buildUserOperationFromTxs = exports.buildUserOperationFromTx = exports.buildUserOperation = exports.toSmartContractAccount = exports.parseFactoryAddressFromAccountInitCode = exports.isSmartAccountWithSigner = exports.getAccountAddress = exports.createSimpleSmartAccount = exports.BaseSmartContractAccount = exports.SimpleAccountFactoryAbi = exports.SimpleAccountAbi_v7 = exports.SimpleAccountAbi_v6 = exports.EntryPointAbi_v7 = exports.EntryPointAbi_v6 = exports.chains = void 0;
exports.applyUserOpFeeOption = exports.allEqual = exports.MultiplierSchema = exports.HexSchema = exports.ChainSchema = exports.BigNumberishSchema = exports.BigNumberishRangeSchema = exports.AlchemyChainMap = exports.split = exports.WalletClientSigner = exports.wrapSignatureWith6492 = exports.verifyEIP6492Signature = exports.isSigner = exports.SignerSchema = exports.LocalAccountSigner = exports.noopMiddleware = exports.defaultUserOpSigner = exports.defaultPaymasterAndData = exports.defaultGasEstimator = exports.defaultFeeEstimator = exports.middlewareActions = exports.Logger = exports.LogLevel = exports.InvalidUserOperationError = exports.TransactionMissingToParamError = exports.FailedToFindTransactionError = exports.InvalidSignerTypeError = exports.InvalidEntryPointError = exports.EntryPointNotFoundError = exports.InvalidRpcUrlError = exports.IncompatibleClientError = exports.ChainNotFoundError = exports.BaseError = exports.UpgradesNotSupportedError = exports.UpgradeToAndCallNotSupportedError = exports.SmartAccountWithSignerRequiredError = exports.SignTransactionNotSupportedError = exports.IncorrectAccountType = exports.GetCounterFactualAddressError = exports.FailedToGetStorageSlotError = exports.DefaultFactoryNotDefinedError = exports.BatchExecutionNotSupportedError = exports.AccountRequiresOwnerError = exports.AccountNotFoundError = exports.isEntryPointVersion = exports.getEntryPoint = exports.entryPointRegistry = exports.defaultEntryPointVersion = exports.convertCoinTypeToChainId = exports.convertCoinTypeToChain = void 0;
exports.toRecord = exports.takeBytes = exports.resolveProperties = exports.pick = exports.parsePaymasterAndData = exports.isValidRequest = exports.isMultiplier = exports.isBigNumberish = exports.getDefaultUserOperationFeeOptions = exports.getDefaultSimpleAccountFactoryAddress = exports.getChain = exports.filterUndefined = exports.defineReadOnly = exports.deepHexlify = exports.concatPaymasterAndData = exports.bypassPaymasterAndData = exports.bigIntMultiply = exports.bigIntMax = exports.asyncPipe = exports.applyUserOpOverrideOrFeeOption = exports.applyUserOpOverride = void 0;
exports.convertChainIdToCoinType = exports.createSmartAccountClientFromExisting = exports.createSmartAccountClient = exports.SmartAccountClientOptsSchema = exports.ConnectionConfigSchema = exports.isSmartAccountClient = exports.smartAccountClientActions = exports.bundlerActions = exports.createBundlerClientFromExisting = exports.createBundlerClient = exports.zoraSepolia = exports.zora = exports.sepolia = exports.polygonMumbai = exports.polygonAmoy = exports.polygon = exports.optimismSepolia = exports.optimismGoerli = exports.optimism = exports.mainnet = exports.goerli = exports.fraxtalSepolia = exports.fraxtal = exports.baseSepolia = exports.baseGoerli = exports.base = exports.arbitrumSepolia = exports.arbitrumGoerli = exports.arbitrum = exports.waitForUserOperationTransaction = exports.sendUserOperation = exports.sendTransactions = exports.sendTransaction = exports.dropAndReplaceUserOperation = exports.checkGasSponsorshipEligibility = exports.buildUserOperationFromTxs = exports.buildUserOperationFromTx = exports.buildUserOperation = exports.toSmartContractAccount = exports.parseFactoryAddressFromAccountInitCode = exports.isSmartAccountWithSigner = exports.getAccountAddress = exports.createSimpleSmartAccount = exports.BaseSmartContractAccount = exports.SimpleAccountFactoryAbi = exports.SimpleAccountAbi_v7 = exports.SimpleAccountAbi_v6 = exports.EntryPointAbi_v7 = exports.EntryPointAbi_v6 = exports.chains = void 0;
exports.allEqual = exports.MultiplierSchema = exports.HexSchema = exports.ChainSchema = exports.BigNumberishSchema = exports.BigNumberishRangeSchema = exports.AlchemyChainMap = exports.split = exports.WalletClientSigner = exports.wrapSignatureWith6492 = exports.verifyEIP6492Signature = exports.isSigner = exports.SignerSchema = exports.LocalAccountSigner = exports.noopMiddleware = exports.defaultUserOpSigner = exports.defaultPaymasterAndData = exports.defaultGasEstimator = exports.defaultFeeEstimator = exports.middlewareActions = exports.Logger = exports.LogLevel = exports.WaitForUserOperationError = exports.InvalidUserOperationError = exports.TransactionMissingToParamError = exports.FailedToFindTransactionError = exports.InvalidSignerTypeError = exports.InvalidEntryPointError = exports.EntryPointNotFoundError = exports.InvalidRpcUrlError = exports.IncompatibleClientError = exports.ChainNotFoundError = exports.BaseError = exports.UpgradesNotSupportedError = exports.UpgradeToAndCallNotSupportedError = exports.SmartAccountWithSignerRequiredError = exports.SignTransactionNotSupportedError = exports.IncorrectAccountType = exports.GetCounterFactualAddressError = exports.FailedToGetStorageSlotError = exports.DefaultFactoryNotDefinedError = exports.BatchExecutionNotSupportedError = exports.AccountRequiresOwnerError = exports.AccountNotFoundError = exports.isEntryPointVersion = exports.getEntryPoint = exports.entryPointRegistry = exports.defaultEntryPointVersion = exports.convertCoinTypeToChainId = exports.convertCoinTypeToChain = void 0;
exports.toRecord = exports.takeBytes = exports.resolveProperties = exports.pick = exports.parsePaymasterAndData = exports.isValidRequest = exports.isMultiplier = exports.isBigNumberish = exports.getDefaultUserOperationFeeOptions = exports.getDefaultSimpleAccountFactoryAddress = exports.getChain = exports.filterUndefined = exports.defineReadOnly = exports.deepHexlify = exports.concatPaymasterAndData = exports.bypassPaymasterAndData = exports.bigIntMultiply = exports.bigIntMax = exports.asyncPipe = exports.applyUserOpOverrideOrFeeOption = exports.applyUserOpOverride = exports.applyUserOpFeeOption = void 0;
exports.chains = __importStar(require("viem/chains"));

@@ -75,2 +75,4 @@ var EntryPointAbi_v6_js_1 = require("./abis/EntryPointAbi_v6.js");

Object.defineProperty(exports, "baseSepolia", { enumerable: true, get: function () { return index_js_1.baseSepolia; } });
Object.defineProperty(exports, "fraxtal", { enumerable: true, get: function () { return index_js_1.fraxtal; } });
Object.defineProperty(exports, "fraxtalSepolia", { enumerable: true, get: function () { return index_js_1.fraxtalSepolia; } });
Object.defineProperty(exports, "goerli", { enumerable: true, get: function () { return index_js_1.goerli; } });

@@ -85,4 +87,2 @@ Object.defineProperty(exports, "mainnet", { enumerable: true, get: function () { return index_js_1.mainnet; } });

Object.defineProperty(exports, "sepolia", { enumerable: true, get: function () { return index_js_1.sepolia; } });
Object.defineProperty(exports, "fraxtal", { enumerable: true, get: function () { return index_js_1.fraxtal; } });
Object.defineProperty(exports, "fraxtalSepolia", { enumerable: true, get: function () { return index_js_1.fraxtalSepolia; } });
Object.defineProperty(exports, "zora", { enumerable: true, get: function () { return index_js_1.zora; } });

@@ -142,2 +142,3 @@ Object.defineProperty(exports, "zoraSepolia", { enumerable: true, get: function () { return index_js_1.zoraSepolia; } });

Object.defineProperty(exports, "InvalidUserOperationError", { enumerable: true, get: function () { return useroperation_js_1.InvalidUserOperationError; } });
Object.defineProperty(exports, "WaitForUserOperationError", { enumerable: true, get: function () { return useroperation_js_1.WaitForUserOperationError; } });
var logger_js_1 = require("./logger.js");

@@ -144,0 +145,0 @@ Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return logger_js_1.LogLevel; } });

@@ -8,2 +8,3 @@ "use strict";

const transaction_js_1 = require("../../errors/transaction.js");
const useroperation_js_1 = require("../../errors/useroperation.js");
const buildUserOperationFromTx_js_1 = require("./buildUserOperationFromTx.js");

@@ -24,3 +25,3 @@ const sendUserOperation_js_1 = require("./internal/sendUserOperation.js");

const uoStruct = await (0, buildUserOperationFromTx_js_1.buildUserOperationFromTx)(client, args, overrides, context);
const { hash } = await (0, sendUserOperation_js_1._sendUserOperation)(client, {
const { hash, request } = await (0, sendUserOperation_js_1._sendUserOperation)(client, {
account: account,

@@ -31,5 +32,7 @@ uoStruct,

});
return (0, waitForUserOperationTransacation_js_1.waitForUserOperationTransaction)(client, { hash });
return (0, waitForUserOperationTransacation_js_1.waitForUserOperationTransaction)(client, { hash }).catch((e) => {
throw new useroperation_js_1.WaitForUserOperationError(request, e);
});
}
exports.sendTransaction = sendTransaction;
//# sourceMappingURL=sendTransaction.js.map

@@ -7,2 +7,3 @@ "use strict";

const client_js_1 = require("../../errors/client.js");
const useroperation_js_1 = require("../../errors/useroperation.js");
const buildUserOperationFromTxs_js_1 = require("./buildUserOperationFromTxs.js");

@@ -25,3 +26,3 @@ const sendUserOperation_js_1 = require("./internal/sendUserOperation.js");

});
const { hash } = await (0, sendUserOperation_js_1._sendUserOperation)(client, {
const { hash, request } = await (0, sendUserOperation_js_1._sendUserOperation)(client, {
account,

@@ -32,5 +33,7 @@ uoStruct,

});
return (0, waitForUserOperationTransacation_js_1.waitForUserOperationTransaction)(client, { hash });
return (0, waitForUserOperationTransacation_js_1.waitForUserOperationTransaction)(client, { hash }).catch((e) => {
throw new useroperation_js_1.WaitForUserOperationError(request, e);
});
}
exports.sendTransactions = sendTransactions;
//# sourceMappingURL=sendTransactions.js.map

@@ -1,2 +0,2 @@

import type { UserOperationStruct } from "../types.js";
import type { UserOperationRequest, UserOperationStruct } from "../types.js";
import { BaseError } from "./base.js";

@@ -7,1 +7,5 @@ export declare class InvalidUserOperationError extends BaseError {

}
export declare class WaitForUserOperationError extends BaseError {
request: UserOperationRequest;
constructor(request: UserOperationRequest, error: Error);
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InvalidUserOperationError = void 0;
exports.WaitForUserOperationError = exports.InvalidUserOperationError = void 0;
const base_js_1 = require("./base.js");

@@ -22,2 +22,14 @@ class InvalidUserOperationError extends base_js_1.BaseError {

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

@@ -25,3 +25,3 @@ export type { Abi } from "abitype";

export { waitForUserOperationTransaction } from "./actions/smartAccount/waitForUserOperationTransacation.js";
export { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonAmoy, polygonMumbai, sepolia, fraxtal, fraxtalSepolia, zora, zoraSepolia, } from "./chains/index.js";
export { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, fraxtal, fraxtalSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonAmoy, polygonMumbai, sepolia, zora, zoraSepolia, } from "./chains/index.js";
export type * from "./client/bundlerClient.js";

@@ -47,3 +47,3 @@ export { createBundlerClient, createBundlerClientFromExisting, } from "./client/bundlerClient.js";

export { FailedToFindTransactionError, TransactionMissingToParamError, } from "./errors/transaction.js";
export { InvalidUserOperationError } from "./errors/useroperation.js";
export { InvalidUserOperationError, WaitForUserOperationError, } from "./errors/useroperation.js";
export { LogLevel, Logger } from "./logger.js";

@@ -50,0 +50,0 @@ export { middlewareActions } from "./middleware/actions.js";

@@ -26,5 +26,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.convertChainIdToCoinType = exports.createSmartAccountClientFromExisting = exports.createSmartAccountClient = exports.SmartAccountClientOptsSchema = exports.ConnectionConfigSchema = exports.isSmartAccountClient = exports.smartAccountClientActions = exports.bundlerActions = exports.createBundlerClientFromExisting = exports.createBundlerClient = exports.zoraSepolia = exports.zora = exports.fraxtalSepolia = exports.fraxtal = exports.sepolia = exports.polygonMumbai = exports.polygonAmoy = exports.polygon = exports.optimismSepolia = exports.optimismGoerli = exports.optimism = exports.mainnet = exports.goerli = exports.baseSepolia = exports.baseGoerli = exports.base = exports.arbitrumSepolia = exports.arbitrumGoerli = exports.arbitrum = exports.waitForUserOperationTransaction = exports.sendUserOperation = exports.sendTransactions = exports.sendTransaction = exports.dropAndReplaceUserOperation = exports.checkGasSponsorshipEligibility = exports.buildUserOperationFromTxs = exports.buildUserOperationFromTx = exports.buildUserOperation = exports.toSmartContractAccount = exports.parseFactoryAddressFromAccountInitCode = exports.isSmartAccountWithSigner = exports.getAccountAddress = exports.createSimpleSmartAccount = exports.BaseSmartContractAccount = exports.SimpleAccountFactoryAbi = exports.SimpleAccountAbi_v7 = exports.SimpleAccountAbi_v6 = exports.EntryPointAbi_v7 = exports.EntryPointAbi_v6 = exports.chains = void 0;
exports.applyUserOpFeeOption = exports.allEqual = exports.MultiplierSchema = exports.HexSchema = exports.ChainSchema = exports.BigNumberishSchema = exports.BigNumberishRangeSchema = exports.AlchemyChainMap = exports.split = exports.WalletClientSigner = exports.wrapSignatureWith6492 = exports.verifyEIP6492Signature = exports.isSigner = exports.SignerSchema = exports.LocalAccountSigner = exports.noopMiddleware = exports.defaultUserOpSigner = exports.defaultPaymasterAndData = exports.defaultGasEstimator = exports.defaultFeeEstimator = exports.middlewareActions = exports.Logger = exports.LogLevel = exports.InvalidUserOperationError = exports.TransactionMissingToParamError = exports.FailedToFindTransactionError = exports.InvalidSignerTypeError = exports.InvalidEntryPointError = exports.EntryPointNotFoundError = exports.InvalidRpcUrlError = exports.IncompatibleClientError = exports.ChainNotFoundError = exports.BaseError = exports.UpgradesNotSupportedError = exports.UpgradeToAndCallNotSupportedError = exports.SmartAccountWithSignerRequiredError = exports.SignTransactionNotSupportedError = exports.IncorrectAccountType = exports.GetCounterFactualAddressError = exports.FailedToGetStorageSlotError = exports.DefaultFactoryNotDefinedError = exports.BatchExecutionNotSupportedError = exports.AccountRequiresOwnerError = exports.AccountNotFoundError = exports.isEntryPointVersion = exports.getEntryPoint = exports.entryPointRegistry = exports.defaultEntryPointVersion = exports.convertCoinTypeToChainId = exports.convertCoinTypeToChain = void 0;
exports.toRecord = exports.takeBytes = exports.resolveProperties = exports.pick = exports.parsePaymasterAndData = exports.isValidRequest = exports.isMultiplier = exports.isBigNumberish = exports.getDefaultUserOperationFeeOptions = exports.getDefaultSimpleAccountFactoryAddress = exports.getChain = exports.filterUndefined = exports.defineReadOnly = exports.deepHexlify = exports.concatPaymasterAndData = exports.bypassPaymasterAndData = exports.bigIntMultiply = exports.bigIntMax = exports.asyncPipe = exports.applyUserOpOverrideOrFeeOption = exports.applyUserOpOverride = void 0;
exports.convertChainIdToCoinType = exports.createSmartAccountClientFromExisting = exports.createSmartAccountClient = exports.SmartAccountClientOptsSchema = exports.ConnectionConfigSchema = exports.isSmartAccountClient = exports.smartAccountClientActions = exports.bundlerActions = exports.createBundlerClientFromExisting = exports.createBundlerClient = exports.zoraSepolia = exports.zora = exports.sepolia = exports.polygonMumbai = exports.polygonAmoy = exports.polygon = exports.optimismSepolia = exports.optimismGoerli = exports.optimism = exports.mainnet = exports.goerli = exports.fraxtalSepolia = exports.fraxtal = exports.baseSepolia = exports.baseGoerli = exports.base = exports.arbitrumSepolia = exports.arbitrumGoerli = exports.arbitrum = exports.waitForUserOperationTransaction = exports.sendUserOperation = exports.sendTransactions = exports.sendTransaction = exports.dropAndReplaceUserOperation = exports.checkGasSponsorshipEligibility = exports.buildUserOperationFromTxs = exports.buildUserOperationFromTx = exports.buildUserOperation = exports.toSmartContractAccount = exports.parseFactoryAddressFromAccountInitCode = exports.isSmartAccountWithSigner = exports.getAccountAddress = exports.createSimpleSmartAccount = exports.BaseSmartContractAccount = exports.SimpleAccountFactoryAbi = exports.SimpleAccountAbi_v7 = exports.SimpleAccountAbi_v6 = exports.EntryPointAbi_v7 = exports.EntryPointAbi_v6 = exports.chains = void 0;
exports.allEqual = exports.MultiplierSchema = exports.HexSchema = exports.ChainSchema = exports.BigNumberishSchema = exports.BigNumberishRangeSchema = exports.AlchemyChainMap = exports.split = exports.WalletClientSigner = exports.wrapSignatureWith6492 = exports.verifyEIP6492Signature = exports.isSigner = exports.SignerSchema = exports.LocalAccountSigner = exports.noopMiddleware = exports.defaultUserOpSigner = exports.defaultPaymasterAndData = exports.defaultGasEstimator = exports.defaultFeeEstimator = exports.middlewareActions = exports.Logger = exports.LogLevel = exports.WaitForUserOperationError = exports.InvalidUserOperationError = exports.TransactionMissingToParamError = exports.FailedToFindTransactionError = exports.InvalidSignerTypeError = exports.InvalidEntryPointError = exports.EntryPointNotFoundError = exports.InvalidRpcUrlError = exports.IncompatibleClientError = exports.ChainNotFoundError = exports.BaseError = exports.UpgradesNotSupportedError = exports.UpgradeToAndCallNotSupportedError = exports.SmartAccountWithSignerRequiredError = exports.SignTransactionNotSupportedError = exports.IncorrectAccountType = exports.GetCounterFactualAddressError = exports.FailedToGetStorageSlotError = exports.DefaultFactoryNotDefinedError = exports.BatchExecutionNotSupportedError = exports.AccountRequiresOwnerError = exports.AccountNotFoundError = exports.isEntryPointVersion = exports.getEntryPoint = exports.entryPointRegistry = exports.defaultEntryPointVersion = exports.convertCoinTypeToChainId = exports.convertCoinTypeToChain = void 0;
exports.toRecord = exports.takeBytes = exports.resolveProperties = exports.pick = exports.parsePaymasterAndData = exports.isValidRequest = exports.isMultiplier = exports.isBigNumberish = exports.getDefaultUserOperationFeeOptions = exports.getDefaultSimpleAccountFactoryAddress = exports.getChain = exports.filterUndefined = exports.defineReadOnly = exports.deepHexlify = exports.concatPaymasterAndData = exports.bypassPaymasterAndData = exports.bigIntMultiply = exports.bigIntMax = exports.asyncPipe = exports.applyUserOpOverrideOrFeeOption = exports.applyUserOpOverride = exports.applyUserOpFeeOption = void 0;
exports.chains = __importStar(require("viem/chains"));

@@ -75,2 +75,4 @@ var EntryPointAbi_v6_js_1 = require("./abis/EntryPointAbi_v6.js");

Object.defineProperty(exports, "baseSepolia", { enumerable: true, get: function () { return index_js_1.baseSepolia; } });
Object.defineProperty(exports, "fraxtal", { enumerable: true, get: function () { return index_js_1.fraxtal; } });
Object.defineProperty(exports, "fraxtalSepolia", { enumerable: true, get: function () { return index_js_1.fraxtalSepolia; } });
Object.defineProperty(exports, "goerli", { enumerable: true, get: function () { return index_js_1.goerli; } });

@@ -85,4 +87,2 @@ Object.defineProperty(exports, "mainnet", { enumerable: true, get: function () { return index_js_1.mainnet; } });

Object.defineProperty(exports, "sepolia", { enumerable: true, get: function () { return index_js_1.sepolia; } });
Object.defineProperty(exports, "fraxtal", { enumerable: true, get: function () { return index_js_1.fraxtal; } });
Object.defineProperty(exports, "fraxtalSepolia", { enumerable: true, get: function () { return index_js_1.fraxtalSepolia; } });
Object.defineProperty(exports, "zora", { enumerable: true, get: function () { return index_js_1.zora; } });

@@ -142,2 +142,3 @@ Object.defineProperty(exports, "zoraSepolia", { enumerable: true, get: function () { return index_js_1.zoraSepolia; } });

Object.defineProperty(exports, "InvalidUserOperationError", { enumerable: true, get: function () { return useroperation_js_1.InvalidUserOperationError; } });
Object.defineProperty(exports, "WaitForUserOperationError", { enumerable: true, get: function () { return useroperation_js_1.WaitForUserOperationError; } });
var logger_js_1 = require("./logger.js");

@@ -144,0 +145,0 @@ Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return logger_js_1.LogLevel; } });

@@ -1,1 +0,1 @@

export declare const VERSION = "3.12.2";
export declare const VERSION = "3.12.3";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.VERSION = void 0;
exports.VERSION = "3.12.2";
exports.VERSION = "3.12.3";
//# sourceMappingURL=version.js.map

@@ -5,2 +5,3 @@ import { isBaseSmartAccountClient } from "../../client/isSmartAccountClient.js";

import { TransactionMissingToParamError } from "../../errors/transaction.js";
import { WaitForUserOperationError } from "../../errors/useroperation.js";
import { buildUserOperationFromTx } from "./buildUserOperationFromTx.js";

@@ -21,3 +22,3 @@ import { _sendUserOperation } from "./internal/sendUserOperation.js";

const uoStruct = await buildUserOperationFromTx(client, args, overrides, context);
const { hash } = await _sendUserOperation(client, {
const { hash, request } = await _sendUserOperation(client, {
account: account,

@@ -28,4 +29,6 @@ uoStruct,

});
return waitForUserOperationTransaction(client, { hash });
return waitForUserOperationTransaction(client, { hash }).catch((e) => {
throw new WaitForUserOperationError(request, e);
});
}
//# sourceMappingURL=sendTransaction.js.map
import { isBaseSmartAccountClient } from "../../client/isSmartAccountClient.js";
import { AccountNotFoundError } from "../../errors/account.js";
import { IncompatibleClientError } from "../../errors/client.js";
import { WaitForUserOperationError } from "../../errors/useroperation.js";
import { buildUserOperationFromTxs } from "./buildUserOperationFromTxs.js";

@@ -21,3 +22,3 @@ import { _sendUserOperation } from "./internal/sendUserOperation.js";

});
const { hash } = await _sendUserOperation(client, {
const { hash, request } = await _sendUserOperation(client, {
account,

@@ -28,4 +29,6 @@ uoStruct,

});
return waitForUserOperationTransaction(client, { hash });
return waitForUserOperationTransaction(client, { hash }).catch((e) => {
throw new WaitForUserOperationError(request, e);
});
}
//# sourceMappingURL=sendTransactions.js.map

@@ -1,2 +0,2 @@

import type { UserOperationStruct } from "../types.js";
import type { UserOperationRequest, UserOperationStruct } from "../types.js";
import { BaseError } from "./base.js";

@@ -7,1 +7,5 @@ export declare class InvalidUserOperationError extends BaseError {

}
export declare class WaitForUserOperationError extends BaseError {
request: UserOperationRequest;
constructor(request: UserOperationRequest, error: Error);
}

@@ -18,2 +18,13 @@ import { BaseError } from "./base.js";

}
export class WaitForUserOperationError extends BaseError {
constructor(request, error) {
super(`Failed to find User Operation: ${error.message}`);
Object.defineProperty(this, "request", {
enumerable: true,
configurable: true,
writable: true,
value: request
});
}
}
//# sourceMappingURL=useroperation.js.map

@@ -25,3 +25,3 @@ export type { Abi } from "abitype";

export { waitForUserOperationTransaction } from "./actions/smartAccount/waitForUserOperationTransacation.js";
export { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonAmoy, polygonMumbai, sepolia, fraxtal, fraxtalSepolia, zora, zoraSepolia, } from "./chains/index.js";
export { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, fraxtal, fraxtalSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonAmoy, polygonMumbai, sepolia, zora, zoraSepolia, } from "./chains/index.js";
export type * from "./client/bundlerClient.js";

@@ -47,3 +47,3 @@ export { createBundlerClient, createBundlerClientFromExisting, } from "./client/bundlerClient.js";

export { FailedToFindTransactionError, TransactionMissingToParamError, } from "./errors/transaction.js";
export { InvalidUserOperationError } from "./errors/useroperation.js";
export { InvalidUserOperationError, WaitForUserOperationError, } from "./errors/useroperation.js";
export { LogLevel, Logger } from "./logger.js";

@@ -50,0 +50,0 @@ export { middlewareActions } from "./middleware/actions.js";

@@ -20,3 +20,3 @@ import * as chains_1 from "viem/chains";

export { waitForUserOperationTransaction } from "./actions/smartAccount/waitForUserOperationTransacation.js";
export { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonAmoy, polygonMumbai, sepolia, fraxtal, fraxtalSepolia, zora, zoraSepolia, } from "./chains/index.js";
export { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, fraxtal, fraxtalSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonAmoy, polygonMumbai, sepolia, zora, zoraSepolia, } from "./chains/index.js";
export { createBundlerClient, createBundlerClientFromExisting, } from "./client/bundlerClient.js";

@@ -36,3 +36,3 @@ export { bundlerActions } from "./client/decorators/bundlerClient.js";

export { FailedToFindTransactionError, TransactionMissingToParamError, } from "./errors/transaction.js";
export { InvalidUserOperationError } from "./errors/useroperation.js";
export { InvalidUserOperationError, WaitForUserOperationError, } from "./errors/useroperation.js";
export { LogLevel, Logger } from "./logger.js";

@@ -39,0 +39,0 @@ export { middlewareActions } from "./middleware/actions.js";

@@ -1,1 +0,1 @@

export declare const VERSION = "3.12.2";
export declare const VERSION = "3.12.3";

@@ -1,2 +0,2 @@

export const VERSION = "3.12.2";
export const VERSION = "3.12.3";
//# sourceMappingURL=version.js.map

@@ -1,2 +0,2 @@

import type { UserOperationStruct } from "../types.js";
import type { UserOperationRequest, UserOperationStruct } from "../types.js";
import { BaseError } from "./base.js";

@@ -22,2 +22,16 @@ /**

}
/**
* Error thrown when waiting for user operation request to be mined.
*
* Includes the internal error as well as the request that failed. This request
* can then be used with {@link dropAndReplaceUserOperation} to retry the operation.
*/
export declare class WaitForUserOperationError extends BaseError {
request: UserOperationRequest;
/**
* @param request the user operation request that failed
* @param error the underlying error that caused the failure
*/
constructor(request: UserOperationRequest, error: Error);
}
//# sourceMappingURL=useroperation.d.ts.map

@@ -25,3 +25,3 @@ export type { Abi } from "abitype";

export { waitForUserOperationTransaction } from "./actions/smartAccount/waitForUserOperationTransacation.js";
export { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonAmoy, polygonMumbai, sepolia, fraxtal, fraxtalSepolia, zora, zoraSepolia, } from "./chains/index.js";
export { arbitrum, arbitrumGoerli, arbitrumSepolia, base, baseGoerli, baseSepolia, fraxtal, fraxtalSepolia, goerli, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, polygonAmoy, polygonMumbai, sepolia, zora, zoraSepolia, } from "./chains/index.js";
export type * from "./client/bundlerClient.js";

@@ -47,3 +47,3 @@ export { createBundlerClient, createBundlerClientFromExisting, } from "./client/bundlerClient.js";

export { FailedToFindTransactionError, TransactionMissingToParamError, } from "./errors/transaction.js";
export { InvalidUserOperationError } from "./errors/useroperation.js";
export { InvalidUserOperationError, WaitForUserOperationError, } from "./errors/useroperation.js";
export { LogLevel, Logger } from "./logger.js";

@@ -50,0 +50,0 @@ export { middlewareActions } from "./middleware/actions.js";

@@ -1,2 +0,2 @@

export declare const VERSION = "3.12.2";
export declare const VERSION = "3.12.3";
//# sourceMappingURL=version.d.ts.map
{
"name": "@alchemy/aa-core",
"license": "MIT",
"version": "3.12.2",
"version": "3.12.3",
"description": "viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts",

@@ -69,3 +69,3 @@ "author": "Alchemy",

"homepage": "https://github.com/alchemyplatform/aa-sdk#readme",
"gitHead": "0a0d8db2075ffc6c7bceb428df6f1e8c0a481a9a"
"gitHead": "c23cb541ee91e822388a467f827e7f19bcddcd45"
}

@@ -16,2 +16,3 @@ import type {

import { TransactionMissingToParamError } from "../../errors/transaction.js";
import { WaitForUserOperationError } from "../../errors/useroperation.js";
import type { UserOperationOverrides } from "../../types.js";

@@ -62,3 +63,4 @@ import { buildUserOperationFromTx } from "./buildUserOperationFromTx.js";

);
const { hash } = await _sendUserOperation(client, {
const { hash, request } = await _sendUserOperation(client, {
account: account as SmartContractAccount,

@@ -70,3 +72,5 @@ uoStruct,

return waitForUserOperationTransaction(client, { hash });
return waitForUserOperationTransaction(client, { hash }).catch((e) => {
throw new WaitForUserOperationError(request, e);
});
}

@@ -6,2 +6,3 @@ import type { Chain, Client, Hex, Transport } from "viem";

import { IncompatibleClientError } from "../../errors/client.js";
import { WaitForUserOperationError } from "../../errors/useroperation.js";
import { buildUserOperationFromTxs } from "./buildUserOperationFromTxs.js";

@@ -43,3 +44,3 @@ import { _sendUserOperation } from "./internal/sendUserOperation.js";

const { hash } = await _sendUserOperation(client, {
const { hash, request } = await _sendUserOperation(client, {
account,

@@ -51,3 +52,5 @@ uoStruct,

return waitForUserOperationTransaction(client, { hash });
return waitForUserOperationTransaction(client, { hash }).catch((e) => {
throw new WaitForUserOperationError(request, e);
});
}

@@ -1,3 +0,5 @@

import type { UserOperationStruct } from "../types.js";
import type { UserOperationRequest, UserOperationStruct } from "../types.js";
import { BaseError } from "./base.js";
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import type { dropAndReplaceUserOperation } from "../actions/smartAccount/dropAndReplaceUserOperation.js";

@@ -37,1 +39,17 @@ /**

}
/**
* Error thrown when waiting for user operation request to be mined.
*
* Includes the internal error as well as the request that failed. This request
* can then be used with {@link dropAndReplaceUserOperation} to retry the operation.
*/
export class WaitForUserOperationError extends BaseError {
/**
* @param request the user operation request that failed
* @param error the underlying error that caused the failure
*/
constructor(public request: UserOperationRequest, error: Error) {
super(`Failed to find User Operation: ${error.message}`);
}
}

@@ -41,2 +41,4 @@ export type { Abi } from "abitype";

baseSepolia,
fraxtal,
fraxtalSepolia,
goerli,

@@ -51,4 +53,2 @@ mainnet,

sepolia,
fraxtal,
fraxtalSepolia,
zora,

@@ -117,3 +117,6 @@ zoraSepolia,

} from "./errors/transaction.js";
export { InvalidUserOperationError } from "./errors/useroperation.js";
export {
InvalidUserOperationError,
WaitForUserOperationError,
} from "./errors/useroperation.js";
export { LogLevel, Logger } from "./logger.js";

@@ -120,0 +123,0 @@ export { middlewareActions } from "./middleware/actions.js";

// This file is autogenerated by inject-version.ts. Any changes will be
// overwritten on commit!
export const VERSION = "3.12.2";
export const VERSION = "3.12.3";

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc