permissionless 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/_cjs/actions/bundler/chainId.js +11 -0
  3. package/_cjs/actions/bundler/chainId.js.map +1 -0
  4. package/_cjs/actions/bundler/estimateUserOperationGas.js +18 -0
  5. package/_cjs/actions/bundler/estimateUserOperationGas.js.map +1 -0
  6. package/_cjs/actions/bundler/getUserOperationByHash.js +30 -0
  7. package/_cjs/actions/bundler/getUserOperationByHash.js.map +1 -0
  8. package/_cjs/actions/bundler/getUserOperationReceipt.js +48 -0
  9. package/_cjs/actions/bundler/getUserOperationReceipt.js.map +1 -0
  10. package/_cjs/actions/bundler/sendUserOperation.js +13 -0
  11. package/_cjs/actions/bundler/sendUserOperation.js.map +1 -0
  12. package/_cjs/actions/bundler/supportedEntryPoints.js +11 -0
  13. package/_cjs/actions/bundler/supportedEntryPoints.js.map +1 -0
  14. package/_cjs/actions/index.js +18 -11
  15. package/_cjs/actions/index.js.map +1 -1
  16. package/_cjs/actions/pimlico/getUserOperationGasPrice.js +25 -0
  17. package/_cjs/actions/pimlico/getUserOperationGasPrice.js.map +1 -0
  18. package/_cjs/actions/pimlico/getUserOperationStatus.js +11 -0
  19. package/_cjs/actions/pimlico/getUserOperationStatus.js.map +1 -0
  20. package/_cjs/actions/pimlico/sponsorUserOperation.js +18 -0
  21. package/_cjs/actions/pimlico/sponsorUserOperation.js.map +1 -0
  22. package/_cjs/actions/pimlico.js +10 -52
  23. package/_cjs/actions/pimlico.js.map +1 -1
  24. package/_cjs/actions/public/getAccountNonce.js +35 -0
  25. package/_cjs/actions/public/getAccountNonce.js.map +1 -0
  26. package/_cjs/actions/{public.js → public/getSenderAddress.js} +1 -1
  27. package/_cjs/actions/public/getSenderAddress.js.map +1 -0
  28. package/_cjs/actions/stackup/accounts.js +12 -0
  29. package/_cjs/actions/stackup/accounts.js.map +1 -0
  30. package/_cjs/actions/stackup/sponsorUserOperation.js +18 -0
  31. package/_cjs/actions/stackup/sponsorUserOperation.js.map +1 -0
  32. package/_cjs/actions/stackup.js +10 -0
  33. package/_cjs/actions/stackup.js.map +1 -0
  34. package/_cjs/clients/bundler.js +2 -2
  35. package/_cjs/clients/bundler.js.map +1 -1
  36. package/_cjs/clients/decorators/bundler.js +19 -0
  37. package/_cjs/clients/decorators/bundler.js.map +1 -0
  38. package/_cjs/clients/decorators/pimlico.js +16 -0
  39. package/_cjs/clients/decorators/pimlico.js.map +1 -0
  40. package/_cjs/clients/decorators/stackup.js +11 -0
  41. package/_cjs/clients/decorators/stackup.js.map +1 -0
  42. package/_cjs/clients/pimlico.js +4 -4
  43. package/_cjs/clients/pimlico.js.map +1 -1
  44. package/_cjs/clients/stackup.js +18 -0
  45. package/_cjs/clients/stackup.js.map +1 -0
  46. package/_cjs/index.js +24 -4
  47. package/_cjs/index.js.map +1 -1
  48. package/_cjs/types/stackup.js +3 -0
  49. package/_cjs/types/stackup.js.map +1 -0
  50. package/_cjs/utils/getUserOperationHash.js +38 -0
  51. package/_cjs/utils/getUserOperationHash.js.map +1 -0
  52. package/_cjs/utils/index.js +2 -34
  53. package/_cjs/utils/index.js.map +1 -1
  54. package/_esm/actions/bundler/chainId.js +29 -0
  55. package/_esm/actions/bundler/chainId.js.map +1 -0
  56. package/_esm/actions/bundler/estimateUserOperationGas.js +41 -0
  57. package/_esm/actions/bundler/estimateUserOperationGas.js.map +1 -0
  58. package/_esm/actions/bundler/getUserOperationByHash.js +48 -0
  59. package/_esm/actions/bundler/getUserOperationByHash.js.map +1 -0
  60. package/_esm/actions/bundler/getUserOperationReceipt.js +66 -0
  61. package/_esm/actions/bundler/getUserOperationReceipt.js.map +1 -0
  62. package/_esm/actions/bundler/sendUserOperation.js +36 -0
  63. package/_esm/actions/bundler/sendUserOperation.js.map +1 -0
  64. package/_esm/actions/bundler/supportedEntryPoints.js +29 -0
  65. package/_esm/actions/bundler/supportedEntryPoints.js.map +1 -0
  66. package/_esm/actions/index.js +9 -3
  67. package/_esm/actions/index.js.map +1 -1
  68. package/_esm/actions/pimlico/getUserOperationGasPrice.js +42 -0
  69. package/_esm/actions/pimlico/getUserOperationGasPrice.js.map +1 -0
  70. package/_esm/actions/pimlico/getUserOperationStatus.js +29 -0
  71. package/_esm/actions/pimlico/getUserOperationStatus.js.map +1 -0
  72. package/_esm/actions/pimlico/sponsorUserOperation.js +39 -0
  73. package/_esm/actions/pimlico/sponsorUserOperation.js.map +1 -0
  74. package/_esm/actions/pimlico.js +5 -123
  75. package/_esm/actions/pimlico.js.map +1 -1
  76. package/_esm/actions/public/getAccountNonce.js +57 -0
  77. package/_esm/actions/public/getAccountNonce.js.map +1 -0
  78. package/_esm/actions/{public.js → public/getSenderAddress.js} +3 -3
  79. package/_esm/actions/public/getSenderAddress.js.map +1 -0
  80. package/_esm/actions/stackup/accounts.js +30 -0
  81. package/_esm/actions/stackup/accounts.js.map +1 -0
  82. package/_esm/actions/stackup/sponsorUserOperation.js +40 -0
  83. package/_esm/actions/stackup/sponsorUserOperation.js.map +1 -0
  84. package/_esm/actions/stackup.js +5 -0
  85. package/_esm/actions/stackup.js.map +1 -0
  86. package/_esm/clients/bundler.js +1 -1
  87. package/_esm/clients/bundler.js.map +1 -1
  88. package/_esm/clients/decorators/bundler.js +16 -0
  89. package/_esm/clients/decorators/bundler.js.map +1 -0
  90. package/_esm/clients/decorators/pimlico.js +20 -0
  91. package/_esm/clients/decorators/pimlico.js.map +1 -0
  92. package/_esm/clients/decorators/stackup.js +8 -0
  93. package/_esm/clients/decorators/stackup.js.map +1 -0
  94. package/_esm/clients/pimlico.js +2 -2
  95. package/_esm/clients/pimlico.js.map +1 -1
  96. package/_esm/clients/stackup.js +33 -0
  97. package/_esm/clients/stackup.js.map +1 -0
  98. package/_esm/index.js +15 -4
  99. package/_esm/index.js.map +1 -1
  100. package/_esm/types/stackup.js +2 -0
  101. package/_esm/types/stackup.js.map +1 -0
  102. package/_esm/utils/getUserOperationHash.js +55 -0
  103. package/_esm/utils/getUserOperationHash.js.map +1 -0
  104. package/_esm/utils/index.js +1 -54
  105. package/_esm/utils/index.js.map +1 -1
  106. package/_types/actions/bundler/chainId.d.ts +25 -0
  107. package/_types/actions/bundler/chainId.d.ts.map +1 -0
  108. package/_types/actions/bundler/estimateUserOperationGas.d.ts +42 -0
  109. package/_types/actions/bundler/estimateUserOperationGas.d.ts.map +1 -0
  110. package/_types/actions/bundler/getUserOperationByHash.d.ts +37 -0
  111. package/_types/actions/bundler/getUserOperationByHash.d.ts.map +1 -0
  112. package/_types/actions/bundler/getUserOperationReceipt.d.ts +93 -0
  113. package/_types/actions/bundler/getUserOperationReceipt.d.ts.map +1 -0
  114. package/_types/actions/bundler/sendUserOperation.d.ts +36 -0
  115. package/_types/actions/bundler/sendUserOperation.d.ts.map +1 -0
  116. package/_types/actions/bundler/supportedEntryPoints.d.ts +26 -0
  117. package/_types/actions/bundler/supportedEntryPoints.d.ts.map +1 -0
  118. package/_types/actions/index.d.ts +17 -6
  119. package/_types/actions/index.d.ts.map +1 -1
  120. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts +38 -0
  121. package/_types/actions/pimlico/getUserOperationGasPrice.d.ts.map +1 -0
  122. package/_types/actions/pimlico/getUserOperationStatus.d.ts +31 -0
  123. package/_types/actions/pimlico/getUserOperationStatus.d.ts.map +1 -0
  124. package/_types/actions/pimlico/sponsorUserOperation.d.ts +41 -0
  125. package/_types/actions/pimlico/sponsorUserOperation.d.ts.map +1 -0
  126. package/_types/actions/pimlico.d.ts +7 -177
  127. package/_types/actions/pimlico.d.ts.map +1 -1
  128. package/_types/actions/public/getAccountNonce.d.ts +34 -0
  129. package/_types/actions/public/getAccountNonce.d.ts.map +1 -0
  130. package/_types/actions/{public.d.ts → public/getSenderAddress.d.ts} +4 -5
  131. package/_types/actions/public/getSenderAddress.d.ts.map +1 -0
  132. package/_types/actions/stackup/accounts.d.ts +29 -0
  133. package/_types/actions/stackup/accounts.d.ts.map +1 -0
  134. package/_types/actions/stackup/sponsorUserOperation.d.ts +43 -0
  135. package/_types/actions/stackup/sponsorUserOperation.d.ts.map +1 -0
  136. package/_types/actions/stackup.d.ts +7 -0
  137. package/_types/actions/stackup.d.ts.map +1 -0
  138. package/_types/clients/bundler.d.ts +2 -2
  139. package/_types/clients/bundler.d.ts.map +1 -1
  140. package/_types/clients/decorators/bundler.d.ts +150 -0
  141. package/_types/clients/decorators/bundler.d.ts.map +1 -0
  142. package/_types/clients/decorators/pimlico.d.ts +78 -0
  143. package/_types/clients/decorators/pimlico.d.ts.map +1 -0
  144. package/_types/clients/decorators/stackup.d.ts +54 -0
  145. package/_types/clients/decorators/stackup.d.ts.map +1 -0
  146. package/_types/clients/pimlico.d.ts +3 -3
  147. package/_types/clients/pimlico.d.ts.map +1 -1
  148. package/_types/clients/stackup.d.ts +39 -0
  149. package/_types/clients/stackup.d.ts.map +1 -0
  150. package/_types/index.d.ts +26 -4
  151. package/_types/index.d.ts.map +1 -1
  152. package/_types/types/bundler.d.ts +1 -1
  153. package/_types/types/bundler.d.ts.map +1 -1
  154. package/_types/types/index.d.ts +1 -1
  155. package/_types/types/index.d.ts.map +1 -1
  156. package/_types/types/pimlico.d.ts +1 -1
  157. package/_types/types/pimlico.d.ts.map +1 -1
  158. package/_types/types/stackup.d.ts +35 -0
  159. package/_types/types/stackup.d.ts.map +1 -0
  160. package/_types/utils/getUserOperationHash.d.ts +30 -0
  161. package/_types/utils/getUserOperationHash.d.ts.map +1 -0
  162. package/_types/utils/index.d.ts +2 -30
  163. package/_types/utils/index.d.ts.map +1 -1
  164. package/actions/bundler/chainId.ts +32 -0
  165. package/actions/bundler/estimateUserOperationGas.ts +62 -0
  166. package/actions/bundler/getUserOperationByHash.ts +69 -0
  167. package/actions/bundler/getUserOperationReceipt.ts +109 -0
  168. package/actions/bundler/sendUserOperation.ts +45 -0
  169. package/actions/bundler/supportedEntryPoints.ts +31 -0
  170. package/actions/index.ts +23 -21
  171. package/actions/pimlico/getUserOperationGasPrice.ts +61 -0
  172. package/actions/pimlico/getUserOperationStatus.ts +41 -0
  173. package/actions/pimlico/sponsorUserOperation.ts +62 -0
  174. package/actions/pimlico.ts +34 -251
  175. package/actions/public/getAccountNonce.ts +63 -0
  176. package/actions/{public.ts → public/getSenderAddress.ts} +9 -9
  177. package/actions/stackup/accounts.ts +40 -0
  178. package/actions/stackup/sponsorUserOperation.ts +64 -0
  179. package/actions/stackup.ts +17 -0
  180. package/clients/bundler.ts +2 -3
  181. package/clients/decorators/bundler.ts +178 -0
  182. package/clients/decorators/pimlico.ts +107 -0
  183. package/clients/decorators/stackup.ts +65 -0
  184. package/clients/pimlico.ts +3 -4
  185. package/clients/stackup.ts +44 -0
  186. package/index.ts +62 -4
  187. package/package.json +11 -1
  188. package/tsconfig.build.tsbuildinfo +1 -1
  189. package/types/bundler.ts +1 -1
  190. package/types/index.ts +1 -1
  191. package/types/pimlico.ts +1 -1
  192. package/types/stackup.ts +36 -0
  193. package/utils/getUserOperationHash.ts +68 -0
  194. package/utils/index.ts +2 -69
  195. package/_cjs/actions/bundler.js +0 -118
  196. package/_cjs/actions/bundler.js.map +0 -1
  197. package/_cjs/actions/public.js.map +0 -1
  198. package/_cjs/clients/index.js +0 -6
  199. package/_cjs/clients/index.js.map +0 -1
  200. package/_esm/actions/bundler.js +0 -251
  201. package/_esm/actions/bundler.js.map +0 -1
  202. package/_esm/actions/public.js.map +0 -1
  203. package/_esm/clients/index.js +0 -3
  204. package/_esm/clients/index.js.map +0 -1
  205. package/_types/actions/bundler.d.ts +0 -393
  206. package/_types/actions/bundler.d.ts.map +0 -1
  207. package/_types/actions/public.d.ts.map +0 -1
  208. package/_types/clients/index.d.ts +0 -3
  209. package/_types/clients/index.d.ts.map +0 -1
  210. package/actions/bundler.ts +0 -498
  211. package/clients/index.ts +0 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # permissionless
