@zerodev/sdk 5.3.25 → 5.4.0-beta.0

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 (320) hide show
  1. package/_cjs/accounts/index.js.map +1 -1
  2. package/_cjs/accounts/kernel/createKernelAccount.js +171 -199
  3. package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
  4. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeCallData.js +13 -9
  5. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeCallData.js.map +1 -1
  6. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js.map +1 -1
  7. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.js +18 -17
  8. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.js.map +1 -1
  9. package/_cjs/accounts/kernel/utils/account/ep0_7/encodeCallData.js +12 -8
  10. package/_cjs/accounts/kernel/utils/account/ep0_7/encodeCallData.js.map +1 -1
  11. package/_cjs/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js.map +1 -1
  12. package/_cjs/accounts/kernel/utils/common/accountMetadata.js.map +1 -1
  13. package/_cjs/accounts/kernel/utils/common/getActionSelector.js +2 -2
  14. package/_cjs/accounts/kernel/utils/common/getActionSelector.js.map +1 -1
  15. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js +2 -2
  16. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js.map +1 -1
  17. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js +1 -1
  18. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js.map +1 -1
  19. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js +1 -1
  20. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js.map +1 -1
  21. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js +2 -2
  22. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js.map +1 -1
  23. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteCall.js +2 -2
  24. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteCall.js.map +1 -1
  25. package/_cjs/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.js.map +1 -1
  26. package/_cjs/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.js.map +1 -1
  27. package/_cjs/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -1
  28. package/_cjs/accounts/kernel/v1/createKernelAccountV1.js +81 -94
  29. package/_cjs/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
  30. package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js +104 -110
  31. package/_cjs/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
  32. package/_cjs/accounts/utils/getCustomNonceKeyFromString.js +2 -4
  33. package/_cjs/accounts/utils/getCustomNonceKeyFromString.js.map +1 -1
  34. package/_cjs/accounts/utils/index.js +1 -7
  35. package/_cjs/accounts/utils/index.js.map +1 -1
  36. package/_cjs/accounts/utils/multisend.js.map +1 -1
  37. package/_cjs/accounts/utils/toKernelPluginManager.js +14 -16
  38. package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
  39. package/_cjs/actions/account-client/changeSudoValidator.js +27 -21
  40. package/_cjs/actions/account-client/changeSudoValidator.js.map +1 -1
  41. package/_cjs/actions/account-client/getKernelV3ModuleCurrentNonce.js +8 -6
  42. package/_cjs/actions/account-client/getKernelV3ModuleCurrentNonce.js.map +1 -1
  43. package/_cjs/actions/account-client/invalidateNonce.js +20 -15
  44. package/_cjs/actions/account-client/invalidateNonce.js.map +1 -1
  45. package/_cjs/actions/account-client/sendTransaction.js +42 -0
  46. package/_cjs/actions/account-client/sendTransaction.js.map +1 -0
  47. package/_cjs/actions/account-client/signMessage.js +15 -0
  48. package/_cjs/actions/account-client/signMessage.js.map +1 -0
  49. package/_cjs/actions/account-client/signTypedData.js +32 -0
  50. package/_cjs/actions/account-client/signTypedData.js.map +1 -0
  51. package/_cjs/actions/account-client/signUserOperation.js +7 -5
  52. package/_cjs/actions/account-client/signUserOperation.js.map +1 -1
  53. package/_cjs/actions/account-client/uninstallPlugin.js +13 -12
  54. package/_cjs/actions/account-client/uninstallPlugin.js.map +1 -1
  55. package/_cjs/actions/account-client/writeContract.js +21 -0
  56. package/_cjs/actions/account-client/writeContract.js.map +1 -0
  57. package/_cjs/actions/index.js +13 -3
  58. package/_cjs/actions/index.js.map +1 -1
  59. package/_cjs/actions/paymaster/estimateGasInERC20.js +4 -4
  60. package/_cjs/actions/paymaster/estimateGasInERC20.js.map +1 -1
  61. package/_cjs/actions/paymaster/sponsorUserOperation.js +4 -6
  62. package/_cjs/actions/paymaster/sponsorUserOperation.js.map +1 -1
  63. package/_cjs/actions/public/getAccountNonce.js +38 -0
  64. package/_cjs/actions/public/getAccountNonce.js.map +1 -0
  65. package/_cjs/actions/public/getSenderAddress.js +166 -0
  66. package/_cjs/actions/public/getSenderAddress.js.map +1 -0
  67. package/_cjs/actions/public/index.js +8 -0
  68. package/_cjs/actions/public/index.js.map +1 -0
  69. package/_cjs/clients/decorators/kernel.js +17 -27
  70. package/_cjs/clients/decorators/kernel.js.map +1 -1
  71. package/_cjs/clients/fallbackKernelAccountClient.js.map +1 -1
  72. package/_cjs/clients/kernelAccountClient.js +27 -45
  73. package/_cjs/clients/kernelAccountClient.js.map +1 -1
  74. package/_cjs/clients/paymasterClient.js +7 -18
  75. package/_cjs/clients/paymasterClient.js.map +1 -1
  76. package/_cjs/errors/index.js +18 -0
  77. package/_cjs/errors/index.js.map +1 -0
  78. package/_cjs/gasTokenAddresses.js +2 -1
  79. package/_cjs/gasTokenAddresses.js.map +1 -1
  80. package/_cjs/index.js.map +1 -1
  81. package/_cjs/providers/KernelEIP1193Provider.js.map +1 -1
  82. package/_cjs/types/kernel.js.map +1 -1
  83. package/_cjs/utils.js +27 -7
  84. package/_cjs/utils.js.map +1 -1
  85. package/_esm/accounts/index.js.map +1 -1
  86. package/_esm/accounts/kernel/createKernelAccount.js +181 -217
  87. package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
  88. package/_esm/accounts/kernel/utils/account/ep0_6/encodeCallData.js +13 -9
  89. package/_esm/accounts/kernel/utils/account/ep0_6/encodeCallData.js.map +1 -1
  90. package/_esm/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js.map +1 -1
  91. package/_esm/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.js +18 -17
  92. package/_esm/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.js.map +1 -1
  93. package/_esm/accounts/kernel/utils/account/ep0_7/encodeCallData.js +12 -8
  94. package/_esm/accounts/kernel/utils/account/ep0_7/encodeCallData.js.map +1 -1
  95. package/_esm/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js.map +1 -1
  96. package/_esm/accounts/kernel/utils/common/accountMetadata.js.map +1 -1
  97. package/_esm/accounts/kernel/utils/common/getActionSelector.js +2 -2
  98. package/_esm/accounts/kernel/utils/common/getActionSelector.js.map +1 -1
  99. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js +2 -2
  100. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js.map +1 -1
  101. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js +1 -1
  102. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js.map +1 -1
  103. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js +1 -1
  104. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js.map +1 -1
  105. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js +2 -2
  106. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js.map +1 -1
  107. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteCall.js +2 -2
  108. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteCall.js.map +1 -1
  109. package/_esm/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.js.map +1 -1
  110. package/_esm/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.js.map +1 -1
  111. package/_esm/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.js.map +1 -1
  112. package/_esm/accounts/kernel/v1/createKernelAccountV1.js +91 -98
  113. package/_esm/accounts/kernel/v1/createKernelAccountV1.js.map +1 -1
  114. package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js +105 -118
  115. package/_esm/accounts/kernel/v2/createKernelAccountV0_2.js.map +1 -1
  116. package/_esm/accounts/utils/getCustomNonceKeyFromString.js +2 -4
  117. package/_esm/accounts/utils/getCustomNonceKeyFromString.js.map +1 -1
  118. package/_esm/accounts/utils/index.js +0 -5
  119. package/_esm/accounts/utils/index.js.map +1 -1
  120. package/_esm/accounts/utils/multisend.js.map +1 -1
  121. package/_esm/accounts/utils/toKernelPluginManager.js +14 -16
  122. package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
  123. package/_esm/actions/account-client/changeSudoValidator.js +23 -17
  124. package/_esm/actions/account-client/changeSudoValidator.js.map +1 -1
  125. package/_esm/actions/account-client/getKernelV3ModuleCurrentNonce.js +8 -6
  126. package/_esm/actions/account-client/getKernelV3ModuleCurrentNonce.js.map +1 -1
  127. package/_esm/actions/account-client/invalidateNonce.js +20 -15
  128. package/_esm/actions/account-client/invalidateNonce.js.map +1 -1
  129. package/_esm/actions/account-client/sendTransaction.js +85 -0
  130. package/_esm/actions/account-client/sendTransaction.js.map +1 -0
  131. package/_esm/actions/account-client/signMessage.js +58 -0
  132. package/_esm/actions/account-client/signMessage.js.map +1 -0
  133. package/_esm/actions/account-client/signTypedData.js +127 -0
  134. package/_esm/actions/account-client/signTypedData.js.map +1 -0
  135. package/_esm/actions/account-client/signUserOperation.js +7 -5
  136. package/_esm/actions/account-client/signUserOperation.js.map +1 -1
  137. package/_esm/actions/account-client/uninstallPlugin.js +10 -9
  138. package/_esm/actions/account-client/uninstallPlugin.js.map +1 -1
  139. package/_esm/actions/account-client/writeContract.js +18 -0
  140. package/_esm/actions/account-client/writeContract.js.map +1 -0
  141. package/_esm/actions/index.js +6 -1
  142. package/_esm/actions/index.js.map +1 -1
  143. package/_esm/actions/paymaster/estimateGasInERC20.js +3 -3
  144. package/_esm/actions/paymaster/estimateGasInERC20.js.map +1 -1
  145. package/_esm/actions/paymaster/sponsorUserOperation.js +3 -5
  146. package/_esm/actions/paymaster/sponsorUserOperation.js.map +1 -1
  147. package/_esm/actions/public/getAccountNonce.js +61 -0
  148. package/_esm/actions/public/getAccountNonce.js.map +1 -0
  149. package/_esm/actions/public/getSenderAddress.js +191 -0
  150. package/_esm/actions/public/getSenderAddress.js.map +1 -0
  151. package/_esm/actions/public/index.js +3 -0
  152. package/_esm/actions/public/index.js.map +1 -0
  153. package/_esm/clients/decorators/kernel.js +19 -28
  154. package/_esm/clients/decorators/kernel.js.map +1 -1
  155. package/_esm/clients/fallbackKernelAccountClient.js.map +1 -1
  156. package/_esm/clients/kernelAccountClient.js +28 -46
  157. package/_esm/clients/kernelAccountClient.js.map +1 -1
  158. package/_esm/clients/paymasterClient.js +8 -19
  159. package/_esm/clients/paymasterClient.js.map +1 -1
  160. package/_esm/errors/index.js +14 -0
  161. package/_esm/errors/index.js.map +1 -0
  162. package/_esm/gasTokenAddresses.js +2 -1
  163. package/_esm/gasTokenAddresses.js.map +1 -1
  164. package/_esm/index.js.map +1 -1
  165. package/_esm/providers/KernelEIP1193Provider.js.map +1 -1
  166. package/_esm/types/kernel.js.map +1 -1
  167. package/_esm/utils.js +29 -7
  168. package/_esm/utils.js.map +1 -1
  169. package/_types/accounts/index.d.ts +2 -2
  170. package/_types/accounts/index.d.ts.map +1 -1
  171. package/_types/accounts/kernel/createKernelAccount.d.ts +21 -18
  172. package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
  173. package/_types/accounts/kernel/utils/account/ep0_6/encodeCallData.d.ts +8 -3
  174. package/_types/accounts/kernel/utils/account/ep0_6/encodeCallData.d.ts.map +1 -1
  175. package/_types/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.d.ts +3 -2
  176. package/_types/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.d.ts.map +1 -1
  177. package/_types/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.d.ts +0 -1
  178. package/_types/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.d.ts.map +1 -1
  179. package/_types/accounts/kernel/utils/account/ep0_7/encodeCallData.d.ts +8 -3
  180. package/_types/accounts/kernel/utils/account/ep0_7/encodeCallData.d.ts.map +1 -1
  181. package/_types/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.d.ts +3 -2
  182. package/_types/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.d.ts.map +1 -1
  183. package/_types/accounts/kernel/utils/common/accountMetadata.d.ts +2 -2
  184. package/_types/accounts/kernel/utils/common/accountMetadata.d.ts.map +1 -1
  185. package/_types/accounts/kernel/utils/common/getActionSelector.d.ts +1 -1
  186. package/_types/accounts/kernel/utils/common/getActionSelector.d.ts.map +1 -1
  187. package/_types/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.d.ts +1 -1
  188. package/_types/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.d.ts.map +1 -1
  189. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.d.ts +1 -1
  190. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.d.ts.map +1 -1
  191. package/_types/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.d.ts +2 -3
  192. package/_types/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.d.ts.map +1 -1
  193. package/_types/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.d.ts +4 -5
  194. package/_types/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.d.ts.map +1 -1
  195. package/_types/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.d.ts +2 -3
  196. package/_types/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.d.ts.map +1 -1
  197. package/_types/accounts/kernel/utils/types.d.ts +2 -2
  198. package/_types/accounts/kernel/utils/types.d.ts.map +1 -1
  199. package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts +18 -9
  200. package/_types/accounts/kernel/v1/createKernelAccountV1.d.ts.map +1 -1
  201. package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts +9 -7
  202. package/_types/accounts/kernel/v2/createKernelAccountV0_2.d.ts.map +1 -1
  203. package/_types/accounts/utils/getCustomNonceKeyFromString.d.ts +2 -2
  204. package/_types/accounts/utils/getCustomNonceKeyFromString.d.ts.map +1 -1
  205. package/_types/accounts/utils/index.d.ts +0 -2
  206. package/_types/accounts/utils/index.d.ts.map +1 -1
  207. package/_types/accounts/utils/multisend.d.ts +2 -2
  208. package/_types/accounts/utils/multisend.d.ts.map +1 -1
  209. package/_types/accounts/utils/toKernelPluginManager.d.ts +4 -4
  210. package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
  211. package/_types/actions/account-client/changeSudoValidator.d.ts +5 -11
  212. package/_types/actions/account-client/changeSudoValidator.d.ts.map +1 -1
  213. package/_types/actions/account-client/getKernelV3ModuleCurrentNonce.d.ts +2 -5
  214. package/_types/actions/account-client/getKernelV3ModuleCurrentNonce.d.ts.map +1 -1
  215. package/_types/actions/account-client/invalidateNonce.d.ts +4 -6
  216. package/_types/actions/account-client/invalidateNonce.d.ts.map +1 -1
  217. package/_types/actions/account-client/sendTransaction.d.ts +50 -0
  218. package/_types/actions/account-client/sendTransaction.d.ts.map +1 -0
  219. package/_types/actions/account-client/signMessage.d.ts +50 -0
  220. package/_types/actions/account-client/signMessage.d.ts.map +1 -0
  221. package/_types/actions/account-client/signTypedData.d.ts +104 -0
  222. package/_types/actions/account-client/signTypedData.d.ts.map +1 -0
  223. package/_types/actions/account-client/signUserOperation.d.ts +4 -6
  224. package/_types/actions/account-client/signUserOperation.d.ts.map +1 -1
  225. package/_types/actions/account-client/uninstallPlugin.d.ts +5 -7
  226. package/_types/actions/account-client/uninstallPlugin.d.ts.map +1 -1
  227. package/_types/actions/account-client/writeContract.d.ts +4 -0
  228. package/_types/actions/account-client/writeContract.d.ts.map +1 -0
  229. package/_types/actions/index.d.ts +6 -1
  230. package/_types/actions/index.d.ts.map +1 -1
  231. package/_types/actions/paymaster/estimateGasInERC20.d.ts +1305 -4
  232. package/_types/actions/paymaster/estimateGasInERC20.d.ts.map +1 -1
  233. package/_types/actions/paymaster/sponsorUserOperation.d.ts +1314 -10
  234. package/_types/actions/paymaster/sponsorUserOperation.d.ts.map +1 -1
  235. package/_types/actions/public/getAccountNonce.d.ts +34 -0
  236. package/_types/actions/public/getAccountNonce.d.ts.map +1 -0
  237. package/_types/actions/public/getSenderAddress.d.ts +46 -0
  238. package/_types/actions/public/getSenderAddress.d.ts.map +1 -0
  239. package/_types/actions/public/index.d.ts +3 -0
  240. package/_types/actions/public/index.d.ts.map +1 -0
  241. package/_types/clients/decorators/kernel.d.ts +774 -20
  242. package/_types/clients/decorators/kernel.d.ts.map +1 -1
  243. package/_types/clients/fallbackKernelAccountClient.d.ts +255 -4
  244. package/_types/clients/fallbackKernelAccountClient.d.ts.map +1 -1
  245. package/_types/clients/kernelAccountClient.d.ts +34 -36
  246. package/_types/clients/kernelAccountClient.d.ts.map +1 -1
  247. package/_types/clients/paymasterClient.d.ts +10 -24
  248. package/_types/clients/paymasterClient.d.ts.map +1 -1
  249. package/_types/errors/index.d.ts +7 -0
  250. package/_types/errors/index.d.ts.map +1 -0
  251. package/_types/gasTokenAddresses.d.ts +1 -1
  252. package/_types/gasTokenAddresses.d.ts.map +1 -1
  253. package/_types/index.d.ts +1 -1
  254. package/_types/index.d.ts.map +1 -1
  255. package/_types/providers/KernelEIP1193Provider.d.ts +3 -4
  256. package/_types/providers/KernelEIP1193Provider.d.ts.map +1 -1
  257. package/_types/types/index.d.ts +1 -0
  258. package/_types/types/index.d.ts.map +1 -1
  259. package/_types/types/kernel.d.ts +25 -27
  260. package/_types/types/kernel.d.ts.map +1 -1
  261. package/_types/utils.d.ts +1310 -4
  262. package/_types/utils.d.ts.map +1 -1
  263. package/accounts/index.ts +5 -2
  264. package/accounts/kernel/createKernelAccount.ts +312 -357
  265. package/accounts/kernel/utils/account/ep0_6/encodeCallData.ts +22 -12
  266. package/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.ts +6 -3
  267. package/accounts/kernel/utils/account/ep0_6/encodeModuleInstallCallData.ts +22 -19
  268. package/accounts/kernel/utils/account/ep0_7/encodeCallData.ts +21 -11
  269. package/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.ts +6 -3
  270. package/accounts/kernel/utils/common/accountMetadata.ts +2 -7
  271. package/accounts/kernel/utils/common/getActionSelector.ts +3 -3
  272. package/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.ts +3 -3
  273. package/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.ts +1 -1
  274. package/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.ts +1 -1
  275. package/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.ts +3 -3
  276. package/accounts/kernel/utils/ep0_7/encodeExecuteCall.ts +2 -2
  277. package/accounts/kernel/utils/plugins/ep0_6/getEncodedPluginsData.ts +2 -8
  278. package/accounts/kernel/utils/plugins/ep0_6/getPluginsEnableTypedData.ts +4 -10
  279. package/accounts/kernel/utils/plugins/ep0_7/getPluginsEnableTypedData.ts +2 -8
  280. package/accounts/kernel/utils/types.ts +2 -2
  281. package/accounts/kernel/v1/createKernelAccountV1.ts +147 -174
  282. package/accounts/kernel/v2/createKernelAccountV0_2.ts +135 -179
  283. package/accounts/utils/getCustomNonceKeyFromString.ts +3 -6
  284. package/accounts/utils/index.ts +0 -9
  285. package/accounts/utils/multisend.ts +5 -2
  286. package/accounts/utils/toKernelPluginManager.ts +23 -27
  287. package/actions/account-client/changeSudoValidator.ts +61 -85
  288. package/actions/account-client/getKernelV3ModuleCurrentNonce.ts +12 -51
  289. package/actions/account-client/invalidateNonce.ts +38 -67
  290. package/actions/account-client/sendTransaction.ts +134 -0
  291. package/actions/account-client/signMessage.ts +75 -0
  292. package/actions/account-client/signTypedData.ts +159 -0
  293. package/actions/account-client/signUserOperation.ts +31 -63
  294. package/actions/account-client/uninstallPlugin.ts +35 -54
  295. package/actions/account-client/writeContract.ts +72 -0
  296. package/actions/index.ts +15 -6
  297. package/actions/paymaster/estimateGasInERC20.ts +12 -8
  298. package/actions/paymaster/sponsorUserOperation.ts +52 -50
  299. package/actions/public/getAccountNonce.ts +77 -0
  300. package/actions/public/getSenderAddress.ts +276 -0
  301. package/actions/public/index.ts +9 -0
  302. package/clients/decorators/kernel.ts +363 -159
  303. package/clients/fallbackKernelAccountClient.ts +9 -11
  304. package/clients/kernelAccountClient.ts +142 -104
  305. package/clients/paymasterClient.ts +69 -43
  306. package/errors/index.ts +17 -0
  307. package/gasTokenAddresses.ts +3 -2
  308. package/index.ts +5 -2
  309. package/package.json +2 -3
  310. package/providers/KernelEIP1193Provider.ts +4 -7
  311. package/types/index.ts +2 -0
  312. package/types/kernel.ts +64 -63
  313. package/utils.ts +41 -13
  314. package/_cjs/actions/paymaster/sponsorUserOperationEip7677.js +0 -59
  315. package/_cjs/actions/paymaster/sponsorUserOperationEip7677.js.map +0 -1
  316. package/_esm/actions/paymaster/sponsorUserOperationEip7677.js +0 -58
  317. package/_esm/actions/paymaster/sponsorUserOperationEip7677.js.map +0 -1
  318. package/_types/actions/paymaster/sponsorUserOperationEip7677.d.ts +0 -16
  319. package/_types/actions/paymaster/sponsorUserOperationEip7677.d.ts.map +0 -1
  320. package/actions/paymaster/sponsorUserOperationEip7677.ts +0 -152
