permissionless 0.0.26 → 0.0.28

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 (180) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js +16 -13
  3. package/_cjs/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
  4. package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js +16 -13
  5. package/_cjs/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
  6. package/_cjs/accounts/signerToSafeSmartAccount.js +20 -17
  7. package/_cjs/accounts/signerToSafeSmartAccount.js.map +1 -1
  8. package/_cjs/accounts/signerToSimpleSmartAccount.js +15 -12
  9. package/_cjs/accounts/signerToSimpleSmartAccount.js.map +1 -1
  10. package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -1
  11. package/_cjs/actions/bundler/getUserOperationByHash.js.map +1 -1
  12. package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -1
  13. package/_cjs/actions/bundler/sendUserOperation.js.map +1 -1
  14. package/_cjs/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  15. package/_cjs/actions/pimlico/getUserOperationGasPrice.js.map +1 -1
  16. package/_cjs/actions/pimlico/getUserOperationStatus.js.map +1 -1
  17. package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -1
  18. package/_cjs/actions/pimlico/validateSponsorshipPolicies.js.map +1 -1
  19. package/_cjs/actions/public/getAccountNonce.js +2 -1
  20. package/_cjs/actions/public/getAccountNonce.js.map +1 -1
  21. package/_cjs/actions/public/getSenderAddress.js +2 -1
  22. package/_cjs/actions/public/getSenderAddress.js.map +1 -1
  23. package/_cjs/actions/smartAccount/deployContract.js +4 -3
  24. package/_cjs/actions/smartAccount/deployContract.js.map +1 -1
  25. package/_cjs/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
  26. package/_cjs/actions/smartAccount/sendTransaction.js.map +1 -1
  27. package/_cjs/actions/smartAccount/sendTransactions.js.map +1 -1
  28. package/_cjs/actions/smartAccount/sendUserOperation.js +1 -2
  29. package/_cjs/actions/smartAccount/sendUserOperation.js.map +1 -1
  30. package/_cjs/actions/smartAccount/signTypedData.js.map +1 -1
  31. package/_cjs/actions/smartAccount.js.map +1 -1
  32. package/_cjs/clients/createSmartAccountClient.js.map +1 -1
  33. package/_cjs/clients/decorators/bundler.js.map +1 -1
  34. package/_cjs/clients/decorators/pimlico.js.map +1 -1
  35. package/_cjs/clients/decorators/smartAccount.js +30 -28
  36. package/_cjs/clients/decorators/smartAccount.js.map +1 -1
  37. package/_cjs/utils/deepHexlify.js.map +1 -1
  38. package/_cjs/utils/index.js +3 -1
  39. package/_cjs/utils/index.js.map +1 -1
  40. package/_cjs/utils/isSmartAccountDeployed.js +15 -0
  41. package/_cjs/utils/isSmartAccountDeployed.js.map +1 -0
  42. package/_cjs/utils/observe.js.map +1 -1
  43. package/_cjs/utils/signUserOperationHashWithECDSA.js.map +1 -1
  44. package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js +17 -14
  45. package/_esm/accounts/biconomy/signerToBiconomySmartAccount.js.map +1 -1
  46. package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js +17 -14
  47. package/_esm/accounts/kernel/signerToEcdsaKernelSmartAccount.js.map +1 -1
  48. package/_esm/accounts/signerToSafeSmartAccount.js +21 -18
  49. package/_esm/accounts/signerToSafeSmartAccount.js.map +1 -1
  50. package/_esm/accounts/signerToSimpleSmartAccount.js +16 -13
  51. package/_esm/accounts/signerToSimpleSmartAccount.js.map +1 -1
  52. package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -1
  53. package/_esm/actions/bundler/getUserOperationByHash.js.map +1 -1
  54. package/_esm/actions/bundler/getUserOperationReceipt.js.map +1 -1
  55. package/_esm/actions/bundler/sendUserOperation.js.map +1 -1
  56. package/_esm/actions/bundler/waitForUserOperationReceipt.js.map +1 -1
  57. package/_esm/actions/pimlico/getUserOperationGasPrice.js.map +1 -1
  58. package/_esm/actions/pimlico/getUserOperationStatus.js.map +1 -1
  59. package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -1
  60. package/_esm/actions/pimlico/validateSponsorshipPolicies.js +1 -1
  61. package/_esm/actions/pimlico/validateSponsorshipPolicies.js.map +1 -1
  62. package/_esm/actions/public/getAccountNonce.js +2 -1
  63. package/_esm/actions/public/getAccountNonce.js.map +1 -1
  64. package/_esm/actions/public/getSenderAddress.js +2 -1
  65. package/_esm/actions/public/getSenderAddress.js.map +1 -1
  66. package/_esm/actions/smartAccount/deployContract.js +5 -5
  67. package/_esm/actions/smartAccount/deployContract.js.map +1 -1
  68. package/_esm/actions/smartAccount/prepareUserOperationRequest.js.map +1 -1
  69. package/_esm/actions/smartAccount/sendTransaction.js +1 -1
  70. package/_esm/actions/smartAccount/sendTransaction.js.map +1 -1
  71. package/_esm/actions/smartAccount/sendTransactions.js +1 -1
  72. package/_esm/actions/smartAccount/sendTransactions.js.map +1 -1
  73. package/_esm/actions/smartAccount/sendUserOperation.js +1 -2
  74. package/_esm/actions/smartAccount/sendUserOperation.js.map +1 -1
  75. package/_esm/actions/smartAccount/signTypedData.js.map +1 -1
  76. package/_esm/actions/smartAccount.js.map +1 -1
  77. package/_esm/clients/createSmartAccountClient.js.map +1 -1
  78. package/_esm/clients/decorators/bundler.js.map +1 -1
  79. package/_esm/clients/decorators/pimlico.js +1 -1
  80. package/_esm/clients/decorators/pimlico.js.map +1 -1
  81. package/_esm/clients/decorators/smartAccount.js +30 -28
  82. package/_esm/clients/decorators/smartAccount.js.map +1 -1
  83. package/_esm/utils/deepHexlify.js.map +1 -1
  84. package/_esm/utils/index.js +2 -1
  85. package/_esm/utils/index.js.map +1 -1
  86. package/_esm/utils/isSmartAccountDeployed.js +11 -0
  87. package/_esm/utils/isSmartAccountDeployed.js.map +1 -0
  88. package/_esm/utils/observe.js.map +1 -1
  89. package/_esm/utils/signUserOperationHashWithECDSA.js.map +1 -1
  90. package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts +2 -1
  91. package/_types/accounts/biconomy/signerToBiconomySmartAccount.d.ts.map +1 -1
  92. package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts +2 -1
  93. package/_types/accounts/kernel/signerToEcdsaKernelSmartAccount.d.ts.map +1 -1
  94. package/_types/accounts/signerToSafeSmartAccount.d.ts +3 -2
  95. package/_types/accounts/signerToSafeSmartAccount.d.ts.map +1 -1
  96. package/_types/accounts/signerToSimpleSmartAccount.d.ts +2 -1
  97. package/_types/accounts/signerToSimpleSmartAccount.d.ts.map +1 -1
  98. package/_types/accounts/types.d.ts +3 -3
  99. package/_types/accounts/types.d.ts.map +1 -1
  100. package/_types/actions/bundler/estimateUserOperationGas.d.ts +2 -1
  101. package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -1
  102. package/_types/actions/bundler/getUserOperationByHash.d.ts +3 -2
  103. package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -1
  104. package/_types/actions/bundler/getUserOperationReceipt.d.ts +2 -1
  105. package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -1
  106. package/_types/actions/bundler/sendUserOperation.d.ts +2 -1
  107. package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -1
  108. package/_types/actions/bundler/waitForUserOperationReceipt.d.ts +2 -1
  109. package/_types/actions/bundler/waitForUserOperationReceipt.d.ts.map +1 -1
  110. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts +2 -1
  111. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -1
  112. package/_types/actions/pimlico/getUserOperationStatus.d.ts +2 -1
  113. package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -1
  114. package/_types/actions/pimlico/sponsorUserOperation.d.ts +2 -1
  115. package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -1
  116. package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts +5 -4
  117. package/_types/actions/pimlico/validateSponsorshipPolicies.d.ts.map +1 -1
  118. package/_types/actions/pimlico.d.ts +2 -2
  119. package/_types/actions/pimlico.d.ts.map +1 -1
  120. package/_types/actions/public/getAccountNonce.d.ts +2 -1
  121. package/_types/actions/public/getAccountNonce.d.ts.map +1 -1
  122. package/_types/actions/public/getSenderAddress.d.ts +2 -1
  123. package/_types/actions/public/getSenderAddress.d.ts.map +1 -1
  124. package/_types/actions/smartAccount/deployContract.d.ts +4 -3
  125. package/_types/actions/smartAccount/deployContract.d.ts.map +1 -1
  126. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts +2 -2
  127. package/_types/actions/smartAccount/prepareUserOperationRequest.d.ts.map +1 -1
  128. package/_types/actions/smartAccount/sendTransaction.d.ts +4 -3
  129. package/_types/actions/smartAccount/sendTransaction.d.ts.map +1 -1
  130. package/_types/actions/smartAccount/sendTransactions.d.ts +4 -4
  131. package/_types/actions/smartAccount/sendTransactions.d.ts.map +1 -1
  132. package/_types/actions/smartAccount/sendUserOperation.d.ts +3 -4
  133. package/_types/actions/smartAccount/sendUserOperation.d.ts.map +1 -1
  134. package/_types/actions/smartAccount/writeContract.d.ts +3 -3
  135. package/_types/actions/smartAccount/writeContract.d.ts.map +1 -1
  136. package/_types/actions/smartAccount.d.ts +2 -2
  137. package/_types/actions/smartAccount.d.ts.map +1 -1
  138. package/_types/clients/createSmartAccountClient.d.ts +5 -3
  139. package/_types/clients/createSmartAccountClient.d.ts.map +1 -1
  140. package/_types/clients/decorators/bundler.d.ts +6 -5
  141. package/_types/clients/decorators/bundler.d.ts.map +1 -1
  142. package/_types/clients/decorators/pimlico.d.ts +7 -6
  143. package/_types/clients/decorators/pimlico.d.ts.map +1 -1
  144. package/_types/clients/decorators/smartAccount.d.ts +8 -7
  145. package/_types/clients/decorators/smartAccount.d.ts.map +1 -1
  146. package/_types/utils/index.d.ts +2 -1
  147. package/_types/utils/index.d.ts.map +1 -1
  148. package/_types/utils/isSmartAccountDeployed.d.ts +3 -0
  149. package/_types/utils/isSmartAccountDeployed.d.ts.map +1 -0
  150. package/accounts/biconomy/signerToBiconomySmartAccount.ts +25 -18
  151. package/accounts/kernel/signerToEcdsaKernelSmartAccount.ts +24 -13
  152. package/accounts/signerToSafeSmartAccount.ts +24 -18
  153. package/accounts/signerToSimpleSmartAccount.ts +25 -18
  154. package/accounts/types.ts +4 -3
  155. package/actions/bundler/estimateUserOperationGas.ts +3 -2
  156. package/actions/bundler/getUserOperationByHash.ts +4 -3
  157. package/actions/bundler/getUserOperationReceipt.ts +3 -2
  158. package/actions/bundler/sendUserOperation.ts +2 -1
  159. package/actions/bundler/waitForUserOperationReceipt.ts +3 -2
  160. package/actions/pimlico/getUserOperationGasPrice.ts +2 -1
  161. package/actions/pimlico/getUserOperationStatus.ts +3 -2
  162. package/actions/pimlico/sponsorUserOperation.ts +3 -2
  163. package/actions/pimlico/validateSponsorshipPolicies.ts +6 -5
  164. package/actions/pimlico.ts +2 -2
  165. package/actions/public/getAccountNonce.ts +4 -1
  166. package/actions/public/getSenderAddress.ts +4 -1
  167. package/actions/smartAccount/deployContract.ts +19 -15
  168. package/actions/smartAccount/prepareUserOperationRequest.ts +3 -2
  169. package/actions/smartAccount/sendTransaction.ts +6 -7
  170. package/actions/smartAccount/sendTransactions.ts +5 -5
  171. package/actions/smartAccount/sendUserOperation.ts +5 -12
  172. package/actions/smartAccount/writeContract.ts +3 -3
  173. package/actions/smartAccount.ts +0 -2
  174. package/clients/createSmartAccountClient.ts +10 -16
  175. package/clients/decorators/bundler.ts +12 -9
  176. package/clients/decorators/pimlico.ts +12 -9
  177. package/clients/decorators/smartAccount.ts +34 -25
  178. package/package.json +1 -1
  179. package/utils/index.ts +3 -1
  180. package/utils/isSmartAccountDeployed.ts +16 -0
