@zerodev/sdk 5.2.9 → 5.2.11

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.
@@ -14,13 +14,15 @@ const zerodevPaymasterActions = (entryPointAddress) => (client) => ({
14
14
  estimateGasInERC20: async (args) => (0, estimateGasInERC20_js_1.estimateGasInERC20)(client, args)
15
15
  });
16
16
  exports.zerodevPaymasterActions = zerodevPaymasterActions;
17
- const kernelAccountClientActions = ({ middleware }) => (client) => ({
18
- ...(0, permissionless_1.smartAccountActions)({ middleware })(client),
19
- signUserOperation: (args) => (0, index_js_1.signUserOperation)(client, {
20
- ...args,
21
- middleware
22
- }),
23
- getUserOperationGasPrice: async () => (0, getUserOperationGasPrice_js_1.getUserOperationGasPrice)(client)
24
- });
17
+ function kernelAccountClientActions({ middleware }) {
18
+ return (client) => ({
19
+ ...(0, permissionless_1.smartAccountActions)({ middleware })(client),
20
+ signUserOperation: (args) => (0, index_js_1.signUserOperation)(client, {
21
+ ...args,
22
+ middleware
23
+ }),
24
+ getUserOperationGasPrice: async () => (0, getUserOperationGasPrice_js_1.getUserOperationGasPrice)(client)
25
+ });
26
+ }
25
27
  exports.kernelAccountClientActions = kernelAccountClientActions;
26
28
  //# sourceMappingURL=kernel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":";;;AAAA,mDAA8E;AAK9E,0GAGiE;AAKjE,qDAA0D;AAC1D,yFAIsD;AACtD,6FAIwD;AAejD,MAAM,uBAAuB,GAChC,CAAgC,iBAA6B,EAAE,EAAE,CACjE,CAAC,MAAc,EAA6C,EAAE,CAAC,CAAC;IAC5D,oBAAoB,EAAE,KAAK,EACvB,IAAoE,EACtE,EAAE,CACA,IAAA,8CAAoB,EAChB,MAA4C,EAC5C;QACI,GAAG,IAAI;QACP,UAAU,EAAE,iBAAiB;KAChC,CACJ;IACL,kBAAkB,EAAE,KAAK,E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ACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,iBAAiB,GAAG,gBAAgB,CAAC;gBACrC,GAAG,IAAI;gBACP,UAAU,EAAE,CAAC;aAChB,CAAC,CAAA;YACF,IAAI,CAAC,4BAA4B;gBAAE,OAAO,iBAAiB,CAAA;YAC3D,iBAAiB,GAAG,IAAA,WAAI,EACpB,IAAA,+BAAoB,EAAC,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,CACrD,CAAC,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAA;YAC7B,OAAO,iBAAiB,CAAA;QAC5B,CAAC;QACD,IAAI,EAAE,qBAAqB;KAC9B,CAAC,CAAA;IAEF,IAAI,UAAU,GAAG,UAAU,CAAC,UAAU,CAAA;IACtC,IACI,CAAC,CAAC,UAAU;QACR,CAAC,OAAO,UAAU,KAAK,UAAU,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC/D,MAAM,CAAC,SAAS,EAAE,GAAG;QACrB,IAAA,+BAAoB,EAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,EAC5C,CAAC;QACC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,IAAA,sDAAwB,EAAC,MAAM,CAAC,CAAA;QACvD,UAAU,GAAG;YACT,GAAG,UAAU;YACb,QAAQ;SACX,CAAA;IACL,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAChB,IAAA,sCAA0B,EAAC;QACvB,UAAU;KACb,CAAC,CACkE,CAAA;AAC5E,CAAC,CAAA;AAhEY,QAAA,yBAAyB,6BAgErC"}
@@ -10,12 +10,14 @@ export const zerodevPaymasterActions = (entryPointAddress) => (client) => ({
10
10
  }),
11
11
  estimateGasInERC20: async (args) => estimateGasInERC20(client, args)
12
12
  });
