@pimlico/alto 0.0.0-main.20240607T034324 → 0.0.0-staging.20240606T093925

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 (238) hide show
  1. package/lib/cli/index.d.ts +0 -1
  2. package/lib/cli/index.js +0 -1
  3. package/lib/cli/index.js.map +1 -1
  4. package/lib/executor/executor.js +0 -6
  5. package/lib/executor/executor.js.map +1 -1
  6. package/lib/executor/executorManager.js +0 -1
  7. package/lib/executor/executorManager.js.map +1 -1
  8. package/lib/executor/utils.js +1 -3
  9. package/lib/executor/utils.js.map +1 -1
  10. package/lib/index.d.ts +5 -1
  11. package/lib/index.js +120 -1
  12. package/lib/index.js.map +1 -1
  13. package/lib/rpc/server.js +1 -2
  14. package/lib/rpc/server.js.map +1 -1
  15. package/lib/types/mempool.d.ts +1 -2
  16. package/package.json +67 -70
  17. package/esm/cli/alto.d.ts +0 -6
  18. package/esm/cli/alto.js +0 -92
  19. package/esm/cli/alto.js.map +0 -1
  20. package/esm/cli/config/bundler.d.ts +0 -391
  21. package/esm/cli/config/bundler.js +0 -132
  22. package/esm/cli/config/bundler.js.map +0 -1
  23. package/esm/cli/config/index.d.ts +0 -3
  24. package/esm/cli/config/index.js +0 -3
  25. package/esm/cli/config/index.js.map +0 -1
  26. package/esm/cli/config/options.d.ts +0 -11
  27. package/esm/cli/config/options.js +0 -336
  28. package/esm/cli/config/options.js.map +0 -1
  29. package/esm/cli/customTransport.d.ts +0 -14
  30. package/esm/cli/customTransport.js +0 -53
  31. package/esm/cli/customTransport.js.map +0 -1
  32. package/esm/cli/handler.d.ts +0 -3
  33. package/esm/cli/handler.js +0 -116
  34. package/esm/cli/handler.js.map +0 -1
  35. package/esm/cli/index.d.ts +0 -4
  36. package/esm/cli/index.js +0 -4
  37. package/esm/cli/index.js.map +0 -1
  38. package/esm/cli/instrumentation.d.ts +0 -2
  39. package/esm/cli/instrumentation.js +0 -39
  40. package/esm/cli/instrumentation.js.map +0 -1
  41. package/esm/cli/setupServer.d.ts +0 -17
  42. package/esm/cli/setupServer.js +0 -155
  43. package/esm/cli/setupServer.js.map +0 -1
  44. package/esm/cli/util.d.ts +0 -22
  45. package/esm/cli/util.js +0 -30
  46. package/esm/cli/util.js.map +0 -1
  47. package/esm/executor/executor.d.ts +0 -54
  48. package/esm/executor/executor.js +0 -643
  49. package/esm/executor/executor.js.map +0 -1
  50. package/esm/executor/executorManager.d.ts +0 -34
  51. package/esm/executor/executorManager.js +0 -402
  52. package/esm/executor/executorManager.js.map +0 -1
  53. package/esm/executor/index.d.ts +0 -5
  54. package/esm/executor/index.js +0 -5
  55. package/esm/executor/index.js.map +0 -1
  56. package/esm/executor/senderManager.d.ts +0 -17
  57. package/esm/executor/senderManager.js +0 -160
  58. package/esm/executor/senderManager.js.map +0 -1
  59. package/esm/executor/test/utils.d.ts +0 -13
  60. package/esm/executor/test/utils.js +0 -75
  61. package/esm/executor/test/utils.js.map +0 -1
  62. package/esm/executor/utils.d.ts +0 -32
  63. package/esm/executor/utils.js +0 -241
  64. package/esm/executor/utils.js.map +0 -1
  65. package/esm/index.d.ts +0 -2
  66. package/esm/index.js +0 -2
  67. package/esm/index.js.map +0 -1
  68. package/esm/mempool/index.d.ts +0 -5
  69. package/esm/mempool/index.js +0 -5
  70. package/esm/mempool/index.js.map +0 -1
  71. package/esm/mempool/mempool.d.ts +0 -64
  72. package/esm/mempool/mempool.js +0 -489
  73. package/esm/mempool/mempool.js.map +0 -1
  74. package/esm/mempool/monitoring.d.ts +0 -10
  75. package/esm/mempool/monitoring.js +0 -34
  76. package/esm/mempool/monitoring.js.map +0 -1
  77. package/esm/mempool/nullMempool.d.ts +0 -15
  78. package/esm/mempool/nullMempool.js +0 -36
  79. package/esm/mempool/nullMempool.js.map +0 -1
  80. package/esm/mempool/reputationManager.d.ts +0 -115
  81. package/esm/mempool/reputationManager.js +0 -397
  82. package/esm/mempool/reputationManager.js.map +0 -1
  83. package/esm/mempool/store.d.ts +0 -22
  84. package/esm/mempool/store.js +0 -123
  85. package/esm/mempool/store.js.map +0 -1
  86. package/esm/rpc/EntryPointSimulationsV07.d.ts +0 -58
  87. package/esm/rpc/EntryPointSimulationsV07.js +0 -407
  88. package/esm/rpc/EntryPointSimulationsV07.js.map +0 -1
  89. package/esm/rpc/ExecuteSimulator.d.ts +0 -37
  90. package/esm/rpc/ExecuteSimulator.js +0 -48
  91. package/esm/rpc/ExecuteSimulator.js.map +0 -1
  92. package/esm/rpc/gasEstimation.d.ts +0 -17
  93. package/esm/rpc/gasEstimation.js +0 -410
  94. package/esm/rpc/gasEstimation.js.map +0 -1
  95. package/esm/rpc/index.d.ts +0 -5
  96. package/esm/rpc/index.js +0 -5
  97. package/esm/rpc/index.js.map +0 -1
  98. package/esm/rpc/nonceQueuer.d.ts +0 -25
  99. package/esm/rpc/nonceQueuer.js +0 -135
  100. package/esm/rpc/nonceQueuer.js.map +0 -1
  101. package/esm/rpc/rpcHandler.d.ts +0 -64
  102. package/esm/rpc/rpcHandler.js +0 -727
  103. package/esm/rpc/rpcHandler.js.map +0 -1
  104. package/esm/rpc/server.d.ts +0 -31
  105. package/esm/rpc/server.js +0 -239
  106. package/esm/rpc/server.js.map +0 -1
  107. package/esm/rpc/validation/BundlerCollectorTracerV06.d.ts +0 -102
  108. package/esm/rpc/validation/BundlerCollectorTracerV06.js +0 -255
  109. package/esm/rpc/validation/BundlerCollectorTracerV06.js.map +0 -1
  110. package/esm/rpc/validation/BundlerCollectorTracerV07.d.ts +0 -102
  111. package/esm/rpc/validation/BundlerCollectorTracerV07.js +0 -254
  112. package/esm/rpc/validation/BundlerCollectorTracerV07.js.map +0 -1
  113. package/esm/rpc/validation/SafeValidator.d.ts +0 -35
  114. package/esm/rpc/validation/SafeValidator.js +0 -487
  115. package/esm/rpc/validation/SafeValidator.js.map +0 -1
  116. package/esm/rpc/validation/TracerResultParserV06.d.ts +0 -13
  117. package/esm/rpc/validation/TracerResultParserV06.js +0 -578
  118. package/esm/rpc/validation/TracerResultParserV06.js.map +0 -1
  119. package/esm/rpc/validation/TracerResultParserV07.d.ts +0 -33
  120. package/esm/rpc/validation/TracerResultParserV07.js +0 -557
  121. package/esm/rpc/validation/TracerResultParserV07.js.map +0 -1
  122. package/esm/rpc/validation/UnsafeValidator.d.ts +0 -63
  123. package/esm/rpc/validation/UnsafeValidator.js +0 -257
  124. package/esm/rpc/validation/UnsafeValidator.js.map +0 -1
  125. package/esm/rpc/validation/index.d.ts +0 -3
  126. package/esm/rpc/validation/index.js +0 -3
  127. package/esm/rpc/validation/index.js.map +0 -1
  128. package/esm/rpc/validation/tracer.d.ts +0 -122
  129. package/esm/rpc/validation/tracer.js +0 -82
  130. package/esm/rpc/validation/tracer.js.map +0 -1
  131. package/esm/types/contracts/BundleBulker.d.ts +0 -120
  132. package/esm/types/contracts/BundleBulker.js +0 -157
  133. package/esm/types/contracts/BundleBulker.js.map +0 -1
  134. package/esm/types/contracts/CallEngine.d.ts +0 -28
  135. package/esm/types/contracts/CallEngine.js +0 -37
  136. package/esm/types/contracts/CallEngine.js.map +0 -1
  137. package/esm/types/contracts/CodeHashGetter.d.ts +0 -37
  138. package/esm/types/contracts/CodeHashGetter.js +0 -45
  139. package/esm/types/contracts/CodeHashGetter.js.map +0 -1
  140. package/esm/types/contracts/EntryPoint.d.ts +0 -1789
  141. package/esm/types/contracts/EntryPoint.js +0 -2304
  142. package/esm/types/contracts/EntryPoint.js.map +0 -1
  143. package/esm/types/contracts/EntryPointSimulations.d.ts +0 -153
  144. package/esm/types/contracts/EntryPointSimulations.js +0 -15
  145. package/esm/types/contracts/EntryPointSimulations.js.map +0 -1
  146. package/esm/types/contracts/IOpInflator.d.ts +0 -61
  147. package/esm/types/contracts/IOpInflator.js +0 -80
  148. package/esm/types/contracts/IOpInflator.js.map +0 -1
  149. package/esm/types/contracts/IPaymaster.d.ts +0 -3
  150. package/esm/types/contracts/IPaymaster.js +0 -117
  151. package/esm/types/contracts/IPaymaster.js.map +0 -1
  152. package/esm/types/contracts/Inflator.d.ts +0 -65
  153. package/esm/types/contracts/Inflator.js +0 -84
  154. package/esm/types/contracts/Inflator.js.map +0 -1
  155. package/esm/types/contracts/PerOpInflator.d.ts +0 -176
  156. package/esm/types/contracts/PerOpInflator.js +0 -229
  157. package/esm/types/contracts/PerOpInflator.js.map +0 -1
  158. package/esm/types/contracts/PimlicoEntryPointSimulations.d.ts +0 -23
  159. package/esm/types/contracts/PimlicoEntryPointSimulations.js +0 -33
  160. package/esm/types/contracts/PimlicoEntryPointSimulations.js.map +0 -1
  161. package/esm/types/contracts/SenderCreator.d.ts +0 -4
  162. package/esm/types/contracts/SenderCreator.js +0 -23
  163. package/esm/types/contracts/SenderCreator.js.map +0 -1
  164. package/esm/types/contracts/SimpleAccountFactory.d.ts +0 -57
  165. package/esm/types/contracts/SimpleAccountFactory.js +0 -76
  166. package/esm/types/contracts/SimpleAccountFactory.js.map +0 -1
  167. package/esm/types/contracts/TestOpcodesAccount.d.ts +0 -4
  168. package/esm/types/contracts/TestOpcodesAccount.js +0 -281
  169. package/esm/types/contracts/TestOpcodesAccount.js.map +0 -1
  170. package/esm/types/contracts/TestOpcodesAccountFactory.d.ts +0 -4
  171. package/esm/types/contracts/TestOpcodesAccountFactory.js +0 -23
  172. package/esm/types/contracts/TestOpcodesAccountFactory.js.map +0 -1
  173. package/esm/types/contracts/TestStorageAccount.d.ts +0 -4
  174. package/esm/types/contracts/TestStorageAccount.js +0 -313
  175. package/esm/types/contracts/TestStorageAccount.js.map +0 -1
  176. package/esm/types/contracts/index.d.ts +0 -17
  177. package/esm/types/contracts/index.js +0 -17
  178. package/esm/types/contracts/index.js.map +0 -1
  179. package/esm/types/gasPrice.d.ts +0 -110
  180. package/esm/types/gasPrice.js +0 -52
  181. package/esm/types/gasPrice.js.map +0 -1
  182. package/esm/types/index.d.ts +0 -11
  183. package/esm/types/index.js +0 -11
  184. package/esm/types/index.js.map +0 -1
  185. package/esm/types/interfaces.d.ts +0 -26
  186. package/esm/types/interfaces.js +0 -2
  187. package/esm/types/interfaces.js.map +0 -1
  188. package/esm/types/mempool.d.ts +0 -79
  189. package/esm/types/mempool.js +0 -16
  190. package/esm/types/mempool.js.map +0 -1
  191. package/esm/types/schemas.d.ts +0 -4791
  192. package/esm/types/schemas.js +0 -497
  193. package/esm/types/schemas.js.map +0 -1
  194. package/esm/types/test/validationTestErrors.d.ts +0 -3
  195. package/esm/types/test/validationTestErrors.js +0 -229
  196. package/esm/types/test/validationTestErrors.js.map +0 -1
  197. package/esm/types/utils.d.ts +0 -24
  198. package/esm/types/utils.js +0 -30
  199. package/esm/types/utils.js.map +0 -1
  200. package/esm/types/validation.d.ts +0 -14327
  201. package/esm/types/validation.js +0 -304
  202. package/esm/types/validation.js.map +0 -1
  203. package/esm/utils/bigInt.d.ts +0 -3
  204. package/esm/utils/bigInt.js +0 -9
  205. package/esm/utils/bigInt.js.map +0 -1
  206. package/esm/utils/compressionHandler.d.ts +0 -11
  207. package/esm/utils/compressionHandler.js +0 -39
  208. package/esm/utils/compressionHandler.js.map +0 -1
  209. package/esm/utils/gasPriceManager.d.ts +0 -34
  210. package/esm/utils/gasPriceManager.js +0 -338
  211. package/esm/utils/gasPriceManager.js.map +0 -1
  212. package/esm/utils/helpers.d.ts +0 -4
  213. package/esm/utils/helpers.js +0 -13
  214. package/esm/utils/helpers.js.map +0 -1
  215. package/esm/utils/index.d.ts +0 -11
  216. package/esm/utils/index.js +0 -10
  217. package/esm/utils/index.js.map +0 -1
  218. package/esm/utils/logger.d.ts +0 -6
  219. package/esm/utils/logger.js +0 -76
  220. package/esm/utils/logger.js.map +0 -1
  221. package/esm/utils/metrics.d.ts +0 -22
  222. package/esm/utils/metrics.js +0 -150
  223. package/esm/utils/metrics.js.map +0 -1
  224. package/esm/utils/rpc-reply.d.ts +0 -17
  225. package/esm/utils/rpc-reply.js +0 -41
  226. package/esm/utils/rpc-reply.js.map +0 -1
  227. package/esm/utils/test.d.ts +0 -17
  228. package/esm/utils/test.js +0 -130
  229. package/esm/utils/test.js.map +0 -1
  230. package/esm/utils/userop.d.ts +0 -49
  231. package/esm/utils/userop.js +0 -408
  232. package/esm/utils/userop.js.map +0 -1
  233. package/esm/utils/validation.d.ts +0 -65
  234. package/esm/utils/validation.js +0 -461
  235. package/esm/utils/validation.js.map +0 -1
  236. package/lib/cli/alto.d.ts +0 -6
  237. package/lib/cli/alto.js +0 -123
  238. package/lib/cli/alto.js.map +0 -1
