@pimlico/alto 0.0.0-prool.20240609T211112 → 0.0.0-prool.20240609T212524

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 (163) hide show
  1. package/esm/cli/alto.js +59 -28
  2. package/esm/cli/alto.js.map +1 -1
  3. package/esm/cli/config/bundler.d.ts +38 -38
  4. package/esm/cli/config/bundler.js +77 -74
  5. package/esm/cli/config/bundler.js.map +1 -1
  6. package/esm/cli/config/index.js +18 -2
  7. package/esm/cli/config/index.js.map +1 -1
  8. package/esm/cli/config/options.js +13 -10
  9. package/esm/cli/config/options.js.map +1 -1
  10. package/esm/cli/customTransport.js +11 -7
  11. package/esm/cli/customTransport.js.map +1 -1
  12. package/esm/cli/handler.js +28 -24
  13. package/esm/cli/handler.js.map +1 -1
  14. package/esm/cli/index.js +19 -3
  15. package/esm/cli/index.js.map +1 -1
  16. package/esm/cli/instrumentation.js +22 -20
  17. package/esm/cli/instrumentation.js.map +1 -1
  18. package/esm/cli/setupServer.js +21 -17
  19. package/esm/cli/setupServer.js.map +1 -1
  20. package/esm/cli/util.js +5 -1
  21. package/esm/cli/util.js.map +1 -1
  22. package/esm/executor/executor.js +84 -56
  23. package/esm/executor/executor.js.map +1 -1
  24. package/esm/executor/executorManager.js +11 -7
  25. package/esm/executor/executorManager.js.map +1 -1
  26. package/esm/executor/index.js +20 -4
  27. package/esm/executor/index.js.map +1 -1
  28. package/esm/executor/senderManager.js +12 -8
  29. package/esm/executor/senderManager.js.map +1 -1
  30. package/esm/executor/test/utils.js +28 -22
  31. package/esm/executor/test/utils.js.map +1 -1
  32. package/esm/executor/utils.js +61 -31
  33. package/esm/executor/utils.js.map +1 -1
  34. package/esm/mempool/index.js +20 -4
  35. package/esm/mempool/index.js.map +1 -1
  36. package/esm/mempool/mempool.js +59 -55
  37. package/esm/mempool/mempool.js.map +1 -1
  38. package/esm/mempool/monitoring.js +5 -1
  39. package/esm/mempool/monitoring.js.map +1 -1
  40. package/esm/mempool/nullMempool.js +5 -1
  41. package/esm/mempool/nullMempool.js.map +1 -1
  42. package/esm/mempool/reputationManager.js +49 -44
  43. package/esm/mempool/reputationManager.js.map +1 -1
  44. package/esm/mempool/store.js +5 -1
  45. package/esm/mempool/store.js.map +1 -1
  46. package/esm/rpc/EntryPointSimulationsV07.js +50 -44
  47. package/esm/rpc/EntryPointSimulationsV07.js.map +1 -1
  48. package/esm/rpc/ExecuteSimulator.js +5 -2
  49. package/esm/rpc/ExecuteSimulator.js.map +1 -1
  50. package/esm/rpc/gasEstimation.js +69 -62
  51. package/esm/rpc/gasEstimation.js.map +1 -1
  52. package/esm/rpc/index.js +20 -4
  53. package/esm/rpc/index.js.map +1 -1
  54. package/esm/rpc/nonceQueuer.js +20 -16
  55. package/esm/rpc/nonceQueuer.js.map +1 -1
  56. package/esm/rpc/rpcHandler.js +103 -76
  57. package/esm/rpc/rpcHandler.js.map +1 -1
  58. package/esm/rpc/server.js +58 -28
  59. package/esm/rpc/server.js.map +1 -1
  60. package/esm/rpc/validation/BundlerCollectorTracerV06.js +5 -1
  61. package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +1 -1
  62. package/esm/rpc/validation/BundlerCollectorTracerV07.js +5 -1
  63. package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +1 -1
  64. package/esm/rpc/validation/SafeValidator.js +69 -65
  65. package/esm/rpc/validation/SafeValidator.js.map +1 -1
  66. package/esm/rpc/validation/TracerResultParserV06.js +30 -26
  67. package/esm/rpc/validation/TracerResultParserV06.js.map +1 -1
  68. package/esm/rpc/validation/TracerResultParserV07.js +36 -29
  69. package/esm/rpc/validation/TracerResultParserV07.js.map +1 -1
  70. package/esm/rpc/validation/UnsafeValidator.js +73 -46
  71. package/esm/rpc/validation/UnsafeValidator.js.map +1 -1
  72. package/esm/rpc/validation/index.js +18 -2
  73. package/esm/rpc/validation/index.js.map +1 -1
  74. package/esm/rpc/validation/tracer.d.ts +1 -1
  75. package/esm/rpc/validation/tracer.js +37 -7
  76. package/esm/rpc/validation/tracer.js.map +1 -1
  77. package/esm/types/contracts/BundleBulker.js +4 -1
  78. package/esm/types/contracts/BundleBulker.js.map +1 -1
  79. package/esm/types/contracts/CallEngine.js +4 -1
  80. package/esm/types/contracts/CallEngine.js.map +1 -1
  81. package/esm/types/contracts/CodeHashGetter.js +5 -2
  82. package/esm/types/contracts/CodeHashGetter.js.map +1 -1
  83. package/esm/types/contracts/EntryPoint.js +7 -4
  84. package/esm/types/contracts/EntryPoint.js.map +1 -1
  85. package/esm/types/contracts/EntryPointSimulations.js +6 -3
  86. package/esm/types/contracts/EntryPointSimulations.js.map +1 -1
  87. package/esm/types/contracts/IOpInflator.js +4 -1
  88. package/esm/types/contracts/IOpInflator.js.map +1 -1
  89. package/esm/types/contracts/IPaymaster.js +4 -1
  90. package/esm/types/contracts/IPaymaster.js.map +1 -1
  91. package/esm/types/contracts/Inflator.js +4 -1
  92. package/esm/types/contracts/Inflator.js.map +1 -1
  93. package/esm/types/contracts/PerOpInflator.js +4 -1
  94. package/esm/types/contracts/PerOpInflator.js.map +1 -1
  95. package/esm/types/contracts/PimlicoEntryPointSimulations.js +5 -2
  96. package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +1 -1
  97. package/esm/types/contracts/SenderCreator.js +5 -2
  98. package/esm/types/contracts/SenderCreator.js.map +1 -1
  99. package/esm/types/contracts/SimpleAccountFactory.js +5 -2
  100. package/esm/types/contracts/SimpleAccountFactory.js.map +1 -1
  101. package/esm/types/contracts/TestOpcodesAccount.js +5 -2
  102. package/esm/types/contracts/TestOpcodesAccount.js.map +1 -1
  103. package/esm/types/contracts/TestOpcodesAccountFactory.js +5 -2
  104. package/esm/types/contracts/TestOpcodesAccountFactory.js.map +1 -1
  105. package/esm/types/contracts/TestStorageAccount.js +5 -2
  106. package/esm/types/contracts/TestStorageAccount.js.map +1 -1
  107. package/esm/types/contracts/index.js +32 -16
  108. package/esm/types/contracts/index.js.map +1 -1
  109. package/esm/types/gasPrice.js +17 -14
  110. package/esm/types/gasPrice.js.map +1 -1
  111. package/esm/types/index.js +26 -10
  112. package/esm/types/index.js.map +1 -1
  113. package/esm/types/interfaces.js +2 -1
  114. package/esm/types/mempool.js +10 -5
  115. package/esm/types/mempool.js.map +1 -1
  116. package/esm/types/schemas.d.ts +82 -82
  117. package/esm/types/schemas.js +284 -254
  118. package/esm/types/schemas.js.map +1 -1
  119. package/esm/types/test/validationTestErrors.js +5 -2
  120. package/esm/types/test/validationTestErrors.js.map +1 -1
  121. package/esm/types/utils.js +9 -5
  122. package/esm/types/utils.js.map +1 -1
  123. package/esm/types/validation.js +142 -139
  124. package/esm/types/validation.js.map +1 -1
  125. package/esm/utils/bigInt.js +7 -2
  126. package/esm/utils/bigInt.js.map +1 -1
  127. package/esm/utils/compressionHandler.js +11 -7
  128. package/esm/utils/compressionHandler.js.map +1 -1
  129. package/esm/utils/gasPriceManager.js +57 -30
  130. package/esm/utils/gasPriceManager.js.map +1 -1
  131. package/esm/utils/helpers.js +10 -5
  132. package/esm/utils/helpers.js.map +1 -1
  133. package/esm/utils/index.js +26 -10
  134. package/esm/utils/index.js.map +1 -1
  135. package/esm/utils/logger.js +19 -10
  136. package/esm/utils/logger.js.map +1 -1
  137. package/esm/utils/metrics.d.ts +4 -4
  138. package/esm/utils/metrics.js +24 -20
  139. package/esm/utils/metrics.js.map +1 -1
  140. package/esm/utils/rpc-reply.js +3 -1
  141. package/esm/utils/rpc-reply.js.map +1 -1
  142. package/esm/utils/test.d.ts +1 -1
  143. package/esm/utils/test.js +67 -36
  144. package/esm/utils/test.js.map +1 -1
  145. package/esm/utils/toArgs.js +11 -4
  146. package/esm/utils/toArgs.js.map +1 -1
  147. package/esm/utils/userop.js +107 -62
  148. package/esm/utils/userop.js.map +1 -1
  149. package/esm/utils/validation.js +99 -64
  150. package/esm/utils/validation.js.map +1 -1
  151. package/lib/cli/config/bundler.d.ts +37 -37
  152. package/lib/rpc/validation/tracer.d.ts +1 -1
  153. package/lib/types/schemas.d.ts +116 -116
  154. package/lib/types/validation.d.ts +12 -12
  155. package/lib/utils/metrics.d.ts +4 -4
  156. package/lib/utils/test.d.ts +1 -1
  157. package/package.json +3 -3
  158. package/esm/index.d.ts +0 -449
  159. package/esm/index.js +0 -64
  160. package/esm/index.js.map +0 -1
  161. package/lib/index.d.ts +0 -449
  162. package/lib/index.js +0 -67
  163. package/lib/index.js.map +0 -1
