@pimlico/alto 0.0.0-main.20250214T163421 → 0.0.0-main.20250225T164854

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/setupServer.js +4 -4
  2. package/esm/cli/setupServer.js.map +1 -1
  3. package/esm/executor/executorManager.d.ts +9 -9
  4. package/esm/mempool/index.d.ts +1 -0
  5. package/esm/mempool/index.js +1 -0
  6. package/esm/mempool/index.js.map +1 -1
  7. package/esm/{rpc → mempool}/nonceQueuer.d.ts +1 -1
  8. package/esm/mempool/nonceQueuer.js.map +1 -0
  9. package/esm/mempool/reputationManager.d.ts +3 -2
  10. package/esm/mempool/reputationManager.js.map +1 -1
  11. package/esm/rpc/createMethodHandler.d.ts +31 -0
  12. package/esm/rpc/createMethodHandler.js +30 -0
  13. package/esm/rpc/createMethodHandler.js.map +1 -0
  14. package/esm/rpc/estimation/gasEstimationHandler.d.ts +3 -3
  15. package/esm/rpc/estimation/gasEstimationHandler.js +17 -10
  16. package/esm/rpc/estimation/gasEstimationHandler.js.map +1 -1
  17. package/esm/rpc/index.d.ts +0 -1
  18. package/esm/rpc/index.js +0 -1
  19. package/esm/rpc/index.js.map +1 -1
  20. package/esm/rpc/methods/debug_bundler_clearReputation.d.ts +22 -0
  21. package/esm/rpc/methods/debug_bundler_clearReputation.js +12 -0
  22. package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -0
  23. package/esm/rpc/methods/debug_bundler_clearState.d.ts +22 -0
  24. package/esm/rpc/methods/debug_bundler_clearState.js +13 -0
  25. package/esm/rpc/methods/debug_bundler_clearState.js.map +1 -0
  26. package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +468 -0
  27. package/esm/rpc/methods/debug_bundler_dumpMempool.js +13 -0
  28. package/esm/rpc/methods/debug_bundler_dumpMempool.js.map +1 -0
  29. package/esm/rpc/methods/debug_bundler_dumpReputation.d.ts +57 -0
  30. package/esm/rpc/methods/debug_bundler_dumpReputation.js +13 -0
  31. package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -0
  32. package/esm/rpc/methods/debug_bundler_getStakeStatus.d.ts +79 -0
  33. package/esm/rpc/methods/debug_bundler_getStakeStatus.js +14 -0
  34. package/esm/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -0
  35. package/esm/rpc/methods/debug_bundler_sendBundleNow.d.ts +22 -0
  36. package/esm/rpc/methods/debug_bundler_sendBundleNow.js +12 -0
  37. package/esm/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -0
  38. package/esm/rpc/methods/debug_bundler_setBundlingMode.d.ts +22 -0
  39. package/esm/rpc/methods/debug_bundler_setBundlingMode.js +13 -0
  40. package/esm/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -0
  41. package/esm/rpc/methods/debug_bundler_setReputation.d.ts +46 -0
  42. package/esm/rpc/methods/debug_bundler_setReputation.js +13 -0
  43. package/esm/rpc/methods/debug_bundler_setReputation.js.map +1 -0
  44. package/esm/rpc/methods/eth_chainId.d.ts +22 -0
  45. package/esm/rpc/methods/eth_chainId.js +10 -0
  46. package/esm/rpc/methods/eth_chainId.js.map +1 -0
  47. package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +979 -0
  48. package/esm/rpc/methods/eth_estimateUserOperationGas.js +18 -0
  49. package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -0
  50. package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +878 -0
  51. package/esm/rpc/methods/eth_getUserOperationByHash.js +98 -0
  52. package/esm/rpc/methods/eth_getUserOperationByHash.js.map +1 -0
  53. package/esm/rpc/methods/eth_getUserOperationReceipt.d.ts +412 -0
  54. package/esm/rpc/methods/eth_getUserOperationReceipt.js +11 -0
  55. package/esm/rpc/methods/eth_getUserOperationReceipt.js.map +1 -0
  56. package/esm/rpc/methods/eth_sendUserOperation.d.ts +422 -0
  57. package/esm/rpc/methods/eth_sendUserOperation.js +30 -0
  58. package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -0
  59. package/esm/rpc/methods/eth_supportedEntryPoints.d.ts +22 -0
  60. package/esm/rpc/methods/eth_supportedEntryPoints.js +10 -0
  61. package/esm/rpc/methods/eth_supportedEntryPoints.js.map +1 -0
  62. package/esm/rpc/methods/index.d.ts +3 -0
  63. package/esm/rpc/methods/index.js +45 -0
  64. package/esm/rpc/methods/index.js.map +1 -0
  65. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +979 -0
  66. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +20 -0
  67. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -0
  68. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +422 -0
  69. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js +16 -0
  70. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -0
  71. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +131 -0
  72. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js +30 -0
  73. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -0
  74. package/esm/rpc/methods/pimlico_getUserOperationStatus.d.ts +43 -0
  75. package/esm/rpc/methods/pimlico_getUserOperationStatus.js +11 -0
  76. package/esm/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -0
  77. package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +812 -0
  78. package/esm/rpc/methods/pimlico_sendUserOperationNow.js +41 -0
  79. package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -0
  80. package/esm/rpc/rpcHandler.d.ts +13 -104
  81. package/esm/rpc/rpcHandler.js +35 -374
  82. package/esm/rpc/rpcHandler.js.map +1 -1
  83. package/esm/rpc/server.d.ts +2 -2
  84. package/esm/rpc/server.js +1 -1
  85. package/esm/rpc/server.js.map +1 -1
  86. package/esm/rpc/validation/TracerResultParserV07.js +5 -5
  87. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
  88. package/esm/rpc/validation/UnsafeValidator.d.ts +2 -2
  89. package/esm/rpc/validation/UnsafeValidator.js +3 -3
  90. package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
  91. package/esm/types/interfaces.d.ts +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/setupServer.js +3 -3
  98. package/lib/cli/setupServer.js.map +1 -1
  99. package/lib/executor/executorManager.d.ts +9 -9
  100. package/lib/mempool/index.d.ts +1 -0
  101. package/lib/mempool/index.js +1 -0
  102. package/lib/mempool/index.js.map +1 -1
  103. package/lib/{rpc → mempool}/nonceQueuer.d.ts +1 -1
  104. package/lib/mempool/nonceQueuer.js.map +1 -0
  105. package/lib/mempool/reputationManager.d.ts +3 -2
  106. package/lib/mempool/reputationManager.js.map +1 -1
  107. package/lib/rpc/createMethodHandler.d.ts +31 -0
  108. package/lib/rpc/createMethodHandler.js +34 -0
  109. package/lib/rpc/createMethodHandler.js.map +1 -0
  110. package/lib/rpc/estimation/gasEstimationHandler.d.ts +3 -3
  111. package/lib/rpc/estimation/gasEstimationHandler.js +16 -9
  112. package/lib/rpc/estimation/gasEstimationHandler.js.map +1 -1
  113. package/lib/rpc/index.d.ts +0 -1
  114. package/lib/rpc/index.js +0 -1
  115. package/lib/rpc/index.js.map +1 -1
  116. package/lib/rpc/methods/debug_bundler_clearReputation.d.ts +22 -0
  117. package/lib/rpc/methods/debug_bundler_clearReputation.js +15 -0
  118. package/lib/rpc/methods/debug_bundler_clearReputation.js.map +1 -0
  119. package/lib/rpc/methods/debug_bundler_clearState.d.ts +22 -0
  120. package/lib/rpc/methods/debug_bundler_clearState.js +16 -0
  121. package/lib/rpc/methods/debug_bundler_clearState.js.map +1 -0
  122. package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +468 -0
  123. package/lib/rpc/methods/debug_bundler_dumpMempool.js +16 -0
  124. package/lib/rpc/methods/debug_bundler_dumpMempool.js.map +1 -0
  125. package/lib/rpc/methods/debug_bundler_dumpReputation.d.ts +57 -0
  126. package/lib/rpc/methods/debug_bundler_dumpReputation.js +16 -0
  127. package/lib/rpc/methods/debug_bundler_dumpReputation.js.map +1 -0
  128. package/lib/rpc/methods/debug_bundler_getStakeStatus.d.ts +79 -0
  129. package/lib/rpc/methods/debug_bundler_getStakeStatus.js +17 -0
  130. package/lib/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -0
  131. package/lib/rpc/methods/debug_bundler_sendBundleNow.d.ts +22 -0
  132. package/lib/rpc/methods/debug_bundler_sendBundleNow.js +15 -0
  133. package/lib/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -0
  134. package/lib/rpc/methods/debug_bundler_setBundlingMode.d.ts +22 -0
  135. package/lib/rpc/methods/debug_bundler_setBundlingMode.js +16 -0
  136. package/lib/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -0
  137. package/lib/rpc/methods/debug_bundler_setReputation.d.ts +46 -0
  138. package/lib/rpc/methods/debug_bundler_setReputation.js +16 -0
  139. package/lib/rpc/methods/debug_bundler_setReputation.js.map +1 -0
  140. package/lib/rpc/methods/eth_chainId.d.ts +22 -0
  141. package/lib/rpc/methods/eth_chainId.js +13 -0
  142. package/lib/rpc/methods/eth_chainId.js.map +1 -0
  143. package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +979 -0
  144. package/lib/rpc/methods/eth_estimateUserOperationGas.js +21 -0
  145. package/lib/rpc/methods/eth_estimateUserOperationGas.js.map +1 -0
  146. package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +878 -0
  147. package/lib/rpc/methods/eth_getUserOperationByHash.js +101 -0
  148. package/lib/rpc/methods/eth_getUserOperationByHash.js.map +1 -0
  149. package/lib/rpc/methods/eth_getUserOperationReceipt.d.ts +412 -0
  150. package/lib/rpc/methods/eth_getUserOperationReceipt.js +14 -0
  151. package/lib/rpc/methods/eth_getUserOperationReceipt.js.map +1 -0
  152. package/lib/rpc/methods/eth_sendUserOperation.d.ts +422 -0
  153. package/lib/rpc/methods/eth_sendUserOperation.js +33 -0
  154. package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -0
  155. package/lib/rpc/methods/eth_supportedEntryPoints.d.ts +22 -0
  156. package/lib/rpc/methods/eth_supportedEntryPoints.js +13 -0
  157. package/lib/rpc/methods/eth_supportedEntryPoints.js.map +1 -0
  158. package/lib/rpc/methods/index.d.ts +3 -0
  159. package/lib/rpc/methods/index.js +49 -0
  160. package/lib/rpc/methods/index.js.map +1 -0
  161. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +979 -0
  162. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +23 -0
  163. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -0
  164. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +422 -0
  165. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js +19 -0
  166. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -0
  167. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +131 -0
  168. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js +33 -0
  169. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -0
  170. package/lib/rpc/methods/pimlico_getUserOperationStatus.d.ts +43 -0
  171. package/lib/rpc/methods/pimlico_getUserOperationStatus.js +14 -0
  172. package/lib/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -0
  173. package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +812 -0
  174. package/lib/rpc/methods/pimlico_sendUserOperationNow.js +44 -0
  175. package/lib/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -0
  176. package/lib/rpc/rpcHandler.d.ts +13 -104
  177. package/lib/rpc/rpcHandler.js +32 -371
  178. package/lib/rpc/rpcHandler.js.map +1 -1
  179. package/lib/rpc/server.d.ts +2 -2
  180. package/lib/rpc/server.js +1 -1
  181. package/lib/rpc/server.js.map +1 -1
  182. package/lib/rpc/validation/TracerResultParserV07.js +4 -4
  183. package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
  184. package/lib/rpc/validation/UnsafeValidator.d.ts +2 -2
  185. package/lib/rpc/validation/UnsafeValidator.js +3 -3
  186. package/lib/rpc/validation/UnsafeValidator.js.map +1 -1
  187. package/lib/types/interfaces.d.ts +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 @@