13
- export const kernelAccountClientActions = ({ middleware }) => (client) => ({
14
- ...smartAccountActions({ middleware })(client),
15
- signUserOperation: (args) => signUserOperation(client, {
16
- ...args,
17
- middleware
18
- }),
19
- getUserOperationGasPrice: async () => getUserOperationGasPrice(client)
20
- });
13
+ export function kernelAccountClientActions({ middleware }) {
14
+ return (client) => ({
15
+ ...smartAccountActions({ middleware })(client),
16
+ signUserOperation: (args) => signUserOperation(client, {
17
+ ...args,
18
+ middleware
19
+ }),
20
+ getUserOperationGasPrice: async () => getUserOperationGasPrice(client)
21
+ });
22
+ }
21
23
  //# sourceMappingURL=kernel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"kernel.js","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAK9E,OAAO,EAEH,wBAAwB,EAC3B,MAAM,0DAA0D,CAAA;AAKjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EAGH,kBAAkB,EACrB,MAAM,+CAA+C,CAAA;AACtD,OAAO,EAGH,oBAAoB,EACvB,MAAM,iDAAiD,CAAA;AAexD,MAAM,CAAC,MAAM,uBAAuB,GAChC,CAAgC,iBAA6B,EAAE,EAAE,CACjE,CAAC,MAAc,EAA6C,EAAE,CAAC,CAAC;IAC5D,oBAAoB,EAAE,KAAK,EACvB,IAAoE,EACtE,EAAE,CACA,oBAAoB,CAChB,MAA4C,EAC5C;QACI,GAAG,IAAI;QACP,UAAU,EAAE,iBAAiB;KAChC,CACJ;IACL,kBAAkB,EAAE,KAAK,EAAE,IAAkC,EAAE,EAAE,CAC7D,kBAAkB,CACd,MAA4C,EAC5C,IAAI,CACP;CACR,CAAC,CAAA;AAmCN,MAAM,CAAC,MAAM,0BAA0B,GACnC,CAAgC,EAAE,UAAU,EAA0B,EAAE,EAAE,CAC1E,CAOI,MAAiD,EACY,EAAE,CAAC,CAAC;IACjE,GAAG,mBAAmB,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC;I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GAC9B,gBAAgB,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,MAAM;QAC1C,iBAAiB,KAAK,MAAM,CAAA;IAEhC,MAAM,MAAM,GAAG,YAAY,CAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE;YAChB,IAAI,iBAAiB,GAAG,gBAAgB,CAAC;gBACrC,GAAG,IAAI;gBACP,UAAU,EAAE,CAAC;aAChB,CAAC,CAAA;YACF,IAAI,CAAC,4BAA4B;gBAAE,OAAO,iBAAiB,CAAA;YAC3D,iBAAiB,GAAG,IAAI,CACpB,oBAAoB,CAAC,iBAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,CACrD,CAAC,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAA;YAC7B,OAAO,iBAAiB,CAAA;QAC5B,CAAC;QACD,IAAI,EAAE,qBAAqB;KAC9B,CAAC,CAAA;IAEF,IAAI,UAAU,GAAG,UAAU,CAAC,UAAU,CAAA;IACtC,IACI,CAAC,CAAC,UAAU;QACR,CAAC,OAAO,UAAU,KAAK,UAAU,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC/D,MAAM,CAAC,SAAS,EAAE,GAAG;QACrB,oBAAoB,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,EAC5C,CAAC;QACC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,wBAAwB,CAAC,MAAM,CAAC,CAAA;QACvD,UAAU,GAAG;YACT,GAAG,UAAU;YACb,QAAQ;SACX,CAAA;IACL,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAChB,0BAA0B,CAAC;QACvB,UAAU;KACb,CAAC,CACkE,CAAA;AAC5E,CAAC,CAAA"}
@@ -31,5 +31,5 @@ export type KernelAccountClientActions<entryPoint extends EntryPoint, TChain ext
31
31
  */
32
32
  getUserOperationGasPrice: () => Promise<Prettify<GetUserOperationGasPriceReturnType>>;
33
33
  };