2
2
 
3
+ ## 0.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 6f868d8: Added stackup paymaster actions
8
+ - 37d2171: Made esm build compatible with Node
9
+
10
+ ## 0.0.6
11
+
12
+ ### Patch Changes
13
+
14
+ - 4b625b5: Added getAccountNonce
15
+
3
16
  ## 0.0.5
4
17
 
5
18
  ### Patch Changes
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.chainId = void 0;
4
+ const chainId = async (client) => {
5
+ return Number(await client.request({
6
+ method: "eth_chainId",
7
+ params: []
8
+ }));
9
+ };
10
+ exports.chainId = chainId;
11
+ //# sourceMappingURL=chainId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chainId.js","sourceRoot":"","sources":["../../../actions/bundler/chainId.ts"],"names":[],"mappings":";;;AAwBO,MAAM,OAAO,GAAG,KAAK,EAAE,MAAqB,EAAE,EAAE;IACnD,OAAO,MAAM,CACT,MAAM,MAAM,CAAC,OAAO,CAAC;QACjB,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,EAAE;KACb,CAAC,CACL,CAAA;AACL,CAAC,CAAA;AAPY,QAAA,OAAO,WAOnB"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.estimateUserOperationGas = void 0;
4
+ const utils_js_1 = require("../utils.js");
5
+ const estimateUserOperationGas = async (client, args) => {
6
+ const { userOperation, entryPoint } = args;
7
+ const response = await client.request({
8
+ method: "eth_estimateUserOperationGas",
9
+ params: [(0, utils_js_1.deepHexlify)(userOperation), entryPoint]
10
+ });
11
+ return {
12
+ preVerificationGas: BigInt(response.preVerificationGas || 0),
13
+ verificationGasLimit: BigInt(response.verificationGasLimit || 0),
14
+ callGasLimit: BigInt(response.callGasLimit || 0)
15
+ };
16
+ };
17
+ exports.estimateUserOperationGas = estimateUserOperationGas;
18
+ //# sourceMappingURL=estimateUserOperationGas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimateUserOperationGas.js","sourceRoot":"","sources":["../../../actions/bundler/estimateUserOperationGas.ts"],"names":[],"mappings":";;;AAKA,0CAAyC;AAwClC,MAAM,wBAAwB,GAAG,KAAK,EACzC,MAAqB,EACrB,IAAwC,EACG,EAAE;IAC7C,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IAE1C,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,8BAA8B;QACtC,MAAM,EAAE,CAAC,IAAA,sBAAW,EAAC,aAAa,CAAiC,EAAE,UAAqB,CAAC;KAC9F,CAAC,CAAA;IAEF,OAAO;QACH,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,IAAI,CAAC,CAAC;QAC5D,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,oBAAoB,IAAI,CAAC,CAAC;QAChE,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,IAAI,CAAC,CAAC;KACnD,CAAA;AACL,CAAC,CAAA;AAhBY,QAAA,wBAAwB,4BAgBpC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserOperationByHash = void 0;
4
+ const getUserOperationByHash = async (client, { hash }) => {
5
+ const params = [hash];
6
+ const response = await client.request({
7
+ method: "eth_getUserOperationByHash",
8
+ params
9
+ });
10
+ if (!response)
11
+ return null;
12
+ const { userOperation, entryPoint, transactionHash, blockHash, blockNumber } = response;
13
+ return {
14
+ userOperation: {
15
+ ...userOperation,
16
+ nonce: BigInt(userOperation.nonce),
17
+ callGasLimit: BigInt(userOperation.callGasLimit),
18
+ verificationGasLimit: BigInt(userOperation.verificationGasLimit),
19
+ preVerificationGas: BigInt(userOperation.preVerificationGas),
20
+ maxFeePerGas: BigInt(userOperation.maxFeePerGas),
21
+ maxPriorityFeePerGas: BigInt(userOperation.maxPriorityFeePerGas)
22
+ },
23
+ entryPoint: entryPoint,
24
+ transactionHash: transactionHash,
25
+ blockHash: blockHash,
26
+ blockNumber: BigInt(blockNumber)
27
+ };
28
+ };
29
+ exports.getUserOperationByHash = getUserOperationByHash;
30
+ //# sourceMappingURL=getUserOperationByHash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationByHash.js","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationByHash.ts"],"names":[],"mappings":";;;AAsCO,MAAM,sBAAsB,GAAG,KAAK,EACvC,MAAqB,EACrB,EAAE,IAAI,EAAoC,EACD,EAAE;IAC3C,MAAM,MAAM,GAAW,CAAC,IAAI,CAAC,CAAA;IAE7B,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,4BAA4B;QACpC,MAAM;KACT,CAAC,CAAA;IAEF,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAA;IAE1B,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAA;IAEvF,OAAO;QACH,aAAa,EAAE;YACX,GAAG,aAAa;YAChB,KAAK,EAAE,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC;YAClC,YAAY,EAAE,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC;YAChD,oBAAoB,EAAE,MAAM,CAAC,aAAa,CAAC,oBAAoB,CAAC;YAChE,kBAAkB,EAAE,MAAM,CAAC,aAAa,CAAC,kBAAkB,CAAC;YAC5D,YAAY,EAAE,MAAM,CAAC,aAAa,CAAC,YAAY,CAAC;YAChD,oBAAoB,EAAE,MAAM,CAAC,aAAa,CAAC,oBAAoB,CAAC;SAClD;QAClB,UAAU,EAAE,UAAU;QACtB,eAAe,EAAE,eAAe;QAChC,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC;KACnC,CAAA;AACL,CAAC,CAAA;AA9BY,QAAA,sBAAsB,0BA8BlC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserOperationReceipt = void 0;
4
+ const utils_js_1 = require("../utils.js");
5
+ const getUserOperationReceipt = async (client, { hash }) => {
6
+ const params = [hash];
7
+ const response = await client.request({
8
+ method: "eth_getUserOperationReceipt",
9
+ params
10
+ });
11
+ if (!response)
12
+ return null;
13
+ const userOperationReceipt = {
14
+ userOpHash: response.userOpHash,
15
+ sender: response.sender,
16
+ nonce: BigInt(response.nonce),
17
+ actualGasUsed: BigInt(response.actualGasUsed),
18
+ actualGasCost: BigInt(response.actualGasCost),
19
+ success: response.success,
20
+ receipt: {
21
+ transactionHash: response.receipt.transactionHash,
22
+ transactionIndex: BigInt(response.receipt.transactionIndex),
23
+ blockHash: response.receipt.blockHash,
24
+ blockNumber: BigInt(response.receipt.blockNumber),
25
+ from: response.receipt.from,
26
+ to: response.receipt.to,
27
+ cumulativeGasUsed: BigInt(response.receipt.cumulativeGasUsed),
28
+ status: utils_js_1.transactionReceiptStatus[response.receipt.status],
29
+ gasUsed: BigInt(response.receipt.gasUsed),
30
+ contractAddress: response.receipt.contractAddress,
31
+ logsBloom: response.receipt.logsBloom,
32
+ effectiveGasPrice: BigInt(response.receipt.effectiveGasPrice)
33
+ },
34
+ logs: response.logs.map((log) => ({
35
+ data: log.data,
36
+ blockNumber: BigInt(log.blockNumber),
37
+ blockHash: log.blockHash,
38
+ transactionHash: log.transactionHash,
39
+ logIndex: BigInt(log.logIndex),
40
+ transactionIndex: BigInt(log.transactionIndex),
41
+ address: log.address,
42
+ topics: log.topics
43
+ }))
44
+ };
45
+ return userOperationReceipt;
46
+ };
47
+ exports.getUserOperationReceipt = getUserOperationReceipt;
48
+ //# sourceMappingURL=getUserOperationReceipt.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationReceipt.js","sourceRoot":"","sources":["../../../actions/bundler/getUserOperationReceipt.ts"],"names":[],"mappings":";;;AAGA,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YACjD,SAAS,EAAE,QAAQ,CAAC,OAAO,CAAC,SAAS;YACrC,iBAAiB,EAAE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC;SAChE;QACD,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YAC9B,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC;YACpC,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,eAAe,EAAE,GAAG,CAAC,eAAe;YACpC,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;YAC9B,gBAAgB,EAAE,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC;YAC9C,OAAO,EAAE,GAAG,CAAC,OAAO;YACpB,MAAM,EAAE,GAAG,CAAC,MAAM;SACrB,CAAC,CAAC;KACN,CAAA;IAED,OAAO,oBAAoB,CAAA;AAC/B,CAAC,CAAA;AA5CY,QAAA,uBAAuB,2BA4CnC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sendUserOperation = void 0;
4
+ const utils_js_1 = require("../utils.js");
5
+ const sendUserOperation = async (client, args) => {
6
+ const { userOperation, entryPoint } = args;
7
+ return client.request({
8
+ method: "eth_sendUserOperation",
9
+ params: [(0, utils_js_1.deepHexlify)(userOperation), entryPoint]
10
+ });
11
+ };
12
+ exports.sendUserOperation = sendUserOperation;
13
+ //# sourceMappingURL=sendUserOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendUserOperation.js","sourceRoot":"","sources":["../../../actions/bundler/sendUserOperation.ts"],"names":[],"mappings":";;;AAGA,0CAAyC;AAkClC,MAAM,iBAAiB,GAAG,KAAK,EAAE,MAAqB,EAAE,IAAiC,EAAiB,EAAE;IAC/G,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;IAE1C,OAAO,MAAM,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EAAE,CAAC,IAAA,sBAAW,EAAC,aAAa,CAAiC,EAAE,UAAqB,CAAC;KAC9F,CAAC,CAAA;AACN,CAAC,CAAA;AAPY,QAAA,iBAAiB,qBAO7B"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.supportedEntryPoints = void 0;
4
+ const supportedEntryPoints = async (client) => {
5
+ return client.request({
6
+ method: "eth_supportedEntryPoints",
7
+ params: []
8
+ });
9
+ };
10
+ exports.supportedEntryPoints = supportedEntryPoints;
11
+ //# sourceMappingURL=supportedEntryPoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"supportedEntryPoints.js","sourceRoot":"","sources":["../../../actions/bundler/supportedEntryPoints.ts"],"names":[],"mappings":";;;AAyBO,MAAM,oBAAoB,GAAG,KAAK,EAAE,MAAqB,EAAsB,EAAE;IACpF,OAAO,MAAM,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,0BAA0B;QAClC,MAAM,EAAE,EAAE;KACb,CAAC,CAAA;AACN,CAAC,CAAA;AALY,QAAA,oBAAoB,wBAKhC"}
@@ -1,14 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSenderAddress = exports.getUserOperationReceipt = exports.getUserOperationByHash = exports.chainId = exports.supportedEntryPoints = exports.estimateUserOperationGas = exports.sendUserOperation = exports.bundlerActions = void 0;
4
- const bundler_1 = require("./bundler");
5
- Object.defineProperty(exports, "bundlerActions", { enumerable: true, get: function () { return bundler_1.bundlerActions; } });
6
- Object.defineProperty(exports, "chainId", { enumerable: true, get: function () { return bundler_1.chainId; } });
7
- Object.defineProperty(exports, "estimateUserOperationGas", { enumerable: true, get: function () { return bundler_1.estimateUserOperationGas; } });
8
- Object.defineProperty(exports, "getUserOperationByHash", { enumerable: true, get: function () { return bundler_1.getUserOperationByHash; } });
9
- Object.defineProperty(exports, "getUserOperationReceipt", { enumerable: true, get: function () { return bundler_1.getUserOperationReceipt; } });
10
- Object.defineProperty(exports, "sendUserOperation", { enumerable: true, get: function () { return bundler_1.sendUserOperation; } });
11
- Object.defineProperty(exports, "supportedEntryPoints", { enumerable: true, get: function () { return bundler_1.supportedEntryPoints; } });
12
- const public_1 = require("./public");
13
- Object.defineProperty(exports, "getSenderAddress", { enumerable: true, get: function () { return public_1.getSenderAddress; } });
3
+ exports.InvalidEntryPointError = exports.getAccountNonce = exports.getSenderAddress = exports.getUserOperationReceipt = exports.getUserOperationByHash = exports.chainId = exports.supportedEntryPoints = exports.estimateUserOperationGas = exports.sendUserOperation = void 0;
4
+ const getSenderAddress_js_1 = require("./public/getSenderAddress.js");
5
+ Object.defineProperty(exports, "InvalidEntryPointError", { enumerable: true, get: function () { return getSenderAddress_js_1.InvalidEntryPointError; } });
6
+ Object.defineProperty(exports, "getSenderAddress", { enumerable: true, get: function () { return getSenderAddress_js_1.getSenderAddress; } });
7
+ const chainId_js_1 = require("./bundler/chainId.js");
8
+ Object.defineProperty(exports, "chainId", { enumerable: true, get: function () { return chainId_js_1.chainId; } });
9
+ const estimateUserOperationGas_js_1 = require("./bundler/estimateUserOperationGas.js");
10
+ Object.defineProperty(exports, "estimateUserOperationGas", { enumerable: true, get: function () { return estimateUserOperationGas_js_1.estimateUserOperationGas; } });
11
+ const getUserOperationByHash_js_1 = require("./bundler/getUserOperationByHash.js");
12
+ Object.defineProperty(exports, "getUserOperationByHash", { enumerable: true, get: function () { return getUserOperationByHash_js_1.getUserOperationByHash; } });
13
+ const getUserOperationReceipt_js_1 = require("./bundler/getUserOperationReceipt.js");
14
+ Object.defineProperty(exports, "getUserOperationReceipt", { enumerable: true, get: function () { return getUserOperationReceipt_js_1.getUserOperationReceipt; } });
15
+ const sendUserOperation_js_1 = require("./bundler/sendUserOperation.js");
16
+ Object.defineProperty(exports, "sendUserOperation", { enumerable: true, get: function () { return sendUserOperation_js_1.sendUserOperation; } });
17
+ const supportedEntryPoints_js_1 = require("./bundler/supportedEntryPoints.js");
18
+ Object.defineProperty(exports, "supportedEntryPoints", { enumerable: true, get: function () { return supportedEntryPoints_js_1.supportedEntryPoints; } });
19
+ const getAccountNonce_js_1 = require("./public/getAccountNonce.js");
20
+ Object.defineProperty(exports, "getAccountNonce", { enumerable: true, get: function () { return getAccountNonce_js_1.getAccountNonce; } });
14
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":";;;AAUA,uCAQkB;AAkBd,+FAzBA,wBAAc,OAyBA;AAId,wFA5BA,iBAAO,OA4BA;AAFP,yGAzBA,kCAAwB,OAyBA;AAGxB,uGA3BA,gCAAsB,OA2BA;AACtB,wGA3BA,iCAAuB,OA2BA;AALvB,kGArBA,2BAAiB,OAqBA;AAEjB,qGAtBA,8BAAoB,OAsBA;AAjBxB,qCAA2C;AAqBvC,iGArBK,yBAAgB,OAqBL"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":";;;AAaA,sEAAuF;AAgCnF,uGAhCK,4CAAsB,OAgCL;AAFtB,iGA9B6B,sCAAgB,OA8B7B;AA5BpB,qDAA8C;AAyB1C,wFAzBK,oBAAO,OAyBL;AAxBX,uFAAgF;AAsB5E,yGAtBK,sDAAwB,OAsBL;AArB5B,mFAA4E;AAwBxE,uGAxBK,kDAAsB,OAwBL;AAvB1B,qFAA8E;AAwB1E,wGAxBK,oDAAuB,OAwBL;AAvB3B,yEAAkE;AAkB9D,kGAlBK,wCAAiB,OAkBL;AAjBrB,+EAAwE;AAmBpE,qGAnBK,8CAAoB,OAmBL;AAjBxB,oEAA6D;AAsBzD,gGAtBK,oCAAe,OAsBL"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserOperationGasPrice = void 0;
4
+ const getUserOperationGasPrice = async (client) => {
5
+ const gasPrices = await client.request({
6
+ method: "pimlico_getUserOperationGasPrice",
7
+ params: []
8
+ });
9
+ return {
10
+ slow: {
11
+ maxFeePerGas: BigInt(gasPrices.slow.maxFeePerGas),
12
+ maxPriorityFeePerGas: BigInt(gasPrices.slow.maxPriorityFeePerGas)
13
+ },
14
+ standard: {
15
+ maxFeePerGas: BigInt(gasPrices.standard.maxFeePerGas),
16
+ maxPriorityFeePerGas: BigInt(gasPrices.standard.maxPriorityFeePerGas)
17
+ },
18
+ fast: {
19
+ maxFeePerGas: BigInt(gasPrices.fast.maxFeePerGas),
20
+ maxPriorityFeePerGas: BigInt(gasPrices.fast.maxPriorityFeePerGas)
21
+ }
22
+ };
23
+ };
24
+ exports.getUserOperationGasPrice = getUserOperationGasPrice;
25
+ //# sourceMappingURL=getUserOperationGasPrice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationGasPrice.js","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationGasPrice.ts"],"names":[],"mappings":";;;AAsCO,MAAM,wBAAwB,GAAG,KAAK,EACzC,MAA4B,EACe,EAAE;IAC7C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QACnC,MAAM,EAAE,kCAAkC;QAC1C,MAAM,EAAE,EAAE;KACb,CAAC,CAAA;IAEF,OAAO;QACH,IAAI,EAAE;YACF,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YACjD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC;SACpE;QACD,QAAQ,EAAE;YACN,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC;YACrD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC;SACxE;QACD,IAAI,EAAE;YACF,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YACjD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC;SACpE;KACJ,CAAA;AACL,CAAC,CAAA;AAtBY,QAAA,wBAAwB,4BAsBpC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getUserOperationStatus = void 0;
4
+ const getUserOperationStatus = async (client, { hash }) => {
5
+ return client.request({
6
+ method: "pimlico_getUserOperationStatus",
7
+ params: [hash]
8
+ });
9
+ };
10
+ exports.getUserOperationStatus = getUserOperationStatus;
11
+ //# sourceMappingURL=getUserOperationStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getUserOperationStatus.js","sourceRoot":"","sources":["../../../actions/pimlico/getUserOperationStatus.ts"],"names":[],"mappings":";;;AAgCO,MAAM,sBAAsB,GAAG,KAAK,EACvC,MAA4B,EAC5B,EAAE,IAAI,EAAoC,EACD,EAAE;IAC3C,OAAO,MAAM,CAAC,OAAO,CAAC;QAClB,MAAM,EAAE,gCAAgC;QACxC,MAAM,EAAE,CAAC,IAAI,CAAC;KACjB,CAAC,CAAA;AACN,CAAC,CAAA;AARY,QAAA,sBAAsB,0BAQlC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sponsorUserOperation = void 0;
4
+ const utils_js_1 = require("../utils.js");
5
+ const sponsorUserOperation = async (client, args) => {
6
+ const response = await client.request({
7
+ method: "pm_sponsorUserOperation",
8
+ params: [(0, utils_js_1.deepHexlify)(args.userOperation), args.entryPoint]
9
+ });
10
+ return {
11
+ paymasterAndData: response.paymasterAndData,
12
+ preVerificationGas: BigInt(response.preVerificationGas),
13
+ verificationGasLimit: BigInt(response.verificationGasLimit),
14
+ callGasLimit: BigInt(response.callGasLimit)
15
+ };
16
+ };
17
+ exports.sponsorUserOperation = sponsorUserOperation;
18
+ //# sourceMappingURL=sponsorUserOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sponsorUserOperation.js","sourceRoot":"","sources":["../../../actions/pimlico/sponsorUserOperation.ts"],"names":[],"mappings":";;;AAIA,0CAAyC;AA0ClC,MAAM,oBAAoB,GAAG,KAAK,EACrC,MAA8B,EAC9B,IAAoC,EACG,EAAE;IACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,yBAAyB;QACjC,MAAM,EAAE,CAAC,IAAA,sBAAW,EAAC,IAAI,CAAC,aAAa,CAAiC,EAAE,IAAI,CAAC,UAAU,CAAC;KAC7F,CAAC,CAAA;IAEF,OAAO;QACH,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;QAC3C,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QACvD,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QAC3D,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;KAC9C,CAAA;AACL,CAAC,CAAA;AAfY,QAAA,oBAAoB,wBAehC"}
@@ -1,55 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pimlicoPaymasterActions = exports.sponsorUserOperation = exports.pimlicoBundlerActions = exports.getUserOperationStatus = exports.getUserOperationGasPrice = void 0;
4
- const utils_1 = require("./utils");
5
- const getUserOperationGasPrice = async (client) => {
6
- const gasPrices = await client.request({
7
- method: "pimlico_getUserOperationGasPrice",
8
- params: []
9
- });
10
- return {
11
- slow: {
12
- maxFeePerGas: BigInt(gasPrices.slow.maxFeePerGas),
13
- maxPriorityFeePerGas: BigInt(gasPrices.slow.maxPriorityFeePerGas)
14
- },
15
- standard: {
16
- maxFeePerGas: BigInt(gasPrices.standard.maxFeePerGas),
17
- maxPriorityFeePerGas: BigInt(gasPrices.standard.maxPriorityFeePerGas)
18
- },
19
- fast: {
20
- maxFeePerGas: BigInt(gasPrices.fast.maxFeePerGas),
21
- maxPriorityFeePerGas: BigInt(gasPrices.fast.maxPriorityFeePerGas)
22
- }
23
- };
24
- };
25
- exports.getUserOperationGasPrice = getUserOperationGasPrice;
26
- const getUserOperationStatus = async (client, { hash }) => {
27
- return client.request({
28
- method: "pimlico_getUserOperationStatus",
29
- params: [hash]
30
- });
31
- };
32
- exports.getUserOperationStatus = getUserOperationStatus;
33
- const pimlicoBundlerActions = (client) => ({
34
- getUserOperationGasPrice: async () => (0, exports.getUserOperationGasPrice)(client),
35
- getUserOperationStatus: async (args) => (0, exports.getUserOperationStatus)(client, args)
36
- });
37
- exports.pimlicoBundlerActions = pimlicoBundlerActions;
38
- const sponsorUserOperation = async (client, args) => {
39
- const response = await client.request({
40
- method: "pm_sponsorUserOperation",
41
- params: [(0, utils_1.deepHexlify)(args.userOperation), args.entryPoint]
42
- });
43
- return {
44
- paymasterAndData: response.paymasterAndData,
45
- preVerificationGas: BigInt(response.preVerificationGas),
46
- verificationGasLimit: BigInt(response.verificationGasLimit),
47
- callGasLimit: BigInt(response.callGasLimit)
48
- };
49
- };
50
- exports.sponsorUserOperation = sponsorUserOperation;
51
- const pimlicoPaymasterActions = (client) => ({
52
- sponsorUserOperation: async (args) => (0, exports.sponsorUserOperation)(client, args)
53
- });
54
- exports.pimlicoPaymasterActions = pimlicoPaymasterActions;
3
+ exports.pimlicoPaymasterActions = exports.pimlicoBundlerActions = exports.sponsorUserOperation = exports.getUserOperationStatus = exports.getUserOperationGasPrice = void 0;
4
+ const getUserOperationGasPrice_js_1 = require("./pimlico/getUserOperationGasPrice.js");
5
+ Object.defineProperty(exports, "getUserOperationGasPrice", { enumerable: true, get: function () { return getUserOperationGasPrice_js_1.getUserOperationGasPrice; } });
6
+ const getUserOperationStatus_js_1 = require("./pimlico/getUserOperationStatus.js");
7
+ Object.defineProperty(exports, "getUserOperationStatus", { enumerable: true, get: function () { return getUserOperationStatus_js_1.getUserOperationStatus; } });
8
+ const sponsorUserOperation_js_1 = require("./pimlico/sponsorUserOperation.js");
9
+ Object.defineProperty(exports, "sponsorUserOperation", { enumerable: true, get: function () { return sponsorUserOperation_js_1.sponsorUserOperation; } });
10
+ const pimlico_js_1 = require("../clients/decorators/pimlico.js");
11
+ Object.defineProperty(exports, "pimlicoBundlerActions", { enumerable: true, get: function () { return pimlico_js_1.pimlicoBundlerActions; } });
12
+ Object.defineProperty(exports, "pimlicoPaymasterActions", { enumerable: true, get: function () { return pimlico_js_1.pimlicoPaymasterActions; } });
55
13
  //# sourceMappingURL=pimlico.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":";;;AAKA,mCAAqC;AA2D9B,MAAM,wBAAwB,GAAG,KAAK,EACzC,MAA4B,EACe,EAAE;IAC7C,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QACnC,MAAM,EAAE,kCAAkC;QAC1C,MAAM,EAAE,EAAE;KACb,CAAC,CAAA;IAEF,OAAO;QACH,IAAI,EAAE;YACF,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YACjD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC;SACpE;QACD,QAAQ,EAAE;YACN,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC;YACrD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,oBAAoB,CAAC;SACxE;QACD,IAAI,EAAE;YACF,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC;YACjD,oBAAoB,EAAE,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC;SACpE;KACJ,CAAA;AACL,CAAC,CAAA;AAtBY,QAAA,wBAAwB,4BAsBpC;AAwBM,MAAM,sBA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AgC,EAAE,IAAI,CAAC;CACnE,CAAC,CAAA;AAHW,QAAA,uBAAuB,2BAGlC"}