@@ -7,7 +7,7 @@ export declare class SignTransactionNotSupportedBySmartAccount extends BaseError
7
7
  docsPath?: string;
8
8
  });
9
9
  }
10
- export type SmartAccount<Name extends string = string, transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined> = LocalAccount<Name> & {
10
+ export type SmartAccount<Name extends string = string, transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, TAbi extends Abi | readonly unknown[] = Abi> = LocalAccount<Name> & {
11
11
  client: Client<transport, chain>;
12
12
  entryPoint: Address;
13
13
  getNonce: () => Promise<bigint>;
@@ -22,8 +22,8 @@ export type SmartAccount<Name extends string = string, transport extends Transpo
22
22
  data: Hex;
23
23
  }[]) => Promise<Hex>;
24
24
  getDummySignature(userOperation: UserOperation): Promise<Hex>;
25
- encodeDeployCallData: <TAbi extends Abi | readonly unknown[] = Abi>({ abi, args, bytecode }: EncodeDeployDataParameters<TAbi>) => Promise<Hex>;
25
+ encodeDeployCallData: ({ abi, args, bytecode }: EncodeDeployDataParameters<TAbi>) => Promise<Hex>;
26
26
  signUserOperation: (userOperation: UserOperation) => Promise<Hex>;
27
27
  };
28
- export type SmartAccountSigner<TSource extends string, TAddress extends Address = Address> = Omit<LocalAccount<TSource, TAddress>, "signTransaction">;
28
+ export type SmartAccountSigner<TSource extends string = string, TAddress extends Address = Address> = Omit<LocalAccount<TSource, TAddress>, "signTransaction">;
29
29
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../accounts/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,YAAY,EACpB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,KAAK,EAAE,0BAA0B,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACxE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEtD,qBAAa,yCAA0C,SAAQ,SAAS;IAC3D,IAAI,SAA8C;gBAC/C,EAAE,QAAQ,EAAE,GAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAO;CAYvD;AAED,MAAM,MAAM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BAAoB,EAAE,CAAC,EACnB,GAAG,EACH,IAAI,EACJ,QAAQ,EACX,EAAE,0BAA0B,CAAC,IAAI,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;IACpD,iBAAiB,EAAE,CAAC,aAAa,EAAE,aAAa,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;CACpE,CAAA;AAED,MAAM,MAAM,kBAAkB,CAC1B,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,QAAQ,SAAS,OAAO,GAAG,OAAO,IAClC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,iBAAiB,CAAC,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import type { Account, Address, Chain, Client, Transport } from "viem";
2
2
  import type { PartialBy } from "viem/types/utils";
3
3
  import type { BundlerRpcSchema } from "../../types/bundler.js";
4
+ import type { Prettify } from "../../types/index.js";
4
5
  import type { UserOperation } from "../../types/userOperation.js";
5
6
  export type EstimateUserOperationGasParameters = {
6
7
  userOperation: PartialBy<UserOperation, "callGasLimit" | "preVerificationGas" | "verificationGasLimit">;
@@ -38,5 +39,5 @@ export type EstimateUserOperationGasReturnType = {
38
39
  * // Return {preVerificationGas: 43492n, verificationGasLimit: 59436n, callGasLimit: 9000n}
39
40
  *
40
41
  */
41
- export declare const estimateUserOperationGas: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema>, args: EstimateUserOperationGasParameters) => Promise<EstimateUserOperationGasReturnType>;
42
+ export declare const estimateUserOperationGas: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema>, args: Prettify<EstimateUserOperationGasParameters>) => Promise<Prettify<EstimateUserOperationGasReturnType>>;
42
43
  //# sourceMappingURL=estimateUserOperationGas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"estimateUserOperationGas.d.ts","sourceRoot":"","sources":["../../../actions/bundler/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAIjE,MAAM,MAAM,kCAAkC,GAAG;IAC7C,aAAa,EAAE,SAAS,CACpB,aAAa,EACb,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,CACjE,CAAA;IACD,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,kCAAkC,GAAG;IAC7C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,qOAM3B,kCAAkC,KACzC,QAAQ,kCAAkC,CAgB5C,CAAA"}