34
- export declare const kernelAccountClientActions: <entryPoint extends EntryPoint>({ middleware }: Middleware<entryPoint>) => <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends KernelSmartAccount<entryPoint> | undefined = KernelSmartAccount<entryPoint> | undefined>(client: Client<TTransport, TChain, TSmartAccount>) => KernelAccountClientActions<entryPoint, TChain, TSmartAccount>;
34
+ export declare function kernelAccountClientActions<entryPoint extends EntryPoint>({ middleware }: Middleware<entryPoint>): <TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends KernelSmartAccount<entryPoint> | undefined = KernelSmartAccount<entryPoint> | undefined>(client: Client<TTransport, TChain, TSmartAccount>) => KernelAccountClientActions<entryPoint, TChain, TSmartAccount>;
35
35
  //# sourceMappingURL=kernel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../../clients/decorators/kernel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAuB,MAAM,gBAAgB,CAAA;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAA;AACrE,OAAO,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,EACH,KAAK,kCAAkC,EAE1C,MAAM,0DAA0D,CAAA;AACjE,OAAO,KAAK,EAER,2BAA2B,EAC9B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1D,OAAO,EACH,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EAEpC,MAAM,+CAA+C,CAAA;AACtD,OAAO,EACH,KAAK,8BAA8B,EACn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EAAE,UAAU,CACZ,OAAO,iBAAiB,CACpB,UAAU,EACV,UAAU,EACV,MAAM,EACN,aAAa,CAChB,CACJ,CAAC,CAAC,CAAC,KACH,OAAO,CAAC,2BAA2B,CAAC,CAAA;IACzC;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,OAAO,CACnC,QAAQ,CAAC,kCAAkC,CAAC,CAC/C,CAAA;CACJ,CAAA;AAED,wBAAgB,0BAA0B,CAAC,UAAU,SAAS,UAAU,EAAE,EACtE,UAAU,EACb,EAAE,UAAU,CAAC,UAAU,CAAC,2TAqBxB"}
@@ -2,599 +2,5 @@ import type { EntryPoint } from "permissionless/types";
2
2
  import type { Chain, Transport } from "viem";
3
3
  import type { KernelSmartAccount } from "../accounts/index.js";
4
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
- };
5
+ export declare const createFallbackKernelAccountClient: <TEntryPoint extends EntryPoint, TTransport extends Transport, TChain extends Chain | undefined, TSmartAccount extends KernelSmartAccount<TEntryPoint> | undefined>(clients: KernelAccountClient<TEntryPoint, TTransport, TChain, TSmartAccount>[]) => KernelAccountClient<TEntryPoint, TTransport, TChain, TSmartAccount>;
600
6
  //# sourceMappingURL=fallbackKernelAccountClient.d.ts.map
@@ -1 +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
+ {"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,4TAwD7C,CAAA"}
@@ -5,7 +5,7 @@ import type { BundlerRpcSchema } from "permissionless/types/bundler";
5
5
  import { type Chain, type Client, type ClientConfig, type Transport } from "viem";
6
6
  import type { KernelSmartAccount } from "../accounts/index.js";
7
7
  import { type KernelAccountClientActions } from "./decorators/kernel.js";
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>>>;
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> = 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"> & {
10
10
  account?: account;
11
11
  bundlerTransport: Transport;
@@ -34,302 +34,5 @@ export declare const createKernelAccountClient: <TSmartAccount extends KernelSma
34
34
  entryPoint: TEntryPoint;
35
35
  }) => Promise<import("permissionless").UserOperation<import("permissionless/types/entrypoint.js").GetEntryPointVersion<TEntryPoint>>>) | undefined;
36
36
  entryPoint: TEntryPoint;
