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