1
+ {"version":3,"file":"estimateUserOperationGas.d.ts","sourceRoot":"","sources":["../../../actions/bundler/estimateUserOperationGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAIjE,MAAM,MAAM,kCAAkC,GAAG;IAC7C,aAAa,EAAE,SAAS,CACpB,aAAa,EACb,cAAc,GAAG,oBAAoB,GAAG,sBAAsB,CACjE,CAAA;IACD,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,kCAAkC,GAAG;IAC7C,kBAAkB,EAAE,MAAM,CAAA;IAC1B,oBAAoB,EAAE,MAAM,CAAA;IAC5B,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,eAAO,MAAM,wBAAwB,qOAM3B,SAAS,kCAAkC,CAAC,KACnD,QAAQ,SAAS,kCAAkC,CAAC,CAgBtD,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import type { Account, Address, Chain, Client, Hash, Transport } from "viem";
2
2
  import type { BundlerRpcSchema } from "../../types/bundler.js";
3
+ import type { Prettify } from "../../types/index.js";
3
4
  import type { UserOperation } from "../../types/userOperation.js";
4
5
  export type GetUserOperationByHashParameters = {
5
6
  hash: Hash;
@@ -10,7 +11,7 @@ export type GetUserOperationByHashReturnType = {
10
11
  transactionHash: Hash;
11
12
  blockHash: Hash;
12
13
  blockNumber: bigint;
13
- } | null;
14
+ };
14
15
  /**
15
16
  * Returns the user operation from userOpHash
16
17
  *
@@ -33,5 +34,5 @@ export type GetUserOperationByHashReturnType = {
33
34
  * getUserOperationByHash(bundlerClient, {hash: userOpHash})
34
35
  *
35
36
  */
36
- export declare const getUserOperationByHash: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema>, { hash }: GetUserOperationByHashParameters) => Promise<GetUserOperationByHashReturnType>;
37
+ export declare const getUserOperationByHash: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema>, { hash }: Prettify<GetUserOperationByHashParameters>) => Promise<Prettify<GetUserOperationByHashReturnType> | null>;
37
38
  //# sourceMappingURL=getUserOperationByHash.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUserOperationByHash.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationByHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG;IAC3C,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,IAAI,CAAA;IACrB,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACtB,GAAG,IAAI,CAAA;AAER;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,yOAMrB,gCAAgC,KAC3C,QAAQ,gCAAgC,CAiC1C,CAAA"}
