@aa-sdk/core 4.0.0-alpha.5 → 4.0.0-alpha.6

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 (239) hide show
  1. package/dist/cjs/account/smartContractAccount.d.ts +9 -3
  2. package/dist/cjs/account/smartContractAccount.js +11 -6
  3. package/dist/cjs/account/smartContractAccount.js.map +1 -1
  4. package/dist/cjs/actions/smartAccount/buildUserOperationFromTx.js.map +1 -1
  5. package/dist/cjs/actions/smartAccount/buildUserOperationFromTxs.js.map +1 -1
  6. package/dist/cjs/actions/smartAccount/checkGasSponsorshipEligibility.js.map +1 -1
  7. package/dist/cjs/actions/smartAccount/estimateUserOperationGas.js.map +1 -1
  8. package/dist/cjs/actions/smartAccount/internal/initUserOperation.js.map +1 -1
  9. package/dist/cjs/actions/smartAccount/internal/runMiddlewareStack.js.map +1 -1
  10. package/dist/cjs/actions/smartAccount/internal/sendUserOperation.js.map +1 -1
  11. package/dist/cjs/actions/smartAccount/sendUserOperation.js.map +1 -1
  12. package/dist/cjs/client/bundlerClient.js.map +1 -1
  13. package/dist/cjs/client/decorators/bundlerClient.js.map +1 -1
  14. package/dist/cjs/client/isSmartAccountClient.js.map +1 -1
  15. package/dist/cjs/client/types.d.ts +2 -7
  16. package/dist/cjs/client/types.js.map +1 -1
  17. package/dist/cjs/errors/account.js.map +1 -1
  18. package/dist/cjs/errors/client.js.map +1 -1
  19. package/dist/cjs/errors/entrypoint.js.map +1 -1
  20. package/dist/cjs/errors/signer.js.map +1 -1
  21. package/dist/cjs/errors/transaction.js.map +1 -1
  22. package/dist/cjs/errors/useroperation.js.map +1 -1
  23. package/dist/cjs/index.d.ts +3 -5
  24. package/dist/cjs/index.js +6 -9
  25. package/dist/cjs/index.js.map +1 -1
  26. package/dist/cjs/logger.js.map +1 -1
  27. package/dist/cjs/middleware/actions.js +2 -18
  28. package/dist/cjs/middleware/actions.js.map +1 -1
  29. package/dist/cjs/middleware/defaults/gasEstimator.js +3 -2
  30. package/dist/cjs/middleware/defaults/gasEstimator.js.map +1 -1
  31. package/dist/cjs/middleware/erc7677middleware.d.ts +40 -0
  32. package/dist/cjs/middleware/erc7677middleware.js +77 -0
  33. package/dist/cjs/middleware/erc7677middleware.js.map +1 -0
  34. package/dist/cjs/middleware/noopMiddleware.d.ts +2 -1
  35. package/dist/cjs/middleware/noopMiddleware.js.map +1 -1
  36. package/dist/cjs/middleware/types.d.ts +3 -2
  37. package/dist/cjs/middleware/types.js.map +1 -1
  38. package/dist/cjs/signer/local-account.d.ts +46 -46
  39. package/dist/cjs/signer/local-account.js.map +1 -1
  40. package/dist/cjs/signer/wallet-client.d.ts +46 -46
  41. package/dist/cjs/signer/wallet-client.js.map +1 -1
  42. package/dist/cjs/transport/split.js.map +1 -1
  43. package/dist/cjs/utils/bigint.js.map +1 -1
  44. package/dist/cjs/utils/bytes.js.map +1 -1
  45. package/dist/cjs/utils/defaults.d.ts +1 -3
  46. package/dist/cjs/utils/defaults.js +1 -41
  47. package/dist/cjs/utils/defaults.js.map +1 -1
  48. package/dist/cjs/utils/index.js.map +1 -1
  49. package/dist/cjs/utils/types.js.map +1 -1
  50. package/dist/cjs/utils/userop.js.map +1 -1
  51. package/dist/cjs/version.d.ts +1 -1
  52. package/dist/cjs/version.js +1 -1
  53. package/dist/cjs/version.js.map +1 -1
  54. package/dist/esm/account/smartContractAccount.d.ts +9 -3
  55. package/dist/esm/account/smartContractAccount.js +6 -1
  56. package/dist/esm/account/smartContractAccount.js.map +1 -1
  57. package/dist/esm/actions/smartAccount/buildUserOperationFromTx.js.map +1 -1
  58. package/dist/esm/actions/smartAccount/buildUserOperationFromTxs.js.map +1 -1
  59. package/dist/esm/actions/smartAccount/checkGasSponsorshipEligibility.js.map +1 -1
  60. package/dist/esm/actions/smartAccount/estimateUserOperationGas.js.map +1 -1
  61. package/dist/esm/actions/smartAccount/internal/initUserOperation.js.map +1 -1
  62. package/dist/esm/actions/smartAccount/internal/runMiddlewareStack.js.map +1 -1
  63. package/dist/esm/actions/smartAccount/internal/sendUserOperation.js.map +1 -1
  64. package/dist/esm/actions/smartAccount/sendUserOperation.js.map +1 -1
  65. package/dist/esm/client/bundlerClient.js.map +1 -1
  66. package/dist/esm/client/decorators/bundlerClient.js.map +1 -1
  67. package/dist/esm/client/isSmartAccountClient.js.map +1 -1
  68. package/dist/esm/client/types.d.ts +2 -7
  69. package/dist/esm/client/types.js.map +1 -1
  70. package/dist/esm/errors/account.js.map +1 -1
  71. package/dist/esm/errors/client.js.map +1 -1
  72. package/dist/esm/errors/entrypoint.js.map +1 -1
  73. package/dist/esm/errors/signer.js.map +1 -1
  74. package/dist/esm/errors/transaction.js.map +1 -1
  75. package/dist/esm/errors/useroperation.js.map +1 -1
  76. package/dist/esm/index.d.ts +3 -5
  77. package/dist/esm/index.js +2 -3
  78. package/dist/esm/index.js.map +1 -1
  79. package/dist/esm/logger.js.map +1 -1
  80. package/dist/esm/middleware/actions.js +3 -18
  81. package/dist/esm/middleware/actions.js.map +1 -1
  82. package/dist/esm/middleware/defaults/gasEstimator.js +3 -2
  83. package/dist/esm/middleware/defaults/gasEstimator.js.map +1 -1
  84. package/dist/esm/middleware/erc7677middleware.d.ts +40 -0
  85. package/dist/esm/middleware/erc7677middleware.js +73 -0
  86. package/dist/esm/middleware/erc7677middleware.js.map +1 -0
  87. package/dist/esm/middleware/noopMiddleware.d.ts +2 -1
  88. package/dist/esm/middleware/noopMiddleware.js.map +1 -1
  89. package/dist/esm/middleware/types.d.ts +3 -2
  90. package/dist/esm/middleware/types.js.map +1 -1
  91. package/dist/esm/signer/local-account.d.ts +46 -46
  92. package/dist/esm/signer/local-account.js.map +1 -1
  93. package/dist/esm/signer/wallet-client.d.ts +46 -46
  94. package/dist/esm/signer/wallet-client.js.map +1 -1
  95. package/dist/esm/transport/split.js.map +1 -1
  96. package/dist/esm/utils/bigint.js.map +1 -1
  97. package/dist/esm/utils/bytes.js.map +1 -1
  98. package/dist/esm/utils/defaults.d.ts +1 -3
  99. package/dist/esm/utils/defaults.js +1 -40
  100. package/dist/esm/utils/defaults.js.map +1 -1
  101. package/dist/esm/utils/index.js.map +1 -1
  102. package/dist/esm/utils/types.js.map +1 -1
  103. package/dist/esm/utils/userop.js.map +1 -1
  104. package/dist/esm/version.d.ts +1 -1
  105. package/dist/esm/version.js +1 -1
  106. package/dist/esm/version.js.map +1 -1
  107. package/dist/types/account/smartContractAccount.d.ts +17 -11
  108. package/dist/types/account/smartContractAccount.d.ts.map +1 -1
  109. package/dist/types/actions/smartAccount/buildUserOperationFromTx.d.ts +33 -33
  110. package/dist/types/actions/smartAccount/buildUserOperationFromTxs.d.ts +43 -59
  111. package/dist/types/actions/smartAccount/buildUserOperationFromTxs.d.ts.map +1 -1
  112. package/dist/types/actions/smartAccount/checkGasSponsorshipEligibility.d.ts +18 -18
  113. package/dist/types/actions/smartAccount/estimateUserOperationGas.d.ts +3 -3
  114. package/dist/types/actions/smartAccount/internal/initUserOperation.d.ts +3 -4
  115. package/dist/types/actions/smartAccount/internal/initUserOperation.d.ts.map +1 -1
  116. package/dist/types/actions/smartAccount/internal/runMiddlewareStack.d.ts +0 -14
  117. package/dist/types/actions/smartAccount/internal/runMiddlewareStack.d.ts.map +1 -1
  118. package/dist/types/actions/smartAccount/internal/sendUserOperation.d.ts +0 -7
  119. package/dist/types/actions/smartAccount/internal/sendUserOperation.d.ts.map +1 -1
  120. package/dist/types/actions/smartAccount/sendUserOperation.d.ts +17 -3
  121. package/dist/types/actions/smartAccount/sendUserOperation.d.ts.map +1 -1
  122. package/dist/types/client/bundlerClient.d.ts +2 -2
  123. package/dist/types/client/decorators/bundlerClient.d.ts +8 -8
  124. package/dist/types/client/isSmartAccountClient.d.ts +4 -4
  125. package/dist/types/client/types.d.ts +2 -7
  126. package/dist/types/client/types.d.ts.map +1 -1
  127. package/dist/types/errors/account.d.ts +53 -4
  128. package/dist/types/errors/account.d.ts.map +1 -1
  129. package/dist/types/errors/client.d.ts +15 -0
  130. package/dist/types/errors/client.d.ts.map +1 -1
  131. package/dist/types/errors/entrypoint.d.ts +12 -0
  132. package/dist/types/errors/entrypoint.d.ts.map +1 -1
  133. package/dist/types/errors/signer.d.ts +5 -0
  134. package/dist/types/errors/signer.d.ts.map +1 -1
  135. package/dist/types/errors/transaction.d.ts +8 -1
  136. package/dist/types/errors/transaction.d.ts.map +1 -1
  137. package/dist/types/errors/useroperation.d.ts +5 -5
  138. package/dist/types/errors/useroperation.d.ts.map +1 -1
  139. package/dist/types/index.d.ts +3 -5
  140. package/dist/types/index.d.ts.map +1 -1
  141. package/dist/types/logger.d.ts +88 -0
  142. package/dist/types/logger.d.ts.map +1 -1
  143. package/dist/types/middleware/actions.d.ts +3 -3
  144. package/dist/types/middleware/actions.d.ts.map +1 -1
  145. package/dist/types/middleware/defaults/gasEstimator.d.ts +2 -2
  146. package/dist/types/middleware/defaults/gasEstimator.d.ts.map +1 -1
  147. package/dist/types/middleware/erc7677middleware.d.ts +62 -0
  148. package/dist/types/middleware/erc7677middleware.d.ts.map +1 -0
  149. package/dist/types/middleware/noopMiddleware.d.ts +4 -4
  150. package/dist/types/middleware/noopMiddleware.d.ts.map +1 -1
  151. package/dist/types/middleware/types.d.ts +3 -2
  152. package/dist/types/middleware/types.d.ts.map +1 -1
  153. package/dist/types/signer/local-account.d.ts +139 -47
  154. package/dist/types/signer/local-account.d.ts.map +1 -1
  155. package/dist/types/signer/wallet-client.d.ts +135 -46
  156. package/dist/types/signer/wallet-client.d.ts.map +1 -1
  157. package/dist/types/transport/split.d.ts +2 -2
  158. package/dist/types/utils/bigint.d.ts +14 -14
  159. package/dist/types/utils/bigint.d.ts.map +1 -1
  160. package/dist/types/utils/bytes.d.ts +5 -5
  161. package/dist/types/utils/defaults.d.ts +1 -11
  162. package/dist/types/utils/defaults.d.ts.map +1 -1
  163. package/dist/types/utils/index.d.ts +12 -12
  164. package/dist/types/utils/types.d.ts +2 -2
  165. package/dist/types/utils/userop.d.ts +33 -33
  166. package/dist/types/version.d.ts +1 -1
  167. package/package.json +3 -2
  168. package/src/account/smartContractAccount.ts +19 -12
  169. package/src/actions/smartAccount/buildUserOperationFromTx.ts +35 -35
  170. package/src/actions/smartAccount/buildUserOperationFromTxs.ts +44 -60
  171. package/src/actions/smartAccount/checkGasSponsorshipEligibility.ts +19 -19
  172. package/src/actions/smartAccount/estimateUserOperationGas.ts +3 -3
  173. package/src/actions/smartAccount/internal/initUserOperation.ts +3 -4
  174. package/src/actions/smartAccount/internal/runMiddlewareStack.ts +0 -22
  175. package/src/actions/smartAccount/internal/sendUserOperation.ts +0 -7
  176. package/src/actions/smartAccount/sendUserOperation.ts +17 -3
  177. package/src/client/bundlerClient.ts +2 -2
  178. package/src/client/decorators/bundlerClient.ts +8 -8
  179. package/src/client/isSmartAccountClient.ts +4 -4
  180. package/src/client/types.ts +2 -15
  181. package/src/errors/account.ts +64 -4
  182. package/src/errors/client.ts +18 -0
  183. package/src/errors/entrypoint.ts +12 -0
  184. package/src/errors/signer.ts +6 -0
  185. package/src/errors/transaction.ts +10 -1
  186. package/src/errors/useroperation.ts +5 -6
  187. package/src/index.ts +2 -8
  188. package/src/logger.ts +88 -0
  189. package/src/middleware/actions.ts +6 -27
  190. package/src/middleware/defaults/gasEstimator.ts +8 -5
  191. package/src/middleware/erc7677middleware.ts +201 -0
  192. package/src/middleware/noopMiddleware.ts +6 -4
  193. package/src/middleware/types.ts +16 -7
  194. package/src/signer/local-account.ts +94 -2
  195. package/src/signer/wallet-client.ts +89 -0
  196. package/src/transport/split.ts +2 -2
  197. package/src/utils/bigint.ts +15 -15
  198. package/src/utils/bytes.ts +5 -5
  199. package/src/utils/defaults.ts +2 -74
  200. package/src/utils/index.ts +12 -12
  201. package/src/utils/types.ts +2 -2
  202. package/src/utils/userop.ts +33 -33
  203. package/src/version.ts +1 -1
  204. package/dist/cjs/account/base.d.ts +0 -49
  205. package/dist/cjs/account/base.js +0 -257
  206. package/dist/cjs/account/base.js.map +0 -1
  207. package/dist/cjs/account/schema.d.ts +0 -100
  208. package/dist/cjs/account/schema.js +0 -43
  209. package/dist/cjs/account/schema.js.map +0 -1
  210. package/dist/cjs/account/simple.d.ts +0 -14
  211. package/dist/cjs/account/simple.js +0 -119
  212. package/dist/cjs/account/simple.js.map +0 -1
  213. package/dist/cjs/account/types.d.ts +0 -30
  214. package/dist/cjs/account/types.js +0 -3
  215. package/dist/cjs/account/types.js.map +0 -1
  216. package/dist/esm/account/base.d.ts +0 -49
  217. package/dist/esm/account/base.js +0 -253
  218. package/dist/esm/account/base.js.map +0 -1
  219. package/dist/esm/account/schema.d.ts +0 -100
  220. package/dist/esm/account/schema.js +0 -35
  221. package/dist/esm/account/schema.js.map +0 -1
  222. package/dist/esm/account/simple.d.ts +0 -14
  223. package/dist/esm/account/simple.js +0 -115
  224. package/dist/esm/account/simple.js.map +0 -1
  225. package/dist/esm/account/types.d.ts +0 -30
  226. package/dist/esm/account/types.js +0 -2
  227. package/dist/esm/account/types.js.map +0 -1
  228. package/dist/types/account/base.d.ts +0 -128
  229. package/dist/types/account/base.d.ts.map +0 -1
  230. package/dist/types/account/schema.d.ts +0 -101
  231. package/dist/types/account/schema.d.ts.map +0 -1
  232. package/dist/types/account/simple.d.ts +0 -15
  233. package/dist/types/account/simple.d.ts.map +0 -1
  234. package/dist/types/account/types.d.ts +0 -144
  235. package/dist/types/account/types.d.ts.map +0 -1
  236. package/src/account/base.ts +0 -415
  237. package/src/account/schema.ts +0 -51
  238. package/src/account/simple.ts +0 -221
  239. package/src/account/types.ts +0 -184
