@pimlico/alto 0.0.0-main.20250214T151652 → 0.0.0-main.20250225T152738

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 (197) hide show
  1. package/esm/cli/config/bundler.d.ts +6 -0
  2. package/esm/cli/config/bundler.js +1 -0
  3. package/esm/cli/config/bundler.js.map +1 -1
  4. package/esm/cli/config/options.js +5 -0
  5. package/esm/cli/config/options.js.map +1 -1
  6. package/esm/cli/setupServer.js +4 -4
  7. package/esm/cli/setupServer.js.map +1 -1
  8. package/esm/executor/executorManager.d.ts +9 -9
  9. package/esm/handlers/gasPriceManager.js +6 -0
  10. package/esm/handlers/gasPriceManager.js.map +1 -1
  11. package/esm/mempool/index.d.ts +1 -0
  12. package/esm/mempool/index.js +1 -0
  13. package/esm/mempool/index.js.map +1 -1
  14. package/esm/{rpc → mempool}/nonceQueuer.d.ts +1 -1
  15. package/esm/mempool/nonceQueuer.js.map +1 -0
  16. package/esm/mempool/reputationManager.d.ts +3 -2
  17. package/esm/mempool/reputationManager.js.map +1 -1
  18. package/esm/rpc/createMethodHandler.d.ts +31 -0
  19. package/esm/rpc/createMethodHandler.js +30 -0
  20. package/esm/rpc/createMethodHandler.js.map +1 -0
  21. package/esm/rpc/index.d.ts +0 -1
  22. package/esm/rpc/index.js +0 -1
  23. package/esm/rpc/index.js.map +1 -1
  24. package/esm/rpc/methods/debug_bundler_clearReputation.d.ts +22 -0
  25. package/esm/rpc/methods/debug_bundler_clearReputation.js +12 -0
  26. package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -0
  27. package/esm/rpc/methods/debug_bundler_clearState.d.ts +22 -0
  28. package/esm/rpc/methods/debug_bundler_clearState.js +13 -0
  29. package/esm/rpc/methods/debug_bundler_clearState.js.map +1 -0
  30. package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +468 -0
  31. package/esm/rpc/methods/debug_bundler_dumpMempool.js +13 -0
  32. package/esm/rpc/methods/debug_bundler_dumpMempool.js.map +1 -0
  33. package/esm/rpc/methods/debug_bundler_dumpReputation.d.ts +57 -0
  34. package/esm/rpc/methods/debug_bundler_dumpReputation.js +13 -0
  35. package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -0
  36. package/esm/rpc/methods/debug_bundler_getStakeStatus.d.ts +79 -0
  37. package/esm/rpc/methods/debug_bundler_getStakeStatus.js +14 -0
  38. package/esm/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -0
  39. package/esm/rpc/methods/debug_bundler_sendBundleNow.d.ts +22 -0
  40. package/esm/rpc/methods/debug_bundler_sendBundleNow.js +12 -0
  41. package/esm/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -0
  42. package/esm/rpc/methods/debug_bundler_setBundlingMode.d.ts +22 -0
  43. package/esm/rpc/methods/debug_bundler_setBundlingMode.js +13 -0
  44. package/esm/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -0
  45. package/esm/rpc/methods/debug_bundler_setReputation.d.ts +46 -0
  46. package/esm/rpc/methods/debug_bundler_setReputation.js +13 -0
  47. package/esm/rpc/methods/debug_bundler_setReputation.js.map +1 -0
  48. package/esm/rpc/methods/eth_chainId.d.ts +22 -0
  49. package/esm/rpc/methods/eth_chainId.js +10 -0
  50. package/esm/rpc/methods/eth_chainId.js.map +1 -0
  51. package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +979 -0
  52. package/esm/rpc/methods/eth_estimateUserOperationGas.js +18 -0
  53. package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -0
  54. package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +878 -0
  55. package/esm/rpc/methods/eth_getUserOperationByHash.js +98 -0
  56. package/esm/rpc/methods/eth_getUserOperationByHash.js.map +1 -0
  57. package/esm/rpc/methods/eth_getUserOperationReceipt.d.ts +412 -0
  58. package/esm/rpc/methods/eth_getUserOperationReceipt.js +11 -0
  59. package/esm/rpc/methods/eth_getUserOperationReceipt.js.map +1 -0
  60. package/esm/rpc/methods/eth_sendUserOperation.d.ts +422 -0
  61. package/esm/rpc/methods/eth_sendUserOperation.js +30 -0
  62. package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -0
  63. package/esm/rpc/methods/eth_supportedEntryPoints.d.ts +22 -0
  64. package/esm/rpc/methods/eth_supportedEntryPoints.js +10 -0
  65. package/esm/rpc/methods/eth_supportedEntryPoints.js.map +1 -0
  66. package/esm/rpc/methods/index.d.ts +3 -0
  67. package/esm/rpc/methods/index.js +45 -0
  68. package/esm/rpc/methods/index.js.map +1 -0
  69. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +979 -0
  70. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +20 -0
  71. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -0
  72. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +422 -0
  73. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js +16 -0
  74. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -0
  75. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +131 -0
  76. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js +30 -0
  77. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -0
  78. package/esm/rpc/methods/pimlico_getUserOperationStatus.d.ts +43 -0
  79. package/esm/rpc/methods/pimlico_getUserOperationStatus.js +11 -0
  80. package/esm/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -0
  81. package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +812 -0
  82. package/esm/rpc/methods/pimlico_sendUserOperationNow.js +41 -0
  83. package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -0
  84. package/esm/rpc/rpcHandler.d.ts +13 -104
  85. package/esm/rpc/rpcHandler.js +34 -373
  86. package/esm/rpc/rpcHandler.js.map +1 -1
  87. package/esm/rpc/server.d.ts +2 -2
  88. package/esm/rpc/server.js +1 -1
  89. package/esm/rpc/server.js.map +1 -1
  90. package/esm/rpc/validation/TracerResultParserV07.js +5 -5
  91. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
  92. package/esm/types/schemas.d.ts +9368 -3502
  93. package/esm/types/schemas.js +213 -273
  94. package/esm/types/schemas.js.map +1 -1
  95. package/esm/utils/userop.d.ts +9 -9
  96. package/esm/utils/userop.js.map +1 -1
  97. package/lib/cli/config/bundler.d.ts +6 -0
  98. package/lib/cli/config/bundler.js +1 -0
  99. package/lib/cli/config/bundler.js.map +1 -1
  100. package/lib/cli/config/options.js +5 -0
  101. package/lib/cli/config/options.js.map +1 -1
  102. package/lib/cli/setupServer.js +3 -3
  103. package/lib/cli/setupServer.js.map +1 -1
  104. package/lib/executor/executorManager.d.ts +9 -9
  105. package/lib/handlers/gasPriceManager.js +6 -0
  106. package/lib/handlers/gasPriceManager.js.map +1 -1
  107. package/lib/mempool/index.d.ts +1 -0
  108. package/lib/mempool/index.js +1 -0
  109. package/lib/mempool/index.js.map +1 -1
  110. package/lib/{rpc → mempool}/nonceQueuer.d.ts +1 -1
  111. package/lib/mempool/nonceQueuer.js.map +1 -0
  112. package/lib/mempool/reputationManager.d.ts +3 -2
  113. package/lib/mempool/reputationManager.js.map +1 -1
  114. package/lib/rpc/createMethodHandler.d.ts +31 -0
  115. package/lib/rpc/createMethodHandler.js +34 -0
  116. package/lib/rpc/createMethodHandler.js.map +1 -0
  117. package/lib/rpc/index.d.ts +0 -1
  118. package/lib/rpc/index.js +0 -1
  119. package/lib/rpc/index.js.map +1 -1
  120. package/lib/rpc/methods/debug_bundler_clearReputation.d.ts +22 -0
  121. package/lib/rpc/methods/debug_bundler_clearReputation.js +15 -0
  122. package/lib/rpc/methods/debug_bundler_clearReputation.js.map +1 -0
  123. package/lib/rpc/methods/debug_bundler_clearState.d.ts +22 -0
  124. package/lib/rpc/methods/debug_bundler_clearState.js +16 -0
  125. package/lib/rpc/methods/debug_bundler_clearState.js.map +1 -0
  126. package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +468 -0
  127. package/lib/rpc/methods/debug_bundler_dumpMempool.js +16 -0
  128. package/lib/rpc/methods/debug_bundler_dumpMempool.js.map +1 -0
  129. package/lib/rpc/methods/debug_bundler_dumpReputation.d.ts +57 -0
  130. package/lib/rpc/methods/debug_bundler_dumpReputation.js +16 -0
  131. package/lib/rpc/methods/debug_bundler_dumpReputation.js.map +1 -0
  132. package/lib/rpc/methods/debug_bundler_getStakeStatus.d.ts +79 -0
  133. package/lib/rpc/methods/debug_bundler_getStakeStatus.js +17 -0
  134. package/lib/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -0
  135. package/lib/rpc/methods/debug_bundler_sendBundleNow.d.ts +22 -0
  136. package/lib/rpc/methods/debug_bundler_sendBundleNow.js +15 -0
  137. package/lib/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -0
  138. package/lib/rpc/methods/debug_bundler_setBundlingMode.d.ts +22 -0
  139. package/lib/rpc/methods/debug_bundler_setBundlingMode.js +16 -0
  140. package/lib/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -0
  141. package/lib/rpc/methods/debug_bundler_setReputation.d.ts +46 -0
  142. package/lib/rpc/methods/debug_bundler_setReputation.js +16 -0
  143. package/lib/rpc/methods/debug_bundler_setReputation.js.map +1 -0
  144. package/lib/rpc/methods/eth_chainId.d.ts +22 -0
  145. package/lib/rpc/methods/eth_chainId.js +13 -0
  146. package/lib/rpc/methods/eth_chainId.js.map +1 -0
  147. package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +979 -0
  148. package/lib/rpc/methods/eth_estimateUserOperationGas.js +21 -0
  149. package/lib/rpc/methods/eth_estimateUserOperationGas.js.map +1 -0
  150. package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +878 -0
  151. package/lib/rpc/methods/eth_getUserOperationByHash.js +101 -0
  152. package/lib/rpc/methods/eth_getUserOperationByHash.js.map +1 -0
  153. package/lib/rpc/methods/eth_getUserOperationReceipt.d.ts +412 -0
  154. package/lib/rpc/methods/eth_getUserOperationReceipt.js +14 -0
  155. package/lib/rpc/methods/eth_getUserOperationReceipt.js.map +1 -0
  156. package/lib/rpc/methods/eth_sendUserOperation.d.ts +422 -0
  157. package/lib/rpc/methods/eth_sendUserOperation.js +33 -0
  158. package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -0
  159. package/lib/rpc/methods/eth_supportedEntryPoints.d.ts +22 -0
  160. package/lib/rpc/methods/eth_supportedEntryPoints.js +13 -0
  161. package/lib/rpc/methods/eth_supportedEntryPoints.js.map +1 -0
  162. package/lib/rpc/methods/index.d.ts +3 -0
  163. package/lib/rpc/methods/index.js +49 -0
  164. package/lib/rpc/methods/index.js.map +1 -0
  165. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +979 -0
  166. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +23 -0
  167. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -0
  168. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +422 -0
  169. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js +19 -0
  170. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -0
  171. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +131 -0
  172. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js +33 -0
  173. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -0
  174. package/lib/rpc/methods/pimlico_getUserOperationStatus.d.ts +43 -0
  175. package/lib/rpc/methods/pimlico_getUserOperationStatus.js +14 -0
  176. package/lib/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -0
  177. package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +812 -0
  178. package/lib/rpc/methods/pimlico_sendUserOperationNow.js +44 -0
  179. package/lib/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -0
  180. package/lib/rpc/rpcHandler.d.ts +13 -104
  181. package/lib/rpc/rpcHandler.js +31 -370
  182. package/lib/rpc/rpcHandler.js.map +1 -1
  183. package/lib/rpc/server.d.ts +2 -2
  184. package/lib/rpc/server.js +1 -1
  185. package/lib/rpc/server.js.map +1 -1
  186. package/lib/rpc/validation/TracerResultParserV07.js +4 -4
  187. package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
  188. package/lib/types/schemas.d.ts +9368 -3502
  189. package/lib/types/schemas.js +261 -348
  190. package/lib/types/schemas.js.map +1 -1
  191. package/lib/utils/userop.d.ts +9 -9
  192. package/lib/utils/userop.js.map +1 -1
  193. package/package.json +2 -1
  194. package/esm/rpc/nonceQueuer.js.map +0 -1
  195. package/lib/rpc/nonceQueuer.js.map +0 -1
  196. /package/esm/{rpc → mempool}/nonceQueuer.js +0 -0
  197. /package/lib/{rpc → mempool}/nonceQueuer.js +0 -0
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.experimentalEstimateUserOperationGas7702Handler = void 0;
4
+ const createMethodHandler_1 = require("../createMethodHandler.js");
5
+ const types_1 = require("../../types/index.js");
6
+ exports.experimentalEstimateUserOperationGas7702Handler = (0, createMethodHandler_1.createMethodHandler)({
7
+ method: "pimlico_experimental_estimateUserOperationGas7702",
8
+ schema: types_1.pimlicoExperimentalEstimateUserOperationGas7702Schema,
9
+ handler: async ({ apiVersion, rpcHandler, params }) => {
10
+ rpcHandler.ensureExperimentalEndpointsAreEnabled("pimlico_experimental_estimateUserOperationGas7702");
11
+ const userOperation = params[0];
12
+ const entryPoint = params[1];
13
+ const stateOverrides = params[2];
14
+ await rpcHandler.validateEip7702Auth(userOperation);
15
+ return await rpcHandler.estimateGas({
16
+ apiVersion,
17
+ userOperation,
18
+ entryPoint,
19
+ stateOverrides
20
+ });
21
+ }
22
+ });
23
+ //# sourceMappingURL=pimlico_experimental_estimateUserOperationGas7702.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pimlico_experimental_estimateUserOperationGas7702.js","sourceRoot":"","sources":["../../../rpc/methods/pimlico_experimental_estimateUserOperationGas7702.ts"],"names":[],"mappings":";;;AAAA,gEAA4D;AAC5D,uCAAmF;AAEtE,QAAA,+CAA+C,GACxD,IAAA,yCAAmB,EAAC;IAChB,MAAM,EAAE,mDAAmD;IAC3D,MAAM,EAAE,6DAAqD;IAC7D,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QAClD,UAAU,CAAC,qCAAqC,CAC5C,mDAAmD,CACtD,CAAA;QAED,MAAM,aAAa,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAC/B,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAC5B,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;QAEhC,MAAM,UAAU,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA;QAEnD,OAAO,MAAM,UAAU,CAAC,WAAW,CAAC;YAChC,UAAU;YACV,aAAa;YACb,UAAU;YACV,cAAc;SACjB,CAAC,CAAA;IACN,CAAC;CACJ,CAAC,CAAA"}
@@ -0,0 +1,422 @@
1
+ export declare const experimentalSendUserOperation7702Handler: {
2
+ schema: import("zod").ZodObject<{
3
+ method: import("zod").ZodLiteral<"pimlico_experimental_sendUserOperation7702">;
4
+ params: import("zod").ZodTuple<[import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodObject<{
5
+ sender: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
6
+ nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
7
+ initCode: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
8
+ callData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
9
+ callGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
10
+ verificationGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
11
+ preVerificationGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
12
+ maxPriorityFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
13
+ maxFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
14
+ paymasterAndData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
15
+ signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
16
+ eip7702auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
17
+ contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
18
+ chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
19
+ nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
20
+ r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
21
+ s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
22
+ v: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
23
+ yParity: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
24
+ }, "strip", import("zod").ZodTypeAny, {
25
+ nonce: number;
26
+ contractAddress: `0x${string}`;
27
+ chainId: number;
28
+ r: `0x${string}`;
29
+ s: `0x${string}`;
30
+ v: bigint;
31
+ yParity: number;
32
+ }, {
33
+ nonce: string | number | bigint;
34
+ contractAddress: string;
35
+ chainId: string | number | bigint;
36
+ r: string;
37
+ s: string;
38
+ v: string | number | bigint;
39
+ yParity: string | number | bigint;
40
+ }>>>;
41
+ }, "strict", import("zod").ZodTypeAny, {
42
+ sender: `0x${string}`;
43
+ nonce: bigint;
44
+ initCode: `0x${string}`;
45
+ paymasterAndData: `0x${string}`;
46
+ callData: `0x${string}`;
47
+ callGasLimit: bigint;
48
+ verificationGasLimit: bigint;
49
+ preVerificationGas: bigint;
50
+ maxFeePerGas: bigint;
51
+ maxPriorityFeePerGas: bigint;
52
+ signature: `0x${string}`;
53
+ eip7702auth?: {
54
+ nonce: number;
55
+ contractAddress: `0x${string}`;
56
+ chainId: number;
57
+ r: `0x${string}`;
58
+ s: `0x${string}`;
59
+ v: bigint;
60
+ yParity: number;
61
+ } | null | undefined;
62
+ }, {
63
+ sender: string;
64
+ nonce: string | number | bigint;
65
+ initCode: string;
66
+ paymasterAndData: string;
67
+ callData: string;
68
+ callGasLimit: string | number | bigint;
69
+ verificationGasLimit: string | number | bigint;
70
+ preVerificationGas: string | number | bigint;
71
+ maxFeePerGas: string | number | bigint;
72
+ maxPriorityFeePerGas: string | number | bigint;
73
+ signature: string;
74
+ eip7702auth?: {
75
+ nonce: string | number | bigint;
76
+ contractAddress: string;
77
+ chainId: string | number | bigint;
78
+ r: string;
79
+ s: string;
80
+ v: string | number | bigint;
81
+ yParity: string | number | bigint;
82
+ } | null | undefined;
83
+ }>, {
84
+ sender: `0x${string}`;
85
+ nonce: bigint;
86
+ initCode: `0x${string}`;
87
+ paymasterAndData: `0x${string}`;
88
+ callData: `0x${string}`;
89
+ callGasLimit: bigint;
90
+ verificationGasLimit: bigint;
91
+ preVerificationGas: bigint;
92
+ maxFeePerGas: bigint;
93
+ maxPriorityFeePerGas: bigint;
94
+ signature: `0x${string}`;
95
+ eip7702auth?: {
96
+ nonce: number;
97
+ contractAddress: `0x${string}`;
98
+ chainId: number;
99
+ r: `0x${string}`;
100
+ s: `0x${string}`;
101
+ v: bigint;
102
+ yParity: number;
103
+ } | null | undefined;
104
+ }, {
105
+ sender: string;
106
+ nonce: string | number | bigint;
107
+ initCode: string;
108
+ paymasterAndData: string;
109
+ callData: string;
110
+ callGasLimit: string | number | bigint;
111
+ verificationGasLimit: string | number | bigint;
112
+ preVerificationGas: string | number | bigint;
113
+ maxFeePerGas: string | number | bigint;
114
+ maxPriorityFeePerGas: string | number | bigint;
115
+ signature: string;
116
+ eip7702auth?: {
117
+ nonce: string | number | bigint;
118
+ contractAddress: string;
119
+ chainId: string | number | bigint;
120
+ r: string;
121
+ s: string;
122
+ v: string | number | bigint;
123
+ yParity: string | number | bigint;
124
+ } | null | undefined;
125
+ }>, import("zod").ZodEffects<import("zod").ZodObject<{
126
+ sender: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
127
+ nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
128
+ factory: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
129
+ factoryData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
130
+ callData: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
131
+ callGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
132
+ verificationGasLimit: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
133
+ preVerificationGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
134
+ maxFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
135
+ maxPriorityFeePerGas: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
136
+ paymaster: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
137
+ paymasterVerificationGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
138
+ paymasterPostOpGasLimit: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>>>, bigint | null, string | number | bigint | null | undefined>;
139
+ paymasterData: import("zod").ZodEffects<import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>>>, `0x${string}` | null, string | null | undefined>;
140
+ signature: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
141
+ eip7702auth: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
142
+ contractAddress: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
143
+ chainId: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
144
+ nonce: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
145
+ r: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
146
+ s: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>, `0x${string}`, string>;
147
+ v: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>;
148
+ yParity: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodUnion<[import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber]>, import("zod").ZodBigInt]>, bigint, string | number | bigint>, bigint, string | number | bigint>, number, string | number | bigint>;
149
+ }, "strip", import("zod").ZodTypeAny, {
150
+ nonce: number;
151
+ contractAddress: `0x${string}`;
152
+ chainId: number;
153
+ r: `0x${string}`;
154
+ s: `0x${string}`;
155
+ v: bigint;
156
+ yParity: number;
157
+ }, {
158
+ nonce: string | number | bigint;
159
+ contractAddress: string;
160
+ chainId: string | number | bigint;
161
+ r: string;
162
+ s: string;
163
+ v: string | number | bigint;
164
+ yParity: string | number | bigint;
165
+ }>>>;
166
+ }, "strict", import("zod").ZodTypeAny, {
167
+ sender: `0x${string}`;
168
+ factory: `0x${string}` | null;
169
+ paymaster: `0x${string}` | null;
170
+ nonce: bigint;
171
+ callData: `0x${string}`;
172
+ callGasLimit: bigint;
173
+ verificationGasLimit: bigint;
174
+ preVerificationGas: bigint;
175
+ maxFeePerGas: bigint;
176
+ maxPriorityFeePerGas: bigint;
177
+ signature: `0x${string}`;
178
+ paymasterVerificationGasLimit: bigint | null;
179
+ paymasterPostOpGasLimit: bigint | null;
180
+ factoryData: `0x${string}` | null;
181
+ paymasterData: `0x${string}` | null;
182
+ eip7702auth?: {
183
+ nonce: number;
184
+ contractAddress: `0x${string}`;
185
+ chainId: number;
186
+ r: `0x${string}`;
187
+ s: `0x${string}`;
188
+ v: bigint;
189
+ yParity: number;
190
+ } | null | undefined;
191
+ }, {
192
+ sender: string;
193
+ nonce: string | number | bigint;
194
+ callData: string;
195
+ callGasLimit: string | number | bigint;
196
+ verificationGasLimit: string | number | bigint;
197
+ preVerificationGas: string | number | bigint;
198
+ maxFeePerGas: string | number | bigint;
199
+ maxPriorityFeePerGas: string | number | bigint;
200
+ signature: string;
201
+ factory?: string | null | undefined;
202
+ factoryData?: string | null | undefined;
203
+ paymaster?: string | null | undefined;
204
+ paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
205
+ paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
206
+ paymasterData?: string | null | undefined;
207
+ eip7702auth?: {
208
+ nonce: string | number | bigint;
209
+ contractAddress: string;
210
+ chainId: string | number | bigint;
211
+ r: string;
212
+ s: string;
213
+ v: string | number | bigint;
214
+ yParity: string | number | bigint;
215
+ } | null | undefined;
216
+ }>, {
217
+ sender: `0x${string}`;
218
+ factory: `0x${string}` | null;
219
+ paymaster: `0x${string}` | null;
220
+ nonce: bigint;
221
+ callData: `0x${string}`;
222
+ callGasLimit: bigint;
223
+ verificationGasLimit: bigint;
224
+ preVerificationGas: bigint;
225
+ maxFeePerGas: bigint;
226
+ maxPriorityFeePerGas: bigint;
227
+ signature: `0x${string}`;
228
+ paymasterVerificationGasLimit: bigint | null;
229
+ paymasterPostOpGasLimit: bigint | null;
230
+ factoryData: `0x${string}` | null;
231
+ paymasterData: `0x${string}` | null;
232
+ eip7702auth?: {
233
+ nonce: number;
234
+ contractAddress: `0x${string}`;
235
+ chainId: number;
236
+ r: `0x${string}`;
237
+ s: `0x${string}`;
238
+ v: bigint;
239
+ yParity: number;
240
+ } | null | undefined;
241
+ }, {
242
+ sender: string;
243
+ nonce: string | number | bigint;
244
+ callData: string;
245
+ callGasLimit: string | number | bigint;
246
+ verificationGasLimit: string | number | bigint;
247
+ preVerificationGas: string | number | bigint;
248
+ maxFeePerGas: string | number | bigint;
249
+ maxPriorityFeePerGas: string | number | bigint;
250
+ signature: string;
251
+ factory?: string | null | undefined;
252
+ factoryData?: string | null | undefined;
253
+ paymaster?: string | null | undefined;
254
+ paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
255
+ paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
256
+ paymasterData?: string | null | undefined;
257
+ eip7702auth?: {
258
+ nonce: string | number | bigint;
259
+ contractAddress: string;
260
+ chainId: string | number | bigint;
261
+ r: string;
262
+ s: string;
263
+ v: string | number | bigint;
264
+ yParity: string | number | bigint;
265
+ } | null | undefined;
266
+ }>]>, import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>], null>;
267
+ result: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
268
+ }, "strip", import("zod").ZodTypeAny, {
269
+ result: `0x${string}`;
270
+ params: [{
271
+ sender: `0x${string}`;
272
+ nonce: bigint;
273
+ initCode: `0x${string}`;
274
+ paymasterAndData: `0x${string}`;
275
+ callData: `0x${string}`;
276
+ callGasLimit: bigint;
277
+ verificationGasLimit: bigint;
278
+ preVerificationGas: bigint;
279
+ maxFeePerGas: bigint;
280
+ maxPriorityFeePerGas: bigint;
281
+ signature: `0x${string}`;
282
+ eip7702auth?: {
283
+ nonce: number;
284
+ contractAddress: `0x${string}`;
285
+ chainId: number;
286
+ r: `0x${string}`;
287
+ s: `0x${string}`;
288
+ v: bigint;
289
+ yParity: number;
290
+ } | null | undefined;
291
+ } | {
292
+ sender: `0x${string}`;
293
+ factory: `0x${string}` | null;
294
+ paymaster: `0x${string}` | null;
295
+ nonce: bigint;
296
+ callData: `0x${string}`;
297
+ callGasLimit: bigint;
298
+ verificationGasLimit: bigint;
299
+ preVerificationGas: bigint;
300
+ maxFeePerGas: bigint;
301
+ maxPriorityFeePerGas: bigint;
302
+ signature: `0x${string}`;
303
+ paymasterVerificationGasLimit: bigint | null;
304
+ paymasterPostOpGasLimit: bigint | null;
305
+ factoryData: `0x${string}` | null;
306
+ paymasterData: `0x${string}` | null;
307
+ eip7702auth?: {
308
+ nonce: number;
309
+ contractAddress: `0x${string}`;
310
+ chainId: number;
311
+ r: `0x${string}`;
312
+ s: `0x${string}`;
313
+ v: bigint;
314
+ yParity: number;
315
+ } | null | undefined;
316
+ }, `0x${string}`];
317
+ method: "pimlico_experimental_sendUserOperation7702";
318
+ }, {
319
+ result: string;
320
+ params: [{
321
+ sender: string;
322
+ nonce: string | number | bigint;
323
+ initCode: string;
324
+ paymasterAndData: string;
325
+ callData: string;
326
+ callGasLimit: string | number | bigint;
327
+ verificationGasLimit: string | number | bigint;
328
+ preVerificationGas: string | number | bigint;
329
+ maxFeePerGas: string | number | bigint;
330
+ maxPriorityFeePerGas: string | number | bigint;
331
+ signature: string;
332
+ eip7702auth?: {
333
+ nonce: string | number | bigint;
334
+ contractAddress: string;
335
+ chainId: string | number | bigint;
336
+ r: string;
337
+ s: string;
338
+ v: string | number | bigint;
339
+ yParity: string | number | bigint;
340
+ } | null | undefined;
341
+ } | {
342
+ sender: string;
343
+ nonce: string | number | bigint;
344
+ callData: string;
345
+ callGasLimit: string | number | bigint;
346
+ verificationGasLimit: string | number | bigint;
347
+ preVerificationGas: string | number | bigint;
348
+ maxFeePerGas: string | number | bigint;
349
+ maxPriorityFeePerGas: string | number | bigint;
350
+ signature: string;
351
+ factory?: string | null | undefined;
352
+ factoryData?: string | null | undefined;
353
+ paymaster?: string | null | undefined;
354
+ paymasterVerificationGasLimit?: string | number | bigint | null | undefined;
355
+ paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
356
+ paymasterData?: string | null | undefined;
357
+ eip7702auth?: {
358
+ nonce: string | number | bigint;
359
+ contractAddress: string;
360
+ chainId: string | number | bigint;
361
+ r: string;
362
+ s: string;
363
+ v: string | number | bigint;
364
+ yParity: string | number | bigint;
365
+ } | null | undefined;
366
+ }, string];
367
+ method: "pimlico_experimental_sendUserOperation7702";
368
+ }>;
369
+ method: "pimlico_experimental_sendUserOperation7702";
370
+ handler: (args: {
371
+ rpcHandler: import("../index.js").RpcHandler;
372
+ params: readonly [import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
373
+ sender: `0x${string}`;
374
+ nonce: bigint;
375
+ initCode: `0x${string}`;
376
+ paymasterAndData: `0x${string}`;
377
+ callData: `0x${string}`;
378
+ callGasLimit: bigint;
379
+ verificationGasLimit: bigint;
380
+ preVerificationGas: bigint;
381
+ maxFeePerGas: bigint;
382
+ maxPriorityFeePerGas: bigint;
383
+ signature: `0x${string}`;
384
+ eip7702auth?: {
385
+ nonce: number;
386
+ contractAddress: `0x${string}`;
387
+ chainId: number;
388
+ r: `0x${string}`;
389
+ s: `0x${string}`;
390
+ v: bigint;
391
+ yParity: number;
392
+ } | null | undefined;
393
+ }> | import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
394
+ sender: `0x${string}`;
395
+ factory: `0x${string}` | null;
396
+ paymaster: `0x${string}` | null;
397
+ nonce: bigint;
398
+ callData: `0x${string}`;
399
+ callGasLimit: bigint;
400
+ verificationGasLimit: bigint;
401
+ preVerificationGas: bigint;
402
+ maxFeePerGas: bigint;
403
+ maxPriorityFeePerGas: bigint;
404
+ signature: `0x${string}`;
405
+ paymasterVerificationGasLimit: bigint | null;
406
+ paymasterPostOpGasLimit: bigint | null;
407
+ factoryData: `0x${string}` | null;
408
+ paymasterData: `0x${string}` | null;
409
+ eip7702auth?: {
410
+ nonce: number;
411
+ contractAddress: `0x${string}`;
412
+ chainId: number;
413
+ r: `0x${string}`;
414
+ s: `0x${string}`;
415
+ v: bigint;
416
+ yParity: number;
417
+ } | null | undefined;
418
+ }>, `0x${string}`];
419
+ apiVersion: import("../../types/index.js").ApiVersion;
420
+ }) => `0x${string}` | Promise<`0x${string}`>;
421
+ };
422
+ //# sourceMappingURL=pimlico_experimental_sendUserOperation7702.d.ts.map
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.experimentalSendUserOperation7702Handler = void 0;
4
+ const utils_1 = require("../../utils/index.js");
5
+ const createMethodHandler_1 = require("../createMethodHandler.js");
6
+ const types_1 = require("../../types/index.js");
7
+ exports.experimentalSendUserOperation7702Handler = (0, createMethodHandler_1.createMethodHandler)({
8
+ method: "pimlico_experimental_sendUserOperation7702",
9
+ schema: types_1.pimlicoExperimentalSendUserOperation7702Schema,
10
+ handler: async ({ rpcHandler, params, apiVersion }) => {
11
+ rpcHandler.ensureExperimentalEndpointsAreEnabled("pimlico_experimental_sendUserOperation7702");
12
+ const [userOperation, entryPoint] = params;
13
+ rpcHandler.ensureEntryPointIsSupported(entryPoint);
14
+ await rpcHandler.validateEip7702Auth(userOperation);
15
+ await rpcHandler.addToMempoolIfValid(userOperation, entryPoint, apiVersion);
16
+ return (0, utils_1.getUserOperationHash)(userOperation, entryPoint, rpcHandler.config.publicClient.chain.id);
17
+ }
18
+ });
19
+ //# sourceMappingURL=pimlico_experimental_sendUserOperation7702.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pimlico_experimental_sendUserOperation7702.js","sourceRoot":"","sources":["../../../rpc/methods/pimlico_experimental_sendUserOperation7702.ts"],"names":[],"mappings":";;;AAAA,uCAAkD;AAClD,gEAA4D;AAC5D,uCAA4E;AAE/D,QAAA,wCAAwC,GAAG,IAAA,yCAAmB,EAAC;IACxE,MAAM,EAAE,4CAA4C;IACpD,MAAM,EAAE,sDAA8C;IACtD,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;QAClD,UAAU,CAAC,qCAAqC,CAC5C,4CAA4C,CAC/C,CAAA;QAED,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,GAAG,MAAM,CAAA;QAE1C,UAAU,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAA;QAClD,MAAM,UAAU,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAA;QAEnD,MAAM,UAAU,CAAC,mBAAmB,CAChC,aAAa,EACb,UAAU,EACV,UAAU,CACb,CAAA;QAED,OAAO,IAAA,4BAAoB,EACvB,aAAa,EACb,UAAU,EACV,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAC1C,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"}
@@ -0,0 +1,131 @@
1
+ export declare const pimlicoGetUserOperationGasPriceHandler: {
2
+ schema: import("zod").ZodObject<{
3
+ method: import("zod").ZodLiteral<"pimlico_getUserOperationGasPrice">;
4
+ params: import("zod").ZodTuple<[], null>;
5
+ result: import("zod").ZodObject<{
6
+ slow: import("zod").ZodObject<{
7
+ maxFeePerGas: import("zod").ZodBigInt;
8
+ maxPriorityFeePerGas: import("zod").ZodBigInt;
9
+ }, "strip", import("zod").ZodTypeAny, {
10
+ maxFeePerGas: bigint;
11
+ maxPriorityFeePerGas: bigint;
12
+ }, {
13
+ maxFeePerGas: bigint;
14
+ maxPriorityFeePerGas: bigint;
15
+ }>;
16
+ standard: import("zod").ZodObject<{
17
+ maxFeePerGas: import("zod").ZodBigInt;
18
+ maxPriorityFeePerGas: import("zod").ZodBigInt;
19
+ }, "strip", import("zod").ZodTypeAny, {
20
+ maxFeePerGas: bigint;
21
+ maxPriorityFeePerGas: bigint;
22
+ }, {
23
+ maxFeePerGas: bigint;
24
+ maxPriorityFeePerGas: bigint;
25
+ }>;
26
+ fast: import("zod").ZodObject<{
27
+ maxFeePerGas: import("zod").ZodBigInt;
28
+ maxPriorityFeePerGas: import("zod").ZodBigInt;
29
+ }, "strip", import("zod").ZodTypeAny, {
30
+ maxFeePerGas: bigint;
31
+ maxPriorityFeePerGas: bigint;
32
+ }, {
33
+ maxFeePerGas: bigint;
34
+ maxPriorityFeePerGas: bigint;
35
+ }>;
36
+ }, "strip", import("zod").ZodTypeAny, {
37
+ standard: {
38
+ maxFeePerGas: bigint;
39
+ maxPriorityFeePerGas: bigint;
40
+ };
41
+ fast: {
42
+ maxFeePerGas: bigint;
43
+ maxPriorityFeePerGas: bigint;
44
+ };
45
+ slow: {
46
+ maxFeePerGas: bigint;
47
+ maxPriorityFeePerGas: bigint;
48
+ };
49
+ }, {
50
+ standard: {
51
+ maxFeePerGas: bigint;
52
+ maxPriorityFeePerGas: bigint;
53
+ };
54
+ fast: {
55
+ maxFeePerGas: bigint;
56
+ maxPriorityFeePerGas: bigint;
57
+ };
58
+ slow: {
59
+ maxFeePerGas: bigint;
60
+ maxPriorityFeePerGas: bigint;
61
+ };
62
+ }>;
63
+ }, "strip", import("zod").ZodTypeAny, {
64
+ result: {
65
+ standard: {
66
+ maxFeePerGas: bigint;
67
+ maxPriorityFeePerGas: bigint;
68
+ };
69
+ fast: {
70
+ maxFeePerGas: bigint;
71
+ maxPriorityFeePerGas: bigint;
72
+ };
73
+ slow: {
74
+ maxFeePerGas: bigint;
75
+ maxPriorityFeePerGas: bigint;
76
+ };
77
+ };
78
+ params: [];
79
+ method: "pimlico_getUserOperationGasPrice";
80
+ }, {
81
+ result: {
82
+ standard: {
83
+ maxFeePerGas: bigint;
84
+ maxPriorityFeePerGas: bigint;
85
+ };
86
+ fast: {
87
+ maxFeePerGas: bigint;
88
+ maxPriorityFeePerGas: bigint;
89
+ };
90
+ slow: {
91
+ maxFeePerGas: bigint;
92
+ maxPriorityFeePerGas: bigint;
93
+ };
94
+ };
95
+ params: [];
96
+ method: "pimlico_getUserOperationGasPrice";
97
+ }>;
98
+ method: "pimlico_getUserOperationGasPrice";
99
+ handler: (args: {
100
+ rpcHandler: import("../index.js").RpcHandler;
101
+ params: readonly [];
102
+ apiVersion: import("../../types/index.js").ApiVersion;
103
+ }) => {
104
+ standard: {
105
+ maxFeePerGas: bigint;
106
+ maxPriorityFeePerGas: bigint;
107
+ };
108
+ fast: {
109
+ maxFeePerGas: bigint;
110
+ maxPriorityFeePerGas: bigint;
111
+ };
112
+ slow: {
113
+ maxFeePerGas: bigint;
114
+ maxPriorityFeePerGas: bigint;
115
+ };
116
+ } | Promise<{
117
+ standard: {
118
+ maxFeePerGas: bigint;
119
+ maxPriorityFeePerGas: bigint;
120
+ };
121
+ fast: {
122
+ maxFeePerGas: bigint;
123
+ maxPriorityFeePerGas: bigint;
124
+ };
125
+ slow: {
126
+ maxFeePerGas: bigint;
127
+ maxPriorityFeePerGas: bigint;
128
+ };
129
+ }>;
130
+ };
131
+ //# sourceMappingURL=pimlico_getUserOperationGasPrice.d.ts.map
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pimlicoGetUserOperationGasPriceHandler = void 0;
4
+ const bigInt_1 = require("../../utils/bigInt.js");
5
+ const createMethodHandler_1 = require("../createMethodHandler.js");
6
+ const types_1 = require("../../types/index.js");
7
+ exports.pimlicoGetUserOperationGasPriceHandler = (0, createMethodHandler_1.createMethodHandler)({
8
+ method: "pimlico_getUserOperationGasPrice",
9
+ schema: types_1.pimlicoGetUserOperationGasPriceSchema,
10
+ handler: async ({ rpcHandler }) => {
11
+ let { maxFeePerGas, maxPriorityFeePerGas } = await rpcHandler.gasPriceManager.getGasPrice();
12
+ if (rpcHandler.config.chainType === "hedera") {
13
+ maxFeePerGas /= 10n ** 9n;
14
+ maxPriorityFeePerGas /= 10n ** 9n;
15
+ }
16
+ const { slow, standard, fast } = rpcHandler.config.gasPriceMultipliers;
17
+ return {
18
+ slow: {
19
+ maxFeePerGas: (0, bigInt_1.scaleBigIntByPercent)(maxFeePerGas, slow),
20
+ maxPriorityFeePerGas: (0, bigInt_1.scaleBigIntByPercent)(maxPriorityFeePerGas, slow)
21
+ },
22
+ standard: {
23
+ maxFeePerGas: (0, bigInt_1.scaleBigIntByPercent)(maxFeePerGas, standard),
24
+ maxPriorityFeePerGas: (0, bigInt_1.scaleBigIntByPercent)(maxPriorityFeePerGas, standard)
25
+ },
26
+ fast: {
27
+ maxFeePerGas: (0, bigInt_1.scaleBigIntByPercent)(maxFeePerGas, fast),
28
+ maxPriorityFeePerGas: (0, bigInt_1.scaleBigIntByPercent)(maxPriorityFeePerGas, fast)
29
+ }
30
+ };
31
+ }
32
+ });
33
+ //# sourceMappingURL=pimlico_getUserOperationGasPrice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pimlico_getUserOperationGasPrice.js","sourceRoot":"","sources":["../../../rpc/methods/pimlico_getUserOperationGasPrice.ts"],"names":[],"mappings":";;;AAAA,+CAAyD;AACzD,gEAA4D;AAC5D,uCAAmE;AAEtD,QAAA,sCAAsC,GAAG,IAAA,yCAAmB,EAAC;IACtE,MAAM,EAAE,kCAAkC;IAC1C,MAAM,EAAE,6CAAqC;IAC7C,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;QAC9B,IAAI,EAAE,YAAY,EAAE,oBAAoB,EAAE,GACtC,MAAM,UAAU,CAAC,eAAe,CAAC,WAAW,EAAE,CAAA;QAElD,IAAI,UAAU,CAAC,MAAM,CAAC,SAAS,KAAK,QAAQ,EAAE,CAAC;YAC3C,YAAY,IAAI,GAAG,IAAI,EAAE,CAAA;YACzB,oBAAoB,IAAI,GAAG,IAAI,EAAE,CAAA;QACrC,CAAC;QAED,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAA;QAEtE,OAAO;YACH,IAAI,EAAE;gBACF,YAAY,EAAE,IAAA,6BAAoB,EAAC,YAAY,EAAE,IAAI,CAAC;gBACtD,oBAAoB,EAAE,IAAA,6BAAoB,EACtC,oBAAoB,EACpB,IAAI,CACP;aACJ;YACD,QAAQ,EAAE;gBACN,YAAY,EAAE,IAAA,6BAAoB,EAAC,YAAY,EAAE,QAAQ,CAAC;gBAC1D,oBAAoB,EAAE,IAAA,6BAAoB,EACtC,oBAAoB,EACpB,QAAQ,CACX;aACJ;YACD,IAAI,EAAE;gBACF,YAAY,EAAE,IAAA,6BAAoB,EAAC,YAAY,EAAE,IAAI,CAAC;gBACtD,oBAAoB,EAAE,IAAA,6BAAoB,EACtC,oBAAoB,EACpB,IAAI,CACP;aACJ;SACJ,CAAA;IACL,CAAC;CACJ,CAAC,CAAA"}