@pimlico/alto 0.0.0-main.20250326T131157 → 0.0.0-main.20250329T153456

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 (97) hide show
  1. package/esm/cli/config/bundler.d.ts +12 -6
  2. package/esm/cli/config/bundler.js +2 -1
  3. package/esm/cli/config/bundler.js.map +1 -1
  4. package/esm/cli/config/options.js +8 -2
  5. package/esm/cli/config/options.js.map +1 -1
  6. package/esm/cli/deploySimulationsContract.d.ts +7 -2
  7. package/esm/cli/deploySimulationsContract.js +56 -19
  8. package/esm/cli/deploySimulationsContract.js.map +1 -1
  9. package/esm/cli/handler.js +21 -5
  10. package/esm/cli/handler.js.map +1 -1
  11. package/esm/executor/executorManager.js.map +1 -1
  12. package/esm/mempool/mempool.d.ts +38 -4
  13. package/esm/mempool/mempool.js +29 -4
  14. package/esm/mempool/mempool.js.map +1 -1
  15. package/esm/rpc/createMethodHandler.d.ts +1 -1
  16. package/esm/rpc/estimation/gasEstimationsV07.d.ts +5 -4
  17. package/esm/rpc/estimation/gasEstimationsV07.js +78 -31
  18. package/esm/rpc/estimation/gasEstimationsV07.js.map +1 -1
  19. package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +373 -44
  20. package/esm/rpc/methods/debug_bundler_getStakeStatus.js +11 -3
  21. package/esm/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -1
  22. package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +686 -94
  23. package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +671 -78
  24. package/esm/rpc/methods/eth_sendUserOperation.d.ts +336 -40
  25. package/esm/rpc/methods/eth_sendUserOperation.js +6 -1
  26. package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
  27. package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +336 -40
  28. package/esm/rpc/methods/pimlico_sendUserOperationNow.js +12 -2
  29. package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
  30. package/esm/rpc/rpcHandler.js +20 -4
  31. package/esm/rpc/rpcHandler.js.map +1 -1
  32. package/esm/rpc/validation/SafeValidator.js +5 -2
  33. package/esm/rpc/validation/SafeValidator.js.map +1 -1
  34. package/esm/rpc/validation/TracerResultParserV07.js +42 -20
  35. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
  36. package/esm/store/createMemoryOutstandingStore.js +12 -2
  37. package/esm/store/createMemoryOutstandingStore.js.map +1 -1
  38. package/esm/store/createMempoolStore.js +10 -8
  39. package/esm/store/createMempoolStore.js.map +1 -1
  40. package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +2 -1
  41. package/esm/types/contracts/PimlicoEntryPointSimulations.js +2 -1
  42. package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
  43. package/esm/types/schemas.d.ts +11240 -5385
  44. package/esm/types/schemas.js +91 -9
  45. package/esm/types/schemas.js.map +1 -1
  46. package/esm/utils/userop.d.ts +23 -3
  47. package/esm/utils/userop.js +85 -7
  48. package/esm/utils/userop.js.map +1 -1
  49. package/lib/cli/config/bundler.d.ts +12 -6
  50. package/lib/cli/config/bundler.js +2 -1
  51. package/lib/cli/config/bundler.js.map +1 -1
  52. package/lib/cli/config/options.js +8 -2
  53. package/lib/cli/config/options.js.map +1 -1
  54. package/lib/cli/deploySimulationsContract.d.ts +7 -2
  55. package/lib/cli/deploySimulationsContract.js +55 -18
  56. package/lib/cli/deploySimulationsContract.js.map +1 -1
  57. package/lib/cli/handler.js +21 -5
  58. package/lib/cli/handler.js.map +1 -1
  59. package/lib/executor/executorManager.js.map +1 -1
  60. package/lib/mempool/mempool.d.ts +38 -4
  61. package/lib/mempool/mempool.js +29 -4
  62. package/lib/mempool/mempool.js.map +1 -1
  63. package/lib/rpc/createMethodHandler.d.ts +1 -1
  64. package/lib/rpc/estimation/gasEstimationsV07.d.ts +5 -4
  65. package/lib/rpc/estimation/gasEstimationsV07.js +77 -30
  66. package/lib/rpc/estimation/gasEstimationsV07.js.map +1 -1
  67. package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +373 -44
  68. package/lib/rpc/methods/debug_bundler_getStakeStatus.js +10 -2
  69. package/lib/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -1
  70. package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +686 -94
  71. package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +671 -78
  72. package/lib/rpc/methods/eth_sendUserOperation.d.ts +336 -40
  73. package/lib/rpc/methods/eth_sendUserOperation.js +6 -1
  74. package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -1
  75. package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +336 -40
  76. package/lib/rpc/methods/pimlico_sendUserOperationNow.js +12 -2
  77. package/lib/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
  78. package/lib/rpc/rpcHandler.js +20 -4
  79. package/lib/rpc/rpcHandler.js.map +1 -1
  80. package/lib/rpc/validation/SafeValidator.js +4 -1
  81. package/lib/rpc/validation/SafeValidator.js.map +1 -1
  82. package/lib/rpc/validation/TracerResultParserV07.js +41 -19
  83. package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
  84. package/lib/store/createMemoryOutstandingStore.js +12 -2
  85. package/lib/store/createMemoryOutstandingStore.js.map +1 -1
  86. package/lib/store/createMempoolStore.js +10 -8
  87. package/lib/store/createMempoolStore.js.map +1 -1
  88. package/lib/types/contracts/PimlicoEntryPointSimulations.d.ts +2 -1
  89. package/lib/types/contracts/PimlicoEntryPointSimulations.js +3 -2
  90. package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
  91. package/lib/types/schemas.d.ts +11240 -5385
  92. package/lib/types/schemas.js +91 -9
  93. package/lib/types/schemas.js.map +1 -1
  94. package/lib/utils/userop.d.ts +23 -3
  95. package/lib/utils/userop.js +87 -7
  96. package/lib/utils/userop.js.map +1 -1
  97. package/package.json +2 -2
@@ -8,10 +8,18 @@ exports.debugGetStakeStatusHandler = (0, createMethodHandler_1.createMethodHandl
8
8
  method: "debug_bundler_getStakeStatus",
9
9
  // @ts-ignore
10
10
  handler: async ({ rpcHandler, params }) => {
11
- const [entryPoint, address] = params;
11
+ const [address, entryPoint] = params;
12
12
  rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_getStakeStatus");
13
13
  rpcHandler.ensureEntryPointIsSupported(entryPoint);
14
- await rpcHandler.reputationManager.getStakeStatus(entryPoint, address);
14
+ const stakeStatus = await rpcHandler.reputationManager.getStakeStatus(entryPoint, address);
15
+ const response = types_1.debugGetStakeStatusSchema.shape.result.safeParse({
16
+ isStaked: stakeStatus.isStaked,
17
+ stakeInfo: stakeStatus.stakeInfo
18
+ });
19
+ if (!response.success) {
20
+ throw new types_1.RpcError("Internal error: response validation failed");
21
+ }
22
+ return response.data;
15
23
  }
16
24
  });
17
25
  //# sourceMappingURL=debug_bundler_getStakeStatus.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"debug_bundler_getStakeStatus.js","sourceRoot":"","sources":["../../../rpc/methods/debug_bundler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