@@ -5,6 +5,12 @@ import { BaseError } from "./base.js";
5
5
  */
6
6
  export declare class EntryPointNotFoundError extends BaseError {
7
7
  name: string;
8
+ /**
9
+ * Constructs an error message indicating that no default entry point exists for the given chain and entry point version.
10
+ *
11
+ * @param {Chain} chain The blockchain network for which the entry point is being queried
12
+ * @param {any} entryPointVersion The version of the entry point for which no default exists
13
+ */
8
14
  constructor(chain: Chain, entryPointVersion: any);
9
15
  }
10
16
  /**
@@ -12,6 +18,12 @@ export declare class EntryPointNotFoundError extends BaseError {
12
18
  */
13
19
  export declare class InvalidEntryPointError extends BaseError {
14
20
  name: string;
21
+ /**
22
+ * Constructs an error indicating an invalid entry point version for a specific chain.
23
+ *
24
+ * @param {Chain} chain The chain object containing information about the blockchain
25
+ * @param {any} entryPointVersion The entry point version that is invalid
26
+ */
15
27
  constructor(chain: Chain, entryPointVersion: any);
16
28
  }
17
29
  //# sourceMappingURL=entrypoint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../../src/errors/entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,SAAS;IAC3C,IAAI,SAA6B;gBAE9B,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG;CAQjD;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;IAC1C,IAAI,SAA4B;gBAE7B,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG;CAKjD"}
