@pimlico/alto 0.0.0-main.20250612T161151 → 0.0.0-main.20250616T121440

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.
@@ -1,3 +1,4 @@
1
+ import { isVersion06, isVersion07 } from "../../utils/index.js";
1
2
  import { boostSendUserOperationSchema } from "../../types/schemas.js";
2
3
  import { createMethodHandler } from "../createMethodHandler.js";
3
4
  import { addToMempoolIfValid } from "./eth_sendUserOperation.js";
@@ -7,6 +8,19 @@ const validateUserOperation = ({ userOperation }) => {
7
8
  userOperation.maxPriorityFeePerGas !== 0n) {
8
9
  throw new RpcError("maxFeePerGas and maxPriorityFeePerGas must be 0 for a boosted user operation");
9
10
  }
11
+ if (isVersion06(userOperation)) {
12
+ if (userOperation.paymasterAndData !== "0x") {
13
+ throw new RpcError("Paymaster is not supported for boosted user operations. paymasterAndData must be '0x'");
14
+ }
15
+ }
16
+ if (isVersion07(userOperation)) {
17
+ if (userOperation.paymaster ||
18
+ userOperation.paymasterData ||
19
+ userOperation.paymasterPostOpGasLimit ||
20
+ userOperation.paymasterVerificationGasLimit) {
21
+ throw new RpcError("Paymaster is not supported for boosted user operations. All paymaster fields must be empty");
22
+ }
23
+ }
10
24
  };
11
25
  export const boostSendUserOperationHandler = createMethodHandler({
12
26
  method: "boost_sendUserOperation",
@@ -1 +1 @@
1
- {"version":3,"file":"boost_sendUserOperation.js","sourceRoot":"","sources":["../../../rpc/methods/boost_sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,4BAA4B,EAE/B,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,MAAM,qBAAqB,GAAG,CAAC,EAC3B,aAAa,EACkB,EAAE,EAAE;IACnC,IACI,aAAa,CAAC,YAAY,KAAK,EAAE;QACjC,aAAa,CAAC,oBAAoB,KAAK,EAAE,EAC3C,CAAC;QACC,MAAM,IAAI,QAAQ,CACd,8EAA8E,CACjF,CAAA;IACL,CAAC;AACL,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,6BAA6B,GAAG,mBAAmB,CAAC;IAC7D,MAAM,EAAE,yBAAyB;IACjC,MAAM,EAAE,4BAA4B;IACpC,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE;QAClD,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,GAAG,MAAM,CAAA;QAE1C,qBAAqB,CAAC,EAAE,aAAa,EAAE,CAAC,CAAA;QAExC,IAAI,MAAM,GAAoC,UAAU,CAAA;QACxD,IAAI,CAAC;YACD,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,mBAAmB,CAAC;gBACrD,UAAU;gBACV,aAAa;gBACb,UAAU;gBACV,UAAU;gBACV,KAAK,EAAE,IAAI;aACd,CAAC,CAAA;YAEF,MAAM,GAAG,MAAM,CAAA;YAEf,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;YAEhD,OAAO,UAAU,CAAA;QACrB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,GAAG,UAAU,CAAA;YACnB,MAAM,KAAK,CAAA;QACf,CAAC;gBAAS,CAAC;YACP,UAAU,CAAC,OAAO,CAAC,sBAAsB;iBACpC,MAAM,CAAC;gBACJ,MAAM;gBACN,IAAI,EAAE,OAAO;aAChB,CAAC;iBACD,GAAG,EAAE,CAAA;QACd,CAAC;IACL,CAAC;CACJ,CAAC,CAAA"}
1
+ {"version":3,"file":"boost_sendUserOperation.js","sourceRoot":"","sources":["../../../rpc/methods/boost_sendUserOperation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACtD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AE,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,mBAAmB,CAAC;gBACrD,UAAU;gBACV,aAAa;gBACb,UAAU;gBACV,UAAU;gBACV,KAAK,EAAE,IAAI;aACd,CAAC,CAAA;YAEF,MAAM,GAAG,MAAM,CAAA;YAEf,UAAU,CAAC,YAAY,CAAC,YAAY,CAAC,UAAU,CAAC,CAAA;YAEhD,OAAO,UAAU,CAAA;QACrB,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,GAAG,UAAU,CAAA;YACnB,MAAM,KAAK,CAAA;QACf,CAAC;gBAAS,CAAC;YACP,UAAU,CAAC,OAAO,CAAC,sBAAsB;iBACpC,MAAM,CAAC;gBACJ,MAAM;gBACN,IAAI,EAAE,OAAO;aAChB,CAAC;iBACD,GAAG,EAAE,CAAA;QACd,CAAC;IACL,CAAC;CACJ,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pimlico/alto",
3
- "version": "0.0.0-main.20250612T161151",
3
+ "version": "0.0.0-main.20250616T121440",
4
4
  "description": "A performant and modular ERC-4337 Bundler written in Typescript",
5
5
  "repository": "https://github.com/pimlicolabs/alto.git",
6
6
  "author": "Pimlico",