@account-kit/wallet-client 0.0.1-alpha.1

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 (259) hide show
  1. package/dist/esm/abi/LightAccountFactoryAbi_V1_0_1.d.ts +55 -0
  2. package/dist/esm/abi/LightAccountFactoryAbi_V1_0_1.js +45 -0
  3. package/dist/esm/abi/LightAccountFactoryAbi_V1_0_1.js.map +1 -0
  4. package/dist/esm/abi/LightAccountFactoryAbi_V1_0_2.d.ts +55 -0
  5. package/dist/esm/abi/LightAccountFactoryAbi_V1_0_2.js +45 -0
  6. package/dist/esm/abi/LightAccountFactoryAbi_V1_0_2.js.map +1 -0
  7. package/dist/esm/abi/LightAccountFactoryAbi_V1_1_0.d.ts +55 -0
  8. package/dist/esm/abi/LightAccountFactoryAbi_V1_1_0.js +45 -0
  9. package/dist/esm/abi/LightAccountFactoryAbi_V1_1_0.js.map +1 -0
  10. package/dist/esm/abi/LightAccountFactoryAbi_V2_0_0.d.ts +256 -0
  11. package/dist/esm/abi/LightAccountFactoryAbi_V2_0_0.js +202 -0
  12. package/dist/esm/abi/LightAccountFactoryAbi_V2_0_0.js.map +1 -0
  13. package/dist/esm/abi/ModularAccountFactoryAbi_V2_0_0.d.ts +492 -0
  14. package/dist/esm/abi/ModularAccountFactoryAbi_V2_0_0.js +399 -0
  15. package/dist/esm/abi/ModularAccountFactoryAbi_V2_0_0.js.map +1 -0
  16. package/dist/esm/abi/MultiOwnerLightAccountFactoryAbi_V2_0_0.d.ts +286 -0
  17. package/dist/esm/abi/MultiOwnerLightAccountFactoryAbi_V2_0_0.js +225 -0
  18. package/dist/esm/abi/MultiOwnerLightAccountFactoryAbi_V2_0_0.js.map +1 -0
  19. package/dist/esm/abi/MultiOwnerModularAccountFactoryAbi_V1_0_0.d.ts +234 -0
  20. package/dist/esm/abi/MultiOwnerModularAccountFactoryAbi_V1_0_0.js +179 -0
  21. package/dist/esm/abi/MultiOwnerModularAccountFactoryAbi_V1_0_0.js.map +1 -0
  22. package/dist/esm/abi/MultisigModularAccountFactoryAbi_V1_0_0.d.ts +246 -0
  23. package/dist/esm/abi/MultisigModularAccountFactoryAbi_V1_0_0.js +182 -0
  24. package/dist/esm/abi/MultisigModularAccountFactoryAbi_V1_0_0.js.map +1 -0
  25. package/dist/esm/abi/index.d.ts +8 -0
  26. package/dist/esm/abi/index.js +9 -0
  27. package/dist/esm/abi/index.js.map +1 -0
  28. package/dist/esm/capabilities/index.d.ts +8 -0
  29. package/dist/esm/capabilities/index.js +8 -0
  30. package/dist/esm/capabilities/index.js.map +1 -0
  31. package/dist/esm/capabilities/paymaster.d.ts +3 -0
  32. package/dist/esm/capabilities/paymaster.js +5 -0
  33. package/dist/esm/capabilities/paymaster.js.map +1 -0
  34. package/dist/esm/capabilities/permissions/index.d.ts +98 -0
  35. package/dist/esm/capabilities/permissions/index.js +60 -0
  36. package/dist/esm/capabilities/permissions/index.js.map +1 -0
  37. package/dist/esm/capabilities/permissions/mav2.d.ts +36 -0
  38. package/dist/esm/capabilities/permissions/mav2.js +79 -0
  39. package/dist/esm/capabilities/permissions/mav2.js.map +1 -0
  40. package/dist/esm/client/actions/createAccount.d.ts +10 -0
  41. package/dist/esm/client/actions/createAccount.js +7 -0
  42. package/dist/esm/client/actions/createAccount.js.map +1 -0
  43. package/dist/esm/client/actions/getCallsStatus.d.ts +6 -0
  44. package/dist/esm/client/actions/getCallsStatus.js +7 -0
  45. package/dist/esm/client/actions/getCallsStatus.js.map +1 -0
  46. package/dist/esm/client/actions/grantPermissions.d.ts +13 -0
  47. package/dist/esm/client/actions/grantPermissions.js +11 -0
  48. package/dist/esm/client/actions/grantPermissions.js.map +1 -0
  49. package/dist/esm/client/actions/listAccounts.d.ts +6 -0
  50. package/dist/esm/client/actions/listAccounts.js +4 -0
  51. package/dist/esm/client/actions/listAccounts.js.map +1 -0
  52. package/dist/esm/client/actions/prepareCalls.d.ts +15 -0
  53. package/dist/esm/client/actions/prepareCalls.js +17 -0
  54. package/dist/esm/client/actions/prepareCalls.js.map +1 -0
  55. package/dist/esm/client/actions/requestAccount.d.ts +11 -0
  56. package/dist/esm/client/actions/requestAccount.js +28 -0
  57. package/dist/esm/client/actions/requestAccount.js.map +1 -0
  58. package/dist/esm/client/actions/sendPreparedCalls.d.ts +6 -0
  59. package/dist/esm/client/actions/sendPreparedCalls.js +8 -0
  60. package/dist/esm/client/actions/sendPreparedCalls.js.map +1 -0
  61. package/dist/esm/client/actions/signMessage.d.ts +6 -0
  62. package/dist/esm/client/actions/signMessage.js +7 -0
  63. package/dist/esm/client/actions/signMessage.js.map +1 -0
  64. package/dist/esm/client/actions/signSignatureRequest.d.ts +10 -0
  65. package/dist/esm/client/actions/signSignatureRequest.js +15 -0
  66. package/dist/esm/client/actions/signSignatureRequest.js.map +1 -0
  67. package/dist/esm/client/actions/signTypedData.d.ts +6 -0
  68. package/dist/esm/client/actions/signTypedData.js +7 -0
  69. package/dist/esm/client/actions/signTypedData.js.map +1 -0
  70. package/dist/esm/client/client.e2e-test.d.ts +1 -0
  71. package/dist/esm/client/client.e2e-test.js +238 -0
  72. package/dist/esm/client/client.e2e-test.js.map +1 -0
  73. package/dist/esm/client/decorator.d.ts +24 -0
  74. package/dist/esm/client/decorator.js +25 -0
  75. package/dist/esm/client/decorator.js.map +1 -0
  76. package/dist/esm/client/index.d.ts +18 -0
  77. package/dist/esm/client/index.js +43 -0
  78. package/dist/esm/client/index.js.map +1 -0
  79. package/dist/esm/exports/index.d.ts +13 -0
  80. package/dist/esm/exports/index.js +18 -0
  81. package/dist/esm/exports/index.js.map +1 -0
  82. package/dist/esm/exports/internal.d.ts +13 -0
  83. package/dist/esm/exports/internal.js +15 -0
  84. package/dist/esm/exports/internal.js.map +1 -0
  85. package/dist/esm/isomorphic/actions/createSession.d.ts +14 -0
  86. package/dist/esm/isomorphic/actions/createSession.js +63 -0
  87. package/dist/esm/isomorphic/actions/createSession.js.map +1 -0
  88. package/dist/esm/isomorphic/actions/getCallsStatus.d.ts +21 -0
  89. package/dist/esm/isomorphic/actions/getCallsStatus.js +60 -0
  90. package/dist/esm/isomorphic/actions/getCallsStatus.js.map +1 -0
  91. package/dist/esm/isomorphic/actions/prepareCalls.d.ts +8 -0
  92. package/dist/esm/isomorphic/actions/prepareCalls.js +57 -0
  93. package/dist/esm/isomorphic/actions/prepareCalls.js.map +1 -0
  94. package/dist/esm/isomorphic/actions/sendPreparedCalls.d.ts +8 -0
  95. package/dist/esm/isomorphic/actions/sendPreparedCalls.js +43 -0
  96. package/dist/esm/isomorphic/actions/sendPreparedCalls.js.map +1 -0
  97. package/dist/esm/isomorphic/client.d.ts +97 -0
  98. package/dist/esm/isomorphic/client.js +30 -0
  99. package/dist/esm/isomorphic/client.js.map +1 -0
  100. package/dist/esm/isomorphic/utils/createAccount.d.ts +22 -0
  101. package/dist/esm/isomorphic/utils/createAccount.js +32 -0
  102. package/dist/esm/isomorphic/utils/createAccount.js.map +1 -0
  103. package/dist/esm/isomorphic/utils/createDummySigner.d.ts +3 -0
  104. package/dist/esm/isomorphic/utils/createDummySigner.js +17 -0
  105. package/dist/esm/isomorphic/utils/createDummySigner.js.map +1 -0
  106. package/dist/esm/isomorphic/utils/parsePermissionsContext.d.ts +20 -0
  107. package/dist/esm/isomorphic/utils/parsePermissionsContext.js +21 -0
  108. package/dist/esm/isomorphic/utils/parsePermissionsContext.js.map +1 -0
  109. package/dist/esm/local/client.d.ts +3 -0
  110. package/dist/esm/local/client.js +89 -0
  111. package/dist/esm/local/client.js.map +1 -0
  112. package/dist/esm/remote/client.d.ts +3 -0
  113. package/dist/esm/remote/client.js +42 -0
  114. package/dist/esm/remote/client.js.map +1 -0
  115. package/dist/esm/rpc/request.d.ts +329 -0
  116. package/dist/esm/rpc/request.js +194 -0
  117. package/dist/esm/rpc/request.js.map +1 -0
  118. package/dist/esm/rpc/schema.d.ts +319 -0
  119. package/dist/esm/rpc/schema.js +5 -0
  120. package/dist/esm/rpc/schema.js.map +1 -0
  121. package/dist/esm/schemas.d.ts +216 -0
  122. package/dist/esm/schemas.js +211 -0
  123. package/dist/esm/schemas.js.map +1 -0
  124. package/dist/esm/types.d.ts +27 -0
  125. package/dist/esm/types.js +2 -0
  126. package/dist/esm/types.js.map +1 -0
  127. package/dist/esm/utils.d.ts +4 -0
  128. package/dist/esm/utils.js +12 -0
  129. package/dist/esm/utils.js.map +1 -0
  130. package/dist/types/abi/LightAccountFactoryAbi_V1_0_1.d.ts +56 -0
  131. package/dist/types/abi/LightAccountFactoryAbi_V1_0_1.d.ts.map +1 -0
  132. package/dist/types/abi/LightAccountFactoryAbi_V1_0_2.d.ts +56 -0
  133. package/dist/types/abi/LightAccountFactoryAbi_V1_0_2.d.ts.map +1 -0
  134. package/dist/types/abi/LightAccountFactoryAbi_V1_1_0.d.ts +56 -0
  135. package/dist/types/abi/LightAccountFactoryAbi_V1_1_0.d.ts.map +1 -0
  136. package/dist/types/abi/LightAccountFactoryAbi_V2_0_0.d.ts +257 -0
  137. package/dist/types/abi/LightAccountFactoryAbi_V2_0_0.d.ts.map +1 -0
  138. package/dist/types/abi/ModularAccountFactoryAbi_V2_0_0.d.ts +493 -0
  139. package/dist/types/abi/ModularAccountFactoryAbi_V2_0_0.d.ts.map +1 -0
  140. package/dist/types/abi/MultiOwnerLightAccountFactoryAbi_V2_0_0.d.ts +287 -0
  141. package/dist/types/abi/MultiOwnerLightAccountFactoryAbi_V2_0_0.d.ts.map +1 -0
  142. package/dist/types/abi/MultiOwnerModularAccountFactoryAbi_V1_0_0.d.ts +235 -0
  143. package/dist/types/abi/MultiOwnerModularAccountFactoryAbi_V1_0_0.d.ts.map +1 -0
  144. package/dist/types/abi/MultisigModularAccountFactoryAbi_V1_0_0.d.ts +247 -0
  145. package/dist/types/abi/MultisigModularAccountFactoryAbi_V1_0_0.d.ts.map +1 -0
  146. package/dist/types/abi/index.d.ts +9 -0
  147. package/dist/types/abi/index.d.ts.map +1 -0
  148. package/dist/types/capabilities/index.d.ts +9 -0
  149. package/dist/types/capabilities/index.d.ts.map +1 -0
  150. package/dist/types/capabilities/paymaster.d.ts +4 -0
  151. package/dist/types/capabilities/paymaster.d.ts.map +1 -0
  152. package/dist/types/capabilities/permissions/index.d.ts +99 -0
  153. package/dist/types/capabilities/permissions/index.d.ts.map +1 -0
  154. package/dist/types/capabilities/permissions/mav2.d.ts +37 -0
  155. package/dist/types/capabilities/permissions/mav2.d.ts.map +1 -0
  156. package/dist/types/client/actions/createAccount.d.ts +11 -0
  157. package/dist/types/client/actions/createAccount.d.ts.map +1 -0
  158. package/dist/types/client/actions/getCallsStatus.d.ts +7 -0
  159. package/dist/types/client/actions/getCallsStatus.d.ts.map +1 -0
  160. package/dist/types/client/actions/grantPermissions.d.ts +14 -0
  161. package/dist/types/client/actions/grantPermissions.d.ts.map +1 -0
  162. package/dist/types/client/actions/listAccounts.d.ts +7 -0
  163. package/dist/types/client/actions/listAccounts.d.ts.map +1 -0
  164. package/dist/types/client/actions/prepareCalls.d.ts +16 -0
  165. package/dist/types/client/actions/prepareCalls.d.ts.map +1 -0
  166. package/dist/types/client/actions/requestAccount.d.ts +12 -0
  167. package/dist/types/client/actions/requestAccount.d.ts.map +1 -0
  168. package/dist/types/client/actions/sendPreparedCalls.d.ts +7 -0
  169. package/dist/types/client/actions/sendPreparedCalls.d.ts.map +1 -0
  170. package/dist/types/client/actions/signMessage.d.ts +7 -0
  171. package/dist/types/client/actions/signMessage.d.ts.map +1 -0
  172. package/dist/types/client/actions/signSignatureRequest.d.ts +11 -0
  173. package/dist/types/client/actions/signSignatureRequest.d.ts.map +1 -0
  174. package/dist/types/client/actions/signTypedData.d.ts +7 -0
  175. package/dist/types/client/actions/signTypedData.d.ts.map +1 -0
  176. package/dist/types/client/client.e2e-test.d.ts +2 -0
  177. package/dist/types/client/client.e2e-test.d.ts.map +1 -0
  178. package/dist/types/client/decorator.d.ts +25 -0
  179. package/dist/types/client/decorator.d.ts.map +1 -0
  180. package/dist/types/client/index.d.ts +19 -0
  181. package/dist/types/client/index.d.ts.map +1 -0
  182. package/dist/types/exports/index.d.ts +14 -0
  183. package/dist/types/exports/index.d.ts.map +1 -0
  184. package/dist/types/exports/internal.d.ts +14 -0
  185. package/dist/types/exports/internal.d.ts.map +1 -0
  186. package/dist/types/isomorphic/actions/createSession.d.ts +15 -0
  187. package/dist/types/isomorphic/actions/createSession.d.ts.map +1 -0
  188. package/dist/types/isomorphic/actions/getCallsStatus.d.ts +22 -0
  189. package/dist/types/isomorphic/actions/getCallsStatus.d.ts.map +1 -0
  190. package/dist/types/isomorphic/actions/prepareCalls.d.ts +9 -0
  191. package/dist/types/isomorphic/actions/prepareCalls.d.ts.map +1 -0
  192. package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts +9 -0
  193. package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts.map +1 -0
  194. package/dist/types/isomorphic/client.d.ts +98 -0
  195. package/dist/types/isomorphic/client.d.ts.map +1 -0
  196. package/dist/types/isomorphic/utils/createAccount.d.ts +23 -0
  197. package/dist/types/isomorphic/utils/createAccount.d.ts.map +1 -0
  198. package/dist/types/isomorphic/utils/createDummySigner.d.ts +4 -0
  199. package/dist/types/isomorphic/utils/createDummySigner.d.ts.map +1 -0
  200. package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts +21 -0
  201. package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts.map +1 -0
  202. package/dist/types/local/client.d.ts +4 -0
  203. package/dist/types/local/client.d.ts.map +1 -0
  204. package/dist/types/remote/client.d.ts +4 -0
  205. package/dist/types/remote/client.d.ts.map +1 -0
  206. package/dist/types/rpc/request.d.ts +330 -0
  207. package/dist/types/rpc/request.d.ts.map +1 -0
  208. package/dist/types/rpc/schema.d.ts +320 -0
  209. package/dist/types/rpc/schema.d.ts.map +1 -0
  210. package/dist/types/schemas.d.ts +217 -0
  211. package/dist/types/schemas.d.ts.map +1 -0
  212. package/dist/types/types.d.ts +28 -0
  213. package/dist/types/types.d.ts.map +1 -0
  214. package/dist/types/utils.d.ts +5 -0
  215. package/dist/types/utils.d.ts.map +1 -0
  216. package/package.json +67 -0
  217. package/src/abi/LightAccountFactoryAbi_V1_0_1.ts +44 -0
  218. package/src/abi/LightAccountFactoryAbi_V1_0_2.ts +44 -0
  219. package/src/abi/LightAccountFactoryAbi_V1_1_0.ts +44 -0
  220. package/src/abi/LightAccountFactoryAbi_V2_0_0.ts +201 -0
  221. package/src/abi/ModularAccountFactoryAbi_V2_0_0.ts +398 -0
  222. package/src/abi/MultiOwnerLightAccountFactoryAbi_V2_0_0.ts +224 -0
  223. package/src/abi/MultiOwnerModularAccountFactoryAbi_V1_0_0.ts +178 -0
  224. package/src/abi/MultisigModularAccountFactoryAbi_V1_0_0.ts +181 -0
  225. package/src/abi/index.ts +8 -0
  226. package/src/capabilities/index.ts +11 -0
  227. package/src/capabilities/paymaster.ts +5 -0
  228. package/src/capabilities/permissions/index.ts +124 -0
  229. package/src/capabilities/permissions/mav2.ts +127 -0
  230. package/src/client/actions/createAccount.ts +28 -0
  231. package/src/client/actions/getCallsStatus.ts +29 -0
  232. package/src/client/actions/grantPermissions.ts +48 -0
  233. package/src/client/actions/listAccounts.ts +18 -0
  234. package/src/client/actions/prepareCalls.ts +55 -0
  235. package/src/client/actions/requestAccount.ts +71 -0
  236. package/src/client/actions/sendPreparedCalls.ts +23 -0
  237. package/src/client/actions/signMessage.ts +32 -0
  238. package/src/client/actions/signSignatureRequest.ts +34 -0
  239. package/src/client/actions/signTypedData.ts +32 -0
  240. package/src/client/client.e2e-test.ts +294 -0
  241. package/src/client/decorator.ts +102 -0
  242. package/src/client/index.ts +93 -0
  243. package/src/exports/index.ts +32 -0
  244. package/src/exports/internal.ts +16 -0
  245. package/src/isomorphic/actions/createSession.ts +116 -0
  246. package/src/isomorphic/actions/getCallsStatus.ts +98 -0
  247. package/src/isomorphic/actions/prepareCalls.ts +99 -0
  248. package/src/isomorphic/actions/sendPreparedCalls.ts +95 -0
  249. package/src/isomorphic/client.ts +81 -0
  250. package/src/isomorphic/utils/createAccount.ts +58 -0
  251. package/src/isomorphic/utils/createDummySigner.ts +26 -0
  252. package/src/isomorphic/utils/parsePermissionsContext.ts +33 -0
  253. package/src/local/client.ts +132 -0
  254. package/src/remote/client.ts +67 -0
  255. package/src/rpc/request.ts +258 -0
  256. package/src/rpc/schema.ts +40 -0
  257. package/src/schemas.ts +257 -0
  258. package/src/types.ts +60 -0
  259. package/src/utils.ts +13 -0