@@ -1,4 +0,0 @@
1
- import type { Abi, AbiConstructor } from "abitype";
2
- export declare const TestStorageAccountAbi: Exclude<Abi, AbiConstructor>;
3
- export declare const TestStorageAccountBytecode = "0x608060405234801561001057600080fd5b50611103806100206000396000f3fe60806040526004361061007b5760003560e01c8063a9a234091161004e578063a9a2340914610140578063a9e966b714610161578063cd330fb014610181578063f465c77e146101a157600080fd5b8063107679041461008057806311df9995146100955780633a871cdd146100d257806382e46b7514610100575b600080fd5b61009361008e366004610d1a565b6101cf565b005b3480156100a157600080fd5b506001546100b5906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100de57600080fd5b506100f26100ed366004610d3e565b61022d565b6040519081526020016100c9565b34801561010c57600080fd5b506100f261011b366004610d1a565b600180546001600160a01b0319166001600160a01b0392909216919091179055600090565b34801561014c57600080fd5b5061009361015b366004610d92565b50505050565b34801561016d57600080fd5b5061009361017c366004610e21565b6102d7565b34801561018d57600080fd5b506100f261019c366004610e50565b610318565b3480156101ad57600080fd5b506101c16101bc366004610d3e565b610a40565b6040516100c9929190610f59565b604051621cb65b60e51b8152600160048201526001600160a01b03821690630396cb609034906024016000604051808303818588803b15801561021157600080fd5b505af1158015610225573d6000803e3d6000fd5b505050505050565b6000811561028157604051600090339084908381818185875af1925050503d8060008114610277576040519150601f19603f3d011682016040523d82523d6000602084013e61027c565b606091505b505050505b6102cc610292610140860186610f7b565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061031892505050565b506000949350505050565b60005460408051918252602082018390527fe56f542cbdb0e18291d73ec9fd0b443112d0b4f547479e1303ffbc1007cc4f0f910160405180910390a1600055565b604080518082019091526006815265373ab6b132b960d11b6020918201528151908201206000907ff648814c67221440671fd7c2de979db4020a9320fb7985ff79ca8e7dced277f80361036c575043919050565b60408051808201909152600c81526b3130b630b731b296b9b2b63360a11b6020918201528251908301207fe1eb40348c4d42c6f93b840cbedec69afb249b96fd8af4bcbeed87fcef3815d80361042f576001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a08231906024015b602060405180830381865afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104299190610fc9565b92915050565b60408051808201909152600981526836b4b73a16b9b2b63360b91b6020918201528251908301207f39509d2173ec8a4262a15fa569ebaeed05ddef813417dbd2877e415703355b6e036104c7576001546040516335313c2160e11b81523060048201526001600160a01b0390911690636a627842906024015b6020604051808303816000875af1158015610405573d6000803e3d6000fd5b60408051808201909152600981526862616c616e63652d3160b81b6020918201528251908301207f48bf62c98ebd199a8c4fa7e17d20fdbda06a014deb397741460366ff7e1e07550361054557600180546040516370a0823160e01b815260048101929092526001600160a01b0316906370a08231906024016103e8565b6040805180820190915260068152656d696e742d3160d01b6020918201528251908301207ff794573481a09002e3e46f42daa5499159620e2a2cc3f5bdd26c0a2669544d93036105c057600180546040516335313c2160e11b815260048101929092526001600160a01b031690636a627842906024016104a8565b6040805180820190915260098152683932b0b216b9b2b63360b91b6020918201528251908301207fe747e51a5f7ad590b9fccede410368a5290f3882b98279585394331e760e1f270361061e5750506001546001600160a01b031690565b60408051808201909152601081526f616c6c6f77616e63652d73656c662d3160801b6020918201528251908301207fcc3befdbd4c845f2f5f48ac59e621de2a47c26950d22d6092b4c2ffafdfc7f9f036106a95760018054604051636eb1769f60e11b815230600482015260248101929092526001600160a01b03169063dd62ed3e906044016103e8565b60408051808201909152601081526f30b63637bbb0b731b2969896b9b2b63360811b6020918201528251908301207f46b549298973374f07ae868394b73f37c1cf6f25e976e36f99f1abbe6a5284e6036107345760018054604051636eb1769f60e11b815260048101929092523060248301526001600160a01b03169063dd62ed3e906044016103e8565b60408051808201909152600b81526a39ba393ab1ba16b9b2b63360a91b6020918201528251908301207e05e75ff00cb9bce888bba342b06e4b9d4695ba7caf0afdef7ef8cf6735bb7d036107fe5760015460405160016222a30f60e01b031981523060048201526001600160a01b039091169063ffdd5cf1906024015b6060604051808303816000875af11580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f49190610fe2565b6040015192915050565b6040805180820190915260088152677374727563742d3160c01b6020918201528251908301207f416c09f102f2ef6799166d01fa870b6995b38e93784afdbdda0c68b94ab7eadd0361087e576001805460405160016222a30f60e01b0319815260048101929092526001600160a01b03169063ffdd5cf1906024016107b1565b60408051808201909152600c81526b1a5b9b995c8b5c995d995c9d60a21b6020918201528251908301207fc78ed5b2fc828eecd2c4fb3d39653e18c93b7d1815a5571aa088439dec36211a0361096c5760015460408051640100000000600160c01b03602084811b919091166325d9185c17831b908201526000926001600160a01b0316910160408051601f198184030181529082905261091e9161103e565b6000604051808303816000865af19150503d806000811461095b576040519150601f19603f3d011682016040523d82523d6000602084013e610960565b606091505b50600095945050505050565b6040805180820190915260038152626f6f6760e81b6020918201528251908301207f106495a8f613c9fc38a970d5fb1d6be2ed483721cd6d69eb72a826a46ca87b0503610a3757600160009054906101000a90046001600160a01b03166001600160a01b0316633b6a02f66127106040518263ffffffff1660e01b815260040160206040518083038160008887f193505050508015610a28575060408051601f3d908101601f19168201909252610a2591810190610fc9565b60015b15610a2f57505b506000919050565b61042982610b31565b6060600080610a53610120870187610f7b565b610a6191601490829061105a565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152600e81526d1c1bdcdd13dc0b58dbdb9d195e1d60921b60209182015283519084012092935050507fa5c5a2573a01687081241ad21c031e4220a49723dbd63e3fcdfcf266f286434203610b1857505060408051808201909152600c81526b1cdbdb594b58dbdb9d195e1d60a21b602082015290506000610b29565b610b23868686610c80565b92509250505b935093915050565b6040805160208082019092526000908190528251918301919091207fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47003610b7a57506000919050565b6040805180820190915260028152616f6b60f01b6020918201528251908301207f14502d3ab34ae28d404da8f6ec0501c6f295f66caa41e122cfa9b1291bc0f9e803610bc857506000919050565b60408051808201909152600481526319985a5b60e21b6020918201528251908301207f3b2564d7e0fe091d49b4c20f4632191e4ed6986bf993849879abfef9465def2503610c495760405162461bcd60e51b81526020600482015260096024820152686661696c2072756c6560b81b60448201526064015b60405180910390fd5b81604051602001610c5a9190611084565b60408051601f198184030181529082905262461bcd60e51b8252610c40916004016110ba565b6060600080610c93610120870187610f7b565b610ca191601490829061105a565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929350610ce492508391506103189050565b50506040805160208101909152600080825290969095509350505050565b6001600160a01b0381168114610d1757600080fd5b50565b600060208284031215610d2c57600080fd5b8135610d3781610d02565b9392505050565b600080600060608486031215610d5357600080fd5b833567ffffffffffffffff811115610d6a57600080fd5b84016101608187031215610d7d57600080fd5b95602085013595506040909401359392505050565b60008060008060608587031215610da857600080fd5b843560038110610db757600080fd5b9350602085013567ffffffffffffffff80821115610dd457600080fd5b818701915087601f830112610de857600080fd5b813581811115610df757600080fd5b886020828501011115610e0957600080fd5b95986020929092019750949560400135945092505050565b600060208284031215610e3357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610e6257600080fd5b813567ffffffffffffffff80821115610e7a57600080fd5b818401915084601f830112610e8e57600080fd5b813581811115610ea057610ea0610e3a565b604051601f8201601f19908116603f01168101908382118183101715610ec857610ec8610e3a565b81604052828152876020848701011115610ee157600080fd5b826020860160208301376000928101602001929092525095945050505050565b60005b83811015610f1c578181015183820152602001610f04565b8381111561015b5750506000910152565b60008151808452610f45816020860160208601610f01565b601f01601f19169290920160200192915050565b604081526000610f6c6040830185610f2d565b90508260208301529392505050565b6000808335601e19843603018112610f9257600080fd5b83018035915067ffffffffffffffff821115610fad57600080fd5b602001915036819003821315610fc257600080fd5b9250929050565b600060208284031215610fdb57600080fd5b5051919050565b600060608284031215610ff457600080fd5b6040516060810181811067ffffffffffffffff8211171561101757611017610e3a565b80604052508251815260208301516020820152604083015160408201528091505092915050565b60008251611050818460208701610f01565b9190910192915050565b6000808585111561106a57600080fd5b8386111561107757600080fd5b5050820193919092039150565b6d03ab735b737bbb710393ab6329d160951b8152600082516110ad81600e850160208701610f01565b91909101600e0192915050565b602081526000610d376020830184610f2d56fea2646970667358221220574b6029aec2914882063fae6590155da5a4c11dc20c39e193b554aa58e9d09364736f6c634300080f0033";
4
- //# sourceMappingURL=TestStorageAccount.d.ts.map
@@ -1,313 +0,0 @@
1
- export const TestStorageAccountAbi = [
2
- {
3
- anonymous: false,
4
- inputs: [
5
- {
6
- indexed: false,
7
- internalType: "uint256",
8
- name: "oldState",
9
- type: "uint256"
10
- },
11
- {
12
- indexed: false,
13
- internalType: "uint256",
14
- name: "newState",
15
- type: "uint256"
16
- }
17
- ],
18
- name: "State",
19
- type: "event"
20
- },
21
- {
22
- anonymous: false,
23
- inputs: [
24
- {
25
- indexed: false,
26
- internalType: "address",
27
- name: "eventSender",
28
- type: "address"
29
- }
30
- ],
31
- name: "TestMessage",
32
- type: "event"
33
- },
34
- {
35
- inputs: [
36
- {
37
- internalType: "contract IEntryPoint",
38
- name: "entryPoint",
39
- type: "address"
40
- }
41
- ],
42
- name: "addStake",
43
- outputs: [],
44
- stateMutability: "payable",
45
- type: "function"
46
- },
47
- {
48
- inputs: [],
49
- name: "coin",
50
- outputs: [
51
- {
52
- internalType: "contract TestCoin",
53
- name: "",
54
- type: "address"
55
- }
56
- ],
57
- stateMutability: "view",
58
- type: "function"
59
- },
60
- {
61
- inputs: [
62
- {
63
- internalType: "enum IPaymaster.PostOpMode",
64
- name: "",
65
- type: "uint8"
66
- },
67
- {
68
- internalType: "bytes",
69
- name: "",
70
- type: "bytes"
71
- },
72
- {
73
- internalType: "uint256",
74
- name: "",
75
- type: "uint256"
76
- }
77
- ],
78
- name: "postOp",
79
- outputs: [],
80
- stateMutability: "nonpayable",
81
- type: "function"
82
- },
83
- {
84
- inputs: [
85
- {
86
- internalType: "string",
87
- name: "rule",
88
- type: "string"
89
- }
90
- ],
91
- name: "runRule",
92
- outputs: [
93
- {
94
- internalType: "uint256",
95
- name: "",
96
- type: "uint256"
97
- }
98
- ],
99
- stateMutability: "nonpayable",
100
- type: "function"
101
- },
102
- {
103
- inputs: [
104
- {
105
- internalType: "contract TestCoin",
106
- name: "_coin",
107
- type: "address"
108
- }
109
- ],
110
- name: "setCoin",
111
- outputs: [
112
- {
113
- internalType: "uint256",
114
- name: "",
115
- type: "uint256"
116
- }
117
- ],
118
- stateMutability: "nonpayable",
119
- type: "function"
120
- },
121
- {
122
- inputs: [
123
- {
124
- internalType: "uint256",
125
- name: "_state",
126
- type: "uint256"
127
- }
128
- ],
129
- name: "setState",
130
- outputs: [],
131
- stateMutability: "nonpayable",
132
- type: "function"
133
- },
134
- {
135
- inputs: [
136
- {
137
- components: [
138
- {
139
- internalType: "address",
140
- name: "sender",
141
- type: "address"
142
- },
143
- {
144
- internalType: "uint256",
145
- name: "nonce",
146
- type: "uint256"
147
- },
148
- {
149
- internalType: "bytes",
150
- name: "initCode",
151
- type: "bytes"
152
- },
153
- {
154
- internalType: "bytes",
155
- name: "callData",
156
- type: "bytes"
157
- },
158
- {
159
- internalType: "uint256",
160
- name: "callGasLimit",
161
- type: "uint256"
162
- },
163
- {
164
- internalType: "uint256",
165
- name: "verificationGasLimit",
166
- type: "uint256"
167
- },
168
- {
169
- internalType: "uint256",
170
- name: "preVerificationGas",
171
- type: "uint256"
172
- },
173
- {
174
- internalType: "uint256",
175
- name: "maxFeePerGas",
176
- type: "uint256"
177
- },
178
- {
179
- internalType: "uint256",
180
- name: "maxPriorityFeePerGas",
181
- type: "uint256"
182
- },
183
- {
184
- internalType: "bytes",
185
- name: "paymasterAndData",
186
- type: "bytes"
187
- },
188
- {
189
- internalType: "bytes",
190
- name: "signature",
191
- type: "bytes"
192
- }
193
- ],
194
- internalType: "struct UserOperation",
195
- name: "userOp",
196
- type: "tuple"
197
- },
198
- {
199
- internalType: "bytes32",
200
- name: "userOpHash",
201
- type: "bytes32"
202
- },
203
- {
204
- internalType: "uint256",
205
- name: "maxCost",
206
- type: "uint256"
207
- }
208
- ],
209
- name: "validatePaymasterUserOp",
210
- outputs: [
211
- {
212
- internalType: "bytes",
213
- name: "context",
214
- type: "bytes"
215
- },
216
- {
217
- internalType: "uint256",
218
- name: "deadline",
219
- type: "uint256"
220
- }
221
- ],
222
- stateMutability: "nonpayable",
223
- type: "function"
224
- },
225
- {
226
- inputs: [
227
- {
228
- components: [
229
- {
230
- internalType: "address",
231
- name: "sender",
232
- type: "address"
233
- },
234
- {
235
- internalType: "uint256",
236
- name: "nonce",
237
- type: "uint256"
238
- },
239
- {
240
- internalType: "bytes",
241
- name: "initCode",
242
- type: "bytes"
243
- },
244
- {
245
- internalType: "bytes",
246
- name: "callData",
247
- type: "bytes"
248
- },
249
- {
250
- internalType: "uint256",
251
- name: "callGasLimit",
252
- type: "uint256"
253
- },
254
- {
255
- internalType: "uint256",
256
- name: "verificationGasLimit",
257
- type: "uint256"
258
- },
259
- {
260
- internalType: "uint256",
261
- name: "preVerificationGas",
262
- type: "uint256"
263
- },
264
- {
265
- internalType: "uint256",
266
- name: "maxFeePerGas",
267
- type: "uint256"
268
- },
269
- {
270
- internalType: "uint256",
271
- name: "maxPriorityFeePerGas",
272
- type: "uint256"
273
- },
274
- {
275
- internalType: "bytes",
276
- name: "paymasterAndData",
277
- type: "bytes"
278
- },
279
- {
280
- internalType: "bytes",
281
- name: "signature",
282
- type: "bytes"
283
- }
284
- ],
285
- internalType: "struct UserOperation",
286
- name: "userOp",
287
- type: "tuple"
288
- },
289
- {
290
- internalType: "bytes32",
291
- name: "",
292
- type: "bytes32"
293
- },
294
- {
295
- internalType: "uint256",
296
- name: "missingAccountFunds",
297
- type: "uint256"
298
- }
299
- ],
300
- name: "validateUserOp",
301
- outputs: [
302
- {
303
- internalType: "uint256",
304
- name: "",
305
- type: "uint256"
306
- }
307
- ],
308
- stateMutability: "nonpayable",
309
- type: "function"
310
- }
311
- ];
312
- export const TestStorageAccountBytecode = "0x608060405234801561001057600080fd5b50611103806100206000396000f3fe60806040526004361061007b5760003560e01c8063a9a234091161004e578063a9a2340914610140578063a9e966b714610161578063cd330fb014610181578063f465c77e146101a157600080fd5b8063107679041461008057806311df9995146100955780633a871cdd146100d257806382e46b7514610100575b600080fd5b61009361008e366004610d1a565b6101cf565b005b3480156100a157600080fd5b506001546100b5906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100de57600080fd5b506100f26100ed366004610d3e565b61022d565b6040519081526020016100c9565b34801561010c57600080fd5b506100f261011b366004610d1a565b600180546001600160a01b0319166001600160a01b0392909216919091179055600090565b34801561014c57600080fd5b5061009361015b366004610d92565b50505050565b34801561016d57600080fd5b5061009361017c366004610e21565b6102d7565b34801561018d57600080fd5b506100f261019c366004610e50565b610318565b3480156101ad57600080fd5b506101c16101bc366004610d3e565b610a40565b6040516100c9929190610f59565b604051621cb65b60e51b8152600160048201526001600160a01b03821690630396cb609034906024016000604051808303818588803b15801561021157600080fd5b505af1158015610225573d6000803e3d6000fd5b505050505050565b6000811561028157604051600090339084908381818185875af1925050503d8060008114610277576040519150601f19603f3d011682016040523d82523d6000602084013e61027c565b606091505b505050505b6102cc610292610140860186610f7b565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061031892505050565b506000949350505050565b60005460408051918252602082018390527fe56f542cbdb0e18291d73ec9fd0b443112d0b4f547479e1303ffbc1007cc4f0f910160405180910390a1600055565b604080518082019091526006815265373ab6b132b960d11b6020918201528151908201206000907ff648814c67221440671fd7c2de979db4020a9320fb7985ff79ca8e7dced277f80361036c575043919050565b60408051808201909152600c81526b3130b630b731b296b9b2b63360a11b6020918201528251908301207fe1eb40348c4d42c6f93b840cbedec69afb249b96fd8af4bcbeed87fcef3815d80361042f576001546040516370a0823160e01b81523060048201526001600160a01b03909116906370a08231906024015b602060405180830381865afa158015610405573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104299190610fc9565b92915050565b60408051808201909152600981526836b4b73a16b9b2b63360b91b6020918201528251908301207f39509d2173ec8a4262a15fa569ebaeed05ddef813417dbd2877e415703355b6e036104c7576001546040516335313c2160e11b81523060048201526001600160a01b0390911690636a627842906024015b6020604051808303816000875af1158015610405573d6000803e3d6000fd5b60408051808201909152600981526862616c616e63652d3160b81b6020918201528251908301207f48bf62c98ebd199a8c4fa7e17d20fdbda06a014deb397741460366ff7e1e07550361054557600180546040516370a0823160e01b815260048101929092526001600160a01b0316906370a08231906024016103e8565b6040805180820190915260068152656d696e742d3160d01b6020918201528251908301207ff794573481a09002e3e46f42daa5499159620e2a2cc3f5bdd26c0a2669544d93036105c057600180546040516335313c2160e11b815260048101929092526001600160a01b031690636a627842906024016104a8565b6040805180820190915260098152683932b0b216b9b2b63360b91b6020918201528251908301207fe747e51a5f7ad590b9fccede410368a5290f3882b98279585394331e760e1f270361061e5750506001546001600160a01b031690565b60408051808201909152601081526f616c6c6f77616e63652d73656c662d3160801b6020918201528251908301207fcc3befdbd4c845f2f5f48ac59e621de2a47c26950d22d6092b4c2ffafdfc7f9f036106a95760018054604051636eb1769f60e11b815230600482015260248101929092526001600160a01b03169063dd62ed3e906044016103e8565b60408051808201909152601081526f30b63637bbb0b731b2969896b9b2b63360811b6020918201528251908301207f46b549298973374f07ae868394b73f37c1cf6f25e976e36f99f1abbe6a5284e6036107345760018054604051636eb1769f60e11b815260048101929092523060248301526001600160a01b03169063dd62ed3e906044016103e8565b60408051808201909152600b81526a39ba393ab1ba16b9b2b63360a91b6020918201528251908301207e05e75ff00cb9bce888bba342b06e4b9d4695ba7caf0afdef7ef8cf6735bb7d036107fe5760015460405160016222a30f60e01b031981523060048201526001600160a01b039091169063ffdd5cf1906024015b6060604051808303816000875af11580156107d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107f49190610fe2565b6040015192915050565b6040805180820190915260088152677374727563742d3160c01b6020918201528251908301207f416c09f102f2ef6799166d01fa870b6995b38e93784afdbdda0c68b94ab7eadd0361087e576001805460405160016222a30f60e01b0319815260048101929092526001600160a01b03169063ffdd5cf1906024016107b1565b60408051808201909152600c81526b1a5b9b995c8b5c995d995c9d60a21b6020918201528251908301207fc78ed5b2fc828eecd2c4fb3d39653e18c93b7d1815a5571aa088439dec36211a0361096c5760015460408051640100000000600160c01b03602084811b919091166325d9185c17831b908201526000926001600160a01b0316910160408051601f198184030181529082905261091e9161103e565b6000604051808303816000865af19150503d806000811461095b576040519150601f19603f3d011682016040523d82523d6000602084013e610960565b606091505b50600095945050505050565b6040805180820190915260038152626f6f6760e81b6020918201528251908301207f106495a8f613c9fc38a970d5fb1d6be2ed483721cd6d69eb72a826a46ca87b0503610a3757600160009054906101000a90046001600160a01b03166001600160a01b0316633b6a02f66127106040518263ffffffff1660e01b815260040160206040518083038160008887f193505050508015610a28575060408051601f3d908101601f19168201909252610a2591810190610fc9565b60015b15610a2f57505b506000919050565b61042982610b31565b6060600080610a53610120870187610f7b565b610a6191601490829061105a565b8080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505060408051808201909152600e81526d1c1bdcdd13dc0b58dbdb9d195e1d60921b60209182015283519084012092935050507fa5c5a2573a01687081241ad21c031e4220a49723dbd63e3fcdfcf266f286434203610b1857505060408051808201909152600c81526b1cdbdb594b58dbdb9d195e1d60a21b602082015290506000610b29565b610b23868686610c80565b92509250505b935093915050565b6040805160208082019092526000908190528251918301919091207fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47003610b7a57506000919050565b6040805180820190915260028152616f6b60f01b6020918201528251908301207f14502d3ab34ae28d404da8f6ec0501c6f295f66caa41e122cfa9b1291bc0f9e803610bc857506000919050565b60408051808201909152600481526319985a5b60e21b6020918201528251908301207f3b2564d7e0fe091d49b4c20f4632191e4ed6986bf993849879abfef9465def2503610c495760405162461bcd60e51b81526020600482015260096024820152686661696c2072756c6560b81b60448201526064015b60405180910390fd5b81604051602001610c5a9190611084565b60408051601f198184030181529082905262461bcd60e51b8252610c40916004016110ba565b6060600080610c93610120870187610f7b565b610ca191601490829061105a565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929350610ce492508391506103189050565b50506040805160208101909152600080825290969095509350505050565b6001600160a01b0381168114610d1757600080fd5b50565b600060208284031215610d2c57600080fd5b8135610d3781610d02565b9392505050565b600080600060608486031215610d5357600080fd5b833567ffffffffffffffff811115610d6a57600080fd5b84016101608187031215610d7d57600080fd5b95602085013595506040909401359392505050565b60008060008060608587031215610da857600080fd5b843560038110610db757600080fd5b9350602085013567ffffffffffffffff80821115610dd457600080fd5b818701915087601f830112610de857600080fd5b813581811115610df757600080fd5b886020828501011115610e0957600080fd5b95986020929092019750949560400135945092505050565b600060208284031215610e3357600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b600060208284031215610e6257600080fd5b813567ffffffffffffffff80821115610e7a57600080fd5b818401915084601f830112610e8e57600080fd5b813581811115610ea057610ea0610e3a565b604051601f8201601f19908116603f01168101908382118183101715610ec857610ec8610e3a565b81604052828152876020848701011115610ee157600080fd5b826020860160208301376000928101602001929092525095945050505050565b60005b83811015610f1c578181015183820152602001610f04565b8381111561015b5750506000910152565b60008151808452610f45816020860160208601610f01565b601f01601f19169290920160200192915050565b604081526000610f6c6040830185610f2d565b90508260208301529392505050565b6000808335601e19843603018112610f9257600080fd5b83018035915067ffffffffffffffff821115610fad57600080fd5b602001915036819003821315610fc257600080fd5b9250929050565b600060208284031215610fdb57600080fd5b5051919050565b600060608284031215610ff457600080fd5b6040516060810181811067ffffffffffffffff8211171561101757611017610e3a565b80604052508251815260208301516020820152604083015160408201528091505092915050565b60008251611050818460208701610f01565b9190910192915050565b6000808585111561106a57600080fd5b8386111561107757600080fd5b5050820193919092039150565b6d03ab735b737bbb710393ab6329d160951b8152600082516110ad81600e850160208701610f01565b91909101600e0192915050565b602081526000610d376020830184610f2d56fea2646970667358221220574b6029aec2914882063fae6590155da5a4c11dc20c39e193b554aa58e9d09364736f6c634300080f0033";
313
- //# sourceMappingURL=TestStorageAccount.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TestStorageAccount.js","sourceRoot":"","sources":["../../../types/contracts/TestStorageAccount.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAiC;IAC/D;QACI,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACJ;gBACI,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAClB;YACD;gBACI,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;aAClB;SACJ;QACD,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,OAAO;KAChB;IACD;QACI,SAAS,EAAE,KAAK;QAChB,MAAM,EAAE;YACJ;gBACI,OAAO,EAAE,KAAK;gBACd,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,SAAS;aAClB;SACJ;QACD,IAAI,EAAE,aAAa;QACnB,IAAI,EAAE,OAAO;KAChB;IACD;QACI,MAAM,EAAE;YACJ;gBACI,YAAY,EAAE,sBAAsB;gBACpC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;aAClB;SACJ;QACD,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;QACX,eAAe,EAAE,SAAS;QAC1B,IAAI,EAAE,UAAU;KACnB;IACD;QACI,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE;YACL;gBACI,YAAY,EAAE,mBAAmB;gBACjC,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAClB;SACJ;QACD,eAAe,EAAE,MAAM;QACvB,I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xB,IAAI,EAAE,OAAO;qBAChB;oBACD;wBACI,YAAY,EAAE,OAAO;wBACrB,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,OAAO;qBAChB;iBACJ;gBACD,YAAY,EAAE,sBAAsB;gBACpC,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,OAAO;aAChB;YACD;gBACI,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAClB;YACD;gBACI,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,SAAS;aAClB;SACJ;QACD,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE;YACL;gBACI,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,EAAE;gBACR,IAAI,EAAE,SAAS;aAClB;SACJ;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,UAAU;KACnB;CACK,CAAA;AAEV,MAAM,CAAC,MAAM,0BAA0B,GACnC,0kRAA0kR,CAAA"}
@@ -1,17 +0,0 @@
1
- export * from "./BundleBulker.js";
2
- export * from "./CallEngine.js";
3
- export * from "./EntryPoint.js";
4
- export * from "./IPaymaster.js";
5
- export * from "./IOpInflator.js";
6
- export * from "./Inflator.js";
7
- export * from "./PerOpInflator.js";
8
- export * from "./SenderCreator.js";
9
- export * from "./SimpleAccountFactory.js";
10
- export * from "./TestOpcodesAccount.js";
11
- export * from "./TestOpcodesAccountFactory.js";
12
- export * from "./TestStorageAccount.js";
13
- export * from "./SimpleAccountFactory.js";
14
- export * from "./CodeHashGetter.js";
15
- export * from "./EntryPointSimulations.js";
16
- export * from "./PimlicoEntryPointSimulations.js";
17
- //# sourceMappingURL=index.d.ts.map
@@ -1,17 +0,0 @@
1
- export * from "./BundleBulker.js";
2
- export * from "./CallEngine.js";
3
- export * from "./EntryPoint.js";
4
- export * from "./IPaymaster.js";
5
- export * from "./IOpInflator.js";
6
- export * from "./Inflator.js";
7
- export * from "./PerOpInflator.js";
8
- export * from "./SenderCreator.js";
9
- export * from "./SimpleAccountFactory.js";
10
- export * from "./TestOpcodesAccount.js";
11
- export * from "./TestOpcodesAccountFactory.js";
12
- export * from "./TestStorageAccount.js";
13
- export * from "./SimpleAccountFactory.js";
14
- export * from "./CodeHashGetter.js";
15
- export * from "./EntryPointSimulations.js";
16
- export * from "./PimlicoEntryPointSimulations.js";
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../types/contracts/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,6BAA6B,CAAA;AAC3C,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,gCAAgC,CAAA"}
@@ -1,110 +0,0 @@
1
- import { z } from "zod";
2
- declare const gasPrice: z.ZodEffects<z.ZodObject<{
3
- maxFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, bigint, string | number>;
4
- maxPriorityFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, bigint, string | number>;
5
- }, "strip", z.ZodTypeAny, {
6
- maxFee: bigint;
7
- maxPriorityFee: bigint;
8
- }, {
9
- maxFee: string | number;
10
- maxPriorityFee: string | number;
11
- }>, {
12
- maxFeePerGas: bigint;
13
- maxPriorityFeePerGas: bigint;
14
- }, {
15
- maxFee: string | number;
16
- maxPriorityFee: string | number;
17
- }>;
18
- export declare const gasStationResult: z.ZodObject<{
19
- safeLow: z.ZodEffects<z.ZodObject<{
20
- maxFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, bigint, string | number>;
21
- maxPriorityFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, bigint, string | number>;
22
- }, "strip", z.ZodTypeAny, {
23
- maxFee: bigint;
24
- maxPriorityFee: bigint;
25
- }, {
26
- maxFee: string | number;
27
- maxPriorityFee: string | number;
28
- }>, {
29
- maxFeePerGas: bigint;
30
- maxPriorityFeePerGas: bigint;
31
- }, {
32
- maxFee: string | number;
33
- maxPriorityFee: string | number;
34
- }>;
35
- standard: z.ZodEffects<z.ZodObject<{
36
- maxFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, bigint, string | number>;
37
- maxPriorityFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, bigint, string | number>;
38
- }, "strip", z.ZodTypeAny, {
39
- maxFee: bigint;
40
- maxPriorityFee: bigint;
41
- }, {
42
- maxFee: string | number;
43
- maxPriorityFee: string | number;
44
- }>, {
45
- maxFeePerGas: bigint;
46
- maxPriorityFeePerGas: bigint;
47
- }, {
48
- maxFee: string | number;
49
- maxPriorityFee: string | number;
50
- }>;
51
- fast: z.ZodEffects<z.ZodObject<{
52
- maxFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, bigint, string | number>;
53
- maxPriorityFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodString]>, bigint, string | number>;
54
- }, "strip", z.ZodTypeAny, {
55
- maxFee: bigint;
56
- maxPriorityFee: bigint;
57
- }, {
58
- maxFee: string | number;
59
- maxPriorityFee: string | number;
60
- }>, {
61
- maxFeePerGas: bigint;
62
- maxPriorityFeePerGas: bigint;
63
- }, {
64
- maxFee: string | number;
65
- maxPriorityFee: string | number;
66
- }>;
67
- }, "strip", z.ZodTypeAny, {
68
- safeLow: {
69
- maxFeePerGas: bigint;
70
- maxPriorityFeePerGas: bigint;
71
- };
72
- standard: {
73
- maxFeePerGas: bigint;
74
- maxPriorityFeePerGas: bigint;
75
- };
76
- fast: {
77
- maxFeePerGas: bigint;
78
- maxPriorityFeePerGas: bigint;
79
- };
80
- }, {
81
- safeLow: {
82
- maxFee: string | number;
83
- maxPriorityFee: string | number;
84
- };
85
- standard: {
86
- maxFee: string | number;
87
- maxPriorityFee: string | number;
88
- };
89
- fast: {
90
- maxFee: string | number;
91
- maxPriorityFee: string | number;
92
- };
93
- }>;
94
- export declare const gasPriceMultipliers: z.ZodObject<{
95
- slow: z.ZodBigInt;
96
- standard: z.ZodBigInt;
97
- fast: z.ZodBigInt;
98
- }, "strip", z.ZodTypeAny, {
99
- standard: bigint;
100
- fast: bigint;
101
- slow: bigint;
102
- }, {
103
- standard: bigint;
104
- fast: bigint;
105
- slow: bigint;
106
- }>;
107
- export type GasPriceMultipliers = z.infer<typeof gasPriceMultipliers>;
108
- export type GasPriceParameters = z.infer<typeof gasPrice>;
109
- export {};
110
- //# sourceMappingURL=gasPrice.d.ts.map
@@ -1,52 +0,0 @@
1
- // {"safeLow":{"maxPriorityFee":32.70666665266667,"maxFee":32.70666666866667},"standard":{"maxPriorityFee":33.10666665266667,"maxFee":33.10666666866667},"fast":{"maxPriorityFee":34.54799998386667,"maxFee":34.54799999986667},"estimatedBaseFee":1.6e-8,"blockTime":2,"blockNumber":36422482}
2
- // {
3
- // "safeLow": {
4
- // "maxPriorityFee": 10.474218399333333,
5
- // "maxFee": 10.474218415333333
6
- // },
7
- // "standard": {
8
- // "maxPriorityFee": 10.674218398266666,
9
- // "maxFee": 10.674218414266665
10
- // },
11
- // "fast": {
12
- // "maxPriorityFee": 15.771550529,
13
- // "maxFee": 15.771550545
14
- // },
15
- // "estimatedBaseFee": 1.6e-08,
16
- // "blockTime": 2,
17
- // "blockNumber": 36422513
18
- // }
19
- import { parseGwei } from "viem";
20
- import { bigint, z } from "zod";
21
- const gasPrice = z
22
- .object({
23
- // @ts-ignore
24
- maxFee: z
25
- .union([z.number(), z.string()])
26
- .transform((val) => parseGwei(`${val}`)),
27
- // @ts-ignore
28
- maxPriorityFee: z
29
- .union([z.number(), z.string()])
30
- .transform((val) => parseGwei(`${val}`))
31
- })
32
- .transform((val) => {
33
- return {
34
- maxFeePerGas: val.maxFee,
35
- maxPriorityFeePerGas: val.maxPriorityFee
36
- };
37
- });
38
- export const gasStationResult = z.object({
39
- safeLow: gasPrice,
40
- standard: gasPrice,
41
- fast: gasPrice
42
- // @ts-ignore
43
- // estimatedBaseFee: z.union([z.number(), z.string()]).transform((val) => parseGwei(`${val}`)),
44
- // blockTime: z.number(),
45
- // blockNumber: z.number()
46
- });
47
- export const gasPriceMultipliers = z.object({
48
- slow: bigint(),
49
- standard: bigint(),
50
- fast: bigint()
51
- });
52
- //# sourceMappingURL=gasPrice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gasPrice.js","sourceRoot":"","sources":["../../types/gasPrice.ts"],"names":[],"mappings":"AAAA,+RAA+R;AAE/R,IAAI;AACJ,mBAAmB;AACnB,8CAA8C;AAC9C,qCAAqC;AACrC,SAAS;AACT,oBAAoB;AACpB,8CAA8C;AAC9C,qCAAqC;AACrC,SAAS;AACT,gBAAgB;AAChB,wCAAwC;AACxC,+BAA+B;AAC/B,SAAS;AACT,mCAAmC;AACnC,sBAAsB;AACtB,8BAA8B;AAC9B,MAAM;AAEN,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAE/B,MAAM,QAAQ,GAAG,CAAC;KACb,MAAM,CAAC;IACJ,aAAa;IACb,MAAM,EAAE,CAAC;SACJ,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;SAC/B,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;IAC5C,aAAa;IACb,cAAc,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;SAC/B,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC;CAC/C,CAAC;KACD,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;IACf,OAAO;QACH,YAAY,EAAE,GAAG,CAAC,MAAM;QACxB,oBAAoB,EAAE,GAAG,CAAC,cAAc;KAC3C,CAAA;AACL,CAAC,CAAC,CAAA;AAEN,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,OAAO,EAAE,QAAQ;IACjB,QAAQ,EAAE,QAAQ;IAClB,IAAI,EAAE,QAAQ;IACd,aAAa;IACb,+FAA+F;IAC/F,yBAAyB;IACzB,0BAA0B;CAC7B,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAM,EAAE;IACd,QAAQ,EAAE,MAAM,EAAE;IAClB,IAAI,EAAE,MAAM,EAAE;CACjB,CAAC,CAAA"}
@@ -1,11 +0,0 @@
1
- export * from "./contracts/index.js";
2
- export * from "./gasPrice.js";
3
- export * from "./mempool.js";
4
- export * from "./utils.js";
5
- export * from "./validation.js";
6
- export * from "./schemas.js";
7
- export * from "./validation.js";
8
- export * from "./gasPrice.js";
9
- export * from "./mempool.js";
10
- export * from "./interfaces.js";
11
- //# sourceMappingURL=index.d.ts.map
@@ -1,11 +0,0 @@
1
- export * from "./contracts/index.js";
2
- export * from "./gasPrice.js";
3
- export * from "./mempool.js";
4
- export * from "./utils.js";
5
- export * from "./validation.js";
6
- export * from "./schemas.js";
7
- export * from "./validation.js";
8
- export * from "./gasPrice.js";
9
- export * from "./mempool.js";
10
- export * from "./interfaces.js";
11
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
@@ -1,26 +0,0 @@
1
- import type { Address } from "viem";
2
- import type { SimulateHandleOpResult } from "../rpc/gasEstimation.js";
3
- import type { ReferencedCodeHashes } from "./mempool.js";
4
- import type { StateOverrides, UserOperation, UserOperationV06, UserOperationV07 } from "./schemas.js";
5
- import type * as validation from "./validation.js";
6
- export interface InterfaceValidator {
7
- getExecutionResult(userOperation: UserOperation, entryPoint: Address, queuedUserOperations: UserOperation[], stateOverrides?: StateOverrides): Promise<SimulateHandleOpResult<"execution">>;
8
- getValidationResultV06(userOperation: UserOperationV06, entryPoint: Address, _codeHashes?: ReferencedCodeHashes): Promise<(validation.ValidationResult | validation.ValidationResultWithAggregation) & {
9
- storageMap: validation.StorageMap;
10
- referencedContracts?: ReferencedCodeHashes;
11
- }>;
12
- getValidationResultV07(userOperation: UserOperationV07, queuedUserOperations: UserOperation[], entryPoint: Address, _codeHashes?: ReferencedCodeHashes): Promise<(validation.ValidationResult | validation.ValidationResultWithAggregation) & {
13
- storageMap: validation.StorageMap;
14
- referencedContracts?: ReferencedCodeHashes;
15
- }>;
16
- getValidationResult(userOperation: UserOperation, queuedUserOperations: UserOperation[], entryPoint: Address, _codeHashes?: ReferencedCodeHashes): Promise<(validation.ValidationResult | validation.ValidationResultWithAggregation) & {
17
- storageMap: validation.StorageMap;
18
- referencedContracts?: ReferencedCodeHashes;
19
- }>;
20
- validatePreVerificationGas(userOperation: UserOperation, entryPoint: Address): Promise<void>;
21
- validateUserOperation(shouldCheckPrefund: boolean, userOperation: UserOperation, queuedUserOperations: UserOperation[], entryPoint: Address, referencedContracts?: ReferencedCodeHashes): Promise<(validation.ValidationResult | validation.ValidationResultWithAggregation) & {
22
- storageMap: validation.StorageMap;
23
- referencedContracts?: ReferencedCodeHashes;
24
- }>;
25
- }
26
- //# sourceMappingURL=interfaces.d.ts.map
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=interfaces.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../types/interfaces.ts"],"names":[],"mappings":""}