@zerodev/sdk 5.2.0-alpha-0 → 5.2.0-alpha-2

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 (215) hide show
  1. package/README.md +3 -0
  2. package/_cjs/accounts/index.js +9 -2
  3. package/_cjs/accounts/index.js.map +1 -1
  4. package/_cjs/accounts/kernel/abi/EIP1271Abi.js +37 -0
  5. package/_cjs/accounts/kernel/abi/EIP1271Abi.js.map +1 -0
  6. package/_cjs/accounts/kernel/abi/SafeCreateCallAbi.js +9 -0
  7. package/_cjs/accounts/kernel/abi/SafeCreateCallAbi.js.map +1 -0
  8. package/_cjs/accounts/kernel/createKernelAccount.js +123 -360
  9. package/_cjs/accounts/kernel/createKernelAccount.js.map +1 -1
  10. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeCallData.js +26 -0
  11. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeCallData.js.map +1 -0
  12. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js +16 -0
  13. package/_cjs/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js.map +1 -0
  14. package/_cjs/accounts/kernel/utils/account/ep0_7/encodeCallData.js +30 -0
  15. package/_cjs/accounts/kernel/utils/account/ep0_7/encodeCallData.js.map +1 -0
  16. package/_cjs/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js +18 -0
  17. package/_cjs/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js.map +1 -0
  18. package/_cjs/accounts/kernel/utils/common/accountMetadata.js +46 -0
  19. package/_cjs/accounts/kernel/utils/common/accountMetadata.js.map +1 -0
  20. package/_cjs/accounts/kernel/utils/common/eip712WrapHash.js +28 -0
  21. package/_cjs/accounts/kernel/utils/common/eip712WrapHash.js.map +1 -0
  22. package/_cjs/accounts/kernel/utils/common/encodeSafeCreateCall.js +14 -0
  23. package/_cjs/accounts/kernel/utils/common/encodeSafeCreateCall.js.map +1 -0
  24. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js +22 -0
  25. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js.map +1 -0
  26. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js +14 -0
  27. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js.map +1 -0
  28. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js +14 -0
  29. package/_cjs/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js.map +1 -0
  30. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js +42 -0
  31. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js.map +1 -0
  32. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteCall.js +29 -0
  33. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteCall.js.map +1 -0
  34. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteDelegateCall.js +13 -0
  35. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteDelegateCall.js.map +1 -0
  36. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteSingleCall.js +13 -0
  37. package/_cjs/accounts/kernel/utils/ep0_7/encodeExecuteSingleCall.js.map +1 -0
  38. package/_cjs/accounts/kernel/utils/ep0_7/hashKernelSignatureWrapper.js +9 -0
  39. package/_cjs/accounts/kernel/utils/ep0_7/hashKernelSignatureWrapper.js.map +1 -0
  40. package/_cjs/accounts/kernel/utils/types.js +3 -0
  41. package/_cjs/accounts/kernel/utils/types.js.map +1 -0
  42. package/_cjs/accounts/kernel/v1/createKernelV1Account.js +1 -2
  43. package/_cjs/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
  44. package/_cjs/accounts/kernel/v2/abi/KernelAccountV2Abi.js +377 -0
  45. package/_cjs/accounts/kernel/v2/abi/KernelAccountV2Abi.js.map +1 -0
  46. package/_cjs/accounts/kernel/v2/abi/KernelFactoryV2Abi.js +115 -0
  47. package/_cjs/accounts/kernel/v2/abi/KernelFactoryV2Abi.js.map +1 -0
  48. package/_cjs/accounts/kernel/v2/createKernelV2Account.js +226 -0
  49. package/_cjs/accounts/kernel/v2/createKernelV2Account.js.map +1 -0
  50. package/_cjs/accounts/utils/multisend.js.map +1 -0
  51. package/_cjs/accounts/utils/toKernelPluginManager.js +4 -4
  52. package/_cjs/accounts/utils/toKernelPluginManager.js.map +1 -1
  53. package/_cjs/constants.js +2 -1
  54. package/_cjs/constants.js.map +1 -1
  55. package/_cjs/index.js +3 -2
  56. package/_cjs/index.js.map +1 -1
  57. package/_cjs/types/kernel.js.map +1 -1
  58. package/_cjs/utils.js +1 -1
  59. package/_cjs/utils.js.map +1 -1
  60. package/_esm/accounts/index.js +5 -1
  61. package/_esm/accounts/index.js.map +1 -1
  62. package/_esm/accounts/kernel/abi/EIP1271Abi.js +34 -0
  63. package/_esm/accounts/kernel/abi/EIP1271Abi.js.map +1 -0
  64. package/_esm/accounts/kernel/abi/SafeCreateCallAbi.js +6 -0
  65. package/_esm/accounts/kernel/abi/SafeCreateCallAbi.js.map +1 -0
  66. package/_esm/accounts/kernel/createKernelAccount.js +136 -380
  67. package/_esm/accounts/kernel/createKernelAccount.js.map +1 -1
  68. package/_esm/accounts/kernel/utils/account/ep0_6/encodeCallData.js +23 -0
  69. package/_esm/accounts/kernel/utils/account/ep0_6/encodeCallData.js.map +1 -0
  70. package/_esm/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js +13 -0
  71. package/_esm/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.js.map +1 -0
  72. package/_esm/accounts/kernel/utils/account/ep0_7/encodeCallData.js +28 -0
  73. package/_esm/accounts/kernel/utils/account/ep0_7/encodeCallData.js.map +1 -0
  74. package/_esm/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js +15 -0
  75. package/_esm/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.js.map +1 -0
  76. package/_esm/accounts/kernel/utils/common/accountMetadata.js +42 -0
  77. package/_esm/accounts/kernel/utils/common/accountMetadata.js.map +1 -0
  78. package/_esm/accounts/kernel/utils/common/eip712WrapHash.js +24 -0
  79. package/_esm/accounts/kernel/utils/common/eip712WrapHash.js.map +1 -0
  80. package/_esm/accounts/kernel/utils/common/encodeSafeCreateCall.js +10 -0
  81. package/_esm/accounts/kernel/utils/common/encodeSafeCreateCall.js.map +1 -0
  82. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js +18 -0
  83. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.js.map +1 -0
  84. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js +10 -0
  85. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.js.map +1 -0
  86. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js +10 -0
  87. package/_esm/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.js.map +1 -0
  88. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js +38 -0
  89. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.js.map +1 -0
  90. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteCall.js +25 -0
  91. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteCall.js.map +1 -0
  92. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteDelegateCall.js +9 -0
  93. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteDelegateCall.js.map +1 -0
  94. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteSingleCall.js +9 -0
  95. package/_esm/accounts/kernel/utils/ep0_7/encodeExecuteSingleCall.js.map +1 -0
  96. package/_esm/accounts/kernel/utils/ep0_7/hashKernelSignatureWrapper.js +5 -0
  97. package/_esm/accounts/kernel/utils/ep0_7/hashKernelSignatureWrapper.js.map +1 -0
  98. package/_esm/accounts/kernel/utils/types.js +2 -0
  99. package/_esm/accounts/kernel/utils/types.js.map +1 -0
  100. package/_esm/accounts/kernel/v1/createKernelV1Account.js +1 -2
  101. package/_esm/accounts/kernel/v1/createKernelV1Account.js.map +1 -1
  102. package/_esm/accounts/kernel/v2/abi/KernelAccountV2Abi.js +374 -0
  103. package/_esm/accounts/kernel/v2/abi/KernelAccountV2Abi.js.map +1 -0
  104. package/_esm/accounts/kernel/v2/abi/KernelFactoryV2Abi.js +112 -0
  105. package/_esm/accounts/kernel/v2/abi/KernelFactoryV2Abi.js.map +1 -0
  106. package/_esm/accounts/kernel/v2/createKernelV2Account.js +264 -0
  107. package/_esm/accounts/kernel/v2/createKernelV2Account.js.map +1 -0
  108. package/_esm/accounts/{kernel/v1 → utils}/multisend.js +1 -1
  109. package/_esm/accounts/utils/multisend.js.map +1 -0
  110. package/_esm/accounts/utils/toKernelPluginManager.js +4 -4
  111. package/_esm/accounts/utils/toKernelPluginManager.js.map +1 -1
  112. package/_esm/constants.js +3 -0
  113. package/_esm/constants.js.map +1 -1
  114. package/_esm/index.js +1 -1
  115. package/_esm/index.js.map +1 -1
  116. package/_esm/types/kernel.js.map +1 -1
  117. package/_esm/utils.js +1 -1
  118. package/_esm/utils.js.map +1 -1
  119. package/_types/accounts/index.d.ts +5 -1
  120. package/_types/accounts/index.d.ts.map +1 -1
  121. package/_types/accounts/kernel/abi/EIP1271Abi.d.ts +54 -0
  122. package/_types/accounts/kernel/abi/EIP1271Abi.d.ts.map +1 -0
  123. package/_types/accounts/kernel/abi/SafeCreateCallAbi.d.ts +35 -0
  124. package/_types/accounts/kernel/abi/SafeCreateCallAbi.d.ts.map +1 -0
  125. package/_types/accounts/kernel/createKernelAccount.d.ts +0 -54
  126. package/_types/accounts/kernel/createKernelAccount.d.ts.map +1 -1
  127. package/_types/accounts/kernel/utils/account/ep0_6/encodeCallData.d.ts +4 -0
  128. package/_types/accounts/kernel/utils/account/ep0_6/encodeCallData.d.ts.map +1 -0
  129. package/_types/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.d.ts +3 -0
  130. package/_types/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.d.ts.map +1 -0
  131. package/_types/accounts/kernel/utils/account/ep0_7/encodeCallData.d.ts +4 -0
  132. package/_types/accounts/kernel/utils/account/ep0_7/encodeCallData.d.ts.map +1 -0
  133. package/_types/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.d.ts +3 -0
  134. package/_types/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.d.ts.map +1 -0
  135. package/_types/accounts/kernel/utils/common/accountMetadata.d.ts +10 -0
  136. package/_types/accounts/kernel/utils/common/accountMetadata.d.ts.map +1 -0
  137. package/_types/accounts/kernel/utils/common/eip712WrapHash.d.ts +4 -0
  138. package/_types/accounts/kernel/utils/common/eip712WrapHash.d.ts.map +1 -0
  139. package/_types/accounts/kernel/utils/common/encodeSafeCreateCall.d.ts +2 -0
  140. package/_types/accounts/kernel/utils/common/encodeSafeCreateCall.d.ts.map +1 -0
  141. package/_types/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.d.ts +3 -0
  142. package/_types/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.d.ts.map +1 -0
  143. package/_types/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.d.ts +3 -0
  144. package/_types/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.d.ts.map +1 -0
  145. package/_types/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.d.ts +3 -0
  146. package/_types/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.d.ts.map +1 -0
  147. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.d.ts +4 -0
  148. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.d.ts.map +1 -0
  149. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteCall.d.ts +16 -0
  150. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteCall.d.ts.map +1 -0
  151. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteDelegateCall.d.ts +4 -0
  152. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteDelegateCall.d.ts.map +1 -0
  153. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteSingleCall.d.ts +4 -0
  154. package/_types/accounts/kernel/utils/ep0_7/encodeExecuteSingleCall.d.ts.map +1 -0
  155. package/_types/accounts/kernel/utils/ep0_7/hashKernelSignatureWrapper.d.ts +3 -0
  156. package/_types/accounts/kernel/utils/ep0_7/hashKernelSignatureWrapper.d.ts.map +1 -0
  157. package/_types/accounts/kernel/utils/types.d.ts +8 -0
  158. package/_types/accounts/kernel/utils/types.d.ts.map +1 -0
  159. package/_types/accounts/kernel/v1/createKernelV1Account.d.ts.map +1 -1
  160. package/_types/accounts/kernel/v2/abi/KernelAccountV2Abi.d.ts +447 -0
  161. package/_types/accounts/kernel/v2/abi/KernelAccountV2Abi.d.ts.map +1 -0
  162. package/_types/accounts/kernel/v2/abi/KernelFactoryV2Abi.d.ts +109 -0
  163. package/_types/accounts/kernel/v2/abi/KernelFactoryV2Abi.d.ts.map +1 -0
  164. package/_types/accounts/kernel/v2/createKernelV2Account.d.ts +33 -0
  165. package/_types/accounts/kernel/v2/createKernelV2Account.d.ts.map +1 -0
  166. package/_types/accounts/{kernel/v1 → utils}/multisend.d.ts +1 -1
  167. package/_types/accounts/utils/multisend.d.ts.map +1 -0
  168. package/_types/accounts/utils/toKernelPluginManager.d.ts +1 -1
  169. package/_types/accounts/utils/toKernelPluginManager.d.ts.map +1 -1
  170. package/_types/constants.d.ts +1 -0
  171. package/_types/constants.d.ts.map +1 -1
  172. package/_types/index.d.ts +1 -1
  173. package/_types/index.d.ts.map +1 -1
  174. package/_types/types/index.d.ts +1 -0
  175. package/_types/types/index.d.ts.map +1 -1
  176. package/_types/types/kernel.d.ts +1 -0
  177. package/_types/types/kernel.d.ts.map +1 -1
  178. package/_types/utils.d.ts +4 -1
  179. package/_types/utils.d.ts.map +1 -1
  180. package/accounts/index.ts +5 -2
  181. package/accounts/kernel/abi/EIP1271Abi.ts +33 -0
  182. package/accounts/kernel/abi/SafeCreateCallAbi.ts +6 -0
  183. package/accounts/kernel/createKernelAccount.ts +164 -511
  184. package/accounts/kernel/utils/account/ep0_6/encodeCallData.ts +32 -0
  185. package/accounts/kernel/utils/account/ep0_6/encodeDeployCallData.ts +18 -0
  186. package/accounts/kernel/utils/account/ep0_7/encodeCallData.ts +40 -0
  187. package/accounts/kernel/utils/account/ep0_7/encodeDeployCallData.ts +20 -0
  188. package/accounts/kernel/utils/common/accountMetadata.ts +62 -0
  189. package/accounts/kernel/utils/common/eip712WrapHash.ts +48 -0
  190. package/accounts/kernel/utils/common/encodeSafeCreateCall.ts +14 -0
  191. package/accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.ts +19 -0
  192. package/accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.ts +11 -0
  193. package/accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.ts +11 -0
  194. package/accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.ts +51 -0
  195. package/accounts/kernel/utils/ep0_7/encodeExecuteCall.ts +38 -0
  196. package/accounts/kernel/utils/ep0_7/encodeExecuteDelegateCall.ts +16 -0
  197. package/accounts/kernel/utils/ep0_7/encodeExecuteSingleCall.ts +16 -0
  198. package/accounts/kernel/utils/ep0_7/hashKernelSignatureWrapper.ts +11 -0
  199. package/accounts/kernel/utils/types.ts +8 -0
  200. package/accounts/kernel/v1/createKernelV1Account.ts +2 -3
  201. package/accounts/kernel/v2/abi/KernelAccountV2Abi.ts +373 -0
  202. package/accounts/kernel/v2/abi/KernelFactoryV2Abi.ts +111 -0
  203. package/accounts/kernel/v2/createKernelV2Account.ts +409 -0
  204. package/accounts/{kernel/v1 → utils}/multisend.ts +1 -1
  205. package/accounts/utils/toKernelPluginManager.ts +6 -7
  206. package/constants.ts +5 -0
  207. package/index.ts +2 -1
  208. package/package.json +1 -1
  209. package/types/index.ts +2 -0
  210. package/types/kernel.ts +1 -0
  211. package/utils.ts +7 -1
  212. package/_cjs/accounts/kernel/v1/multisend.js.map +0 -1
  213. package/_esm/accounts/kernel/v1/multisend.js.map +0 -1
  214. package/_types/accounts/kernel/v1/multisend.d.ts.map +0 -1
  215. /package/_cjs/accounts/{kernel/v1 → utils}/multisend.js +0 -0
