permissionless 0.0.1 → 0.0.3

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 (92) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/_cjs/actions/bundler.js +118 -0
  3. package/_cjs/actions/bundler.js.map +1 -0
  4. package/_cjs/actions/index.js +12 -0
  5. package/_cjs/actions/index.js.map +1 -0
  6. package/_cjs/actions/pimlico.js +55 -0
  7. package/_cjs/actions/pimlico.js.map +1 -0
  8. package/_cjs/actions/utils.js +31 -0
  9. package/_cjs/actions/utils.js.map +1 -0
  10. package/_cjs/clients/bundler.js +17 -0
  11. package/_cjs/clients/bundler.js.map +1 -0
  12. package/_cjs/clients/index.js +6 -0
  13. package/_cjs/clients/index.js.map +1 -0
  14. package/_cjs/clients/pimlico.js +29 -0
  15. package/_cjs/clients/pimlico.js.map +1 -0
  16. package/_cjs/index.js +7 -0
  17. package/_cjs/index.js.map +1 -0
  18. package/_cjs/package.json +1 -0
  19. package/_cjs/types/bundler.js +3 -0
  20. package/_cjs/types/bundler.js.map +1 -0
  21. package/_cjs/types/index.js +3 -0
  22. package/_cjs/types/index.js.map +1 -0
  23. package/_cjs/types/pimlico.js +3 -0
  24. package/_cjs/types/pimlico.js.map +1 -0
  25. package/_cjs/types/userOperation.js +3 -0
  26. package/_cjs/types/userOperation.js.map +1 -0
  27. package/_esm/actions/bundler.js +251 -0
  28. package/_esm/actions/bundler.js.map +1 -0
  29. package/_esm/actions/index.js +3 -0
  30. package/_esm/actions/index.js.map +1 -0
  31. package/_esm/actions/pimlico.js +127 -0
  32. package/_esm/actions/pimlico.js.map +1 -0
  33. package/_esm/actions/utils.js +28 -0
  34. package/_esm/actions/utils.js.map +1 -0
  35. package/_esm/clients/bundler.js +33 -0
  36. package/_esm/clients/bundler.js.map +1 -0
  37. package/_esm/clients/index.js +3 -0
  38. package/_esm/clients/index.js.map +1 -0
  39. package/_esm/clients/pimlico.js +64 -0
  40. package/_esm/clients/pimlico.js.map +1 -0
  41. package/_esm/index.js +4 -0
  42. package/_esm/index.js.map +1 -0
  43. package/_esm/package.json +1 -0
  44. package/_esm/types/bundler.js +2 -0
  45. package/_esm/types/bundler.js.map +1 -0
  46. package/_esm/types/index.js +2 -0
  47. package/_esm/types/index.js.map +1 -0
  48. package/_esm/types/pimlico.js +2 -0
  49. package/_esm/types/pimlico.js.map +1 -0
  50. package/_esm/types/userOperation.js +2 -0
  51. package/_esm/types/userOperation.js.map +1 -0
  52. package/_types/actions/bundler.d.ts +393 -0
  53. package/_types/actions/bundler.d.ts.map +1 -0
  54. package/_types/actions/index.d.ts +5 -0
  55. package/_types/actions/index.d.ts.map +1 -0
  56. package/_types/actions/pimlico.d.ts +184 -0
  57. package/_types/actions/pimlico.d.ts.map +1 -0
  58. package/_types/actions/utils.d.ts +6 -0
  59. package/_types/actions/utils.d.ts.map +1 -0
  60. package/_types/clients/bundler.d.ts +39 -0
  61. package/_types/clients/bundler.d.ts.map +1 -0
  62. package/_types/clients/index.d.ts +3 -0
  63. package/_types/clients/index.d.ts.map +1 -0
  64. package/_types/clients/pimlico.d.ts +75 -0
  65. package/_types/clients/pimlico.d.ts.map +1 -0
  66. package/_types/index.d.ts +4 -0
  67. package/_types/index.d.ts.map +1 -0
  68. package/_types/types/bundler.d.ts +82 -0
  69. package/_types/types/bundler.d.ts.map +1 -0
  70. package/_types/types/index.d.ts +3 -0
  71. package/_types/types/index.d.ts.map +1 -0
  72. package/_types/types/pimlico.d.ts +50 -0
  73. package/_types/types/pimlico.d.ts.map +1 -0
  74. package/_types/types/userOperation.d.ts +30 -0
  75. package/_types/types/userOperation.d.ts.map +1 -0
  76. package/actions/bundler.ts +498 -0
  77. package/actions/index.ts +38 -0
  78. package/actions/package.json +6 -0
  79. package/actions/pimlico.ts +258 -0
  80. package/actions/utils.ts +30 -0
  81. package/clients/bundler.ts +39 -0
  82. package/clients/index.ts +3 -0
  83. package/clients/pimlico.ts +93 -0
  84. package/index.ts +3 -0
  85. package/package.json +49 -11
  86. package/tsconfig.build.tsbuildinfo +1 -0
  87. package/types/bundler.ts +85 -0
  88. package/types/index.ts +3 -0
  89. package/types/package.json +6 -0
  90. package/types/pimlico.ts +55 -0
  91. package/types/userOperation.ts +32 -0
  92. package/LICENSE +0 -21
