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