@@ -0,0 +1,398 @@
1
+ export const ModularAccountFactoryAbi_V2_0_0 = [
2
+ {
3
+ inputs: [
4
+ {
5
+ internalType: "contract IEntryPoint",
6
+ name: "_entryPoint",
7
+ type: "address",
8
+ },
9
+ {
10
+ internalType: "contract ModularAccount",
11
+ name: "_accountImpl",
12
+ type: "address",
13
+ },
14
+ {
15
+ internalType: "contract SemiModularAccountBytecode",
16
+ name: "_semiModularImpl",
17
+ type: "address",
18
+ },
19
+ {
20
+ internalType: "address",
21
+ name: "_singleSignerValidationModule",
22
+ type: "address",
23
+ },
24
+ {
25
+ internalType: "address",
26
+ name: "_webAuthnValidationModule",
27
+ type: "address",
28
+ },
29
+ { internalType: "address", name: "owner", type: "address" },
30
+ ],
31
+ stateMutability: "nonpayable",
32
+ type: "constructor",
33
+ },
34
+ {
35
+ inputs: [{ internalType: "address", name: "target", type: "address" }],
36
+ name: "AddressEmptyCode",
37
+ type: "error",
38
+ },
39
+ {
40
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
41
+ name: "AddressInsufficientBalance",
42
+ type: "error",
43
+ },
44
+ { inputs: [], name: "FailedInnerCall", type: "error" },
45
+ { inputs: [], name: "InvalidAction", type: "error" },
46
+ {
47
+ inputs: [{ internalType: "address", name: "owner", type: "address" }],
48
+ name: "OwnableInvalidOwner",
49
+ type: "error",
50
+ },
51
+ {
52
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
53
+ name: "OwnableUnauthorizedAccount",
54
+ type: "error",
55
+ },
56
+ {
57
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
58
+ name: "SafeERC20FailedOperation",
59
+ type: "error",
60
+ },
61
+ { inputs: [], name: "TransferFailed", type: "error" },
62
+ {
63
+ anonymous: false,
64
+ inputs: [
65
+ {
66
+ indexed: true,
67
+ internalType: "address",
68
+ name: "account",
69
+ type: "address",
70
+ },
71
+ {
72
+ indexed: true,
73
+ internalType: "address",
74
+ name: "owner",
75
+ type: "address",
76
+ },
77
+ {
78
+ indexed: false,
79
+ internalType: "uint256",
80
+ name: "salt",
81
+ type: "uint256",
82
+ },
83
+ ],
84
+ name: "ModularAccountDeployed",
85
+ type: "event",
86
+ },
87
+ {
88
+ anonymous: false,
89
+ inputs: [
90
+ {
91
+ indexed: true,
92
+ internalType: "address",
93
+ name: "previousOwner",
94
+ type: "address",
95
+ },
96
+ {
97
+ indexed: true,
98
+ internalType: "address",
99
+ name: "newOwner",
100
+ type: "address",
101
+ },
102
+ ],
103
+ name: "OwnershipTransferStarted",
104
+ type: "event",
105
+ },
106
+ {
107
+ anonymous: false,
108
+ inputs: [
109
+ {
110
+ indexed: true,
111
+ internalType: "address",
112
+ name: "previousOwner",
113
+ type: "address",
114
+ },
115
+ {
116
+ indexed: true,
117
+ internalType: "address",
118
+ name: "newOwner",
119
+ type: "address",
120
+ },
121
+ ],
122
+ name: "OwnershipTransferred",
123
+ type: "event",
124
+ },
125
+ {
126
+ anonymous: false,
127
+ inputs: [
128
+ {
129
+ indexed: true,
130
+ internalType: "address",
131
+ name: "account",
132
+ type: "address",
133
+ },
134
+ {
135
+ indexed: true,
136
+ internalType: "address",
137
+ name: "owner",
138
+ type: "address",
139
+ },
140
+ {
141
+ indexed: false,
142
+ internalType: "uint256",
143
+ name: "salt",
144
+ type: "uint256",
145
+ },
146
+ ],
147
+ name: "SemiModularAccountDeployed",
148
+ type: "event",
149
+ },
150
+ {
151
+ anonymous: false,
152
+ inputs: [
153
+ {
154
+ indexed: true,
155
+ internalType: "address",
156
+ name: "account",
157
+ type: "address",
158
+ },
159
+ {
160
+ indexed: true,
161
+ internalType: "uint256",
162
+ name: "ownerX",
163
+ type: "uint256",
164
+ },
165
+ {
166
+ indexed: true,
167
+ internalType: "uint256",
168
+ name: "ownerY",
169
+ type: "uint256",
170
+ },
171
+ {
172
+ indexed: false,
173
+ internalType: "uint256",
174
+ name: "salt",
175
+ type: "uint256",
176
+ },
177
+ ],
178
+ name: "WebAuthnModularAccountDeployed",
179
+ type: "event",
180
+ },
181
+ {
182
+ inputs: [],
183
+ name: "ACCOUNT_IMPL",
184
+ outputs: [
185
+ { internalType: "contract ModularAccount", name: "", type: "address" },
186
+ ],
187
+ stateMutability: "view",
188
+ type: "function",
189
+ },
190
+ {
191
+ inputs: [],
192
+ name: "ENTRY_POINT",
193
+ outputs: [
194
+ { internalType: "contract IEntryPoint", name: "", type: "address" },
195
+ ],
196
+ stateMutability: "view",
197
+ type: "function",
198
+ },
199
+ {
200
+ inputs: [],
201
+ name: "SEMI_MODULAR_ACCOUNT_IMPL",
202
+ outputs: [
203
+ {
204
+ internalType: "contract SemiModularAccountBytecode",
205
+ name: "",
206
+ type: "address",
207
+ },
208
+ ],
209
+ stateMutability: "view",
210
+ type: "function",
211
+ },
212
+ {
213
+ inputs: [],
214
+ name: "SINGLE_SIGNER_VALIDATION_MODULE",
215
+ outputs: [{ internalType: "address", name: "", type: "address" }],
216
+ stateMutability: "view",
217
+ type: "function",
218
+ },
219
+ {
220
+ inputs: [],
221
+ name: "WEBAUTHN_VALIDATION_MODULE",
222
+ outputs: [{ internalType: "address", name: "", type: "address" }],
223
+ stateMutability: "view",
224
+ type: "function",
225
+ },
226
+ {
227
+ inputs: [],
228
+ name: "acceptOwnership",
229
+ outputs: [],
230
+ stateMutability: "nonpayable",
231
+ type: "function",
232
+ },
233
+ {
234
+ inputs: [{ internalType: "uint32", name: "unstakeDelay", type: "uint32" }],
235
+ name: "addStake",
236
+ outputs: [],
237
+ stateMutability: "payable",
238
+ type: "function",
239
+ },
240
+ {
241
+ inputs: [
242
+ { internalType: "address", name: "owner", type: "address" },
243
+ { internalType: "uint256", name: "salt", type: "uint256" },
244
+ { internalType: "uint32", name: "entityId", type: "uint32" },
245
+ ],
246
+ name: "createAccount",
247
+ outputs: [
248
+ { internalType: "contract ModularAccount", name: "", type: "address" },
249
+ ],
250
+ stateMutability: "nonpayable",
251
+ type: "function",
252
+ },
253
+ {
254
+ inputs: [
255
+ { internalType: "address", name: "owner", type: "address" },
256
+ { internalType: "uint256", name: "salt", type: "uint256" },
257
+ ],
258
+ name: "createSemiModularAccount",
259
+ outputs: [
260
+ {
261
+ internalType: "contract SemiModularAccountBytecode",
262
+ name: "",
263
+ type: "address",
264
+ },
265
+ ],
266
+ stateMutability: "nonpayable",
267
+ type: "function",
268
+ },
269
+ {
270
+ inputs: [
271
+ { internalType: "uint256", name: "ownerX", type: "uint256" },
272
+ { internalType: "uint256", name: "ownerY", type: "uint256" },
273
+ { internalType: "uint256", name: "salt", type: "uint256" },
274
+ { internalType: "uint32", name: "entityId", type: "uint32" },
275
+ ],
276
+ name: "createWebAuthnAccount",
277
+ outputs: [
278
+ { internalType: "contract ModularAccount", name: "", type: "address" },
279
+ ],
280
+ stateMutability: "nonpayable",
281
+ type: "function",
282
+ },
283
+ {
284
+ inputs: [
285
+ { internalType: "address", name: "owner", type: "address" },
286
+ { internalType: "uint256", name: "salt", type: "uint256" },
287
+ { internalType: "uint32", name: "entityId", type: "uint32" },
288
+ ],
289
+ name: "getAddress",
290
+ outputs: [{ internalType: "address", name: "", type: "address" }],
291
+ stateMutability: "view",
292
+ type: "function",
293
+ },
294
+ {
295
+ inputs: [
296
+ { internalType: "address", name: "owner", type: "address" },
297
+ { internalType: "uint256", name: "salt", type: "uint256" },
298
+ ],
299
+ name: "getAddressSemiModular",
300
+ outputs: [{ internalType: "address", name: "", type: "address" }],
301
+ stateMutability: "view",
302
+ type: "function",
303
+ },
304
+ {
305
+ inputs: [
306
+ { internalType: "uint256", name: "ownerX", type: "uint256" },
307
+ { internalType: "uint256", name: "ownerY", type: "uint256" },
308
+ { internalType: "uint256", name: "salt", type: "uint256" },
309
+ { internalType: "uint32", name: "entityId", type: "uint32" },
310
+ ],
311
+ name: "getAddressWebAuthn",
312
+ outputs: [{ internalType: "address", name: "", type: "address" }],
313
+ stateMutability: "view",
314
+ type: "function",
315
+ },
316
+ {
317
+ inputs: [
318
+ { internalType: "address", name: "owner", type: "address" },
319
+ { internalType: "uint256", name: "salt", type: "uint256" },
320
+ { internalType: "uint32", name: "entityId", type: "uint32" },
321
+ ],
322
+ name: "getSalt",
323
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
324
+ stateMutability: "pure",
325
+ type: "function",
326
+ },
327
+ {
328
+ inputs: [
329
+ { internalType: "uint256", name: "ownerX", type: "uint256" },
330
+ { internalType: "uint256", name: "ownerY", type: "uint256" },
331
+ { internalType: "uint256", name: "salt", type: "uint256" },
332
+ { internalType: "uint32", name: "entityId", type: "uint32" },
333
+ ],
334
+ name: "getSaltWebAuthn",
335
+ outputs: [{ internalType: "bytes32", name: "", type: "bytes32" }],
336
+ stateMutability: "pure",
337
+ type: "function",
338
+ },
339
+ {
340
+ inputs: [],
341
+ name: "owner",
342
+ outputs: [{ internalType: "address", name: "", type: "address" }],
343
+ stateMutability: "view",
344
+ type: "function",
345
+ },
346
+ {
347
+ inputs: [],
348
+ name: "pendingOwner",
349
+ outputs: [{ internalType: "address", name: "", type: "address" }],
350
+ stateMutability: "view",
351
+ type: "function",
352
+ },
353
+ {
354
+ inputs: [],
355
+ name: "renounceOwnership",
356
+ outputs: [],
357
+ stateMutability: "view",
358
+ type: "function",
359
+ },
360
+ {
361
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
362
+ name: "transferOwnership",
363
+ outputs: [],
364
+ stateMutability: "nonpayable",
365
+ type: "function",
366
+ },
367
+ {
368
+ inputs: [],
369
+ name: "unlockStake",
370
+ outputs: [],
371
+ stateMutability: "nonpayable",
372
+ type: "function",
373
+ },
374
+ {
375
+ inputs: [
376
+ { internalType: "address payable", name: "to", type: "address" },
377
+ { internalType: "address", name: "token", type: "address" },
378
+ { internalType: "uint256", name: "amount", type: "uint256" },
379
+ ],
380
+ name: "withdraw",
381
+ outputs: [],
382
+ stateMutability: "nonpayable",
383
+ type: "function",
384
+ },
385
+ {
386
+ inputs: [
387
+ {
388
+ internalType: "address payable",
389
+ name: "withdrawAddress",
390
+ type: "address",
391
+ },
392
+ ],
393
+ name: "withdrawStake",
394
+ outputs: [],
395
+ stateMutability: "nonpayable",
396
+ type: "function",
397
+ },
398
+ ] as const;
@@ -0,0 +1,224 @@
1
+ export const MultiOwnerLightAccountFactoryAbi_V2_0_0 = [
2
+ {
3
+ inputs: [
4
+ { internalType: "address", name: "owner", type: "address" },
5
+ {
6
+ internalType: "contract IEntryPoint",
7
+ name: "entryPoint",
8
+ type: "address",
9
+ },
10
+ ],
11
+ stateMutability: "nonpayable",
12
+ type: "constructor",
13
+ },
14
+ {
15
+ inputs: [{ internalType: "address", name: "target", type: "address" }],
16
+ name: "AddressEmptyCode",
17
+ type: "error",
18
+ },
19
+ {
20
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
21
+ name: "AddressInsufficientBalance",
22
+ type: "error",
23
+ },
24
+ { inputs: [], name: "FailedInnerCall", type: "error" },
25
+ { inputs: [], name: "InvalidAction", type: "error" },
26
+ {
27
+ inputs: [{ internalType: "address", name: "entryPoint", type: "address" }],
28
+ name: "InvalidEntryPoint",
29
+ type: "error",
30
+ },
31
+ { inputs: [], name: "InvalidOwners", type: "error" },
32
+ {
33
+ inputs: [{ internalType: "address", name: "owner", type: "address" }],
34
+ name: "OwnableInvalidOwner",
35
+ type: "error",
36
+ },
37
+ {
38
+ inputs: [{ internalType: "address", name: "account", type: "address" }],
39
+ name: "OwnableUnauthorizedAccount",
40
+ type: "error",
41
+ },
42
+ { inputs: [], name: "OwnersArrayEmpty", type: "error" },
43
+ { inputs: [], name: "OwnersLimitExceeded", type: "error" },
44
+ {
45
+ inputs: [{ internalType: "address", name: "token", type: "address" }],
46
+ name: "SafeERC20FailedOperation",
47
+ type: "error",
48
+ },
49
+ { inputs: [], name: "TransferFailed", type: "error" },
50
+ { inputs: [], name: "ZeroAddressNotAllowed", type: "error" },
51
+ {
52
+ anonymous: false,
53
+ inputs: [
54
+ {
55
+ indexed: true,
56
+ internalType: "address",
57
+ name: "previousOwner",
58
+ type: "address",
59
+ },
60
+ {
61
+ indexed: true,
62
+ internalType: "address",
63
+ name: "newOwner",
64
+ type: "address",
65
+ },
66
+ ],
67
+ name: "OwnershipTransferStarted",
68
+ type: "event",
69
+ },
70
+ {
71
+ anonymous: false,
72
+ inputs: [
73
+ {
74
+ indexed: true,
75
+ internalType: "address",
76
+ name: "previousOwner",
77
+ type: "address",
78
+ },
79
+ {
80
+ indexed: true,
81
+ internalType: "address",
82
+ name: "newOwner",
83
+ type: "address",
84
+ },
85
+ ],
86
+ name: "OwnershipTransferred",
87
+ type: "event",
88
+ },
89
+ {
90
+ inputs: [],
91
+ name: "ACCOUNT_IMPLEMENTATION",
92
+ outputs: [
93
+ {
94
+ internalType: "contract MultiOwnerLightAccount",
95
+ name: "",
96
+ type: "address",
97
+ },
98
+ ],
99
+ stateMutability: "view",
100
+ type: "function",
101
+ },
102
+ {
103
+ inputs: [],
104
+ name: "ENTRY_POINT",
105
+ outputs: [
106
+ { internalType: "contract IEntryPoint", name: "", type: "address" },
107
+ ],
108
+ stateMutability: "view",
109
+ type: "function",
110
+ },
111
+ {
112
+ inputs: [],
113
+ name: "acceptOwnership",
114
+ outputs: [],
115
+ stateMutability: "nonpayable",
116
+ type: "function",
117
+ },
118
+ {
119
+ inputs: [
120
+ { internalType: "uint32", name: "unstakeDelay", type: "uint32" },
121
+ { internalType: "uint256", name: "amount", type: "uint256" },
122
+ ],
123
+ name: "addStake",
124
+ outputs: [],
125
+ stateMutability: "payable",
126
+ type: "function",
127
+ },
128
+ {
129
+ inputs: [
130
+ { internalType: "address[]", name: "owners", type: "address[]" },
131
+ { internalType: "uint256", name: "salt", type: "uint256" },
132
+ ],
133
+ name: "createAccount",
134
+ outputs: [
135
+ {
136
+ internalType: "contract MultiOwnerLightAccount",
137
+ name: "account",
138
+ type: "address",
139
+ },
140
+ ],
141
+ stateMutability: "nonpayable",
142
+ type: "function",
143
+ },
144
+ {
145
+ inputs: [
146
+ { internalType: "address", name: "owner", type: "address" },
147
+ { internalType: "uint256", name: "salt", type: "uint256" },
148
+ ],
149
+ name: "createAccountSingle",
150
+ outputs: [
151
+ {
152
+ internalType: "contract MultiOwnerLightAccount",
153
+ name: "account",
154
+ type: "address",
155
+ },
156
+ ],
157
+ stateMutability: "nonpayable",
158
+ type: "function",
159
+ },
160
+ {
161
+ inputs: [
162
+ { internalType: "address[]", name: "owners", type: "address[]" },
163
+ { internalType: "uint256", name: "salt", type: "uint256" },
164
+ ],
165
+ name: "getAddress",
166
+ outputs: [{ internalType: "address", name: "", type: "address" }],
167
+ stateMutability: "view",
168
+ type: "function",
169
+ },
170
+ {
171
+ inputs: [],
172
+ name: "owner",
173
+ outputs: [{ internalType: "address", name: "", type: "address" }],
174
+ stateMutability: "view",
175
+ type: "function",
176
+ },
177
+ {
178
+ inputs: [],
179
+ name: "pendingOwner",
180
+ outputs: [{ internalType: "address", name: "", type: "address" }],
181
+ stateMutability: "view",
182
+ type: "function",
183
+ },
184
+ {
185
+ inputs: [],
186
+ name: "renounceOwnership",
187
+ outputs: [],
188
+ stateMutability: "view",
189
+ type: "function",
190
+ },
191
+ {
192
+ inputs: [{ internalType: "address", name: "newOwner", type: "address" }],
193
+ name: "transferOwnership",
194
+ outputs: [],
195
+ stateMutability: "nonpayable",
196
+ type: "function",
197
+ },
198
+ {
199
+ inputs: [],
200
+ name: "unlockStake",
201
+ outputs: [],
202
+ stateMutability: "nonpayable",
203
+ type: "function",
204
+ },
205
+ {
206
+ inputs: [
207
+ { internalType: "address payable", name: "to", type: "address" },
208
+ { internalType: "address", name: "token", type: "address" },
209
+ { internalType: "uint256", name: "amount", type: "uint256" },
210
+ ],
211
+ name: "withdraw",
212
+ outputs: [],
213
+ stateMutability: "nonpayable",
214
+ type: "function",
215
+ },
216
+ {
217
+ inputs: [{ internalType: "address payable", name: "to", type: "address" }],
218
+ name: "withdrawStake",
219
+ outputs: [],
220
+ stateMutability: "nonpayable",
221
+ type: "function",
222
+ },
223
+ { stateMutability: "payable", type: "receive" },
224
+ ] as const;