1
+ {"version":3,"file":"getUserOperationByHash.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationByHash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG;IAC3C,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,eAAe,EAAE,IAAI,CAAA;IACrB,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,yOAMrB,SAAS,gCAAgC,CAAC,KACrD,QAAQ,SAAS,gCAAgC,CAAC,GAAG,IAAI,CAiC3D,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import type { Account, Address, Chain, Client, Hash, Hex, Transport } from "viem";
2
2
  import type { BundlerRpcSchema } from "../../types/bundler.js";
3
+ import type { Prettify } from "../../types/index.js";
3
4
  import type { TStatus } from "../../types/userOperation.js";
4
5
  export type GetUserOperationReceiptParameters = {
5
6
  hash: Hash;
@@ -58,5 +59,5 @@ export type GetUserOperationReceiptReturnType = {
58
59
  * getUserOperationReceipt(bundlerClient, {hash: userOpHash})
59
60
  *
60
61
  */
61
- export declare const getUserOperationReceipt: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema>, { hash }: GetUserOperationReceiptParameters) => Promise<GetUserOperationReceiptReturnType | null>;
62
+ export declare const getUserOperationReceipt: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema>, { hash }: Prettify<GetUserOperationReceiptParameters>) => Promise<Prettify<GetUserOperationReceiptReturnType> | null>;
62
63
  //# sourceMappingURL=getUserOperationReceipt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationReceipt.ts"],"names":[],"m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AAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,uBAAuB,yOAMtB,iCAAiC,KAC5C,QAAQ,iCAAiC,GAAG,IAAI,CA4ClD,CAAA"}
1
+ {"version":3,"file":"getUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,OAAO,EACP,KAAK,EACL,MAAM,EACN,IAAI,EACJ,GAAG,EACH,SAAS,EACZ,MAAM,MAAM,CAAA;AAEb,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAG3D,MAAM,MAAM,iCAAiC,GAAG;IAC5C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,iCAAiC,GAAG;IAC5C,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE;QACL,eAAe,EAAE,GAAG,CAAA;QACpB,gBAAgB,EAAE,MAAM,CAAA;QACxB,SAAS,EAAE,IAAI,CAAA;QACf,WAAW,EAAE,MAAM,CAAA;QACnB,IAAI,EAAE,OAAO,CAAA;QACb,EAAE,EAAE,OAAO,GAAG,IAAI,CAAA;QAClB,iBAAiB,EAAE,MAAM,CAAA;QACzB,MAAM,EAAE,OAAO,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;QACf,eAAe,EAAE,OAAO,GAAG,IAAI,CAAA;QAC/B,SAAS,EAAE,GAAG,CAAA;QACd,iBAAiB,EAAE,MAAM,CAAA;KAC5B,CAAA;IACD,IAAI,EAAE;QACF,IAAI,EAAE,GAAG,CAAA;QACT,WAAW,EAAE,MAAM,CAAA;QACnB,SAAS,EAAE,IAAI,CAAA;QACf,eAAe,EAAE,IAAI,CAAA;QACrB,QAAQ,EAAE,MAAM,CAAA;QAChB,gBAAgB,EAAE,MAAM,CAAA;QACxB,OAAO,EAAE,OAAO,CAAA;QAChB,MAAM,EAAE,GAAG,EAAE,CAAA;KAChB,EAAE,CAAA;CACN,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,uBAAuB,yOAMtB,SAAS,iCAAiC,CAAC,KACtD,QAAQ,SAAS,iCAAiC,CAAC,GAAG,IAAI,CA4C5D,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import type { Account, Address, Chain, Client, Hash, Transport } from "viem";
2
2
  import type { BundlerRpcSchema } from "../../types/bundler.js";
3
+ import type { Prettify } from "../../types/index.js";
3
4
  import type { UserOperation } from "../../types/userOperation.js";
4
5
  export type SendUserOperationParameters = {
5
6
  userOperation: UserOperation;
@@ -30,5 +31,5 @@ export type SendUserOperationParameters = {
30
31
  *
31
32
  * // Return '0xe9fad2cd67f9ca1d0b7a6513b2a42066784c8df938518da2b51bb8cc9a89ea34'
32
33
  */
33
- export declare const sendUserOperation: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema>, args: SendUserOperationParameters) => Promise<Hash>;
34
+ export declare const sendUserOperation: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, BundlerRpcSchema>, args: Prettify<SendUserOperationParameters>) => Promise<Hash>;
34
35
  //# sourceMappingURL=sendUserOperation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,2BAA2B,GAAG;IACtC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB,qOAMpB,2BAA2B,KAClC,QAAQ,IAAI,CAUd,CAAA"}
1
+ {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE5E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,2BAA2B,GAAG;IACtC,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;CACtB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,iBAAiB,qOAMpB,SAAS,2BAA2B,CAAC,KAC5C,QAAQ,IAAI,CAUd,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { type Account, BaseError, type Chain, type Client, type Hash, type Transport } from "viem";
2
+ import type { Prettify } from "../../types/index.js";
2
3
  import { type GetUserOperationReceiptReturnType } from "./getUserOperationReceipt.js";
3
4
  export declare class WaitForUserOperationReceiptTimeoutError extends BaseError {
4
5
  name: string;
@@ -38,5 +39,5 @@ export type WaitForUserOperationReceiptParameters = {
38
39
  * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
39
40
  * })
40
41
  */
41
- export declare const waitForUserOperationReceipt: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(bundlerClient: Client<TTransport, TChain, TAccount>, { hash, pollingInterval, timeout }: WaitForUserOperationReceiptParameters) => Promise<GetUserOperationReceiptReturnType>;
42
+ export declare const waitForUserOperationReceipt: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(bundlerClient: Client<TTransport, TChain, TAccount>, { hash, pollingInterval, timeout }: Prettify<WaitForUserOperationReceiptParameters>) => Promise<Prettify<GetUserOperationReceiptReturnType>>;
42
43
  //# sourceMappingURL=waitForUserOperationReceipt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"waitForUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/waitForUserOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AAGb,OAAO,EACH,KAAK,iCAAiC,EAEzC,MAAM,8BAA8B,CAAA;AAErC,qBAAa,uCAAwC,SAAQ,SAAS;IACzD,IAAI,SAA4C;gBAC7C,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;CAKvC;AAED,MAAM,MAAM,qCAAqC,GAAG;IAChD,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAA;IACV;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,wPAUjC,qCAAqC,KACzC,QAAQ,iCAAiC,CA0D3C,CAAA"}
1
+ {"version":3,"file":"waitForUserOperationReceipt.d.ts","sourceRoot":"","sources":["../../../actions/bundler/waitForUserOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,SAAS,EAEjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,EACH,KAAK,iCAAiC,EAEzC,MAAM,8BAA8B,CAAA;AAErC,qBAAa,uCAAwC,SAAQ,SAAS;IACzD,IAAI,SAA4C;gBAC7C,EAAE,IAAI,EAAE,EAAE;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE;CAKvC;AAED,MAAM,MAAM,qCAAqC,GAAG;IAChD,mCAAmC;IACnC,IAAI,EAAE,IAAI,CAAA;IACV;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,2BAA2B,wPAUjC,SAAS,qCAAqC,CAAC,KACnD,QAAQ,SAAS,iCAAiC,CAAC,CA0DrD,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { Account, Chain, Client, Transport } from "viem";
2
+ import type { Prettify } from "../../types/index.js";
2
3
  import type { PimlicoBundlerRpcSchema } from "../../types/pimlico.js";
3
4
  export type GetUserOperationGasPriceReturnType = {
4
5
  slow: {
@@ -35,5 +36,5 @@ export type GetUserOperationGasPriceReturnType = {
35
36
  * await getUserOperationGasPrice(bundlerClient)
36
37
  *
37
38
  */
38
- export declare const getUserOperationGasPrice: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoBundlerRpcSchema>) => Promise<GetUserOperationGasPriceReturnType>;
39
+ export declare const getUserOperationGasPrice: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoBundlerRpcSchema>) => Promise<Prettify<GetUserOperationGasPriceReturnType>>;
39
40
  //# sourceMappingURL=getUserOperationGasPrice.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUserOperationGasPrice.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationGasPrice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAErE,MAAM,MAAM,kCAAkC,GAAG;IAC7C,IAAI,EAAE;QACF,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,QAAQ,EAAE;QACN,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,IAAI,EAAE;QACF,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;CACJ,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,wBAAwB,yOAMlC,QAAQ,kCAAkC,CAsB5C,CAAA"}
1
+ {"version":3,"file":"getUserOperationGasPrice.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationGasPrice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAErE,MAAM,MAAM,kCAAkC,GAAG;IAC7C,IAAI,EAAE;QACF,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,QAAQ,EAAE;QACN,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;IACD,IAAI,EAAE;QACF,YAAY,EAAE,MAAM,CAAA;QACpB,oBAAoB,EAAE,MAAM,CAAA;KAC/B,CAAA;CACJ,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,wBAAwB,yOAMlC,QAAQ,SAAS,kCAAkC,CAAC,CAsBtD,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { Account, Chain, Client, Hash, Transport } from "viem";
2
+ import type { Prettify } from "../../types/index.js";
2
3
  import type { PimlicoBundlerRpcSchema, PimlicoUserOperationStatus } from "../../types/pimlico.js";
3
4
  export type GetUserOperationStatusParameters = {
4
5
  hash: Hash;
@@ -26,5 +27,5 @@ export type GetUserOperationStatusReturnType = PimlicoUserOperationStatus;
26
27
  * await getUserOperationStatus(bundlerClient, { hash: userOpHash })
27
28
  *
28
29
  */
29
- export declare const getUserOperationStatus: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoBundlerRpcSchema>, { hash }: GetUserOperationStatusParameters) => Promise<GetUserOperationStatusReturnType>;
30
+ export declare const getUserOperationStatus: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoBundlerRpcSchema>, { hash }: Prettify<GetUserOperationStatusParameters>) => Promise<Prettify<GetUserOperationStatusReturnType>>;
30
31
  //# sourceMappingURL=getUserOperationStatus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getUserOperationStatus.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAEnE,OAAO,KAAK,EACR,uBAAuB,EACvB,0BAA0B,EAC7B,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,gPAMrB,gCAAgC,KAC3C,QAAQ,gCAAgC,CAK1C,CAAA"}
1
+ {"version":3,"file":"getUserOperationStatus.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAEnE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EACR,uBAAuB,EACvB,0BAA0B,EAC7B,MAAM,wBAAwB,CAAA;AAE/B,MAAM,MAAM,gCAAgC,GAAG;IAC3C,IAAI,EAAE,IAAI,CAAA;CACb,CAAA;AAED,MAAM,MAAM,gCAAgC,GAAG,0BAA0B,CAAA;AAEzE;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,sBAAsB,gPAMrB,SAAS,gCAAgC,CAAC,KACrD,QAAQ,SAAS,gCAAgC,CAAC,CAKpD,CAAA"}
@@ -1,5 +1,6 @@
1
1
  import type { Account, Address, Chain, Client, Transport } from "viem";
2
2
  import type { PartialBy } from "viem/types/utils";
3
+ import type { Prettify } from "../../types/index.js";
3
4
  import type { PimlicoPaymasterRpcSchema } from "../../types/pimlico.js";
4
5
  import type { UserOperation } from "../../types/userOperation.js";
5
6
  export type PimlicoSponsorUserOperationParameters = {
@@ -33,5 +34,5 @@ export type SponsorUserOperationReturnType = UserOperation;
33
34
  * }})
34
35
  *
35
36
  */
36
- export declare const sponsorUserOperation: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoPaymasterRpcSchema>, args: PimlicoSponsorUserOperationParameters) => Promise<SponsorUserOperationReturnType>;
37
+ export declare const sponsorUserOperation: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoPaymasterRpcSchema>, args: Prettify<PimlicoSponsorUserOperationParameters>) => Promise<Prettify<SponsorUserOperationReturnType>>;
37
38
  //# sourceMappingURL=sponsorUserOperation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sponsorUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/sponsorUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,SAAS,CACpB,aAAa,EACX,cAAc,GACd,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,CACvB,CAAA;IACD,UAAU,EAAE,OAAO,CAAA;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,oBAAoB,8OAMvB,qCAAqC,KAC5C,QAAQ,8BAA8B,CA8BxC,CAAA"}
1
+ {"version":3,"file":"sponsorUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/sponsorUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,SAAS,CACpB,aAAa,EACX,cAAc,GACd,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,CACvB,CAAA;IACD,UAAU,EAAE,OAAO,CAAA;IACnB,mBAAmB,CAAC,EAAE,MAAM,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,aAAa,CAAA;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,oBAAoB,8OAMvB,SAAS,qCAAqC,CAAC,KACtD,QAAQ,SAAS,8BAA8B,CAAC,CA8BlD,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { Account, Address, Chain, Client, Transport } from "viem";
2
+ import type { Prettify } from "../../types/index.js";
2
3
  import type { PimlicoPaymasterRpcSchema } from "../../types/pimlico.js";
3
4
  import type { UserOperation } from "../../types/userOperation.js";
4
5
  export type ValidateSponsorshipPoliciesParameters = {
@@ -6,7 +7,7 @@ export type ValidateSponsorshipPoliciesParameters = {
6
7
  entryPoint: Address;
7
8
  sponsorshipPolicyIds: string[];
8
9
  };
9
- export type ValidateSponsorshipPoliciesReturnType = {
10
+ export type ValidateSponsorshipPolicies = {
10
11
  sponsorshipPolicyId: string;
11
12
  data: {
12
13
  name: string | null;
@@ -14,14 +15,14 @@ export type ValidateSponsorshipPoliciesReturnType = {
14
15
  icon: string | null;
15
16
  description: string | null;
16
17
  };
17
- }[];
18
+ };
18
19
  /**
19
20
  * Returns valid sponsorship policies for a userOperation from the list of ids passed
20
21
  * - Docs: https://docs.pimlico.io/permissionless/reference/pimlico-paymaster-actions/ValidateSponsorshipPolicies
21
22
  *
22
23
  * @param client {@link PimlicoBundlerClient} that you created using viem's createClient whose transport url is pointing to the Pimlico's bundler.
23
24
  * @param args {@link ValidateSponsorshipPoliciesParameters} UserOperation you want to sponsor & entryPoint.
24
- * @returns valid sponsorship policies, see {@link ValidateSponsorshipPoliciesReturnType}
25
+ * @returns valid sponsorship policies, see {@link ValidateSponsorshipPolicies}
25
26
  *
26
27
  * @example
27
28
  * import { createClient } from "viem"
@@ -50,5 +51,5 @@ export type ValidateSponsorshipPoliciesReturnType = {
50
51
  * }
51
52
  * ]
52
53
  */
53
- export declare const validateSponsorshipPolicies: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoPaymasterRpcSchema>, args: ValidateSponsorshipPoliciesParameters) => Promise<ValidateSponsorshipPoliciesReturnType>;
54
+ export declare const validateSponsorshipPolicies: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount, PimlicoPaymasterRpcSchema>, args: Prettify<ValidateSponsorshipPoliciesParameters>) => Promise<Prettify<ValidateSponsorshipPolicies>[]>;
54
55
  //# sourceMappingURL=validateSponsorshipPolicies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateSponsorshipPolicies.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/validateSponsorshipPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,oBAAoB,EAAE,MAAM,EAAE,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG;IAChD,mBAAmB,EAAE,MAAM,CAAA;IAC3B,IAAI,EAAE;QACF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;QACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAC7B,CAAA;CACJ,EAAE,CAAA;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,2BAA2B,8OAM9B,qCAAqC,KAC5C,QAAQ,qCAAqC,CAS/C,CAAA"}
1
+ {"version":3,"file":"validateSponsorshipPolicies.d.ts","sourceRoot":"","sources":["../../../actions/pimlico/validateSponsorshipPolicies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,KAAK,EACR,aAAa,EAEhB,MAAM,8BAA8B,CAAA;AAGrC,MAAM,MAAM,qCAAqC,GAAG;IAChD,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,OAAO,CAAA;IACnB,oBAAoB,EAAE,MAAM,EAAE,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,2BAA2B,GAAG;IACtC,mBAAmB,EAAE,MAAM,CAAA;IAC3B,IAAI,EAAE;QACF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;QACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;QACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;KAC7B,CAAA;CACJ,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,2BAA2B,8OAM9B,SAAS,qCAAqC,CAAC,KACtD,QAAQ,SAAS,2BAA2B,CAAC,EAAE,CASjD,CAAA"}
@@ -3,7 +3,7 @@ import { type GetUserOperationStatusParameters, type GetUserOperationStatusRetur
3
3
  import { type PimlicoSponsorUserOperationParameters, type SponsorUserOperationReturnType, sponsorUserOperation } from "./pimlico/sponsorUserOperation.js";
4
4
  import type { PimlicoBundlerActions, PimlicoPaymasterClientActions } from "../clients/decorators/pimlico.js";
5
5
  import { pimlicoBundlerActions, pimlicoPaymasterActions } from "../clients/decorators/pimlico.js";
6
- import { type ValidateSponsorshipPoliciesParameters, type ValidateSponsorshipPoliciesReturnType, validateSponsorshipPolicies } from "./pimlico/validateSponsorshipPolicies.js";
7
- export type { GetUserOperationGasPriceReturnType, GetUserOperationStatusParameters, GetUserOperationStatusReturnType, PimlicoSponsorUserOperationParameters, SponsorUserOperationReturnType, PimlicoBundlerActions, PimlicoPaymasterClientActions, ValidateSponsorshipPoliciesParameters, ValidateSponsorshipPoliciesReturnType };
6
+ import { type ValidateSponsorshipPolicies, type ValidateSponsorshipPoliciesParameters, validateSponsorshipPolicies } from "./pimlico/validateSponsorshipPolicies.js";
7
+ export type { GetUserOperationGasPriceReturnType, GetUserOperationStatusParameters, GetUserOperationStatusReturnType, PimlicoSponsorUserOperationParameters, SponsorUserOperationReturnType, PimlicoBundlerActions, PimlicoPaymasterClientActions, ValidateSponsorshipPoliciesParameters, ValidateSponsorshipPolicies };
8
8
  export { getUserOperationGasPrice, getUserOperationStatus, sponsorUserOperation, pimlicoBundlerActions, pimlicoPaymasterActions, validateSponsorshipPolicies };
9
9
  //# sourceMappingURL=pimlico.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,kCAAkC,EACvC,wBAAwB,EAC3B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,sBAAsB,EACzB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,8BAA8B,EACnC,oBAAoB,EACvB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,KAAK,EACR,qBAAqB,EACrB,6BAA6B,EAChC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACH,qBAAqB,EACrB,uBAAuB,EAC1B,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,2BAA2B,EAC9B,MAAM,0CAA0C,CAAA;AAEjD,YAAY,EACR,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,qCAAqC,EACrC,8BAA8B,EAC9B,qBAAqB,EACrB,6BAA6B,EAC7B,qCAAqC,EACrC,qCAAqC,EACxC,CAAA;AAED,OAAO,EACH,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC9B,CAAA"}
1
+ {"version":3,"file":"pimlico.d.ts","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,kCAAkC,EACvC,wBAAwB,EAC3B,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EACH,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,EACrC,sBAAsB,EACzB,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,8BAA8B,EACnC,oBAAoB,EACvB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,KAAK,EACR,qBAAqB,EACrB,6BAA6B,EAChC,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACH,qBAAqB,EACrB,uBAAuB,EAC1B,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,qCAAqC,EAC1C,2BAA2B,EAC9B,MAAM,0CAA0C,CAAA;AAEjD,YAAY,EACR,kCAAkC,EAClC,gCAAgC,EAChC,gCAAgC,EAChC,qCAAqC,EACrC,8BAA8B,EAC9B,qBAAqB,EACrB,6BAA6B,EAC7B,qCAAqC,EACrC,2BAA2B,EAC9B,CAAA;AAED,OAAO,EACH,wBAAwB,EACxB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC9B,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { Address, Chain, Client, Transport } from "viem";
2
+ import type { Prettify } from "../../types/index.js";
2
3
  export type GetAccountNonceParams = {
3
4
  sender: Address;
4
5
  entryPoint: Address;
@@ -30,5 +31,5 @@ export type GetAccountNonceParams = {
30
31
  *
31
32
  * // Return 0n
32
33
  */
33
- export declare const getAccountNonce: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain>, { sender, entryPoint, key }: GetAccountNonceParams) => Promise<bigint>;
34
+ export declare const getAccountNonce: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain>, args: Prettify<GetAccountNonceParams>) => Promise<bigint>;
34
35
  //# sourceMappingURL=getAccountNonce.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getAccountNonce.d.ts","sourceRoot":"","sources":["../../../actions/public/getAccountNonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAI7D,MAAM,MAAM,qBAAqB,GAAG;IAChC,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,eAAe,oKAKiB,qBAAqB,KAC/D,QAAQ,MAAM,CAgChB,CAAA"}
1
+ {"version":3,"file":"getAccountNonce.d.ts","sourceRoot":"","sources":["../../../actions/public/getAccountNonce.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,MAAM,MAAM,qBAAqB,GAAG;IAChC,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,eAAe,6IAKlB,SAAS,qBAAqB,CAAC,KACtC,QAAQ,MAAM,CAkChB,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { type Address, BaseError, type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { Prettify } from "../../types/index.js";
2
3
  export type GetSenderAddressParams = {
3
4
  initCode: Hex;
4
5
  entryPoint: Address;
@@ -35,5 +36,5 @@ export declare class InvalidEntryPointError extends BaseError {
35
36
  *
36
37
  * // Return '0x7a88a206ba40b37a8c07a2b5688cf8b287318b63'
37
38
  */
38
- export declare const getSenderAddress: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain>, { initCode, entryPoint }: GetSenderAddressParams) => Promise<Address>;
39
+ export declare const getSenderAddress: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain>, args: Prettify<GetSenderAddressParams>) => Promise<Address>;
39
40
  //# sourceMappingURL=getSenderAddress.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSenderAddress.d.ts","sourceRoot":"","sources":["../../../actions/public/getSenderAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EACV,KAAK,MAAM,EAGX,KAAK,GAAG,EACR,KAAK,SAAS,EACjB,MAAM,MAAM,CAAA;AAKb,MAAM,MAAM,sBAAsB,GAAG;IAAE,QAAQ,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAAA;AAE3E,qBAAa,sBAAuB,SAAQ,SAAS;IACxC,IAAI,SAA2B;gBAE5B,EACR,KAAK,EACL,UAAU,EACb,GAAE;QAAE,KAAK,CAAC,EAAE,SAAS,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAO;CAUtD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,iKAKC,sBAAsB,KACjD,QAAQ,OAAO,CAuDjB,CAAA"}
1
+ {"version":3,"file":"getSenderAddress.d.ts","sourceRoot":"","sources":["../../../actions/public/getSenderAddress.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,OAAO,EACZ,SAAS,EACT,KAAK,KAAK,EACV,KAAK,MAAM,EAGX,KAAK,GAAG,EACR,KAAK,SAAS,EACjB,MAAM,MAAM,CAAA;AAGb,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,MAAM,MAAM,sBAAsB,GAAG;IAAE,QAAQ,EAAE,GAAG,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAAA;AAE3E,qBAAa,sBAAuB,SAAQ,SAAS;IACxC,IAAI,SAA2B;gBAE5B,EACR,KAAK,EACL,UAAU,EACb,GAAE;QAAE,KAAK,CAAC,EAAE,SAAS,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAO;CAUtD;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,gBAAgB,6IAKnB,SAAS,sBAAsB,CAAC,KACvC,QAAQ,OAAO,CAyDjB,CAAA"}
@@ -1,5 +1,6 @@
1
- import { type Abi, type Chain, type Client, type DeployContractParameters, type DeployContractReturnType, type Transport } from "viem";
1
+ import type { Abi, Chain, Client, DeployContractParameters, Hash, Transport } from "viem";
2
2
  import type { SmartAccount } from "../../accounts/types.js";
3
+ import type { Prettify } from "../../types/index.js";
3
4
  import { type SponsorUserOperationMiddleware } from "./prepareUserOperationRequest.js";
4
5
  export type DeployContractParametersWithPaymaster<TAbi extends Abi | readonly unknown[] = Abi | readonly unknown[], TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined, TChainOverride extends Chain | undefined = Chain | undefined> = DeployContractParameters<TAbi, TChain, TAccount, TChainOverride> & SponsorUserOperationMiddleware;
5
6
  /**
@@ -11,7 +12,7 @@ export type DeployContractParametersWithPaymaster<TAbi extends Abi | readonly un
11
12
  *
12
13
  * @param client - Client to use
13
14
  * @param parameters - {@link DeployContractParameters}
14
- * @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash. {@link DeployContractReturnType}
15
+ * @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash.
15
16
  *
16
17
  * @example
17
18
  * import { createWalletClient, http } from 'viem'
@@ -30,5 +31,5 @@ export type DeployContractParametersWithPaymaster<TAbi extends Abi | readonly un
30
31
  * bytecode: '0x608060405260405161083e38038061083e833981016040819052610...',
31
32
  * })
32
33
  */
33
- export declare function deployContract<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined>(client: Client<Transport, TChain, TAccount>, { abi, args, bytecode, sponsorUserOperation, ...request }: DeployContractParametersWithPaymaster): Promise<DeployContractReturnType>;
34
+ export declare function deployContract<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined>(client: Client<Transport, TChain, TAccount>, args: Prettify<DeployContractParametersWithPaymaster>): Promise<Hash>;
34
35
  //# sourceMappingURL=deployContract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployContract.d.ts","sourceRoot":"","sources":["../../../actions/smartAccount/deployContract.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,GAAG,EACR,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACjB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAK3D,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAGtF,MAAM,MAAM,qCAAqC,CAC7C,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,GAAG,SAAS,OAAO,EAAE,EAChE,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACpE,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAC5D,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GAChE,8BAA8B,CAAA;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,cAAc,CAChC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,YAAY,GAAG,SAAS,EAEzC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,EACI,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,oBAAoB,EACpB,GAAG,OAAO,EACb,EAAE,qCAAqC,GACzC,OAAO,CAAC,wBAAwB,CAAC,CAsCnC"}
1
+ {"version":3,"file":"deployContract.d.ts","sourceRoot":"","sources":["../../../actions/smartAccount/deployContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,GAAG,EACH,KAAK,EACL,MAAM,EACN,wBAAwB,EAExB,IAAI,EACJ,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAKpD,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAGtF,MAAM,MAAM,qCAAqC,CAC7C,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,GAAG,SAAS,OAAO,EAAE,EAChE,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACpE,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAC5D,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GAChE,8BAA8B,CAAA;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,cAAc,CAChC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,YAAY,GAAG,SAAS,EAEzC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,IAAI,EAAE,QAAQ,CAAC,qCAAqC,CAAC,GACtD,OAAO,CAAC,IAAI,CAAC,CA8Cf"}
@@ -1,6 +1,6 @@
1
1
  import type { Address, Chain, Client, Transport } from "viem";
2
2
  import type { SmartAccount } from "../../accounts/types.js";
3
- import type { GetAccountParameter, PartialBy, UserOperation } from "../../types/index.js";
3
+ import type { GetAccountParameter, PartialBy, Prettify, UserOperation } from "../../types/index.js";
4
4
  export type SponsorUserOperationMiddleware = {
5
5
  sponsorUserOperation?: (args: {
6
6
  userOperation: UserOperation;
@@ -11,5 +11,5 @@ export type PrepareUserOperationRequestParameters<TAccount extends SmartAccount
11
11
  userOperation: PartialBy<UserOperation, "nonce" | "sender" | "initCode" | "callGasLimit" | "verificationGasLimit" | "preVerificationGas" | "maxFeePerGas" | "maxPriorityFeePerGas" | "paymasterAndData" | "signature">;
12
12
  } & GetAccountParameter<TAccount> & SponsorUserOperationMiddleware;
13
13
  export type PrepareUserOperationRequestReturnType = UserOperation;
14
- export declare function prepareUserOperationRequest<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined>(client: Client<TTransport, TChain, TAccount>, args: PrepareUserOperationRequestParameters<TAccount>): Promise<PrepareUserOperationRequestReturnType>;
14
+ export declare function prepareUserOperationRequest<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined>(client: Client<TTransport, TChain, TAccount>, args: Prettify<PrepareUserOperationRequestParameters<TAccount>>): Promise<Prettify<PrepareUserOperationRequestReturnType>>;
15
15
  //# sourceMappingURL=prepareUserOperationRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareUserOperationRequest.d.ts","sourceRoot":"","sources":["../../../actions/smartAccount/prepareUserOperationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EACR,mBAAmB,EACnB,SAAS,EACT,aAAa,EAChB,MAAM,sBAAsB,CAAA;AAQ7B,MAAM,MAAM,8BAA8B,GAAG;IACzC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE;QAC1B,aAAa,EAAE,aAAa,CAAA;QAC5B,UAAU,EAAE,OAAO,CAAA;KACtB,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,qCAAqC,CAC7C,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,IACpE;IACA,aAAa,EAAE,SAAS,CACpB,aAAa,EACX,OAAO,GACP,QAAQ,GACR,UAAU,GACV,cAAc,GACd,sBAAsB,GACtB,oBAAoB,GACpB,cAAc,GACd,sBAAsB,GACtB,kBAAkB,GAClB,WAAW,CAChB,CAAA;CACJ,GAAG,mBAAmB,CAAC,QAAQ,CAAC,GAC7B,8BAA8B,CAAA;AAElC,MAAM,MAAM,qCAAqC,GAAG,aAAa,CAAA;AAEjE,wBAAsB,2BAA2B,CAC7C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EAEpE,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC5C,IAAI,EAAE,qCAAqC,CAAC,QAAQ,CAAC,GACtD,OAAO,CAAC,qCAAqC,CAAC,CA4EhD"}
1
+ {"version":3,"file":"prepareUserOperationRequest.d.ts","sourceRoot":"","sources":["../../../actions/smartAccount/prepareUserOperationRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EACR,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,aAAa,EAChB,MAAM,sBAAsB,CAAA;AAQ7B,MAAM,MAAM,8BAA8B,GAAG;IACzC,oBAAoB,CAAC,EAAE,CAAC,IAAI,EAAE;QAC1B,aAAa,EAAE,aAAa,CAAA;QAC5B,UAAU,EAAE,OAAO,CAAA;KACtB,KAAK,OAAO,CAAC,aAAa,CAAC,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,qCAAqC,CAC7C,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,IACpE;IACA,aAAa,EAAE,SAAS,CACpB,aAAa,EACX,OAAO,GACP,QAAQ,GACR,UAAU,GACV,cAAc,GACd,sBAAsB,GACtB,oBAAoB,GACpB,cAAc,GACd,sBAAsB,GACtB,kBAAkB,GAClB,WAAW,CAChB,CAAA;CACJ,GAAG,mBAAmB,CAAC,QAAQ,CAAC,GAC7B,8BAA8B,CAAA;AAElC,MAAM,MAAM,qCAAqC,GAAG,aAAa,CAAA;AAEjE,wBAAsB,2BAA2B,CAC7C,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EAEpE,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,qCAAqC,CAAC,QAAQ,CAAC,CAAC,GAChE,OAAO,CAAC,QAAQ,CAAC,qCAAqC,CAAC,CAAC,CA4E1D"}
@@ -1,5 +1,6 @@
1
- import type { Chain, Client, SendTransactionParameters, SendTransactionReturnType, Transport } from "viem";
1
+ import type { Chain, Client, Hash, SendTransactionParameters, Transport } from "viem";
2
2
  import { type SmartAccount } from "../../accounts/types.js";
3
+ import type { Prettify } from "../../types/index.js";
3
4
  import { type SponsorUserOperationMiddleware } from "./prepareUserOperationRequest.js";
4
5
  export type SendTransactionWithPaymasterParameters<TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined, TChainOverride extends Chain | undefined = Chain | undefined> = SendTransactionParameters<TChain, TAccount, TChainOverride> & SponsorUserOperationMiddleware;
5
6
  /**
@@ -14,7 +15,7 @@ export type SendTransactionWithPaymasterParameters<TChain extends Chain | undefi
14
15
  *
15
16
  * @param client - Client to use
16
17
  * @param parameters - {@link SendTransactionParameters}
17
- * @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash. {@link SendTransactionReturnType}
18
+ * @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash.
18
19
  *
19
20
  * @example
20
21
  * import { createWalletClient, custom } from 'viem'
@@ -48,5 +49,5 @@ export type SendTransactionWithPaymasterParameters<TChain extends Chain | undefi
48
49
  * value: 1000000000000000000n,
49
50
  * })
50
51
  */
51
- export declare function sendTransaction<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined, TChainOverride extends Chain | undefined>(client: Client<Transport, TChain, TAccount>, args: SendTransactionWithPaymasterParameters<TChain, TAccount, TChainOverride>): Promise<SendTransactionReturnType>;
52
+ export declare function sendTransaction<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined, TChainOverride extends Chain | undefined>(client: Client<Transport, TChain, TAccount>, args: Prettify<SendTransactionWithPaymasterParameters<TChain, TAccount, TChainOverride>>): Promise<Hash>;
52
53
  //# sourceMappingURL=sendTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../../actions/smartAccount/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,KAAK,EACL,MAAM,EACN,yBAAyB,EACzB,yBAAyB,EACzB,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAO3D,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAGtF,M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C5D,yBAAyB,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GAC3D,8BAA8B,CAAA;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAsB,eAAe,CACjC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,YAAY,GAAG,SAAS,EACzC,cAAc,SAAS,KAAK,GAAG,SAAS,EAExC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,IAAI,EAAE,QAAQ,CACV,sCAAsC,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAC3E,GACF,OAAO,CAAC,IAAI,CAAC,CAwDf"}
@@ -1,6 +1,6 @@
1
- import type { Address, Chain, Client, Hex, SendTransactionReturnType, Transport } from "viem";
1
+ import type { Address, Chain, Client, Hash, Hex, Transport } from "viem";
2
2
  import { type SmartAccount } from "../../accounts/types.js";
3
- import type { GetAccountParameter } from "../../types/index.js";
3
+ import type { GetAccountParameter, Prettify } from "../../types/index.js";
4
4
  import { type SponsorUserOperationMiddleware } from "./prepareUserOperationRequest.js";
5
5
  export type SendTransactionsWithPaymasterParameters<TAccount extends SmartAccount | undefined = SmartAccount | undefined> = {
6
6
  transactions: {
@@ -19,7 +19,7 @@ export type SendTransactionsWithPaymasterParameters<TAccount extends SmartAccoun
19
19
  *
20
20
  * @param client - Client to use
21
21
  * @param parameters - {@link SendTransactionParameters}
22
- * @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash. {@link SendTransactionReturnType}
22
+ * @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash.
23
23
  *
24
24
  * @example
25
25
  * import { createWalletClient, custom } from 'viem'
@@ -59,5 +59,5 @@ export type SendTransactionsWithPaymasterParameters<TAccount extends SmartAccoun
59
59
  * value: 10000000000000000n,
60
60
  * }])
61
61
  */
62
- export declare function sendTransactions<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined>(client: Client<Transport, TChain, TAccount>, args: SendTransactionsWithPaymasterParameters<TAccount>): Promise<SendTransactionReturnType>;
62
+ export declare function sendTransactions<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined>(client: Client<Transport, TChain, TAccount>, args: Prettify<SendTransactionsWithPaymasterParameters<TAccount>>): Promise<Hash>;
63
63
  //# sourceMappingURL=sendTransactions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendTransactions.d.ts","sourceRoot":"","sources":["../../../actions/smartAccount/sendTransactions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,OAAO,EACP,KAAK,EACL,MAAM,EACN,GAAG,EAEH,yBAAyB,EACzB,SAAS,EACZ,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAO/D,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAGtF,MAAM,MAAM,uCAAuC,CAC/C,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,IACpE;IACA,YAAY,EAAE;QAAE,EAAE,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,GAAG,CAAA;KAAE,EAAE,CAAA;CAC5D,GAAG,mBAAmB,CAAC,QAAQ,CAAC,GAC7B,8BAA8B,GAAG;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAEL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAsB,gBAAgB,CAClC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,YAAY,GAAG,SAAS,EAEzC,MAA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,CAAC,GAClE,OAAO,CAAC,IAAI,CAAC,CAyDf"}
@@ -1,10 +1,9 @@
1
- import type { Chain, Client, Hex, Transport } from "viem";
1
+ import type { Chain, Client, Hash, Transport } from "viem";
2
2
  import type { SmartAccount } from "../../accounts/types.js";
3
- import type { GetAccountParameter, PartialBy, UserOperation } from "../../types/index.js";
3
+ import type { GetAccountParameter, PartialBy, Prettify, UserOperation } from "../../types/index.js";
4
4
  import { type SponsorUserOperationMiddleware } from "./prepareUserOperationRequest.js";
5
5
  export type SendUserOperationParameters<TAccount extends SmartAccount | undefined = SmartAccount | undefined> = {
6
6
  userOperation: PartialBy<UserOperation, "nonce" | "sender" | "initCode" | "signature" | "callGasLimit" | "maxFeePerGas" | "maxPriorityFeePerGas" | "preVerificationGas" | "verificationGasLimit" | "paymasterAndData">;
7
7
  } & GetAccountParameter<TAccount> & SponsorUserOperationMiddleware;
8
- export type SendUserOperationReturnType = Hex;
9
- export declare function sendUserOperation<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined>(client: Client<TTransport, TChain, TAccount>, args: SendUserOperationParameters<TAccount>): Promise<SendUserOperationReturnType>;
8
+ export declare function sendUserOperation<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined>(client: Client<TTransport, TChain, TAccount>, args: Prettify<SendUserOperationParameters<TAccount>>): Promise<Hash>;
10
9
  //# sourceMappingURL=sendUserOperation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/smartAccount/sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,EACR,mBAAmB,EACnB,S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B,CACnC,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,IACpE;IACA,aAAa,EAAE,SAAS,CACpB,aAAa,EACX,OAAO,GACP,QAAQ,GACR,UAAU,GACV,WAAW,GACX,cAAc,GACd,cAAc,GACd,sBAAsB,GACtB,oBAAoB,GACpB,sBAAsB,GACtB,kBAAkB,CACvB,CAAA;CACJ,GAAG,mBAAmB,CAAC,QAAQ,CAAC,GAC7B,8BAA8B,CAAA;AAElC,wBAAsB,iBAAiB,CACnC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EAEpE,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC5C,IAAI,EAAE,QAAQ,CAAC,2BAA2B,CAAC,QAAQ,CAAC,CAAC,GACtD,OAAO,CAAC,IAAI,CAAC,CAiBf"}
@@ -1,4 +1,4 @@
1
- import { type Abi, type Chain, type Client, type ContractFunctionArgs, type ContractFunctionName, type Transport, type WriteContractParameters, type WriteContractReturnType } from "viem";
1
+ import { type Abi, type Chain, type Client, type ContractFunctionArgs, type ContractFunctionName, type Hash, type Transport, type WriteContractParameters } from "viem";
2
2
  import { type SmartAccount } from "../../accounts/types.js";
3
3
  import { type SponsorUserOperationMiddleware } from "./prepareUserOperationRequest.js";
4
4
  /**
@@ -16,7 +16,7 @@ import { type SponsorUserOperationMiddleware } from "./prepareUserOperationReque
16
16
  *
17
17
  * @param client - Client to use
18
18
  * @param parameters - {@link WriteContractParameters}
19
- * @returns A [Transaction Hash](https://viem.sh/docs/glossary/terms.html#hash). {@link WriteContractReturnType}
19
+ * @returns A [Transaction Hash](https://viem.sh/docs/glossary/terms.html#hash).
20
20
  *
21
21
  * @example
22
22
  * import { createWalletClient, custom, parseAbi } from 'viem'
@@ -53,5 +53,5 @@ import { type SponsorUserOperationMiddleware } from "./prepareUserOperationReque
53
53
  * const hash = await writeContract(client, request)
54
54
  */
55
55
  export type WriteContractWithPaymasterParameters<TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined, TAbi extends Abi | readonly unknown[] = 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> = WriteContractParameters<TAbi, TFunctionName, TArgs, TChain, TAccount, TChainOverride> & SponsorUserOperationMiddleware;
56
- export declare function writeContract<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined, 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>(client: Client<Transport, TChain, TAccount>, { abi, address, args, dataSuffix, functionName, ...request }: WriteContractWithPaymasterParameters<TChain, TAccount, TAbi, TFunctionName, TArgs, TChainOverride>): Promise<WriteContractReturnType>;
56
+ export declare function writeContract<TChain extends Chain | undefined, TAccount extends SmartAccount | undefined, 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>(client: Client<Transport, TChain, TAccount>, { abi, address, args, dataSuffix, functionName, ...request }: WriteContractWithPaymasterParameters<TChain, TAccount, TAbi, TFunctionName, TArgs, TChainOverride>): Promise<Hash>;
57
57
  //# sourceMappingURL=writeContract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"writeContract.d.ts","sourceRoot":"","sources":["../../../actions/smartAccount/writeContract.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,GAAG,EACR,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAEzB,KAAK,SAAS,EACd,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAE/B,MAAM,MAAM,CAAA;AACb,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAE3D,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AAMtF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,MAAM,MAAM,oCAAoC,CAC5C,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,YAAY,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,EACpE,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,GAAG,SAAS,OAAO,EAAE,EAChE,aAAa,SAAS,oBAAoB,CACtC,IAAI,EACJ,YAAY,GAAG,SAAS,CAC3B,GAAG,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC,EACxD,KAAK,SAAS,oBAAoB,CAC9B,IAAI,EACJ,YAAY,GAAG,SAAS,EACxB,aAAa,CAChB,GAAG,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,SAAS,EAAE,aAAa,CAAC,EACvE,cAAc,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,IACpD,uBAAuB,CACvB,IAAI,EACJ,aAAa,EACb,KAAK,EACL,MAAM,EACN,QAAQ,EACR,cAAc,CACjB,GACG,8BAA8B,CAAA;AAElC,wBAAsB,aAAa,CAC/B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V,YAAY,EACZ,GAAG,OAAO,EACb,EAAE,oCAAoC,CACnC,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,aAAa,EACb,KAAK,EACL,cAAc,CACjB,GACF,OAAO,CAAC,IAAI,CAAC,CAmBf"}
@@ -1,10 +1,10 @@
1
1
  import { type DeployContractParametersWithPaymaster, deployContract } from "./smartAccount/deployContract.js";
2
2
  import { type PrepareUserOperationRequestParameters, type PrepareUserOperationRequestReturnType, type SponsorUserOperationMiddleware, prepareUserOperationRequest } from "./smartAccount/prepareUserOperationRequest.js";
3
3
  import { type SendTransactionWithPaymasterParameters, sendTransaction } from "./smartAccount/sendTransaction.js";
4
- import { type SendUserOperationParameters, type SendUserOperationReturnType, sendUserOperation } from "./smartAccount/sendUserOperation.js";
4
+ import { type SendUserOperationParameters, sendUserOperation } from "./smartAccount/sendUserOperation.js";
5
5
  import { signMessage } from "./smartAccount/signMessage.js";
6
6
  import { signTypedData } from "./smartAccount/signTypedData.js";
7
7
  import { type SendTransactionsWithPaymasterParameters, sendTransactions } from "./smartAccount/sendTransactions.js";
8
8
  import { type WriteContractWithPaymasterParameters, writeContract } from "./smartAccount/writeContract.js";
9
- export { deployContract, type DeployContractParametersWithPaymaster, prepareUserOperationRequest, type PrepareUserOperationRequestParameters, type PrepareUserOperationRequestReturnType, sendTransaction, sendUserOperation, type SendUserOperationParameters, type SendUserOperationReturnType, signMessage, signTypedData, type SendTransactionWithPaymasterParameters, type SponsorUserOperationMiddleware, sendTransactions, type SendTransactionsWithPaymasterParameters, type WriteContractWithPaymasterParameters, writeContract };
9
+ export { deployContract, type DeployContractParametersWithPaymaster, prepareUserOperationRequest, type PrepareUserOperationRequestParameters, type PrepareUserOperationRequestReturnType, sendTransaction, sendUserOperation, type SendUserOperationParameters, signMessage, signTypedData, type SendTransactionWithPaymasterParameters, type SponsorUserOperationMiddleware, sendTransactions, type SendTransactionsWithPaymasterParameters, type WriteContractWithPaymasterParameters, writeContract };
10
10
  //# sourceMappingURL=smartAccount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smartAccount.d.ts","sourceRoot":"","sources":["../../actions/smartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,qCAAqC,EAC1C,cAAc,EACjB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,8BAA8B,EACnC,2BAA2B,EAC9B,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EACH,KAAK,sCAAsC,EAC3C,eAAe,EAClB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACH,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,iBAAiB,EACpB,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,OAAO,EACH,KAAK,uCAAuC,EAC5C,gBAAgB,EACnB,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EACH,KAAK,oCAAoC,EACzC,aAAa,EAChB,MAAM,iCAAiC,CAAA;AAExC,OAAO,EACH,cAAc,EACd,KAAK,qCAAqC,EAC1C,2BAA2B,EAC3B,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,eAAe,EACf,iBAAiB,EACjB,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,WAAW,EACX,aAAa,EACb,KAAK,sCAAsC,EAC3C,KAAK,8BAA8B,EACnC,gBAAgB,EAChB,KAAK,uCAAuC,EAC5C,KAAK,oCAAoC,EACzC,aAAa,EAChB,CAAA"}
1
+ {"version":3,"file":"smartAccount.d.ts","sourceRoot":"","sources":["../../actions/smartAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,qCAAqC,EAC1C,cAAc,EACjB,MAAM,kCAAkC,CAAA;AAEzC,OAAO,EACH,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,KAAK,8BAA8B,EACnC,2BAA2B,EAC9B,MAAM,+CAA+C,CAAA;AAEtD,OAAO,EACH,KAAK,sCAAsC,EAC3C,eAAe,EAClB,MAAM,mCAAmC,CAAA;AAE1C,OAAO,EACH,KAAK,2BAA2B,EAChC,iBAAiB,EACpB,MAAM,qCAAqC,CAAA;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAA;AAE3D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,OAAO,EACH,KAAK,uCAAuC,EAC5C,gBAAgB,EACnB,MAAM,oCAAoC,CAAA;AAE3C,OAAO,EACH,KAAK,oCAAoC,EACzC,aAAa,EAChB,MAAM,iCAAiC,CAAA;AAExC,OAAO,EACH,cAAc,EACd,KAAK,qCAAqC,EAC1C,2BAA2B,EAC3B,KAAK,qCAAqC,EAC1C,KAAK,qCAAqC,EAC1C,eAAe,EACf,iBAAiB,EACjB,KAAK,2BAA2B,EAChC,WAAW,EACX,aAAa,EACb,KAAK,sCAAsC,EAC3C,KAAK,8BAA8B,EACnC,gBAAgB,EAChB,KAAK,uCAAuC,EAC5C,KAAK,oCAAoC,EACzC,aAAa,EAChB,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { Chain, Client, ClientConfig, ParseAccount, Transport } from "viem";
1
+ import type { Chain, Client, ClientConfig, Transport } from "viem";
2
2
  import { type SmartAccount } from "../accounts/types.js";
3
3
  import { type SponsorUserOperationMiddleware } from "../actions/smartAccount/prepareUserOperationRequest.js";
4
4
  import { type BundlerRpcSchema } from "../types/bundler.js";
@@ -10,7 +10,9 @@ import { type SmartAccountActions } from "./decorators/smartAccount.js";
10
10
  * - Fix typing, 'accounts' is required to signMessage, signTypedData, signTransaction, but not needed here, since account is embedded in the client
11
11
  */
12
12
  export type SmartAccountClient<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined> = Prettify<Client<transport, chain, account, BundlerRpcSchema, SmartAccountActions<chain, account>>>;
13
- export type SmartAccountClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, TAccount extends SmartAccount | undefined = SmartAccount | undefined> = Prettify<Pick<ClientConfig<transport, chain, TAccount>, "account" | "cacheTime" | "chain" | "key" | "name" | "pollingInterval" | "transport">> & SponsorUserOperationMiddleware;
13
+ export type SmartAccountClientConfig<transport extends Transport = Transport, chain extends Chain | undefined = Chain | undefined, account extends SmartAccount | undefined = SmartAccount | undefined> = Prettify<Pick<ClientConfig<transport, chain, account>, "cacheTime" | "chain" | "key" | "name" | "pollingInterval" | "transport"> & {
14
+ account?: account;
15
+ } & SponsorUserOperationMiddleware>;
14
16
  /**
15
17
  * 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).
16
18
  *
@@ -30,5 +32,5 @@ export type SmartAccountClientConfig<transport extends Transport = Transport, ch
30
32
  * transport: http(BUNDLER_URL),
31
33
  * })
32
34
  */
33
- export declare function createSmartAccountClient<TTransport extends Transport, TChain extends Chain | undefined = Chain | undefined, TSmartAccount extends SmartAccount | undefined = SmartAccount | undefined>(parameters: SmartAccountClientConfig<TTransport, TChain, TSmartAccount>): SmartAccountClient<TTransport, TChain, ParseAccount<TSmartAccount>>;
35
+ export declare function createSmartAccountClient<TTransport extends Transport, TChain extends Chain | undefined = undefined, TSmartAccount extends SmartAccount | undefined = undefined>(parameters: SmartAccountClientConfig<TTransport, TChain, TSmartAccount>): SmartAccountClient<TTransport, TChain, TSmartAccount>;
34
36
  //# sourceMappingURL=createSmartAccountClient.d.ts.map