@zerodev/sdk 5.2.7 → 5.2.9

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.
Files changed (98) hide show
  1. package/_cjs/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js +2 -2
  2. package/_cjs/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js.map +1 -1
  3. package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js +2 -2
  4. package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -1
  5. package/_cjs/accounts/utils/multisend.js.map +1 -1
  6. package/_cjs/accounts/utils/toKernelPluginManager.js +8 -0
  7. package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
  8. package/_cjs/clients/decorators/kernel.js.map +1 -1
  9. package/_cjs/clients/fallbackKernelAccountClient.js +37 -0
  10. package/_cjs/clients/fallbackKernelAccountClient.js.map +1 -0
  11. package/_cjs/clients/index.js +3 -1
  12. package/_cjs/clients/index.js.map +1 -1
  13. package/_cjs/constants.js +2 -1
  14. package/_cjs/constants.js.map +1 -1
  15. package/_cjs/index.js +3 -1
  16. package/_cjs/index.js.map +1 -1
  17. package/_cjs/types/kernel.js.map +1 -1
  18. package/_esm/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js +0 -1
  19. package/_esm/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js.map +1 -1
  20. package/_esm/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js +0 -1
  21. package/_esm/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js.map +1 -1
  22. package/_esm/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js +2 -2
  23. package/_esm/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.js.map +1 -1
  24. package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js +2 -2
  25. package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -1
  26. package/_esm/accounts/kernel/v1/createKernelV1Account.js +0 -2
  27. package/_esm/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
  28. package/_esm/accounts/kernel/v2/createKernelV2Account.js +0 -1
  29. package/_esm/accounts/kernel/v2/createKernelV2Account.js.map +1 -1
  30. package/_esm/accounts/utils/multisend.js +0 -1
  31. package/_esm/accounts/utils/multisend.js.map +1 -1
  32. package/_esm/accounts/utils/toKernelPluginManager.js +9 -1
  33. package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
  34. package/_esm/clients/decorators/kernel.js +0 -2
  35. package/_esm/clients/decorators/kernel.js.map +1 -1
  36. package/_esm/clients/fallbackKernelAccountClient.js +38 -0
  37. package/_esm/clients/fallbackKernelAccountClient.js.map +1 -0
  38. package/_esm/clients/index.js +1 -0
  39. package/_esm/clients/index.js.map +1 -1
  40. package/_esm/clients/kernelAccountClient.js +0 -1
  41. package/_esm/clients/kernelAccountClient.js.map +1 -1
  42. package/_esm/constants.js +1 -1
  43. package/_esm/constants.js.map +1 -1
  44. package/_esm/index.js +1 -0
  45. package/_esm/index.js.map +1 -1
  46. package/_esm/providers/KernelEIP1193Provider.js +0 -2
  47. package/_esm/providers/KernelEIP1193Provider.js.map +1 -1
  48. package/_esm/types/kernel.js +0 -2
  49. package/_esm/types/kernel.js.map +1 -1
  50. package/_esm/utils.js +1 -1
  51. package/_esm/utils.js.map +1 -1
  52. package/_types/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.d.ts +1 -1
  53. package/_types/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.d.ts.map +1 -1
  54. package/_types/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.d.ts +1 -1
  55. package/_types/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.d.ts.map +1 -1
  56. package/_types/accounts/kernel/v1/createKernelV1Account.d.ts +1 -1
  57. package/_types/accounts/kernel/v1/createKernelV1Account.d.ts.map +1 -1
  58. package/_types/accounts/kernel/v2/createKernelV2Account.d.ts +1 -1
  59. package/_types/accounts/kernel/v2/createKernelV2Account.d.ts.map +1 -1
  60. package/_types/accounts/utils/multisend.d.ts +1 -1
  61. package/_types/accounts/utils/multisend.d.ts.map +1 -1
  62. package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
  63. package/_types/clients/decorators/kernel.d.ts +2 -2
  64. package/_types/clients/decorators/kernel.d.ts.map +1 -1
  65. package/_types/clients/fallbackKernelAccountClient.d.ts +600 -0
  66. package/_types/clients/fallbackKernelAccountClient.d.ts.map +1 -0
  67. package/_types/clients/index.d.ts +1 -0
  68. package/_types/clients/index.d.ts.map +1 -1
  69. package/_types/clients/kernelAccountClient.d.ts +1 -1
  70. package/_types/clients/kernelAccountClient.d.ts.map +1 -1
  71. package/_types/constants.d.ts +2 -1
  72. package/_types/constants.d.ts.map +1 -1
  73. package/_types/index.d.ts +1 -0
  74. package/_types/index.d.ts.map +1 -1
  75. package/_types/providers/KernelEIP1193Provider.d.ts +2 -2
  76. package/_types/providers/KernelEIP1193Provider.d.ts.map +1 -1
  77. package/_types/types/kernel.d.ts +6 -2
  78. package/_types/types/kernel.d.ts.map +1 -1
  79. package/_types/utils.d.ts +1 -1
  80. package/_types/utils.d.ts.map +1 -1
  81. package/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.ts +1 -1
  82. package/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.ts +1 -1
  83. package/accounts/kernel/utils/plugins/ep0_7/getEncodedPluginsData.ts +2 -2
  84. package/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.ts +2 -2
  85. package/accounts/kernel/v1/createKernelV1Account.ts +2 -2
  86. package/accounts/kernel/v2/createKernelV2Account.ts +1 -1
  87. package/accounts/utils/multisend.ts +1 -4
  88. package/accounts/utils/toKernelPluginManager.ts +16 -1
  89. package/clients/decorators/kernel.ts +2 -2
  90. package/clients/fallbackKernelAccountClient.ts +62 -0
  91. package/clients/index.ts +2 -0
  92. package/clients/kernelAccountClient.ts +1 -1
  93. package/constants.ts +3 -1
  94. package/index.ts +1 -0
  95. package/package.json +2 -8
  96. package/providers/KernelEIP1193Provider.ts +6 -6
  97. package/types/kernel.ts +7 -2
  98. package/utils.ts +2 -2