1
+ {"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../actions/pimlico.ts"],"names":[],"mappings":";;;AAAA,uFAG8C;AA0B1C,yGA3BA,sDAAwB,OA2BA;AAzB5B,mFAI4C;AAsBxC,uGAvBA,kDAAsB,OAuBA;AArB1B,+EAI0C;AAkBtC,qGAnBA,8CAAoB,OAmBA;AAfxB,iEAAiG;AAgB7F,sGAhBK,kCAAqB,OAgBL;AACrB,wGAjB4B,oCAAuB,OAiB5B"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAccountNonce = void 0;
4
+ const getAccountNonce = async (publicClient, { sender, entryPoint, key = BigInt(0) }) => {
5
+ return await publicClient.readContract({
6
+ address: entryPoint,
7
+ abi: [
8
+ {
9
+ inputs: [
10
+ {
11
+ name: "sender",
12
+ type: "address"
13
+ },
14
+ {
15
+ name: "key",
16
+ type: "uint192"
17
+ }
18
+ ],
19
+ name: "getNonce",
20
+ outputs: [
21
+ {
22
+ name: "nonce",
23
+ type: "uint256"
24
+ }
25
+ ],
26
+ stateMutability: "view",
27
+ type: "function"
28
+ }
29
+ ],
30
+ functionName: "getNonce",
31
+ args: [sender, key]
32
+ });
33
+ };
34
+ exports.getAccountNonce = getAccountNonce;
35
+ //# sourceMappingURL=getAccountNonce.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAccountNonce.js","sourceRoot":"","sources":["../../../actions/public/getAccountNonce.ts"],"names":[],"mappings":";;;AA8BO,MAAM,eAAe,GAAG,KAAK,EAChC,YAA0B,EAC1B,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAyB,EAC/C,EAAE;IACjB,OAAO,MAAM,YAAY,CAAC,YAAY,CAAC;QACnC,OAAO,EAAE,UAAU;QACnB,GAAG,EAAE;YACD;gBACI,MAAM,EAAE;oBACJ;wBACI,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,SAAS;qBAClB;oBACD;wBACI,IAAI,EAAE,KAAK;wBACX,IAAI,EAAE,SAAS;qBAClB;iBACJ;gBACD,IAAI,EAAE,UAAU;gBAChB,OAAO,EAAE;oBACL;wBACI,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,SAAS;qBAClB;iBACJ;gBACD,eAAe,EAAE,MAAM;gBACvB,IAAI,EAAE,UAAU;aACnB;SACJ;QACD,YAAY,EAAE,UAAU;QACxB,IAAI,EAAE,CAAC,MAAM,EAAE,GAAG,CAAC;KACtB,CAAC,CAAA;AACN,CAAC,CAAA;AAhCY,QAAA,eAAe,mBAgC3B"}
@@ -64,4 +64,4 @@ const getSenderAddress = async (publicClient, { initCode, entryPoint }) => {
64
64
  throw new InvalidEntryPointError({ entryPoint });
65
65
  };