37
- }) => {
38
- account: TSmartAccount;
39
- batch?: {
40
- multicall?: boolean | {
41
- batchSize?: number | undefined;
42
- wait?: number | undefined;
43
- } | undefined;
44
- } | undefined;
45
- cacheTime: number;
46
- ccipRead?: false | {
47
- request?: ((parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>) | undefined;
48
- } | undefined;
49
- chain: TChain;
50
- key: string;
51
- name: string;
52
- pollingInterval: number;
53
- request: import("viem").EIP1193RequestFn<BundlerRpcSchema<TEntryPoint>>;
54
- transport: ReturnType<TTransport>["config"] & ReturnType<TTransport>["value"];
55
- type: string;
56
- uid: string;
57
- sendTransaction: <TChainOverride extends Chain | undefined>(args: import("viem").SendTransactionParameters<TChain, TSmartAccount, TChainOverride>) => Promise<`0x${string}`>;
58
- signMessage: (args: import("viem").SignMessageParameters<TSmartAccount>) => Promise<`0x${string}`>;
59
- signTypedData: <const TTypedData extends {
60
- [x: string]: readonly import("viem").TypedDataParameter[];
61
- [x: `string[${string}]`]: undefined;
62
- [x: `function[${string}]`]: undefined;
63
- [x: `address[${string}]`]: undefined;
64
- [x: `bool[${string}]`]: undefined;
65
- [x: `bytes[${string}]`]: undefined;
66
- [x: `bytes1[${string}]`]: undefined;
67
- [x: `bytes5[${string}]`]: undefined;
68
- [x: `bytes10[${string}]`]: undefined;
69
- [x: `bytes20[${string}]`]: undefined;
70
- [x: `bytes2[${string}]`]: undefined;
71
- [x: `bytes3[${string}]`]: undefined;
72
- [x: `bytes4[${string}]`]: undefined;
73
- [x: `bytes6[${string}]`]: undefined;
74
- [x: `bytes7[${string}]`]: undefined;
75
- [x: `bytes8[${string}]`]: undefined;
76
- [x: `bytes9[${string}]`]: undefined;
77
- [x: `bytes11[${string}]`]: undefined;
78
- [x: `bytes12[${string}]`]: undefined;
79
- [x: `bytes13[${string}]`]: undefined;
80
- [x: `bytes14[${string}]`]: undefined;
81
- [x: `bytes15[${string}]`]: undefined;
82
- [x: `bytes16[${string}]`]: undefined;
83
- [x: `bytes17[${string}]`]: undefined;
84
- [x: `bytes18[${string}]`]: undefined;
85
- [x: `bytes19[${string}]`]: undefined;
86
- [x: `bytes21[${string}]`]: undefined;
87
- [x: `bytes22[${string}]`]: undefined;
88
- [x: `bytes23[${string}]`]: undefined;
89
- [x: `bytes24[${string}]`]: undefined;
90
- [x: `bytes25[${string}]`]: undefined;
91
- [x: `bytes26[${string}]`]: undefined;
92
- [x: `bytes27[${string}]`]: undefined;
93
- [x: `bytes28[${string}]`]: undefined;
94
- [x: `bytes29[${string}]`]: undefined;
95
- [x: `bytes30[${string}]`]: undefined;
96
- [x: `bytes31[${string}]`]: undefined;
97
- [x: `bytes32[${string}]`]: undefined;
98
- [x: `int[${string}]`]: undefined;
99
- [x: `int56[${string}]`]: undefined;
100
- [x: `int40[${string}]`]: undefined;
101
- [x: `int8[${string}]`]: undefined;
102
- [x: `int16[${string}]`]: undefined;
103
- [x: `int24[${string}]`]: undefined;
104
- [x: `int32[${string}]`]: undefined;
105
- [x: `int48[${string}]`]: undefined;
106
- [x: `int64[${string}]`]: undefined;
107
- [x: `int72[${string}]`]: undefined;
108
- [x: `int80[${string}]`]: undefined;
109
- [x: `int88[${string}]`]: undefined;
110
- [x: `int96[${string}]`]: undefined;
111
- [x: `int104[${string}]`]: undefined;
112
- [x: `int112[${string}]`]: undefined;
113
- [x: `int120[${string}]`]: undefined;
114
- [x: `int128[${string}]`]: undefined;
115
- [x: `int136[${string}]`]: undefined;
116
- [x: `int144[${string}]`]: undefined;
117
- [x: `int152[${string}]`]: undefined;
118
- [x: `int160[${string}]`]: undefined;
119
- [x: `int168[${string}]`]: undefined;
120
- [x: `int176[${string}]`]: undefined;
121
- [x: `int184[${string}]`]: undefined;
122
- [x: `int192[${string}]`]: undefined;
123
- [x: `int200[${string}]`]: undefined;
124
- [x: `int208[${string}]`]: undefined;
125
- [x: `int216[${string}]`]: undefined;
126
- [x: `int224[${string}]`]: undefined;
127
- [x: `int232[${string}]`]: undefined;
128
- [x: `int240[${string}]`]: undefined;
129
- [x: `int248[${string}]`]: undefined;
130
- [x: `int256[${string}]`]: undefined;
131
- [x: `uint[${string}]`]: undefined;
132
- [x: `uint56[${string}]`]: undefined;
133
- [x: `uint40[${string}]`]: undefined;
134
- [x: `uint8[${string}]`]: undefined;
135
- [x: `uint16[${string}]`]: undefined;
136
- [x: `uint24[${string}]`]: undefined;
137
- [x: `uint32[${string}]`]: undefined;
138
- [x: `uint48[${string}]`]: undefined;
139
- [x: `uint64[${string}]`]: undefined;
140
- [x: `uint72[${string}]`]: undefined;
141
- [x: `uint80[${string}]`]: undefined;
142
- [x: `uint88[${string}]`]: undefined;
143
- [x: `uint96[${string}]`]: undefined;
144
- [x: `uint104[${string}]`]: undefined;
145
- [x: `uint112[${string}]`]: undefined;
146
- [x: `uint120[${string}]`]: undefined;
147
- [x: `uint128[${string}]`]: undefined;
148
- [x: `uint136[${string}]`]: undefined;
149
- [x: `uint144[${string}]`]: undefined;
150
- [x: `uint152[${string}]`]: undefined;
151
- [x: `uint160[${string}]`]: undefined;
152
- [x: `uint168[${string}]`]: undefined;
153
- [x: `uint176[${string}]`]: undefined;
154
- [x: `uint184[${string}]`]: undefined;
155
- [x: `uint192[${string}]`]: undefined;
156
- [x: `uint200[${string}]`]: undefined;
157
- [x: `uint208[${string}]`]: undefined;
158
- [x: `uint216[${string}]`]: undefined;
159
- [x: `uint224[${string}]`]: undefined;
160
- [x: `uint232[${string}]`]: undefined;
161
- [x: `uint240[${string}]`]: undefined;
162
- [x: `uint248[${string}]`]: undefined;
163
- [x: `uint256[${string}]`]: undefined;
164
- string?: undefined;
165
- address?: undefined;
166
- bool?: undefined;
167
- bytes?: undefined;
168
- bytes1?: undefined;
169
- bytes5?: undefined;
170
- bytes10?: undefined;
171
- bytes20?: undefined;
172
- bytes2?: undefined;
173
- bytes3?: undefined;
174
- bytes4?: undefined;
175
- bytes6?: undefined;
176
- bytes7?: undefined;
177
- bytes8?: undefined;
178
- bytes9?: undefined;
179
- bytes11?: undefined;
180
- bytes12?: undefined;
181
- bytes13?: undefined;
182
- bytes14?: undefined;
183
- bytes15?: undefined;
184
- bytes16?: undefined;
185
- bytes17?: undefined;
186
- bytes18?: undefined;
187
- bytes19?: undefined;
188
- bytes21?: undefined;
189
- bytes22?: undefined;
190
- bytes23?: undefined;
191
- bytes24?: undefined;
192
- bytes25?: undefined;
193
- bytes26?: undefined;
194
- bytes27?: undefined;
195
- bytes28?: undefined;
196
- bytes29?: undefined;
197
- bytes30?: undefined;
198
- bytes31?: undefined;
199
- bytes32?: undefined;
200
- int56?: undefined;
201
- int40?: undefined;
202
- int8?: undefined;
203
- int16?: undefined;
204
- int24?: undefined;
205
- int32?: undefined;
206
- int48?: undefined;
207
- int64?: undefined;
208
- int72?: undefined;
209
- int80?: undefined;
210
- int88?: undefined;
211
- int96?: undefined;
212
- int104?: undefined;
213
- int112?: undefined;
214
- int120?: undefined;
215
- int128?: undefined;
216
- int136?: undefined;
217
- int144?: undefined;
218
- int152?: undefined;
219
- int160?: undefined;
220
- int168?: undefined;
221
- int176?: undefined;
222
- int184?: undefined;
223
- int192?: undefined;
224
- int200?: undefined;
225
- int208?: undefined;
226
- int216?: undefined;
227
- int224?: undefined;
228
- int232?: undefined;
229
- int240?: undefined;
230
- int248?: undefined;
231
- int256?: undefined;
232
- uint56?: undefined;
233
- uint40?: undefined;
234
- uint8?: undefined;
235
- uint16?: undefined;
236
- uint24?: undefined;
237
- uint32?: undefined;
238
- uint48?: undefined;
239
- uint64?: undefined;
240
- uint72?: undefined;
241
- uint80?: undefined;
242
- uint88?: undefined;
243
- uint96?: undefined;
244
- uint104?: undefined;
245
- uint112?: undefined;
246
- uint120?: undefined;
247
- uint128?: undefined;
248
- uint136?: undefined;
249
- uint144?: undefined;
250
- uint152?: undefined;
251
- uint160?: undefined;
252
- uint168?: undefined;
253
- uint176?: undefined;
254
- uint184?: undefined;
255
- uint192?: undefined;
256
- uint200?: undefined;
257
- uint208?: undefined;
258
- uint216?: undefined;
259
- uint224?: undefined;
260
- uint232?: undefined;
261
- uint240?: undefined;
262
- uint248?: undefined;
263
- uint256?: undefined;
264
- } | {
265
- [key: string]: unknown;
266
- }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, TSmartAccount>) => Promise<`0x${string}`>;
267
- 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}`>;
268
- 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}`>;
269
- 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").UserOperation<import("permissionless/types").GetEntryPointVersion<TEntryPoint>> extends infer T_4 ? { [K_3 in keyof T_4]: import("permissionless").UserOperation<import("permissionless/types").GetEntryPointVersion<TEntryPoint>>[K_3]; } : never>;
270
- 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}`>;
271
- 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}`>;
272
- 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<{
273
- sender: `0x${string}`;
274
- nonce: bigint;
275
- initCode: `0x${string}`;
276
- callData: `0x${string}`;
277
- callGasLimit: bigint;
278
- verificationGasLimit: bigint;
279
- preVerificationGas: bigint;
280
- maxFeePerGas: bigint;
281
- maxPriorityFeePerGas: bigint;
282
- paymasterAndData: `0x${string}`;
283
- signature: `0x${string}`;
284
- factory?: undefined;
285
- factoryData?: undefined;
286
- paymaster?: undefined;
287
- paymasterVerificationGasLimit?: undefined;
288
- paymasterPostOpGasLimit?: undefined;
289
- paymasterData?: undefined;
290
- }>;
291
- getUserOperationGasPrice: () => Promise<{
292
- maxFeePerGas: bigint;
293
- maxPriorityFeePerGas: bigint;
294
- }>;
295
- extend: <const client extends {
296
- [x: string]: unknown;
297
- account?: undefined;
298
- batch?: undefined;
299
- cacheTime?: undefined;
300
- ccipRead?: undefined;
301
- chain?: undefined;
302
- key?: undefined;
303
- name?: undefined;
304
- pollingInterval?: undefined;
305
- request?: undefined;
306
- transport?: undefined;
307
- type?: undefined;
308
- uid?: undefined;
309
- } & 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: Client<TTransport, TChain, TSmartAccount, BundlerRpcSchema<TEntryPoint>, KernelAccountClientActions<TEntryPoint, TChain, TSmartAccount>>) => client) => Client<TTransport, TChain, TSmartAccount, BundlerRpcSchema<TEntryPoint>, { [K_8 in keyof client]: client[K_8]; } & import("permissionless").SmartAccountActions<TEntryPoint, TChain, TSmartAccount> & {
310
- 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<{
311
- sender: `0x${string}`;
312
- nonce: bigint;
313
- initCode: `0x${string}`;
314
- callData: `0x${string}`;
315
- callGasLimit: bigint;
316
- verificationGasLimit: bigint;
317
- preVerificationGas: bigint;
318
- maxFeePerGas: bigint;
319
- maxPriorityFeePerGas: bigint;
320
- paymasterAndData: `0x${string}`;
321
- signature: `0x${string}`;
322
- factory?: undefined;
323
- factoryData?: undefined;
324
- paymaster?: undefined;
325
- paymasterVerificationGasLimit?: undefined;
326
- paymasterPostOpGasLimit?: undefined;
327
- paymasterData?: undefined;
328
- }>;
329
- getUserOperationGasPrice: () => Promise<{
330
- maxFeePerGas: bigint;
331
- maxPriorityFeePerGas: bigint;
332
- }>;
333
- }>;
334
- };
37
+ }) => KernelAccountClient<TEntryPoint, TTransport, TChain, TSmartAccount>;
335
38
  //# sourceMappingURL=kernelAccountClient.d.ts.map