1
+ {"version":3,"file":"debug_bundler_getStakeStatus.js","sourceRoot":"","sources":["../../../rpc/methods/debug_bundler_getStakeStatus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAEvD,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAAmB,CAAC;IAC1D,MAAM,EAAE,yBAAyB;IACjC,MAAM,EAAE,8BAA8B;IACtC,aAAa;IACb,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QACtC,MAAM,CAAC,UAAU,EAAE,OAAO,CAAC,GAAG,MAAM,CAAA;QACpC,UAAU,CAAC,8BAA8B,CACrC,8BAA8B,CACjC,CAAA;QACD,UAAU,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAA;QAElD,MAAM,UAAU,CAAC,iBAAiB,CAAC,cAAc,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAC1E,CAAC;CACJ,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ export declare const debugBundlerSendBundleNowHandler: {
2
+ schema: import("zod").ZodObject<{
3
+ method: import("zod").ZodLiteral<"debug_bundler_sendBundleNow">;
4
+ params: import("zod").ZodTuple<[], null>;
5
+ result: import("zod").ZodLiteral<"ok">;
6
+ }, "strip", import("zod").ZodTypeAny, {
7
+ result: "ok";
8
+ params: [];
9
+ method: "debug_bundler_sendBundleNow";
10
+ }, {
11
+ result: "ok";
12
+ params: [];
13
+ method: "debug_bundler_sendBundleNow";
14
+ }>;
15
+ method: "debug_bundler_sendBundleNow";
16
+ handler: (args: {
17
+ rpcHandler: import("../index.js").RpcHandler;
18
+ params: readonly [];
19
+ apiVersion: import("../../types/index.js").ApiVersion;
20
+ }) => "ok" | Promise<"ok">;
21
+ };
22
+ //# sourceMappingURL=debug_bundler_sendBundleNow.d.ts.map
@@ -0,0 +1,12 @@
1
+ import { createMethodHandler } from "../createMethodHandler.js";
2
+ import { debugSendBundleNowSchema } from "../../types/index.js";
3
+ export const debugBundlerSendBundleNowHandler = createMethodHandler({
4
+ method: "debug_bundler_sendBundleNow",
5
+ schema: debugSendBundleNowSchema,
6
+ handler: async ({ rpcHandler }) => {
7
+ rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_sendBundleNow");
8
+ await rpcHandler.executorManager.sendBundleNow();
9
+ return "ok";
10
+ }
11
+ });
12
+ //# sourceMappingURL=debug_bundler_sendBundleNow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug_bundler_sendBundleNow.js","sourceRoot":"","sources":["../../../rpc/methods/debug_bundler_sendBundleNow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,CAAC,MAAM,gCAAgC,GAAG,mBAAmB,CAAC;IAChE,MAAM,EAAE,6BAA6B;IACrC,MAAM,EAAE,wBAAwB;IAChC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE;QAC9B,UAAU,CAAC,8BAA8B,CAAC,6BAA6B,CAAC,CAAA;QACxE,MAAM,UAAU,CAAC,eAAe,CAAC,aAAa,EAAE,CAAA;QAEhD,OAAO,IAAa,CAAA;IACxB,CAAC;CACJ,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ export declare const debugBundlerSetBundlingModeHandler: {
2
+ schema: import("zod").ZodObject<{
3
+ method: import("zod").ZodLiteral<"debug_bundler_setBundlingMode">;
4
+ params: import("zod").ZodTuple<[import("zod").ZodEnum<["manual", "auto"]>], null>;
5
+ result: import("zod").ZodLiteral<"ok">;
6
+ }, "strip", import("zod").ZodTypeAny, {
7
+ result: "ok";
8
+ params: ["manual" | "auto"];
9
+ method: "debug_bundler_setBundlingMode";
10
+ }, {
11
+ result: "ok";
12
+ params: ["manual" | "auto"];
13
+ method: "debug_bundler_setBundlingMode";
14
+ }>;
15
+ method: "debug_bundler_setBundlingMode";
16
+ handler: (args: {
17
+ rpcHandler: import("../index.js").RpcHandler;
18
+ params: readonly ["manual" | "auto"];
19
+ apiVersion: import("../../types/index.js").ApiVersion;
20
+ }) => "ok" | Promise<"ok">;
21
+ };
22
+ //# sourceMappingURL=debug_bundler_setBundlingMode.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { createMethodHandler } from "../createMethodHandler.js";
2
+ import { debugSetBundlingModeSchema } from "../../types/index.js";
3
+ export const debugBundlerSetBundlingModeHandler = createMethodHandler({
4
+ method: "debug_bundler_setBundlingMode",
5
+ schema: debugSetBundlingModeSchema,
6
+ handler: async ({ rpcHandler, params }) => {
7
+ const [bundlingMode] = params;
8
+ rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_setBundlingMode");
9
+ await rpcHandler.executorManager.setBundlingMode(bundlingMode);
10
+ return "ok";
11
+ }
12
+ });
13
+ //# sourceMappingURL=debug_bundler_setBundlingMode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug_bundler_setBundlingMode.js","sourceRoot":"","sources":["../../../rpc/methods/debug_bundler_setBundlingMode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAExD,MAAM,CAAC,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAClE,MAAM,EAAE,+BAA+B;IACvC,MAAM,EAAE,0BAA0B;IAClC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QACtC,MAAM,CAAC,YAAY,CAAC,GAAG,MAAM,CAAA;QAC7B,UAAU,CAAC,8BAA8B,CAAC,+BAA+B,CAAC,CAAA;QAC1E,MAAM,UAAU,CAAC,eAAe,CAAC,eAAe,CAAC,YAAY,CAAC,CAAA;QAE9D,OAAO,IAAa,CAAA;IACxB,CAAC;CACJ,CAAC,CAAA"}
@@ -0,0 +1,46 @@
1
+ export declare const debugSetReputationHandler: {
2
+ schema: import("zod").ZodObject<{
3
+ method: import("zod").ZodLiteral<"debug_bundler_setReputation">;
4
+ params: import("zod").ZodTuple<[import("zod").ZodArray<import("zod").ZodObject<{
5
+ address: import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>;
6
+ opsSeen: 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
+ opsIncluded: 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>;
8
+ }, "strip", import("zod").ZodTypeAny, {
9
+ address: `0x${string}`;
10
+ opsSeen: bigint;
11
+ opsIncluded: bigint;
12
+ }, {
13
+ address: string;
14
+ opsSeen: string | number | bigint;
15
+ opsIncluded: string | number | bigint;
16
+ }>, "many">, import("zod").ZodEffects<import("zod").ZodString, `0x${string}`, string>], null>;
17
+ result: import("zod").ZodLiteral<"ok">;
18
+ }, "strip", import("zod").ZodTypeAny, {
19
+ result: "ok";
20
+ params: [{
21
+ address: `0x${string}`;
22
+ opsSeen: bigint;
23
+ opsIncluded: bigint;
24
+ }[], `0x${string}`];
25
+ method: "debug_bundler_setReputation";
26
+ }, {
27
+ result: "ok";
28
+ params: [{
29
+ address: string;
30
+ opsSeen: string | number | bigint;
31
+ opsIncluded: string | number | bigint;
32
+ }[], string];
33
+ method: "debug_bundler_setReputation";
34
+ }>;
35
+ method: "debug_bundler_setReputation";
36
+ handler: (args: {
37
+ rpcHandler: import("../index.js").RpcHandler;
38
+ params: readonly [readonly import("type-fest/source/readonly-deep").ReadonlyObjectDeep<{
39
+ address: `0x${string}`;
40
+ opsSeen: bigint;
41
+ opsIncluded: bigint;
42
+ }>[], `0x${string}`];
43
+ apiVersion: import("../../types/index.js").ApiVersion;
44
+ }) => "ok" | Promise<"ok">;
45
+ };
46
+ //# sourceMappingURL=debug_bundler_setReputation.d.ts.map
@@ -0,0 +1,13 @@
1
+ import { createMethodHandler } from "../createMethodHandler.js";
2
+ import { debugSetReputationSchema } from "../../types/index.js";
3
+ export const debugSetReputationHandler = createMethodHandler({
4
+ method: "debug_bundler_setReputation",
5
+ schema: debugSetReputationSchema,
6
+ handler: ({ rpcHandler, params }) => {
7
+ const [args, address] = params;
8
+ rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_setReputation");
9
+ rpcHandler.reputationManager.setReputation(address, args);
10
+ return "ok";
11
+ }
12
+ });
13
+ //# sourceMappingURL=debug_bundler_setReputation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug_bundler_setReputation.js","sourceRoot":"","sources":["../../../rpc/methods/debug_bundler_setReputation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAA;AAEtD,MAAM,CAAC,MAAM,yBAAyB,GAAG,mBAAmB,CAAC;IACzD,MAAM,EAAE,6BAA6B;IACrC,MAAM,EAAE,wBAAwB;IAChC,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE;QAChC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,MAAM,CAAA;QAC9B,UAAU,CAAC,8BAA8B,CAAC,6BAA6B,CAAC,CAAA;QACxE,UAAU,CAAC,iBAAiB,CAAC,aAAa,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAEzD,OAAO,IAAa,CAAA;IACxB,CAAC;CACJ,CAAC,CAAA"}
@@ -0,0 +1,22 @@
1
+ export declare const ethChainIdHandler: {
2
+ schema: import("zod").ZodObject<{
3
+ method: import("zod").ZodLiteral<"eth_chainId">;
4
+ params: import("zod").ZodTuple<[], null>;
5
+ result: 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>;
6
+ }, "strip", import("zod").ZodTypeAny, {
7
+ result: bigint;
8
+ params: [];
9
+ method: "eth_chainId";
10
+ }, {
11
+ result: string | number | bigint;
12
+ params: [];
13
+ method: "eth_chainId";
14
+ }>;
15
+ method: "eth_chainId";
16
+ handler: (args: {
17
+ rpcHandler: import("../index.js").RpcHandler;
18
+ params: readonly [];
19
+ apiVersion: import("../../types/index.js").ApiVersion;
20
+ }) => bigint | Promise<bigint>;
21
+ };
22
+ //# sourceMappingURL=eth_chainId.d.ts.map
@@ -0,0 +1,10 @@
1
+ import { createMethodHandler } from "../createMethodHandler.js";
2
+ import { chainIdSchema } from "../../types/index.js";
3
+ export const ethChainIdHandler = createMethodHandler({
4
+ method: "eth_chainId",
5
+ schema: chainIdSchema,
6
+ handler: ({ rpcHandler }) => {
7
+ return BigInt(rpcHandler.config.publicClient.chain.id);
8
+ }
9
+ });
10
+ //# sourceMappingURL=eth_chainId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eth_chainId.js","sourceRoot":"","sources":["../../../rpc/methods/eth_chainId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAE3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,mBAAmB,CAAC;IACjD,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE;QACxB,OAAO,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;IAC1D,CAAC;CACJ,CAAC,CAAA"}