@@ -0,0 +1,393 @@
1
+ import type { Address } from "abitype";
2
+ import type { Client, Hash, Hex } from "viem";
3
+ import type { PartialBy } from "viem/types/utils";
4
+ import type { BundlerClient } from "../clients/bundler";
5
+ import type { UserOperation } from "../types";
6
+ import type { TStatus } from "../types/userOperation";
7
+ export type SendUserOperationParameters = {
8
+ userOperation: UserOperation;
9
+ entryPoint: Address;
10
+ };
11
+ export type EstimateUserOperationGasParameters = {
12
+ userOperation: PartialBy<UserOperation, "callGasLimit" | "preVerificationGas" | "verificationGasLimit">;
13
+ entryPoint: Address;
14
+ };
15
+ export type EstimateUserOperationGasReturnType = {
16
+ preVerificationGas: bigint;
17
+ verificationGasLimit: bigint;
18
+ callGasLimit: bigint;
19
+ };
20
+ export type GetUserOperationByHashParameters = {
21
+ hash: Hash;
22
+ };
23
+ export type GetUserOperationByHashReturnType = {
24
+ userOperation: UserOperation;
25
+ entryPoint: Address;
26
+ transactionHash: Hash;
27
+ blockHash: Hash;
28
+ blockNumber: bigint;
29
+ } | null;
30
+ export type GetUserOperationReceiptParameters = {
31
+ hash: Hash;
32
+ };
33
+ export type GetUserOperationReceiptReturnType = {
34
+ userOpHash: Hash;
35
+ sender: Address;
36
+ nonce: bigint;
37
+ actualGasUsed: bigint;
38
+ actualGasCost: bigint;
39
+ success: boolean;
40
+ receipt: {
41
+ transactionHash: Hex;
42
+ transactionIndex: bigint;
43
+ blockHash: Hash;
44
+ blockNumber: bigint;
45
+ from: Address;
46
+ to: Address | null;
47
+ cumulativeGasUsed: bigint;
48
+ status: TStatus;
49
+ gasUsed: bigint;
50
+ contractAddress: Address | null;
51
+ logsBloom: Hex;
52
+ effectiveGasPrice: bigint;
53
+ };
54
+ logs: {
55
+ data: Hex;
56
+ blockNumber: bigint;
57
+ blockHash: Hash;
58
+ transactionHash: Hash;
59
+ logIndex: bigint;
60
+ transactionIndex: bigint;
61
+ address: Address;
62
+ topics: Hex[];
63
+ }[];
64
+ } | null;
65
+ /**
66
+ * Sends user operation to the bundler
67
+ *
68
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/sendUserOperation
69
+ *
70
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
71
+ * @param args {@link SendUserOperationParameters}.
72
+ * @returns UserOpHash that you can use to track user operation as {@link Hash}.
73
+ *
74
+ *
75
+ * @example
76
+ * import { createClient } from "viem"
77
+ * import { sendUserOperation } from "permissionless/actions"
78
+ *
79
+ * const bundlerClient = createClient({
80
+ * chain: goerli,
81
+ * transport: http(BUNDLER_URL)
82
+ * })
83
+ *
84
+ * const userOpHash = sendUserOperation(bundlerClient, {
85
+ * userOperation: signedUserOperation,
86
+ * entryPoint: entryPoint
87
+ * })
88
+ *
89
+ * // Return '0xe9fad2cd67f9ca1d0b7a6513b2a42066784c8df938518da2b51bb8cc9a89ea34'
90
+ *
91
+ */
92
+ export declare const sendUserOperation: (client: BundlerClient, args: SendUserOperationParameters) => Promise<Hash>;
93
+ /**
94
+ * Estimates preVerificationGas, verificationGasLimit and callGasLimit for user operation
95
+ *
96
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/estimateUserOperationGas
97
+ *
98
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
99
+ * @param args {@link EstimateUserOperationGasParameters}
100
+ * @returns preVerificationGas, verificationGasLimit and callGasLimit as {@link EstimateUserOperationGasReturnType}
101
+ *
102
+ *
103
+ * @example
104
+ * import { createClient } from "viem"
105
+ * import { estimateUserOperationGas } from "permissionless/actions"
106
+ *
107
+ * const bundlerClient = createClient({
108
+ * chain: goerli,
109
+ * transport: http(BUNDLER_URL)
110
+ * })
111
+ *
112
+ * const gasParameters = estimateUserOperationGas(bundlerClient, {
113
+ * serOperation: signedUserOperation,
114
+ * entryPoint: entryPoint
115
+ * })
116
+ *
117
+ * // Return {preVerificationGas: 43492n, verificationGasLimit: 59436n, callGasLimit: 9000n}
118
+ *
119
+ */
120
+ export declare const estimateUserOperationGas: (client: BundlerClient, args: EstimateUserOperationGasParameters) => Promise<EstimateUserOperationGasReturnType>;
121
+ /**
122
+ * Returns the supported entrypoints by the bundler service
123
+ *
124
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/supportedEntryPoints
125
+ *
126
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
127
+ * @returns Supported entryPoints
128
+ *
129
+ *
130
+ * @example
131
+ * import { createClient } from "viem"
132
+ * import { supportedEntryPoints } from "permissionless/actions"
133
+ *
134
+ * const bundlerClient = createClient({
135
+ * chain: goerli,
136
+ * transport: http(BUNDLER_URL)
137
+ * })
138
+ *
139
+ * const entryPointsSupported = supportedEntryPoints(bundlerClient)
140
+ * // Return ['0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789']
141
+ *
142
+ */
143
+ export declare const supportedEntryPoints: (client: BundlerClient) => Promise<Address[]>;
144
+ /**
145
+ * Returns the supported chain id by the bundler service
146
+ *
147
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/chainId
148
+ *
149
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
150
+ * @returns Supported chain id
151
+ *
152
+ *
153
+ * @example
154
+ * import { createClient } from "viem"
155
+ * import { chainId } from "permissionless/actions"
156
+ *
157
+ * const bundlerClient = createClient({
158
+ * chain: goerli,
159
+ * transport: http(BUNDLER_URL)
160
+ * })
161
+ *
162
+ * const bundlerChainId = chainId(bundlerClient)
163
+ * // Return 5n for Goerli
164
+ *
165
+ */
166
+ export declare const chainId: (client: BundlerClient) => Promise<bigint>;
167
+ /**
168
+ * Returns the user operation from userOpHash
169
+ *
170
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/getUserOperationByHash
171
+ *
172
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
173
+ * @param args {@link GetUserOperationByHashParameters} UserOpHash that was returned by {@link sendUserOperation}
174
+ * @returns userOperation along with entryPoint, transactionHash, blockHash, blockNumber if found or null
175
+ *
176
+ *
177
+ * @example
178
+ * import { createClient } from "viem"
179
+ * import { getUserOperationByHash } from "permissionless/actions"
180
+ *
181
+ * const bundlerClient = createClient({
182
+ * chain: goerli,
183
+ * transport: http(BUNDLER_URL)
184
+ * })
185
+ *
186
+ * getUserOperationByHash(bundlerClient, {hash: userOpHash})
187
+ *
188
+ */
189
+ export declare const getUserOperationByHash: (client: BundlerClient, { hash }: GetUserOperationByHashParameters) => Promise<{
190
+ userOperation: UserOperation;
191
+ entryPoint: Address;
192
+ transactionHash: Hash;
193
+ blockHash: Hash;
194
+ blockNumber: bigint;
195
+ } | null>;
196
+ /**
197
+ * Returns the user operation receipt from userOpHash
198
+ *
199
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/getUserOperationReceipt
200
+ *
201
+ * @param client {@link BundlerClient} that you created using viem's createClient and extended it with bundlerActions.
202
+ * @param args {@link GetUserOperationReceiptParameters} UserOpHash that was returned by {@link sendUserOperation}
203
+ * @returns user operation receipt {@link GetUserOperationReceiptReturnType} if found or null
204
+ *
205
+ *
206
+ * @example
207
+ * import { createClient } from "viem"
208
+ * import { getUserOperationReceipt } from "permissionless/actions"
209
+ *
210
+ * const bundlerClient = createClient({
211
+ * chain: goerli,
212
+ * transport: http(BUNDLER_URL)
213
+ * })
214
+ *
215
+ * getUserOperationReceipt(bundlerClient, {hash: userOpHash})
216
+ *
217
+ */
218
+ export declare const getUserOperationReceipt: (client: BundlerClient, { hash }: GetUserOperationReceiptParameters) => Promise<{
219
+ userOpHash: Hash;
220
+ sender: Address;
221
+ nonce: bigint;
222
+ actualGasUsed: bigint;
223
+ actualGasCost: bigint;
224
+ success: boolean;
225
+ receipt: {
226
+ transactionHash: Hex;
227
+ transactionIndex: bigint;
228
+ blockHash: Hash;
229
+ blockNumber: bigint;
230
+ from: Address;
231
+ to: Address | null;
232
+ cumulativeGasUsed: bigint;
233
+ status: TStatus;
234
+ gasUsed: bigint;
235
+ contractAddress: Address | null;
236
+ logsBloom: Hex;
237
+ effectiveGasPrice: bigint;
238
+ };
239
+ logs: {
240
+ data: Hex;
241
+ blockNumber: bigint;
242
+ blockHash: Hash;
243
+ transactionHash: Hash;
244
+ logIndex: bigint;
245
+ transactionIndex: bigint;
246
+ address: Address;
247
+ topics: Hex[];
248
+ }[];
249
+ } | null>;
250
+ export type BundlerActions = {
251
+ /**
252
+ *
253
+ * Sends user operation to the bundler
254
+ *
255
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/sendUserOperation
256
+ *
257
+ * @param args {@link SendUserOperationParameters}.
258
+ * @returns UserOpHash that you can use to track user operation as {@link Hash}.
259
+ *
260
+ * @example
261
+ * import { createClient } from "viem"
262
+ * import { bundlerActions } from "permissionless"
263
+ *
264
+ * const bundlerClient = createClient({
265
+ * chain: goerli,
266
+ * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE")
267
+ * }).extend(bundlerActions)
268
+ *
269
+ * const userOpHash = await bundlerClient.sendUserOperation({
270
+ * userOperation: signedUserOperation,
271
+ * entryPoint: entryPoint
272
+ * })
273
+ *
274
+ * // Return '0xe9fad2cd67f9ca1d0b7a6513b2a42066784c8df938518da2b51bb8cc9a89ea34'
275
+ */
276
+ sendUserOperation: (args: SendUserOperationParameters) => Promise<Hash>;
277
+ /**
278
+ *
279
+ * Estimates preVerificationGas, verificationGasLimit and callGasLimit for user operation
280
+ *
281
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/estimateUserOperationGas
282
+ *
283
+ * @param args {@link EstimateUserOperationGasParameters}
284
+ * @returns preVerificationGas, verificationGasLimit and callGasLimit as {@link EstimateUserOperationGasReturnType}
285
+ *
286
+ * @example
287
+ * import { createClient } from "viem"
288
+ * import { bundlerActions } from "permissionless"
289
+ *
290
+ * const bundlerClient = createClient({
291
+ * chain: goerli,
292
+ * transport: http(BUNDLER_URL)
293
+ * }).extend(bundlerActions)
294
+ *
295
+ * const gasParameters = await bundlerClient.estimateUserOperationGas({
296
+ * userOperation: signedUserOperation,
297
+ * entryPoint: entryPoint
298
+ * })
299
+ *
300
+ * // Return {preVerificationGas: 43492n, verificationGasLimit: 59436n, callGasLimit: 9000n}
301
+ */
302
+ estimateUserOperationGas: (args: EstimateUserOperationGasParameters) => Promise<EstimateUserOperationGasReturnType>;
303
+ /**
304
+ *
305
+ * Returns the supported entrypoints by the bundler service
306
+ *
307
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/supportedEntryPoints
308
+ *
309
+ * @returns Supported entryPoints
310
+ *
311
+ * @example
312
+ * import { createClient } from "viem"
313
+ * import { bundlerActions } from "permissionless"
314
+ *
315
+ * const bundlerClient = createClient({
316
+ * chain: goerli,
317
+ * transport: http(BUNDLER_URL)
318
+ * }).extend(bundlerActions)
319
+ *
320
+ * const supportedEntryPoints = await bundlerClient.supportedEntryPoints()
321
+ *
322
+ * // Return ['0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789']
323
+ */
324
+ supportedEntryPoints: () => Promise<Address[]>;
325
+ /**
326
+ *
327
+ * Returns the supported chain id by the bundler service
328
+ *
329
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/chainId
330
+ *
331
+ * @returns Supported chain id
332
+ *
333
+ * @example
334
+ * import { createClient } from "viem"
335
+ * import { bundlerActions } from "permissionless"
336
+ *
337
+ * const bundlerClient = createClient({
338
+ * chain: goerli,
339
+ * transport: http(BUNDLER_URL)
340
+ * }).extend(bundlerActions)
341
+ *
342
+ * const chainId = await bundlerClient.chainId()
343
+ * // Return 5n for Goerli
344
+ */
345
+ chainId: () => Promise<bigint>;
346
+ /**
347
+ *
348
+ * Returns the user operation from userOpHash
349
+ *
350
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/getUserOperationByHash
351
+ *
352
+ * @param args {@link GetUserOperationByHash} UserOpHash that was returned by {@link sendUserOperation}
353
+ * @returns userOperation along with entryPoint, transactionHash, blockHash, blockNumber if found or null
354
+ *
355
+ * @example
356
+ * import { createClient } from "viem"
357
+ * import { bundlerActions } from "permissionless"
358
+ *
359
+ * const bundlerClient = createClient({
360
+ * chain: goerli,
361
+ * transport: http(BUNDLER_URL)
362
+ * }).extend(bundlerActions)
363
+ *
364
+ * await bundlerClient.getUserOperationByHash(userOpHash)
365
+ *
366
+ */
367
+ getUserOperationByHash: (args: GetUserOperationByHashParameters) => Promise<GetUserOperationByHashReturnType>;
368
+ /**
369
+ *
370
+ * Returns the user operation receipt from userOpHash
371
+ *
372
+ * - Docs: https://docs.pimlico.io/permissionless/reference/bundler-actions/getUserOperationReceipt
373
+ *
374
+ * @param args {@link GetUserOperationReceiptParameters} UserOpHash that was returned by {@link sendUserOperation}
375
+ * @returns user operation receipt {@link GetUserOperationReceiptReturnType} if found or null
376
+ *
377
+ * @example
378
+ * import { createClient } from "viem"
379
+ * import { bundlerActions } from "permissionless"
380
+ *
381
+ * const bundlerClient = createClient({
382
+ * chain: goerli,
383
+ * transport: http(BUNDLER_URL)
384
+ * }).extend(bundlerActions)
385
+ *
386
+ * await bundlerClient.getUserOperationReceipt({hash: userOpHash})
387
+ *
388
+ */
389
+ getUserOperationReceipt: (args: GetUserOperationReceiptParameters) => Promise<GetUserOperationReceiptReturnType>;
390
+ };
391
+ declare const bundlerActions: (client: Client) => BundlerActions;
392
+ export default bundlerActions;
393
+ //# sourceMappingURL=bundler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../actions/bundler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,M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;;;;OAoBG;IACH,oBAAoB,EAAE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAC9C;;;;;;;;;;;;;;;;;;;OAmBG;IACH,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;IAC9B;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,sBAAsB,EAAE,CAAC,IAAI,EAAE,gCAAgC,KAAK,OAAO,CAAC,gCAAgC,CAAC,CAAA;IAC7G;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,uBAAuB,EAAE,CAAC,IAAI,EAAE,iCAAiC,KAAK,OAAO,CAAC,iCAAiC,CAAC,CAAA;CACnH,CAAA;AAED,QAAA,MAAM,cAAc,WAAY,MAAM,KAAG,cAWvC,CAAA;AAEF,eAAe,cAAc,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType, GetUserOperationByHashParameters, GetUserOperationByHashReturnType, GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType, SendUserOperationParameters } from "./bundler";
2
+ import bundlerActions, { chainId, estimateUserOperationGas, getUserOperationByHash, getUserOperationReceipt, sendUserOperation, supportedEntryPoints } from "./bundler";
3
+ export type { SendUserOperationParameters, EstimateUserOperationGasParameters, EstimateUserOperationGasReturnType, GetUserOperationByHashParameters, GetUserOperationByHashReturnType, GetUserOperationReceiptParameters, GetUserOperationReceiptReturnType };
4
+ export { bundlerActions, sendUserOperation, estimateUserOperationGas, supportedEntryPoints, chainId, getUserOperationByHash, getUserOperationReceipt };
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,kCAAkC,EAClC,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,iCAAiC,EACjC,2BAA2B,EAC9B,MAAM,WAAW,CAAA;AAElB,OAAO,cAAc,EAAE,EACnB,OAAO,EACP,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACvB,MAAM,WAAW,CAAA;AAElB,YAAY,EACR,2BAA2B,EAC3B,kCAAkC,EAClC,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,iCAAiC,EACpC,CAAA;AAED,OAAO,EACH,cAAc,EACd,iBAAiB,EACjB,wBAAwB,EACxB,oBAAoB,EACpB,OAAO,EACP,sBAAsB,EACtB,uBAAuB,EAC1B,CAAA"}
@@ -0,0 +1,184 @@
1
+ import type { Address, Client, Hash, Hex } from "viem";
2
+ import type { PartialBy } from "viem/types/utils";
3
+ import type { PimlicoBundlerClient, PimlicoPaymasterClient } from "../clients/pimlico";
4
+ import type { PimlicoUserOperationStatus } from "../types/pimlico";
5
+ import type { UserOperation } from "../types/userOperation";
6
+ export type SponsorUserOperationParameters = {
7
+ userOperation: PartialBy<UserOperation, "callGasLimit" | "preVerificationGas" | "verificationGasLimit" | "paymasterAndData">;
8
+ entryPoint: Address;
9
+ };
10
+ export type SponsorUserOperationReturnType = {
11
+ paymasterAndData: Hex;
12
+ preVerificationGas: bigint;
13
+ verificationGasLimit: bigint;
14
+ callGasLimit: bigint;
15
+ };
16
+ export type GetUserOperationGasPriceReturnType = {
17
+ slow: {
18
+ maxFeePerGas: bigint;
19
+ maxPriorityFeePerGas: bigint;
20
+ };
21
+ standard: {
22
+ maxFeePerGas: bigint;
23
+ maxPriorityFeePerGas: bigint;
24
+ };
25
+ fast: {
26
+ maxFeePerGas: bigint;
27
+ maxPriorityFeePerGas: bigint;
28
+ };
29
+ };
30
+ export type GetUserOperationStatusParameters = {
31
+ hash: Hash;
32
+ };
33
+ export type GetUserOperationStatusReturnType = PimlicoUserOperationStatus;
34
+ /**
35
+ * Returns the live gas prices that you can use to send a user operation.
36
+ *
37
+ * - Docs: [TODO://add link]
38
+ * - Example: [TODO://add link]
39
+ *
40
+ * @param client {@link PimlicoBundlerClient} that you created using viem's createClient whose transport url is pointing to the Pimlico's bundler.
41
+ * @returns slow, standard & fast values for maxFeePerGas & maxPriorityFeePerGas
42
+ *
43
+ *
44
+ * @example
45
+ * import { createClient } from "viem"
46
+ * import { getUserOperationGasPrice } from "permissionless/actions"
47
+ *
48
+ * const bundlerClient = createClient({
49
+ * chain: goerli,
50
+ * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE")
51
+ * })
52
+ *
53
+ * await getUserOperationGasPrice(bundlerClient)
54
+ *
55
+ */
56
+ export declare const getUserOperationGasPrice: (client: PimlicoBundlerClient) => Promise<GetUserOperationGasPriceReturnType>;
57
+ /**
58
+ * Returns the status of the userOperation that is pending in the mempool.
59
+ *
60
+ * - Docs: [TODO://add link]
61
+ * - Example: [TODO://add link]
62
+ *
63
+ * @param client {@link PimlicoBundlerClient} that you created using viem's createClient whose transport url is pointing to the Pimlico's bundler.
64
+ * @param hash {@link Hash} UserOpHash that you must have received from sendUserOperation.
65
+ * @returns status & transaction hash if included {@link GetUserOperationStatusReturnType}
66
+ *
67
+ *
68
+ * @example
69
+ * import { createClient } from "viem"
70
+ * import { getUserOperationStatus } from "permissionless/actions"
71
+ *
72
+ * const bundlerClient = createClient({
73
+ * chain: goerli,
74
+ * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE")
75
+ * })
76
+ *
77
+ * await getUserOperationStatus(bundlerClient, { hash: userOpHash })
78
+ *
79
+ */
80
+ export declare const getUserOperationStatus: (client: PimlicoBundlerClient, { hash }: GetUserOperationStatusParameters) => Promise<GetUserOperationStatusReturnType>;
81
+ export type PimlicoBundlerActions = {
82
+ /**
83
+ * Returns the live gas prices that you can use to send a user operation.
84
+ *
85
+ * - Docs: [TODO://add link]
86
+ * - Example: [TODO://add link]
87
+ *
88
+ * @returns slow, standard & fast values for maxFeePerGas & maxPriorityFeePerGas {@link GetUserOperationGasPriceReturnType}
89
+ *
90
+ * @example
91
+ *
92
+ * import { createClient } from "viem"
93
+ * import { pimlicoBundlerActions } from "permissionless/actions"
94
+ *
95
+ * const bundlerClient = createClient({
96
+ * chain: goerli,
97
+ * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE")
98
+ * }).extend(pimlicoBundlerActions)
99
+ *
100
+ * await bundlerClient.getUserOperationGasPrice()
101
+ */
102
+ getUserOperationGasPrice: () => Promise<GetUserOperationGasPriceReturnType>;
103
+ /**
104
+ * Returns the status of the userOperation that is pending in the mempool.
105
+ *
106
+ * - Docs: [TODO://add link]
107
+ * - Example: [TODO://add link]
108
+ *
109
+ * @param hash {@link Hash} UserOpHash that you must have received from sendUserOperation.
110
+ * @returns status & transaction hash if included {@link GetUserOperationStatusReturnType}
111
+ *
112
+ * @example
113
+ * import { createClient } from "viem"
114
+ * import { pimlicoBundlerActions } from "permissionless/actions"
115
+ *
116
+ * const bundlerClient = createClient({
117
+ * chain: goerli,
118
+ * transport: http("https://api.pimlico.io/v1/goerli/rpc?apikey=YOUR_API_KEY_HERE")
119
+ * }).extend(pimlicoBundlerActions)
120
+ *
121
+ * await bundlerClient.getUserOperationStatus({ hash: userOpHash })
122
+ */
123
+ getUserOperationStatus: (args: GetUserOperationStatusParameters) => Promise<GetUserOperationStatusReturnType>;
124
+ };
125
+ export declare const pimlicoBundlerActions: (client: Client) => PimlicoBundlerActions;
126
+ /**
127
+ * Returns paymasterAndData & updated gas parameters required to sponsor a userOperation.
128
+ *
129
+ * - Docs: [TODO://add link]
130
+ * - Example: [TODO://add link]
131
+ *
132
+ * @param client {@link PimlicoBundlerClient} that you created using viem's createClient whose transport url is pointing to the Pimlico's bundler.
133
+ * @param args {@link sponsorUserOperationParameters} UserOperation you want to sponsor & entryPoint.
134
+ * @returns paymasterAndData & updated gas parameters, see {@link SponsorUserOperationReturnType}
135
+ *
136
+ *
137
+ * @example
138
+ * import { createClient } from "viem"
139
+ * import { sponsorUserOperation } from "permissionless/actions"
140
+ *
141
+ * const bundlerClient = createClient({
142
+ * chain: goerli,
143
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE")
144
+ * })
145
+ *
146
+ * await sponsorUserOperation(bundlerClient, {
147
+ * userOperation: userOperationWithDummySignature,
148
+ * entryPoint: entryPoint
149
+ * }})
150
+ *
151
+ */
152
+ export declare const sponsorUserOperation: (client: PimlicoPaymasterClient, args: SponsorUserOperationParameters) => Promise<SponsorUserOperationReturnType>;
153
+ export type PimlicoPaymasterClientActions = {
154
+ /**
155
+ * Returns paymasterAndData & updated gas parameters required to sponsor a userOperation.
156
+ *
157
+ * - Docs: [TODO://add link]
158
+ * - Example: [TODO://add link]
159
+ *
160
+ * @param args {@link SponsorUserOperationParameters} UserOperation you want to sponsor & entryPoint.
161
+ * @returns paymasterAndData & updated gas parameters, see {@link SponsorUserOperationReturnType}
162
+ *
163
+ * @example
164
+ * import { createClient } from "viem"
165
+ * import { sponsorUserOperation } from "permissionless/actions"
166
+ *
167
+ * const bundlerClient = createClient({
168
+ * chain: goerli,
169
+ * transport: http("https://api.pimlico.io/v2/goerli/rpc?apikey=YOUR_API_KEY_HERE")
170
+ * }).extend(pimlicoPaymasterActions)
171
+ *
172
+ * await bundlerClient.sponsorUserOperation(bundlerClient, {
173
+ * userOperation: userOperationWithDummySignature,
174
+ * entryPoint: entryPoint
175
+ * }})
176
+ *
177
+ */
178
+ sponsorUserOperation: (args: SponsorUserOperationParameters) => Promise<SponsorUserOperationReturnType>;
179
+ };
180
+ export declare const pimlicoPaymasterActions: (client: Client) => PimlicoPaymasterClientActions;
181
+ /**
182
+ * TODO: Add support for pimlicoActions after we support all the actions of v1 in v2 of the Pimlico API.
183
+ */
184
+ //# sourceMappingURL=pimlico.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MA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;;GAsBG;AACH,eAAO,MAAM,sBAAsB,WACvB,oBAAoB,YAClB,gCAAgC,KAC3C,QAAQ,gCAAgC,CAK1C,CAAA;AAED,MAAM,MAAM,qBAAqB,GAAG;IAChC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,wBAAwB,EAAE,MAAM,OAAO,CAAC,kCAAkC,CAAC,CAAA;IAC3E;;;;;;;;;;;;;;;;;;;OAmBG;IACH,sBAAsB,EAAE,CAAC,IAAI,EAAE,gCAAgC,KAAK,OAAO,CAAC,gCAAgC,CAAC,CAAA;CAChH,CAAA;AAED,eAAO,MAAM,qBAAqB,WAAY,MAAM,KAAG,qBAIrD,CAAA;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,oBAAoB,WACrB,sBAAsB,QACxB,8BAA8B,KACrC,QAAQ,8BAA8B,CAYxC,CAAA;AAED,MAAM,MAAM,6BAA6B,GAAG;IACxC;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,oBAAoB,EAAE,CAAC,IAAI,EAAE,8BAA8B,KAAK,OAAO,CAAC,8BAA8B,CAAC,CAAA;CAC1G,CAAA;AAED,eAAO,MAAM,uBAAuB,WAAY,MAAM,KAAG,6BAGvD,CAAA;AAEF;;GAEG"}
@@ -0,0 +1,6 @@
1
+ export declare const transactionReceiptStatus: {
2
+ readonly "0x0": "reverted";
3
+ readonly "0x1": "success";
4
+ };
5
+ export declare function deepHexlify(obj: any): any;
6
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../actions/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,wBAAwB;;;CAG3B,CAAA;AAGV,wBAAgB,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,CAqBzC"}
@@ -0,0 +1,39 @@
1
+ import type { Account, Chain, Client, PublicClientConfig, Transport } from "viem";
2
+ import type { BundlerActions } from "../actions/bundler";
3
+ import type { BundlerRpcSchema } from "../types/bundler";
4
+ export type BundlerClient = Client<Transport, Chain | undefined, Account | undefined, BundlerRpcSchema, BundlerActions>;
5
+ /**
6
+ * Creates a EIP-4337 compliant Bundler Client with a given [Transport](https://viem.sh/docs/clients/intro.html) configured for a [Chain](https://viem.sh/docs/clients/chains.html).
7
+ *
8
+ * - Docs: [TODO://add link]
9
+ * - Example: [TODO://add link]
10
+ *
11
+ * A Bundler Client is an interface to "erc 4337" [JSON-RPC API](https://eips.ethereum.org/EIPS/eip-4337#rpc-methods-eth-namespace) methods such as sending user operation, estimating gas for a user operation, get user operation receipt, etc through [Bundler Actions](TODO://Add bundler action documentation link).
12
+ *
13
+ * @param config - {@link PublicClientConfig}
14
+ * @returns A Bundler Client. {@link BundlerClient}
15
+ *
16
+ * @example
17
+ * import { createPublicClient, http } from 'viem'
18
+ * import { mainnet } from 'viem/chains'
19
+ *
20
+ * const bundlerClient = createBundlerClient({
21
+ * chain: mainnet,
22
+ * transport: http(BUNDLER_URL),
23
+ * })
24
+ */
25
+ export declare const createBundlerClient: <transport extends Transport, chain extends Chain | undefined = undefined>(parameters: {
26
+ name?: string | undefined;
27
+ pollingInterval?: number | undefined;
28
+ chain?: Chain | chain | undefined;
29
+ key?: string | undefined;
30
+ batch?: {
31
+ multicall?: boolean | {
32
+ batchSize?: number | undefined;
33
+ wait?: number | undefined;
34
+ } | undefined;
35
+ } | undefined;
36
+ cacheTime?: number | undefined;
37
+ transport: transport;
38
+ }) => BundlerClient;
39
+ //# sourceMappingURL=bundler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundler.d.ts","sourceRoot":"","sources":["../../clients/bundler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAGjF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAExD,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,SAAS,EAAE,OAAO,GAAG,SAAS,EAAE,gBAAgB,EAAE,cAAc,CAAC,CAAA;AACvH;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;MAE7B,aASF,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { type BundlerClient, createBundlerClient } from "./bundler";
2
+ export { createBundlerClient, type BundlerClient };
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../clients/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAA;AAEnE,OAAO,EAAE,mBAAmB,EAAE,KAAK,aAAa,EAAE,CAAA"}