@@ -0,0 +1,600 @@
1
+ import type { EntryPoint } from "permissionless/types";
2
+ import type { Chain, Transport } from "viem";
3
+ import type { KernelSmartAccount } from "../accounts/index.js";
4
+ import type { KernelAccountClient } from "./kernelAccountClient.js";
5
+ export declare const createFallbackKernelAccountClient: <TEntryPoint extends EntryPoint, TTransport extends Transport, TChain extends Chain | undefined, TSmartAccount extends KernelSmartAccount<TEntryPoint> | undefined>(clients: {
6
+ account: TSmartAccount;
7
+ batch?: {
8
+ multicall?: boolean | {
9
+ batchSize?: number | undefined;
10
+ wait?: number | undefined;
11
+ } | undefined;
12
+ } | undefined;
13
+ cacheTime: number;
14
+ ccipRead?: false | {
15
+ request?: ((parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>) | undefined;
16
+ } | undefined;
17
+ chain: TChain;
18
+ key: string;
19
+ name: string;
20
+ pollingInterval: number;
21
+ request: import("viem").EIP1193RequestFn<import("permissionless/types/bundler.js").BundlerRpcSchema<TEntryPoint>>;
22
+ transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
23
+ type: string;
24
+ uid: string;
25
+ sendTransaction: <TChainOverride extends Chain | undefined>(args: import("viem").SendTransactionParameters<TChain, TSmartAccount, TChainOverride>) => Promise<`0x${string}`>;
26
+ signMessage: (args: import("viem").SignMessageParameters<TSmartAccount>) => Promise<`0x${string}`>;
27
+ signTypedData: <const TTypedData extends {
28
+ [x: string]: readonly import("viem").TypedDataParameter[];
29
+ [x: `string[${string}]`]: undefined;
30
+ [x: `function[${string}]`]: undefined;
31
+ [x: `address[${string}]`]: undefined;
32
+ [x: `bool[${string}]`]: undefined;
33
+ [x: `bytes[${string}]`]: undefined;
34
+ [x: `bytes1[${string}]`]: undefined;
35
+ [x: `bytes5[${string}]`]: undefined;
36
+ [x: `bytes10[${string}]`]: undefined;
37
+ [x: `bytes20[${string}]`]: undefined;
38
+ [x: `bytes2[${string}]`]: undefined;
39
+ [x: `bytes3[${string}]`]: undefined;
40
+ [x: `bytes4[${string}]`]: undefined;
41
+ [x: `bytes6[${string}]`]: undefined;
42
+ [x: `bytes7[${string}]`]: undefined;
43
+ [x: `bytes8[${string}]`]: undefined;
44
+ [x: `bytes9[${string}]`]: undefined;
45
+ [x: `bytes11[${string}]`]: undefined;
46
+ [x: `bytes12[${string}]`]: undefined;
47
+ [x: `bytes13[${string}]`]: undefined;
48
+ [x: `bytes14[${string}]`]: undefined;
49
+ [x: `bytes15[${string}]`]: undefined;
50
+ [x: `bytes16[${string}]`]: undefined;
51
+ [x: `bytes17[${string}]`]: undefined;
52
+ [x: `bytes18[${string}]`]: undefined;
53
+ [x: `bytes19[${string}]`]: undefined;
54
+ [x: `bytes21[${string}]`]: undefined;
55
+ [x: `bytes22[${string}]`]: undefined;
56
+ [x: `bytes23[${string}]`]: undefined;
57
+ [x: `bytes24[${string}]`]: undefined;
58
+ [x: `bytes25[${string}]`]: undefined;
59
+ [x: `bytes26[${string}]`]: undefined;
60
+ [x: `bytes27[${string}]`]: undefined;
61
+ [x: `bytes28[${string}]`]: undefined;
62
+ [x: `bytes29[${string}]`]: undefined;
63
+ [x: `bytes30[${string}]`]: undefined;
64
+ [x: `bytes31[${string}]`]: undefined;
65
+ [x: `bytes32[${string}]`]: undefined;
66
+ [x: `int[${string}]`]: undefined;
67
+ [x: `int56[${string}]`]: undefined;
68
+ [x: `int40[${string}]`]: undefined;
69
+ [x: `int8[${string}]`]: undefined;
70
+ [x: `int16[${string}]`]: undefined;
71
+ [x: `int24[${string}]`]: undefined;
72
+ [x: `int32[${string}]`]: undefined;
73
+ [x: `int48[${string}]`]: undefined;
74
+ [x: `int64[${string}]`]: undefined;
75
+ [x: `int72[${string}]`]: undefined;
76
+ [x: `int80[${string}]`]: undefined;
77
+ [x: `int88[${string}]`]: undefined;
78
+ [x: `int96[${string}]`]: undefined;
79
+ [x: `int104[${string}]`]: undefined;
80
+ [x: `int112[${string}]`]: undefined;
81
+ [x: `int120[${string}]`]: undefined;
82
+ [x: `int128[${string}]`]: undefined;
83
+ [x: `int136[${string}]`]: undefined;
84
+ [x: `int144[${string}]`]: undefined;
85
+ [x: `int152[${string}]`]: undefined;
86
+ [x: `int160[${string}]`]: undefined;
87
+ [x: `int168[${string}]`]: undefined;
88
+ [x: `int176[${string}]`]: undefined;
89
+ [x: `int184[${string}]`]: undefined;
90
+ [x: `int192[${string}]`]: undefined;
91
+ [x: `int200[${string}]`]: undefined;
92
+ [x: `int208[${string}]`]: undefined;
93
+ [x: `int216[${string}]`]: undefined;
94
+ [x: `int224[${string}]`]: undefined;
95
+ [x: `int232[${string}]`]: undefined;
96
+ [x: `int240[${string}]`]: undefined;
97
+ [x: `int248[${string}]`]: undefined;
98
+ [x: `int256[${string}]`]: undefined;
99
+ [x: `uint[${string}]`]: undefined;
100
+ [x: `uint56[${string}]`]: undefined;
101
+ [x: `uint40[${string}]`]: undefined;
102
+ [x: `uint8[${string}]`]: undefined;
103
+ [x: `uint16[${string}]`]: undefined;
104
+ [x: `uint24[${string}]`]: undefined;
105
+ [x: `uint32[${string}]`]: undefined;
106
+ [x: `uint48[${string}]`]: undefined;
107
+ [x: `uint64[${string}]`]: undefined;
108
+ [x: `uint72[${string}]`]: undefined;
109
+ [x: `uint80[${string}]`]: undefined;
110
+ [x: `uint88[${string}]`]: undefined;
111
+ [x: `uint96[${string}]`]: undefined;
112
+ [x: `uint104[${string}]`]: undefined;
113
+ [x: `uint112[${string}]`]: undefined;
114
+ [x: `uint120[${string}]`]: undefined;
115
+ [x: `uint128[${string}]`]: undefined;
116
+ [x: `uint136[${string}]`]: undefined;
117
+ [x: `uint144[${string}]`]: undefined;
118
+ [x: `uint152[${string}]`]: undefined;
119
+ [x: `uint160[${string}]`]: undefined;
120
+ [x: `uint168[${string}]`]: undefined;
121
+ [x: `uint176[${string}]`]: undefined;
122
+ [x: `uint184[${string}]`]: undefined;
123
+ [x: `uint192[${string}]`]: undefined;
124
+ [x: `uint200[${string}]`]: undefined;
125
+ [x: `uint208[${string}]`]: undefined;
126
+ [x: `uint216[${string}]`]: undefined;
127
+ [x: `uint224[${string}]`]: undefined;
128
+ [x: `uint232[${string}]`]: undefined;
129
+ [x: `uint240[${string}]`]: undefined;
130
+ [x: `uint248[${string}]`]: undefined;
131
+ [x: `uint256[${string}]`]: undefined;
132
+ string?: undefined;
133
+ address?: undefined;
134
+ bool?: undefined;
135
+ bytes?: undefined;
136
+ bytes1?: undefined;
137
+ bytes5?: undefined;
138
+ bytes10?: undefined;
139
+ bytes20?: undefined;
140
+ bytes2?: undefined;
141
+ bytes3?: undefined;
142
+ bytes4?: undefined;
143
+ bytes6?: undefined;
144
+ bytes7?: undefined;
145
+ bytes8?: undefined;
146
+ bytes9?: undefined;
147
+ bytes11?: undefined;
148
+ bytes12?: undefined;
149
+ bytes13?: undefined;
150
+ bytes14?: undefined;
151
+ bytes15?: undefined;
152
+ bytes16?: undefined;
153
+ bytes17?: undefined;
154
+ bytes18?: undefined;
155
+ bytes19?: undefined;
156
+ bytes21?: undefined;
157
+ bytes22?: undefined;
158
+ bytes23?: undefined;
159
+ bytes24?: undefined;
160
+ bytes25?: undefined;
161
+ bytes26?: undefined;
162
+ bytes27?: undefined;
163
+ bytes28?: undefined;
164
+ bytes29?: undefined;
165
+ bytes30?: undefined;
166
+ bytes31?: undefined;
167
+ bytes32?: undefined;
168
+ int56?: undefined;
169
+ int40?: undefined;
170
+ int8?: undefined;
171
+ int16?: undefined;
172
+ int24?: undefined;
173
+ int32?: undefined;
174
+ int48?: undefined;
175
+ int64?: undefined;
176
+ int72?: undefined;
177
+ int80?: undefined;
178
+ int88?: undefined;
179
+ int96?: undefined;
180
+ int104?: undefined;
181
+ int112?: undefined;
182
+ int120?: undefined;
183
+ int128?: undefined;
184
+ int136?: undefined;
185
+ int144?: undefined;
186
+ int152?: undefined;
187
+ int160?: undefined;
188
+ int168?: undefined;
189
+ int176?: undefined;
190
+ int184?: undefined;
191
+ int192?: undefined;
192
+ int200?: undefined;
193
+ int208?: undefined;
194
+ int216?: undefined;
195
+ int224?: undefined;
196
+ int232?: undefined;
197
+ int240?: undefined;
198
+ int248?: undefined;
199
+ int256?: undefined;
200
+ uint56?: undefined;
201
+ uint40?: undefined;
202
+ uint8?: undefined;
203
+ uint16?: undefined;
204
+ uint24?: undefined;
205
+ uint32?: undefined;
206
+ uint48?: undefined;
207
+ uint64?: undefined;
208
+ uint72?: undefined;
209
+ uint80?: undefined;
210
+ uint88?: undefined;
211
+ uint96?: undefined;
212
+ uint104?: undefined;
213
+ uint112?: undefined;
214
+ uint120?: undefined;
215
+ uint128?: undefined;
216
+ uint136?: undefined;
217
+ uint144?: undefined;
218
+ uint152?: undefined;
219
+ uint160?: undefined;
220
+ uint168?: undefined;
221
+ uint176?: undefined;
222
+ uint184?: undefined;
223
+ uint192?: undefined;
224
+ uint200?: undefined;
225
+ uint208?: undefined;
226
+ uint216?: undefined;
227
+ uint224?: undefined;
228
+ uint232?: undefined;
229
+ uint240?: undefined;
230
+ uint248?: undefined;
231
+ uint256?: undefined;
232
+ } | {
233
+ [key: string]: unknown;
234
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TSmartAccount>) => Promise<`0x${string}`>;
235
+ deployContract: <const TAbi extends readonly unknown[] | import("viem").Abi, TChainOverride_1 extends Chain | undefined = undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TSmartAccount, TChainOverride_1> extends infer T ? { [K in keyof T]: import("viem").DeployContractParameters<TAbi, TChain, TSmartAccount, TChainOverride_1>[K]; } : never) => Promise<`0x${string}`>;
236
+ writeContract: <const TAbi_1 extends readonly unknown[] | import("viem").Abi, TFunctionName extends import("viem").ContractFunctionName<TAbi_1, "payable" | "nonpayable"> = import("viem").ContractFunctionName<TAbi_1, "payable" | "nonpayable">, TArgs extends import("viem").ContractFunctionArgs<TAbi_1, "payable" | "nonpayable", TFunctionName> = import("viem").ContractFunctionArgs<TAbi_1, "payable" | "nonpayable", TFunctionName>, TChainOverride_2 extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TArgs, TChain, TSmartAccount, TChainOverride_2>) => Promise<`0x${string}`>;
237
+ prepareUserOperationRequest: <TTransport_1 extends Transport>(args: (import("permissionless/_types/actions/smartAccount.js").PrepareUserOperationRequestParameters<TEntryPoint, TSmartAccount> extends infer T_3 ? { [K_2 in keyof T_3]: import("permissionless/_types/actions/smartAccount.js").PrepareUserOperationRequestParameters<TEntryPoint, TSmartAccount>[K_2]; } : never) extends infer T_1 ? { [K_1 in keyof T_1]: (import("permissionless/_types/actions/smartAccount.js").PrepareUserOperationRequestParameters<TEntryPoint, TSmartAccount> extends infer T_2 ? { [K_2 in keyof T_2]: import("permissionless/_types/actions/smartAccount.js").PrepareUserOperationRequestParameters<TEntryPoint, TSmartAccount>[K_2]; } : never)[K_1]; } : never, stateOverrides?: import("permissionless/_types/types/bundler.js").StateOverrides | undefined) => Promise<import("permissionless/types").UserOperation<import("permissionless/types").GetEntryPointVersion<TEntryPoint>> extends infer T_4 ? { [K_3 in keyof T_4]: import("permissionless/types").UserOperation<import("permissionless/types").GetEntryPointVersion<TEntryPoint>>[K_3]; } : never>;
238
+ sendUserOperation: <TTransport_2 extends Transport>(args: (import("permissionless/_types/actions/smartAccount.js").SendUserOperationParameters<TEntryPoint, TSmartAccount> extends infer T_7 ? { [K_5 in keyof T_7]: import("permissionless/_types/actions/smartAccount.js").SendUserOperationParameters<TEntryPoint, TSmartAccount>[K_5]; } : never) extends infer T_5 ? { [K_4 in keyof T_5]: (import("permissionless/_types/actions/smartAccount.js").SendUserOperationParameters<TEntryPoint, TSmartAccount> extends infer T_6 ? { [K_5 in keyof T_6]: import("permissionless/_types/actions/smartAccount.js").SendUserOperationParameters<TEntryPoint, TSmartAccount>[K_5]; } : never)[K_4]; } : never) => Promise<`0x${string}`>;
239
+ sendTransactions: (args: import("permissionless/_types/actions/smartAccount.js").SendTransactionsWithPaymasterParameters<TEntryPoint, TSmartAccount> extends infer T_8 ? { [K_6 in keyof T_8]: import("permissionless/_types/actions/smartAccount.js").SendTransactionsWithPaymasterParameters<TEntryPoint, TSmartAccount>[K_6]; } : never) => Promise<`0x${string}`>;
240
+ signUserOperation: <TTransport_3 extends Transport>(args: import("../actions/index.js").SignUserOperationParameters<TEntryPoint, TSmartAccount> extends infer T_9 ? { [K_7 in keyof T_9]: import("../actions/index.js").SignUserOperationParameters<TEntryPoint, TSmartAccount>[K_7]; } : never) => Promise<{
241
+ sender: `0x${string}`;
242
+ nonce: bigint;
243
+ initCode: `0x${string}`;
244
+ callData: `0x${string}`;
245
+ callGasLimit: bigint;
246
+ verificationGasLimit: bigint;
247
+ preVerificationGas: bigint;
248
+ maxFeePerGas: bigint;
249
+ maxPriorityFeePerGas: bigint;
250
+ paymasterAndData: `0x${string}`;
251
+ signature: `0x${string}`;
252
+ factory?: undefined;
253
+ factoryData?: undefined;
254
+ paymaster?: undefined;
255
+ paymasterVerificationGasLimit?: undefined;
256
+ paymasterPostOpGasLimit?: undefined;
257
+ paymasterData?: undefined;
258
+ }>;
259
+ getUserOperationGasPrice: () => Promise<{
260
+ maxFeePerGas: bigint;
261
+ maxPriorityFeePerGas: bigint;
262
+ }>;
263
+ extend: <const client extends {
264
+ [x: string]: unknown;
265
+ account?: undefined;
266
+ batch?: undefined;
267
+ cacheTime?: undefined;
268
+ ccipRead?: undefined;
269
+ chain?: undefined;
270
+ key?: undefined;
271
+ name?: undefined;
272
+ pollingInterval?: undefined;
273
+ request?: undefined;
274
+ transport?: undefined;
275
+ type?: undefined;
276
+ uid?: undefined;
277
+ } & import("viem").ExactPartial<Pick<import("viem").PublicActions<TTransport, TChain, TSmartAccount>, "readContract" | "simulateContract" | "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<TChain, TSmartAccount>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<TTransport, TChain, TSmartAccount, import("permissionless/types/bundler.js").BundlerRpcSchema<TEntryPoint>, import("./decorators/kernel.js").KernelAccountClientActions<TEntryPoint, TChain, TSmartAccount>>) => client) => import("viem").Client<TTransport, TChain, TSmartAccount, import("permissionless/types/bundler.js").BundlerRpcSchema<TEntryPoint>, { [K_8 in keyof client]: client[K_8]; } & import("permissionless").SmartAccountActions<TEntryPoint, TChain, TSmartAccount> & {
278
+ signUserOperation: <TTransport_3 extends Transport>(args: import("../actions/index.js").SignUserOperationParameters<TEntryPoint, TSmartAccount> extends infer T_10 ? { [K_7 in keyof T_10]: import("../actions/index.js").SignUserOperationParameters<TEntryPoint, TSmartAccount>[K_7]; } : never) => Promise<{
279
+ sender: `0x${string}`;
280
+ nonce: bigint;
281
+ initCode: `0x${string}`;
282
+ callData: `0x${string}`;
283
+ callGasLimit: bigint;
284
+ verificationGasLimit: bigint;
285
+ preVerificationGas: bigint;
286
+ maxFeePerGas: bigint;
287
+ maxPriorityFeePerGas: bigint;
288
+ paymasterAndData: `0x${string}`;
289
+ signature: `0x${string}`;
290
+ factory?: undefined;
291
+ factoryData?: undefined;
292
+ paymaster?: undefined;
293
+ paymasterVerificationGasLimit?: undefined;
294
+ paymasterPostOpGasLimit?: undefined;
295
+ paymasterData?: undefined;
296
+ }>;
297
+ getUserOperationGasPrice: () => Promise<{
298
+ maxFeePerGas: bigint;
299
+ maxPriorityFeePerGas: bigint;
300
+ }>;
301
+ }>;
302
+ }[]) => {
303
+ account: TSmartAccount;
304
+ batch?: {
305
+ multicall?: boolean | {
306
+ batchSize?: number | undefined;
307
+ wait?: number | undefined;
308
+ } | undefined;
309
+ } | undefined;
310
+ cacheTime: number;
311
+ ccipRead?: false | {
312
+ request?: ((parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>) | undefined;
313
+ } | undefined;
314
+ chain: TChain;
315
+ key: string;
316
+ name: string;
317
+ pollingInterval: number;
318
+ request: import("viem").EIP1193RequestFn<import("permissionless/types/bundler.js").BundlerRpcSchema<TEntryPoint>>;
319
+ transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
320
+ type: string;
321
+ uid: string;
322
+ sendTransaction: <TChainOverride extends Chain | undefined>(args: import("viem").SendTransactionParameters<TChain, TSmartAccount, TChainOverride>) => Promise<`0x${string}`>;
323
+ signMessage: (args: import("viem").SignMessageParameters<TSmartAccount>) => Promise<`0x${string}`>;
324
+ signTypedData: <const TTypedData extends {
325
+ [x: string]: readonly import("viem").TypedDataParameter[];
326
+ [x: `string[${string}]`]: undefined;
327
+ [x: `function[${string}]`]: undefined;
328
+ [x: `address[${string}]`]: undefined;
329
+ [x: `bool[${string}]`]: undefined;
330
+ [x: `bytes[${string}]`]: undefined;
331
+ [x: `bytes1[${string}]`]: undefined;
332
+ [x: `bytes5[${string}]`]: undefined;
333
+ [x: `bytes10[${string}]`]: undefined;
334
+ [x: `bytes20[${string}]`]: undefined;
335
+ [x: `bytes2[${string}]`]: undefined;
336
+ [x: `bytes3[${string}]`]: undefined;
337
+ [x: `bytes4[${string}]`]: undefined;
338
+ [x: `bytes6[${string}]`]: undefined;
339
+ [x: `bytes7[${string}]`]: undefined;
340
+ [x: `bytes8[${string}]`]: undefined;
341
+ [x: `bytes9[${string}]`]: undefined;
342
+ [x: `bytes11[${string}]`]: undefined;
343
+ [x: `bytes12[${string}]`]: undefined;
344
+ [x: `bytes13[${string}]`]: undefined;
345
+ [x: `bytes14[${string}]`]: undefined;
346
+ [x: `bytes15[${string}]`]: undefined;
347
+ [x: `bytes16[${string}]`]: undefined;
348
+ [x: `bytes17[${string}]`]: undefined;
349
+ [x: `bytes18[${string}]`]: undefined;
350
+ [x: `bytes19[${string}]`]: undefined;
351
+ [x: `bytes21[${string}]`]: undefined;
352
+ [x: `bytes22[${string}]`]: undefined;
353
+ [x: `bytes23[${string}]`]: undefined;
354
+ [x: `bytes24[${string}]`]: undefined;
355
+ [x: `bytes25[${string}]`]: undefined;
356
+ [x: `bytes26[${string}]`]: undefined;
357
+ [x: `bytes27[${string}]`]: undefined;
358
+ [x: `bytes28[${string}]`]: undefined;
359
+ [x: `bytes29[${string}]`]: undefined;
360
+ [x: `bytes30[${string}]`]: undefined;
361
+ [x: `bytes31[${string}]`]: undefined;
362
+ [x: `bytes32[${string}]`]: undefined;
363
+ [x: `int[${string}]`]: undefined;
364
+ [x: `int56[${string}]`]: undefined;
365
+ [x: `int40[${string}]`]: undefined;
366
+ [x: `int8[${string}]`]: undefined;
367
+ [x: `int16[${string}]`]: undefined;
368
+ [x: `int24[${string}]`]: undefined;
369
+ [x: `int32[${string}]`]: undefined;
370
+ [x: `int48[${string}]`]: undefined;
371
+ [x: `int64[${string}]`]: undefined;
372
+ [x: `int72[${string}]`]: undefined;
373
+ [x: `int80[${string}]`]: undefined;
374
+ [x: `int88[${string}]`]: undefined;
375
+ [x: `int96[${string}]`]: undefined;
376
+ [x: `int104[${string}]`]: undefined;
377
+ [x: `int112[${string}]`]: undefined;
378
+ [x: `int120[${string}]`]: undefined;
379
+ [x: `int128[${string}]`]: undefined;
380
+ [x: `int136[${string}]`]: undefined;
381
+ [x: `int144[${string}]`]: undefined;
382
+ [x: `int152[${string}]`]: undefined;
383
+ [x: `int160[${string}]`]: undefined;
384
+ [x: `int168[${string}]`]: undefined;
385
+ [x: `int176[${string}]`]: undefined;
386
+ [x: `int184[${string}]`]: undefined;
387
+ [x: `int192[${string}]`]: undefined;
388
+ [x: `int200[${string}]`]: undefined;
389
+ [x: `int208[${string}]`]: undefined;
390
+ [x: `int216[${string}]`]: undefined;
391
+ [x: `int224[${string}]`]: undefined;
392
+ [x: `int232[${string}]`]: undefined;
393
+ [x: `int240[${string}]`]: undefined;
394
+ [x: `int248[${string}]`]: undefined;
395
+ [x: `int256[${string}]`]: undefined;
396
+ [x: `uint[${string}]`]: undefined;
397
+ [x: `uint56[${string}]`]: undefined;
398
+ [x: `uint40[${string}]`]: undefined;
399
+ [x: `uint8[${string}]`]: undefined;
400
+ [x: `uint16[${string}]`]: undefined;
401
+ [x: `uint24[${string}]`]: undefined;
402
+ [x: `uint32[${string}]`]: undefined;
403
+ [x: `uint48[${string}]`]: undefined;
404
+ [x: `uint64[${string}]`]: undefined;
405
+ [x: `uint72[${string}]`]: undefined;
406
+ [x: `uint80[${string}]`]: undefined;
407
+ [x: `uint88[${string}]`]: undefined;
408
+ [x: `uint96[${string}]`]: undefined;
409
+ [x: `uint104[${string}]`]: undefined;
410
+ [x: `uint112[${string}]`]: undefined;
411
+ [x: `uint120[${string}]`]: undefined;
412
+ [x: `uint128[${string}]`]: undefined;
413
+ [x: `uint136[${string}]`]: undefined;
414
+ [x: `uint144[${string}]`]: undefined;
415
+ [x: `uint152[${string}]`]: undefined;
416
+ [x: `uint160[${string}]`]: undefined;
417
+ [x: `uint168[${string}]`]: undefined;
418
+ [x: `uint176[${string}]`]: undefined;
419
+ [x: `uint184[${string}]`]: undefined;
420
+ [x: `uint192[${string}]`]: undefined;
421
+ [x: `uint200[${string}]`]: undefined;
422
+ [x: `uint208[${string}]`]: undefined;
423
+ [x: `uint216[${string}]`]: undefined;
424
+ [x: `uint224[${string}]`]: undefined;
425
+ [x: `uint232[${string}]`]: undefined;
426
+ [x: `uint240[${string}]`]: undefined;
427
+ [x: `uint248[${string}]`]: undefined;
428
+ [x: `uint256[${string}]`]: undefined;
429
+ string?: undefined;
430
+ address?: undefined;
431
+ bool?: undefined;
432
+ bytes?: undefined;
433
+ bytes1?: undefined;
434
+ bytes5?: undefined;
435
+ bytes10?: undefined;
436
+ bytes20?: undefined;
437
+ bytes2?: undefined;
438
+ bytes3?: undefined;
439
+ bytes4?: undefined;
440
+ bytes6?: undefined;
441
+ bytes7?: undefined;
442
+ bytes8?: undefined;
443
+ bytes9?: undefined;
444
+ bytes11?: undefined;
445
+ bytes12?: undefined;
446
+ bytes13?: undefined;
447
+ bytes14?: undefined;
448
+ bytes15?: undefined;
449
+ bytes16?: undefined;
450
+ bytes17?: undefined;
451
+ bytes18?: undefined;
452
+ bytes19?: undefined;
453
+ bytes21?: undefined;
454
+ bytes22?: undefined;
455
+ bytes23?: undefined;
456
+ bytes24?: undefined;
457
+ bytes25?: undefined;
458
+ bytes26?: undefined;
459
+ bytes27?: undefined;
460
+ bytes28?: undefined;
461
+ bytes29?: undefined;
462
+ bytes30?: undefined;
463
+ bytes31?: undefined;
464
+ bytes32?: undefined;
465
+ int56?: undefined;
466
+ int40?: undefined;
467
+ int8?: undefined;
468
+ int16?: undefined;
469
+ int24?: undefined;
470
+ int32?: undefined;
471
+ int48?: undefined;
472
+ int64?: undefined;
473
+ int72?: undefined;
474
+ int80?: undefined;
475
+ int88?: undefined;
476
+ int96?: undefined;
477
+ int104?: undefined;
478
+ int112?: undefined;
479
+ int120?: undefined;
480
+ int128?: undefined;
481
+ int136?: undefined;
482
+ int144?: undefined;
483
+ int152?: undefined;
484
+ int160?: undefined;
485
+ int168?: undefined;
486
+ int176?: undefined;
487
+ int184?: undefined;
488
+ int192?: undefined;
489
+ int200?: undefined;
490
+ int208?: undefined;
491
+ int216?: undefined;
492
+ int224?: undefined;
493
+ int232?: undefined;
494
+ int240?: undefined;
495
+ int248?: undefined;
496
+ int256?: undefined;
497
+ uint56?: undefined;
498
+ uint40?: undefined;
499
+ uint8?: undefined;
500
+ uint16?: undefined;
501
+ uint24?: undefined;
502
+ uint32?: undefined;
503
+ uint48?: undefined;
504
+ uint64?: undefined;
505
+ uint72?: undefined;
506
+ uint80?: undefined;
507
+ uint88?: undefined;
508
+ uint96?: undefined;
509
+ uint104?: undefined;
510
+ uint112?: undefined;
511
+ uint120?: undefined;
512
+ uint128?: undefined;
513
+ uint136?: undefined;
514
+ uint144?: undefined;
515
+ uint152?: undefined;
516
+ uint160?: undefined;
517
+ uint168?: undefined;
518
+ uint176?: undefined;
519
+ uint184?: undefined;
520
+ uint192?: undefined;
521
+ uint200?: undefined;
522
+ uint208?: undefined;
523
+ uint216?: undefined;
524
+ uint224?: undefined;
525
+ uint232?: undefined;
526
+ uint240?: undefined;
527
+ uint248?: undefined;
528
+ uint256?: undefined;
529
+ } | {
530
+ [key: string]: unknown;
531
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TSmartAccount>) => Promise<`0x${string}`>;
532
+ deployContract: <const TAbi extends readonly unknown[] | import("viem").Abi, TChainOverride_1 extends Chain | undefined = undefined>(args: import("viem").DeployContractParameters<TAbi, TChain, TSmartAccount, TChainOverride_1> extends infer T_11 ? { [K in keyof T_11]: import("viem").DeployContractParameters<TAbi, TChain, TSmartAccount, TChainOverride_1>[K]; } : never) => Promise<`0x${string}`>;
533
+ writeContract: <const TAbi_1 extends readonly unknown[] | import("viem").Abi, TFunctionName extends import("viem").ContractFunctionName<TAbi_1, "payable" | "nonpayable"> = import("viem").ContractFunctionName<TAbi_1, "payable" | "nonpayable">, TArgs extends import("viem").ContractFunctionArgs<TAbi_1, "payable" | "nonpayable", TFunctionName> = import("viem").ContractFunctionArgs<TAbi_1, "payable" | "nonpayable", TFunctionName>, TChainOverride_2 extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, TArgs, TChain, TSmartAccount, TChainOverride_2>) => Promise<`0x${string}`>;
534
+ prepareUserOperationRequest: <TTransport_1 extends Transport>(args: (import("permissionless/_types/actions/smartAccount.js").PrepareUserOperationRequestParameters<TEntryPoint, TSmartAccount> extends infer T_14 ? { [K_2 in keyof T_14]: import("permissionless/_types/actions/smartAccount.js").PrepareUserOperationRequestParameters<TEntryPoint, TSmartAccount>[K_2]; } : never) extends infer T_12 ? { [K_1 in keyof T_12]: (import("permissionless/_types/actions/smartAccount.js").PrepareUserOperationRequestParameters<TEntryPoint, TSmartAccount> extends infer T_13 ? { [K_2 in keyof T_13]: import("permissionless/_types/actions/smartAccount.js").PrepareUserOperationRequestParameters<TEntryPoint, TSmartAccount>[K_2]; } : never)[K_1]; } : never, stateOverrides?: import("permissionless/_types/types/bundler.js").StateOverrides | undefined) => Promise<import("permissionless/types").UserOperation<import("permissionless/types").GetEntryPointVersion<TEntryPoint>> extends infer T_15 ? { [K_3 in keyof T_15]: import("permissionless/types").UserOperation<import("permissionless/types").GetEntryPointVersion<TEntryPoint>>[K_3]; } : never>;
535
+ sendUserOperation: <TTransport_2 extends Transport>(args: (import("permissionless/_types/actions/smartAccount.js").SendUserOperationParameters<TEntryPoint, TSmartAccount> extends infer T_18 ? { [K_5 in keyof T_18]: import("permissionless/_types/actions/smartAccount.js").SendUserOperationParameters<TEntryPoint, TSmartAccount>[K_5]; } : never) extends infer T_16 ? { [K_4 in keyof T_16]: (import("permissionless/_types/actions/smartAccount.js").SendUserOperationParameters<TEntryPoint, TSmartAccount> extends infer T_17 ? { [K_5 in keyof T_17]: import("permissionless/_types/actions/smartAccount.js").SendUserOperationParameters<TEntryPoint, TSmartAccount>[K_5]; } : never)[K_4]; } : never) => Promise<`0x${string}`>;
536
+ sendTransactions: (args: import("permissionless/_types/actions/smartAccount.js").SendTransactionsWithPaymasterParameters<TEntryPoint, TSmartAccount> extends infer T_19 ? { [K_6 in keyof T_19]: import("permissionless/_types/actions/smartAccount.js").SendTransactionsWithPaymasterParameters<TEntryPoint, TSmartAccount>[K_6]; } : never) => Promise<`0x${string}`>;
537
+ signUserOperation: <TTransport_3 extends Transport>(args: import("../actions/index.js").SignUserOperationParameters<TEntryPoint, TSmartAccount> extends infer T_20 ? { [K_7 in keyof T_20]: import("../actions/index.js").SignUserOperationParameters<TEntryPoint, TSmartAccount>[K_7]; } : never) => Promise<{
538
+ sender: `0x${string}`;
539
+ nonce: bigint;
540
+ initCode: `0x${string}`;
541
+ callData: `0x${string}`;
542
+ callGasLimit: bigint;
543
+ verificationGasLimit: bigint;
544
+ preVerificationGas: bigint;
545
+ maxFeePerGas: bigint;
546
+ maxPriorityFeePerGas: bigint;
547
+ paymasterAndData: `0x${string}`;
548
+ signature: `0x${string}`;
549
+ factory?: undefined;
550
+ factoryData?: undefined;
551
+ paymaster?: undefined;
552
+ paymasterVerificationGasLimit?: undefined;
553
+ paymasterPostOpGasLimit?: undefined;
554
+ paymasterData?: undefined;
555
+ }>;
556
+ getUserOperationGasPrice: () => Promise<{
557
+ maxFeePerGas: bigint;
558
+ maxPriorityFeePerGas: bigint;
559
+ }>;
560
+ extend: <const client extends {
561
+ [x: string]: unknown;
562
+ account?: undefined;
563
+ batch?: undefined;
564
+ cacheTime?: undefined;
565
+ ccipRead?: undefined;
566
+ chain?: undefined;
567
+ key?: undefined;
568
+ name?: undefined;
569
+ pollingInterval?: undefined;
570
+ request?: undefined;
571
+ transport?: undefined;
572
+ type?: undefined;
573
+ uid?: undefined;
574
+ } & import("viem").ExactPartial<Pick<import("viem").PublicActions<TTransport, TChain, TSmartAccount>, "readContract" | "simulateContract" | "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<TChain, TSmartAccount>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<TTransport, TChain, TSmartAccount, import("permissionless/types/bundler.js").BundlerRpcSchema<TEntryPoint>, import("./decorators/kernel.js").KernelAccountClientActions<TEntryPoint, TChain, TSmartAccount>>) => client) => import("viem").Client<TTransport, TChain, TSmartAccount, import("permissionless/types/bundler.js").BundlerRpcSchema<TEntryPoint>, { [K_8 in keyof client]: client[K_8]; } & import("permissionless").SmartAccountActions<TEntryPoint, TChain, TSmartAccount> & {
575
+ signUserOperation: <TTransport_3 extends Transport>(args: import("../actions/index.js").SignUserOperationParameters<TEntryPoint, TSmartAccount> extends infer T_21 ? { [K_7 in keyof T_21]: import("../actions/index.js").SignUserOperationParameters<TEntryPoint, TSmartAccount>[K_7]; } : never) => Promise<{
576
+ sender: `0x${string}`;
577
+ nonce: bigint;
578
+ initCode: `0x${string}`;
579
+ callData: `0x${string}`;
580
+ callGasLimit: bigint;
581
+ verificationGasLimit: bigint;
582
+ preVerificationGas: bigint;
583
+ maxFeePerGas: bigint;
584
+ maxPriorityFeePerGas: bigint;
585
+ paymasterAndData: `0x${string}`;
586
+ signature: `0x${string}`;
587
+ factory?: undefined;
588
+ factoryData?: undefined;
589
+ paymaster?: undefined;
590
+ paymasterVerificationGasLimit?: undefined;
591
+ paymasterPostOpGasLimit?: undefined;
592
+ paymasterData?: undefined;
593
+ }>;
594
+ getUserOperationGasPrice: () => Promise<{
595
+ maxFeePerGas: bigint;
596
+ maxPriorityFeePerGas: bigint;
597
+ }>;
598
+ }>;
599
+ };
600
+ //# sourceMappingURL=fallbackKernelAccountClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fallbackKernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/fallbackKernelAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwD7C,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export { createZeroDevPaymasterClient, type ZeroDevPaymasterClient } from "./paymasterClient.js";
2
2
  export { createKernelAccountClient, type KernelAccountClient } from "./kernelAccountClient.js";