@@ -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,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AC,UAAU,EAAE,KAAK,EAAE,OAAO,CAAC,CACzD,CAAA;AAED,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;;;;;;;;;;;;;;;yEAsElC,CAAA"}
@@ -89,9 +89,10 @@ export type KernelAccountClientActions<
89
89
  >
90
90
  }
91
91
 
92
- export const kernelAccountClientActions =
93
- <entryPoint extends EntryPoint>({ middleware }: Middleware<entryPoint>) =>
94
- <
92
+ export function kernelAccountClientActions<entryPoint extends EntryPoint>({
93
+ middleware
94
+ }: Middleware<entryPoint>) {
95
+ return <
95
96
  TTransport extends Transport,
96
97
  TChain extends Chain | undefined = Chain | undefined,
97
98
  TSmartAccount extends KernelSmartAccount<entryPoint> | undefined =
@@ -111,3 +112,4 @@ export const kernelAccountClientActions =
111
112
  ),
112
113
  getUserOperationGasPrice: async () => getUserOperationGasPrice(client)
113
114
  })
115
+ }
@@ -26,14 +26,12 @@ export type KernelAccountClient<
26
26
  account extends KernelSmartAccount<entryPoint> | undefined =
27
27
  | KernelSmartAccount<entryPoint>
28
28
  | undefined