1
+ {"version":3,"file":"entrypoint.d.ts","sourceRoot":"","sources":["../../../src/errors/entrypoint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,SAAS;IAC3C,IAAI,SAA6B;IAE1C;;;;;OAKG;gBACS,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG;CAQjD;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;IAC1C,IAAI,SAA4B;IAEzC;;;;;OAKG;gBACS,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,GAAG;CAKjD"}
@@ -4,6 +4,11 @@ import { BaseError } from "./base.js";
4
4
  */
5
5
  export declare class InvalidSignerTypeError extends BaseError {
6
6
  name: string;
7
+ /**
8
+ * Constructs an error message when an invalid signer type is passed to SmartAccountSigner.
9
+ *
10
+ * @param {string} [signerType] An optional parameter specifying the signer type. If not provided, a default error message will be used.
11
+ */
7
12
  constructor(signerType?: string);
8
13
  }
9
14
  //# sourceMappingURL=signer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../src/errors/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;IAC1C,IAAI,SAA4B;gBAC7B,UAAU,CAAC,EAAE,MAAM;CAQhC"}
1
+ {"version":3,"file":"signer.d.ts","sourceRoot":"","sources":["../../../src/errors/signer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,SAAS;IAC1C,IAAI,SAA4B;IAEzC;;;;OAIG;gBACS,UAAU,CAAC,EAAE,MAAM;CAQhC"}
@@ -5,13 +5,20 @@ import { BaseError } from "./base.js";
5
5
  */
6
6
  export declare class TransactionMissingToParamError extends BaseError {
7
7
  name: string;
8
- constructor();
8
+ /**
9
+ * Throws an error indicating that a transaction is missing the `to` address in the request.
10
+ */ constructor();
9
11
  }
10
12
  /**
11
13
  * Represents an error that occurs when a transaction cannot be found for a given user operation. This error extends from `BaseError`. The `hash` of the transaction is provided to indicate which transaction could not be found.
12
14
  */
13
15
  export declare class FailedToFindTransactionError extends BaseError {
14
16
  name: string;
17
+ /**
18
+ * Constructs a new error message indicating a failure to find the transaction for the specified user operation hash.
19
+ *
20
+ * @param {Hex} hash The hexadecimal value representing the user operation hash.
21
+ */
15
22
  constructor(hash: Hex);
16
23
  }
17
24
  //# sourceMappingURL=transaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/errors/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,SAAS;IAClD,IAAI,SAAoC;;CAIlD;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IAChD,IAAI,SAAkC;gBACnC,IAAI,EAAE,GAAG;CAGtB"}
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/errors/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,SAAS;IAClD,IAAI,SAAoC;IAEjD;;OAEG;CAGJ;AAED;;GAEG;AACH,qBAAa,4BAA6B,SAAQ,SAAS;IAChD,IAAI,SAAkC;IAE/C;;;;OAIG;gBACS,IAAI,EAAE,GAAG;CAGtB"}
@@ -1,7 +1,7 @@
1
1
  import type { UserOperationRequest, UserOperationStruct } from "../types.js";
2
2
  import { BaseError } from "./base.js";
3
3
  /**
4
- * Thrown when a {@link UserOperationStruct} is not a valid request
4
+ * Thrown when a UserOperationStruct is not a valid request
5
5
  *
6
6
  * extends viem BaseError
7
7
  */
@@ -15,7 +15,7 @@ export declare class InvalidUserOperationError extends BaseError {
15
15
  *
16
16
  * InvalidUserOperationError constructor
17
17
  *
18
- * @param uo the invalid user operation struct
18
+ * @param {UserOperationStruct} uo the invalid user operation struct
19
19
  */
20
20
  constructor(uo: UserOperationStruct);
21
21
  }
@@ -23,13 +23,13 @@ export declare class InvalidUserOperationError extends BaseError {
23
23
  * Error thrown when waiting for user operation request to be mined.
24
24
  *
25
25
  * Includes the internal error as well as the request that failed. This request
26
- * can then be used with {@link dropAndReplaceUserOperation} to retry the operation.
26
+ * can then be used with dropAndReplaceUserOperation to retry the operation.
27
27
  */
28
28
  export declare class WaitForUserOperationError extends BaseError {
29
29
  request: UserOperationRequest;
30
30
  /**
31
- * @param request the user operation request that failed
32
- * @param error the underlying error that caused the failure
31
+ * @param {UserOperationRequest} request the user operation request that failed
32
+ * @param {Error} error the underlying error that caused the failure
33
33
  */
34
34
  constructor(request: UserOperationRequest, error: Error);
35
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"useroperation.d.ts","sourceRoot":"","sources":["../../../src/errors/useroperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAItC;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACtD;;OAEG;IACM,IAAI,SAA+B;IAC5C;;;;;;OAMG;gBACS,EAAE,EAAE,mBAAmB;CAepC;AAED;;;;;GAKG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IAKnC,OAAO,EAAE,oBAAoB;IAJhD;;;OAGG;gBACgB,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK;CAG/D"}
1
+ {"version":3,"file":"useroperation.d.ts","sourceRoot":"","sources":["../../../src/errors/useroperation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAGtC;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IACtD;;OAEG;IACM,IAAI,SAA+B;IAC5C;;;;;;OAMG;gBACS,EAAE,EAAE,mBAAmB;CAepC;AAED;;;;;GAKG;AACH,qBAAa,yBAA0B,SAAQ,SAAS;IAKnC,OAAO,EAAE,oBAAoB;IAJhD;;;OAGG;gBACgB,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,KAAK;CAG/D"}
@@ -6,12 +6,8 @@ export { EntryPointAbi_v7 } from "./abis/EntryPointAbi_v7.js";
6
6
  export { SimpleAccountAbi_v6 } from "./abis/SimpleAccountAbi_v6.js";
7
7
  export { SimpleAccountAbi_v7 } from "./abis/SimpleAccountAbi_v7.js";
8
8
  export { SimpleAccountFactoryAbi } from "./abis/SimpleAccountFactoryAbi.js";
9
- export { BaseSmartContractAccount } from "./account/base.js";
10
- export { createSimpleSmartAccount } from "./account/simple.js";
11
- export type { SimpleSmartAccount } from "./account/simple.js";
12
9
  export type * from "./account/smartContractAccount.js";
13
10
  export { getAccountAddress, isSmartAccountWithSigner, parseFactoryAddressFromAccountInitCode, toSmartContractAccount, } from "./account/smartContractAccount.js";
14
- export type { BaseSmartAccountParams, SignTypedDataParams, } from "./account/types.js";
15
11
  export { buildUserOperation } from "./actions/smartAccount/buildUserOperation.js";
16
12
  export { buildUserOperationFromTx } from "./actions/smartAccount/buildUserOperationFromTx.js";
17
13
  export { buildUserOperationFromTxs } from "./actions/smartAccount/buildUserOperationFromTxs.js";
@@ -49,6 +45,8 @@ export { defaultFeeEstimator } from "./middleware/defaults/feeEstimator.js";
49
45
  export { defaultGasEstimator } from "./middleware/defaults/gasEstimator.js";
50
46
  export { defaultPaymasterAndData } from "./middleware/defaults/paymasterAndData.js";
51
47
  export { defaultUserOpSigner } from "./middleware/defaults/userOpSigner.js";
48
+ export type * from "./middleware/erc7677middleware.js";
49
+ export { erc7677Middleware } from "./middleware/erc7677middleware.js";
52
50
  export { noopMiddleware } from "./middleware/noopMiddleware.js";
53
51
  export type * from "./middleware/types.js";
54
52
  export { LocalAccountSigner } from "./signer/local-account.js";
@@ -59,5 +57,5 @@ export { WalletClientSigner } from "./signer/wallet-client.js";
59
57
  export { split, type SplitTransportParams } from "./transport/split.js";
60
58
  export type * from "./types.js";
61
59
  export type * from "./utils/index.js";
62
- export { BigNumberishRangeSchema, BigNumberishSchema, ChainSchema, HexSchema, MultiplierSchema, allEqual, applyUserOpFeeOption, applyUserOpOverride, applyUserOpOverrideOrFeeOption, asyncPipe, bigIntMax, bigIntMultiply, bypassPaymasterAndData, bypassPaymasterAndDataEmptyHex, concatPaymasterAndData, deepHexlify, filterUndefined, getDefaultSimpleAccountFactoryAddress, getDefaultUserOperationFeeOptions, isBigNumberish, isMultiplier, isValidRequest, parsePaymasterAndData, pick, resolveProperties, takeBytes, toRecord, } from "./utils/index.js";
60
+ export { BigNumberishRangeSchema, BigNumberishSchema, ChainSchema, HexSchema, MultiplierSchema, allEqual, applyUserOpFeeOption, applyUserOpOverride, applyUserOpOverrideOrFeeOption, asyncPipe, bigIntMax, bigIntMultiply, bypassPaymasterAndData, bypassPaymasterAndDataEmptyHex, concatPaymasterAndData, deepHexlify, filterUndefined, getDefaultUserOperationFeeOptions, isBigNumberish, isMultiplier, isValidRequest, parsePaymasterAndData, pick, resolveProperties, takeBytes, toRecord, } from "./utils/index.js";
63
61
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,GAAG,EAAE,MAAM,SAAS,CAAC;AACnC,YAAY,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE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O,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,mBAAmB,uBAAuB,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC5D,YAAY,EACV,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACxE,mBAAmB,YAAY,CAAC;AAChC,mBAAmB,kBAAkB,CAAC;AACtC,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,QAAQ,EACR,oBAAoB,EACpB,mBAAmB,EACnB,8BAA8B,EAC9B,SAAS,EACT,SAAS,EACT,cAAc,EACd,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,WAAW,EACX,eAAe,EACf,iCAAiC,EACjC,cAAc,EACd,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,IAAI,EACJ,iBAAiB,EACjB,SAAS,EACT,QAAQ,GACT,MAAM,kBAAkB,CAAC"}
@@ -12,12 +12,100 @@ export declare enum LogLevel {
12
12
  export declare class Logger {
13
13
  static logLevel: LogLevel;
14
14
  static logFilter?: string;
15
+ /**
16
+ * Sets the log level for logging purposes.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * import { Logger, LogLevel } from "@aa-sdk/core";
21
+ * Logger.setLogLevel(LogLevel.DEBUG);
22
+ * ```
23
+ *
24
+ * @param {LogLevel} logLevel The desired log level
25
+ */
15
26
  static setLogLevel(logLevel: LogLevel): void;
27
+ /**
28
+ * Sets the log filter pattern.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * import { Logger } from "@aa-sdk/core";
33
+ *
34
+ * Logger.setLogFilter("error");
35
+ * ```
36
+ *
37
+ * @param {string} pattern The pattern to set as the log filter
38
+ */
16
39
  static setLogFilter(pattern: string): void;
40
+ /**
41
+ * Logs an error message to the console if the logging condition is met.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * import { Logger } from "@aa-sdk/core";
46
+ *
47
+ * Logger.error("An error occurred while processing the request");
48
+ * ```
49
+ *
50
+ * @param {string} msg The primary error message to be logged
51
+ * @param {...any[]} args Additional arguments to be logged along with the error message
52
+ */
17
53
  static error(msg: string, ...args: any[]): void;
54
+ /**
55
+ * Logs a warning message if the logging conditions are met.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * import { Logger } from "@aa-sdk/core";
60
+ *
61
+ * Logger.warn("Careful...");
62
+ * ```
63
+ *
64
+ * @param {string} msg The message to log as a warning
65
+ * @param {...any[]} args Additional parameters to log along with the message
66
+ */
18
67
  static warn(msg: string, ...args: any[]): void;
68
+ /**
69
+ * Logs a debug message to the console if the log level allows it.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * import { Logger } from "@aa-sdk/core";
74
+ *
75
+ * Logger.debug("Something is happening");
76
+ * ```
77
+ *
78
+ * @param {string} msg The message to log
79
+ * @param {...any[]} args Additional arguments to pass to the console.debug method
80
+ */
19
81
  static debug(msg: string, ...args: any[]): void;
82
+ /**
83
+ * Logs an informational message to the console if the logging level is set to INFO.
84
+ *
85
+ * @example
86
+ * ```ts
87
+ * import { Logger } from "@aa-sdk/core";
88
+ *
89
+ * Logger.info("Something is happening");
90
+ * ```
91
+ *
92
+ * @param {string} msg the message to log
93
+ * @param {...any[]} args additional arguments to log alongside the message
94
+ */
20
95
  static info(msg: string, ...args: any[]): void;
96
+ /**
97
+ * Logs a message with additional arguments if the logging level permits it.
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * import { Logger } from "@aa-sdk/core";
102
+ *
103
+ * Logger.verbose("Something is happening");
104
+ * ```
105
+ *
106
+ * @param {string} msg The message to log
107
+ * @param {...any[]} args Additional arguments to be logged
108
+ */
21
109
  static verbose(msg: string, ...args: any[]): void;
22
110
  private static shouldLog;
23
111
  }
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,IAAI;IACX,KAAK,IAAI;IACT,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,IAAI;CACT;AAED;;GAEG;AACH,qBAAa,MAAM;IACjB,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAiB;IAC1C,MAAM,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE1B,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,QAAQ;IAIrC,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM;IAInC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMxC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMvC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMxC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMvC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAM1C,OAAO,CAAC,MAAM,CAAC,SAAS;CAMzB"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/logger.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,IAAI;IACX,KAAK,IAAI;IACT,IAAI,IAAI;IACR,IAAI,IAAI;IACR,KAAK,IAAI;IACT,IAAI,IAAI;CACT;AAED;;GAEG;AACH,qBAAa,MAAM;IACjB,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAiB;IAC1C,MAAM,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAE1B;;;;;;;;;;OAUG;IACH,MAAM,CAAC,WAAW,CAAC,QAAQ,EAAE,QAAQ;IAIrC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM;IAInC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMxC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAMvC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE;IAM1C,OAAO,CAAC,MAAM,CAAC,SAAS;CAMzB"}
@@ -15,11 +15,11 @@ export type MiddlewareClient<TTransport extends Transport = Transport, TChain ex
15
15
  ...PublicRpcSchema
16
16
  ], PublicActions & BundlerActions>;
17
17
  /**
18
- * export function that takes in {@link ClientMiddlewareConfig} used during client initiation
18
+ * function that takes in ClientMiddlewareConfig used during client initiation
19
19
  * and returns the middleware actions object that the smart account client extends with
20
20
  *
21
- * @param overrides - {@link ClientMiddlewareConfig} used during client initiation for overriding default middlewares
22
- * @returns middleware actions object
21
+ * @param {ClientMiddlewareConfig} overrides config used during client initiation for overriding default middlewares
22
+ * @returns {(client: MiddlewareClient<TTransport, TChain, TAccount>) => { middleware: ClientMiddleware }} middleware actions object
23
23
  */
24
24
  export declare const middlewareActions: (overrides: ClientMiddlewareConfig) => <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartContractAccount | undefined = SmartContractAccount | undefined>(client: MiddlewareClient<TTransport, TChain, TAccount>) => {
25
25
  middleware: ClientMiddleware;
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/middleware/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAUjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,CAC1B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,oBAAoB,GAAG,SAAS,GAC7C,oBAAoB,GACpB,SAAS,IACX,MAAM,CACR,UAAU,EACV,MAAM,EACN,QAAQ,EACR;IAAC,GAAG,gBAAgB;IAAE,GAAG,eAAe;CAAC,EACzC,aAAa,GAAG,cAAc,CAC/B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,cAChB,sBAAsB,uPAS/B;IAAE,UAAU,EAAE,gBAAgB,CAAA;CA4B/B,CAAC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/middleware/actions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,eAAe,EACpB,KAAK,SAAS,EACf,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC/E,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAMjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,CAC1B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,oBAAoB,GAAG,SAAS,GAC7C,oBAAoB,GACpB,SAAS,IACX,MAAM,CACR,UAAU,EACV,MAAM,EACN,QAAQ,EACR;IAAC,GAAG,gBAAgB;IAAE,GAAG,eAAe;CAAC,EACzC,aAAa,GAAG,cAAc,CAC/B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,cAChB,sBAAsB,uPAS/B;IAAE,UAAU,EAAE,gBAAgB,CAAA;CAY/B,CAAC"}
@@ -5,8 +5,8 @@ import type { ClientMiddlewareFn } from "../types.js";
5
5
  * You can override this middleware with your custom gas estimator middleware
6
6
  * by passing it to the client constructor
7
7
  *
8
- * @param client smart account client instance to apply the middleware to
9
- * @returns middleware execution function used to estimate gas for user operations
8
+ * @param {MiddlewareClient} client smart account client instance to apply the middleware to
9
+ * @returns {ClientMiddlewareFn} middleware execution function used to estimate gas for user operations
10
10
  */
11
11
  export declare const defaultGasEstimator: <C extends MiddlewareClient>(client: C) => ClientMiddlewareFn;
12
12
  //# sourceMappingURL=gasEstimator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gasEstimator.d.ts","sourceRoot":"","sources":["../../../../src/middleware/defaults/gasEstimator.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,SAAS,gBAAgB,EAC3D,MAAM,EAAE,CAAC,KACN,kBA6CF,CAAC"}
1
+ {"version":3,"file":"gasEstimator.d.ts","sourceRoot":"","sources":["../../../../src/middleware/defaults/gasEstimator.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,SAAS,gBAAgB,EAC3D,MAAM,EAAE,CAAC,KACN,kBAgDF,CAAC"}
@@ -0,0 +1,62 @@
1
+ import { type Address, type Chain, type Client, type Hex, type Transport } from "viem";
2
+ import type { ClientMiddlewareConfig } from "../client/types";
3
+ import type { EntryPointVersion } from "../entrypoint/types";
4
+ import type { UserOperationFeeOptions, UserOperationOverrides, UserOperationRequest, UserOperationStruct } from "../types";
5
+ import { type Deferrable } from "../utils/index.js";
6
+ export type Erc7677RpcSchema = [
7
+ {
8
+ Method: "pm_getPaymasterStubData";
9
+ Parameters: [UserOperationRequest, Address, Hex, Record<string, any>];
10
+ ReturnType: {
11
+ sponsor?: {
12
+ name: string;
13
+ icon?: string;
14
+ };
15
+ paymaster?: Address;
16
+ paymasterData?: Hex;
17
+ paymasterVerificationGasLimit?: Hex;
18
+ paymasterPostOpGasLimit?: Hex;
19
+ paymasterAndData?: Hex;
20
+ isFinal?: boolean;
21
+ };
22
+ },
23
+ {
24
+ Method: "pm_getPaymasterData";
25
+ Parameters: [UserOperationRequest, Address, Hex, Record<string, any>];
26
+ ReturnType: {
27
+ paymaster?: Address;
28
+ paymasterData?: Hex;
29
+ paymasterAndData?: Hex;
30
+ };
31
+ }
32
+ ];
33
+ export type Erc7677Client<T extends Transport = Transport> = Client<T, Chain, undefined, Erc7677RpcSchema>;
34
+ export type Erc7677MiddlewareParams<TContext extends Record<string, any> | undefined = Record<string, any> | undefined, TEntryPointVersion extends EntryPointVersion = EntryPointVersion> = {
35
+ context?: ((struct: Deferrable<UserOperationStruct<TEntryPointVersion>>, args: {
36
+ overrides?: UserOperationOverrides<TEntryPointVersion>;
37
+ feeOptions?: UserOperationFeeOptions;
38
+ }) => Promise<TContext>) | TContext;
39
+ };
40
+ /**
41
+ * Middleware function for interacting with ERC-7677 enabled clients. It supports resolving paymaster and data fields for user operations.
42
+ * This middleware assumes that your RPC provider supports the ERC-7677 methods (pm_getPaymasterStubData and pm_getPaymasterData).
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * import { createSmartAccountClient, erc7677Middleware } from "@aa-sdk/core";
47
+ * import { http } from "viem";
48
+ * import { sepolia } from "viem/chains";
49
+ *
50
+ * const client = createSmartAccountClient({
51
+ * transport: http("rpc-url"),
52
+ * chain: sepolia,
53
+ * // this assumes that your RPC provider supports the ERC-7677 methods AND takes no context
54
+ * ...erc7677Middleware(),
55
+ * })
56
+ * ```
57
+ *
58
+ * @param {Erc7677MiddlewareParams<TContext>} params Middleware parameters including context function or object. Context can be resolved dynamically by passing in a function which takes in the context at the time of sending a user op
59
+ * @returns {Pick<ClientMiddlewareConfig, "dummyPaymasterAndData" | "paymasterAndData">} An object containing middleware functions `dummyPaymasterAndData` and `paymasterAndData` for processing user operations with the paymaster data
60
+ */
61
+ export declare function erc7677Middleware<TContext extends Record<string, any> | undefined = Record<string, any> | undefined>(params?: Erc7677MiddlewareParams<TContext>): Pick<ClientMiddlewareConfig, "dummyPaymasterAndData" | "paymasterAndData">;
62
+ //# sourceMappingURL=erc7677middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"erc7677middleware.d.ts","sourceRoot":"","sources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gB,CAAC,EAAE,GAAG,CAAC;SACxB,CAAC;KACH;CACF,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,IAAI,MAAM,CACjE,CAAC,EACD,KAAK,EACL,SAAS,EACT,gBAAgB,CACjB,CAAC;AAEF,MAAM,MAAM,uBAAuB,CACjC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAC5C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,SAAS,EACb,kBAAkB,SAAS,iBAAiB,GAAG,iBAAiB,IAC9D;IACF,OAAO,CAAC,EACJ,CAAC,CACC,MAAM,EAAE,UAAU,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,CAAC,EAC3D,IAAI,EAAE;QACJ,SAAS,CAAC,EAAE,sBAAsB,CAAC,kBAAkB,CAAC,CAAC;QACvD,UAAU,CAAC,EAAE,uBAAuB,CAAC;KACtC,KACE,OAAO,CAAC,QAAQ,CAAC,CAAC,GACvB,QAAQ,CAAC;CACd,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAC5C,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,SAAS,EAEb,MAAM,CAAC,EAAE,uBAAuB,CAAC,QAAQ,CAAC,GACzC,IAAI,CAAC,sBAAsB,EAAE,uBAAuB,GAAG,kBAAkB,CAAC,CAoG5E"}
@@ -1,10 +1,10 @@
1
+ import type { UserOperationContext } from "../actions/smartAccount/types";
1
2
  import type { ClientMiddlewareFn } from "./types";
2
3
  /**
3
4
  * Noop middleware that does nothing and passes the arguments through
4
5
  *
5
- * @async
6
- * @param args the client middleware arguments passed to the middleware
7
- * @returns the arguments passed to the middleware and returned as is without modification
6
+ * @param {Deferrable<UserOperationStruct<TEntryPointVersion>>} args the client middleware arguments passed to the middleware
7
+ * @returns {Promise<Deferrable<UserOperationStruct<TEntryPointVersion>>>} the arguments passed to the middleware and returned as is without modification
8
8
  */
9
- export declare const noopMiddleware: ClientMiddlewareFn;
9
+ export declare const noopMiddleware: ClientMiddlewareFn<UserOperationContext | undefined>;
10
10
  //# sourceMappingURL=noopMiddleware.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"noopMiddleware.d.ts","sourceRoot":"","sources":["../../../src/middleware/noopMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,kBAE5B,CAAC"}
1
+ {"version":3,"file":"noopMiddleware.d.ts","sourceRoot":"","sources":["../../../src/middleware/noopMiddleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,EAAE,kBAAkB,CAC7C,oBAAoB,GAAG,SAAS,CAGjC,CAAC"}
@@ -3,13 +3,14 @@ import type { UserOperationContext } from "../actions/smartAccount/types";
3
3
  import type { UserOperationFeeOptions, UserOperationOverrides, UserOperationStruct } from "../types";
4
4
  import type { Deferrable } from "../utils";
5
5
  import type { MiddlewareClient } from "./actions";
6
- export type ClientMiddlewareFn<TContext extends UserOperationContext | undefined = UserOperationContext | undefined> = <TAccount extends SmartContractAccount, C extends MiddlewareClient, TEntryPointVersion extends GetEntryPointFromAccount<TAccount> = GetEntryPointFromAccount<TAccount>>(struct: Deferrable<UserOperationStruct<TEntryPointVersion>>, args: {
6
+ export type ClientMiddlewareArgs<TAccount extends SmartContractAccount, C extends MiddlewareClient, TContext extends UserOperationContext | undefined = UserOperationContext | undefined, TEntryPointVersion extends GetEntryPointFromAccount<TAccount> = GetEntryPointFromAccount<TAccount>> = {
7
7
  overrides?: UserOperationOverrides<TEntryPointVersion>;
8
8
  context?: TContext;
9
9
  feeOptions?: UserOperationFeeOptions;
10
10
  account: TAccount;
11
11
  client: C;
12
- }) => Promise<Deferrable<UserOperationStruct<TEntryPointVersion>>>;
12
+ };
13
+ export type ClientMiddlewareFn<TContext extends UserOperationContext | undefined = UserOperationContext | undefined> = <TAccount extends SmartContractAccount, C extends MiddlewareClient, TEntryPointVersion extends GetEntryPointFromAccount<TAccount> = GetEntryPointFromAccount<TAccount>>(struct: Deferrable<UserOperationStruct<TEntryPointVersion>>, args: ClientMiddlewareArgs<TAccount, C, TContext, TEntryPointVersion>) => Promise<Deferrable<UserOperationStruct<TEntryPointVersion>>>;
13
14
  export type ClientMiddleware<TContext extends UserOperationContext | undefined = UserOperationContext | undefined> = {
14
15
  dummyPaymasterAndData: ClientMiddlewareFn<TContext>;
15
16
  feeEstimator: ClientMiddlewareFn<TContext>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/middleware/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGlD,MAAM,MAAM,kBAAkB,CAC5B,QAAQ,SAAS,oBAAoB,GAAG,SAAS,GAC7C,oBAAoB,GACpB,SAAS,IACX,CACF,QAAQ,SAAS,oBAAoB,EACrC,CAAC,SAAS,gBAAgB,EAC1B,kBAAkB,SAAS,wBAAwB,CAAC,QAAQ,CAAC,GAAG,wBAAwB,CAAC,QAAQ,CAAC,EAEl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