3
+ export { createFallbackKernelAccountClient } from "./fallbackKernelAccountClient.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../clients/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,4BAA4B,EAC5B,KAAK,sBAAsB,EAC9B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACH,yBAAyB,EACzB,KAAK,mBAAmB,EAC3B,MAAM,0BAA0B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../clients/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,4BAA4B,EAC5B,KAAK,sBAAsB,EAC9B,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EACH,yBAAyB,EACzB,KAAK,mBAAmB,EAC3B,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAA"}
@@ -3,7 +3,7 @@ import type { Middleware } from "permissionless/actions/smartAccount";
3
3
  import type { EntryPoint, Prettify } from "permissionless/types";
4
4
  import type { BundlerRpcSchema } from "permissionless/types/bundler";
5
5
  import { type Chain, type Client, type ClientConfig, type Transport } from "viem";
6
- import { type KernelSmartAccount } from "../accounts/index.js";
6
+ import type { KernelSmartAccount } from "../accounts/index.js";
7
7
  import { type KernelAccountClientActions } from "./decorators/kernel.js";
8
8
  export type KernelAccountClient<entryPoint extends EntryPoint, transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends KernelSmartAccount<entryPoint> | undefined = KernelSmartAccount<entryPoint> | undefined> = Prettify<Client<transport, chain, account, BundlerRpcSchema<entryPoint>, KernelAccountClientActions<entryPoint, chain, account>>>;
