@pimlico/alto 0.0.0-main.20250214T163421 → 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 (183) 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/index.d.ts +0 -1
  15. package/esm/rpc/index.js +0 -1
  16. package/esm/rpc/index.js.map +1 -1
  17. package/esm/rpc/methods/debug_bundler_clearReputation.d.ts +22 -0
  18. package/esm/rpc/methods/debug_bundler_clearReputation.js +12 -0
  19. package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -0
  20. package/esm/rpc/methods/debug_bundler_clearState.d.ts +22 -0
  21. package/esm/rpc/methods/debug_bundler_clearState.js +13 -0
  22. package/esm/rpc/methods/debug_bundler_clearState.js.map +1 -0
  23. package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +468 -0
  24. package/esm/rpc/methods/debug_bundler_dumpMempool.js +13 -0
  25. package/esm/rpc/methods/debug_bundler_dumpMempool.js.map +1 -0
  26. package/esm/rpc/methods/debug_bundler_dumpReputation.d.ts +57 -0
  27. package/esm/rpc/methods/debug_bundler_dumpReputation.js +13 -0
  28. package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -0
  29. package/esm/rpc/methods/debug_bundler_getStakeStatus.d.ts +79 -0
  30. package/esm/rpc/methods/debug_bundler_getStakeStatus.js +14 -0
  31. package/esm/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -0
  32. package/esm/rpc/methods/debug_bundler_sendBundleNow.d.ts +22 -0
  33. package/esm/rpc/methods/debug_bundler_sendBundleNow.js +12 -0
  34. package/esm/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -0
  35. package/esm/rpc/methods/debug_bundler_setBundlingMode.d.ts +22 -0
  36. package/esm/rpc/methods/debug_bundler_setBundlingMode.js +13 -0
  37. package/esm/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -0
  38. package/esm/rpc/methods/debug_bundler_setReputation.d.ts +46 -0
  39. package/esm/rpc/methods/debug_bundler_setReputation.js +13 -0
  40. package/esm/rpc/methods/debug_bundler_setReputation.js.map +1 -0
  41. package/esm/rpc/methods/eth_chainId.d.ts +22 -0
  42. package/esm/rpc/methods/eth_chainId.js +10 -0
  43. package/esm/rpc/methods/eth_chainId.js.map +1 -0
  44. package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +979 -0
  45. package/esm/rpc/methods/eth_estimateUserOperationGas.js +18 -0
  46. package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -0
  47. package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +878 -0
  48. package/esm/rpc/methods/eth_getUserOperationByHash.js +98 -0
  49. package/esm/rpc/methods/eth_getUserOperationByHash.js.map +1 -0
  50. package/esm/rpc/methods/eth_getUserOperationReceipt.d.ts +412 -0
  51. package/esm/rpc/methods/eth_getUserOperationReceipt.js +11 -0
  52. package/esm/rpc/methods/eth_getUserOperationReceipt.js.map +1 -0
  53. package/esm/rpc/methods/eth_sendUserOperation.d.ts +422 -0
  54. package/esm/rpc/methods/eth_sendUserOperation.js +30 -0
  55. package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -0
  56. package/esm/rpc/methods/eth_supportedEntryPoints.d.ts +22 -0
  57. package/esm/rpc/methods/eth_supportedEntryPoints.js +10 -0
  58. package/esm/rpc/methods/eth_supportedEntryPoints.js.map +1 -0
  59. package/esm/rpc/methods/index.d.ts +3 -0
  60. package/esm/rpc/methods/index.js +45 -0
  61. package/esm/rpc/methods/index.js.map +1 -0
  62. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +979 -0
  63. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +20 -0
  64. package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -0
  65. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +422 -0
  66. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js +16 -0
  67. package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -0
  68. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +131 -0
  69. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js +30 -0
  70. package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -0
  71. package/esm/rpc/methods/pimlico_getUserOperationStatus.d.ts +43 -0
  72. package/esm/rpc/methods/pimlico_getUserOperationStatus.js +11 -0
  73. package/esm/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -0
  74. package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +812 -0
  75. package/esm/rpc/methods/pimlico_sendUserOperationNow.js +41 -0
  76. package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -0
  77. package/esm/rpc/rpcHandler.d.ts +13 -104
  78. package/esm/rpc/rpcHandler.js +33 -372
  79. package/esm/rpc/rpcHandler.js.map +1 -1
  80. package/esm/rpc/server.d.ts +2 -2
  81. package/esm/rpc/server.js +1 -1
  82. package/esm/rpc/server.js.map +1 -1
  83. package/esm/rpc/validation/TracerResultParserV07.js +5 -5
  84. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
  85. package/esm/types/schemas.d.ts +9368 -3502
  86. package/esm/types/schemas.js +213 -273
  87. package/esm/types/schemas.js.map +1 -1
  88. package/esm/utils/userop.d.ts +9 -9
  89. package/esm/utils/userop.js.map +1 -1
  90. package/lib/cli/setupServer.js +3 -3
  91. package/lib/cli/setupServer.js.map +1 -1
  92. package/lib/executor/executorManager.d.ts +9 -9
  93. package/lib/mempool/index.d.ts +1 -0
  94. package/lib/mempool/index.js +1 -0
  95. package/lib/mempool/index.js.map +1 -1
  96. package/lib/{rpc → mempool}/nonceQueuer.d.ts +1 -1
  97. package/lib/mempool/nonceQueuer.js.map +1 -0
  98. package/lib/mempool/reputationManager.d.ts +3 -2
  99. package/lib/mempool/reputationManager.js.map +1 -1
  100. package/lib/rpc/createMethodHandler.d.ts +31 -0
  101. package/lib/rpc/createMethodHandler.js +34 -0
  102. package/lib/rpc/createMethodHandler.js.map +1 -0
  103. package/lib/rpc/index.d.ts +0 -1
  104. package/lib/rpc/index.js +0 -1
  105. package/lib/rpc/index.js.map +1 -1
  106. package/lib/rpc/methods/debug_bundler_clearReputation.d.ts +22 -0
  107. package/lib/rpc/methods/debug_bundler_clearReputation.js +15 -0
  108. package/lib/rpc/methods/debug_bundler_clearReputation.js.map +1 -0
  109. package/lib/rpc/methods/debug_bundler_clearState.d.ts +22 -0
  110. package/lib/rpc/methods/debug_bundler_clearState.js +16 -0
  111. package/lib/rpc/methods/debug_bundler_clearState.js.map +1 -0
  112. package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +468 -0
  113. package/lib/rpc/methods/debug_bundler_dumpMempool.js +16 -0
  114. package/lib/rpc/methods/debug_bundler_dumpMempool.js.map +1 -0
  115. package/lib/rpc/methods/debug_bundler_dumpReputation.d.ts +57 -0
  116. package/lib/rpc/methods/debug_bundler_dumpReputation.js +16 -0
  117. package/lib/rpc/methods/debug_bundler_dumpReputation.js.map +1 -0
  118. package/lib/rpc/methods/debug_bundler_getStakeStatus.d.ts +79 -0
  119. package/lib/rpc/methods/debug_bundler_getStakeStatus.js +17 -0
  120. package/lib/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -0
  121. package/lib/rpc/methods/debug_bundler_sendBundleNow.d.ts +22 -0
  122. package/lib/rpc/methods/debug_bundler_sendBundleNow.js +15 -0
  123. package/lib/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -0
  124. package/lib/rpc/methods/debug_bundler_setBundlingMode.d.ts +22 -0
  125. package/lib/rpc/methods/debug_bundler_setBundlingMode.js +16 -0
  126. package/lib/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -0
  127. package/lib/rpc/methods/debug_bundler_setReputation.d.ts +46 -0
  128. package/lib/rpc/methods/debug_bundler_setReputation.js +16 -0
  129. package/lib/rpc/methods/debug_bundler_setReputation.js.map +1 -0
  130. package/lib/rpc/methods/eth_chainId.d.ts +22 -0
  131. package/lib/rpc/methods/eth_chainId.js +13 -0
  132. package/lib/rpc/methods/eth_chainId.js.map +1 -0
  133. package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +979 -0
  134. package/lib/rpc/methods/eth_estimateUserOperationGas.js +21 -0
  135. package/lib/rpc/methods/eth_estimateUserOperationGas.js.map +1 -0
  136. package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +878 -0
  137. package/lib/rpc/methods/eth_getUserOperationByHash.js +101 -0
  138. package/lib/rpc/methods/eth_getUserOperationByHash.js.map +1 -0
  139. package/lib/rpc/methods/eth_getUserOperationReceipt.d.ts +412 -0
  140. package/lib/rpc/methods/eth_getUserOperationReceipt.js +14 -0
  141. package/lib/rpc/methods/eth_getUserOperationReceipt.js.map +1 -0
  142. package/lib/rpc/methods/eth_sendUserOperation.d.ts +422 -0
  143. package/lib/rpc/methods/eth_sendUserOperation.js +33 -0
  144. package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -0
  145. package/lib/rpc/methods/eth_supportedEntryPoints.d.ts +22 -0
  146. package/lib/rpc/methods/eth_supportedEntryPoints.js +13 -0
  147. package/lib/rpc/methods/eth_supportedEntryPoints.js.map +1 -0
  148. package/lib/rpc/methods/index.d.ts +3 -0
  149. package/lib/rpc/methods/index.js +49 -0
  150. package/lib/rpc/methods/index.js.map +1 -0
  151. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +979 -0
  152. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +23 -0
  153. package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -0
  154. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +422 -0
  155. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js +19 -0
  156. package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -0
  157. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +131 -0
  158. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js +33 -0
  159. package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -0
  160. package/lib/rpc/methods/pimlico_getUserOperationStatus.d.ts +43 -0
  161. package/lib/rpc/methods/pimlico_getUserOperationStatus.js +14 -0
  162. package/lib/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -0
  163. package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +812 -0
  164. package/lib/rpc/methods/pimlico_sendUserOperationNow.js +44 -0
  165. package/lib/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -0
  166. package/lib/rpc/rpcHandler.d.ts +13 -104
  167. package/lib/rpc/rpcHandler.js +30 -369
  168. package/lib/rpc/rpcHandler.js.map +1 -1
  169. package/lib/rpc/server.d.ts +2 -2
  170. package/lib/rpc/server.js +1 -1
  171. package/lib/rpc/server.js.map +1 -1
  172. package/lib/rpc/validation/TracerResultParserV07.js +4 -4
  173. package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
  174. package/lib/types/schemas.d.ts +9368 -3502
  175. package/lib/types/schemas.js +261 -348
  176. package/lib/types/schemas.js.map +1 -1
  177. package/lib/utils/userop.d.ts +9 -9
  178. package/lib/utils/userop.js.map +1 -1
  179. package/package.json +2 -1
  180. package/esm/rpc/nonceQueuer.js.map +0 -1
  181. package/lib/rpc/nonceQueuer.js.map +0 -1
  182. /package/esm/{rpc → mempool}/nonceQueuer.js +0 -0
  183. /package/lib/{rpc → mempool}/nonceQueuer.js +0 -0
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.debugGetStakeStatusHandler = void 0;
4
+ const createMethodHandler_1 = require("../createMethodHandler.js");
5
+ const types_1 = require("../../types/index.js");
6
+ exports.debugGetStakeStatusHandler = (0, createMethodHandler_1.createMethodHandler)({
7
+ schema: types_1.debugGetStakeStatusSchema,
8
+ method: "debug_bundler_getStakeStatus",
9
+ // @ts-ignore
10
+ handler: async ({ rpcHandler, params }) => {
11
+ const [entryPoint, address] = params;
12
+ rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_getStakeStatus");
13
+ rpcHandler.ensureEntryPointIsSupported(entryPoint);
14
+ await rpcHandler.reputationManager.getStakeStatus(entryPoint, address);
15
+ }
16
+ });
17
+ //# sourceMappingURL=debug_bundler_getStakeStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug_bundler_getStakeStatus.js","sourceRoot":"","sources":["../../../rpc/methods/debug_bundler_getStakeStatus.ts"],"names":[],"mappings":";;;AAAA,gEAA4D;AAC5D,uCAAuD;AAE1C,QAAA,0BAA0B,GAAG,IAAA,yCAAmB,EAAC;IAC1D,MAAM,EAAE,iCAAyB;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,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.debugBundlerSendBundleNowHandler = void 0;
4
+ const createMethodHandler_1 = require("../createMethodHandler.js");
5
+ const types_1 = require("../../types/index.js");
6
+ exports.debugBundlerSendBundleNowHandler = (0, createMethodHandler_1.createMethodHandler)({
7
+ method: "debug_bundler_sendBundleNow",
8
+ schema: types_1.debugSendBundleNowSchema,
9
+ handler: async ({ rpcHandler }) => {
10
+ rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_sendBundleNow");
11
+ await rpcHandler.executorManager.sendBundleNow();
12
+ return "ok";
13
+ }
14
+ });
15
+ //# 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,gEAA4D;AAC5D,uCAAsD;AAEzC,QAAA,gCAAgC,GAAG,IAAA,yCAAmB,EAAC;IAChE,MAAM,EAAE,6BAA6B;IACrC,MAAM,EAAE,gCAAwB;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,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.debugBundlerSetBundlingModeHandler = void 0;
4
+ const createMethodHandler_1 = require("../createMethodHandler.js");
5
+ const types_1 = require("../../types/index.js");
6
+ exports.debugBundlerSetBundlingModeHandler = (0, createMethodHandler_1.createMethodHandler)({
7
+ method: "debug_bundler_setBundlingMode",
8
+ schema: types_1.debugSetBundlingModeSchema,
9
+ handler: async ({ rpcHandler, params }) => {
10
+ const [bundlingMode] = params;
11
+ rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_setBundlingMode");
12
+ await rpcHandler.executorManager.setBundlingMode(bundlingMode);
13
+ return "ok";
14
+ }
15
+ });
16
+ //# 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,gEAA4D;AAC5D,uCAAwD;AAE3C,QAAA,kCAAkC,GAAG,IAAA,yCAAmB,EAAC;IAClE,MAAM,EAAE,+BAA+B;IACvC,MAAM,EAAE,kCAA0B;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,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.debugSetReputationHandler = void 0;
4
+ const createMethodHandler_1 = require("../createMethodHandler.js");
5
+ const types_1 = require("../../types/index.js");
6
+ exports.debugSetReputationHandler = (0, createMethodHandler_1.createMethodHandler)({
7
+ method: "debug_bundler_setReputation",
8
+ schema: types_1.debugSetReputationSchema,
9
+ handler: ({ rpcHandler, params }) => {
10
+ const [args, address] = params;
11
+ rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_setReputation");
12
+ rpcHandler.reputationManager.setReputation(address, args);
13
+ return "ok";
14
+ }
15
+ });
16
+ //# 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,gEAA4D;AAC5D,uCAAsD;AAEzC,QAAA,yBAAyB,GAAG,IAAA,yCAAmB,EAAC;IACzD,MAAM,EAAE,6BAA6B;IACrC,MAAM,EAAE,gCAAwB;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,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ethChainIdHandler = void 0;
4
+ const createMethodHandler_1 = require("../createMethodHandler.js");
5
+ const types_1 = require("../../types/index.js");
6
+ exports.ethChainIdHandler = (0, createMethodHandler_1.createMethodHandler)({
7
+ method: "eth_chainId",
8
+ schema: types_1.chainIdSchema,
9
+ handler: ({ rpcHandler }) => {
10
+ return BigInt(rpcHandler.config.publicClient.chain.id);
11
+ }
12
+ });
13
+ //# 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,gEAA4D;AAC5D,uCAA2C;AAE9B,QAAA,iBAAiB,GAAG,IAAA,yCAAmB,EAAC;IACjD,MAAM,EAAE,aAAa;IACrB,MAAM,EAAE,qBAAa;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"}