66
66
  exports.getSenderAddress = getSenderAddress;
67
- //# sourceMappingURL=public.js.map
67
+ //# sourceMappingURL=getSenderAddress.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getSenderAddress.js","sourceRoot":"","sources":["../../../actions/public/getSenderAddress.ts"],"names":[],"mappings":";;;AAAA,+BAOa;AAIb,MAAa,sBAAuB,SAAQ,gBAAS;IAGjD,YAAY,EAAE,KAAK,EAAE,UAAU,KAAkD,EAAE;QAC/E,KAAK,CACD,0CACI,UAAU,CAAC,CAAC,CAAC,MAAM,UAAU,EAAE,CAAC,CAAC,CAAC,EACtC,iGAAiG,EACjG;YACI,KAAK;SACR,CACJ,CAAA;QAVI;;;;mBAAO,wBAAwB;WAAA;IAWxC,CAAC;CACJ;AAbD,wDAaC;AA4BM,MAAM,gBAAgB,GAAG,KAAK,EACjC,YAA0B,EAC1B,EAAE,QAAQ,EAAE,UAAU,EAA0B,EAChC,EAAE;IAClB,IAAI;QACA,MAAM,YAAY,CAAC,gBAAgB,CAAC;YAChC,OAAO,EAAE,UAAU;YACnB,GAAG,EAAE;gBACD;oBACI,MAAM,EAAE;wBACJ;4BACI,YAAY,EAAE,SAAS;4BACvB,IAAI,EAAE,QAAQ;4BACd,IAAI,EAAE,SAAS;yBAClB;qBACJ;oBACD,IAAI,EAAE,qBAAqB;oBAC3B,IAAI,EAAE,OAAO;iBAChB;gBACD;oBACI,MAAM,EAAE;wBACJ;4BACI,YAAY,EAAE,OAAO;4BACrB,IAAI,EAAE,UAAU;4BAChB,IAAI,EAAE,OAAO;yBAChB;qBACJ;oBACD,IAAI,EAAE,kBAAkB;oBACxB,OAAO,EAAE,EAAE;oBACX,eAAe,EAAE,YAAY;oBAC7B,IAAI,EAAE,UAAU;iBACnB;aACJ;YACD,YAAY,EAAE,kBAAkB;YAChC,IAAI,EAAE,CAAC,QAAQ,CAAC;SACnB,CAAC,CAAA;KACL;IAAC,OAAO,CAAC,EAAE;QACR,MAAM,GAAG,GAAG,CAAuC,CAAA;QAEnD,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,KAAK,+BAA+B,EAAE;YACpD,MAAM,WAAW,GAAG,GAAG,CAAC,KAA0C,CAAA;YAClE,MAAM,SAAS,GAAG,WAAW,CAAC,IAAI,EAAE,SAAS,IAAI,EAAE,CAAA;YACnD,IAAI,SAAS,KAAK,qBAAqB,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,IAAI,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE;gBAC5F,OAAO,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAY,CAAA;aAC9C;SACJ;QAED,MAAM,CAAC,CAAA;KACV;IAED,MAAM,IAAI,sBAAsB,CAAC,EAAE,UAAU,EAAE,CAAC,CAAA;AACpD,CAAC,CAAA;AAnDY,QAAA,gBAAgB,oBAmD5B"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.accounts = void 0;
4
+ const accounts = async (client, { entryPoint }) => {
5
+ const response = await client.request({
6
+ method: "pm_accounts",
7
+ params: [entryPoint]
8
+ });
9
+ return response;
10
+ };
11
+ exports.accounts = accounts;
12
+ //# sourceMappingURL=accounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts.js","sourceRoot":"","sources":["../../../actions/stackup/accounts.ts"],"names":[],"mappings":";;;AA6BO,MAAM,QAAQ,GAAG,KAAK,EACzB,MAA8B,EAC9B,EAAE,UAAU,EAAsB,EAChB,EAAE;IACpB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,CAAC,UAAU,CAAC;KACvB,CAAC,CAAA;IAEF,OAAO,QAAQ,CAAA;AACnB,CAAC,CAAA;AAVY,QAAA,QAAQ,YAUpB"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.sponsorUserOperation = void 0;
4
+ const utils_js_1 = require("../utils.js");
5
+ const sponsorUserOperation = async (client, args) => {
6
+ const response = await client.request({
7
+ method: "pm_sponsorUserOperation",
8
+ params: [(0, utils_js_1.deepHexlify)(args.userOperation), args.entryPoint, args.context]
9
+ });
10
+ return {
11
+ paymasterAndData: response.paymasterAndData,
12
+ preVerificationGas: BigInt(response.preVerificationGas),
13
+ verificationGasLimit: BigInt(response.verificationGasLimit),
14
+ callGasLimit: BigInt(response.callGasLimit)
15
+ };
16
+ };
17
+ exports.sponsorUserOperation = sponsorUserOperation;
18
+ //# sourceMappingURL=sponsorUserOperation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sponsorUserOperation.js","sourceRoot":"","sources":["../../../actions/stackup/sponsorUserOperation.ts"],"names":[],"mappings":";;;AAKA,0CAAyC;AA2ClC,MAAM,oBAAoB,GAAG,KAAK,EACrC,MAA8B,EAC9B,IAAoC,EACG,EAAE;IACzC,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;QAClC,MAAM,EAAE,yBAAyB;QACjC,MAAM,EAAE,CAAC,IAAA,sBAAW,EAAC,IAAI,CAAC,aAAa,CAAiC,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC;KAC3G,CAAC,CAAA;IAEF,OAAO;QACH,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;QAC3C,kBAAkB,EAAE,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC;QACvD,oBAAoB,EAAE,MAAM,CAAC,QAAQ,CAAC,oBAAoB,CAAC;QAC3D,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;KAC9C,CAAA;AACL,CAAC,CAAA;AAfY,QAAA,oBAAoB,wBAehC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stackupPaymasterActions = exports.accounts = exports.sponsorUserOperation = void 0;
4
+ const stackup_js_1 = require("../clients/decorators/stackup.js");
5
+ Object.defineProperty(exports, "stackupPaymasterActions", { enumerable: true, get: function () { return stackup_js_1.stackupPaymasterActions; } });
6
+ const accounts_js_1 = require("./stackup/accounts.js");
7
+ Object.defineProperty(exports, "accounts", { enumerable: true, get: function () { return accounts_js_1.accounts; } });
8
+ const sponsorUserOperation_js_1 = require("./stackup/sponsorUserOperation.js");
9
+ Object.defineProperty(exports, "sponsorUserOperation", { enumerable: true, get: function () { return sponsorUserOperation_js_1.sponsorUserOperation; } });
10
+ //# sourceMappingURL=stackup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stackup.js","sourceRoot":"","sources":["../../actions/stackup.ts"],"names":[],"mappings":";;;AACA,iEAA0E;AAejC,wGAfhC,oCAAuB,OAegC;AAdhE,uDAAyE;AAc1C,yFAdG,sBAAQ,OAcH;AAbvC,+EAI0C;AASjC,qGAVL,8CAAoB,OAUK"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createBundlerClient = void 0;
4
4
  const viem_1 = require("viem");
