@alchemy/aa-alchemy
Advanced tools
Comparing version 2.4.0 to 3.0.0-alpha.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AlchemyProviderConfigSchema = exports.createLightAccountAlchemyProvider = exports.AlchemyProvider = exports.SupportedChains = exports.withAlchemyGasManager = exports.withAlchemyGasFeeEstimator = void 0; | ||
var gas_fees_js_1 = require("./middleware/gas-fees.js"); | ||
Object.defineProperty(exports, "withAlchemyGasFeeEstimator", { enumerable: true, get: function () { return gas_fees_js_1.withAlchemyGasFeeEstimator; } }); | ||
var gas_manager_js_1 = require("./middleware/gas-manager.js"); | ||
Object.defineProperty(exports, "withAlchemyGasManager", { enumerable: true, get: function () { return gas_manager_js_1.withAlchemyGasManager; } }); | ||
exports.AlchemyProviderConfigSchema = exports.getDefaultUserOperationFeeOptions = exports.SupportedChains = exports.alchemyUserOperationSimulator = exports.alchemyGasManagerMiddleware = exports.alchemyFeeEstimator = exports.alchemyActions = exports.alchemyEnhancedApiActions = exports.createAlchemySmartAccountClient = exports.createAlchemyPublicRpcClient = exports.createLightAccountAlchemyClient = exports.simulateUserOperationChanges = void 0; | ||
var simulateUserOperationChanges_js_1 = require("./actions/simulateUserOperationChanges.js"); | ||
Object.defineProperty(exports, "simulateUserOperationChanges", { enumerable: true, get: function () { return simulateUserOperationChanges_js_1.simulateUserOperationChanges; } }); | ||
var lightAccountClient_js_1 = require("./client/lightAccountClient.js"); | ||
Object.defineProperty(exports, "createLightAccountAlchemyClient", { enumerable: true, get: function () { return lightAccountClient_js_1.createLightAccountAlchemyClient; } }); | ||
var rpcClient_js_1 = require("./client/rpcClient.js"); | ||
Object.defineProperty(exports, "createAlchemyPublicRpcClient", { enumerable: true, get: function () { return rpcClient_js_1.createAlchemyPublicRpcClient; } }); | ||
var smartAccountClient_js_1 = require("./client/smartAccountClient.js"); | ||
Object.defineProperty(exports, "createAlchemySmartAccountClient", { enumerable: true, get: function () { return smartAccountClient_js_1.createAlchemySmartAccountClient; } }); | ||
var alchemyEnhancedApis_js_1 = require("./client/decorators/alchemyEnhancedApis.js"); | ||
Object.defineProperty(exports, "alchemyEnhancedApiActions", { enumerable: true, get: function () { return alchemyEnhancedApis_js_1.alchemyEnhancedApiActions; } }); | ||
var smartAccount_js_1 = require("./client/decorators/smartAccount.js"); | ||
Object.defineProperty(exports, "alchemyActions", { enumerable: true, get: function () { return smartAccount_js_1.alchemyActions; } }); | ||
var feeEstimator_js_1 = require("./middleware/feeEstimator.js"); | ||
Object.defineProperty(exports, "alchemyFeeEstimator", { enumerable: true, get: function () { return feeEstimator_js_1.alchemyFeeEstimator; } }); | ||
var gasManager_js_1 = require("./middleware/gasManager.js"); | ||
Object.defineProperty(exports, "alchemyGasManagerMiddleware", { enumerable: true, get: function () { return gasManager_js_1.alchemyGasManagerMiddleware; } }); | ||
var userOperationSimulator_js_1 = require("./middleware/userOperationSimulator.js"); | ||
Object.defineProperty(exports, "alchemyUserOperationSimulator", { enumerable: true, get: function () { return userOperationSimulator_js_1.alchemyUserOperationSimulator; } }); | ||
var chains_js_1 = require("./chains.js"); | ||
Object.defineProperty(exports, "SupportedChains", { enumerable: true, get: function () { return chains_js_1.SupportedChains; } }); | ||
var index_js_1 = require("./provider/index.js"); | ||
Object.defineProperty(exports, "AlchemyProvider", { enumerable: true, get: function () { return index_js_1.AlchemyProvider; } }); | ||
Object.defineProperty(exports, "createLightAccountAlchemyProvider", { enumerable: true, get: function () { return index_js_1.createLightAccountAlchemyProvider; } }); | ||
var defaults_js_1 = require("./defaults.js"); | ||
Object.defineProperty(exports, "getDefaultUserOperationFeeOptions", { enumerable: true, get: function () { return defaults_js_1.getDefaultUserOperationFeeOptions; } }); | ||
var schema_js_1 = require("./schema.js"); | ||
Object.defineProperty(exports, "AlchemyProviderConfigSchema", { enumerable: true, get: function () { return schema_js_1.AlchemyProviderConfigSchema; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -1,6 +0,23 @@ | ||
export { withAlchemyGasFeeEstimator } from "./middleware/gas-fees.js"; | ||
export { withAlchemyGasManager } from "./middleware/gas-manager.js"; | ||
export type * from "./actions/simulateUserOperationChanges.js"; | ||
export { simulateUserOperationChanges } from "./actions/simulateUserOperationChanges.js"; | ||
export type * from "./actions/types.js"; | ||
export type * from "./client/lightAccountClient.js"; | ||
export { createLightAccountAlchemyClient } from "./client/lightAccountClient.js"; | ||
export type * from "./client/rpcClient.js"; | ||
export { createAlchemyPublicRpcClient } from "./client/rpcClient.js"; | ||
export type * from "./client/smartAccountClient.js"; | ||
export { createAlchemySmartAccountClient } from "./client/smartAccountClient.js"; | ||
export type * from "./client/types.js"; | ||
export type * from "./client/decorators/alchemyEnhancedApis.js"; | ||
export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js"; | ||
export type * from "./client/decorators/smartAccount.js"; | ||
export { alchemyActions } from "./client/decorators/smartAccount.js"; | ||
export { alchemyFeeEstimator } from "./middleware/feeEstimator.js"; | ||
export type * from "./middleware/gasManager.js"; | ||
export { alchemyGasManagerMiddleware } from "./middleware/gasManager.js"; | ||
export { alchemyUserOperationSimulator } from "./middleware/userOperationSimulator.js"; | ||
export { SupportedChains } from "./chains.js"; | ||
export { AlchemyProvider, createLightAccountAlchemyProvider, } from "./provider/index.js"; | ||
export { getDefaultUserOperationFeeOptions } from "./defaults.js"; | ||
export type * from "./schema.js"; | ||
export { AlchemyProviderConfigSchema } from "./schema.js"; | ||
export type { AlchemyProviderConfig } from "./type.js"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AlchemyProviderConfigSchema = exports.createLightAccountAlchemyProvider = exports.AlchemyProvider = exports.SupportedChains = exports.withAlchemyGasManager = exports.withAlchemyGasFeeEstimator = void 0; | ||
var gas_fees_js_1 = require("./middleware/gas-fees.js"); | ||
Object.defineProperty(exports, "withAlchemyGasFeeEstimator", { enumerable: true, get: function () { return gas_fees_js_1.withAlchemyGasFeeEstimator; } }); | ||
var gas_manager_js_1 = require("./middleware/gas-manager.js"); | ||
Object.defineProperty(exports, "withAlchemyGasManager", { enumerable: true, get: function () { return gas_manager_js_1.withAlchemyGasManager; } }); | ||
exports.AlchemyProviderConfigSchema = exports.getDefaultUserOperationFeeOptions = exports.SupportedChains = exports.alchemyUserOperationSimulator = exports.alchemyGasManagerMiddleware = exports.alchemyFeeEstimator = exports.alchemyActions = exports.alchemyEnhancedApiActions = exports.createAlchemySmartAccountClient = exports.createAlchemyPublicRpcClient = exports.createLightAccountAlchemyClient = exports.simulateUserOperationChanges = void 0; | ||
var simulateUserOperationChanges_js_1 = require("./actions/simulateUserOperationChanges.js"); | ||
Object.defineProperty(exports, "simulateUserOperationChanges", { enumerable: true, get: function () { return simulateUserOperationChanges_js_1.simulateUserOperationChanges; } }); | ||
var lightAccountClient_js_1 = require("./client/lightAccountClient.js"); | ||
Object.defineProperty(exports, "createLightAccountAlchemyClient", { enumerable: true, get: function () { return lightAccountClient_js_1.createLightAccountAlchemyClient; } }); | ||
var rpcClient_js_1 = require("./client/rpcClient.js"); | ||
Object.defineProperty(exports, "createAlchemyPublicRpcClient", { enumerable: true, get: function () { return rpcClient_js_1.createAlchemyPublicRpcClient; } }); | ||
var smartAccountClient_js_1 = require("./client/smartAccountClient.js"); | ||
Object.defineProperty(exports, "createAlchemySmartAccountClient", { enumerable: true, get: function () { return smartAccountClient_js_1.createAlchemySmartAccountClient; } }); | ||
var alchemyEnhancedApis_js_1 = require("./client/decorators/alchemyEnhancedApis.js"); | ||
Object.defineProperty(exports, "alchemyEnhancedApiActions", { enumerable: true, get: function () { return alchemyEnhancedApis_js_1.alchemyEnhancedApiActions; } }); | ||
var smartAccount_js_1 = require("./client/decorators/smartAccount.js"); | ||
Object.defineProperty(exports, "alchemyActions", { enumerable: true, get: function () { return smartAccount_js_1.alchemyActions; } }); | ||
var feeEstimator_js_1 = require("./middleware/feeEstimator.js"); | ||
Object.defineProperty(exports, "alchemyFeeEstimator", { enumerable: true, get: function () { return feeEstimator_js_1.alchemyFeeEstimator; } }); | ||
var gasManager_js_1 = require("./middleware/gasManager.js"); | ||
Object.defineProperty(exports, "alchemyGasManagerMiddleware", { enumerable: true, get: function () { return gasManager_js_1.alchemyGasManagerMiddleware; } }); | ||
var userOperationSimulator_js_1 = require("./middleware/userOperationSimulator.js"); | ||
Object.defineProperty(exports, "alchemyUserOperationSimulator", { enumerable: true, get: function () { return userOperationSimulator_js_1.alchemyUserOperationSimulator; } }); | ||
var chains_js_1 = require("./chains.js"); | ||
Object.defineProperty(exports, "SupportedChains", { enumerable: true, get: function () { return chains_js_1.SupportedChains; } }); | ||
var index_js_1 = require("./provider/index.js"); | ||
Object.defineProperty(exports, "AlchemyProvider", { enumerable: true, get: function () { return index_js_1.AlchemyProvider; } }); | ||
Object.defineProperty(exports, "createLightAccountAlchemyProvider", { enumerable: true, get: function () { return index_js_1.createLightAccountAlchemyProvider; } }); | ||
var defaults_js_1 = require("./defaults.js"); | ||
Object.defineProperty(exports, "getDefaultUserOperationFeeOptions", { enumerable: true, get: function () { return defaults_js_1.getDefaultUserOperationFeeOptions; } }); | ||
var schema_js_1 = require("./schema.js"); | ||
Object.defineProperty(exports, "AlchemyProviderConfigSchema", { enumerable: true, get: function () { return schema_js_1.AlchemyProviderConfigSchema; } }); | ||
//# sourceMappingURL=index.js.map |
@@ -5,261 +5,3 @@ import { Alchemy } from "alchemy-sdk"; | ||
export declare const AlchemyChainSchema: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<Omit<{ | ||
rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; | ||
chain: z.ZodType<Chain<import("viem").ChainFormatters | undefined>, z.ZodTypeDef, Chain<import("viem").ChainFormatters | undefined>>; | ||
entryPointAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
opts: z.ZodDefault<z.ZodOptional<z.ZodObject<{ | ||
txMaxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
txRetryIntervalMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
txRetryMulitplier: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
feeOptions: z.ZodOptional<z.ZodObject<{ | ||
maxFeePerGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
maxPriorityFeePerGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
callGasLimit: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
verificationGasLimit: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
preVerificationGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
}, "strict", z.ZodTypeAny, { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
}, { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
}>>; | ||
}, "strict", z.ZodTypeAny, { | ||
txMaxRetries: number; | ||
txRetryIntervalMs: number; | ||
txRetryMulitplier: number; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}, { | ||
txMaxRetries?: number | undefined; | ||
txRetryIntervalMs?: number | undefined; | ||
txRetryMulitplier?: number | undefined; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}>>>; | ||
}, "chain" | "rpcProvider">, "strip", z.ZodTypeAny, { | ||
opts: { | ||
txMaxRetries: number; | ||
txRetryIntervalMs: number; | ||
txRetryMulitplier: number; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}; | ||
entryPointAddress?: `0x${string}` | undefined; | ||
}, { | ||
entryPointAddress?: string | undefined; | ||
opts?: { | ||
txMaxRetries?: number | undefined; | ||
txRetryIntervalMs?: number | undefined; | ||
txRetryMulitplier?: number | undefined; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}>, z.ZodUnion<[z.ZodObject<{ | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
@@ -312,14 +54,4 @@ apiKey: z.ZodString; | ||
apiKey?: undefined; | ||
}>]>>, z.ZodObject<{ | ||
}>]>, z.ZodObject<{ | ||
chain: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}>>; | ||
export declare const AlchemySdkClientSchema: z.ZodType<Alchemy, z.ZodTypeDef, Alchemy>; | ||
export declare const LightAccountAlchemyProviderConfigSchema: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<Omit<{ | ||
rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; | ||
chain: z.ZodType<Chain<import("viem").ChainFormatters | undefined>, z.ZodTypeDef, Chain<import("viem").ChainFormatters | undefined>>; | ||
entryPointAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
opts: z.ZodDefault<z.ZodOptional<z.ZodObject<{ | ||
@@ -511,3 +243,4 @@ txMaxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
}>>>; | ||
}, "chain" | "rpcProvider">, "strip", z.ZodTypeAny, { | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
opts: { | ||
@@ -545,5 +278,4 @@ txMaxRetries: number; | ||
}; | ||
entryPointAddress?: `0x${string}` | undefined; | ||
}, { | ||
entryPointAddress?: string | undefined; | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
opts?: { | ||
@@ -581,74 +313,3 @@ txMaxRetries?: number | undefined; | ||
} | undefined; | ||
}>, z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodString; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}>]>>, z.ZodObject<{ | ||
chain: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}>>, z.ZodObject<{ | ||
owner: z.ZodType<import("@alchemy/aa-core").SmartAccountSigner<any>, z.ZodTypeDef, import("@alchemy/aa-core").SmartAccountSigner<any>>; | ||
accountAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
initCode: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
factoryAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
version: z.ZodOptional<z.ZodEffects<z.ZodString, import("@alchemy/aa-accounts").LightAccountVersion, string>>; | ||
}, "strip", z.ZodTypeAny, { | ||
owner: import("@alchemy/aa-core").SmartAccountSigner<any>; | ||
accountAddress?: `0x${string}` | undefined; | ||
initCode?: `0x${string}` | undefined; | ||
factoryAddress?: `0x${string}` | undefined; | ||
version?: import("@alchemy/aa-accounts").LightAccountVersion | undefined; | ||
}, { | ||
owner: import("@alchemy/aa-core").SmartAccountSigner<any>; | ||
accountAddress?: string | undefined; | ||
initCode?: string | undefined; | ||
factoryAddress?: string | undefined; | ||
version?: string | undefined; | ||
}>>; | ||
export declare const AlchemySdkClientSchema: z.ZodType<Alchemy, z.ZodTypeDef, Alchemy>; |
@@ -6,4 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.LightAccountAlchemyProviderConfigSchema = exports.AlchemySdkClientSchema = exports.AlchemyProviderConfigSchema = exports.AlchemyChainSchema = void 0; | ||
const aa_accounts_1 = require("@alchemy/aa-accounts"); | ||
exports.AlchemySdkClientSchema = exports.AlchemyProviderConfigSchema = exports.AlchemyChainSchema = void 0; | ||
const aa_core_1 = require("@alchemy/aa-core"); | ||
@@ -25,8 +24,7 @@ const alchemy_sdk_1 = require("alchemy-sdk"); | ||
}, "chain is not supported by Alchemy"); | ||
exports.AlchemyProviderConfigSchema = (0, aa_core_1.createSmartAccountProviderConfigSchema)() | ||
.omit({ rpcProvider: true, chain: true }) | ||
.and(aa_core_1.ConnectionConfigSchema) | ||
.and(zod_1.default.object({ chain: exports.AlchemyChainSchema })); | ||
exports.AlchemyProviderConfigSchema = aa_core_1.ConnectionConfigSchema.and(zod_1.default.object({ | ||
chain: exports.AlchemyChainSchema, | ||
opts: aa_core_1.SmartAccountProviderOptsSchema.optional().default(aa_core_1.SmartAccountProviderOptsSchema.parse({})), | ||
})); | ||
exports.AlchemySdkClientSchema = zod_1.default.instanceof(alchemy_sdk_1.Alchemy); | ||
exports.LightAccountAlchemyProviderConfigSchema = exports.AlchemyProviderConfigSchema.and(aa_accounts_1.LightAccountFactoryConfigSchema); | ||
//# sourceMappingURL=schema.js.map |
import { z } from "zod"; | ||
import type { AlchemyProviderConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
import type { AlchemyProviderConfigSchema } from "./schema.js"; | ||
export type AlchemyProviderConfig = z.input<typeof AlchemyProviderConfigSchema>; | ||
export type LightAccountAlchemyProviderConfig = z.input<typeof LightAccountAlchemyProviderConfigSchema>; |
@@ -1,6 +0,23 @@ | ||
export { withAlchemyGasFeeEstimator } from "./middleware/gas-fees.js"; | ||
export { withAlchemyGasManager } from "./middleware/gas-manager.js"; | ||
export type * from "./actions/simulateUserOperationChanges.js"; | ||
export { simulateUserOperationChanges } from "./actions/simulateUserOperationChanges.js"; | ||
export type * from "./actions/types.js"; | ||
export type * from "./client/lightAccountClient.js"; | ||
export { createLightAccountAlchemyClient } from "./client/lightAccountClient.js"; | ||
export type * from "./client/rpcClient.js"; | ||
export { createAlchemyPublicRpcClient } from "./client/rpcClient.js"; | ||
export type * from "./client/smartAccountClient.js"; | ||
export { createAlchemySmartAccountClient } from "./client/smartAccountClient.js"; | ||
export type * from "./client/types.js"; | ||
export type * from "./client/decorators/alchemyEnhancedApis.js"; | ||
export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js"; | ||
export type * from "./client/decorators/smartAccount.js"; | ||
export { alchemyActions } from "./client/decorators/smartAccount.js"; | ||
export { alchemyFeeEstimator } from "./middleware/feeEstimator.js"; | ||
export type * from "./middleware/gasManager.js"; | ||
export { alchemyGasManagerMiddleware } from "./middleware/gasManager.js"; | ||
export { alchemyUserOperationSimulator } from "./middleware/userOperationSimulator.js"; | ||
export { SupportedChains } from "./chains.js"; | ||
export { AlchemyProvider, createLightAccountAlchemyProvider, } from "./provider/index.js"; | ||
export { getDefaultUserOperationFeeOptions } from "./defaults.js"; | ||
export type * from "./schema.js"; | ||
export { AlchemyProviderConfigSchema } from "./schema.js"; | ||
export type { AlchemyProviderConfig } from "./type.js"; |
@@ -1,6 +0,13 @@ | ||
export { withAlchemyGasFeeEstimator } from "./middleware/gas-fees.js"; | ||
export { withAlchemyGasManager } from "./middleware/gas-manager.js"; | ||
export { simulateUserOperationChanges } from "./actions/simulateUserOperationChanges.js"; | ||
export { createLightAccountAlchemyClient } from "./client/lightAccountClient.js"; | ||
export { createAlchemyPublicRpcClient } from "./client/rpcClient.js"; | ||
export { createAlchemySmartAccountClient } from "./client/smartAccountClient.js"; | ||
export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js"; | ||
export { alchemyActions } from "./client/decorators/smartAccount.js"; | ||
export { alchemyFeeEstimator } from "./middleware/feeEstimator.js"; | ||
export { alchemyGasManagerMiddleware } from "./middleware/gasManager.js"; | ||
export { alchemyUserOperationSimulator } from "./middleware/userOperationSimulator.js"; | ||
export { SupportedChains } from "./chains.js"; | ||
export { AlchemyProvider, createLightAccountAlchemyProvider, } from "./provider/index.js"; | ||
export { getDefaultUserOperationFeeOptions } from "./defaults.js"; | ||
export { AlchemyProviderConfigSchema } from "./schema.js"; | ||
//# sourceMappingURL=index.js.map |
@@ -5,261 +5,3 @@ import { Alchemy } from "alchemy-sdk"; | ||
export declare const AlchemyChainSchema: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<Omit<{ | ||
rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; | ||
chain: z.ZodType<Chain<import("viem").ChainFormatters | undefined>, z.ZodTypeDef, Chain<import("viem").ChainFormatters | undefined>>; | ||
entryPointAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
opts: z.ZodDefault<z.ZodOptional<z.ZodObject<{ | ||
txMaxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
txRetryIntervalMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
txRetryMulitplier: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
feeOptions: z.ZodOptional<z.ZodObject<{ | ||
maxFeePerGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
maxPriorityFeePerGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
callGasLimit: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
verificationGasLimit: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
preVerificationGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
}, "strict", z.ZodTypeAny, { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
}, { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
}>>; | ||
}, "strict", z.ZodTypeAny, { | ||
txMaxRetries: number; | ||
txRetryIntervalMs: number; | ||
txRetryMulitplier: number; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}, { | ||
txMaxRetries?: number | undefined; | ||
txRetryIntervalMs?: number | undefined; | ||
txRetryMulitplier?: number | undefined; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}>>>; | ||
}, "chain" | "rpcProvider">, "strip", z.ZodTypeAny, { | ||
opts: { | ||
txMaxRetries: number; | ||
txRetryIntervalMs: number; | ||
txRetryMulitplier: number; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}; | ||
entryPointAddress?: `0x${string}` | undefined; | ||
}, { | ||
entryPointAddress?: string | undefined; | ||
opts?: { | ||
txMaxRetries?: number | undefined; | ||
txRetryIntervalMs?: number | undefined; | ||
txRetryMulitplier?: number | undefined; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}>, z.ZodUnion<[z.ZodObject<{ | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
@@ -312,14 +54,4 @@ apiKey: z.ZodString; | ||
apiKey?: undefined; | ||
}>]>>, z.ZodObject<{ | ||
}>]>, z.ZodObject<{ | ||
chain: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}>>; | ||
export declare const AlchemySdkClientSchema: z.ZodType<Alchemy, z.ZodTypeDef, Alchemy>; | ||
export declare const LightAccountAlchemyProviderConfigSchema: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<Omit<{ | ||
rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; | ||
chain: z.ZodType<Chain<import("viem").ChainFormatters | undefined>, z.ZodTypeDef, Chain<import("viem").ChainFormatters | undefined>>; | ||
entryPointAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
opts: z.ZodDefault<z.ZodOptional<z.ZodObject<{ | ||
@@ -511,3 +243,4 @@ txMaxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
}>>>; | ||
}, "chain" | "rpcProvider">, "strip", z.ZodTypeAny, { | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
opts: { | ||
@@ -545,5 +278,4 @@ txMaxRetries: number; | ||
}; | ||
entryPointAddress?: `0x${string}` | undefined; | ||
}, { | ||
entryPointAddress?: string | undefined; | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
opts?: { | ||
@@ -581,74 +313,3 @@ txMaxRetries?: number | undefined; | ||
} | undefined; | ||
}>, z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodString; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}>]>>, z.ZodObject<{ | ||
chain: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}>>, z.ZodObject<{ | ||
owner: z.ZodType<import("@alchemy/aa-core").SmartAccountSigner<any>, z.ZodTypeDef, import("@alchemy/aa-core").SmartAccountSigner<any>>; | ||
accountAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
initCode: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
factoryAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
version: z.ZodOptional<z.ZodEffects<z.ZodString, import("@alchemy/aa-accounts").LightAccountVersion, string>>; | ||
}, "strip", z.ZodTypeAny, { | ||
owner: import("@alchemy/aa-core").SmartAccountSigner<any>; | ||
accountAddress?: `0x${string}` | undefined; | ||
initCode?: `0x${string}` | undefined; | ||
factoryAddress?: `0x${string}` | undefined; | ||
version?: import("@alchemy/aa-accounts").LightAccountVersion | undefined; | ||
}, { | ||
owner: import("@alchemy/aa-core").SmartAccountSigner<any>; | ||
accountAddress?: string | undefined; | ||
initCode?: string | undefined; | ||
factoryAddress?: string | undefined; | ||
version?: string | undefined; | ||
}>>; | ||
export declare const AlchemySdkClientSchema: z.ZodType<Alchemy, z.ZodTypeDef, Alchemy>; |
@@ -1,3 +0,2 @@ | ||
import { LightAccountFactoryConfigSchema } from "@alchemy/aa-accounts"; | ||
import { ChainSchema, ConnectionConfigSchema, createSmartAccountProviderConfigSchema, getChain, } from "@alchemy/aa-core"; | ||
import { ChainSchema, ConnectionConfigSchema, SmartAccountProviderOptsSchema, getChain, } from "@alchemy/aa-core"; | ||
import { Alchemy } from "alchemy-sdk"; | ||
@@ -18,8 +17,7 @@ import z from "zod"; | ||
}, "chain is not supported by Alchemy"); | ||
export const AlchemyProviderConfigSchema = createSmartAccountProviderConfigSchema() | ||
.omit({ rpcProvider: true, chain: true }) | ||
.and(ConnectionConfigSchema) | ||
.and(z.object({ chain: AlchemyChainSchema })); | ||
export const AlchemyProviderConfigSchema = ConnectionConfigSchema.and(z.object({ | ||
chain: AlchemyChainSchema, | ||
opts: SmartAccountProviderOptsSchema.optional().default(SmartAccountProviderOptsSchema.parse({})), | ||
})); | ||
export const AlchemySdkClientSchema = z.instanceof(Alchemy); | ||
export const LightAccountAlchemyProviderConfigSchema = AlchemyProviderConfigSchema.and(LightAccountFactoryConfigSchema); | ||
//# sourceMappingURL=schema.js.map |
import { z } from "zod"; | ||
import type { AlchemyProviderConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
import type { AlchemyProviderConfigSchema } from "./schema.js"; | ||
export type AlchemyProviderConfig = z.input<typeof AlchemyProviderConfigSchema>; | ||
export type LightAccountAlchemyProviderConfig = z.input<typeof LightAccountAlchemyProviderConfigSchema>; |
@@ -1,7 +0,24 @@ | ||
export { withAlchemyGasFeeEstimator } from "./middleware/gas-fees.js"; | ||
export { withAlchemyGasManager } from "./middleware/gas-manager.js"; | ||
export type * from "./actions/simulateUserOperationChanges.js"; | ||
export { simulateUserOperationChanges } from "./actions/simulateUserOperationChanges.js"; | ||
export type * from "./actions/types.js"; | ||
export type * from "./client/lightAccountClient.js"; | ||
export { createLightAccountAlchemyClient } from "./client/lightAccountClient.js"; | ||
export type * from "./client/rpcClient.js"; | ||
export { createAlchemyPublicRpcClient } from "./client/rpcClient.js"; | ||
export type * from "./client/smartAccountClient.js"; | ||
export { createAlchemySmartAccountClient } from "./client/smartAccountClient.js"; | ||
export type * from "./client/types.js"; | ||
export type * from "./client/decorators/alchemyEnhancedApis.js"; | ||
export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js"; | ||
export type * from "./client/decorators/smartAccount.js"; | ||
export { alchemyActions } from "./client/decorators/smartAccount.js"; | ||
export { alchemyFeeEstimator } from "./middleware/feeEstimator.js"; | ||
export type * from "./middleware/gasManager.js"; | ||
export { alchemyGasManagerMiddleware } from "./middleware/gasManager.js"; | ||
export { alchemyUserOperationSimulator } from "./middleware/userOperationSimulator.js"; | ||
export { SupportedChains } from "./chains.js"; | ||
export { AlchemyProvider, createLightAccountAlchemyProvider, } from "./provider/index.js"; | ||
export { getDefaultUserOperationFeeOptions } from "./defaults.js"; | ||
export type * from "./schema.js"; | ||
export { AlchemyProviderConfigSchema } from "./schema.js"; | ||
export type { AlchemyProviderConfig } from "./type.js"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,261 +5,3 @@ import { Alchemy } from "alchemy-sdk"; | ||
export declare const AlchemyChainSchema: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodIntersection<z.ZodObject<Omit<{ | ||
rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; | ||
chain: z.ZodType<Chain<import("viem").ChainFormatters | undefined>, z.ZodTypeDef, Chain<import("viem").ChainFormatters | undefined>>; | ||
entryPointAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
opts: z.ZodDefault<z.ZodOptional<z.ZodObject<{ | ||
txMaxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
txRetryIntervalMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
txRetryMulitplier: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
feeOptions: z.ZodOptional<z.ZodObject<{ | ||
maxFeePerGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
maxPriorityFeePerGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
callGasLimit: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
verificationGasLimit: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
preVerificationGas: z.ZodOptional<z.ZodObject<{ | ||
min: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
max: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodType<`0x${string}`, z.ZodTypeDef, `0x${string}`>, z.ZodNumber, z.ZodBigInt]>>>; | ||
percentage: z.ZodOptional<z.ZodNumber>; | ||
}, "strict", z.ZodTypeAny, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}, { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
}>>; | ||
}, "strict", z.ZodTypeAny, { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
}, { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
}>>; | ||
}, "strict", z.ZodTypeAny, { | ||
txMaxRetries: number; | ||
txRetryIntervalMs: number; | ||
txRetryMulitplier: number; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}, { | ||
txMaxRetries?: number | undefined; | ||
txRetryIntervalMs?: number | undefined; | ||
txRetryMulitplier?: number | undefined; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}>>>; | ||
}, "chain" | "rpcProvider">, "strip", z.ZodTypeAny, { | ||
opts: { | ||
txMaxRetries: number; | ||
txRetryIntervalMs: number; | ||
txRetryMulitplier: number; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}; | ||
entryPointAddress?: `0x${string}` | undefined; | ||
}, { | ||
entryPointAddress?: string | undefined; | ||
opts?: { | ||
txMaxRetries?: number | undefined; | ||
txRetryIntervalMs?: number | undefined; | ||
txRetryMulitplier?: number | undefined; | ||
feeOptions?: { | ||
maxFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
maxPriorityFeePerGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
callGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
verificationGasLimit?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
preVerificationGas?: { | ||
min?: number | bigint | `0x${string}` | undefined; | ||
max?: number | bigint | `0x${string}` | undefined; | ||
percentage?: number | undefined; | ||
} | undefined; | ||
} | undefined; | ||
} | undefined; | ||
}>, z.ZodUnion<[z.ZodObject<{ | ||
export declare const AlchemyProviderConfigSchema: z.ZodIntersection<z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
@@ -312,14 +54,4 @@ apiKey: z.ZodString; | ||
apiKey?: undefined; | ||
}>]>>, z.ZodObject<{ | ||
}>]>, z.ZodObject<{ | ||
chain: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}>>; | ||
export declare const AlchemySdkClientSchema: z.ZodType<Alchemy, z.ZodTypeDef, Alchemy>; | ||
export declare const LightAccountAlchemyProviderConfigSchema: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<Omit<{ | ||
rpcProvider: z.ZodUnion<[z.ZodString, z.ZodType<import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>, z.ZodTypeDef, import("@alchemy/aa-core").PublicErc4337Client<import("viem").Transport>>]>; | ||
chain: z.ZodType<Chain<import("viem").ChainFormatters | undefined>, z.ZodTypeDef, Chain<import("viem").ChainFormatters | undefined>>; | ||
entryPointAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
opts: z.ZodDefault<z.ZodOptional<z.ZodObject<{ | ||
@@ -511,3 +243,4 @@ txMaxRetries: z.ZodDefault<z.ZodOptional<z.ZodNumber>>; | ||
}>>>; | ||
}, "chain" | "rpcProvider">, "strip", z.ZodTypeAny, { | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
opts: { | ||
@@ -545,5 +278,4 @@ txMaxRetries: number; | ||
}; | ||
entryPointAddress?: `0x${string}` | undefined; | ||
}, { | ||
entryPointAddress?: string | undefined; | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
opts?: { | ||
@@ -581,75 +313,4 @@ txMaxRetries?: number | undefined; | ||
} | undefined; | ||
}>, z.ZodUnion<[z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodString; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
apiKey: string; | ||
rpcUrl?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodOptional<z.ZodNever>; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}, { | ||
jwt: string; | ||
rpcUrl?: undefined; | ||
apiKey?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodOptional<z.ZodNever>; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
apiKey?: undefined; | ||
jwt?: undefined; | ||
}>, z.ZodObject<{ | ||
rpcUrl: z.ZodString; | ||
apiKey: z.ZodOptional<z.ZodNever>; | ||
jwt: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}, { | ||
rpcUrl: string; | ||
jwt: string; | ||
apiKey?: undefined; | ||
}>]>>, z.ZodObject<{ | ||
chain: z.ZodType<Chain, z.ZodTypeDef, Chain>; | ||
}, "strip", z.ZodTypeAny, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}, { | ||
chain: import("viem/_types/types/chain.js").ChainConstants & import("viem/_types/types/chain.js").ChainConfig<import("viem").ChainFormatters | undefined>; | ||
}>>, z.ZodObject<{ | ||
owner: z.ZodType<import("@alchemy/aa-core").SmartAccountSigner<any>, z.ZodTypeDef, import("@alchemy/aa-core").SmartAccountSigner<any>>; | ||
accountAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
initCode: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
factoryAddress: z.ZodOptional<z.ZodEffects<z.ZodString, `0x${string}`, string>>; | ||
version: z.ZodOptional<z.ZodEffects<z.ZodString, import("@alchemy/aa-accounts").LightAccountVersion, string>>; | ||
}, "strip", z.ZodTypeAny, { | ||
owner: import("@alchemy/aa-core").SmartAccountSigner<any>; | ||
accountAddress?: `0x${string}` | undefined; | ||
initCode?: `0x${string}` | undefined; | ||
factoryAddress?: `0x${string}` | undefined; | ||
version?: import("@alchemy/aa-accounts").LightAccountVersion | undefined; | ||
}, { | ||
owner: import("@alchemy/aa-core").SmartAccountSigner<any>; | ||
accountAddress?: string | undefined; | ||
initCode?: string | undefined; | ||
factoryAddress?: string | undefined; | ||
version?: string | undefined; | ||
}>>; | ||
export declare const AlchemySdkClientSchema: z.ZodType<Alchemy, z.ZodTypeDef, Alchemy>; | ||
//# sourceMappingURL=schema.d.ts.map |
import { z } from "zod"; | ||
import type { AlchemyProviderConfigSchema, LightAccountAlchemyProviderConfigSchema } from "./schema.js"; | ||
import type { AlchemyProviderConfigSchema } from "./schema.js"; | ||
export type AlchemyProviderConfig = z.input<typeof AlchemyProviderConfigSchema>; | ||
export type LightAccountAlchemyProviderConfig = z.input<typeof LightAccountAlchemyProviderConfigSchema>; | ||
//# sourceMappingURL=type.d.ts.map |
{ | ||
"name": "@alchemy/aa-alchemy", | ||
"version": "2.4.0", | ||
"version": "3.0.0-alpha.0", | ||
"description": "adapters for @alchemy/aa-core for interacting with alchemy services", | ||
@@ -29,4 +29,16 @@ "author": "Alchemy", | ||
}, | ||
"./viem": { | ||
"types": "./dist/types/viem/index.d.ts", | ||
"import": "./dist/esm/viem/index.js", | ||
"default": "./dist/cjs/viem/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"viem": [ | ||
"./dist/types/viem/index.d.ts" | ||
] | ||
} | ||
}, | ||
"scripts": { | ||
@@ -49,3 +61,3 @@ "build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types", | ||
"dependencies": { | ||
"@alchemy/aa-core": "^2.3.1", | ||
"@alchemy/aa-core": "^3.0.0-alpha.0", | ||
"viem": "^1.21.4" | ||
@@ -65,7 +77,7 @@ }, | ||
"homepage": "https://github.com/alchemyplatform/aa-sdk#readme", | ||
"gitHead": "61113d0709c6be4305961fc5ab54b4429d94a09b", | ||
"gitHead": "c567a327071782ed503c68884e2f9815663cf7ca", | ||
"optionalDependencies": { | ||
"@alchemy/aa-accounts": "^2.4.0", | ||
"@alchemy/aa-accounts": "^3.0.0-alpha.0", | ||
"alchemy-sdk": "^3.0.0" | ||
} | ||
} |
@@ -1,11 +0,27 @@ | ||
export { withAlchemyGasFeeEstimator } from "./middleware/gas-fees.js"; | ||
export { withAlchemyGasManager } from "./middleware/gas-manager.js"; | ||
export type * from "./actions/simulateUserOperationChanges.js"; | ||
export { simulateUserOperationChanges } from "./actions/simulateUserOperationChanges.js"; | ||
export type * from "./actions/types.js"; | ||
export type * from "./client/lightAccountClient.js"; | ||
export { createLightAccountAlchemyClient } from "./client/lightAccountClient.js"; | ||
export type * from "./client/rpcClient.js"; | ||
export { createAlchemyPublicRpcClient } from "./client/rpcClient.js"; | ||
export type * from "./client/smartAccountClient.js"; | ||
export { createAlchemySmartAccountClient } from "./client/smartAccountClient.js"; | ||
export type * from "./client/types.js"; | ||
export type * from "./client/decorators/alchemyEnhancedApis.js"; | ||
export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js"; | ||
export type * from "./client/decorators/smartAccount.js"; | ||
export { alchemyActions } from "./client/decorators/smartAccount.js"; | ||
export { alchemyFeeEstimator } from "./middleware/feeEstimator.js"; | ||
export type * from "./middleware/gasManager.js"; | ||
export { alchemyGasManagerMiddleware } from "./middleware/gasManager.js"; | ||
export { alchemyUserOperationSimulator } from "./middleware/userOperationSimulator.js"; | ||
export { SupportedChains } from "./chains.js"; | ||
export { | ||
AlchemyProvider, | ||
createLightAccountAlchemyProvider, | ||
} from "./provider/index.js"; | ||
export { getDefaultUserOperationFeeOptions } from "./defaults.js"; | ||
export type * from "./schema.js"; | ||
export { AlchemyProviderConfigSchema } from "./schema.js"; | ||
export type { AlchemyProviderConfig } from "./type.js"; |
@@ -1,6 +0,5 @@ | ||
import { LightAccountFactoryConfigSchema } from "@alchemy/aa-accounts"; | ||
import { | ||
ChainSchema, | ||
ConnectionConfigSchema, | ||
createSmartAccountProviderConfigSchema, | ||
SmartAccountProviderOptsSchema, | ||
getChain, | ||
@@ -29,11 +28,11 @@ } from "@alchemy/aa-core"; | ||
export const AlchemyProviderConfigSchema = | ||
createSmartAccountProviderConfigSchema() | ||
.omit({ rpcProvider: true, chain: true }) | ||
.and(ConnectionConfigSchema) | ||
.and(z.object({ chain: AlchemyChainSchema })); | ||
export const AlchemyProviderConfigSchema = ConnectionConfigSchema.and( | ||
z.object({ | ||
chain: AlchemyChainSchema, | ||
opts: SmartAccountProviderOptsSchema.optional().default( | ||
SmartAccountProviderOptsSchema.parse({}) | ||
), | ||
}) | ||
); | ||
export const AlchemySdkClientSchema = z.instanceof(Alchemy); | ||
export const LightAccountAlchemyProviderConfigSchema = | ||
AlchemyProviderConfigSchema.and(LightAccountFactoryConfigSchema); |
import { z } from "zod"; | ||
import type { | ||
AlchemyProviderConfigSchema, | ||
LightAccountAlchemyProviderConfigSchema, | ||
} from "./schema.js"; | ||
import type { AlchemyProviderConfigSchema } from "./schema.js"; | ||
export type AlchemyProviderConfig = z.input<typeof AlchemyProviderConfigSchema>; | ||
export type LightAccountAlchemyProviderConfig = z.input< | ||
typeof LightAccountAlchemyProviderConfigSchema | ||
>; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
276059
159
3561
1
1
+ Added@alchemy/aa-accounts@3.19.0(transitive)
+ Added@alchemy/aa-core@3.19.0(transitive)
+ Addedabitype@1.0.0(transitive)
+ Addedviem@2.8.6(transitive)
- Removed@alchemy/aa-accounts@2.5.0(transitive)
- Removed@alchemy/aa-core@2.5.0(transitive)