@pimlico/alto 0.0.0-main.20250326T131157 → 0.0.0-main.20250326T205022
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.
- package/esm/cli/config/bundler.d.ts +12 -6
- package/esm/cli/config/bundler.js +2 -1
- package/esm/cli/config/bundler.js.map +1 -1
- package/esm/cli/config/options.js +8 -2
- package/esm/cli/config/options.js.map +1 -1
- package/esm/cli/deploySimulationsContract.d.ts +7 -2
- package/esm/cli/deploySimulationsContract.js +56 -19
- package/esm/cli/deploySimulationsContract.js.map +1 -1
- package/esm/cli/handler.js +21 -5
- package/esm/cli/handler.js.map +1 -1
- package/esm/executor/executorManager.js.map +1 -1
- package/esm/mempool/mempool.d.ts +38 -4
- package/esm/mempool/mempool.js +29 -4
- package/esm/mempool/mempool.js.map +1 -1
- package/esm/rpc/createMethodHandler.d.ts +1 -1
- package/esm/rpc/estimation/gasEstimationsV07.d.ts +5 -4
- package/esm/rpc/estimation/gasEstimationsV07.js +78 -31
- package/esm/rpc/estimation/gasEstimationsV07.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +373 -44
- package/esm/rpc/methods/debug_bundler_getStakeStatus.js +11 -3
- package/esm/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -1
- package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +686 -94
- package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +671 -78
- package/esm/rpc/methods/eth_sendUserOperation.d.ts +336 -40
- package/esm/rpc/methods/eth_sendUserOperation.js +6 -1
- package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -1
- package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +336 -40
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js +12 -2
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
- package/esm/rpc/rpcHandler.js +20 -4
- package/esm/rpc/rpcHandler.js.map +1 -1
- package/esm/rpc/validation/SafeValidator.js +5 -2
- package/esm/rpc/validation/SafeValidator.js.map +1 -1
- package/esm/rpc/validation/TracerResultParserV07.js +42 -20
- package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
- package/esm/store/createMemoryOutstandingStore.js +12 -2
- package/esm/store/createMemoryOutstandingStore.js.map +1 -1
- package/esm/store/createMempoolStore.js +10 -8
- package/esm/store/createMempoolStore.js.map +1 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +2 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.js +2 -1
- package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
- package/esm/types/schemas.d.ts +11240 -5385
- package/esm/types/schemas.js +90 -8
- package/esm/types/schemas.js.map +1 -1
- package/esm/utils/userop.d.ts +23 -3
- package/esm/utils/userop.js +85 -7
- package/esm/utils/userop.js.map +1 -1
- package/lib/cli/config/bundler.d.ts +12 -6
- package/lib/cli/config/bundler.js +2 -1
- package/lib/cli/config/bundler.js.map +1 -1
- package/lib/cli/config/options.js +8 -2
- package/lib/cli/config/options.js.map +1 -1
- package/lib/cli/deploySimulationsContract.d.ts +7 -2
- package/lib/cli/deploySimulationsContract.js +55 -18
- package/lib/cli/deploySimulationsContract.js.map +1 -1
- package/lib/cli/handler.js +21 -5
- package/lib/cli/handler.js.map +1 -1
- package/lib/executor/executorManager.js.map +1 -1
- package/lib/mempool/mempool.d.ts +38 -4
- package/lib/mempool/mempool.js +29 -4
- package/lib/mempool/mempool.js.map +1 -1
- package/lib/rpc/createMethodHandler.d.ts +1 -1
- package/lib/rpc/estimation/gasEstimationsV07.d.ts +5 -4
- package/lib/rpc/estimation/gasEstimationsV07.js +77 -30
- package/lib/rpc/estimation/gasEstimationsV07.js.map +1 -1
- package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +373 -44
- package/lib/rpc/methods/debug_bundler_getStakeStatus.js +10 -2
- package/lib/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -1
- package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +686 -94
- package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +671 -78
- package/lib/rpc/methods/eth_sendUserOperation.d.ts +336 -40
- package/lib/rpc/methods/eth_sendUserOperation.js +6 -1
- package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -1
- package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +336 -40
- package/lib/rpc/methods/pimlico_sendUserOperationNow.js +12 -2
- package/lib/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -1
- package/lib/rpc/rpcHandler.js +20 -4
- package/lib/rpc/rpcHandler.js.map +1 -1
- package/lib/rpc/validation/SafeValidator.js +4 -1
- package/lib/rpc/validation/SafeValidator.js.map +1 -1
- package/lib/rpc/validation/TracerResultParserV07.js +41 -19
- package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
- package/lib/store/createMemoryOutstandingStore.js +12 -2
- package/lib/store/createMemoryOutstandingStore.js.map +1 -1
- package/lib/store/createMempoolStore.js +10 -8
- package/lib/store/createMempoolStore.js.map +1 -1
- package/lib/types/contracts/PimlicoEntryPointSimulations.d.ts +2 -1
- package/lib/types/contracts/PimlicoEntryPointSimulations.js +3 -2
- package/lib/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
- package/lib/types/schemas.d.ts +11240 -5385
- package/lib/types/schemas.js +90 -8
- package/lib/types/schemas.js.map +1 -1
- package/lib/utils/userop.d.ts +23 -3
- package/lib/utils/userop.js +87 -7
- package/lib/utils/userop.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { createMethodHandler } from "../createMethodHandler.js";
|
|
2
|
-
import { debugGetStakeStatusSchema } from "../../types/index.js";
|
|
2
|
+
import { debugGetStakeStatusSchema, RpcError } from "../../types/index.js";
|
|
3
3
|
export const debugGetStakeStatusHandler = createMethodHandler({
|
|
4
4
|
schema: debugGetStakeStatusSchema,
|
|
5
5
|
method: "debug_bundler_getStakeStatus",
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
handler: async ({ rpcHandler, params }) => {
|
|
8
|
-
const [
|
|
8
|
+
const [address, entryPoint] = params;
|
|
9
9
|
rpcHandler.ensureDebugEndpointsAreEnabled("debug_bundler_getStakeStatus");
|
|
10
10
|
rpcHandler.ensureEntryPointIsSupported(entryPoint);
|
|
11
|
-
await rpcHandler.reputationManager.getStakeStatus(entryPoint, address);
|
|
11
|
+
const stakeStatus = await rpcHandler.reputationManager.getStakeStatus(entryPoint, address);
|
|
12
|
+
const response = debugGetStakeStatusSchema.shape.result.safeParse({
|
|
13
|
+
isStaked: stakeStatus.isStaked,
|
|
14
|
+
stakeInfo: stakeStatus.stakeInfo
|
|
15
|
+
});
|
|
16
|
+
if (!response.success) {
|
|
17
|
+
throw new RpcError("Internal error: response validation failed");
|
|
18
|
+
}
|
|
19
|
+
return response.data;
|
|
12
20
|
}
|
|
13
21
|
});
|
|
14
22
|
//# 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,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;
|
|
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,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEjE,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,OAAO,EAAE,UAAU,CAAC,GAAG,MAAM,CAAA;QACpC,UAAU,CAAC,8BAA8B,CACrC,8BAA8B,CACjC,CAAA;QACD,UAAU,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAA;QAElD,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,iBAAiB,CAAC,cAAc,CACjE,UAAU,EACV,OAAO,CACV,CAAA;QAED,MAAM,QAAQ,GAAG,yBAAyB,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC;YAC9D,QAAQ,EAAE,WAAW,CAAC,QAAQ;YAC9B,SAAS,EAAE,WAAW,CAAC,SAAS;SACnC,CAAC,CAAA;QAEF,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,IAAI,QAAQ,CAAC,4CAA4C,CAAC,CAAA;QACpE,CAAC;QAED,OAAO,QAAQ,CAAC,IAAI,CAAA;IACxB,CAAC;CACJ,CAAC,CAAA"}
|