@@ -0,0 +1,3 @@
1
+ import { toSmartAccount } from "permissionless/accounts";
2
+ export declare const encodeDeployCallData: (tx: Parameters<Parameters<typeof toSmartAccount>[0]["encodeDeployCallData"]>[0]) => `0x${string}`;
3
+ //# sourceMappingURL=encodeDeployCallData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeDeployCallData.d.ts","sourceRoot":"","sources":["../../../../../../accounts/kernel/utils/account/ep0_6/encodeDeployCallData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAOxD,eAAO,MAAM,oBAAoB,OACzB,WACA,WAAW,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAC/D,CAAC,CAAC,CAAC,kBAOP,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { EntryPoint } from "permissionless/types/entrypoint.js";
2
+ import type { KernelSmartAccount } from "../../../createKernelAccount.js";
3
+ export declare const encodeCallData: <entryPoint extends EntryPoint = EntryPoint>(tx: import("../../../../../types/kernel.js").KernelEncodeCallDataArgs) => Promise<`0x${string}`>;
4
+ //# sourceMappingURL=encodeCallData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeCallData.d.ts","sourceRoot":"","sources":["../../../../../../accounts/kernel/utils/account/ep0_7/encodeCallData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAA;AAEpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAA;AAKzE,eAAO,MAAM,cAAc,+IAgC1B,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { toSmartAccount } from "permissionless/accounts";
2
+ export declare const encodeDeployCallData: (tx: Parameters<Parameters<typeof toSmartAccount>[0]["encodeDeployCallData"]>[0]) => `0x${string}`;
3
+ //# sourceMappingURL=encodeDeployCallData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeDeployCallData.d.ts","sourceRoot":"","sources":["../../../../../../accounts/kernel/utils/account/ep0_7/encodeDeployCallData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAOxD,eAAO,MAAM,oBAAoB,OACzB,WACA,WAAW,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAC/D,CAAC,CAAC,CAAC,kBASP,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { EntryPoint } from "permissionless/types/entrypoint.js";
2
+ import { type Address, type Chain, type Client, type Transport } from "viem";
3
+ type AccountMetadata = {
4
+ name: string;
5
+ version: string;
6
+ chainId: bigint;
7
+ };
8
+ export declare const accountMetadata: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined>(client: Client<TTransport, TChain, undefined>, accountAddress: Address, entryPointAddress: EntryPoint) => Promise<AccountMetadata>;
9
+ export {};
10
+ //# sourceMappingURL=accountMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountMetadata.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/accountMetadata.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAA;AACpE,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,SAAS,EAIjB,MAAM,MAAM,CAAA;AAKb,KAAK,eAAe,GAAG;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAClB,CAAA;AACD,eAAO,MAAM,eAAe,kKAKR,OAAO,qBACJ,UAAU,KAC9B,QAAQ,eAAe,CAmCzB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { type Hex, type TypedDataDomain } from "viem";
2
+ import type { WithRequired } from "../../../../types/index.js";
3
+ export declare const eip712WrapHash: (messageHash: Hex, domain: WithRequired<TypedDataDomain, "name" | "chainId" | "verifyingContract" | "version">) => Promise<Hex>;
4
+ //# sourceMappingURL=eip712WrapHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip712WrapHash.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/eip712WrapHash.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,GAAG,EACR,KAAK,eAAe,EAIvB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAA;AAI9D,eAAO,MAAM,cAAc,gBACV,GAAG,UACR,aACJ,eAAe,EACf,MAAM,GAAG,SAAS,GAAG,mBAAmB,GAAG,SAAS,CACvD,KACF,QAAQ,GAAG,CA8Bb,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const encodeSafeCreateCall: (args: readonly [bigint, `0x${string}`]) => `0x${string}`;
2
+ //# sourceMappingURL=encodeSafeCreateCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeSafeCreateCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/common/encodeSafeCreateCall.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,oBAAoB,2DAMhC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { CallArgs } from "../types.js";
2
+ export declare const encodeExecuteBatchCall: (args: CallArgs[]) => `0x${string}`;
3
+ //# sourceMappingURL=encodeExecuteBatchCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeExecuteBatchCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/ep0_6/encodeExecuteBatchCall.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE3C,eAAO,MAAM,sBAAsB,SAAU,QAAQ,EAAE,kBActD,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { DelegateCallArgs } from "../types.js";
2
+ export declare const encodeExecuteDelegateCall: (args: DelegateCallArgs) => `0x${string}`;
3
+ //# sourceMappingURL=encodeExecuteDelegateCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeExecuteDelegateCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/ep0_6/encodeExecuteDelegateCall.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAEnD,eAAO,MAAM,yBAAyB,SAAU,gBAAgB,kBAM/D,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { CallArgs } from "../types.js";
2
+ export declare const encodeExecuteSingleCall: (args: CallArgs) => `0x${string}`;
3
+ //# sourceMappingURL=encodeExecuteSingleCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeExecuteSingleCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/ep0_6/encodeExecuteSingleCall.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAE3C,eAAO,MAAM,uBAAuB,SAAU,QAAQ,kBAMrD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CallArgs } from "../types.js";
2
+ import { type EncodeExecuteOptions } from "./encodeExecuteCall.js";
3
+ export declare const encodeExecuteBatchCall: (args: CallArgs[], options: Omit<EncodeExecuteOptions, "callType">) => `0x${string}`;
4
+ //# sourceMappingURL=encodeExecuteBatchCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeExecuteBatchCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/ep0_7/encodeExecuteBatchCall.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EACH,KAAK,oBAAoB,EAE5B,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,sBAAsB,SACzB,QAAQ,EAAE,WACP,KAAK,oBAAoB,EAAE,UAAU,CAAC,kBAwClD,CAAA"}
@@ -0,0 +1,16 @@
1
+ import { type Hex } from "viem";
2
+ import { CALL_TYPE } from "../../../../constants.js";
3
+ import { getExecMode } from "../../../../utils.js";
4
+ import type { CallArgs, DelegateCallArgs } from "../types.js";
5
+ export type EncodeExecuteOptions = Parameters<typeof getExecMode>[0];
6
+ type EncodeExecuteCallArgs<TOptions> = (TOptions extends {
7
+ callType: CALL_TYPE.DELEGATE_CALL;
8
+ } ? DelegateCallArgs : CallArgs) | {
9
+ calldata: Hex;
10
+ };
11
+ export declare const encodeExecuteCall: <TOptions extends {
12
+ callType: CALL_TYPE;
13
+ execType: import("../../../../constants.js").EXEC_TYPE;
14
+ }>(args: EncodeExecuteCallArgs<TOptions>, options: TOptions) => `0x${string}`;
15
+ export {};
16
+ //# sourceMappingURL=encodeExecuteCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeExecuteCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/ep0_7/encodeExecuteCall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAwC,MAAM,MAAM,CAAA;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAElD,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAE7D,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,CAAA;AAEpE,KAAK,qBAAqB,CAAC,QAAQ,IAC7B,CAAC,QAAQ,SAAS;IACd,QAAQ,EAAE,SAAS,CAAC,aAAa,CAAA;CACpC,GACK,gBAAgB,GAChB,QAAQ,CAAC,GACf;IAAE,QAAQ,EAAE,GAAG,CAAA;CAAE,CAAA;AAEvB,eAAO,MAAM,iBAAiB;;;6EAqB7B,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { DelegateCallArgs } from "../types.js";
2
+ import { type EncodeExecuteOptions } from "./encodeExecuteCall.js";
3
+ export declare const encodeExecuteDelegateCall: (args: DelegateCallArgs, options: Omit<EncodeExecuteOptions, "callType">) => `0x${string}`;
4
+ //# sourceMappingURL=encodeExecuteDelegateCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeExecuteDelegateCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/ep0_7/encodeExecuteDelegateCall.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,EACH,KAAK,oBAAoB,EAE5B,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,yBAAyB,SAC5B,gBAAgB,WACb,KAAK,oBAAoB,EAAE,UAAU,CAAC,kBAMlD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CallArgs } from "../types.js";
2
+ import { type EncodeExecuteOptions } from "./encodeExecuteCall.js";
3
+ export declare const encodeExecuteSingleCall: (args: CallArgs, options: Omit<EncodeExecuteOptions, "callType">) => `0x${string}`;
4
+ //# sourceMappingURL=encodeExecuteSingleCall.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeExecuteSingleCall.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/ep0_7/encodeExecuteSingleCall.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EACH,KAAK,oBAAoB,EAE5B,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,uBAAuB,SAC1B,QAAQ,WACL,KAAK,oBAAoB,EAAE,UAAU,CAAC,kBAMlD,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { Hex } from "viem";
2
+ export declare const hashKernelMessageHashWrapper: (messageHash: Hex) => `0x${string}`;
3
+ //# sourceMappingURL=hashKernelSignatureWrapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hashKernelSignatureWrapper.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/utils/ep0_7/hashKernelSignatureWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAG/B,eAAO,MAAM,4BAA4B,gBAAiB,GAAG,kBAO5D,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { Address, Hex } from "viem";
2
+ export type CallArgs = {
3
+ to: Address;
4
+ data: Hex;
5
+ value: bigint;
6
+ };
7
+ export type DelegateCallArgs = Omit<CallArgs, "value">;
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../accounts/kernel/utils/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAExC,MAAM,MAAM,QAAQ,GAAG;IACnB,EAAE,EAAE,OAAO,CAAA;IACX,IAAI,EAAE,GAAG,CAAA;IACT,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"createKernelV1Account.d.ts","sourceRoot":"","sources":["../../../../accounts/kernel/v1/createKernelV1Account.ts"],"names":[],"mappings":"AAOA,OAAO,EAEH,KAAK,kBAAkB,EAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAA;AACpE,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAIX,KAAK,SAAS,EAKjB,MAAM,MAAM,CAAA;AAMb,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAOnE,MAAM,MAAM,oBAAoB,CAC5B,UAAU,SAAS,UAAU,EAC7B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IACnD,IAAI,CACJ,kBAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,EAChD,qBAAqB,CACxB,CAAA;AA4CD,wBAAsB,qBAAqB,CACvC,UAAU,SAAS,UAAU,EAC7B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,QAAQ,SAAS,OAAO,GAAG,OAAO,EAElC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,EAC7C,EACI,MAAM,EACN,UAAU,EAAE,iBAAwD,EACpE,KAAU,EACb,EAAE;IACC,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,GACF,OAAO,CAAC,oBAAoB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAiN/D"}
1
+ {"version":3,"file":"createKernelV1Account.d.ts","sourceRoot":"","sources":["../../../../accounts/kernel/v1/createKernelV1Account.ts"],"names":[],"mappings":"AAOA,OAAO,EAEH,KAAK,kBAAkB,EAC1B,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAA;AACpE,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,MAAM,EAIX,KAAK,SAAS,EAKjB,MAAM,MAAM,CAAA;AAWb,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,MAAM,MAAM,oBAAoB,CAC5B,UAAU,SAAS,UAAU,EAC7B,SAAS,SAAS,SAAS,GAAG,SAAS,EACvC,KAAK,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IACnD,IAAI,CACJ,kBAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,EAChD,qBAAqB,CACxB,CAAA;AA4CD,wBAAsB,qBAAqB,CACvC,UAAU,SAAS,UAAU,EAC7B,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,OAAO,SAAS,MAAM,GAAG,MAAM,EAC/B,QAAQ,SAAS,OAAO,GAAG,OAAO,EAElC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,EAC7C,EACI,MAAM,EACN,UAAU,EAAE,iBAAwD,EACpE,KAAU,EACb,EAAE;IACC,MAAM,EAAE,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IAC7C,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAA;CACjB,GACF,OAAO,CAAC,oBAAoB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC,CAgN/D"}
@@ -0,0 +1,447 @@
1
+ export declare const KernelAccountV2Abi: readonly [{
2
+ readonly type: "constructor";
3
+ readonly inputs: readonly [{
4
+ readonly name: "_entryPoint";
5
+ readonly type: "address";
6
+ readonly internalType: "contract IEntryPoint";
7
+ }];
8
+ readonly stateMutability: "nonpayable";
9
+ }, {
10
+ readonly type: "fallback";
11
+ readonly stateMutability: "payable";
12
+ }, {
13
+ readonly type: "receive";
14
+ readonly stateMutability: "payable";
15
+ }, {
16
+ readonly type: "function";
17
+ readonly name: "disableMode";
18
+ readonly inputs: readonly [{
19
+ readonly name: "_disableFlag";
20
+ readonly type: "bytes4";
21
+ readonly internalType: "bytes4";
22
+ }];
23
+ readonly outputs: readonly [];
24
+ readonly stateMutability: "nonpayable";
25
+ }, {
26
+ readonly type: "function";
27
+ readonly name: "entryPoint";
28
+ readonly inputs: readonly [];
29
+ readonly outputs: readonly [{
30
+ readonly name: "";
31
+ readonly type: "address";
32
+ readonly internalType: "contract IEntryPoint";
33
+ }];
34
+ readonly stateMutability: "view";
35
+ }, {
36
+ readonly type: "function";
37
+ readonly name: "execute";
38
+ readonly inputs: readonly [{
39
+ readonly name: "to";
40
+ readonly type: "address";
41
+ readonly internalType: "address";
42
+ }, {
43
+ readonly name: "value";
44
+ readonly type: "uint256";
45
+ readonly internalType: "uint256";
46
+ }, {
47
+ readonly name: "data";
48
+ readonly type: "bytes";
49
+ readonly internalType: "bytes";
50
+ }, {
51
+ readonly name: "operation";
52
+ readonly type: "uint8";
53
+ readonly internalType: "enum Operation";
54
+ }];
55
+ readonly outputs: readonly [];
56
+ readonly stateMutability: "nonpayable";
57
+ }, {
58
+ readonly type: "function";
59
+ readonly name: "getDefaultValidator";
60
+ readonly inputs: readonly [];
61
+ readonly outputs: readonly [{
62
+ readonly name: "";
63
+ readonly type: "address";
64
+ readonly internalType: "contract IKernelValidator";
65
+ }];
66
+ readonly stateMutability: "view";
67
+ }, {
68
+ readonly type: "function";
69
+ readonly name: "getDisabledMode";
70
+ readonly inputs: readonly [];
71
+ readonly outputs: readonly [{
72
+ readonly name: "";
73
+ readonly type: "bytes4";
74
+ readonly internalType: "bytes4";
75
+ }];
76
+ readonly stateMutability: "view";
77
+ }, {
78
+ readonly type: "function";
79
+ readonly name: "getExecution";
80
+ readonly inputs: readonly [{
81
+ readonly name: "_selector";
82
+ readonly type: "bytes4";
83
+ readonly internalType: "bytes4";
84
+ }];
85
+ readonly outputs: readonly [{
86
+ readonly name: "";
87
+ readonly type: "tuple";
88
+ readonly internalType: "struct ExecutionDetail";
89
+ readonly components: readonly [{
90
+ readonly name: "validUntil";
91
+ readonly type: "uint48";
92
+ readonly internalType: "uint48";
93
+ }, {
94
+ readonly name: "validAfter";
95
+ readonly type: "uint48";
96
+ readonly internalType: "uint48";
97
+ }, {
98
+ readonly name: "executor";
99
+ readonly type: "address";
100
+ readonly internalType: "address";
101
+ }, {
102
+ readonly name: "validator";
103
+ readonly type: "address";
104
+ readonly internalType: "contract IKernelValidator";
105
+ }];
106
+ }];
107
+ readonly stateMutability: "view";
108
+ }, {
109
+ readonly type: "function";
110
+ readonly name: "getLastDisabledTime";
111
+ readonly inputs: readonly [];
112
+ readonly outputs: readonly [{
113
+ readonly name: "";
114
+ readonly type: "uint48";
115
+ readonly internalType: "uint48";
116
+ }];
117
+ readonly stateMutability: "view";
118
+ }, {
119
+ readonly type: "function";
120
+ readonly name: "getNonce";
121
+ readonly inputs: readonly [{
122
+ readonly name: "key";
123
+ readonly type: "uint192";
124
+ readonly internalType: "uint192";
125
+ }];
126
+ readonly outputs: readonly [{
127
+ readonly name: "";
128
+ readonly type: "uint256";
129
+ readonly internalType: "uint256";
130
+ }];
131
+ readonly stateMutability: "view";
132
+ }, {
133
+ readonly type: "function";
134
+ readonly name: "getNonce";
135
+ readonly inputs: readonly [];
136
+ readonly outputs: readonly [{
137
+ readonly name: "";
138
+ readonly type: "uint256";
139
+ readonly internalType: "uint256";
140
+ }];
141
+ readonly stateMutability: "view";
142
+ }, {
143
+ readonly type: "function";
144
+ readonly name: "initialize";
145
+ readonly inputs: readonly [{
146
+ readonly name: "_defaultValidator";
147
+ readonly type: "address";
148
+ readonly internalType: "contract IKernelValidator";
149
+ }, {
150
+ readonly name: "_data";
151
+ readonly type: "bytes";
152
+ readonly internalType: "bytes";
153
+ }];
154
+ readonly outputs: readonly [];
155
+ readonly stateMutability: "nonpayable";
156
+ }, {
157
+ readonly type: "function";
158
+ readonly name: "isValidSignature";
159
+ readonly inputs: readonly [{
160
+ readonly name: "hash";
161
+ readonly type: "bytes32";
162
+ readonly internalType: "bytes32";
163
+ }, {
164
+ readonly name: "signature";
165
+ readonly type: "bytes";
166
+ readonly internalType: "bytes";
167
+ }];
168
+ readonly outputs: readonly [{
169
+ readonly name: "";
170
+ readonly type: "bytes4";
171
+ readonly internalType: "bytes4";
172
+ }];
173
+ readonly stateMutability: "view";
174
+ }, {
175
+ readonly type: "function";
176
+ readonly name: "name";
177
+ readonly inputs: readonly [];
178
+ readonly outputs: readonly [{
179
+ readonly name: "";
180
+ readonly type: "string";
181
+ readonly internalType: "string";
182
+ }];
183
+ readonly stateMutability: "view";
184
+ }, {
185
+ readonly type: "function";
186
+ readonly name: "onERC1155BatchReceived";
187
+ readonly inputs: readonly [{
188
+ readonly name: "";
189
+ readonly type: "address";
190
+ readonly internalType: "address";
191
+ }, {
192
+ readonly name: "";
193
+ readonly type: "address";
194
+ readonly internalType: "address";
195
+ }, {
196
+ readonly name: "";
197
+ readonly type: "uint256[]";
198
+ readonly internalType: "uint256[]";
199
+ }, {
200
+ readonly name: "";
201
+ readonly type: "uint256[]";
202
+ readonly internalType: "uint256[]";
203
+ }, {
204
+ readonly name: "";
205
+ readonly type: "bytes";
206
+ readonly internalType: "bytes";
207
+ }];
208
+ readonly outputs: readonly [{
209
+ readonly name: "";
210
+ readonly type: "bytes4";
211
+ readonly internalType: "bytes4";
212
+ }];
213
+ readonly stateMutability: "pure";
214
+ }, {
215
+ readonly type: "function";
216
+ readonly name: "onERC1155Received";
217
+ readonly inputs: readonly [{
218
+ readonly name: "";
219
+ readonly type: "address";
220
+ readonly internalType: "address";
221
+ }, {
222
+ readonly name: "";
223
+ readonly type: "address";
224
+ readonly internalType: "address";
225
+ }, {
226
+ readonly name: "";
227
+ readonly type: "uint256";
228
+ readonly internalType: "uint256";
229
+ }, {
230
+ readonly name: "";
231
+ readonly type: "uint256";
232
+ readonly internalType: "uint256";
233
+ }, {
234
+ readonly name: "";
235
+ readonly type: "bytes";
236
+ readonly internalType: "bytes";
237
+ }];
238
+ readonly outputs: readonly [{
239
+ readonly name: "";
240
+ readonly type: "bytes4";
241
+ readonly internalType: "bytes4";
242
+ }];
243
+ readonly stateMutability: "pure";
244
+ }, {
245
+ readonly type: "function";
246
+ readonly name: "onERC721Received";
247
+ readonly inputs: readonly [{
248
+ readonly name: "";
249
+ readonly type: "address";
250
+ readonly internalType: "address";
251
+ }, {
252
+ readonly name: "";
253
+ readonly type: "address";
254
+ readonly internalType: "address";
255
+ }, {
256
+ readonly name: "";
257
+ readonly type: "uint256";
258
+ readonly internalType: "uint256";
259
+ }, {
260
+ readonly name: "";
261
+ readonly type: "bytes";
262
+ readonly internalType: "bytes";
263
+ }];
264
+ readonly outputs: readonly [{
265
+ readonly name: "";
266
+ readonly type: "bytes4";
267
+ readonly internalType: "bytes4";
268
+ }];
269
+ readonly stateMutability: "pure";
270
+ }, {
271
+ readonly type: "function";
272
+ readonly name: "setDefaultValidator";
273
+ readonly inputs: readonly [{
274
+ readonly name: "_defaultValidator";
275
+ readonly type: "address";
276
+ readonly internalType: "contract IKernelValidator";
277
+ }, {
278
+ readonly name: "_data";
279
+ readonly type: "bytes";
280
+ readonly internalType: "bytes";
281
+ }];
282
+ readonly outputs: readonly [];
283
+ readonly stateMutability: "nonpayable";
284
+ }, {
285
+ readonly type: "function";
286
+ readonly name: "setExecution";
287
+ readonly inputs: readonly [{
288
+ readonly name: "_selector";
289
+ readonly type: "bytes4";
290
+ readonly internalType: "bytes4";
291
+ }, {
292
+ readonly name: "_executor";
293
+ readonly type: "address";
294
+ readonly internalType: "address";
295
+ }, {
296
+ readonly name: "_validator";
297
+ readonly type: "address";
298
+ readonly internalType: "contract IKernelValidator";
299
+ }, {
300
+ readonly name: "_validUntil";
301
+ readonly type: "uint48";
302
+ readonly internalType: "uint48";
303
+ }, {
304
+ readonly name: "_validAfter";
305
+ readonly type: "uint48";
306
+ readonly internalType: "uint48";
307
+ }, {
308
+ readonly name: "_enableData";
309
+ readonly type: "bytes";
310
+ readonly internalType: "bytes";
311
+ }];
312
+ readonly outputs: readonly [];
313
+ readonly stateMutability: "nonpayable";
314
+ }, {
315
+ readonly type: "function";
316
+ readonly name: "upgradeTo";
317
+ readonly inputs: readonly [{
318
+ readonly name: "_newImplementation";
319
+ readonly type: "address";
320
+ readonly internalType: "address";
321
+ }];
322
+ readonly outputs: readonly [];
323
+ readonly stateMutability: "nonpayable";
324
+ }, {
325
+ readonly type: "function";
326
+ readonly name: "validateUserOp";
327
+ readonly inputs: readonly [{
328
+ readonly name: "userOp";
329
+ readonly type: "tuple";
330
+ readonly internalType: "struct UserOperation";
331
+ readonly components: readonly [{
332
+ readonly name: "sender";
333
+ readonly type: "address";
334
+ readonly internalType: "address";
335
+ }, {
336
+ readonly name: "nonce";
337
+ readonly type: "uint256";
338
+ readonly internalType: "uint256";
339
+ }, {
340
+ readonly name: "initCode";
341
+ readonly type: "bytes";
342
+ readonly internalType: "bytes";
343
+ }, {
344
+ readonly name: "callData";
345
+ readonly type: "bytes";
346
+ readonly internalType: "bytes";
347
+ }, {
348
+ readonly name: "callGasLimit";
349
+ readonly type: "uint256";
350
+ readonly internalType: "uint256";
351
+ }, {
352
+ readonly name: "verificationGasLimit";
353
+ readonly type: "uint256";
354
+ readonly internalType: "uint256";
355
+ }, {
356
+ readonly name: "preVerificationGas";
357
+ readonly type: "uint256";
358
+ readonly internalType: "uint256";
359
+ }, {
360
+ readonly name: "maxFeePerGas";
361
+ readonly type: "uint256";
362
+ readonly internalType: "uint256";
363
+ }, {
364
+ readonly name: "maxPriorityFeePerGas";
365
+ readonly type: "uint256";
366
+ readonly internalType: "uint256";
367
+ }, {
368
+ readonly name: "paymasterAndData";
369
+ readonly type: "bytes";
370
+ readonly internalType: "bytes";
371
+ }, {
372
+ readonly name: "signature";
373
+ readonly type: "bytes";
374
+ readonly internalType: "bytes";
375
+ }];
376
+ }, {
377
+ readonly name: "userOpHash";
378
+ readonly type: "bytes32";
379
+ readonly internalType: "bytes32";
380
+ }, {
381
+ readonly name: "missingAccountFunds";
382
+ readonly type: "uint256";
383
+ readonly internalType: "uint256";
384
+ }];
385
+ readonly outputs: readonly [{
386
+ readonly name: "validationData";
387
+ readonly type: "uint256";
388
+ readonly internalType: "uint256";
389
+ }];
390
+ readonly stateMutability: "nonpayable";
391
+ }, {
392
+ readonly type: "function";
393
+ readonly name: "version";
394
+ readonly inputs: readonly [];
395
+ readonly outputs: readonly [{
396
+ readonly name: "";
397
+ readonly type: "string";
398
+ readonly internalType: "string";
399
+ }];
400
+ readonly stateMutability: "view";
401
+ }, {
402
+ readonly type: "event";
403
+ readonly name: "DefaultValidatorChanged";
404
+ readonly inputs: readonly [{
405
+ readonly name: "oldValidator";
406
+ readonly type: "address";
407
+ readonly indexed: true;
408
+ readonly internalType: "address";
409
+ }, {
410
+ readonly name: "newValidator";
411
+ readonly type: "address";
412
+ readonly indexed: true;
413
+ readonly internalType: "address";
414
+ }];
415
+ readonly anonymous: false;
416
+ }, {
417
+ readonly type: "event";
418
+ readonly name: "ExecutionChanged";
419
+ readonly inputs: readonly [{
420
+ readonly name: "selector";
421
+ readonly type: "bytes4";
422
+ readonly indexed: true;
423
+ readonly internalType: "bytes4";
424
+ }, {
425
+ readonly name: "executor";
426
+ readonly type: "address";
427
+ readonly indexed: true;
428
+ readonly internalType: "address";
429
+ }, {
430
+ readonly name: "validator";
431
+ readonly type: "address";
432
+ readonly indexed: true;
433
+ readonly internalType: "address";
434
+ }];
435
+ readonly anonymous: false;
436
+ }, {
437
+ readonly type: "event";
438
+ readonly name: "Upgraded";
439
+ readonly inputs: readonly [{
440
+ readonly name: "newImplementation";
441
+ readonly type: "address";
442
+ readonly indexed: true;
443
+ readonly internalType: "address";
444
+ }];
445
+ readonly anonymous: false;
446
+ }];
447
+ //# sourceMappingURL=KernelAccountV2Abi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KernelAccountV2Abi.d.ts","sourceRoot":"","sources":["../../../../../accounts/kernel/v2/abi/KernelAccountV2Abi.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoXrB,CAAA"}