package/_types/utils.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { EntryPoint } from "permissionless/types/entrypoint";
2
1
  import { type Address, type Hex } from "viem";
2
+ import type { EntryPointVersion } from "viem/account-abstraction";
3
3
  import type { ZeroDevPaymasterClient } from "./clients/paymasterClient.js";
4
4
  import type { CALL_TYPE, EXEC_TYPE } from "./constants.js";
5
5
  import type { GetKernelVersion } from "./types/kernel.js";
@@ -10,10 +10,1315 @@ export declare enum KERNEL_FEATURES {
10
10
  }
11
11
  export declare const KERNEL_FEATURES_BY_VERSION: Record<KERNEL_FEATURES, string>;
12
12
  export declare const hasKernelFeature: (feature: KERNEL_FEATURES, version: string) => boolean;
13
- export declare const getERC20PaymasterApproveCall: <entryPoint extends EntryPoint>(client: ZeroDevPaymasterClient<entryPoint>, { gasToken, approveAmount, entryPoint }: {
13
+ export declare const getERC20PaymasterApproveCall: <entryPointVersion extends EntryPointVersion>(client: {
14
+ account: (object & {
15
+ client: import("viem").Client;
16
+ entryPoint: {
17
+ abi: import("viem").Abi;
18
+ address: `0x${string}`;
19
+ version: EntryPointVersion;
20
+ };
21
+ extend?: object | undefined;
22
+ getAddress: () => Promise<`0x${string}`>;
23
+ decodeCalls?: ((data: `0x${string}`) => Promise<readonly {
24
+ to: `0x${string}`;
25
+ data?: `0x${string}` | undefined;
26
+ value?: bigint | undefined;
27
+ }[]>) | undefined;
28
+ encodeCalls: (calls: readonly {
29
+ to: `0x${string}`;
30
+ data?: `0x${string}` | undefined;
31
+ value?: bigint | undefined;
32
+ }[]) => Promise<`0x${string}`>;
33
+ getFactoryArgs: () => Promise<{
34
+ factory?: `0x${string}` | undefined;
35
+ factoryData?: `0x${string}` | undefined;
36
+ }>;
37
+ getNonce?: ((parameters?: {
38
+ key?: bigint | undefined;
39
+ } | undefined) => Promise<bigint>) | undefined;
40
+ getStubSignature: (parameters?: import("viem/account-abstraction").UserOperationRequest | undefined) => Promise<`0x${string}`>;
41
+ nonceKeyManager?: import("viem").NonceManager | undefined;
42
+ sign?: ((parameters: {
43
+ hash: `0x${string}`;
44
+ }) => Promise<`0x${string}`>) | undefined;
45
+ signMessage: (parameters: {
46
+ message: import("viem").SignableMessage;
47
+ }) => Promise<`0x${string}`>;
48
+ signTypedData: <const typedData extends {
49
+ [x: string]: readonly import("viem").TypedDataParameter[];
50
+ [x: `string[${string}]`]: undefined;
51
+ [x: `function[${string}]`]: undefined;
52
+ [x: `address[${string}]`]: undefined;
53
+ [x: `bool[${string}]`]: undefined;
54
+ [x: `bytes[${string}]`]: undefined;
55
+ [x: `bytes1[${string}]`]: undefined;
56
+ [x: `bytes3[${string}]`]: undefined;
57
+ [x: `bytes2[${string}]`]: undefined;
58
+ [x: `bytes4[${string}]`]: undefined;
59
+ [x: `bytes5[${string}]`]: undefined;
60
+ [x: `bytes6[${string}]`]: undefined;
61
+ [x: `bytes7[${string}]`]: undefined;
62
+ [x: `bytes8[${string}]`]: undefined;
63
+ [x: `bytes9[${string}]`]: undefined;
64
+ [x: `bytes10[${string}]`]: undefined;
65
+ [x: `bytes11[${string}]`]: undefined;
66
+ [x: `bytes12[${string}]`]: undefined;
67
+ [x: `bytes13[${string}]`]: undefined;
68
+ [x: `bytes14[${string}]`]: undefined;
69
+ [x: `bytes15[${string}]`]: undefined;
70
+ [x: `bytes16[${string}]`]: undefined;
71
+ [x: `bytes17[${string}]`]: undefined;
72
+ [x: `bytes18[${string}]`]: undefined;
73
+ [x: `bytes19[${string}]`]: undefined;
74
+ [x: `bytes20[${string}]`]: undefined;
75
+ [x: `bytes21[${string}]`]: undefined;
76
+ [x: `bytes22[${string}]`]: undefined;
77
+ [x: `bytes23[${string}]`]: undefined;
78
+ [x: `bytes24[${string}]`]: undefined;
79
+ [x: `bytes25[${string}]`]: undefined;
80
+ [x: `bytes26[${string}]`]: undefined;
81
+ [x: `bytes27[${string}]`]: undefined;
82
+ [x: `bytes28[${string}]`]: undefined;
83
+ [x: `bytes29[${string}]`]: undefined;
84
+ [x: `bytes30[${string}]`]: undefined;
85
+ [x: `bytes31[${string}]`]: undefined;
86
+ [x: `bytes32[${string}]`]: undefined;
87
+ [x: `int[${string}]`]: undefined;
88
+ [x: `int8[${string}]`]: undefined;
89
+ [x: `int16[${string}]`]: undefined;
90
+ [x: `int24[${string}]`]: undefined;
91
+ [x: `int32[${string}]`]: undefined;
92
+ [x: `int40[${string}]`]: undefined;
93
+ [x: `int48[${string}]`]: undefined;
94
+ [x: `int56[${string}]`]: undefined;
95
+ [x: `int64[${string}]`]: undefined;
96
+ [x: `int72[${string}]`]: undefined;
97
+ [x: `int80[${string}]`]: undefined;
98
+ [x: `int88[${string}]`]: undefined;
99
+ [x: `int96[${string}]`]: undefined;
100
+ [x: `int104[${string}]`]: undefined;
101
+ [x: `int112[${string}]`]: undefined;
102
+ [x: `int120[${string}]`]: undefined;
103
+ [x: `int128[${string}]`]: undefined;
104
+ [x: `int136[${string}]`]: undefined;
105
+ [x: `int144[${string}]`]: undefined;
106
+ [x: `int152[${string}]`]: undefined;
107
+ [x: `int160[${string}]`]: undefined;
108
+ [x: `int168[${string}]`]: undefined;
109
+ [x: `int176[${string}]`]: undefined;
110
+ [x: `int184[${string}]`]: undefined;
111
+ [x: `int192[${string}]`]: undefined;
112
+ [x: `int200[${string}]`]: undefined;
113
+ [x: `int208[${string}]`]: undefined;
114
+ [x: `int216[${string}]`]: undefined;
115
+ [x: `int224[${string}]`]: undefined;
116
+ [x: `int232[${string}]`]: undefined;
117
+ [x: `int240[${string}]`]: undefined;
118
+ [x: `int248[${string}]`]: undefined;
119
+ [x: `int256[${string}]`]: undefined;
120
+ [x: `uint[${string}]`]: undefined;
121
+ [x: `uint8[${string}]`]: undefined;
122
+ [x: `uint16[${string}]`]: undefined;
123
+ [x: `uint24[${string}]`]: undefined;
124
+ [x: `uint32[${string}]`]: undefined;
125
+ [x: `uint40[${string}]`]: undefined;
126
+ [x: `uint48[${string}]`]: undefined;
127
+ [x: `uint56[${string}]`]: undefined;
128
+ [x: `uint64[${string}]`]: undefined;
129
+ [x: `uint72[${string}]`]: undefined;
130
+ [x: `uint80[${string}]`]: undefined;
131
+ [x: `uint88[${string}]`]: undefined;
132
+ [x: `uint96[${string}]`]: undefined;
133
+ [x: `uint104[${string}]`]: undefined;
134
+ [x: `uint112[${string}]`]: undefined;
135
+ [x: `uint120[${string}]`]: undefined;
136
+ [x: `uint128[${string}]`]: undefined;
137
+ [x: `uint136[${string}]`]: undefined;
138
+ [x: `uint144[${string}]`]: undefined;
139
+ [x: `uint152[${string}]`]: undefined;
140
+ [x: `uint160[${string}]`]: undefined;
141
+ [x: `uint168[${string}]`]: undefined;
142
+ [x: `uint176[${string}]`]: undefined;
143
+ [x: `uint184[${string}]`]: undefined;
144
+ [x: `uint192[${string}]`]: undefined;
145
+ [x: `uint200[${string}]`]: undefined;
146
+ [x: `uint208[${string}]`]: undefined;
147
+ [x: `uint216[${string}]`]: undefined;
148
+ [x: `uint224[${string}]`]: undefined;
149
+ [x: `uint232[${string}]`]: undefined;
150
+ [x: `uint240[${string}]`]: undefined;
151
+ [x: `uint248[${string}]`]: undefined;
152
+ [x: `uint256[${string}]`]: undefined;
153
+ string?: undefined;
154
+ address?: undefined;
155
+ bool?: undefined;
156
+ bytes?: undefined;
157
+ bytes1?: undefined;
158
+ bytes3?: undefined;
159
+ bytes2?: undefined;
160
+ bytes4?: undefined;
161
+ bytes5?: undefined;
162
+ bytes6?: undefined;
163
+ bytes7?: undefined;
164
+ bytes8?: undefined;
165
+ bytes9?: undefined;
166
+ bytes10?: undefined;
167
+ bytes11?: undefined;
168
+ bytes12?: undefined;
169
+ bytes13?: undefined;
170
+ bytes14?: undefined;
171
+ bytes15?: undefined;
172
+ bytes16?: undefined;
173
+ bytes17?: undefined;
174
+ bytes18?: undefined;
175
+ bytes19?: undefined;
176
+ bytes20?: undefined;
177
+ bytes21?: undefined;
178
+ bytes22?: undefined;
179
+ bytes23?: undefined;
180
+ bytes24?: undefined;
181
+ bytes25?: undefined;
182
+ bytes26?: undefined;
183
+ bytes27?: undefined;
184
+ bytes28?: undefined;
185
+ bytes29?: undefined;
186
+ bytes30?: undefined;
187
+ bytes31?: undefined;
188
+ bytes32?: undefined;
189
+ int8?: undefined;
190
+ int16?: undefined;
191
+ int24?: undefined;
192
+ int32?: undefined;
193
+ int40?: undefined;
194
+ int48?: undefined;
195
+ int56?: undefined;
196
+ int64?: undefined;
197
+ int72?: undefined;
198
+ int80?: undefined;
199
+ int88?: undefined;
200
+ int96?: undefined;
201
+ int104?: undefined;
202
+ int112?: undefined;
203
+ int120?: undefined;
204
+ int128?: undefined;
205
+ int136?: undefined;
206
+ int144?: undefined;
207
+ int152?: undefined;
208
+ int160?: undefined;
209
+ int168?: undefined;
210
+ int176?: undefined;
211
+ int184?: undefined;
212
+ int192?: undefined;
213
+ int200?: undefined;
214
+ int208?: undefined;
215
+ int216?: undefined;
216
+ int224?: undefined;
217
+ int232?: undefined;
218
+ int240?: undefined;
219
+ int248?: undefined;
220
+ int256?: undefined;
221
+ uint8?: undefined;
222
+ uint16?: undefined;
223
+ uint24?: undefined;
224
+ uint32?: undefined;
225
+ uint40?: undefined;
226
+ uint48?: undefined;
227
+ uint56?: undefined;
228
+ uint64?: undefined;
229
+ uint72?: undefined;
230
+ uint80?: undefined;
231
+ uint88?: undefined;
232
+ uint96?: undefined;
233
+ uint104?: undefined;
234
+ uint112?: undefined;
235
+ uint120?: undefined;
236
+ uint128?: undefined;
237
+ uint136?: undefined;
238
+ uint144?: undefined;
239
+ uint152?: undefined;
240
+ uint160?: undefined;
241
+ uint168?: undefined;
242
+ uint176?: undefined;
243
+ uint184?: undefined;
244
+ uint192?: undefined;
245
+ uint200?: undefined;
246
+ uint208?: undefined;
247
+ uint216?: undefined;
248
+ uint224?: undefined;
249
+ uint232?: undefined;
250
+ uint240?: undefined;
251
+ uint248?: undefined;
252
+ uint256?: undefined;
253
+ } | Record<string, unknown>, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
254
+ signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
255
+ chainId?: number | undefined;
256
+ }) => Promise<`0x${string}`>;
257
+ userOperation?: {
258
+ estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation.js").EstimateUserOperationGasReturnType> | undefined>) | undefined;
259
+ } | undefined;
260
+ } & {
261
+ address: `0x${string}`;
262
+ getNonce: (parameters?: {
263
+ key?: bigint | undefined;
264
+ } | undefined) => Promise<bigint>;
265
+ isDeployed: () => Promise<boolean>;
266
+ type: "smart";
267
+ }) | undefined;
268
+ batch?: {
269
+ multicall?: boolean | {
270
+ batchSize?: number | undefined;
271
+ wait?: number | undefined;
272
+ } | undefined;
273
+ } | undefined;
274
+ cacheTime: number;
275
+ ccipRead?: false | {
276
+ request?: ((parameters: import("viem").CcipRequestParameters) => Promise<`0x${string}`>) | undefined;
277
+ } | undefined;
278
+ chain: import("viem").Chain | undefined;
279
+ key: string;
280
+ name: string;
281
+ pollingInterval: number;
282
+ request: import("viem").EIP1193RequestFn<import("./types/kernel.js").ZeroDevPaymasterRpcSchema<entryPointVersion>>;
283
+ transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
284
+ type: string;
285
+ uid: string;
286
+ getPaymasterData: (parameters: import("viem/account-abstraction").GetPaymasterDataParameters) => Promise<import("viem/account-abstraction").GetPaymasterDataReturnType>;
287
+ getPaymasterStubData: (parameters: import("viem/account-abstraction").GetPaymasterStubDataParameters) => Promise<import("viem/account-abstraction").GetPaymasterStubDataReturnType>;
288
+ extend: <const client extends {
289
+ [x: string]: unknown;
290
+ account?: undefined;
291
+ batch?: undefined;
292
+ cacheTime?: undefined;
293
+ ccipRead?: undefined;
294
+ chain?: undefined;
295
+ key?: undefined;
296
+ name?: undefined;
297
+ pollingInterval?: undefined;
298
+ request?: undefined;
299
+ transport?: undefined;
300
+ type?: undefined;
301
+ uid?: undefined;
302
+ } & import("viem").ExactPartial<Pick<import("viem").PublicActions<import("viem").Transport, import("viem").Chain | undefined, (object & {
303
+ client: import("viem").Client;
304
+ entryPoint: {
305
+ abi: import("viem").Abi;
306
+ address: `0x${string}`;
307
+ version: EntryPointVersion;
308
+ };
309
+ extend?: object | undefined;
310
+ getAddress: () => Promise<`0x${string}`>;
311
+ decodeCalls?: ((data: `0x${string}`) => Promise<readonly {
312
+ to: `0x${string}`;
313
+ data?: `0x${string}` | undefined;
314
+ value?: bigint | undefined;
315
+ }[]>) | undefined;
316
+ encodeCalls: (calls: readonly {
317
+ to: `0x${string}`;
318
+ data?: `0x${string}` | undefined;
319
+ value?: bigint | undefined;
320
+ }[]) => Promise<`0x${string}`>;
321
+ getFactoryArgs: () => Promise<{
322
+ factory?: `0x${string}` | undefined;
323
+ factoryData?: `0x${string}` | undefined;
324
+ }>;
325
+ getNonce?: ((parameters?: {
326
+ key?: bigint | undefined;
327
+ } | undefined) => Promise<bigint>) | undefined;
328
+ getStubSignature: (parameters?: import("viem/account-abstraction").UserOperationRequest | undefined) => Promise<`0x${string}`>;
329
+ nonceKeyManager?: import("viem").NonceManager | undefined;
330
+ sign?: ((parameters: {
331
+ hash: `0x${string}`;
332
+ }) => Promise<`0x${string}`>) | undefined;
333
+ signMessage: (parameters: {
334
+ message: import("viem").SignableMessage;
335
+ }) => Promise<`0x${string}`>;
336
+ signTypedData: <const typedData extends {
337
+ [x: string]: readonly import("viem").TypedDataParameter[];
338
+ [x: `string[${string}]`]: undefined;
339
+ [x: `function[${string}]`]: undefined;
340
+ [x: `address[${string}]`]: undefined;
341
+ [x: `bool[${string}]`]: undefined;
342
+ [x: `bytes[${string}]`]: undefined;
343
+ [x: `bytes1[${string}]`]: undefined;
344
+ [x: `bytes3[${string}]`]: undefined;
345
+ [x: `bytes2[${string}]`]: undefined;
346
+ [x: `bytes4[${string}]`]: undefined;
347
+ [x: `bytes5[${string}]`]: undefined;
348
+ [x: `bytes6[${string}]`]: undefined;
349
+ [x: `bytes7[${string}]`]: undefined;
350
+ [x: `bytes8[${string}]`]: undefined;
351
+ [x: `bytes9[${string}]`]: undefined;
352
+ [x: `bytes10[${string}]`]: undefined;
353
+ [x: `bytes11[${string}]`]: undefined;
354
+ [x: `bytes12[${string}]`]: undefined;
355
+ [x: `bytes13[${string}]`]: undefined;
356
+ [x: `bytes14[${string}]`]: undefined;
357
+ [x: `bytes15[${string}]`]: undefined;
358
+ [x: `bytes16[${string}]`]: undefined;
359
+ [x: `bytes17[${string}]`]: undefined;
360
+ [x: `bytes18[${string}]`]: undefined;
361
+ [x: `bytes19[${string}]`]: undefined;
362
+ [x: `bytes20[${string}]`]: undefined;
363
+ [x: `bytes21[${string}]`]: undefined;
364
+ [x: `bytes22[${string}]`]: undefined;
365
+ [x: `bytes23[${string}]`]: undefined;
366
+ [x: `bytes24[${string}]`]: undefined;
367
+ [x: `bytes25[${string}]`]: undefined;
368
+ [x: `bytes26[${string}]`]: undefined;
369
+ [x: `bytes27[${string}]`]: undefined;
370
+ [x: `bytes28[${string}]`]: undefined;
371
+ [x: `bytes29[${string}]`]: undefined;
372
+ [x: `bytes30[${string}]`]: undefined;
373
+ [x: `bytes31[${string}]`]: undefined;
374
+ [x: `bytes32[${string}]`]: undefined;
375
+ [x: `int[${string}]`]: undefined;
376
+ [x: `int8[${string}]`]: undefined;
377
+ [x: `int16[${string}]`]: undefined;
378
+ [x: `int24[${string}]`]: undefined;
379
+ [x: `int32[${string}]`]: undefined;
380
+ [x: `int40[${string}]`]: undefined;
381
+ [x: `int48[${string}]`]: undefined;
382
+ [x: `int56[${string}]`]: undefined;
383
+ [x: `int64[${string}]`]: undefined;
384
+ [x: `int72[${string}]`]: undefined;
385
+ [x: `int80[${string}]`]: undefined;
386
+ [x: `int88[${string}]`]: undefined;
387
+ [x: `int96[${string}]`]: undefined;
388
+ [x: `int104[${string}]`]: undefined;
389
+ [x: `int112[${string}]`]: undefined;
390
+ [x: `int120[${string}]`]: undefined;
391
+ [x: `int128[${string}]`]: undefined;
392
+ [x: `int136[${string}]`]: undefined;
393
+ [x: `int144[${string}]`]: undefined;
394
+ [x: `int152[${string}]`]: undefined;
395
+ [x: `int160[${string}]`]: undefined;
396
+ [x: `int168[${string}]`]: undefined;
397
+ [x: `int176[${string}]`]: undefined;
398
+ [x: `int184[${string}]`]: undefined;
399
+ [x: `int192[${string}]`]: undefined;
400
+ [x: `int200[${string}]`]: undefined;
401
+ [x: `int208[${string}]`]: undefined;
402
+ [x: `int216[${string}]`]: undefined;
403
+ [x: `int224[${string}]`]: undefined;
404
+ [x: `int232[${string}]`]: undefined;
405
+ [x: `int240[${string}]`]: undefined;
406
+ [x: `int248[${string}]`]: undefined;
407
+ [x: `int256[${string}]`]: undefined;
408
+ [x: `uint[${string}]`]: undefined;
409
+ [x: `uint8[${string}]`]: undefined;
410
+ [x: `uint16[${string}]`]: undefined;
411
+ [x: `uint24[${string}]`]: undefined;
412
+ [x: `uint32[${string}]`]: undefined;
413
+ [x: `uint40[${string}]`]: undefined;
414
+ [x: `uint48[${string}]`]: undefined;
415
+ [x: `uint56[${string}]`]: undefined;
416
+ [x: `uint64[${string}]`]: undefined;
417
+ [x: `uint72[${string}]`]: undefined;
418
+ [x: `uint80[${string}]`]: undefined;
419
+ [x: `uint88[${string}]`]: undefined;
420
+ [x: `uint96[${string}]`]: undefined;
421
+ [x: `uint104[${string}]`]: undefined;
422
+ [x: `uint112[${string}]`]: undefined;
423
+ [x: `uint120[${string}]`]: undefined;
424
+ [x: `uint128[${string}]`]: undefined;
425
+ [x: `uint136[${string}]`]: undefined;
426
+ [x: `uint144[${string}]`]: undefined;
427
+ [x: `uint152[${string}]`]: undefined;
428
+ [x: `uint160[${string}]`]: undefined;
429
+ [x: `uint168[${string}]`]: undefined;
430
+ [x: `uint176[${string}]`]: undefined;
431
+ [x: `uint184[${string}]`]: undefined;
432
+ [x: `uint192[${string}]`]: undefined;
433
+ [x: `uint200[${string}]`]: undefined;
434
+ [x: `uint208[${string}]`]: undefined;
435
+ [x: `uint216[${string}]`]: undefined;
436
+ [x: `uint224[${string}]`]: undefined;
437
+ [x: `uint232[${string}]`]: undefined;
438
+ [x: `uint240[${string}]`]: undefined;
439
+ [x: `uint248[${string}]`]: undefined;
440
+ [x: `uint256[${string}]`]: undefined;
441
+ string?: undefined;
442
+ address?: undefined;
443
+ bool?: undefined;
444
+ bytes?: undefined;
445
+ bytes1?: undefined;
446
+ bytes3?: undefined;
447
+ bytes2?: undefined;
448
+ bytes4?: undefined;
449
+ bytes5?: undefined;
450
+ bytes6?: undefined;
451
+ bytes7?: undefined;
452
+ bytes8?: undefined;
453
+ bytes9?: undefined;
454
+ bytes10?: undefined;
455
+ bytes11?: undefined;
456
+ bytes12?: undefined;
457
+ bytes13?: undefined;
458
+ bytes14?: undefined;
459
+ bytes15?: undefined;
460
+ bytes16?: undefined;
461
+ bytes17?: undefined;
462
+ bytes18?: undefined;
463
+ bytes19?: undefined;
464
+ bytes20?: undefined;
465
+ bytes21?: undefined;
466
+ bytes22?: undefined;
467
+ bytes23?: undefined;
468
+ bytes24?: undefined;
469
+ bytes25?: undefined;
470
+ bytes26?: undefined;
471
+ bytes27?: undefined;
472
+ bytes28?: undefined;
473
+ bytes29?: undefined;
474
+ bytes30?: undefined;
475
+ bytes31?: undefined;
476
+ bytes32?: undefined;
477
+ int8?: undefined;
478
+ int16?: undefined;
479
+ int24?: undefined;
480
+ int32?: undefined;
481
+ int40?: undefined;
482
+ int48?: undefined;
483
+ int56?: undefined;
484
+ int64?: undefined;
485
+ int72?: undefined;
486
+ int80?: undefined;
487
+ int88?: undefined;
488
+ int96?: undefined;
489
+ int104?: undefined;
490
+ int112?: undefined;
491
+ int120?: undefined;
492
+ int128?: undefined;
493
+ int136?: undefined;
494
+ int144?: undefined;
495
+ int152?: undefined;
496
+ int160?: undefined;
497
+ int168?: undefined;
498
+ int176?: undefined;
499
+ int184?: undefined;
500
+ int192?: undefined;
501
+ int200?: undefined;
502
+ int208?: undefined;
503
+ int216?: undefined;
504
+ int224?: undefined;
505
+ int232?: undefined;
506
+ int240?: undefined;
507
+ int248?: undefined;
508
+ int256?: undefined;
509
+ uint8?: undefined;
510
+ uint16?: undefined;
511
+ uint24?: undefined;
512
+ uint32?: undefined;
513
+ uint40?: undefined;
514
+ uint48?: undefined;
515
+ uint56?: undefined;
516
+ uint64?: undefined;
517
+ uint72?: undefined;
518
+ uint80?: undefined;
519
+ uint88?: undefined;
520
+ uint96?: undefined;
521
+ uint104?: undefined;
522
+ uint112?: undefined;
523
+ uint120?: undefined;
524
+ uint128?: undefined;
525
+ uint136?: undefined;
526
+ uint144?: undefined;
527
+ uint152?: undefined;
528
+ uint160?: undefined;
529
+ uint168?: undefined;
530
+ uint176?: undefined;
531
+ uint184?: undefined;
532
+ uint192?: undefined;
533
+ uint200?: undefined;
534
+ uint208?: undefined;
535
+ uint216?: undefined;
536
+ uint224?: undefined;
537
+ uint232?: undefined;
538
+ uint240?: undefined;
539
+ uint248?: undefined;
540
+ uint256?: undefined;
541
+ } | Record<string, unknown>, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
542
+ signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
543
+ chainId?: number | undefined;
544
+ }) => Promise<`0x${string}`>;
545
+ userOperation?: {
546
+ estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation.js").EstimateUserOperationGasReturnType> | undefined>) | undefined;
547
+ } | undefined;
548
+ } & {
549
+ address: `0x${string}`;
550
+ getNonce: (parameters?: {
551
+ key?: bigint | undefined;
552
+ } | undefined) => Promise<bigint>;
553
+ isDeployed: () => Promise<boolean>;
554
+ type: "smart";
555
+ }) | undefined>, "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getChainId" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "prepareTransactionRequest" | "readContract" | "sendRawTransaction" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<import("viem").Chain | undefined, (object & {
556
+ client: import("viem").Client;
557
+ entryPoint: {
558
+ abi: import("viem").Abi;
559
+ address: `0x${string}`;
560
+ version: EntryPointVersion;
561
+ };
562
+ extend?: object | undefined;
563
+ getAddress: () => Promise<`0x${string}`>;
564
+ decodeCalls?: ((data: `0x${string}`) => Promise<readonly {
565
+ to: `0x${string}`;
566
+ data?: `0x${string}` | undefined;
567
+ value?: bigint | undefined;
568
+ }[]>) | undefined;
569
+ encodeCalls: (calls: readonly {
570
+ to: `0x${string}`;
571
+ data?: `0x${string}` | undefined;
572
+ value?: bigint | undefined;
573
+ }[]) => Promise<`0x${string}`>;
574
+ getFactoryArgs: () => Promise<{
575
+ factory?: `0x${string}` | undefined;
576
+ factoryData?: `0x${string}` | undefined;
577
+ }>;
578
+ getNonce?: ((parameters?: {
579
+ key?: bigint | undefined;
580
+ } | undefined) => Promise<bigint>) | undefined;
581
+ getStubSignature: (parameters?: import("viem/account-abstraction").UserOperationRequest | undefined) => Promise<`0x${string}`>;
582
+ nonceKeyManager?: import("viem").NonceManager | undefined;
583
+ sign?: ((parameters: {
584
+ hash: `0x${string}`;
585
+ }) => Promise<`0x${string}`>) | undefined;
586
+ signMessage: (parameters: {
587
+ message: import("viem").SignableMessage;
588
+ }) => Promise<`0x${string}`>;
589
+ signTypedData: <const typedData extends {
590
+ [x: string]: readonly import("viem").TypedDataParameter[];
591
+ [x: `string[${string}]`]: undefined;
592
+ [x: `function[${string}]`]: undefined;
593
+ [x: `address[${string}]`]: undefined;
594
+ [x: `bool[${string}]`]: undefined;
595
+ [x: `bytes[${string}]`]: undefined;
596
+ [x: `bytes1[${string}]`]: undefined;
597
+ [x: `bytes3[${string}]`]: undefined;
598
+ [x: `bytes2[${string}]`]: undefined;
599
+ [x: `bytes4[${string}]`]: undefined;
600
+ [x: `bytes5[${string}]`]: undefined;
601
+ [x: `bytes6[${string}]`]: undefined;
602
+ [x: `bytes7[${string}]`]: undefined;
603
+ [x: `bytes8[${string}]`]: undefined;
604
+ [x: `bytes9[${string}]`]: undefined;
605
+ [x: `bytes10[${string}]`]: undefined;
606
+ [x: `bytes11[${string}]`]: undefined;
607
+ [x: `bytes12[${string}]`]: undefined;
608
+ [x: `bytes13[${string}]`]: undefined;
609
+ [x: `bytes14[${string}]`]: undefined;
610
+ [x: `bytes15[${string}]`]: undefined;
611
+ [x: `bytes16[${string}]`]: undefined;
612
+ [x: `bytes17[${string}]`]: undefined;
613
+ [x: `bytes18[${string}]`]: undefined;
614
+ [x: `bytes19[${string}]`]: undefined;
615
+ [x: `bytes20[${string}]`]: undefined;
616
+ [x: `bytes21[${string}]`]: undefined;
617
+ [x: `bytes22[${string}]`]: undefined;
618
+ [x: `bytes23[${string}]`]: undefined;
619
+ [x: `bytes24[${string}]`]: undefined;
620
+ [x: `bytes25[${string}]`]: undefined;
621
+ [x: `bytes26[${string}]`]: undefined;
622
+ [x: `bytes27[${string}]`]: undefined;
623
+ [x: `bytes28[${string}]`]: undefined;
624
+ [x: `bytes29[${string}]`]: undefined;
625
+ [x: `bytes30[${string}]`]: undefined;
626
+ [x: `bytes31[${string}]`]: undefined;
627
+ [x: `bytes32[${string}]`]: undefined;
628
+ [x: `int[${string}]`]: undefined;
629
+ [x: `int8[${string}]`]: undefined;
630
+ [x: `int16[${string}]`]: undefined;
631
+ [x: `int24[${string}]`]: undefined;
632
+ [x: `int32[${string}]`]: undefined;
633
+ [x: `int40[${string}]`]: undefined;
634
+ [x: `int48[${string}]`]: undefined;
635
+ [x: `int56[${string}]`]: undefined;
636
+ [x: `int64[${string}]`]: undefined;
637
+ [x: `int72[${string}]`]: undefined;
638
+ [x: `int80[${string}]`]: undefined;
639
+ [x: `int88[${string}]`]: undefined;
640
+ [x: `int96[${string}]`]: undefined;
641
+ [x: `int104[${string}]`]: undefined;
642
+ [x: `int112[${string}]`]: undefined;
643
+ [x: `int120[${string}]`]: undefined;
644
+ [x: `int128[${string}]`]: undefined;
645
+ [x: `int136[${string}]`]: undefined;
646
+ [x: `int144[${string}]`]: undefined;
647
+ [x: `int152[${string}]`]: undefined;
648
+ [x: `int160[${string}]`]: undefined;
649
+ [x: `int168[${string}]`]: undefined;
650
+ [x: `int176[${string}]`]: undefined;
651
+ [x: `int184[${string}]`]: undefined;
652
+ [x: `int192[${string}]`]: undefined;
653
+ [x: `int200[${string}]`]: undefined;
654
+ [x: `int208[${string}]`]: undefined;
655
+ [x: `int216[${string}]`]: undefined;
656
+ [x: `int224[${string}]`]: undefined;
657
+ [x: `int232[${string}]`]: undefined;
658
+ [x: `int240[${string}]`]: undefined;
659
+ [x: `int248[${string}]`]: undefined;
660
+ [x: `int256[${string}]`]: undefined;
661
+ [x: `uint[${string}]`]: undefined;
662
+ [x: `uint8[${string}]`]: undefined;
663
+ [x: `uint16[${string}]`]: undefined;
664
+ [x: `uint24[${string}]`]: undefined;
665
+ [x: `uint32[${string}]`]: undefined;
666
+ [x: `uint40[${string}]`]: undefined;
667
+ [x: `uint48[${string}]`]: undefined;
668
+ [x: `uint56[${string}]`]: undefined;
669
+ [x: `uint64[${string}]`]: undefined;
670
+ [x: `uint72[${string}]`]: undefined;
671
+ [x: `uint80[${string}]`]: undefined;
672
+ [x: `uint88[${string}]`]: undefined;
673
+ [x: `uint96[${string}]`]: undefined;
674
+ [x: `uint104[${string}]`]: undefined;
675
+ [x: `uint112[${string}]`]: undefined;
676
+ [x: `uint120[${string}]`]: undefined;
677
+ [x: `uint128[${string}]`]: undefined;
678
+ [x: `uint136[${string}]`]: undefined;
679
+ [x: `uint144[${string}]`]: undefined;
680
+ [x: `uint152[${string}]`]: undefined;
681
+ [x: `uint160[${string}]`]: undefined;
682
+ [x: `uint168[${string}]`]: undefined;
683
+ [x: `uint176[${string}]`]: undefined;
684
+ [x: `uint184[${string}]`]: undefined;
685
+ [x: `uint192[${string}]`]: undefined;
686
+ [x: `uint200[${string}]`]: undefined;
687
+ [x: `uint208[${string}]`]: undefined;
688
+ [x: `uint216[${string}]`]: undefined;
689
+ [x: `uint224[${string}]`]: undefined;
690
+ [x: `uint232[${string}]`]: undefined;
691
+ [x: `uint240[${string}]`]: undefined;
692
+ [x: `uint248[${string}]`]: undefined;
693
+ [x: `uint256[${string}]`]: undefined;
694
+ string?: undefined;
695
+ address?: undefined;
696
+ bool?: undefined;
697
+ bytes?: undefined;
698
+ bytes1?: undefined;
699
+ bytes3?: undefined;
700
+ bytes2?: undefined;
701
+ bytes4?: undefined;
702
+ bytes5?: undefined;
703
+ bytes6?: undefined;
704
+ bytes7?: undefined;
705
+ bytes8?: undefined;
706
+ bytes9?: undefined;
707
+ bytes10?: undefined;
708
+ bytes11?: undefined;
709
+ bytes12?: undefined;
710
+ bytes13?: undefined;
711
+ bytes14?: undefined;
712
+ bytes15?: undefined;
713
+ bytes16?: undefined;
714
+ bytes17?: undefined;
715
+ bytes18?: undefined;
716
+ bytes19?: undefined;
717
+ bytes20?: undefined;
718
+ bytes21?: undefined;
719
+ bytes22?: undefined;
720
+ bytes23?: undefined;
721
+ bytes24?: undefined;
722
+ bytes25?: undefined;
723
+ bytes26?: undefined;
724
+ bytes27?: undefined;
725
+ bytes28?: undefined;
726
+ bytes29?: undefined;
727
+ bytes30?: undefined;
728
+ bytes31?: undefined;
729
+ bytes32?: undefined;
730
+ int8?: undefined;
731
+ int16?: undefined;
732
+ int24?: undefined;
733
+ int32?: undefined;
734
+ int40?: undefined;
735
+ int48?: undefined;
736
+ int56?: undefined;
737
+ int64?: undefined;
738
+ int72?: undefined;
739
+ int80?: undefined;
740
+ int88?: undefined;
741
+ int96?: undefined;
742
+ int104?: undefined;
743
+ int112?: undefined;
744
+ int120?: undefined;
745
+ int128?: undefined;
746
+ int136?: undefined;
747
+ int144?: undefined;
748
+ int152?: undefined;
749
+ int160?: undefined;
750
+ int168?: undefined;
751
+ int176?: undefined;
752
+ int184?: undefined;
753
+ int192?: undefined;
754
+ int200?: undefined;
755
+ int208?: undefined;
756
+ int216?: undefined;
757
+ int224?: undefined;
758
+ int232?: undefined;
759
+ int240?: undefined;
760
+ int248?: undefined;
761
+ int256?: undefined;
762
+ uint8?: undefined;
763
+ uint16?: undefined;
764
+ uint24?: undefined;
765
+ uint32?: undefined;
766
+ uint40?: undefined;
767
+ uint48?: undefined;
768
+ uint56?: undefined;
769
+ uint64?: undefined;
770
+ uint72?: undefined;
771
+ uint80?: undefined;
772
+ uint88?: undefined;
773
+ uint96?: undefined;
774
+ uint104?: undefined;
775
+ uint112?: undefined;
776
+ uint120?: undefined;
777
+ uint128?: undefined;
778
+ uint136?: undefined;
779
+ uint144?: undefined;
780
+ uint152?: undefined;
781
+ uint160?: undefined;
782
+ uint168?: undefined;
783
+ uint176?: undefined;
784
+ uint184?: undefined;
785
+ uint192?: undefined;
786
+ uint200?: undefined;
787
+ uint208?: undefined;
788
+ uint216?: undefined;
789
+ uint224?: undefined;
790
+ uint232?: undefined;
791
+ uint240?: undefined;
792
+ uint248?: undefined;
793
+ uint256?: undefined;
794
+ } | Record<string, unknown>, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
795
+ signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
796
+ chainId?: number | undefined;
797
+ }) => Promise<`0x${string}`>;
798
+ userOperation?: {
799
+ estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation.js").EstimateUserOperationGasReturnType> | undefined>) | undefined;
800
+ } | undefined;
801
+ } & {
802
+ address: `0x${string}`;
803
+ getNonce: (parameters?: {
804
+ key?: bigint | undefined;
805
+ } | undefined) => Promise<bigint>;
806
+ isDeployed: () => Promise<boolean>;
807
+ type: "smart";
808
+ }) | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, (object & {
809
+ client: import("viem").Client;
810
+ entryPoint: {
811
+ abi: import("viem").Abi;
812
+ address: `0x${string}`;
813
+ version: EntryPointVersion;
814
+ };
815
+ extend?: object | undefined;
816
+ getAddress: () => Promise<`0x${string}`>;
817
+ decodeCalls?: ((data: `0x${string}`) => Promise<readonly {
818
+ to: `0x${string}`;
819
+ data?: `0x${string}` | undefined;
820
+ value?: bigint | undefined;
821
+ }[]>) | undefined;
822
+ encodeCalls: (calls: readonly {
823
+ to: `0x${string}`;
824
+ data?: `0x${string}` | undefined;
825
+ value?: bigint | undefined;
826
+ }[]) => Promise<`0x${string}`>;
827
+ getFactoryArgs: () => Promise<{
828
+ factory?: `0x${string}` | undefined;
829
+ factoryData?: `0x${string}` | undefined;
830
+ }>;
831
+ getNonce?: ((parameters?: {
832
+ key?: bigint | undefined;
833
+ } | undefined) => Promise<bigint>) | undefined;
834
+ getStubSignature: (parameters?: import("viem/account-abstraction").UserOperationRequest | undefined) => Promise<`0x${string}`>;
835
+ nonceKeyManager?: import("viem").NonceManager | undefined;
836
+ sign?: ((parameters: {
837
+ hash: `0x${string}`;
838
+ }) => Promise<`0x${string}`>) | undefined;
839
+ signMessage: (parameters: {
840
+ message: import("viem").SignableMessage;
841
+ }) => Promise<`0x${string}`>;
842
+ signTypedData: <const typedData extends {
843
+ [x: string]: readonly import("viem").TypedDataParameter[];
844
+ [x: `string[${string}]`]: undefined;
845
+ [x: `function[${string}]`]: undefined;
846
+ [x: `address[${string}]`]: undefined;
847
+ [x: `bool[${string}]`]: undefined;
848
+ [x: `bytes[${string}]`]: undefined;
849
+ [x: `bytes1[${string}]`]: undefined;
850
+ [x: `bytes3[${string}]`]: undefined;
851
+ [x: `bytes2[${string}]`]: undefined;
852
+ [x: `bytes4[${string}]`]: undefined;
853
+ [x: `bytes5[${string}]`]: undefined;
854
+ [x: `bytes6[${string}]`]: undefined;
855
+ [x: `bytes7[${string}]`]: undefined;
856
+ [x: `bytes8[${string}]`]: undefined;
857
+ [x: `bytes9[${string}]`]: undefined;
858
+ [x: `bytes10[${string}]`]: undefined;
859
+ [x: `bytes11[${string}]`]: undefined;
860
+ [x: `bytes12[${string}]`]: undefined;
861
+ [x: `bytes13[${string}]`]: undefined;
862
+ [x: `bytes14[${string}]`]: undefined;
863
+ [x: `bytes15[${string}]`]: undefined;
864
+ [x: `bytes16[${string}]`]: undefined;
865
+ [x: `bytes17[${string}]`]: undefined;
866
+ [x: `bytes18[${string}]`]: undefined;
867
+ [x: `bytes19[${string}]`]: undefined;
868
+ [x: `bytes20[${string}]`]: undefined;
869
+ [x: `bytes21[${string}]`]: undefined;
870
+ [x: `bytes22[${string}]`]: undefined;
871
+ [x: `bytes23[${string}]`]: undefined;
872
+ [x: `bytes24[${string}]`]: undefined;
873
+ [x: `bytes25[${string}]`]: undefined;
874
+ [x: `bytes26[${string}]`]: undefined;
875
+ [x: `bytes27[${string}]`]: undefined;
876
+ [x: `bytes28[${string}]`]: undefined;
877
+ [x: `bytes29[${string}]`]: undefined;
878
+ [x: `bytes30[${string}]`]: undefined;
879
+ [x: `bytes31[${string}]`]: undefined;
880
+ [x: `bytes32[${string}]`]: undefined;
881
+ [x: `int[${string}]`]: undefined;
882
+ [x: `int8[${string}]`]: undefined;
883
+ [x: `int16[${string}]`]: undefined;
884
+ [x: `int24[${string}]`]: undefined;
885
+ [x: `int32[${string}]`]: undefined;
886
+ [x: `int40[${string}]`]: undefined;
887
+ [x: `int48[${string}]`]: undefined;
888
+ [x: `int56[${string}]`]: undefined;
889
+ [x: `int64[${string}]`]: undefined;
890
+ [x: `int72[${string}]`]: undefined;
891
+ [x: `int80[${string}]`]: undefined;
892
+ [x: `int88[${string}]`]: undefined;
893
+ [x: `int96[${string}]`]: undefined;
894
+ [x: `int104[${string}]`]: undefined;
895
+ [x: `int112[${string}]`]: undefined;
896
+ [x: `int120[${string}]`]: undefined;
897
+ [x: `int128[${string}]`]: undefined;
898
+ [x: `int136[${string}]`]: undefined;
899
+ [x: `int144[${string}]`]: undefined;
900
+ [x: `int152[${string}]`]: undefined;
901
+ [x: `int160[${string}]`]: undefined;
902
+ [x: `int168[${string}]`]: undefined;
903
+ [x: `int176[${string}]`]: undefined;
904
+ [x: `int184[${string}]`]: undefined;
905
+ [x: `int192[${string}]`]: undefined;
906
+ [x: `int200[${string}]`]: undefined;
907
+ [x: `int208[${string}]`]: undefined;
908
+ [x: `int216[${string}]`]: undefined;
909
+ [x: `int224[${string}]`]: undefined;
910
+ [x: `int232[${string}]`]: undefined;
911
+ [x: `int240[${string}]`]: undefined;
912
+ [x: `int248[${string}]`]: undefined;
913
+ [x: `int256[${string}]`]: undefined;
914
+ [x: `uint[${string}]`]: undefined;
915
+ [x: `uint8[${string}]`]: undefined;
916
+ [x: `uint16[${string}]`]: undefined;
917
+ [x: `uint24[${string}]`]: undefined;
918
+ [x: `uint32[${string}]`]: undefined;
919
+ [x: `uint40[${string}]`]: undefined;
920
+ [x: `uint48[${string}]`]: undefined;
921
+ [x: `uint56[${string}]`]: undefined;
922
+ [x: `uint64[${string}]`]: undefined;
923
+ [x: `uint72[${string}]`]: undefined;
924
+ [x: `uint80[${string}]`]: undefined;
925
+ [x: `uint88[${string}]`]: undefined;
926
+ [x: `uint96[${string}]`]: undefined;
927
+ [x: `uint104[${string}]`]: undefined;
928
+ [x: `uint112[${string}]`]: undefined;
929
+ [x: `uint120[${string}]`]: undefined;
930
+ [x: `uint128[${string}]`]: undefined;
931
+ [x: `uint136[${string}]`]: undefined;
932
+ [x: `uint144[${string}]`]: undefined;
933
+ [x: `uint152[${string}]`]: undefined;
934
+ [x: `uint160[${string}]`]: undefined;
935
+ [x: `uint168[${string}]`]: undefined;
936
+ [x: `uint176[${string}]`]: undefined;
937
+ [x: `uint184[${string}]`]: undefined;
938
+ [x: `uint192[${string}]`]: undefined;
939
+ [x: `uint200[${string}]`]: undefined;
940
+ [x: `uint208[${string}]`]: undefined;
941
+ [x: `uint216[${string}]`]: undefined;
942
+ [x: `uint224[${string}]`]: undefined;
943
+ [x: `uint232[${string}]`]: undefined;
944
+ [x: `uint240[${string}]`]: undefined;
945
+ [x: `uint248[${string}]`]: undefined;
946
+ [x: `uint256[${string}]`]: undefined;
947
+ string?: undefined;
948
+ address?: undefined;
949
+ bool?: undefined;
950
+ bytes?: undefined;
951
+ bytes1?: undefined;
952
+ bytes3?: undefined;
953
+ bytes2?: undefined;
954
+ bytes4?: undefined;
955
+ bytes5?: undefined;
956
+ bytes6?: undefined;
957
+ bytes7?: undefined;
958
+ bytes8?: undefined;
959
+ bytes9?: undefined;
960
+ bytes10?: undefined;
961
+ bytes11?: undefined;
962
+ bytes12?: undefined;
963
+ bytes13?: undefined;
964
+ bytes14?: undefined;
965
+ bytes15?: undefined;
966
+ bytes16?: undefined;
967
+ bytes17?: undefined;
968
+ bytes18?: undefined;
969
+ bytes19?: undefined;
970
+ bytes20?: undefined;
971
+ bytes21?: undefined;
972
+ bytes22?: undefined;
973
+ bytes23?: undefined;
974
+ bytes24?: undefined;
975
+ bytes25?: undefined;
976
+ bytes26?: undefined;
977
+ bytes27?: undefined;
978
+ bytes28?: undefined;
979
+ bytes29?: undefined;
980
+ bytes30?: undefined;
981
+ bytes31?: undefined;
982
+ bytes32?: undefined;
983
+ int8?: undefined;
984
+ int16?: undefined;
985
+ int24?: undefined;
986
+ int32?: undefined;
987
+ int40?: undefined;
988
+ int48?: undefined;
989
+ int56?: undefined;
990
+ int64?: undefined;
991
+ int72?: undefined;
992
+ int80?: undefined;
993
+ int88?: undefined;
994
+ int96?: undefined;
995
+ int104?: undefined;
996
+ int112?: undefined;
997
+ int120?: undefined;
998
+ int128?: undefined;
999
+ int136?: undefined;
1000
+ int144?: undefined;
1001
+ int152?: undefined;
1002
+ int160?: undefined;
1003
+ int168?: undefined;
1004
+ int176?: undefined;
1005
+ int184?: undefined;
1006
+ int192?: undefined;
1007
+ int200?: undefined;
1008
+ int208?: undefined;
1009
+ int216?: undefined;
1010
+ int224?: undefined;
1011
+ int232?: undefined;
1012
+ int240?: undefined;
1013
+ int248?: undefined;
1014
+ int256?: undefined;
1015
+ uint8?: undefined;
1016
+ uint16?: undefined;
1017
+ uint24?: undefined;
1018
+ uint32?: undefined;
1019
+ uint40?: undefined;
1020
+ uint48?: undefined;
1021
+ uint56?: undefined;
1022
+ uint64?: undefined;
1023
+ uint72?: undefined;
1024
+ uint80?: undefined;
1025
+ uint88?: undefined;
1026
+ uint96?: undefined;
1027
+ uint104?: undefined;
1028
+ uint112?: undefined;
1029
+ uint120?: undefined;
1030
+ uint128?: undefined;
1031
+ uint136?: undefined;
1032
+ uint144?: undefined;
1033
+ uint152?: undefined;
1034
+ uint160?: undefined;
1035
+ uint168?: undefined;
1036
+ uint176?: undefined;
1037
+ uint184?: undefined;
1038
+ uint192?: undefined;
1039
+ uint200?: undefined;
1040
+ uint208?: undefined;
1041
+ uint216?: undefined;
1042
+ uint224?: undefined;
1043
+ uint232?: undefined;
1044
+ uint240?: undefined;
1045
+ uint248?: undefined;
1046
+ uint256?: undefined;
1047
+ } | Record<string, unknown>, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
1048
+ signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
1049
+ chainId?: number | undefined;
1050
+ }) => Promise<`0x${string}`>;
1051
+ userOperation?: {
1052
+ estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation.js").EstimateUserOperationGasReturnType> | undefined>) | undefined;
1053
+ } | undefined;
1054
+ } & {
1055
+ address: `0x${string}`;
1056
+ getNonce: (parameters?: {
1057
+ key?: bigint | undefined;
1058
+ } | undefined) => Promise<bigint>;
1059
+ isDeployed: () => Promise<boolean>;
1060
+ type: "smart";
1061
+ }) | undefined, import("./types/kernel.js").ZeroDevPaymasterRpcSchema<entryPointVersion>, import("viem/account-abstraction").PaymasterActions>) => client) => import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, (object & {
1062
+ client: import("viem").Client;
1063
+ entryPoint: {
1064
+ abi: import("viem").Abi;
1065
+ address: `0x${string}`;
1066
+ version: EntryPointVersion;
1067
+ };
1068
+ extend?: object | undefined;
1069
+ getAddress: () => Promise<`0x${string}`>;
1070
+ decodeCalls?: ((data: `0x${string}`) => Promise<readonly {
1071
+ to: `0x${string}`;
1072
+ data?: `0x${string}` | undefined;
1073
+ value?: bigint | undefined;
1074
+ }[]>) | undefined;
1075
+ encodeCalls: (calls: readonly {
1076
+ to: `0x${string}`;
1077
+ data?: `0x${string}` | undefined;
1078
+ value?: bigint | undefined;
1079
+ }[]) => Promise<`0x${string}`>;
1080
+ getFactoryArgs: () => Promise<{
1081
+ factory?: `0x${string}` | undefined;
1082
+ factoryData?: `0x${string}` | undefined;
1083
+ }>;
1084
+ getNonce?: ((parameters?: {
1085
+ key?: bigint | undefined;
1086
+ } | undefined) => Promise<bigint>) | undefined;
1087
+ getStubSignature: (parameters?: import("viem/account-abstraction").UserOperationRequest | undefined) => Promise<`0x${string}`>;
1088
+ nonceKeyManager?: import("viem").NonceManager | undefined;
1089
+ sign?: ((parameters: {
1090
+ hash: `0x${string}`;
1091
+ }) => Promise<`0x${string}`>) | undefined;
1092
+ signMessage: (parameters: {
1093
+ message: import("viem").SignableMessage;
1094
+ }) => Promise<`0x${string}`>;
1095
+ signTypedData: <const typedData extends {
1096
+ [x: string]: readonly import("viem").TypedDataParameter[];
1097
+ [x: `string[${string}]`]: undefined;
1098
+ [x: `function[${string}]`]: undefined;
1099
+ [x: `address[${string}]`]: undefined;
1100
+ [x: `bool[${string}]`]: undefined;
1101
+ [x: `bytes[${string}]`]: undefined;
1102
+ [x: `bytes1[${string}]`]: undefined;
1103
+ [x: `bytes3[${string}]`]: undefined;
1104
+ [x: `bytes2[${string}]`]: undefined;
1105
+ [x: `bytes4[${string}]`]: undefined;
1106
+ [x: `bytes5[${string}]`]: undefined;
1107
+ [x: `bytes6[${string}]`]: undefined;
1108
+ [x: `bytes7[${string}]`]: undefined;
1109
+ [x: `bytes8[${string}]`]: undefined;
1110
+ [x: `bytes9[${string}]`]: undefined;
1111
+ [x: `bytes10[${string}]`]: undefined;
1112
+ [x: `bytes11[${string}]`]: undefined;
1113
+ [x: `bytes12[${string}]`]: undefined;
1114
+ [x: `bytes13[${string}]`]: undefined;
1115
+ [x: `bytes14[${string}]`]: undefined;
1116
+ [x: `bytes15[${string}]`]: undefined;
1117
+ [x: `bytes16[${string}]`]: undefined;
1118
+ [x: `bytes17[${string}]`]: undefined;
1119
+ [x: `bytes18[${string}]`]: undefined;
1120
+ [x: `bytes19[${string}]`]: undefined;
1121
+ [x: `bytes20[${string}]`]: undefined;
1122
+ [x: `bytes21[${string}]`]: undefined;
1123
+ [x: `bytes22[${string}]`]: undefined;
1124
+ [x: `bytes23[${string}]`]: undefined;
1125
+ [x: `bytes24[${string}]`]: undefined;
1126
+ [x: `bytes25[${string}]`]: undefined;
1127
+ [x: `bytes26[${string}]`]: undefined;
1128
+ [x: `bytes27[${string}]`]: undefined;
1129
+ [x: `bytes28[${string}]`]: undefined;
1130
+ [x: `bytes29[${string}]`]: undefined;
1131
+ [x: `bytes30[${string}]`]: undefined;
1132
+ [x: `bytes31[${string}]`]: undefined;
1133
+ [x: `bytes32[${string}]`]: undefined;
1134
+ [x: `int[${string}]`]: undefined;
1135
+ [x: `int8[${string}]`]: undefined;
1136
+ [x: `int16[${string}]`]: undefined;
1137
+ [x: `int24[${string}]`]: undefined;
1138
+ [x: `int32[${string}]`]: undefined;
1139
+ [x: `int40[${string}]`]: undefined;
1140
+ [x: `int48[${string}]`]: undefined;
1141
+ [x: `int56[${string}]`]: undefined;
1142
+ [x: `int64[${string}]`]: undefined;
1143
+ [x: `int72[${string}]`]: undefined;
1144
+ [x: `int80[${string}]`]: undefined;
1145
+ [x: `int88[${string}]`]: undefined;
1146
+ [x: `int96[${string}]`]: undefined;
1147
+ [x: `int104[${string}]`]: undefined;
1148
+ [x: `int112[${string}]`]: undefined;
1149
+ [x: `int120[${string}]`]: undefined;
1150
+ [x: `int128[${string}]`]: undefined;
1151
+ [x: `int136[${string}]`]: undefined;
1152
+ [x: `int144[${string}]`]: undefined;
1153
+ [x: `int152[${string}]`]: undefined;
1154
+ [x: `int160[${string}]`]: undefined;
1155
+ [x: `int168[${string}]`]: undefined;
1156
+ [x: `int176[${string}]`]: undefined;
1157
+ [x: `int184[${string}]`]: undefined;
1158
+ [x: `int192[${string}]`]: undefined;
1159
+ [x: `int200[${string}]`]: undefined;
1160
+ [x: `int208[${string}]`]: undefined;
1161
+ [x: `int216[${string}]`]: undefined;
1162
+ [x: `int224[${string}]`]: undefined;
1163
+ [x: `int232[${string}]`]: undefined;
1164
+ [x: `int240[${string}]`]: undefined;
1165
+ [x: `int248[${string}]`]: undefined;
1166
+ [x: `int256[${string}]`]: undefined;
1167
+ [x: `uint[${string}]`]: undefined;
1168
+ [x: `uint8[${string}]`]: undefined;
1169
+ [x: `uint16[${string}]`]: undefined;
1170
+ [x: `uint24[${string}]`]: undefined;
1171
+ [x: `uint32[${string}]`]: undefined;
1172
+ [x: `uint40[${string}]`]: undefined;
1173
+ [x: `uint48[${string}]`]: undefined;
1174
+ [x: `uint56[${string}]`]: undefined;
1175
+ [x: `uint64[${string}]`]: undefined;
1176
+ [x: `uint72[${string}]`]: undefined;
1177
+ [x: `uint80[${string}]`]: undefined;
1178
+ [x: `uint88[${string}]`]: undefined;
1179
+ [x: `uint96[${string}]`]: undefined;
1180
+ [x: `uint104[${string}]`]: undefined;
1181
+ [x: `uint112[${string}]`]: undefined;
1182
+ [x: `uint120[${string}]`]: undefined;
1183
+ [x: `uint128[${string}]`]: undefined;
1184
+ [x: `uint136[${string}]`]: undefined;
1185
+ [x: `uint144[${string}]`]: undefined;
1186
+ [x: `uint152[${string}]`]: undefined;
1187
+ [x: `uint160[${string}]`]: undefined;
1188
+ [x: `uint168[${string}]`]: undefined;
1189
+ [x: `uint176[${string}]`]: undefined;
1190
+ [x: `uint184[${string}]`]: undefined;
1191
+ [x: `uint192[${string}]`]: undefined;
1192
+ [x: `uint200[${string}]`]: undefined;
1193
+ [x: `uint208[${string}]`]: undefined;
1194
+ [x: `uint216[${string}]`]: undefined;
1195
+ [x: `uint224[${string}]`]: undefined;
1196
+ [x: `uint232[${string}]`]: undefined;
1197
+ [x: `uint240[${string}]`]: undefined;
1198
+ [x: `uint248[${string}]`]: undefined;
1199
+ [x: `uint256[${string}]`]: undefined;
1200
+ string?: undefined;
1201
+ address?: undefined;
1202
+ bool?: undefined;
1203
+ bytes?: undefined;
1204
+ bytes1?: undefined;
1205
+ bytes3?: undefined;
1206
+ bytes2?: undefined;
1207
+ bytes4?: undefined;
1208
+ bytes5?: undefined;
1209
+ bytes6?: undefined;
1210
+ bytes7?: undefined;
1211
+ bytes8?: undefined;
1212
+ bytes9?: undefined;
1213
+ bytes10?: undefined;
1214
+ bytes11?: undefined;
1215
+ bytes12?: undefined;
1216
+ bytes13?: undefined;
1217
+ bytes14?: undefined;
1218
+ bytes15?: undefined;
1219
+ bytes16?: undefined;
1220
+ bytes17?: undefined;
1221
+ bytes18?: undefined;
1222
+ bytes19?: undefined;
1223
+ bytes20?: undefined;
1224
+ bytes21?: undefined;
1225
+ bytes22?: undefined;
1226
+ bytes23?: undefined;
1227
+ bytes24?: undefined;
1228
+ bytes25?: undefined;
1229
+ bytes26?: undefined;
1230
+ bytes27?: undefined;
1231
+ bytes28?: undefined;
1232
+ bytes29?: undefined;
1233
+ bytes30?: undefined;
1234
+ bytes31?: undefined;
1235
+ bytes32?: undefined;
1236
+ int8?: undefined;
1237
+ int16?: undefined;
1238
+ int24?: undefined;
1239
+ int32?: undefined;
1240
+ int40?: undefined;
1241
+ int48?: undefined;
1242
+ int56?: undefined;
1243
+ int64?: undefined;
1244
+ int72?: undefined;
1245
+ int80?: undefined;
1246
+ int88?: undefined;
1247
+ int96?: undefined;
1248
+ int104?: undefined;
1249
+ int112?: undefined;
1250
+ int120?: undefined;
1251
+ int128?: undefined;
1252
+ int136?: undefined;
1253
+ int144?: undefined;
1254
+ int152?: undefined;
1255
+ int160?: undefined;
1256
+ int168?: undefined;
1257
+ int176?: undefined;
1258
+ int184?: undefined;
1259
+ int192?: undefined;
1260
+ int200?: undefined;
1261
+ int208?: undefined;
1262
+ int216?: undefined;
1263
+ int224?: undefined;
1264
+ int232?: undefined;
1265
+ int240?: undefined;
1266
+ int248?: undefined;
1267
+ int256?: undefined;
1268
+ uint8?: undefined;
1269
+ uint16?: undefined;
1270
+ uint24?: undefined;
1271
+ uint32?: undefined;
1272
+ uint40?: undefined;
1273
+ uint48?: undefined;
1274
+ uint56?: undefined;
1275
+ uint64?: undefined;
1276
+ uint72?: undefined;
1277
+ uint80?: undefined;
1278
+ uint88?: undefined;
1279
+ uint96?: undefined;
1280
+ uint104?: undefined;
1281
+ uint112?: undefined;
1282
+ uint120?: undefined;
1283
+ uint128?: undefined;
1284
+ uint136?: undefined;
1285
+ uint144?: undefined;
1286
+ uint152?: undefined;
1287
+ uint160?: undefined;
1288
+ uint168?: undefined;
1289
+ uint176?: undefined;
1290
+ uint184?: undefined;
1291
+ uint192?: undefined;
1292
+ uint200?: undefined;
1293
+ uint208?: undefined;
1294
+ uint216?: undefined;
1295
+ uint224?: undefined;
1296
+ uint232?: undefined;
1297
+ uint240?: undefined;
1298
+ uint248?: undefined;
1299
+ uint256?: undefined;
1300
+ } | Record<string, unknown>, primaryType extends "EIP712Domain" | keyof typedData = keyof typedData>(parameters: import("viem").TypedDataDefinition<typedData, primaryType>) => Promise<`0x${string}`>;
1301
+ signUserOperation: (parameters: import("viem").UnionPartialBy<import("viem/account-abstraction").UserOperation, "sender"> & {
1302
+ chainId?: number | undefined;
1303
+ }) => Promise<`0x${string}`>;
1304
+ userOperation?: {
1305
+ estimateGas?: ((userOperation: import("viem/account-abstraction").UserOperationRequest) => Promise<import("viem").ExactPartial<import("viem/_types/account-abstraction/types/userOperation.js").EstimateUserOperationGasReturnType> | undefined>) | undefined;
1306
+ } | undefined;
1307
+ } & {
1308
+ address: `0x${string}`;
1309
+ getNonce: (parameters?: {
1310
+ key?: bigint | undefined;
1311
+ } | undefined) => Promise<bigint>;
1312
+ isDeployed: () => Promise<boolean>;
1313
+ type: "smart";
1314
+ }) | undefined, import("./types/kernel.js").ZeroDevPaymasterRpcSchema<entryPointVersion>, { [K in keyof client]: client[K]; } & import("viem/account-abstraction").PaymasterActions>;
1315
+ }, { gasToken, approveAmount, entryPoint }: {
14
1316
  gasToken: Address;
15
1317
  approveAmount: bigint;
16
- entryPoint: Address;
1318
+ entryPoint: {
1319
+ address: Address;
1320
+ version: entryPointVersion;
1321
+ };
17
1322
  }) => Promise<{
18
1323
  to: Address;
19
1324
  value: bigint;
@@ -24,6 +1329,7 @@ export declare const getExecMode: ({ callType, execType }: {
24
1329
  callType: CALL_TYPE;
25
1330
  execType: EXEC_TYPE;
26
1331
  }) => Hex;
27
- export declare const validateKernelVersionWithEntryPoint: <entryPoint extends EntryPoint>(entryPointAddress: entryPoint, kernelVersion: GetKernelVersion<entryPoint>) => void;
1332
+ export declare const validateKernelVersionWithEntryPoint: <entryPointVersion extends EntryPointVersion>(entryPointVersion: EntryPointVersion, kernelVersion: GetKernelVersion<entryPointVersion>) => void;
28
1333
  export declare const satisfiesRange: (version: string, range: string) => boolean;
1334
+ export declare function deepHexlify(obj: any): any;
29
1335
  //# sourceMappingURL=utils.d.ts.map