@zerodev/sdk 5.4.28 → 5.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_cjs/accounts/kernel/v1/createKernelAccountV1.js +1 -1
- package/_cjs/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js +1 -1
- package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
- package/_cjs/clients/kernelAccountClient.js +4 -4
- package/_cjs/clients/kernelAccountClient.js.map +1 -1
- package/_cjs/constants.js +6 -5
- package/_cjs/constants.js.map +1 -1
- package/_cjs/providers/KernelEIP1193Provider.js +5 -1
- package/_cjs/providers/KernelEIP1193Provider.js.map +1 -1
- package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
- package/_esm/accounts/kernel/v1/createKernelAccountV1.js +1 -1
- package/_esm/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
- package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js +1 -1
- package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
- package/_esm/clients/kernelAccountClient.js +4 -4
- package/_esm/clients/kernelAccountClient.js.map +1 -1
- package/_esm/constants.js +6 -4
- package/_esm/constants.js.map +1 -1
- package/_esm/providers/KernelEIP1193Provider.js +5 -1
- package/_esm/providers/KernelEIP1193Provider.js.map +1 -1
- package/_types/accounts/kernel/createKernelAccount.d.ts +3 -2
- package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts +2 -2
- package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts.map +1 -1
- package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts +3 -3
- package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts.map +1 -1
- package/_types/actions/paymaster/estimateGasInERC20.d.ts +2 -1267
- package/_types/actions/paymaster/estimateGasInERC20.d.ts.map +1 -1
- package/_types/actions/paymaster/sponsorUserOperation.d.ts +2 -1267
- package/_types/actions/paymaster/sponsorUserOperation.d.ts.map +1 -1
- package/_types/clients/decorators/kernel.d.ts +1 -507
- package/_types/clients/decorators/kernel.d.ts.map +1 -1
- package/_types/clients/fallbackKernelAccountClient.d.ts +2 -254
- package/_types/clients/fallbackKernelAccountClient.d.ts.map +1 -1
- package/_types/clients/kernelAccountClient.d.ts.map +1 -1
- package/_types/clients/paymasterClient.d.ts +1 -1
- package/_types/clients/paymasterClient.d.ts.map +1 -1
- package/_types/constants.d.ts +2 -1
- package/_types/constants.d.ts.map +1 -1
- package/_types/providers/KernelEIP1193Provider.d.ts.map +1 -1
- package/_types/utils.d.ts +2 -1267
- package/_types/utils.d.ts.map +1 -1
- package/accounts/kernel/createKernelAccount.ts +2 -2
- package/accounts/kernel/v1/createKernelAccountV1.ts +2 -3
- package/accounts/kernel/v2/createKernelAccountV0_2.ts +2 -3
- package/clients/kernelAccountClient.ts +82 -10
- package/clients/paymasterClient.ts +1 -1
- package/constants.ts +6 -4
- package/package.json +2 -2
- package/providers/KernelEIP1193Provider.ts +9 -2
|
@@ -1,257 +1,5 @@
|
|
|
1
1
|
import type { Chain, Client, RpcSchema, Transport } from "viem";
|
|
2
|
+
import type { SmartAccount } from "viem/account-abstraction";
|
|
2
3
|
import type { KernelAccountClient } from "./kernelAccountClient.js";
|
|
3
|
-
export declare const createFallbackKernelAccountClient: <transport extends Transport, chain extends Chain | undefined = undefined, account extends (
|
|
4
|
-
client: Client;
|
|
5
|
-
entryPoint: {
|
|
6
|
-
abi: import("viem").Abi;
|
|
7
|
-
address: `0x${string}`;
|
|
8
|
-
version: import("viem/account-abstraction").EntryPointVersion;
|
|
9
|
-
};
|
|
10
|
-
extend?: object | undefined;
|
|
11
|
-
getAddress: () => Promise<`0x${string}`>;
|
|
12
|
-
decodeCalls?: ((data: `0x${string}`) => Promise<readonly {
|
|
13
|
-
to: `0x${string}`;
|
|
14
|
-
data?: `0x${string}` | undefined;
|
|
15
|
-
value?: bigint | undefined;
|
|
16
|
-
}[]>) | undefined;
|
|
17
|
-
encodeCalls: (calls: readonly {
|
|
18
|
-
to: `0x${string}`;
|
|
19
|
-
data?: `0x${string}` | undefined;
|
|
20
|
-
value?: bigint | undefined;
|
|
21
|
-
}[]) => Promise<`0x${string}`>;
|
|
22
|
-
getFactoryArgs: () => Promise<{
|
|
23
|
-
factory?: `0x${string}` | undefined;
|
|
24
|
-
factoryData?: `0x${string}` | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
getNonce?: ((parameters?: {
|
|
27
|
-
key?: bigint | undefined;
|
|
28
|
-
} | undefined) => Promise<bigint>) | undefined;
|
|
29
|
-
getStubSignature: (parameters?: import("viem/account-abstraction").UserOperationRequest | undefined) => Promise<`0x${string}`>;
|
|
30
|
-
nonceKeyManager?: import("viem").NonceManager | undefined;
|
|
31
|
-
sign?: ((parameters: {
|
|
32
|
-
hash: `0x${string}`;
|
|
33
|
-
}) => Promise<`0x${string}`>) | undefined;
|
|
34
|
-
signMessage: (parameters: {
|
|
35
|
-
message: import("viem").SignableMessage;
|
|
36
|
-
}) => Promise<`0x${string}`>;
|
|
37
|
-
signTypedData: <const typedData extends {
|
|
38
|
-
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
39
|
-
[x: `string[${string}]`]: undefined;
|
|
40
|
-
[x: `function[${string}]`]: undefined;
|
|
41
|
-
[x: `address[${string}]`]: undefined;
|
|
42
|
-
[x: `bool[${string}]`]: undefined;
|
|
43
|
-
[x: `bytes[${string}]`]: undefined;
|
|
44
|
-
[x: `bytes1[${string}]`]: undefined;
|
|
45
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
46
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
47
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
48
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
49
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
50
|
-
[x: `bytes7[${string}]`]: undefined;
|
|
51
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
52
|
-
[x: `bytes9[${string}]`]: undefined;
|
|
53
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
54
|
-
[x: `bytes11[${string}]`]: undefined;
|
|
55
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
56
|
-
[x: `bytes13[${string}]`]: undefined;
|
|
57
|
-
[x: `bytes14[${string}]`]: undefined;
|
|
58
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
59
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
60
|
-
[x: `bytes17[${string}]`]: undefined;
|
|
61
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
62
|
-
[x: `bytes19[${string}]`]: undefined;
|
|
63
|
-
[x: `bytes20[${string}]`]: undefined;
|
|
64
|
-
[x: `bytes21[${string}]`]: undefined;
|
|
65
|
-
[x: `bytes22[${string}]`]: undefined;
|
|
66
|
-
[x: `bytes23[${string}]`]: undefined;
|
|
67
|
-
[x: `bytes24[${string}]`]: undefined;
|
|
68
|
-
[x: `bytes25[${string}]`]: undefined;
|
|
69
|
-
[x: `bytes26[${string}]`]: undefined;
|
|
70
|
-
[x: `bytes27[${string}]`]: undefined;
|
|
71
|
-
[x: `bytes28[${string}]`]: undefined;
|
|
72
|
-
[x: `bytes29[${string}]`]: undefined;
|
|
73
|
-
[x: `bytes30[${string}]`]: undefined;
|
|
74
|
-
[x: `bytes31[${string}]`]: undefined;
|
|
75
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
76
|
-
[x: `int[${string}]`]: undefined;
|
|
77
|
-
[x: `int8[${string}]`]: undefined;
|
|
78
|
-
[x: `int16[${string}]`]: undefined;
|
|
79
|
-
[x: `int24[${string}]`]: undefined;
|
|
80
|
-
[x: `int32[${string}]`]: undefined;
|
|
81
|
-
[x: `int40[${string}]`]: undefined;
|
|
82
|
-
[x: `int48[${string}]`]: undefined;
|
|
83
|
-
[x: `int56[${string}]`]: undefined;
|
|
84
|
-
[x: `int64[${string}]`]: undefined;
|
|
85
|
-
[x: `int72[${string}]`]: undefined;
|
|
86
|
-
[x: `int80[${string}]`]: undefined;
|
|
87
|
-
[x: `int88[${string}]`]: undefined;
|
|
88
|
-
[x: `int96[${string}]`]: undefined;
|
|
89
|
-
[x: `int104[${string}]`]: undefined;
|
|
90
|
-
[x: `int112[${string}]`]: undefined;
|
|
91
|
-
[x: `int120[${string}]`]: undefined;
|
|
92
|
-
[x: `int128[${string}]`]: undefined;
|
|
93
|
-
[x: `int136[${string}]`]: undefined;
|
|
94
|
-
[x: `int144[${string}]`]: undefined;
|
|
95
|
-
[x: `int152[${string}]`]: undefined;
|
|
96
|
-
[x: `int160[${string}]`]: undefined;
|
|
97
|
-
[x: `int168[${string}]`]: undefined;
|
|
98
|
-
[x: `int176[${string}]`]: undefined;
|
|
99
|
-
[x: `int184[${string}]`]: undefined;
|
|
100
|
-
[x: `int192[${string}]`]: undefined;
|
|
101
|
-
[x: `int200[${string}]`]: undefined;
|
|
102
|
-
[x: `int208[${string}]`]: undefined;
|
|
103
|
-
[x: `int216[${string}]`]: undefined;
|
|
104
|
-
[x: `int224[${string}]`]: undefined;
|
|
105
|
-
[x: `int232[${string}]`]: undefined;
|
|
106
|
-
[x: `int240[${string}]`]: undefined;
|
|
107
|
-
[x: `int248[${string}]`]: undefined;
|
|
108
|
-
[x: `int256[${string}]`]: undefined;
|
|
109
|
-
[x: `uint[${string}]`]: undefined;
|
|
110
|
-
[x: `uint8[${string}]`]: undefined;
|
|
111
|
-
[x: `uint16[${string}]`]: undefined;
|
|
112
|
-
[x: `uint24[${string}]`]: undefined;
|
|
113
|
-
[x: `uint32[${string}]`]: undefined;
|
|
114
|
-
[x: `uint40[${string}]`]: undefined;
|
|
115
|
-
[x: `uint48[${string}]`]: undefined;
|
|
116
|
-
[x: `uint56[${string}]`]: undefined;
|
|
117
|
-
[x: `uint64[${string}]`]: undefined;
|
|
118
|
-
[x: `uint72[${string}]`]: undefined;
|
|
119
|
-
[x: `uint80[${string}]`]: undefined;
|
|
120
|
-
[x: `uint88[${string}]`]: undefined;
|
|
121
|
-
[x: `uint96[${string}]`]: undefined;
|
|
122
|
-
[x: `uint104[${string}]`]: undefined;
|
|
123
|
-
[x: `uint112[${string}]`]: undefined;
|
|
124
|
-
[x: `uint120[${string}]`]: undefined;
|
|
125
|
-
[x: `uint128[${string}]`]: undefined;
|
|
126
|
-
[x: `uint136[${string}]`]: undefined;
|
|
127
|
-
[x: `uint144[${string}]`]: undefined;
|
|
128
|
-
[x: `uint152[${string}]`]: undefined;
|
|
129
|
-
[x: `uint160[${string}]`]: undefined;
|
|
130
|
-
[x: `uint168[${string}]`]: undefined;
|
|
131
|
-
[x: `uint176[${string}]`]: undefined;
|
|
132
|
-
[x: `uint184[${string}]`]: undefined;
|
|
133
|
-
[x: `uint192[${string}]`]: undefined;
|
|
134
|
-
[x: `uint200[${string}]`]: undefined;
|
|
135
|
-
[x: `uint208[${string}]`]: undefined;
|
|
136
|
-
[x: `uint216[${string}]`]: undefined;
|
|
137
|
-
[x: `uint224[${string}]`]: undefined;
|
|
138
|
-
[x: `uint232[${string}]`]: undefined;
|
|
139
|
-
[x: `uint240[${string}]`]: undefined;
|
|
140
|
-
[x: `uint248[${string}]`]: undefined;
|
|
141
|
-
[x: `uint256[${string}]`]: undefined;
|
|
142
|
-
string?: undefined;
|
|
143
|
-
address?: undefined;
|
|
144
|
-
bool?: undefined;
|
|
145
|
-
bytes?: undefined;
|
|
146
|
-
bytes1?: undefined;
|
|
147
|
-
bytes3?: undefined;
|
|
148
|
-
bytes2?: undefined;
|
|
149
|
-
bytes4?: undefined;
|
|
150
|
-
bytes5?: undefined;
|
|
151
|
-
bytes6?: undefined;
|
|
152
|
-
bytes7?: undefined;
|
|
153
|
-
bytes8?: undefined;
|
|
154
|
-
bytes9?: undefined;
|
|
155
|
-
bytes10?: undefined;
|
|
156
|
-
bytes11?: undefined;
|
|
157
|
-
bytes12?: undefined;
|
|
158
|
-
bytes13?: undefined;
|
|
159
|
-
bytes14?: undefined;
|
|
160
|
-
bytes15?: undefined;
|
|
161
|
-
bytes16?: undefined;
|
|
162
|
-
bytes17?: undefined;
|
|
163
|
-
bytes18?: undefined;
|
|
164
|
-
bytes19?: undefined;
|
|
165
|
-
bytes20?: undefined;
|
|
166
|
-
bytes21?: undefined;
|
|
167
|
-
bytes22?: undefined;
|
|
168
|
-
bytes23?: undefined;
|
|
169
|
-
bytes24?: undefined;
|
|
170
|
-
bytes25?: undefined;
|
|
171
|
-
bytes26?: undefined;
|
|
172
|
-
bytes27?: undefined;
|
|
173
|
-
bytes28?: undefined;
|
|
174
|
-
bytes29?: undefined;
|
|
175
|
-
bytes30?: undefined;
|
|
176
|
-
bytes31?: undefined;
|
|
177
|
-
bytes32?: undefined;
|
|
178
|
-
int8?: undefined;
|
|
179
|
-
int16?: undefined;
|
|
180
|
-
int24?: undefined;
|
|
181
|
-
int32?: undefined;
|
|
182
|
-
int40?: undefined;
|
|
183
|
-
int48?: undefined;
|
|
184
|
-
int56?: undefined;
|
|
185
|
-
int64?: undefined;
|
|
186
|
-
int72?: undefined;
|
|
187
|
-
int80?: undefined;
|
|
188
|
-
int88?: undefined;
|
|
189
|
-
int96?: undefined;
|
|
190
|
-
int104?: undefined;
|
|
191
|
-
int112?: undefined;
|
|
192
|
-
int120?: undefined;
|
|
193
|
-
int128?: undefined;
|
|
194
|
-
int136?: undefined;
|
|
195
|
-
int144?: undefined;
|
|
196
|
-
int152?: undefined;
|
|
197
|
-
int160?: undefined;
|
|
198
|
-
int168?: undefined;
|
|
199
|
-
int176?: undefined;
|
|
200
|
-
int184?: undefined;
|
|
201
|
-
int192?: undefined;
|
|
202
|
-
int200?: undefined;
|
|
203
|
-
int208?: undefined;
|
|
204
|
-
int216?: undefined;
|
|
205
|
-
int224?: undefined;
|
|
206
|
-
int232?: undefined;
|
|
207
|
-
int240?: undefined;
|
|
208
|
-
int248?: undefined;
|
|
209
|
-
int256?: undefined;
|
|
210
|
-
uint8?: undefined;
|
|
211
|
-
uint16?: undefined;
|
|
212
|
-
uint24?: undefined;
|
|
213
|
-
uint32?: undefined;
|
|
214
|
-
uint40?: undefined;
|
|
215
|
-
uint48?: undefined;
|
|
216
|
-
uint56?: undefined;
|
|
217
|
-
uint64?: undefined;
|
|
218
|
-
uint72?: undefined;
|
|
219
|
-
uint80?: undefined;
|
|
220
|
-
uint88?: undefined;
|
|
221
|
-
uint96?: undefined;
|
|
222
|
-
uint104?: undefined;
|
|
223
|
-
uint112?: undefined;
|
|
224
|
-
uint120?: undefined;
|
|
225
|
-
uint128?: undefined;
|
|
226
|
-
uint136?: undefined;
|
|
227
|
-
uint144?: undefined;
|
|
228
|
-
uint152?: undefined;
|
|
229
|
-
uint160?: undefined;
|
|
230
|
-
uint168?: undefined;
|
|
231
|
-
uint176?: undefined;
|
|
232
|
-
uint184?: undefined;
|
|
233
|
-
uint192?: undefined;
|
|
234
|
-
uint200?: undefined;
|
|
235
|
-
uint208?: undefined;
|
|
236
|
-
uint216?: undefined;
|
|
237
|
-
uint224?: undefined;
|
|
238
|
-
uint232?: undefined;
|
|
239
|
-
uint240?: undefined;
|
|
240
|
-
uint248?: undefined;
|
|
241
|
-
uint256?: undefined;
|
|
242
|
-
} | Record<string, unknown>, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
|
|
243
|
-
signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
|
|
244
|
-
chainId?: number | undefined;
|
|
245
|
-
}) => Promise<`0x${string}`>;
|
|
246
|
-
userOperation?: {
|
|
247
|
-
estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation.js").EstimateUserOperationGasReturnType> | undefined>) | undefined;
|
|
248
|
-
} | undefined;
|
|
249
|
-
} & {
|
|
250
|
-
address: `0x${string}`;
|
|
251
|
-
getNonce: (parameters?: {
|
|
252
|
-
key?: bigint | undefined;
|
|
253
|
-
} | undefined) => Promise<bigint>;
|
|
254
|
-
isDeployed: () => Promise<boolean>;
|
|
255
|
-
type: "smart";
|
|
256
|
-
}) | undefined = undefined, client extends Client | undefined = undefined, rpcSchema extends RpcSchema | undefined = undefined>(clients: KernelAccountClient<transport, chain, account, client, rpcSchema>[], onError?: ((error: Error, clientUrl: string) => Promise<void>) | undefined) => KernelAccountClient<transport, chain, account, client, rpcSchema>;
|
|
4
|
+
export declare const createFallbackKernelAccountClient: <transport extends Transport, chain extends Chain | undefined = undefined, account extends SmartAccount | undefined = undefined, client extends Client | undefined = undefined, rpcSchema extends RpcSchema | undefined = undefined>(clients: KernelAccountClient<transport, chain, account, client, rpcSchema>[], onError?: ((error: Error, clientUrl: string) => Promise<void>) | undefined) => KernelAccountClient<transport, chain, account, client, rpcSchema>;
|
|
257
5
|
//# 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,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"fallbackKernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/fallbackKernelAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAEnE,eAAO,MAAM,iCAAiC,wUAUxB,KAAK,aAAa,MAAM,KAAK,QAAQ,IAAI,CAAC,mFAmE/D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/kernelAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"kernelAccountClient.d.ts","sourceRoot":"","sources":["../../clients/kernelAccountClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK,4BAA4B,EACjC,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,mBAAmB,EAGxB,KAAK,gBAAgB,EAIrB,KAAK,YAAY,EACjB,KAAK,oBAAoB,EAEzB,KAAK,oBAAoB,IAAI,wBAAwB,EACxD,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EACH,KAAK,0BAA0B,EAElC,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,mBAAmB,CAC3B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACnE,MAAM,SAAS,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,EACtD,SAAS,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,IACnD,QAAQ,CACR,MAAM,CACF,SAAS,EACT,KAAK,SAAS,KAAK,GACb,KAAK,GAEL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AA2F;QAC3F,oBAAoB,CAAC,EACf,gBAAgB,CAAC,sBAAsB,CAAC,GACxC,SAAS,CAAA;KAClB,GACD,SAAS,CAAA;IACf,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,oCAAoC;IACpC,aAAa,CAAC,EACR;QACI,8DAA8D;QAC9D,kBAAkB,CAAC,EACb,CAAC,CAAC,UAAU,EAAE;YACV,OAAO,EAAE,OAAO,GAAG,YAAY,CAAA;YAC/B,aAAa,EAAE,MAAM,CAAA;YACrB,aAAa,EAAE,oBAAoB,CAAA;SACtC,KAAK,OAAO,CAAC,4BAA4B,CAAC,SAAS,CAAC,CAAC,CAAC,GACvD,SAAS,CAAA;QACf,4CAA4C;QAC5C,oBAAoB,CAAC,EAAE,OAAO,wBAAwB,GAAG,SAAS,CAAA;KACrE,GACD,SAAS,CAAA;CAClB,CAAA;AAED,wBAAgB,yBAAyB,CACrC,SAAS,SAAS,SAAS,EAC3B,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAC3C,OAAO,SAAS,YAAY,GAAG,SAAS,GAAG,SAAS,EACpD,MAAM,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,EAC7C,SAAS,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,EAEnD,UAAU,EAAE,wBAAwB,CAChC,SAAS,EACT,KAAK,EACL,OAAO,EACP,MAAM,EACN,SAAS,CACZ,GACF,mBAAmB,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { type Chain, type Client, type ClientConfig, type Prettify, type RpcSche
|
|
|
2
2
|
import { type PaymasterActions, type SmartAccount } from "viem/account-abstraction";
|
|
3
3
|
import type { ZeroDevPaymasterRpcSchema } from "../types/kernel.js";
|
|
4
4
|
import { type ZeroDevPaymasterClientActions } from "./decorators/kernel.js";
|
|
5
|
-
export type ZeroDevPaymasterClient<entryPointVersion extends "0.6" | "0.7" = "0.7", transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined, client extends Client | undefined = Client | undefined, rpcSchema extends RpcSchema | undefined = undefined> = Prettify<Client<transport, chain extends Chain ? chain : client extends Client<any, infer chain> ? chain : undefined, account, rpcSchema extends RpcSchema ? [...ZeroDevPaymasterRpcSchema<entryPointVersion>, ...rpcSchema] : ZeroDevPaymasterRpcSchema<entryPointVersion>, PaymasterActions & ZeroDevPaymasterClientActions>>;
|
|
5
|
+
export type ZeroDevPaymasterClient<entryPointVersion extends "0.6" | "0.7" | "0.8" = "0.7", transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined, client extends Client | undefined = Client | undefined, rpcSchema extends RpcSchema | undefined = undefined> = Prettify<Client<transport, chain extends Chain ? chain : client extends Client<any, infer chain> ? chain : undefined, account, rpcSchema extends RpcSchema ? [...ZeroDevPaymasterRpcSchema<entryPointVersion>, ...rpcSchema] : ZeroDevPaymasterRpcSchema<entryPointVersion>, PaymasterActions & ZeroDevPaymasterClientActions>>;
|
|
6
6
|
export type ZeroDevPaymasterClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined, rpcSchema extends RpcSchema | undefined = undefined> = Prettify<Pick<ClientConfig<transport, chain, account, rpcSchema>, "account" | "cacheTime" | "chain" | "key" | "name" | "pollingInterval" | "rpcSchema" | "transport">>;
|
|
7
7
|
/**
|
|
8
8
|
* Creates a ZeroDev-specific Paymaster Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymasterClient.d.ts","sourceRoot":"","sources":["../../clients/paymasterClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,YAAY,EACjB,KAAK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AM,KAAK,CAAC,GACrC,KAAK,GACL,SAAS,EACjB,OAAO,EACP,SAAS,SAAS,SAAS,GACrB,CAAC,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,EAAE,GAAG,SAAS,CAAC,GAC/D,yBAAyB,CAAC,iBAAiB,CAAC,EAClD,gBAAgB,GAAG,6BAA6B,CACnD,CACJ,CAAA;AAED,MAAM,MAAM,4BAA4B,CACpC,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACnD,OAAO,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACnE,SAAS,SAAS,SAAS,GAAG,SAAS,GAAG,SAAS,IACnD,QAAQ,CACR,IAAI,CACA,YAAY,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,CAAC,EAChD,SAAS,GACT,WAAW,GACX,OAAO,GACP,KAAK,GACL,MAAM,GACN,iBAAiB,GACjB,WAAW,GACX,WAAW,CAChB,CACJ,CAAA;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,4BAA4B,eACzB,4BAA4B,KACzC,sBAmBF,CAAA"}
|
package/_types/constants.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare const KERNEL_V3_0: KERNEL_V3_VERSION_TYPE;
|
|
|
21
21
|
export declare const KERNEL_V3_1: KERNEL_V3_VERSION_TYPE;
|
|
22
22
|
export declare const KERNEL_V3_2: KERNEL_V3_VERSION_TYPE;
|
|
23
23
|
export declare const KERNEL_V3_3_BETA: KERNEL_V3_VERSION_TYPE;
|
|
24
|
+
export declare const KERNEL_V3_3: KERNEL_V3_VERSION_TYPE;
|
|
24
25
|
export declare const TOKEN_ACTION = "0x2087C7FfD0d0DAE80a00EE74325aBF3449e0eaf1";
|
|
25
26
|
export declare const ONLY_ENTRYPOINT_HOOK_ADDRESS = "0xb230f0A1C7C95fa11001647383c8C7a8F316b900";
|
|
26
27
|
export declare const KERNEL_NAME = "Kernel";
|
|
@@ -56,5 +57,5 @@ export declare const KernelFactoryToInitCodeHashMap: {
|
|
|
56
57
|
};
|
|
57
58
|
export declare const KERNEL_IMPLEMENTATION_SLOT = "0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc";
|
|
58
59
|
export declare const getEntryPoint: <TEntryPointVersion extends EntryPointVersion>(entryPointVersion: TEntryPointVersion) => EntryPointType<TEntryPointVersion>;
|
|
59
|
-
export declare const KERNEL_7702_DELEGATION_ADDRESS = "
|
|
60
|
+
export declare const KERNEL_7702_DELEGATION_ADDRESS = "0xd6CEDDe84be40893d153Be9d467CD6aD37875b28";
|
|
60
61
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,GAAG,EAAe,MAAM,MAAM,CAAA;AAC1D,OAAO,EACH,KAAK,iBAAiB,EAGzB,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EACR,cAAc,EACd,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACtB,MAAM,mBAAmB,CAAA;AAE1B,eAAO,MAAM,eAAe,yIAC8G,CAAA;AAE1I,eAAO,MAAM,0BAA0B,uEACiC,CAAA;AAWxE,eAAO,MAAM,oBAAoB,+CAA+C,CAAA;AAChF,eAAO,MAAM,mCAAmC,uEACwB,CAAA;AAExE,eAAO,MAAM,2BAA2B,EAAE;KACrC,GAAG,IAAI,mBAAmB,GAAG;QAC1B,4BAA4B,EAAE,OAAO,CAAA;QACrC,cAAc,EAAE,OAAO,CAAA;QACvB,kBAAkB,CAAC,EAAE,GAAG,SAAS,sBAAsB,GACjD,OAAO,GACP,KAAK,CAAA;QACX,YAAY,CAAC,EAAE,GAAG,CAAA;KACrB;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":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;;;;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;AAED,eAAO,MAAM,WAAW;;;;;;;CAOvB,CAAA;AAID,eAAO,MAAM,qBAAqB,+CACc,CAAA;AAChD,eAAO,MAAM,8BAA8B,EAAE;IAAE,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,CAAA;CAKjE,CAAA;AAED,eAAO,MAAM,0BAA0B,uEACiC,CAAA;AAExE,eAAO,MAAM,aAAa,6HAYzB,CAAA;AAED,eAAO,MAAM,8BAA8B,+CACK,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KernelEIP1193Provider.d.ts","sourceRoot":"","sources":["../../providers/KernelEIP1193Provider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"KernelEIP1193Provider.d.ts","sourceRoot":"","sources":["../../providers/KernelEIP1193Provider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAErC,OAAO,KAAK,EACR,iBAAiB,EACjB,gBAAgB,EAInB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAE5E,qBAAa,qBAAsB,SAAQ,YAAY;IACnD,OAAO,CAAC,YAAY,CAAqB;gBAE7B,YAAY,EAAE,mBAAmB;IAKvC,OAAO,CAAC,EACV,MAAM,EACN,MAAW,EACd,EAAE,iBAAiB,GAAG,UAAU,CAAC,gBAAgB,CAAC;YAoBrC,wBAAwB;YAOxB,iBAAiB;YAOjB,wBAAwB;YAUxB,aAAa;YAoBb,kBAAkB;YAsBlB,wBAAwB;CAyBzC"}
|