@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.
- package/esm/cli/setupServer.js +4 -4
- package/esm/cli/setupServer.js.map +1 -1
- package/esm/executor/executorManager.d.ts +9 -9
- package/esm/mempool/index.d.ts +1 -0
- package/esm/mempool/index.js +1 -0
- package/esm/mempool/index.js.map +1 -1
- package/esm/{rpc → mempool}/nonceQueuer.d.ts +1 -1
- package/esm/mempool/nonceQueuer.js.map +1 -0
- package/esm/mempool/reputationManager.d.ts +3 -2
- package/esm/mempool/reputationManager.js.map +1 -1
- package/esm/rpc/createMethodHandler.d.ts +31 -0
- package/esm/rpc/createMethodHandler.js +30 -0
- package/esm/rpc/createMethodHandler.js.map +1 -0
- package/esm/rpc/index.d.ts +0 -1
- package/esm/rpc/index.js +0 -1
- package/esm/rpc/index.js.map +1 -1
- package/esm/rpc/methods/debug_bundler_clearReputation.d.ts +22 -0
- package/esm/rpc/methods/debug_bundler_clearReputation.js +12 -0
- package/esm/rpc/methods/debug_bundler_clearReputation.js.map +1 -0
- package/esm/rpc/methods/debug_bundler_clearState.d.ts +22 -0
- package/esm/rpc/methods/debug_bundler_clearState.js +13 -0
- package/esm/rpc/methods/debug_bundler_clearState.js.map +1 -0
- package/esm/rpc/methods/debug_bundler_dumpMempool.d.ts +468 -0
- package/esm/rpc/methods/debug_bundler_dumpMempool.js +13 -0
- package/esm/rpc/methods/debug_bundler_dumpMempool.js.map +1 -0
- package/esm/rpc/methods/debug_bundler_dumpReputation.d.ts +57 -0
- package/esm/rpc/methods/debug_bundler_dumpReputation.js +13 -0
- package/esm/rpc/methods/debug_bundler_dumpReputation.js.map +1 -0
- package/esm/rpc/methods/debug_bundler_getStakeStatus.d.ts +79 -0
- package/esm/rpc/methods/debug_bundler_getStakeStatus.js +14 -0
- package/esm/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -0
- package/esm/rpc/methods/debug_bundler_sendBundleNow.d.ts +22 -0
- package/esm/rpc/methods/debug_bundler_sendBundleNow.js +12 -0
- package/esm/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -0
- package/esm/rpc/methods/debug_bundler_setBundlingMode.d.ts +22 -0
- package/esm/rpc/methods/debug_bundler_setBundlingMode.js +13 -0
- package/esm/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -0
- package/esm/rpc/methods/debug_bundler_setReputation.d.ts +46 -0
- package/esm/rpc/methods/debug_bundler_setReputation.js +13 -0
- package/esm/rpc/methods/debug_bundler_setReputation.js.map +1 -0
- package/esm/rpc/methods/eth_chainId.d.ts +22 -0
- package/esm/rpc/methods/eth_chainId.js +10 -0
- package/esm/rpc/methods/eth_chainId.js.map +1 -0
- package/esm/rpc/methods/eth_estimateUserOperationGas.d.ts +979 -0
- package/esm/rpc/methods/eth_estimateUserOperationGas.js +18 -0
- package/esm/rpc/methods/eth_estimateUserOperationGas.js.map +1 -0
- package/esm/rpc/methods/eth_getUserOperationByHash.d.ts +878 -0
- package/esm/rpc/methods/eth_getUserOperationByHash.js +98 -0
- package/esm/rpc/methods/eth_getUserOperationByHash.js.map +1 -0
- package/esm/rpc/methods/eth_getUserOperationReceipt.d.ts +412 -0
- package/esm/rpc/methods/eth_getUserOperationReceipt.js +11 -0
- package/esm/rpc/methods/eth_getUserOperationReceipt.js.map +1 -0
- package/esm/rpc/methods/eth_sendUserOperation.d.ts +422 -0
- package/esm/rpc/methods/eth_sendUserOperation.js +30 -0
- package/esm/rpc/methods/eth_sendUserOperation.js.map +1 -0
- package/esm/rpc/methods/eth_supportedEntryPoints.d.ts +22 -0
- package/esm/rpc/methods/eth_supportedEntryPoints.js +10 -0
- package/esm/rpc/methods/eth_supportedEntryPoints.js.map +1 -0
- package/esm/rpc/methods/index.d.ts +3 -0
- package/esm/rpc/methods/index.js +45 -0
- package/esm/rpc/methods/index.js.map +1 -0
- package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +979 -0
- package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +20 -0
- package/esm/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -0
- package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +422 -0
- package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js +16 -0
- package/esm/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -0
- package/esm/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +131 -0
- package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js +30 -0
- package/esm/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -0
- package/esm/rpc/methods/pimlico_getUserOperationStatus.d.ts +43 -0
- package/esm/rpc/methods/pimlico_getUserOperationStatus.js +11 -0
- package/esm/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -0
- package/esm/rpc/methods/pimlico_sendUserOperationNow.d.ts +812 -0
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js +41 -0
- package/esm/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -0
- package/esm/rpc/rpcHandler.d.ts +13 -104
- package/esm/rpc/rpcHandler.js +33 -372
- package/esm/rpc/rpcHandler.js.map +1 -1
- package/esm/rpc/server.d.ts +2 -2
- package/esm/rpc/server.js +1 -1
- package/esm/rpc/server.js.map +1 -1
- package/esm/rpc/validation/TracerResultParserV07.js +5 -5
- package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
- package/esm/types/schemas.d.ts +9368 -3502
- package/esm/types/schemas.js +213 -273
- package/esm/types/schemas.js.map +1 -1
- package/esm/utils/userop.d.ts +9 -9
- package/esm/utils/userop.js.map +1 -1
- package/lib/cli/setupServer.js +3 -3
- package/lib/cli/setupServer.js.map +1 -1
- package/lib/executor/executorManager.d.ts +9 -9
- package/lib/mempool/index.d.ts +1 -0
- package/lib/mempool/index.js +1 -0
- package/lib/mempool/index.js.map +1 -1
- package/lib/{rpc → mempool}/nonceQueuer.d.ts +1 -1
- package/lib/mempool/nonceQueuer.js.map +1 -0
- package/lib/mempool/reputationManager.d.ts +3 -2
- package/lib/mempool/reputationManager.js.map +1 -1
- package/lib/rpc/createMethodHandler.d.ts +31 -0
- package/lib/rpc/createMethodHandler.js +34 -0
- package/lib/rpc/createMethodHandler.js.map +1 -0
- package/lib/rpc/index.d.ts +0 -1
- package/lib/rpc/index.js +0 -1
- package/lib/rpc/index.js.map +1 -1
- package/lib/rpc/methods/debug_bundler_clearReputation.d.ts +22 -0
- package/lib/rpc/methods/debug_bundler_clearReputation.js +15 -0
- package/lib/rpc/methods/debug_bundler_clearReputation.js.map +1 -0
- package/lib/rpc/methods/debug_bundler_clearState.d.ts +22 -0
- package/lib/rpc/methods/debug_bundler_clearState.js +16 -0
- package/lib/rpc/methods/debug_bundler_clearState.js.map +1 -0
- package/lib/rpc/methods/debug_bundler_dumpMempool.d.ts +468 -0
- package/lib/rpc/methods/debug_bundler_dumpMempool.js +16 -0
- package/lib/rpc/methods/debug_bundler_dumpMempool.js.map +1 -0
- package/lib/rpc/methods/debug_bundler_dumpReputation.d.ts +57 -0
- package/lib/rpc/methods/debug_bundler_dumpReputation.js +16 -0
- package/lib/rpc/methods/debug_bundler_dumpReputation.js.map +1 -0
- package/lib/rpc/methods/debug_bundler_getStakeStatus.d.ts +79 -0
- package/lib/rpc/methods/debug_bundler_getStakeStatus.js +17 -0
- package/lib/rpc/methods/debug_bundler_getStakeStatus.js.map +1 -0
- package/lib/rpc/methods/debug_bundler_sendBundleNow.d.ts +22 -0
- package/lib/rpc/methods/debug_bundler_sendBundleNow.js +15 -0
- package/lib/rpc/methods/debug_bundler_sendBundleNow.js.map +1 -0
- package/lib/rpc/methods/debug_bundler_setBundlingMode.d.ts +22 -0
- package/lib/rpc/methods/debug_bundler_setBundlingMode.js +16 -0
- package/lib/rpc/methods/debug_bundler_setBundlingMode.js.map +1 -0
- package/lib/rpc/methods/debug_bundler_setReputation.d.ts +46 -0
- package/lib/rpc/methods/debug_bundler_setReputation.js +16 -0
- package/lib/rpc/methods/debug_bundler_setReputation.js.map +1 -0
- package/lib/rpc/methods/eth_chainId.d.ts +22 -0
- package/lib/rpc/methods/eth_chainId.js +13 -0
- package/lib/rpc/methods/eth_chainId.js.map +1 -0
- package/lib/rpc/methods/eth_estimateUserOperationGas.d.ts +979 -0
- package/lib/rpc/methods/eth_estimateUserOperationGas.js +21 -0
- package/lib/rpc/methods/eth_estimateUserOperationGas.js.map +1 -0
- package/lib/rpc/methods/eth_getUserOperationByHash.d.ts +878 -0
- package/lib/rpc/methods/eth_getUserOperationByHash.js +101 -0
- package/lib/rpc/methods/eth_getUserOperationByHash.js.map +1 -0
- package/lib/rpc/methods/eth_getUserOperationReceipt.d.ts +412 -0
- package/lib/rpc/methods/eth_getUserOperationReceipt.js +14 -0
- package/lib/rpc/methods/eth_getUserOperationReceipt.js.map +1 -0
- package/lib/rpc/methods/eth_sendUserOperation.d.ts +422 -0
- package/lib/rpc/methods/eth_sendUserOperation.js +33 -0
- package/lib/rpc/methods/eth_sendUserOperation.js.map +1 -0
- package/lib/rpc/methods/eth_supportedEntryPoints.d.ts +22 -0
- package/lib/rpc/methods/eth_supportedEntryPoints.js +13 -0
- package/lib/rpc/methods/eth_supportedEntryPoints.js.map +1 -0
- package/lib/rpc/methods/index.d.ts +3 -0
- package/lib/rpc/methods/index.js +49 -0
- package/lib/rpc/methods/index.js.map +1 -0
- package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.d.ts +979 -0
- package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js +23 -0
- package/lib/rpc/methods/pimlico_experimental_estimateUserOperationGas7702.js.map +1 -0
- package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.d.ts +422 -0
- package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js +19 -0
- package/lib/rpc/methods/pimlico_experimental_sendUserOperation7702.js.map +1 -0
- package/lib/rpc/methods/pimlico_getUserOperationGasPrice.d.ts +131 -0
- package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js +33 -0
- package/lib/rpc/methods/pimlico_getUserOperationGasPrice.js.map +1 -0
- package/lib/rpc/methods/pimlico_getUserOperationStatus.d.ts +43 -0
- package/lib/rpc/methods/pimlico_getUserOperationStatus.js +14 -0
- package/lib/rpc/methods/pimlico_getUserOperationStatus.js.map +1 -0
- package/lib/rpc/methods/pimlico_sendUserOperationNow.d.ts +812 -0
- package/lib/rpc/methods/pimlico_sendUserOperationNow.js +44 -0
- package/lib/rpc/methods/pimlico_sendUserOperationNow.js.map +1 -0
- package/lib/rpc/rpcHandler.d.ts +13 -104
- package/lib/rpc/rpcHandler.js +30 -369
- package/lib/rpc/rpcHandler.js.map +1 -1
- package/lib/rpc/server.d.ts +2 -2
- package/lib/rpc/server.js +1 -1
- package/lib/rpc/server.js.map +1 -1
- package/lib/rpc/validation/TracerResultParserV07.js +4 -4
- package/lib/rpc/validation/TracerResultParserV07.js.map +1 -1
- package/lib/types/schemas.d.ts +9368 -3502
- package/lib/types/schemas.js +261 -348
- package/lib/types/schemas.js.map +1 -1
- package/lib/utils/userop.d.ts +9 -9
- package/lib/utils/userop.js.map +1 -1
- package/package.json +2 -1
- package/esm/rpc/nonceQueuer.js.map +0 -1
- package/lib/rpc/nonceQueuer.js.map +0 -1
- /package/esm/{rpc → mempool}/nonceQueuer.js +0 -0
- /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"}
|