@@ -369,14 +369,14 @@ declare const jsonRpcSchema: z.ZodObject<{
369
369
  method: z.ZodString;
370
370
  params: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>, unknown[], unknown[] | undefined>;
371
371
  }, "strict", z.ZodTypeAny, {
372
- method: string;
373
372
  params: unknown[];
374
373
  jsonrpc: "2.0";
375
374
  id: number;
376
- }, {
377
375
  method: string;
376
+ }, {
378
377
  jsonrpc: "2.0";
379
378
  id: number;
379
+ method: string;
380
380
  params?: unknown[] | undefined;
381
381
  }>;
382
382
  declare const jsonRpcResultSchema: z.ZodObject<{
@@ -396,21 +396,21 @@ declare const chainIdRequestSchema: z.ZodObject<{
396
396
  method: z.ZodLiteral<"eth_chainId">;
397
397
  params: z.ZodTuple<[], null>;
398
398
  }, "strip", z.ZodTypeAny, {
399
- method: "eth_chainId";
400
399
  params: [];
401
- }, {
402
400
  method: "eth_chainId";
401
+ }, {
403
402
  params: [];
403
+ method: "eth_chainId";
404
404
  }>;
405
405
  declare const supportedEntryPointsRequestSchema: z.ZodObject<{
406
406
  method: z.ZodLiteral<"eth_supportedEntryPoints">;
407
407
  params: z.ZodTuple<[], null>;
408
408
  }, "strip", z.ZodTypeAny, {
409
- method: "eth_supportedEntryPoints";
410
409
  params: [];
411
- }, {
412
410
  method: "eth_supportedEntryPoints";
411
+ }, {
413
412
  params: [];
413
+ method: "eth_supportedEntryPoints";
414
414
  }>;
415
415
  declare const stateOverridesSchema: z.ZodRecord<z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodObject<{
416
416
  balance: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>>;
@@ -734,7 +734,6 @@ declare const estimateUserOperationGasRequestSchema: z.ZodObject<{
734
734
  stateDiff?: unknown;
735
735
  }>>], null>]>;