29
- > = Prettify<
30
- Client<
31
- transport,
32
- chain,
33
- account,
34
- BundlerRpcSchema<entryPoint>,
35
- KernelAccountClientActions<entryPoint, chain, account>
36
- >
29
+ > = Client<
30
+ transport,
31
+ chain,
32
+ account,
33
+ BundlerRpcSchema<entryPoint>,
34
+ KernelAccountClientActions<entryPoint, chain, account>
37
35
  >
38
36
 
39
37
  export type SmartAccountClientConfig<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerodev/sdk",
3
- "version": "5.2.9",
3
+ "version": "5.2.11",
4
4
  "author": "ZeroDev",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
@@ -83,6 +83,18 @@
83
83
  "default": "./_cjs/providers/index.js"
84
84
  }
85
85
  },
86
+ "typesVersions": {
87
+ "*": {
88
+ "accounts": ["./_types/accounts/index.d.ts"],
89
+ "plugins": ["./_types/plugins/index.d.ts"],
90
+ "actions": ["./_types/actions/index.d.ts"],
91
+ "types": ["./_types/types/index.d.ts"],
92
+ "actions/kernel": ["./_types/actions/kernel/index.d.ts"],
93
+ "clients": ["./_types/clients/index.d.ts"],
94
+ "clients/kernel": ["./_types/clients/kernel/index.d.ts"],
95
+ "providers": ["./_types/providers/index.d.ts"]
96
+ }
97
+ },
86
98
  "peerDependencies": {
87
99
  "viem": "^2.9.17",
88
100
  "permissionless": "^0.1.18"