permissionless 0.2.5 → 0.2.7
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/CHANGELOG.md +12 -0
- package/_cjs/accounts/biconomy/toBiconomySmartAccount.js +37 -13
- package/_cjs/accounts/biconomy/toBiconomySmartAccount.js.map +1 -1
- package/_cjs/accounts/kernel/toEcdsaKernelSmartAccount.js +2 -2
- package/_cjs/accounts/kernel/toEcdsaKernelSmartAccount.js.map +1 -1
- package/_cjs/accounts/kernel/utils/signMessage.js +1 -2
- package/_cjs/accounts/kernel/utils/signMessage.js.map +1 -1
- package/_cjs/accounts/kernel/utils/signTypedData.js +1 -2
- package/_cjs/accounts/kernel/utils/signTypedData.js.map +1 -1
- package/_cjs/accounts/light/toLightSmartAccount.js +1 -2
- package/_cjs/accounts/light/toLightSmartAccount.js.map +1 -1
- package/_cjs/accounts/safe/toSafeSmartAccount.js +1 -2
- package/_cjs/accounts/safe/toSafeSmartAccount.js.map +1 -1
- package/_cjs/accounts/simple/toSimpleSmartAccount.js +1 -2
- package/_cjs/accounts/simple/toSimpleSmartAccount.js.map +1 -1
- package/_cjs/accounts/trust/toTrustSmartAccount.js +2 -2
- package/_cjs/accounts/trust/toTrustSmartAccount.js.map +1 -1
- package/_cjs/actions/erc7579/accountId.js +1 -2
- package/_cjs/actions/erc7579/accountId.js.map +1 -1
- package/_cjs/actions/erc7579/installModule.js +1 -2
- package/_cjs/actions/erc7579/installModule.js.map +1 -1
- package/_cjs/actions/erc7579/installModules.js +1 -2
- package/_cjs/actions/erc7579/installModules.js.map +1 -1
- package/_cjs/actions/erc7579/isModuleInstalled.js +1 -2
- package/_cjs/actions/erc7579/isModuleInstalled.js.map +1 -1
- package/_cjs/actions/erc7579/supportsExecutionMode.js +2 -3
- package/_cjs/actions/erc7579/supportsExecutionMode.js.map +1 -1
- package/_cjs/actions/erc7579/supportsModule.js +2 -3
- package/_cjs/actions/erc7579/supportsModule.js.map +1 -1
- package/_cjs/actions/erc7579/uninstallModule.js +1 -2
- package/_cjs/actions/erc7579/uninstallModule.js.map +1 -1
- package/_cjs/actions/erc7579/uninstallModules.js +1 -2
- package/_cjs/actions/erc7579/uninstallModules.js.map +1 -1
- package/_cjs/actions/erc7579.js +2 -2
- package/_cjs/actions/erc7579.js.map +1 -1
- package/_cjs/actions/smartAccount/sendTransaction.js +1 -2
- package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -1
- package/_cjs/actions/smartAccount/signMessage.js +1 -2
- package/_cjs/actions/smartAccount/signMessage.js.map +1 -1
- package/_cjs/actions/smartAccount/signTypedData.js +1 -2
- package/_cjs/actions/smartAccount/signTypedData.js.map +1 -1
- package/_cjs/actions/smartAccount/writeContract.js +1 -2
- package/_cjs/actions/smartAccount/writeContract.js.map +1 -1
- package/_cjs/clients/createSmartAccountClient.js +26 -10
- package/_cjs/clients/createSmartAccountClient.js.map +1 -1
- package/_cjs/clients/decorators/smartAccount.js +1 -2
- package/_cjs/clients/decorators/smartAccount.js.map +1 -1
- package/_cjs/clients/pimlico.js +1 -2
- package/_cjs/clients/pimlico.js.map +1 -1
- package/_cjs/experimental/pimlico/index.js +6 -0
- package/_cjs/experimental/pimlico/index.js.map +1 -0
- package/_cjs/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js +126 -0
- package/_cjs/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js.map +1 -0
- package/_cjs/utils/decodeNonce.js +1 -2
- package/_cjs/utils/decodeNonce.js.map +1 -1
- package/_cjs/utils/deepHexlify.js +2 -2
- package/_cjs/utils/deepHexlify.js.map +1 -1
- package/_cjs/utils/encode7579Calls.js +1 -2
- package/_cjs/utils/encode7579Calls.js.map +1 -1
- package/_cjs/utils/encodeInstallModule.js +1 -2
- package/_cjs/utils/encodeInstallModule.js.map +1 -1
- package/_cjs/utils/encodeNonce.js +1 -2
- package/_cjs/utils/encodeNonce.js.map +1 -1
- package/_cjs/utils/encodeUninstallModule.js +1 -2
- package/_cjs/utils/encodeUninstallModule.js.map +1 -1
- package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js +1 -2
- package/_cjs/utils/getAddressFromInitCodeOrPaymasterAndData.js.map +1 -1
- package/_cjs/utils/getPackedUserOperation.js +9 -9
- package/_cjs/utils/getPackedUserOperation.js.map +1 -1
- package/_cjs/utils/toOwner.js +1 -2
- package/_cjs/utils/toOwner.js.map +1 -1
- package/_esm/accounts/biconomy/toBiconomySmartAccount.js +39 -12
- package/_esm/accounts/biconomy/toBiconomySmartAccount.js.map +1 -1
- package/_esm/accounts/safe/toSafeSmartAccount.js.map +1 -1
- package/_esm/clients/createSmartAccountClient.js +26 -9
- package/_esm/clients/createSmartAccountClient.js.map +1 -1
- package/_esm/experimental/pimlico/index.js +3 -0
- package/_esm/experimental/pimlico/index.js.map +1 -0
- package/_esm/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js +144 -0
- package/_esm/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.js.map +1 -0
- package/_types/accounts/biconomy/toBiconomySmartAccount.d.ts +2 -0
- package/_types/accounts/biconomy/toBiconomySmartAccount.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/encodeCallData.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/getNonceKey.d.ts.map +1 -1
- package/_types/accounts/kernel/utils/isKernelV2.d.ts.map +1 -1
- package/_types/accounts/safe/toSafeSmartAccount.d.ts +0 -1
- package/_types/accounts/safe/toSafeSmartAccount.d.ts.map +1 -1
- package/_types/actions/erc7579.d.ts +1 -249
- package/_types/actions/erc7579.d.ts.map +1 -1
- package/_types/actions/pimlico/getTokenQuotes.d.ts.map +1 -1
- package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -1
- package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -1
- package/_types/actions/pimlico/sendCompressedUserOperation.d.ts.map +1 -1
- package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
- package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +1 -1
- package/_types/actions/public/getAccountNonce.d.ts.map +1 -1
- package/_types/actions/public/getSenderAddress.d.ts.map +1 -1
- package/_types/clients/createSmartAccountClient.d.ts +4 -2
- package/_types/clients/createSmartAccountClient.d.ts.map +1 -1
- package/_types/clients/decorators/pimlico.d.ts.map +1 -1
- package/_types/clients/decorators/smartAccount.d.ts +16 -471
- package/_types/clients/decorators/smartAccount.d.ts.map +1 -1
- package/_types/experimental/pimlico/index.d.ts +3 -0
- package/_types/experimental/pimlico/index.d.ts.map +1 -0
- package/_types/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.d.ts +4 -0
- package/_types/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.d.ts.map +1 -0
- package/_types/utils/getPackedUserOperation.d.ts.map +1 -1
- package/_types/utils/getRequiredPrefund.d.ts.map +1 -1
- package/_types/utils/isSmartAccountDeployed.d.ts.map +1 -1
- package/accounts/biconomy/toBiconomySmartAccount.ts +85 -16
- package/accounts/safe/toSafeSmartAccount.ts +0 -1
- package/actions/smartAccount/sendTransaction.test.ts +129 -0
- package/clients/createSmartAccountClient.ts +53 -22
- package/experimental/pimlico/index.ts +2 -0
- package/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.test.ts +195 -0
- package/experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.ts +270 -0
- package/package.json +6 -6
|
@@ -242,500 +242,45 @@ export type SmartAccountActions<TChain extends Chain | undefined = Chain | undef
|
|
|
242
242
|
*/
|
|
243
243
|
writeContract: <const TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, "nonpayable" | "payable"> = ContractFunctionName<TAbi, "nonpayable" | "payable">, TArgs extends ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName> = ContractFunctionArgs<TAbi, "nonpayable" | "payable", TFunctionName>, TChainOverride extends Chain | undefined = undefined>(args: WriteContractParameters<TAbi, TFunctionName, TArgs, TChain, TSmartAccount, TChainOverride>) => ReturnType<typeof writeContract<TChain, TSmartAccount, TAbi, TFunctionName, TArgs, TChainOverride>>;
|
|
244
244
|
};
|
|
245
|
-
export declare function smartAccountActions(): <TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends (object & {
|
|
245
|
+
export declare function smartAccountActions(): <TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount | undefined = (object & {
|
|
246
246
|
client: Client;
|
|
247
247
|
entryPoint: {
|
|
248
248
|
abi: Abi;
|
|
249
|
-
address:
|
|
249
|
+
address: import("viem").Address;
|
|
250
250
|
version: import("viem/account-abstraction").EntryPointVersion;
|
|
251
251
|
};
|
|
252
252
|
extend?: object | undefined;
|
|
253
|
-
getAddress: () => Promise
|
|
253
|
+
getAddress: () => Promise<import("viem").Address>;
|
|
254
254
|
encodeCalls: (calls: readonly {
|
|
255
|
-
to:
|
|
256
|
-
data?:
|
|
255
|
+
to: import("viem").Hex;
|
|
256
|
+
data?: import("viem").Hex | undefined;
|
|
257
257
|
value?: bigint | undefined;
|
|
258
|
-
}[]) => Promise
|
|
258
|
+
}[]) => Promise<import("viem").Hex>;
|
|
259
259
|
getFactoryArgs: () => Promise<{
|
|
260
|
-
factory?:
|
|
261
|
-
factoryData?:
|
|
260
|
+
factory?: import("viem").Address | undefined;
|
|
261
|
+
factoryData?: import("viem").Hex | undefined;
|
|
262
262
|
}>;
|
|
263
263
|
getNonce?: ((parameters?: {
|
|
264
264
|
key?: bigint | undefined;
|
|
265
265
|
} | undefined) => Promise<bigint>) | undefined;
|
|
266
|
-
getStubSignature: () => Promise
|
|
266
|
+
getStubSignature: () => Promise<import("viem").Hex>;
|
|
267
267
|
nonceKeyManager?: import("viem").NonceManager | undefined;
|
|
268
268
|
sign?: ((parameters: {
|
|
269
|
-
hash:
|
|
270
|
-
}) => Promise
|
|
269
|
+
hash: Hash;
|
|
270
|
+
}) => Promise<import("viem").Hex>) | undefined;
|
|
271
271
|
signMessage: (parameters: {
|
|
272
272
|
message: import("viem").SignableMessage;
|
|
273
|
-
}) => Promise
|
|
274
|
-
signTypedData: <const typedData extends Record<string, unknown
|
|
275
|
-
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
276
|
-
[x: `string[${string}]`]: undefined;
|
|
277
|
-
[x: `function[${string}]`]: undefined;
|
|
278
|
-
[x: `address[${string}]`]: undefined;
|
|
279
|
-
[x: `bool[${string}]`]: undefined;
|
|
280
|
-
[x: `bytes[${string}]`]: undefined;
|
|
281
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
282
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
283
|
-
[x: `bytes1[${string}]`]: undefined;
|
|
284
|
-
[x: `bytes22[${string}]`]: undefined;
|
|
285
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
286
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
287
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
288
|
-
[x: `bytes7[${string}]`]: undefined;
|
|
289
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
290
|
-
[x: `bytes9[${string}]`]: undefined;
|
|
291
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
292
|
-
[x: `bytes11[${string}]`]: undefined;
|
|
293
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
294
|
-
[x: `bytes13[${string}]`]: undefined;
|
|
295
|
-
[x: `bytes14[${string}]`]: undefined;
|
|
296
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
297
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
298
|
-
[x: `bytes17[${string}]`]: undefined;
|
|
299
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
300
|
-
[x: `bytes19[${string}]`]: undefined;
|
|
301
|
-
[x: `bytes20[${string}]`]: undefined;
|
|
302
|
-
[x: `bytes21[${string}]`]: undefined;
|
|
303
|
-
[x: `bytes23[${string}]`]: undefined;
|
|
304
|
-
[x: `bytes24[${string}]`]: undefined;
|
|
305
|
-
[x: `bytes25[${string}]`]: undefined;
|
|
306
|
-
[x: `bytes26[${string}]`]: undefined;
|
|
307
|
-
[x: `bytes27[${string}]`]: undefined;
|
|
308
|
-
[x: `bytes28[${string}]`]: undefined;
|
|
309
|
-
[x: `bytes29[${string}]`]: undefined;
|
|
310
|
-
[x: `bytes30[${string}]`]: undefined;
|
|
311
|
-
[x: `bytes31[${string}]`]: undefined;
|
|
312
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
313
|
-
[x: `int[${string}]`]: undefined;
|
|
314
|
-
[x: `int40[${string}]`]: undefined;
|
|
315
|
-
[x: `int8[${string}]`]: undefined;
|
|
316
|
-
[x: `int16[${string}]`]: undefined;
|
|
317
|
-
[x: `int24[${string}]`]: undefined;
|
|
318
|
-
[x: `int32[${string}]`]: undefined;
|
|
319
|
-
[x: `int48[${string}]`]: undefined;
|
|
320
|
-
[x: `int56[${string}]`]: undefined;
|
|
321
|
-
[x: `int64[${string}]`]: undefined;
|
|
322
|
-
[x: `int72[${string}]`]: undefined;
|
|
323
|
-
[x: `int80[${string}]`]: undefined;
|
|
324
|
-
[x: `int88[${string}]`]: undefined;
|
|
325
|
-
[x: `int96[${string}]`]: undefined;
|
|
326
|
-
[x: `int104[${string}]`]: undefined;
|
|
327
|
-
[x: `int112[${string}]`]: undefined;
|
|
328
|
-
[x: `int120[${string}]`]: undefined;
|
|
329
|
-
[x: `int128[${string}]`]: undefined;
|
|
330
|
-
[x: `int136[${string}]`]: undefined;
|
|
331
|
-
[x: `int144[${string}]`]: undefined;
|
|
332
|
-
[x: `int152[${string}]`]: undefined;
|
|
333
|
-
[x: `int160[${string}]`]: undefined;
|
|
334
|
-
[x: `int168[${string}]`]: undefined;
|
|
335
|
-
[x: `int176[${string}]`]: undefined;
|
|
336
|
-
[x: `int184[${string}]`]: undefined;
|
|
337
|
-
[x: `int192[${string}]`]: undefined;
|
|
338
|
-
[x: `int200[${string}]`]: undefined;
|
|
339
|
-
[x: `int208[${string}]`]: undefined;
|
|
340
|
-
[x: `int216[${string}]`]: undefined;
|
|
341
|
-
[x: `int224[${string}]`]: undefined;
|
|
342
|
-
[x: `int232[${string}]`]: undefined;
|
|
343
|
-
[x: `int240[${string}]`]: undefined;
|
|
344
|
-
[x: `int248[${string}]`]: undefined;
|
|
345
|
-
[x: `int256[${string}]`]: undefined;
|
|
346
|
-
[x: `uint[${string}]`]: undefined;
|
|
347
|
-
[x: `uint40[${string}]`]: undefined;
|
|
348
|
-
[x: `uint8[${string}]`]: undefined;
|
|
349
|
-
[x: `uint16[${string}]`]: undefined;
|
|
350
|
-
[x: `uint24[${string}]`]: undefined;
|
|
351
|
-
[x: `uint32[${string}]`]: undefined;
|
|
352
|
-
[x: `uint48[${string}]`]: undefined;
|
|
353
|
-
[x: `uint56[${string}]`]: undefined;
|
|
354
|
-
[x: `uint64[${string}]`]: undefined;
|
|
355
|
-
[x: `uint72[${string}]`]: undefined;
|
|
356
|
-
[x: `uint80[${string}]`]: undefined;
|
|
357
|
-
[x: `uint88[${string}]`]: undefined;
|
|
358
|
-
[x: `uint96[${string}]`]: undefined;
|
|
359
|
-
[x: `uint104[${string}]`]: undefined;
|
|
360
|
-
[x: `uint112[${string}]`]: undefined;
|
|
361
|
-
[x: `uint120[${string}]`]: undefined;
|
|
362
|
-
[x: `uint128[${string}]`]: undefined;
|
|
363
|
-
[x: `uint136[${string}]`]: undefined;
|
|
364
|
-
[x: `uint144[${string}]`]: undefined;
|
|
365
|
-
[x: `uint152[${string}]`]: undefined;
|
|
366
|
-
[x: `uint160[${string}]`]: undefined;
|
|
367
|
-
[x: `uint168[${string}]`]: undefined;
|
|
368
|
-
[x: `uint176[${string}]`]: undefined;
|
|
369
|
-
[x: `uint184[${string}]`]: undefined;
|
|
370
|
-
[x: `uint192[${string}]`]: undefined;
|
|
371
|
-
[x: `uint200[${string}]`]: undefined;
|
|
372
|
-
[x: `uint208[${string}]`]: undefined;
|
|
373
|
-
[x: `uint216[${string}]`]: undefined;
|
|
374
|
-
[x: `uint224[${string}]`]: undefined;
|
|
375
|
-
[x: `uint232[${string}]`]: undefined;
|
|
376
|
-
[x: `uint240[${string}]`]: undefined;
|
|
377
|
-
[x: `uint248[${string}]`]: undefined;
|
|
378
|
-
[x: `uint256[${string}]`]: undefined;
|
|
379
|
-
string?: undefined;
|
|
380
|
-
address?: undefined;
|
|
381
|
-
bool?: undefined;
|
|
382
|
-
bytes?: undefined;
|
|
383
|
-
bytes2?: undefined;
|
|
384
|
-
bytes3?: undefined;
|
|
385
|
-
bytes1?: undefined;
|
|
386
|
-
bytes22?: undefined;
|
|
387
|
-
bytes6?: undefined;
|
|
388
|
-
bytes4?: undefined;
|
|
389
|
-
bytes5?: undefined;
|
|
390
|
-
bytes7?: undefined;
|
|
391
|
-
bytes8?: undefined;
|
|
392
|
-
bytes9?: undefined;
|
|
393
|
-
bytes10?: undefined;
|
|
394
|
-
bytes11?: undefined;
|
|
395
|
-
bytes12?: undefined;
|
|
396
|
-
bytes13?: undefined;
|
|
397
|
-
bytes14?: undefined;
|
|
398
|
-
bytes15?: undefined;
|
|
399
|
-
bytes16?: undefined;
|
|
400
|
-
bytes17?: undefined;
|
|
401
|
-
bytes18?: undefined;
|
|
402
|
-
bytes19?: undefined;
|
|
403
|
-
bytes20?: undefined;
|
|
404
|
-
bytes21?: undefined;
|
|
405
|
-
bytes23?: undefined;
|
|
406
|
-
bytes24?: undefined;
|
|
407
|
-
bytes25?: undefined;
|
|
408
|
-
bytes26?: undefined;
|
|
409
|
-
bytes27?: undefined;
|
|
410
|
-
bytes28?: undefined;
|
|
411
|
-
bytes29?: undefined;
|
|
412
|
-
bytes30?: undefined;
|
|
413
|
-
bytes31?: undefined;
|
|
414
|
-
bytes32?: undefined;
|
|
415
|
-
int40?: undefined;
|
|
416
|
-
int8?: undefined;
|
|
417
|
-
int16?: undefined;
|
|
418
|
-
int24?: undefined;
|
|
419
|
-
int32?: undefined;
|
|
420
|
-
int48?: undefined;
|
|
421
|
-
int56?: undefined;
|
|
422
|
-
int64?: undefined;
|
|
423
|
-
int72?: undefined;
|
|
424
|
-
int80?: undefined;
|
|
425
|
-
int88?: undefined;
|
|
426
|
-
int96?: undefined;
|
|
427
|
-
int104?: undefined;
|
|
428
|
-
int112?: undefined;
|
|
429
|
-
int120?: undefined;
|
|
430
|
-
int128?: undefined;
|
|
431
|
-
int136?: undefined;
|
|
432
|
-
int144?: undefined;
|
|
433
|
-
int152?: undefined;
|
|
434
|
-
int160?: undefined;
|
|
435
|
-
int168?: undefined;
|
|
436
|
-
int176?: undefined;
|
|
437
|
-
int184?: undefined;
|
|
438
|
-
int192?: undefined;
|
|
439
|
-
int200?: undefined;
|
|
440
|
-
int208?: undefined;
|
|
441
|
-
int216?: undefined;
|
|
442
|
-
int224?: undefined;
|
|
443
|
-
int232?: undefined;
|
|
444
|
-
int240?: undefined;
|
|
445
|
-
int248?: undefined;
|
|
446
|
-
int256?: undefined;
|
|
447
|
-
uint40?: undefined;
|
|
448
|
-
uint8?: undefined;
|
|
449
|
-
uint16?: undefined;
|
|
450
|
-
uint24?: undefined;
|
|
451
|
-
uint32?: undefined;
|
|
452
|
-
uint48?: undefined;
|
|
453
|
-
uint56?: undefined;
|
|
454
|
-
uint64?: undefined;
|
|
455
|
-
uint72?: undefined;
|
|
456
|
-
uint80?: undefined;
|
|
457
|
-
uint88?: undefined;
|
|
458
|
-
uint96?: undefined;
|
|
459
|
-
uint104?: undefined;
|
|
460
|
-
uint112?: undefined;
|
|
461
|
-
uint120?: undefined;
|
|
462
|
-
uint128?: undefined;
|
|
463
|
-
uint136?: undefined;
|
|
464
|
-
uint144?: undefined;
|
|
465
|
-
uint152?: undefined;
|
|
466
|
-
uint160?: undefined;
|
|
467
|
-
uint168?: undefined;
|
|
468
|
-
uint176?: undefined;
|
|
469
|
-
uint184?: undefined;
|
|
470
|
-
uint192?: undefined;
|
|
471
|
-
uint200?: undefined;
|
|
472
|
-
uint208?: undefined;
|
|
473
|
-
uint216?: undefined;
|
|
474
|
-
uint224?: undefined;
|
|
475
|
-
uint232?: undefined;
|
|
476
|
-
uint240?: undefined;
|
|
477
|
-
uint248?: undefined;
|
|
478
|
-
uint256?: undefined;
|
|
479
|
-
}, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
|
|
273
|
+
}) => Promise<import("viem").Hex>;
|
|
274
|
+
signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<import("viem").Hex>;
|
|
480
275
|
signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
|
|
481
276
|
chainId?: number | undefined;
|
|
482
|
-
}) => Promise
|
|
277
|
+
}) => Promise<import("viem").Hex>;
|
|
483
278
|
userOperation?: {
|
|
484
279
|
estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation").EstimateUserOperationGasReturnType> | undefined>) | undefined;
|
|
485
280
|
} | undefined;
|
|
486
281
|
} & {
|
|
487
|
-
address:
|
|
488
|
-
getNonce: (
|
|
489
|
-
key?: bigint | undefined;
|
|
490
|
-
} | undefined) => Promise<bigint>;
|
|
491
|
-
isDeployed: () => Promise<boolean>;
|
|
492
|
-
type: "smart";
|
|
493
|
-
}) | undefined = (object & {
|
|
494
|
-
client: Client;
|
|
495
|
-
entryPoint: {
|
|
496
|
-
abi: Abi;
|
|
497
|
-
address: `0x${string}`;
|
|
498
|
-
version: import("viem/account-abstraction").EntryPointVersion;
|
|
499
|
-
};
|
|
500
|
-
extend?: object | undefined;
|
|
501
|
-
getAddress: () => Promise<`0x${string}`>;
|
|
502
|
-
encodeCalls: (calls: readonly {
|
|
503
|
-
to: `0x${string}`;
|
|
504
|
-
data?: `0x${string}` | undefined;
|
|
505
|
-
value?: bigint | undefined;
|
|
506
|
-
}[]) => Promise<`0x${string}`>;
|
|
507
|
-
getFactoryArgs: () => Promise<{
|
|
508
|
-
factory?: `0x${string}` | undefined;
|
|
509
|
-
factoryData?: `0x${string}` | undefined;
|
|
510
|
-
}>;
|
|
511
|
-
getNonce?: ((parameters?: {
|
|
512
|
-
key?: bigint | undefined;
|
|
513
|
-
} | undefined) => Promise<bigint>) | undefined;
|
|
514
|
-
getStubSignature: () => Promise<`0x${string}`>;
|
|
515
|
-
nonceKeyManager?: import("viem").NonceManager | undefined;
|
|
516
|
-
sign?: ((parameters: {
|
|
517
|
-
hash: `0x${string}`;
|
|
518
|
-
}) => Promise<`0x${string}`>) | undefined;
|
|
519
|
-
signMessage: (parameters: {
|
|
520
|
-
message: import("viem").SignableMessage;
|
|
521
|
-
}) => Promise<`0x${string}`>;
|
|
522
|
-
signTypedData: <const typedData extends Record<string, unknown> | {
|
|
523
|
-
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
524
|
-
[x: `string[${string}]`]: undefined;
|
|
525
|
-
[x: `function[${string}]`]: undefined;
|
|
526
|
-
[x: `address[${string}]`]: undefined;
|
|
527
|
-
[x: `bool[${string}]`]: undefined;
|
|
528
|
-
[x: `bytes[${string}]`]: undefined;
|
|
529
|
-
[x: `bytes2[${string}]`]: undefined;
|
|
530
|
-
[x: `bytes3[${string}]`]: undefined;
|
|
531
|
-
[x: `bytes1[${string}]`]: undefined;
|
|
532
|
-
[x: `bytes22[${string}]`]: undefined;
|
|
533
|
-
[x: `bytes6[${string}]`]: undefined;
|
|
534
|
-
[x: `bytes4[${string}]`]: undefined;
|
|
535
|
-
[x: `bytes5[${string}]`]: undefined;
|
|
536
|
-
[x: `bytes7[${string}]`]: undefined;
|
|
537
|
-
[x: `bytes8[${string}]`]: undefined;
|
|
538
|
-
[x: `bytes9[${string}]`]: undefined;
|
|
539
|
-
[x: `bytes10[${string}]`]: undefined;
|
|
540
|
-
[x: `bytes11[${string}]`]: undefined;
|
|
541
|
-
[x: `bytes12[${string}]`]: undefined;
|
|
542
|
-
[x: `bytes13[${string}]`]: undefined;
|
|
543
|
-
[x: `bytes14[${string}]`]: undefined;
|
|
544
|
-
[x: `bytes15[${string}]`]: undefined;
|
|
545
|
-
[x: `bytes16[${string}]`]: undefined;
|
|
546
|
-
[x: `bytes17[${string}]`]: undefined;
|
|
547
|
-
[x: `bytes18[${string}]`]: undefined;
|
|
548
|
-
[x: `bytes19[${string}]`]: undefined;
|
|
549
|
-
[x: `bytes20[${string}]`]: undefined;
|
|
550
|
-
[x: `bytes21[${string}]`]: undefined;
|
|
551
|
-
[x: `bytes23[${string}]`]: undefined;
|
|
552
|
-
[x: `bytes24[${string}]`]: undefined;
|
|
553
|
-
[x: `bytes25[${string}]`]: undefined;
|
|
554
|
-
[x: `bytes26[${string}]`]: undefined;
|
|
555
|
-
[x: `bytes27[${string}]`]: undefined;
|
|
556
|
-
[x: `bytes28[${string}]`]: undefined;
|
|
557
|
-
[x: `bytes29[${string}]`]: undefined;
|
|
558
|
-
[x: `bytes30[${string}]`]: undefined;
|
|
559
|
-
[x: `bytes31[${string}]`]: undefined;
|
|
560
|
-
[x: `bytes32[${string}]`]: undefined;
|
|
561
|
-
[x: `int[${string}]`]: undefined;
|
|
562
|
-
[x: `int40[${string}]`]: undefined;
|
|
563
|
-
[x: `int8[${string}]`]: undefined;
|
|
564
|
-
[x: `int16[${string}]`]: undefined;
|
|
565
|
-
[x: `int24[${string}]`]: undefined;
|
|
566
|
-
[x: `int32[${string}]`]: undefined;
|
|
567
|
-
[x: `int48[${string}]`]: undefined;
|
|
568
|
-
[x: `int56[${string}]`]: undefined;
|
|
569
|
-
[x: `int64[${string}]`]: undefined;
|
|
570
|
-
[x: `int72[${string}]`]: undefined;
|
|
571
|
-
[x: `int80[${string}]`]: undefined;
|
|
572
|
-
[x: `int88[${string}]`]: undefined;
|
|
573
|
-
[x: `int96[${string}]`]: undefined;
|
|
574
|
-
[x: `int104[${string}]`]: undefined;
|
|
575
|
-
[x: `int112[${string}]`]: undefined;
|
|
576
|
-
[x: `int120[${string}]`]: undefined;
|
|
577
|
-
[x: `int128[${string}]`]: undefined;
|
|
578
|
-
[x: `int136[${string}]`]: undefined;
|
|
579
|
-
[x: `int144[${string}]`]: undefined;
|
|
580
|
-
[x: `int152[${string}]`]: undefined;
|
|
581
|
-
[x: `int160[${string}]`]: undefined;
|
|
582
|
-
[x: `int168[${string}]`]: undefined;
|
|
583
|
-
[x: `int176[${string}]`]: undefined;
|
|
584
|
-
[x: `int184[${string}]`]: undefined;
|
|
585
|
-
[x: `int192[${string}]`]: undefined;
|
|
586
|
-
[x: `int200[${string}]`]: undefined;
|
|
587
|
-
[x: `int208[${string}]`]: undefined;
|
|
588
|
-
[x: `int216[${string}]`]: undefined;
|
|
589
|
-
[x: `int224[${string}]`]: undefined;
|
|
590
|
-
[x: `int232[${string}]`]: undefined;
|
|
591
|
-
[x: `int240[${string}]`]: undefined;
|
|
592
|
-
[x: `int248[${string}]`]: undefined;
|
|
593
|
-
[x: `int256[${string}]`]: undefined;
|
|
594
|
-
[x: `uint[${string}]`]: undefined;
|
|
595
|
-
[x: `uint40[${string}]`]: undefined;
|
|
596
|
-
[x: `uint8[${string}]`]: undefined;
|
|
597
|
-
[x: `uint16[${string}]`]: undefined;
|
|
598
|
-
[x: `uint24[${string}]`]: undefined;
|
|
599
|
-
[x: `uint32[${string}]`]: undefined;
|
|
600
|
-
[x: `uint48[${string}]`]: undefined;
|
|
601
|
-
[x: `uint56[${string}]`]: undefined;
|
|
602
|
-
[x: `uint64[${string}]`]: undefined;
|
|
603
|
-
[x: `uint72[${string}]`]: undefined;
|
|
604
|
-
[x: `uint80[${string}]`]: undefined;
|
|
605
|
-
[x: `uint88[${string}]`]: undefined;
|
|
606
|
-
[x: `uint96[${string}]`]: undefined;
|
|
607
|
-
[x: `uint104[${string}]`]: undefined;
|
|
608
|
-
[x: `uint112[${string}]`]: undefined;
|
|
609
|
-
[x: `uint120[${string}]`]: undefined;
|
|
610
|
-
[x: `uint128[${string}]`]: undefined;
|
|
611
|
-
[x: `uint136[${string}]`]: undefined;
|
|
612
|
-
[x: `uint144[${string}]`]: undefined;
|
|
613
|
-
[x: `uint152[${string}]`]: undefined;
|
|
614
|
-
[x: `uint160[${string}]`]: undefined;
|
|
615
|
-
[x: `uint168[${string}]`]: undefined;
|
|
616
|
-
[x: `uint176[${string}]`]: undefined;
|
|
617
|
-
[x: `uint184[${string}]`]: undefined;
|
|
618
|
-
[x: `uint192[${string}]`]: undefined;
|
|
619
|
-
[x: `uint200[${string}]`]: undefined;
|
|
620
|
-
[x: `uint208[${string}]`]: undefined;
|
|
621
|
-
[x: `uint216[${string}]`]: undefined;
|
|
622
|
-
[x: `uint224[${string}]`]: undefined;
|
|
623
|
-
[x: `uint232[${string}]`]: undefined;
|
|
624
|
-
[x: `uint240[${string}]`]: undefined;
|
|
625
|
-
[x: `uint248[${string}]`]: undefined;
|
|
626
|
-
[x: `uint256[${string}]`]: undefined;
|
|
627
|
-
string?: undefined;
|
|
628
|
-
address?: undefined;
|
|
629
|
-
bool?: undefined;
|
|
630
|
-
bytes?: undefined;
|
|
631
|
-
bytes2?: undefined;
|
|
632
|
-
bytes3?: undefined;
|
|
633
|
-
bytes1?: undefined;
|
|
634
|
-
bytes22?: undefined;
|
|
635
|
-
bytes6?: undefined;
|
|
636
|
-
bytes4?: undefined;
|
|
637
|
-
bytes5?: undefined;
|
|
638
|
-
bytes7?: undefined;
|
|
639
|
-
bytes8?: undefined;
|
|
640
|
-
bytes9?: undefined;
|
|
641
|
-
bytes10?: undefined;
|
|
642
|
-
bytes11?: undefined;
|
|
643
|
-
bytes12?: undefined;
|
|
644
|
-
bytes13?: undefined;
|
|
645
|
-
bytes14?: undefined;
|
|
646
|
-
bytes15?: undefined;
|
|
647
|
-
bytes16?: undefined;
|
|
648
|
-
bytes17?: undefined;
|
|
649
|
-
bytes18?: undefined;
|
|
650
|
-
bytes19?: undefined;
|
|
651
|
-
bytes20?: undefined;
|
|
652
|
-
bytes21?: undefined;
|
|
653
|
-
bytes23?: undefined;
|
|
654
|
-
bytes24?: undefined;
|
|
655
|
-
bytes25?: undefined;
|
|
656
|
-
bytes26?: undefined;
|
|
657
|
-
bytes27?: undefined;
|
|
658
|
-
bytes28?: undefined;
|
|
659
|
-
bytes29?: undefined;
|
|
660
|
-
bytes30?: undefined;
|
|
661
|
-
bytes31?: undefined;
|
|
662
|
-
bytes32?: undefined;
|
|
663
|
-
int40?: undefined;
|
|
664
|
-
int8?: undefined;
|
|
665
|
-
int16?: undefined;
|
|
666
|
-
int24?: undefined;
|
|
667
|
-
int32?: undefined;
|
|
668
|
-
int48?: undefined;
|
|
669
|
-
int56?: undefined;
|
|
670
|
-
int64?: undefined;
|
|
671
|
-
int72?: undefined;
|
|
672
|
-
int80?: undefined;
|
|
673
|
-
int88?: undefined;
|
|
674
|
-
int96?: undefined;
|
|
675
|
-
int104?: undefined;
|
|
676
|
-
int112?: undefined;
|
|
677
|
-
int120?: undefined;
|
|
678
|
-
int128?: undefined;
|
|
679
|
-
int136?: undefined;
|
|
680
|
-
int144?: undefined;
|
|
681
|
-
int152?: undefined;
|
|
682
|
-
int160?: undefined;
|
|
683
|
-
int168?: undefined;
|
|
684
|
-
int176?: undefined;
|
|
685
|
-
int184?: undefined;
|
|
686
|
-
int192?: undefined;
|
|
687
|
-
int200?: undefined;
|
|
688
|
-
int208?: undefined;
|
|
689
|
-
int216?: undefined;
|
|
690
|
-
int224?: undefined;
|
|
691
|
-
int232?: undefined;
|
|
692
|
-
int240?: undefined;
|
|
693
|
-
int248?: undefined;
|
|
694
|
-
int256?: undefined;
|
|
695
|
-
uint40?: undefined;
|
|
696
|
-
uint8?: undefined;
|
|
697
|
-
uint16?: undefined;
|
|
698
|
-
uint24?: undefined;
|
|
699
|
-
uint32?: undefined;
|
|
700
|
-
uint48?: undefined;
|
|
701
|
-
uint56?: undefined;
|
|
702
|
-
uint64?: undefined;
|
|
703
|
-
uint72?: undefined;
|
|
704
|
-
uint80?: undefined;
|
|
705
|
-
uint88?: undefined;
|
|
706
|
-
uint96?: undefined;
|
|
707
|
-
uint104?: undefined;
|
|
708
|
-
uint112?: undefined;
|
|
709
|
-
uint120?: undefined;
|
|
710
|
-
uint128?: undefined;
|
|
711
|
-
uint136?: undefined;
|
|
712
|
-
uint144?: undefined;
|
|
713
|
-
uint152?: undefined;
|
|
714
|
-
uint160?: undefined;
|
|
715
|
-
uint168?: undefined;
|
|
716
|
-
uint176?: undefined;
|
|
717
|
-
uint184?: undefined;
|
|
718
|
-
uint192?: undefined;
|
|
719
|
-
uint200?: undefined;
|
|
720
|
-
uint208?: undefined;
|
|
721
|
-
uint216?: undefined;
|
|
722
|
-
uint224?: undefined;
|
|
723
|
-
uint232?: undefined;
|
|
724
|
-
uint240?: undefined;
|
|
725
|
-
uint248?: undefined;
|
|
726
|
-
uint256?: undefined;
|
|
727
|
-
}, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
|
|
728
|
-
signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
|
|
729
|
-
chainId?: number | undefined;
|
|
730
|
-
}) => Promise<`0x${string}`>;
|
|
731
|
-
userOperation?: {
|
|
732
|
-
estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation").EstimateUserOperationGasReturnType> | undefined>) | undefined;
|
|
733
|
-
} | undefined;
|
|
734
|
-
} & {
|
|
735
|
-
address: `0x${string}`;
|
|
736
|
-
getNonce: (parameters?: {
|
|
737
|
-
key?: bigint | undefined;
|
|
738
|
-
} | undefined) => Promise<bigint>;
|
|
282
|
+
address: import("viem").Address;
|
|
283
|
+
getNonce: NonNullable<import("viem/account-abstraction").SmartAccountImplementation["getNonce"]>;
|
|
739
284
|
isDeployed: () => Promise<boolean>;
|
|
740
285
|
type: "smart";
|
|
741
286
|
}) | undefined>(client: Client<Transport, TChain, TSmartAccount>) => SmartAccountActions<TChain, TSmartAccount>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AM,SAAS,KAAK,GAAG,SAAS,sBAChC,aAAa,SAAS,YAAY,GAAG,SAAS;;;;;;;;;;;;;;;eAzP7C,CAAC;mBAA0C,CAAC;;2BAOrC,CAAC;WACD,CAAhB;;;;;;;;;;;;eA6C0B,CAAC;;;mBAOe,CAAA;;;;;;;wBAiM1B,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,KACjD,mBAAmB,CAAC,MAAM,EAAE,aAAa,CAAC,CAMhD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../experimental/pimlico/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qCAAqC,EAAE,MAAM,+CAA+C,CAAA;AACrG,OAAO,EAAE,qCAAqC,EAAE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Chain, type Client, type Transport } from "viem";
|
|
2
|
+
import { type PrepareUserOperationParameters, type PrepareUserOperationRequest, type PrepareUserOperationReturnType, type SmartAccount } from "viem/account-abstraction";
|
|
3
|
+
export declare const prepareUserOperationForErc20Paymaster: (pimlicoClient: Client) => <account extends SmartAccount | undefined, const calls extends readonly unknown[], const request extends PrepareUserOperationRequest<account, accountOverride, calls>, accountOverride extends SmartAccount | undefined = undefined>(client: Client<Transport, Chain | undefined, account>, parameters_: PrepareUserOperationParameters<account, accountOverride, calls, request>) => Promise<PrepareUserOperationReturnType<account, accountOverride, calls, request>>;
|
|
4
|
+
//# sourceMappingURL=prepareUserOperationForErc20Paymaster.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepareUserOperationForErc20Paymaster.d.ts","sourceRoot":"","sources":["../../../../experimental/pimlico/utils/prepareUserOperationForErc20Paymaster.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,KAAK,EACV,KAAK,MAAM,EAEX,KAAK,SAAS,EAKjB,MAAM,MAAM,CAAA;AACb,OAAO,EAEH,KAAK,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AAC,iBAyB9C;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,GAAG;;;;;;;;;;EAe3D;AAED,eAAO,MAAM,sBAAsB,kBAChB,
|
|
1
|
+
{"version":3,"file":"getPackedUserOperation.d.ts","sourceRoot":"","sources":["../../utils/getPackedUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAyC,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EACR,mBAAmB,EACnB,aAAa,EAChB,MAAM,0BAA0B,CAAA;AAEjC,wBAAgB,WAAW,CAAC,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAOtE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,GAAG;;;;;;EAW3C;AAED,wBAAgB,mBAAmB,CAC/B,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAQ9C;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,GAAG;;;EAK3D;AAED,wBAAgB,YAAY,CAAC,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAOvE;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,GAAG;;;EAK7C;AAED,wBAAgB,mBAAmB,CAC/B,qBAAqB,EAAE,aAAa,CAAC,KAAK,CAAC,iBAyB9C;AAED,wBAAgB,sBAAsB,CAAC,gBAAgB,EAAE,GAAG;;;;;;;;;;EAe3D;AAED,eAAO,MAAM,sBAAsB,kBAChB,aAAa,CAAC,KAAK,CAAC,KACpC,mBAYF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRequiredPrefund.d.ts","sourceRoot":"","sources":["../../utils/getRequiredPrefund.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAE7D,MAAM,MAAM,4BAA4B,CACpC,iBAAiB,SAAS,KAAK,GAAG,KAAK,IACvC;IACA,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAC/C,iBAAiB,EAAE,iBAAiB,CAAA;CACvC,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"getRequiredPrefund.d.ts","sourceRoot":"","sources":["../../utils/getRequiredPrefund.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAE7D,MAAM,MAAM,4BAA4B,CACpC,iBAAiB,SAAS,KAAK,GAAG,KAAK,IACvC;IACA,aAAa,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAA;IAC/C,iBAAiB,EAAE,iBAAiB,CAAA;CACvC,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,GAAI,iBAAiB,SAAS,KAAK,GAAG,KAAK,wCAGvE,4BAA4B,CAAC,iBAAiB,CAAC,KAAG,MA2BpD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isSmartAccountDeployed.d.ts","sourceRoot":"","sources":["../../utils/isSmartAccountDeployed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAG3C,eAAO,MAAM,sBAAsB,WACvB,MAAM,WACL,OAAO,KACjB,
|
|
1
|
+
{"version":3,"file":"isSmartAccountDeployed.d.ts","sourceRoot":"","sources":["../../utils/isSmartAccountDeployed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAG3C,eAAO,MAAM,sBAAsB,WACvB,MAAM,WACL,OAAO,KACjB,OAAO,CAAC,OAAO,CAMjB,CAAA"}
|