736
736
  }, "strip", z.ZodTypeAny, {
737
- method: "eth_estimateUserOperationGas";
738
737
  params: [{
739
738
  sender: `0x${string}`;
740
739
  nonce: bigint;
@@ -798,8 +797,8 @@ declare const estimateUserOperationGasRequestSchema: z.ZodObject<{
798
797
  state?: unknown;
799
798
  stateDiff?: unknown;
800
799
  }>>];
801
- }, {
802
800
  method: "eth_estimateUserOperationGas";
801
+ }, {
803
802
  params: [{
804
803
  sender: string;
805
804
  nonce: string | number | bigint;
@@ -863,6 +862,7 @@ declare const estimateUserOperationGasRequestSchema: z.ZodObject<{
863
862
  state?: unknown;
864
863
  stateDiff?: unknown;
865
864
  }>];
865
+ method: "eth_estimateUserOperationGas";
866
866
  }>;
867
867
  declare const sendUserOperationRequestSchema: z.ZodObject<{
868
868
  method: z.ZodLiteral<"eth_sendUserOperation">;
@@ -1008,7 +1008,6 @@ declare const sendUserOperationRequestSchema: z.ZodObject<{
1008
1008
  paymasterData?: string | null | undefined;
1009
1009
  }>]>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1010
1010
  }, "strip", z.ZodTypeAny, {
1011
- method: "eth_sendUserOperation";
1012
1011
  params: [{
1013
1012
  sender: `0x${string}`;
1014
1013
  nonce: bigint;
@@ -1038,8 +1037,8 @@ declare const sendUserOperationRequestSchema: z.ZodObject<{
1038
1037
  factoryData: `0x${string}` | null;
1039
1038
  paymasterData: `0x${string}` | null;
1040
1039
  }, `0x${string}`];
1041
- }, {
1042
1040
  method: "eth_sendUserOperation";
1041
+ }, {
1043
1042
  params: [{
1044
1043
  sender: string;
1045
1044
  nonce: string | number | bigint;
@@ -1069,76 +1068,77 @@ declare const sendUserOperationRequestSchema: z.ZodObject<{
1069
1068
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
1070
1069
  paymasterData?: string | null | undefined;
1071
1070
  }, string];
1071
+ method: "eth_sendUserOperation";
1072
1072
  }>;
1073
1073
  declare const getUserOperationByHashRequestSchema: z.ZodObject<{
1074
1074
  method: z.ZodLiteral<"eth_getUserOperationByHash">;
1075
1075
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1076
1076
  }, "strip", z.ZodTypeAny, {
1077
- method: "eth_getUserOperationByHash";
1078
1077
  params: [`0x${string}`];
1079
- }, {
1080
1078
  method: "eth_getUserOperationByHash";
1079
+ }, {
1081
1080
  params: [string];
1081
+ method: "eth_getUserOperationByHash";
1082
1082
  }>;
1083
1083
  declare const getUserOperationReceiptRequestSchema: z.ZodObject<{
1084
1084
  method: z.ZodLiteral<"eth_getUserOperationReceipt">;
1085
1085
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1086
1086
  }, "strip", z.ZodTypeAny, {
1087
- method: "eth_getUserOperationReceipt";
1088
1087
  params: [`0x${string}`];
1089
- }, {
1090
1088
  method: "eth_getUserOperationReceipt";
1089
+ }, {
1091
1090
  params: [string];
1091
+ method: "eth_getUserOperationReceipt";
1092
1092
  }>;
1093
1093
  declare const bundlerClearStateRequestSchema: z.ZodObject<{
1094
1094
  method: z.ZodLiteral<"debug_bundler_clearState">;
1095
1095
  params: z.ZodTuple<[], null>;
1096
1096
  }, "strip", z.ZodTypeAny, {
1097
- method: "debug_bundler_clearState";
1098
1097
  params: [];
1099
- }, {
1100
1098
  method: "debug_bundler_clearState";
1099
+ }, {
1101
1100
  params: [];
1101
+ method: "debug_bundler_clearState";
1102
1102
  }>;
1103
1103
  declare const bundlerClearMempoolRequestSchema: z.ZodObject<{
1104
1104
  method: z.ZodLiteral<"debug_bundler_clearMempool">;
1105
1105
  params: z.ZodTuple<[], null>;
1106
1106
  }, "strip", z.ZodTypeAny, {
1107
- method: "debug_bundler_clearMempool";
1108
1107
  params: [];
1109
- }, {
1110
1108
  method: "debug_bundler_clearMempool";
1109
+ }, {
1111
1110
  params: [];
1111
+ method: "debug_bundler_clearMempool";
1112
1112
  }>;
1113
1113
  declare const bundlerDumpMempoolRequestSchema: z.ZodObject<{
1114
1114
  method: z.ZodLiteral<"debug_bundler_dumpMempool">;
1115
1115
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1116
1116
  }, "strip", z.ZodTypeAny, {
1117
- method: "debug_bundler_dumpMempool";
1118
1117
  params: [`0x${string}`];
1119
- }, {
1120
1118
  method: "debug_bundler_dumpMempool";
1119
+ }, {
1121
1120
  params: [string];
1121
+ method: "debug_bundler_dumpMempool";
1122
1122
  }>;
1123
1123
  declare const bundlerSendBundleNowRequestSchema: z.ZodObject<{
1124
1124
  method: z.ZodLiteral<"debug_bundler_sendBundleNow">;
1125
1125
  params: z.ZodTuple<[], null>;
1126
1126
  }, "strip", z.ZodTypeAny, {
1127
- method: "debug_bundler_sendBundleNow";
1128
1127
  params: [];
1129
- }, {
1130
1128
  method: "debug_bundler_sendBundleNow";
1129
+ }, {
1131
1130
  params: [];
1131
+ method: "debug_bundler_sendBundleNow";
1132
1132
  }>;
1133
1133
  declare const bundlerSetBundlingModeRequestSchema: z.ZodObject<{
1134
1134
  method: z.ZodLiteral<"debug_bundler_setBundlingMode">;
1135
1135
  params: z.ZodTuple<[z.ZodEnum<["manual", "auto"]>], null>;
1136
1136
  }, "strip", z.ZodTypeAny, {
1137
+ params: ["auto" | "manual"];
1137
1138
  method: "debug_bundler_setBundlingMode";
1138
- params: ["manual" | "auto"];
1139
1139
  }, {
1140
+ params: ["auto" | "manual"];
1140
1141
  method: "debug_bundler_setBundlingMode";
1141
- params: ["manual" | "auto"];
1142
1142
  }>;
1143
1143
  declare const bundlerSetReputationsRequestSchema: z.ZodObject<{
1144
1144
  method: z.ZodLiteral<"debug_bundler_setReputation">;
@@ -1156,59 +1156,59 @@ declare const bundlerSetReputationsRequestSchema: z.ZodObject<{
1156
1156
  opsIncluded: string | number | bigint;
1157
1157
  }>, "many">, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1158
1158
  }, "strip", z.ZodTypeAny, {
1159
- method: "debug_bundler_setReputation";
1160
1159
  params: [{
1161
1160
  address: `0x${string}`;
1162
1161
  opsSeen: bigint;
1163
1162
  opsIncluded: bigint;
1164
1163
  }[], `0x${string}`];
1165
- }, {
1166
1164
  method: "debug_bundler_setReputation";
1165
+ }, {
1167
1166
  params: [{
1168
1167
  address: string;
1169
1168
  opsSeen: string | number | bigint;
1170
1169
  opsIncluded: string | number | bigint;
1171
1170
  }[], string];
1171
+ method: "debug_bundler_setReputation";
1172
1172
  }>;
1173
1173
  declare const bundlerDumpReputationsRequestSchema: z.ZodObject<{
1174
1174
  method: z.ZodLiteral<"debug_bundler_dumpReputation">;
1175
1175
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1176
1176
  }, "strip", z.ZodTypeAny, {
1177
- method: "debug_bundler_dumpReputation";
1178
1177
  params: [`0x${string}`];
1179
- }, {
1180
1178
  method: "debug_bundler_dumpReputation";
1179
+ }, {
1181
1180
  params: [string];
1181
+ method: "debug_bundler_dumpReputation";
1182
1182
  }>;
1183
1183
  declare const pimlicoGetStakeStatusRequestSchema: z.ZodObject<{
1184
1184
  method: z.ZodLiteral<"debug_bundler_getStakeStatus">;
1185
1185
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1186
1186
  }, "strip", z.ZodTypeAny, {
1187
- method: "debug_bundler_getStakeStatus";
1188
1187
  params: [`0x${string}`, `0x${string}`];
1189
- }, {
1190
1188
  method: "debug_bundler_getStakeStatus";
1189
+ }, {
1191
1190
  params: [string, string];
1191
+ method: "debug_bundler_getStakeStatus";
1192
1192
  }>;
1193
1193
  declare const pimlicoGetUserOperationStatusRequestSchema: z.ZodObject<{
1194
1194
  method: z.ZodLiteral<"pimlico_getUserOperationStatus">;
1195
1195
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1196
1196
  }, "strip", z.ZodTypeAny, {
1197
- method: "pimlico_getUserOperationStatus";
1198
1197
  params: [`0x${string}`];
1199
- }, {
1200
1198
  method: "pimlico_getUserOperationStatus";
1199
+ }, {
1201
1200
  params: [string];
1201
+ method: "pimlico_getUserOperationStatus";
1202
1202
  }>;
1203
1203
  declare const pimlicoGetUserOperationGasPriceRequestSchema: z.ZodObject<{
1204
1204
  method: z.ZodLiteral<"pimlico_getUserOperationGasPrice">;
1205
1205
  params: z.ZodTuple<[], null>;
1206
1206
  }, "strip", z.ZodTypeAny, {
1207
- method: "pimlico_getUserOperationGasPrice";
1208
1207
  params: [];
1209
- }, {
1210
1208
  method: "pimlico_getUserOperationGasPrice";
1209
+ }, {
1211
1210
  params: [];
1211
+ method: "pimlico_getUserOperationGasPrice";
1212
1212
  }>;
1213
1213
  export declare const altoVersions: z.ZodEnum<["v1", "v2"]>;
1214
1214
  export type AltoVersions = z.infer<typeof altoVersions>;
@@ -1216,20 +1216,20 @@ declare const bundlerRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObje
1216
1216
  method: z.ZodLiteral<"eth_chainId">;
1217
1217
  params: z.ZodTuple<[], null>;
1218
1218
  }, "strip", z.ZodTypeAny, {
1219
- method: "eth_chainId";
1220
1219
  params: [];
1221
- }, {
1222
1220
  method: "eth_chainId";
1221
+ }, {
1223
1222
  params: [];
1223
+ method: "eth_chainId";
1224
1224
  }>, z.ZodObject<{
1225
1225
  method: z.ZodLiteral<"eth_supportedEntryPoints">;
1226
1226
  params: z.ZodTuple<[], null>;
1227
1227
  }, "strip", z.ZodTypeAny, {
1228
- method: "eth_supportedEntryPoints";
1229
1228
  params: [];
1230
- }, {
1231
1229
  method: "eth_supportedEntryPoints";
1230
+ }, {
1232
1231
  params: [];
1232
+ method: "eth_supportedEntryPoints";
1233
1233
  }>, z.ZodObject<{
1234
1234
  method: z.ZodLiteral<"eth_estimateUserOperationGas">;
1235
1235
  params: z.ZodUnion<[z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodObject<{
@@ -1532,7 +1532,6 @@ declare const bundlerRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObje
1532
1532
  stateDiff?: unknown;
1533
1533
  }>>], null>]>;
1534
1534
  }, "strip", z.ZodTypeAny, {
1535
- method: "eth_estimateUserOperationGas";
1536
1535
  params: [{
1537
1536
  sender: `0x${string}`;
1538
1537
  nonce: bigint;
@@ -1596,8 +1595,8 @@ declare const bundlerRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObje
1596
1595
  state?: unknown;
1597
1596
  stateDiff?: unknown;
1598
1597
  }>>];
1599
- }, {
1600
1598
  method: "eth_estimateUserOperationGas";
1599
+ }, {
1601
1600
  params: [{
1602
1601
  sender: string;
1603
1602
  nonce: string | number | bigint;
@@ -1661,6 +1660,7 @@ declare const bundlerRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObje
1661
1660
  state?: unknown;
1662
1661
  stateDiff?: unknown;
1663
1662
  }>];
1663
+ method: "eth_estimateUserOperationGas";
1664
1664
  }>, z.ZodObject<{
1665
1665
  method: z.ZodLiteral<"eth_sendUserOperation">;
1666
1666
  params: z.ZodTuple<[z.ZodUnion<[z.ZodEffects<z.ZodObject<{
@@ -1805,7 +1805,6 @@ declare const bundlerRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObje
1805
1805
  paymasterData?: string | null | undefined;
1806
1806
  }>]>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1807
1807
  }, "strip", z.ZodTypeAny, {
1808
- method: "eth_sendUserOperation";
1809
1808
  params: [{
1810
1809
  sender: `0x${string}`;
1811
1810
  nonce: bigint;
@@ -1835,8 +1834,8 @@ declare const bundlerRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObje
1835
1834
  factoryData: `0x${string}` | null;
1836
1835
  paymasterData: `0x${string}` | null;
1837
1836
  }, `0x${string}`];
1838
- }, {
1839
1837
  method: "eth_sendUserOperation";
1838
+ }, {
1840
1839
  params: [{
1841
1840
  sender: string;
1842
1841
  nonce: string | number | bigint;
@@ -1866,69 +1865,70 @@ declare const bundlerRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObje
1866
1865
  paymasterPostOpGasLimit?: string | number | bigint | null | undefined;
1867
1866
  paymasterData?: string | null | undefined;
1868
1867
  }, string];
1868
+ method: "eth_sendUserOperation";
1869
1869
  }>, z.ZodObject<{
1870
1870
  method: z.ZodLiteral<"eth_getUserOperationByHash">;
1871
1871
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1872
1872
  }, "strip", z.ZodTypeAny, {
1873
- method: "eth_getUserOperationByHash";
1874
1873
  params: [`0x${string}`];
1875
- }, {
1876
1874
  method: "eth_getUserOperationByHash";
1875
+ }, {
1877
1876
  params: [string];
1877
+ method: "eth_getUserOperationByHash";
1878
1878
  }>, z.ZodObject<{
1879
1879
  method: z.ZodLiteral<"eth_getUserOperationReceipt">;
1880
1880
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1881
1881
  }, "strip", z.ZodTypeAny, {
1882
- method: "eth_getUserOperationReceipt";
1883
1882
  params: [`0x${string}`];
1884
- }, {
1885
1883
  method: "eth_getUserOperationReceipt";
1884
+ }, {
1886
1885
  params: [string];
1886
+ method: "eth_getUserOperationReceipt";
1887
1887
  }>, z.ZodObject<{
1888
1888
  method: z.ZodLiteral<"debug_bundler_clearState">;
1889
1889
  params: z.ZodTuple<[], null>;
1890
1890
  }, "strip", z.ZodTypeAny, {
1891
- method: "debug_bundler_clearState";
1892
1891
  params: [];
1893
- }, {
1894
1892
  method: "debug_bundler_clearState";
1893
+ }, {
1895
1894
  params: [];
1895
+ method: "debug_bundler_clearState";
1896
1896
  }>, z.ZodObject<{
1897
1897
  method: z.ZodLiteral<"debug_bundler_clearMempool">;
1898
1898
  params: z.ZodTuple<[], null>;
1899
1899
  }, "strip", z.ZodTypeAny, {
1900
- method: "debug_bundler_clearMempool";
1901
1900
  params: [];
1902
- }, {
1903
1901
  method: "debug_bundler_clearMempool";
1902
+ }, {
1904
1903
  params: [];
1904
+ method: "debug_bundler_clearMempool";
1905
1905
  }>, z.ZodObject<{
1906
1906
  method: z.ZodLiteral<"debug_bundler_dumpMempool">;
1907
1907
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1908
1908
  }, "strip", z.ZodTypeAny, {
1909
- method: "debug_bundler_dumpMempool";
1910
1909
  params: [`0x${string}`];
1911
- }, {
1912
1910
  method: "debug_bundler_dumpMempool";
1911
+ }, {
1913
1912
  params: [string];
1913
+ method: "debug_bundler_dumpMempool";
1914
1914
  }>, z.ZodObject<{
1915
1915
  method: z.ZodLiteral<"debug_bundler_sendBundleNow">;
1916
1916
  params: z.ZodTuple<[], null>;
1917
1917
  }, "strip", z.ZodTypeAny, {
1918
- method: "debug_bundler_sendBundleNow";
1919
1918
  params: [];
1920
- }, {
1921
1919
  method: "debug_bundler_sendBundleNow";
1920
+ }, {
1922
1921
  params: [];
1922
+ method: "debug_bundler_sendBundleNow";
1923
1923
  }>, z.ZodObject<{
1924
1924
  method: z.ZodLiteral<"debug_bundler_setBundlingMode">;
1925
1925
  params: z.ZodTuple<[z.ZodEnum<["manual", "auto"]>], null>;
1926
1926
  }, "strip", z.ZodTypeAny, {
1927
+ params: ["auto" | "manual"];
1927
1928
  method: "debug_bundler_setBundlingMode";
1928
- params: ["manual" | "auto"];
1929
1929
  }, {
1930
+ params: ["auto" | "manual"];
1930
1931
  method: "debug_bundler_setBundlingMode";
1931
- params: ["manual" | "auto"];
1932
1932
  }>, z.ZodObject<{
1933
1933
  method: z.ZodLiteral<"debug_bundler_setReputation">;
1934
1934
  params: z.ZodTuple<[z.ZodArray<z.ZodObject<{
@@ -1945,64 +1945,64 @@ declare const bundlerRequestSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObje
1945
1945
  opsIncluded: string | number | bigint;
1946
1946
  }>, "many">, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1947
1947
  }, "strip", z.ZodTypeAny, {
1948
- method: "debug_bundler_setReputation";
1949
1948
  params: [{
1950
1949
  address: `0x${string}`;
1951
1950
  opsSeen: bigint;
1952
1951
  opsIncluded: bigint;
1953
1952
  }[], `0x${string}`];
1954
- }, {
1955
1953
  method: "debug_bundler_setReputation";
1954
+ }, {
1956
1955
  params: [{
1957
1956
  address: string;
1958
1957
  opsSeen: string | number | bigint;
1959
1958
  opsIncluded: string | number | bigint;
1960
1959
  }[], string];
1960
+ method: "debug_bundler_setReputation";
1961
1961
  }>, z.ZodObject<{
1962
1962
  method: z.ZodLiteral<"debug_bundler_dumpReputation">;
1963
1963
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1964
1964
  }, "strip", z.ZodTypeAny, {
1965
- method: "debug_bundler_dumpReputation";
1966
1965
  params: [`0x${string}`];
1967
- }, {
1968
1966
  method: "debug_bundler_dumpReputation";
1967
+ }, {
1969
1968
  params: [string];
1969
+ method: "debug_bundler_dumpReputation";
1970
1970
  }>, z.ZodObject<{
1971
1971
  method: z.ZodLiteral<"debug_bundler_getStakeStatus">;
1972
1972
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1973
1973
  }, "strip", z.ZodTypeAny, {
1974
- method: "debug_bundler_getStakeStatus";
1975
1974
  params: [`0x${string}`, `0x${string}`];
1976
- }, {
1977
1975
  method: "debug_bundler_getStakeStatus";
1976
+ }, {
1978
1977
  params: [string, string];
1978
+ method: "debug_bundler_getStakeStatus";
1979
1979
  }>, z.ZodObject<{
1980
1980
  method: z.ZodLiteral<"pimlico_getUserOperationStatus">;
1981
1981
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
1982
1982
  }, "strip", z.ZodTypeAny, {
1983
- method: "pimlico_getUserOperationStatus";
1984
1983
  params: [`0x${string}`];
1985
- }, {
1986
1984
  method: "pimlico_getUserOperationStatus";
1985
+ }, {
1987
1986
  params: [string];
1987
+ method: "pimlico_getUserOperationStatus";
1988
1988
  }>, z.ZodObject<{
1989
1989
  method: z.ZodLiteral<"pimlico_getUserOperationGasPrice">;
1990
1990
  params: z.ZodTuple<[], null>;
1991
1991
  }, "strip", z.ZodTypeAny, {
1992
- method: "pimlico_getUserOperationGasPrice";
1993
1992
  params: [];
1994
- }, {
1995
1993
  method: "pimlico_getUserOperationGasPrice";
1994
+ }, {
1996
1995
  params: [];
1996
+ method: "pimlico_getUserOperationGasPrice";
1997
1997
  }>, z.ZodObject<{
1998
1998
  method: z.ZodLiteral<"pimlico_sendCompressedUserOperation">;
1999
1999
  params: z.ZodTuple<[z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
2000
2000
  }, "strip", z.ZodTypeAny, {
2001
- method: "pimlico_sendCompressedUserOperation";
2002
2001
  params: [`0x${string}`, `0x${string}`, `0x${string}`];
2003
- }, {
2004
2002
  method: "pimlico_sendCompressedUserOperation";
2003
+ }, {
2005
2004
  params: [string, string, string];
2005
+ method: "pimlico_sendCompressedUserOperation";
2006
2006
  }>]>;
2007
2007
  declare const chainIdResponseSchema: z.ZodObject<{
2008
2008
  method: z.ZodLiteral<"eth_chainId">;
@@ -2595,9 +2595,9 @@ declare const receiptSchema: z.ZodObject<{
2595
2595
  status: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>, z.ZodNull]>;
2596
2596
  effectiveGasPrice: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>;
2597
2597
  }, "strip", z.ZodTypeAny, {
2598
- status: bigint | null;
2599
2598
  to: `0x${string}` | null;
2600
2599
  gasUsed: bigint;
2600
+ status: bigint | null;
2601
2601
  blockNumber: bigint;
2602
2602
  blockHash: `0x${string}`;
2603
2603
  transactionHash: `0x${string}`;
@@ -2618,9 +2618,9 @@ declare const receiptSchema: z.ZodObject<{
2618
2618
  logsBloom: string;
2619
2619
  effectiveGasPrice: bigint;
2620
2620
  }, {
2621
- status: string | number | bigint | null;
2622
2621
  to: string | null;
2623
2622
  gasUsed: string | number | bigint;
2623
+ status: string | number | bigint | null;
2624
2624
  blockNumber: string | number | bigint;
2625
2625
  blockHash: string;
2626
2626
  transactionHash: string;
@@ -2723,9 +2723,9 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
2723
2723
  status: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>, z.ZodNull]>;
2724
2724
  effectiveGasPrice: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>;
2725
2725
  }, "strip", z.ZodTypeAny, {
2726
- status: bigint | null;
2727
2726
  to: `0x${string}` | null;
2728
2727
  gasUsed: bigint;
2728
+ status: bigint | null;
2729
2729
  blockNumber: bigint;
2730
2730
  blockHash: `0x${string}`;
2731
2731
  transactionHash: `0x${string}`;
@@ -2746,9 +2746,9 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
2746
2746
  logsBloom: string;
2747
2747
  effectiveGasPrice: bigint;
2748
2748
  }, {
2749
- status: string | number | bigint | null;
2750
2749
  to: string | null;
2751
2750
  gasUsed: string | number | bigint;
2751
+ status: string | number | bigint | null;
2752
2752
  blockNumber: string | number | bigint;
2753
2753
  blockHash: string;
2754
2754
  transactionHash: string;
@@ -2788,9 +2788,9 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
2788
2788
  topics: `0x${string}`[];
2789
2789
  }[];
2790
2790
  receipt: {
2791
- status: bigint | null;
2792
2791
  to: `0x${string}` | null;
2793
2792
  gasUsed: bigint;
2793
+ status: bigint | null;
2794
2794
  blockNumber: bigint;
2795
2795
  blockHash: `0x${string}`;
2796
2796
  transactionHash: `0x${string}`;
@@ -2832,9 +2832,9 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
2832
2832
  topics: string[];
2833
2833
  }[];
2834
2834
  receipt: {
2835
- status: string | number | bigint | null;
2836
2835
  to: string | null;
2837
2836
  gasUsed: string | number | bigint;
2837
+ status: string | number | bigint | null;
2838
2838
  blockNumber: string | number | bigint;
2839
2839
  blockHash: string;
2840
2840
  transactionHash: string;
@@ -2879,9 +2879,9 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
2879
2879
  topics: `0x${string}`[];
2880
2880
  }[];
2881
2881
  receipt: {
2882
- status: bigint | null;
2883
2882
  to: `0x${string}` | null;
2884
2883
  gasUsed: bigint;
2884
+ status: bigint | null;
2885
2885
  blockNumber: bigint;
2886
2886
  blockHash: `0x${string}`;
2887
2887
  transactionHash: `0x${string}`;
@@ -2926,9 +2926,9 @@ declare const getUserOperationReceiptResponseSchema: z.ZodObject<{
2926
2926
  topics: string[];
2927
2927
  }[];
2928
2928
  receipt: {
2929
- status: string | number | bigint | null;
2930
2929
  to: string | null;
2931
2930
  gasUsed: string | number | bigint;
2931
+ status: string | number | bigint | null;
2932
2932
  blockNumber: string | number | bigint;
2933
2933
  blockHash: string;
2934
2934
  transactionHash: string;
@@ -4024,9 +4024,9 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
4024
4024
  status: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>, z.ZodNull]>;
4025
4025
  effectiveGasPrice: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodNumber]>, z.ZodBigInt]>, bigint, string | number | bigint>;
4026
4026
  }, "strip", z.ZodTypeAny, {
4027
- status: bigint | null;
4028
4027
  to: `0x${string}` | null;
4029
4028
  gasUsed: bigint;
4029
+ status: bigint | null;
4030
4030
  blockNumber: bigint;
4031
4031
  blockHash: `0x${string}`;
4032
4032
  transactionHash: `0x${string}`;
@@ -4047,9 +4047,9 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
4047
4047
  logsBloom: string;
4048
4048
  effectiveGasPrice: bigint;
4049
4049
  }, {
4050
- status: string | number | bigint | null;
4051
4050
  to: string | null;
4052
4051
  gasUsed: string | number | bigint;
4052
+ status: string | number | bigint | null;
4053
4053
  blockNumber: string | number | bigint;
4054
4054
  blockHash: string;
4055
4055
  transactionHash: string;
@@ -4089,9 +4089,9 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
4089
4089
  topics: `0x${string}`[];
4090
4090
  }[];
4091
4091
  receipt: {
4092
- status: bigint | null;
4093
4092
  to: `0x${string}` | null;
4094
4093
  gasUsed: bigint;
4094
+ status: bigint | null;
4095
4095
  blockNumber: bigint;
4096
4096
  blockHash: `0x${string}`;
4097
4097
  transactionHash: `0x${string}`;
@@ -4133,9 +4133,9 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
4133
4133
  topics: string[];
4134
4134
  }[];
4135
4135
  receipt: {
4136
- status: string | number | bigint | null;
4137
4136
  to: string | null;
4138
4137
  gasUsed: string | number | bigint;
4138
+ status: string | number | bigint | null;
4139
4139
  blockNumber: string | number | bigint;
4140
4140
  blockHash: string;
4141
4141
  transactionHash: string;
@@ -4180,9 +4180,9 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
4180
4180
  topics: `0x${string}`[];
4181
4181
  }[];
4182
4182
  receipt: {
4183
- status: bigint | null;
4184
4183
  to: `0x${string}` | null;
4185
4184
  gasUsed: bigint;
4185
+ status: bigint | null;
4186
4186
  blockNumber: bigint;
4187
4187
  blockHash: `0x${string}`;
4188
4188
  transactionHash: `0x${string}`;
@@ -4227,9 +4227,9 @@ declare const bundlerResponseSchema: z.ZodDiscriminatedUnion<"method", [z.ZodObj
4227
4227
  topics: string[];
4228
4228
  }[];
4229
4229
  receipt: {
4230
- status: string | number | bigint | null;
4231
4230
  to: string | null;
4232
4231
  gasUsed: string | number | bigint;
4232
+ status: string | number | bigint | null;
4233
4233
  blockNumber: string | number | bigint;
4234
4234
  blockHash: string;
4235
4235
  transactionHash: string;