5
- const actions_1 = require("../actions");
5
+ const bundler_js_1 = require("./decorators/bundler.js");
6
6
  const createBundlerClient = (parameters) => {
7
7
  const { key = "public", name = "Bundler Client" } = parameters;
8
8
  const client = (0, viem_1.createClient)({
@@ -11,7 +11,7 @@ const createBundlerClient = (parameters) => {
11
11
  name,
12
12
  type: "bundlerClient"
13
13
  });
14
- return client.extend(actions_1.bundlerActions);
14
+ return client.extend(bundler_js_1.bundlerActions);
15
15
  };
16
16
  exports.createBundlerClient = createBundlerClient;
17
17
  //# sourceMappingURL=bundler.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../clients/bundler.ts"],"names":[],"mappings":";;;AACA,+BAAmC;AACnC,wCAA2C;AAwBpC,MAAM,mBAAmB,GAAG,CAC/B,UAAgD,EACnC,EAAE;IACf,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,gBAAgB,EAAE,GAAG,UAAU,CAAA;IAC9D,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,eAAe;KACxB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,wBAAc,CAAC,CAAA;AACxC,CAAC,CAAA;AAXY,QAAA,mBAAmB,uBAW/B"}
1
+ {"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../clients/bundler.ts"],"names":[],"mappings":";;;AACA,+BAAmC;AAEnC,wDAA6E;AAsBtE,MAAM,mBAAmB,GAAG,CAC/B,UAAgD,EACnC,EAAE;IACf,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,gBAAgB,EAAE,GAAG,UAAU,CAAA;IAC9D,MAAM,MAAM,GAAG,IAAA,mBAAY,EAAC;QACxB,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,eAAe;KACxB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,2BAAc,CAAC,CAAA;AACxC,CAAC,CAAA;AAXY,QAAA,mBAAmB,uBAW/B"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.bundlerActions = void 0;
4
+ const chainId_js_1 = require("../../actions/bundler/chainId.js");
5
+ const estimateUserOperationGas_js_1 = require("../../actions/bundler/estimateUserOperationGas.js");
6
+ const getUserOperationByHash_js_1 = require("../../actions/bundler/getUserOperationByHash.js");
7
+ const getUserOperationReceipt_js_1 = require("../../actions/bundler/getUserOperationReceipt.js");
8
+ const sendUserOperation_js_1 = require("../../actions/bundler/sendUserOperation.js");
9
+ const supportedEntryPoints_js_1 = require("../../actions/bundler/supportedEntryPoints.js");
10
+ const bundlerActions = (client) => ({
11
+ sendUserOperation: async (args) => (0, sendUserOperation_js_1.sendUserOperation)(client, args),
12
+ estimateUserOperationGas: (args) => (0, estimateUserOperationGas_js_1.estimateUserOperationGas)(client, args),
13
+ supportedEntryPoints: () => (0, supportedEntryPoints_js_1.supportedEntryPoints)(client),
14
+ chainId: () => (0, chainId_js_1.chainId)(client),
15
+ getUserOperationByHash: (args) => (0, getUserOperationByHash_js_1.getUserOperationByHash)(client, args),
16
+ getUserOperationReceipt: (args) => (0, getUserOperationReceipt_js_1.getUserOperationReceipt)(client, args)
17
+ });
18
+ exports.bundlerActions = bundlerActions;
19
+ //# sourceMappingURL=bundler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundler.js","sourceRoot":"","sources":["../../../clients/decorators/bundler.ts"],"names":[],"mappings":";;;AAEA,iEAA0D;AAC1D,mGAI0D;AAC1D,+FAIwD;AACxD,iGAIyD;AACzD,qFAAgH;AAChH,2FAAoF;AAiJpF,MAAM,cAAc,GAAG,CAAC,MAAc,EAAkB,EAAE,CAAC,CAAC;IACxD,iBAAiB,EAAE,KAAK,EAAE,IAAiC,EAAiB,EAAE,CAC1E,IAAA,wCAAiB,EAAC,MAAuB,EAAE,IAAI,CAAC;IACpD,wBAAwB,EAAE,CAAC,IAAwC,EAAE,EAAE,CACnE,IAAA,sDAAwB,EAAC,MAAuB,EAAE,IAAI,CAAC;IAC3D,oBAAoB,EAAE,GAAuB,EAAE,CAAC,IAAA,8CAAoB,EAAC,MAAuB,CAAC;IAC7F,OAAO,EAAE,GAAG,EAAE,CAAC,IAAA,oBAAO,EAAC,MAAuB,CAAC;IAC/C,sBAAsB,EAAE,CAAC,IAAsC,EAAE,EAAE,CAC/D,IAAA,kDAAsB,EAAC,MAAuB,EAAE,IAAI,CAAC;IACzD,uBAAuB,EAAE,CAAC,IAAuC,EAAE,EAAE,CACjE,IAAA,oDAAuB,EAAC,MAAuB,EAAE,IAAI,CAAC;CAC7D,CAAC,CAAA;AAEO,wCAAc"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pimlicoPaymasterActions = exports.pimlicoBundlerActions = void 0;
4
+ const getUserOperationGasPrice_js_1 = require("../../actions/pimlico/getUserOperationGasPrice.js");
5
+ const getUserOperationStatus_js_1 = require("../../actions/pimlico/getUserOperationStatus.js");
6
+ const sponsorUserOperation_js_1 = require("../../actions/pimlico/sponsorUserOperation.js");
7
+ const pimlicoBundlerActions = (client) => ({
8
+ getUserOperationGasPrice: async () => (0, getUserOperationGasPrice_js_1.getUserOperationGasPrice)(client),
9
+ getUserOperationStatus: async (args) => (0, getUserOperationStatus_js_1.getUserOperationStatus)(client, args)
10
+ });
11
+ exports.pimlicoBundlerActions = pimlicoBundlerActions;
12
+ const pimlicoPaymasterActions = (client) => ({
13
+ sponsorUserOperation: async (args) => (0, sponsorUserOperation_js_1.sponsorUserOperation)(client, args)
14
+ });
15
+ exports.pimlicoPaymasterActions = pimlicoPaymasterActions;
16
+ //# sourceMappingURL=pimlico.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../../clients/decorators/pimlico.ts"],"names":[],"mappings":";;;AACA,mGAG0D;AAC1D,+FAIwD;AACxD,2FAIsD;AA8C/C,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAyB,EAAE,CAAC,CAAC;IAC7E,wBAAwB,EAAE,KAAK,IAAI,EAAE,CAAC,IAAA,sDAAwB,EAAC,MAA8B,CAAC;IAC9F,sBAAsB,EAAE,KAAK,EAAE,IAAsC,EAAE,EAAE,CACrE,IAAA,kDAAsB,EAAC,MAA8B,EAAE,IAAI,CAAC;CACnE,CAAC,CAAA;AAJW,QAAA,qBAAqB,yBAIhC;AA6BK,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAiC,EAAE,CAAC,CAAC;IACvF,oBAAoB,EAAE,KAAK,EAAE,IAAoC,EAAE,EAAE,CACjE,IAAA,8CAAoB,EAAC,MAAgC,EAAE,IAAI,CAAC;CACnE,CAAC,CAAA;AAHW,QAAA,uBAAuB,2BAGlC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.stackupPaymasterActions = void 0;
4
+ const accounts_js_1 = require("../../actions/stackup/accounts.js");
5
+ const sponsorUserOperation_js_1 = require("../../actions/stackup/sponsorUserOperation.js");
6
+ const stackupPaymasterActions = (client) => ({
7
+ sponsorUserOperation: async (args) => (0, sponsorUserOperation_js_1.sponsorUserOperation)(client, args),
8
+ accounts: async (args) => (0, accounts_js_1.accounts)(client, args)
9
+ });
10
+ exports.stackupPaymasterActions = stackupPaymasterActions;
11
+ //# sourceMappingURL=stackup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stackup.js","sourceRoot":"","sources":["../../../clients/decorators/stackup.ts"],"names":[],"mappings":";;;AACA,mEAAqF;AACrF,2FAIsD;AAsD/C,MAAM,uBAAuB,GAAG,CAAC,MAAc,EAAiC,EAAE,CAAC,CAAC;IACvF,oBAAoB,EAAE,KAAK,EAAE,IAAoC,EAAE,EAAE,CACjE,IAAA,8CAAoB,EAAC,MAAgC,EAAE,IAAI,CAAC;IAChE,QAAQ,EAAE,KAAK,EAAE,IAAwB,EAAE,EAAE,CAAC,IAAA,sBAAQ,EAAC,MAAgC,EAAE,IAAI,CAAC;CACjG,CAAC,CAAA;AAJW,QAAA,uBAAuB,2BAIlC"}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPimlicoPaymasterClient = exports.createPimlicoBundlerClient = void 0;
4
4
  const viem_1 = require("viem");
5
- const actions_1 = require("../actions");
6
- const pimlico_1 = require("../actions/pimlico");
5
+ const bundler_js_1 = require("./decorators/bundler.js");
6
+ const pimlico_js_1 = require("./decorators/pimlico.js");
7
7
  const createPimlicoBundlerClient = (parameters) => {
8
8
  const { key = "public", name = "Pimlico Bundler Client" } = parameters;
9
9
  const client = (0, viem_1.createClient)({
@@ -12,7 +12,7 @@ const createPimlicoBundlerClient = (parameters) => {
12
12
  name,
13
13
  type: "pimlicoBundlerClient"
14
14
  });
15
- return client.extend(actions_1.bundlerActions).extend(pimlico_1.pimlicoBundlerActions);
15
+ return client.extend(bundler_js_1.bundlerActions).extend(pimlico_js_1.pimlicoBundlerActions);
16
16
  };
17
17
  exports.createPimlicoBundlerClient = createPimlicoBundlerClient;
18
18
  const createPimlicoPaymasterClient = (parameters) => {
@@ -23,7 +23,7 @@ const createPimlicoPaymasterClient = (parameters) => {
23
23
  name,
24
24
  type: "pimlicoPaymasterClient"
25
25
  });
26
- return client.extend(pimlico_1.pimlicoPaymasterActions);
26
+ return client.extend(pimlico_js_1.pimlicoPaymasterActions);
27
27
  };
28
28
  exports.createPimlicoPaymasterClient = createPimlicoPaymasterClient;
29
29
  //# sourceMappingURL=pimlico.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pimlico.js","sourceRoot":"","sources":["../../clients/pimlico.ts"],"names":[],"mappings":";;;AACA,+BAAmC;AACnC,wCAA2C;AAE3C,gDAK2B;AAsCpB,MAAM,0BAA0B,GAAG,CACtC,UAAgD,EAC5B,EAAE;IACtB,MAAM,EA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