@account-kit/infra 4.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/actions/simulateUserOperationChanges.d.ts +5 -0
- package/dist/cjs/actions/simulateUserOperationChanges.js +24 -0
- package/dist/cjs/actions/simulateUserOperationChanges.js.map +1 -0
- package/dist/cjs/actions/types.d.ts +39 -0
- package/dist/cjs/actions/types.js +17 -0
- package/dist/cjs/actions/types.js.map +1 -0
- package/dist/cjs/chains.d.ts +5 -0
- package/dist/cjs/chains.js +16 -0
- package/dist/cjs/chains.js.map +1 -0
- package/dist/cjs/client/decorators/alchemyEnhancedApis.d.ts +14 -0
- package/dist/cjs/client/decorators/alchemyEnhancedApis.js +26 -0
- package/dist/cjs/client/decorators/alchemyEnhancedApis.js.map +1 -0
- package/dist/cjs/client/decorators/smartAccount.d.ts +7 -0
- package/dist/cjs/client/decorators/smartAccount.js +9 -0
- package/dist/cjs/client/decorators/smartAccount.js.map +1 -0
- package/dist/cjs/client/internal/smartAccountClientFromRpc.d.ts +11 -0
- package/dist/cjs/client/internal/smartAccountClientFromRpc.js +55 -0
- package/dist/cjs/client/internal/smartAccountClientFromRpc.js.map +1 -0
- package/dist/cjs/client/isAlchemySmartAccountClient.d.ts +5539 -0
- package/dist/cjs/client/isAlchemySmartAccountClient.js +9 -0
- package/dist/cjs/client/isAlchemySmartAccountClient.js.map +1 -0
- package/dist/cjs/client/rpcClient.d.ts +8 -0
- package/dist/cjs/client/rpcClient.js +36 -0
- package/dist/cjs/client/rpcClient.js.map +1 -0
- package/dist/cjs/client/smartAccountClient.d.ts +18 -0
- package/dist/cjs/client/smartAccountClient.js +32 -0
- package/dist/cjs/client/smartAccountClient.js.map +1 -0
- package/dist/cjs/client/types.d.ts +76 -0
- package/dist/cjs/client/types.js +3 -0
- package/dist/cjs/client/types.js.map +1 -0
- package/dist/cjs/defaults.d.ts +3 -0
- package/dist/cjs/defaults.js +23 -0
- package/dist/cjs/defaults.js.map +1 -0
- package/dist/cjs/errors/base.d.ts +4 -0
- package/dist/cjs/errors/base.js +18 -0
- package/dist/cjs/errors/base.js.map +1 -0
- package/dist/cjs/errors/rpcUrl.d.ts +10 -0
- package/dist/cjs/errors/rpcUrl.js +26 -0
- package/dist/cjs/errors/rpcUrl.js.map +1 -0
- package/dist/cjs/gas-manager.d.ts +6 -0
- package/dist/cjs/gas-manager.js +35 -0
- package/dist/cjs/gas-manager.js.map +1 -0
- package/dist/cjs/index.d.ts +24 -0
- package/dist/cjs/index.js +32 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/middleware/feeEstimator.d.ts +3 -0
- package/dist/cjs/middleware/feeEstimator.js +26 -0
- package/dist/cjs/middleware/feeEstimator.js.map +1 -0
- package/dist/cjs/middleware/gasManager.d.ts +29 -0
- package/dist/cjs/middleware/gasManager.js +148 -0
- package/dist/cjs/middleware/gasManager.js.map +1 -0
- package/dist/cjs/middleware/userOperationSimulator.d.ts +3 -0
- package/dist/cjs/middleware/userOperationSimulator.js +21 -0
- package/dist/cjs/middleware/userOperationSimulator.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/schema.d.ts +396 -0
- package/dist/cjs/schema.js +26 -0
- package/dist/cjs/schema.js.map +1 -0
- package/dist/cjs/type.d.ts +3 -0
- package/dist/cjs/type.js +3 -0
- package/dist/cjs/type.js.map +1 -0
- package/dist/cjs/version.d.ts +1 -0
- package/dist/cjs/version.js +5 -0
- package/dist/cjs/version.js.map +1 -0
- package/dist/esm/actions/simulateUserOperationChanges.d.ts +5 -0
- package/dist/esm/actions/simulateUserOperationChanges.js +20 -0
- package/dist/esm/actions/simulateUserOperationChanges.js.map +1 -0
- package/dist/esm/actions/types.d.ts +39 -0
- package/dist/esm/actions/types.js +14 -0
- package/dist/esm/actions/types.js.map +1 -0
- package/dist/esm/chains.d.ts +5 -0
- package/dist/esm/chains.js +12 -0
- package/dist/esm/chains.js.map +1 -0
- package/dist/esm/client/decorators/alchemyEnhancedApis.d.ts +14 -0
- package/dist/esm/client/decorators/alchemyEnhancedApis.js +22 -0
- package/dist/esm/client/decorators/alchemyEnhancedApis.js.map +1 -0
- package/dist/esm/client/decorators/smartAccount.d.ts +7 -0
- package/dist/esm/client/decorators/smartAccount.js +5 -0
- package/dist/esm/client/decorators/smartAccount.js.map +1 -0
- package/dist/esm/client/internal/smartAccountClientFromRpc.d.ts +11 -0
- package/dist/esm/client/internal/smartAccountClientFromRpc.js +50 -0
- package/dist/esm/client/internal/smartAccountClientFromRpc.js.map +1 -0
- package/dist/esm/client/isAlchemySmartAccountClient.d.ts +5539 -0
- package/dist/esm/client/isAlchemySmartAccountClient.js +5 -0
- package/dist/esm/client/isAlchemySmartAccountClient.js.map +1 -0
- package/dist/esm/client/rpcClient.d.ts +8 -0
- package/dist/esm/client/rpcClient.js +32 -0
- package/dist/esm/client/rpcClient.js.map +1 -0
- package/dist/esm/client/smartAccountClient.d.ts +18 -0
- package/dist/esm/client/smartAccountClient.js +31 -0
- package/dist/esm/client/smartAccountClient.js.map +1 -0
- package/dist/esm/client/types.d.ts +76 -0
- package/dist/esm/client/types.js +2 -0
- package/dist/esm/client/types.js.map +1 -0
- package/dist/esm/defaults.d.ts +3 -0
- package/dist/esm/defaults.js +19 -0
- package/dist/esm/defaults.js.map +1 -0
- package/dist/esm/errors/base.d.ts +4 -0
- package/dist/esm/errors/base.js +14 -0
- package/dist/esm/errors/base.js.map +1 -0
- package/dist/esm/errors/rpcUrl.d.ts +10 -0
- package/dist/esm/errors/rpcUrl.js +24 -0
- package/dist/esm/errors/rpcUrl.js.map +1 -0
- package/dist/esm/gas-manager.d.ts +6 -0
- package/dist/esm/gas-manager.js +31 -0
- package/dist/esm/gas-manager.js.map +1 -0
- package/dist/esm/index.d.ts +24 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/middleware/feeEstimator.d.ts +3 -0
- package/dist/esm/middleware/feeEstimator.js +22 -0
- package/dist/esm/middleware/feeEstimator.js.map +1 -0
- package/dist/esm/middleware/gasManager.d.ts +29 -0
- package/dist/esm/middleware/gasManager.js +144 -0
- package/dist/esm/middleware/gasManager.js.map +1 -0
- package/dist/esm/middleware/userOperationSimulator.d.ts +3 -0
- package/dist/esm/middleware/userOperationSimulator.js +17 -0
- package/dist/esm/middleware/userOperationSimulator.js.map +1 -0
- package/dist/esm/package.json +1 -0
- package/dist/esm/schema.d.ts +396 -0
- package/dist/esm/schema.js +20 -0
- package/dist/esm/schema.js.map +1 -0
- package/dist/esm/type.d.ts +3 -0
- package/dist/esm/type.js +2 -0
- package/dist/esm/type.js.map +1 -0
- package/dist/esm/version.d.ts +1 -0
- package/dist/esm/version.js +2 -0
- package/dist/esm/version.js.map +1 -0
- package/dist/types/actions/simulateUserOperationChanges.d.ts +6 -0
- package/dist/types/actions/simulateUserOperationChanges.d.ts.map +1 -0
- package/dist/types/actions/types.d.ts +44 -0
- package/dist/types/actions/types.d.ts.map +1 -0
- package/dist/types/chains.d.ts +6 -0
- package/dist/types/chains.d.ts.map +1 -0
- package/dist/types/client/decorators/alchemyEnhancedApis.d.ts +15 -0
- package/dist/types/client/decorators/alchemyEnhancedApis.d.ts.map +1 -0
- package/dist/types/client/decorators/smartAccount.d.ts +8 -0
- package/dist/types/client/decorators/smartAccount.d.ts.map +1 -0
- package/dist/types/client/internal/smartAccountClientFromRpc.d.ts +19 -0
- package/dist/types/client/internal/smartAccountClientFromRpc.d.ts.map +1 -0
- package/dist/types/client/isAlchemySmartAccountClient.d.ts +5540 -0
- package/dist/types/client/isAlchemySmartAccountClient.d.ts.map +1 -0
- package/dist/types/client/rpcClient.d.ts +9 -0
- package/dist/types/client/rpcClient.d.ts.map +1 -0
- package/dist/types/client/smartAccountClient.d.ts +19 -0
- package/dist/types/client/smartAccountClient.d.ts.map +1 -0
- package/dist/types/client/types.d.ts +77 -0
- package/dist/types/client/types.d.ts.map +1 -0
- package/dist/types/defaults.d.ts +4 -0
- package/dist/types/defaults.d.ts.map +1 -0
- package/dist/types/errors/base.d.ts +5 -0
- package/dist/types/errors/base.d.ts.map +1 -0
- package/dist/types/errors/rpcUrl.d.ts +11 -0
- package/dist/types/errors/rpcUrl.d.ts.map +1 -0
- package/dist/types/gas-manager.d.ts +7 -0
- package/dist/types/gas-manager.d.ts.map +1 -0
- package/dist/types/index.d.ts +25 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/middleware/feeEstimator.d.ts +4 -0
- package/dist/types/middleware/feeEstimator.d.ts.map +1 -0
- package/dist/types/middleware/gasManager.d.ts +94 -0
- package/dist/types/middleware/gasManager.d.ts.map +1 -0
- package/dist/types/middleware/userOperationSimulator.d.ts +4 -0
- package/dist/types/middleware/userOperationSimulator.d.ts.map +1 -0
- package/dist/types/schema.d.ts +397 -0
- package/dist/types/schema.d.ts.map +1 -0
- package/dist/types/type.d.ts +4 -0
- package/dist/types/type.d.ts.map +1 -0
- package/dist/types/version.d.ts +2 -0
- package/dist/types/version.d.ts.map +1 -0
- package/package.json +75 -0
- package/src/actions/simulateUserOperationChanges.ts +49 -0
- package/src/actions/types.ts +49 -0
- package/src/chains.ts +19 -0
- package/src/client/decorators/alchemyEnhancedApis.ts +54 -0
- package/src/client/decorators/smartAccount.ts +37 -0
- package/src/client/internal/smartAccountClientFromRpc.ts +121 -0
- package/src/client/isAlchemySmartAccountClient.ts +19 -0
- package/src/client/rpcClient.ts +50 -0
- package/src/client/smartAccountClient.ts +153 -0
- package/src/client/types.ts +89 -0
- package/src/defaults.ts +34 -0
- package/src/errors/base.ts +7 -0
- package/src/errors/rpcUrl.ts +20 -0
- package/src/gas-manager.ts +53 -0
- package/src/index.ts +24 -0
- package/src/middleware/feeEstimator.ts +40 -0
- package/src/middleware/gasManager.ts +432 -0
- package/src/middleware/userOperationSimulator.ts +26 -0
- package/src/schema.ts +33 -0
- package/src/type.ts +4 -0
- package/src/version.ts +3 -0
|
@@ -0,0 +1 @@
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6OAcvC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ConnectionConfig, type NoUndefined } from "@aa-sdk/core";
|
|
2
|
+
import { type Chain, type HttpTransportConfig } from "viem";
|
|
3
|
+
import type { ClientWithAlchemyMethods } from "./types.js";
|
|
4
|
+
export declare const createAlchemyPublicRpcClient: ({ chain: chain_, connectionConfig, fetchOptions, }: {
|
|
5
|
+
connectionConfig: ConnectionConfig;
|
|
6
|
+
chain: Chain;
|
|
7
|
+
fetchOptions?: Omit<RequestInit, "body"> | undefined;
|
|
8
|
+
}) => ClientWithAlchemyMethods;
|
|
9
|
+
//# sourceMappingURL=rpcClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpcClient.d.ts","sourceRoot":"","sources":["../../../src/client/rpcClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAQ,KAAK,KAAK,EAAE,KAAK,mBAAmB,EAAE,MAAM,MAAM,CAAC;AAGlE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,eAAO,MAAM,4BAA4B;sBAKrB,gBAAgB;WAC3B,KAAK;;MAEV,wBA+BH,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type Prettify, type SmartAccountClient, type SmartAccountClientActions, type SmartAccountClientConfig, type SmartAccountClientRpcSchema, type SmartContractAccount, type UserOperationContext } from "@aa-sdk/core";
|
|
2
|
+
import { type Chain, type Transport } from "viem";
|
|
3
|
+
import { type AlchemyGasManagerConfig } from "../middleware/gasManager.js";
|
|
4
|
+
import type { AlchemyProviderConfig } from "../type.js";
|
|
5
|
+
import type { AlchemySmartAccountClientActions } from "./decorators/smartAccount.js";
|
|
6
|
+
import type { AlchemyRpcSchema } from "./types.js";
|
|
7
|
+
export type AlchemySmartAccountClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartContractAccount | undefined = SmartContractAccount | undefined, context extends UserOperationContext | undefined = UserOperationContext | undefined> = {
|
|
8
|
+
account?: account;
|
|
9
|
+
useSimulation?: boolean;
|
|
10
|
+
gasManagerConfig?: AlchemyGasManagerConfig;
|
|
11
|
+
} & AlchemyProviderConfig & Pick<SmartAccountClientConfig<transport, chain, account, context>, "customMiddleware" | "feeEstimator" | "gasEstimator" | "signUserOperation">;
|
|
12
|
+
export type BaseAlchemyActions<chain extends Chain | undefined = Chain | undefined, account extends SmartContractAccount | undefined = SmartContractAccount | undefined, context extends UserOperationContext | undefined = UserOperationContext | undefined> = SmartAccountClientActions<chain, account, context> & AlchemySmartAccountClientActions<account, context>;
|
|
13
|
+
export type AlchemySmartAccountClient_Base<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartContractAccount | undefined = SmartContractAccount | undefined, actions extends Record<string, unknown> = Record<string, unknown>, context extends UserOperationContext | undefined = UserOperationContext | undefined> = Prettify<SmartAccountClient<transport, chain, account, actions & BaseAlchemyActions<chain, account, context>, [
|
|
14
|
+
...SmartAccountClientRpcSchema,
|
|
15
|
+
...AlchemyRpcSchema
|
|
16
|
+
], context>>;
|
|
17
|
+
export type AlchemySmartAccountClient<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartContractAccount | undefined = SmartContractAccount | undefined, actions extends Record<string, unknown> = Record<string, unknown>, context extends UserOperationContext | undefined = UserOperationContext | undefined> = Prettify<AlchemySmartAccountClient_Base<transport, chain, account, actions, context>>;
|
|
18
|
+
export declare function createAlchemySmartAccountClient<TTransport extends Transport = Transport, TChain extends Chain = Chain, TAccount extends SmartContractAccount | undefined = SmartContractAccount | undefined, TContext extends UserOperationContext | undefined = UserOperationContext | undefined>({ account, gasManagerConfig, useSimulation, feeEstimator, customMiddleware, gasEstimator, signUserOperation, ...config_ }: AlchemySmartAccountClientConfig<TTransport, TChain, TAccount, TContext>): AlchemySmartAccountClient<TTransport, TChain, TAccount, Record<string, never>, TContext>;
|
|
19
|
+
//# sourceMappingURL=smartAccountClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"smartAccountClient.d.ts","sourceRoot":"","sources":["../../../src/client/smartAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,SAAS,EAAE,MAAM,MAAM,CAAC;AAElD,OAAO,EAA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AAU,EACV,MAAM,EACN,QAAQ,EACR,QAAQ,CACT,GAAG,yBAAyB,CAC3B,UAAU,EACV,MAAM,EACN,QAAQ,EACR,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACrB,QAAQ,CACT,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { type BundlerClient, type UserOperationRequest } from "@aa-sdk/core";
|
|
2
|
+
import type { Address, Hex, HttpTransport } from "viem";
|
|
3
|
+
import type { SimulateUserOperationAssetChangesRequest, SimulateUserOperationAssetChangesResponse } from "../actions/types";
|
|
4
|
+
import type { RequestGasAndPaymasterAndDataOverrides, RequestGasAndPaymasterAndDataResponse, RequestPaymasterAndDataResponse } from "../middleware/gasManager";
|
|
5
|
+
export type AlchemyRpcSchema = [
|
|
6
|
+
{
|
|
7
|
+
Method: "alchemy_requestPaymasterAndData";
|
|
8
|
+
Parameters: [
|
|
9
|
+
{
|
|
10
|
+
policyId: string;
|
|
11
|
+
entryPoint: Address;
|
|
12
|
+
userOperation: UserOperationRequest;
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
ReturnType: RequestPaymasterAndDataResponse;
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
Method: "alchemy_requestGasAndPaymasterAndData";
|
|
19
|
+
Parameters: [
|
|
20
|
+
{
|
|
21
|
+
policyId: string;
|
|
22
|
+
entryPoint: Address;
|
|
23
|
+
userOperation: UserOperationRequest;
|
|
24
|
+
dummySignature: Hex;
|
|
25
|
+
overrides?: RequestGasAndPaymasterAndDataOverrides;
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
ReturnType: RequestGasAndPaymasterAndDataResponse;
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
Method: "alchemy_simulateUserOperationAssetChanges";
|
|
32
|
+
Parameters: SimulateUserOperationAssetChangesRequest;
|
|
33
|
+
ReturnType: SimulateUserOperationAssetChangesResponse;
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
Method: "rundler_maxPriorityFeePerGas";
|
|
37
|
+
Parameters: [];
|
|
38
|
+
ReturnType: UserOperationRequest["maxPriorityFeePerGas"];
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
export type ClientWithAlchemyMethods = BundlerClient<HttpTransport> & {
|
|
42
|
+
request: BundlerClient<HttpTransport>["request"] & {
|
|
43
|
+
request(args: {
|
|
44
|
+
method: "alchemy_requestPaymasterAndData";
|
|
45
|
+
params: [
|
|
46
|
+
{
|
|
47
|
+
policyId: string;
|
|
48
|
+
entryPoint: Address;
|
|
49
|
+
userOperation: UserOperationRequest;
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
}): Promise<RequestPaymasterAndDataResponse>;
|
|
53
|
+
request(args: {
|
|
54
|
+
method: "alchemy_requestGasAndPaymasterAndData";
|
|
55
|
+
params: [
|
|
56
|
+
{
|
|
57
|
+
policyId: string;
|
|
58
|
+
entryPoint: Address;
|
|
59
|
+
userOperation: UserOperationRequest;
|
|
60
|
+
dummySignature: Hex;
|
|
61
|
+
overrides?: RequestGasAndPaymasterAndDataOverrides;
|
|
62
|
+
}
|
|
63
|
+
];
|
|
64
|
+
}): Promise<RequestGasAndPaymasterAndDataResponse>;
|
|
65
|
+
request(args: {
|
|
66
|
+
method: "alchemy_simulateUserOperationAssetChanges";
|
|
67
|
+
params: SimulateUserOperationAssetChangesRequest;
|
|
68
|
+
}): Promise<SimulateUserOperationAssetChangesResponse>;
|
|
69
|
+
request(args: {
|
|
70
|
+
method: "rundler_maxPriorityFeePerGas";
|
|
71
|
+
params: [];
|
|
72
|
+
}): Promise<UserOperationRequest["maxPriorityFeePerGas"]>;
|
|
73
|
+
}["request"];
|
|
74
|
+
} & {
|
|
75
|
+
updateHeaders: (headers: HeadersInit) => void;
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/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AAK,KACX,uBAoBF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/errors/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,cAAc,CAAC;AAG1D,8BAAsB,SAAU,SAAQ,aAAa;IAE1C,OAAO,SAAW;CAC5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ConnectionConfig } from "@aa-sdk/core";
|
|
2
|
+
import { type Chain } from "viem";
|
|
3
|
+
import { BaseError } from "./base.js";
|
|
4
|
+
export declare class InvalidRpcUrlError extends BaseError {
|
|
5
|
+
name: string;
|
|
6
|
+
constructor(context: {
|
|
7
|
+
chain: Chain;
|
|
8
|
+
connectionConfig: ConnectionConfig;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=rpcUrl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpcUrl.d.ts","sourceRoot":"","sources":["../../../src/errors/rpcUrl.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,qBAAa,kBAAmB,SAAQ,SAAS;IACtC,IAAI,SAAwB;gBAEzB,OAAO,EAAE;QAAE,KAAK,EAAE,KAAK,CAAC;QAAC,gBAAgB,EAAE,gBAAgB,CAAA;KAAE;CAY1E"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Address, Chain } from "viem";
|
|
2
|
+
export declare const AlchemyPaymasterAddressV3 = "0x4f84a207A80c39E9e8BaE717c1F25bA7AD1fB08F";
|
|
3
|
+
export declare const AlchemyPaymasterAddressV2 = "0x4Fd9098af9ddcB41DA48A1d78F91F1398965addc";
|
|
4
|
+
export declare const ArbSepoliaPaymasterAddress = "0x0804Afe6EEFb73ce7F93CD0d5e7079a5a8068592";
|
|
5
|
+
export declare const AlchemyPaymasterAddressV1 = "0xc03aac639bb21233e0139381970328db8bceeb67";
|
|
6
|
+
export declare const getAlchemyPaymasterAddress: (chain: Chain) => Address;
|
|
7
|
+
//# sourceMappingURL=gas-manager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gas-manager.d.ts","sourceRoot":"","sources":["../../src/gas-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAmB3C,eAAO,MAAM,yBAAyB,+CACQ,CAAC;AAC/C,eAAO,MAAM,yBAAyB,+CACQ,CAAC;AAC/C,eAAO,MAAM,0BAA0B,+CACO,CAAC;AAC/C,eAAO,MAAM,yBAAyB,+CACQ,CAAC;AAE/C,eAAO,MAAM,0BAA0B,UAAW,KAAK,KAAG,OAwBzD,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type * from "./actions/simulateUserOperationChanges.js";
|
|
2
|
+
export { simulateUserOperationChanges } from "./actions/simulateUserOperationChanges.js";
|
|
3
|
+
export type * from "./actions/types.js";
|
|
4
|
+
export { defineAlchemyChain } from "./chains.js";
|
|
5
|
+
export type * from "./client/decorators/alchemyEnhancedApis.js";
|
|
6
|
+
export { alchemyEnhancedApiActions } from "./client/decorators/alchemyEnhancedApis.js";
|
|
7
|
+
export type * from "./client/decorators/smartAccount.js";
|
|
8
|
+
export { alchemyActions } from "./client/decorators/smartAccount.js";
|
|
9
|
+
export { createAlchemySmartAccountClientFromRpcClient as createAlchemySmartAccountClientFromExisting } from "./client/internal/smartAccountClientFromRpc.js";
|
|
10
|
+
export { isAlchemySmartAccountClient } from "./client/isAlchemySmartAccountClient.js";
|
|
11
|
+
export type * from "./client/rpcClient.js";
|
|
12
|
+
export { createAlchemyPublicRpcClient } from "./client/rpcClient.js";
|
|
13
|
+
export type * from "./client/smartAccountClient.js";
|
|
14
|
+
export { createAlchemySmartAccountClient } from "./client/smartAccountClient.js";
|
|
15
|
+
export type * from "./client/types.js";
|
|
16
|
+
export { getDefaultUserOperationFeeOptions } from "./defaults.js";
|
|
17
|
+
export { getAlchemyPaymasterAddress } from "./gas-manager.js";
|
|
18
|
+
export { alchemyFeeEstimator } from "./middleware/feeEstimator.js";
|
|
19
|
+
export type * from "./middleware/gasManager.js";
|
|
20
|
+
export { alchemyGasManagerMiddleware } from "./middleware/gasManager.js";
|
|
21
|
+
export { alchemyUserOperationSimulator } from "./middleware/userOperationSimulator.js";
|
|
22
|
+
export type * from "./schema.js";
|
|
23
|
+
export { AlchemyProviderConfigSchema } from "./schema.js";
|
|
24
|
+
export type { AlchemyProviderConfig } from "./type.js";
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,2CAA2C,CAAC;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,mBAAmB,oBAAoB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,mBAAmB,4CAA4C,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,mBAAmB,qCAAqC,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,4CAA4C,IAAI,2CAA2C,EAAE,MAAM,gDAAgD,CAAC;AAC7J,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,mBAAmB,uBAAuB,CAAC;AAC3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,mBAAmB,gCAAgC,CAAC;AACpD,OAAO,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACjF,mBAAmB,mBAAmB,CAAC;AACvC,OAAO,EAAE,iCAAiC,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,mBAAmB,4BAA4B,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AACvF,mBAAmB,aAAa,CAAC;AACjC,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAC1D,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ClientMiddlewareFn } from "@aa-sdk/core";
|
|
2
|
+
import type { ClientWithAlchemyMethods } from "../client/types";
|
|
3
|
+
export declare const alchemyFeeEstimator: <C extends ClientWithAlchemyMethods>(client: C) => ClientMiddlewareFn;
|
|
4
|
+
//# sourceMappingURL=feeEstimator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feeEstimator.d.ts","sourceRoot":"","sources":["../../../src/middleware/feeEstimator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,SAAS,wBAAwB,EACnE,MAAM,EAAE,CAAC,KACN,kBAiCF,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { Address, ClientMiddlewareConfig, ClientMiddlewareFn, EntryPointVersion, Multiplier, UserOperationRequest } from "@aa-sdk/core";
|
|
2
|
+
import { type Hex } from "viem";
|
|
3
|
+
import type { ClientWithAlchemyMethods } from "../client/types";
|
|
4
|
+
/**
|
|
5
|
+
* overrides value for [`alchemy_requestGasAndPaymasterData`](https://docs.alchemy.com/reference/alchemy-requestgasandpaymasteranddata)
|
|
6
|
+
*
|
|
7
|
+
* @template {EntryPointVersion} TEntryPointVersion entry point version type
|
|
8
|
+
*/
|
|
9
|
+
export type RequestGasAndPaymasterAndDataOverrides<TEntryPointVersion extends EntryPointVersion = EntryPointVersion> = Partial<{
|
|
10
|
+
maxFeePerGas: UserOperationRequest<TEntryPointVersion>["maxFeePerGas"] | Multiplier;
|
|
11
|
+
maxPriorityFeePerGas: UserOperationRequest<TEntryPointVersion>["maxPriorityFeePerGas"] | Multiplier;
|
|
12
|
+
callGasLimit: UserOperationRequest<TEntryPointVersion>["callGasLimit"] | Multiplier;
|
|
13
|
+
verificationGasLimit: UserOperationRequest<TEntryPointVersion>["verificationGasLimit"] | Multiplier;
|
|
14
|
+
preVerificationGas: UserOperationRequest<TEntryPointVersion>["preVerificationGas"] | Multiplier;
|
|
15
|
+
} & TEntryPointVersion extends "0.7.0" ? {
|
|
16
|
+
paymasterVerificationGasLimit: UserOperationRequest<"0.7.0">["paymasterVerificationGasLimit"] | Multiplier;
|
|
17
|
+
paymasterPostOpGasLimit: UserOperationRequest<"0.7.0">["paymasterPostOpGasLimit"] | Multiplier;
|
|
18
|
+
} : {}>;
|
|
19
|
+
/**
|
|
20
|
+
* [`alchemy-requestpaymasteranddata`](https://docs.alchemy.com/reference/alchemy-requestpaymasteranddata)
|
|
21
|
+
* response type
|
|
22
|
+
*
|
|
23
|
+
* @template {EntryPointVersion} TEntryPointVersion entry point version type
|
|
24
|
+
*/
|
|
25
|
+
export type RequestPaymasterAndDataResponse<TEntryPointVersion extends EntryPointVersion = EntryPointVersion> = TEntryPointVersion extends "0.6.0" ? {
|
|
26
|
+
paymasterAndData: UserOperationRequest<"0.6.0">["paymasterAndData"];
|
|
27
|
+
} : TEntryPointVersion extends "0.7.0" ? Pick<UserOperationRequest<"0.7.0">, "paymaster" | "paymasterData"> : {};
|
|
28
|
+
/**
|
|
29
|
+
* [`alchemy_requestGasAndPaymasterData`](https://docs.alchemy.com/reference/alchemy-requestgasandpaymasteranddata)
|
|
30
|
+
* response type
|
|
31
|
+
*
|
|
32
|
+
* @template {EntryPointVersion} TEntryPointVersion entry point version type
|
|
33
|
+
*/
|
|
34
|
+
export type RequestGasAndPaymasterAndDataResponse<TEntryPointVersion extends EntryPointVersion = EntryPointVersion> = Pick<UserOperationRequest, "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "maxFeePerGas" | "maxPriorityFeePerGas"> & RequestPaymasterAndDataResponse<TEntryPointVersion>;
|
|
35
|
+
/**
|
|
36
|
+
* Alchemy gas manager configuration with gas policy id and optional gas estimation options
|
|
37
|
+
*
|
|
38
|
+
* To create a Gas Manager Policy, go to the [gas manager](https://dashboard.alchemy.com/gas-manager?a=embedded-accounts-get-started)
|
|
39
|
+
* page of the Alchemy dashboard and click the “Create new policy” button.
|
|
40
|
+
*/
|
|
41
|
+
export interface AlchemyGasManagerConfig {
|
|
42
|
+
/**
|
|
43
|
+
* the policy id of the gas manager you want to use.
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
policyId: string;
|
|
47
|
+
/**
|
|
48
|
+
* optional option configurable for the gas estimation portion of the Alchemy gas manager
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
gasEstimationOptions?: AlchemyGasEstimationOptions;
|
|
52
|
+
/**
|
|
53
|
+
* paymaster address to use for the gas estimation.
|
|
54
|
+
* If not provided, the default paymaster address for the chain will be used.
|
|
55
|
+
*
|
|
56
|
+
*/
|
|
57
|
+
paymasterAddress?: Address;
|
|
58
|
+
/**
|
|
59
|
+
* dummy paymaster data to use for the gas estimation.
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
dummyData?: Hex;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Alchemy gas manager configuration option configurable for the gas estimation portion of the Alchemy gas manager
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
export interface AlchemyGasEstimationOptions {
|
|
69
|
+
/**
|
|
70
|
+
* disable gas estimation and fallback to the default gas estimation.
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
disableGasEstimation: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* optional fallback gas estimator to use when gas estimation is disabled.
|
|
76
|
+
*
|
|
77
|
+
*/
|
|
78
|
+
fallbackGasEstimator?: ClientMiddlewareFn;
|
|
79
|
+
/**
|
|
80
|
+
* optional fallback fee estimator to use when gas estimation is disabled.
|
|
81
|
+
*
|
|
82
|
+
*/
|
|
83
|
+
fallbackFeeDataGetter?: ClientMiddlewareFn;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Alchemy gas manager middleware used as the paymaster middleware overrides param to the client middleware config
|
|
87
|
+
*
|
|
88
|
+
* @template {ClientWithAlchemyMethods} C
|
|
89
|
+
* @param client client with alchemy methods
|
|
90
|
+
* @param config alchemy gas manager configuration
|
|
91
|
+
* @returns the gas estimator, fee estimator, and paymasterAndData middleware for Alchemy gas manager
|
|
92
|
+
*/
|
|
93
|
+
export declare function alchemyGasManagerMiddleware<C extends ClientWithAlchemyMethods>(client: C, config: AlchemyGasManagerConfig): Pick<ClientMiddlewareConfig, "paymasterAndData" | "feeEstimator" | "gasEstimator">;
|
|
94
|
+
//# sourceMappingURL=gasManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gasManager.d.ts","sourceRoot":"","sources":["../../../src/middleware/gasManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EAGV,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAUtB,OAAO,EAA0B,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAIhE;;;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ACd,sBAAsB,CACzB,GACC,+BAA+B,CAAC,kBAAkB,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,2BAA2B,CAAC;IACnD;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,oBAAoB,EAAE,OAAO,CAAC;IAC9B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,kBAAkB,CAAC;IAC1C;;;OAGG;IACH,qBAAqB,CAAC,EAAE,kBAAkB,CAAC;CAC5C;AAyBD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,wBAAwB,EAC5E,MAAM,EAAE,CAAC,EACT,MAAM,EAAE,uBAAuB,GAC9B,IAAI,CACL,sBAAsB,EACtB,kBAAkB,GAAG,cAAc,GAAG,cAAc,CACrD,CA6DA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ClientMiddlewareFn } from "@aa-sdk/core";
|
|
2
|
+
import type { ClientWithAlchemyMethods } from "../client/types";
|
|
3
|
+
export declare function alchemyUserOperationSimulator<C extends ClientWithAlchemyMethods>(client: C): ClientMiddlewareFn;
|
|
4
|
+
//# sourceMappingURL=userOperationSimulator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userOperationSimulator.d.ts","sourceRoot":"","sources":["../../../src/middleware/userOperationSimulator.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,kBAAkB,EACxB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE,wBAAgB,6BAA6B,CAC3C,CAAC,SAAS,wBAAwB,EAClC,MAAM,EAAE,CAAC,GAAG,kBAAkB,CAgB/B"}
|