9
9
  export type SmartAccountClientConfig<entryPoint extends EntryPoint, transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount<entryPoint> | undefined = SmartAccount<entryPoint> | undefined> = Prettify<Pick<ClientConfig<transport, chain, account>, "cacheTime" | "chain" | "key" | "name" | "pollingInterval"> & {
@@ -1 +1 @@
1
- {"version":3,"file":"kernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/kernelAccountClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,KAAK,kB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MAAM,MAAM,wBAAwB,CAChC,UAAU,SAAS,UAAU,EAC7B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,YAAY,CAAC,UAAU,CAAC,GAAG,SAAS,GAC9C,YAAY,CAAC,UAAU,CAAC,GACxB,SAAS,IACf,QAAQ,CACR,IAAI,CACA,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACvC,WAAW,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,iBAAiB,CAC7D,GAAG;IACA,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,gBAAgB,EAAE,SAAS,CAAA;CAC9B,GAAG,UAAU,CAAC,UAAU,CAAC,GAAG;IACrB,UAAU,EAAE,UAAU,CAAA;CACzB,CACR,CAAA;AAED,eAAO,MAAM,yBAAyB;;;;;;;sBANZ,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsElC,CAAA"}
@@ -1,10 +1,11 @@
1
1
  import type { EntryPointVersion } from "permissionless/types/entrypoint";
2
- import { type Address, type Hex } from "viem";
2
+ import type { Address, Hex } from "viem";
3
3
  export declare const DUMMY_ECDSA_SIG = "0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c";
4
4
  export declare const KernelImplToVersionMap: {
5
5
  [key: Address]: string;
6
6
  };
7
7
  export declare const TOKEN_ACTION = "0x2087C7FfD0d0DAE80a00EE74325aBF3449e0eaf1";
8
+ export declare const ONLY_ENTRYPOINT_HOOK_ADDRESS = "0xb230f0A1C7C95fa11001647383c8C7a8F316b900";
8
9
  export declare const KERNEL_NAME = "Kernel";
9
10
  export declare const LATEST_KERNEL_VERSION: {
10
11
  [key in EntryPointVersion]: string;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;AACxE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAA;AAE7C,eAAO,MAAM,eAAe,yIAC8G,CAAA;AAE1I,eAAO,MAAM,sBAAsB,EAAE;IAAE,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAA;CAO5D,CAAA;AACD,eAAO,MAAM,YAAY,+CAA+C,CAAA;AACxE,eAAO,MAAM,WAAW,WAAW,CAAA;AACnC,eAAO,MAAM,qBAAqB,EAAE;KAAG,GAAG,IAAI,iBAAiB,GAAG,MAAM;CAGvE,CAAA;AACD,eAAO,MAAM,cAAc;;;;CAIjB,CAAA;AACV,oBAAY,cAAc;IACtB,OAAO,SAAS;IAChB,MAAM,SAAS;CAClB;AACD,oBAAY,SAAS;IACjB,MAAM,SAAS;IACf,KAAK,SAAS;IACd,aAAa,SAAS;CACzB;AACD,oBAAY,SAAS;IACjB,OAAO,SAAS;IAChB,QAAQ,SAAS;CACpB;AAID,eAAO,MAAM,qBAAqB,+CACc,CAAA;AAChD,eAAO,MAAM,8BAA8B,EAAE;IAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,CAAA;CAKjE,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings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