@account-kit/smart-contracts 4.6.1 → 4.8.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 (151) hide show
  1. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.d.ts +492 -0
  2. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js +639 -0
  3. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js.map +1 -0
  4. package/dist/esm/src/ma-v2/abis/modularAccountAbi.d.ts +954 -0
  5. package/dist/esm/src/ma-v2/abis/modularAccountAbi.js +1242 -0
  6. package/dist/esm/src/ma-v2/abis/modularAccountAbi.js.map +1 -0
  7. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +991 -0
  8. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js +1289 -0
  9. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js.map +1 -0
  10. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1001 -0
  11. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js +1302 -0
  12. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js.map +1 -0
  13. package/dist/esm/src/ma-v2/account/nativeSMASigner.d.ts +238 -0
  14. package/dist/esm/src/ma-v2/account/nativeSMASigner.js +88 -0
  15. package/dist/esm/src/ma-v2/account/nativeSMASigner.js.map +1 -0
  16. package/dist/esm/src/ma-v2/account/semiModularAccountV2.d.ts +41 -0
  17. package/dist/esm/src/ma-v2/account/semiModularAccountV2.js +148 -0
  18. package/dist/esm/src/ma-v2/account/semiModularAccountV2.js.map +1 -0
  19. package/dist/esm/src/ma-v2/actions/common/types.d.ts +31 -0
  20. package/dist/esm/src/ma-v2/actions/common/types.js +6 -0
  21. package/dist/esm/src/ma-v2/actions/common/types.js.map +1 -0
  22. package/dist/esm/src/ma-v2/actions/common/utils.d.ts +76 -0
  23. package/dist/esm/src/ma-v2/actions/common/utils.js +100 -0
  24. package/dist/esm/src/ma-v2/actions/common/utils.js.map +1 -0
  25. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.d.ts +71 -0
  26. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js +109 -0
  27. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js.map +1 -0
  28. package/dist/esm/src/ma-v2/client/client.d.ts +6 -0
  29. package/dist/esm/src/ma-v2/client/client.js +40 -0
  30. package/dist/esm/src/ma-v2/client/client.js.map +1 -0
  31. package/dist/esm/src/ma-v2/index.d.ts +26 -0
  32. package/dist/esm/src/ma-v2/index.js +24 -0
  33. package/dist/esm/src/ma-v2/index.js.map +1 -0
  34. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +556 -0
  35. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js +716 -0
  36. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js.map +1 -0
  37. package/dist/esm/src/ma-v2/modules/allowlist-module/module.d.ts +579 -0
  38. package/dist/esm/src/ma-v2/modules/allowlist-module/module.js +56 -0
  39. package/dist/esm/src/ma-v2/modules/allowlist-module/module.js.map +1 -0
  40. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +312 -0
  41. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js +404 -0
  42. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js.map +1 -0
  43. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.d.ts +322 -0
  44. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js +14 -0
  45. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js.map +1 -0
  46. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +186 -0
  47. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js +242 -0
  48. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js.map +1 -0
  49. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.d.ts +196 -0
  50. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js +25 -0
  51. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js.map +1 -0
  52. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +45 -0
  53. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js +331 -0
  54. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js.map +1 -0
  55. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.d.ts +10 -0
  56. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js +16 -0
  57. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js.map +1 -0
  58. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.d.ts +239 -0
  59. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js +93 -0
  60. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js.map +1 -0
  61. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +229 -0
  62. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js +296 -0
  63. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js.map +1 -0
  64. package/dist/esm/src/ma-v2/modules/time-range-module/module.d.ts +245 -0
  65. package/dist/esm/src/ma-v2/modules/time-range-module/module.js +42 -0
  66. package/dist/esm/src/ma-v2/modules/time-range-module/module.js.map +1 -0
  67. package/dist/esm/src/ma-v2/modules/utils.d.ts +91 -0
  68. package/dist/esm/src/ma-v2/modules/utils.js +188 -0
  69. package/dist/esm/src/ma-v2/modules/utils.js.map +1 -0
  70. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +287 -0
  71. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js +374 -0
  72. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js.map +1 -0
  73. package/dist/esm/src/ma-v2/utils.d.ts +16 -0
  74. package/dist/esm/src/ma-v2/utils.js +105 -0
  75. package/dist/esm/src/ma-v2/utils.js.map +1 -0
  76. package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts +493 -0
  77. package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts.map +1 -0
  78. package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts +955 -0
  79. package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts.map +1 -0
  80. package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +992 -0
  81. package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts.map +1 -0
  82. package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1002 -0
  83. package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts.map +1 -0
  84. package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts +239 -0
  85. package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts.map +1 -0
  86. package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts +42 -0
  87. package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts.map +1 -0
  88. package/dist/types/src/ma-v2/actions/common/types.d.ts +32 -0
  89. package/dist/types/src/ma-v2/actions/common/types.d.ts.map +1 -0
  90. package/dist/types/src/ma-v2/actions/common/utils.d.ts +77 -0
  91. package/dist/types/src/ma-v2/actions/common/utils.d.ts.map +1 -0
  92. package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts +72 -0
  93. package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts.map +1 -0
  94. package/dist/types/src/ma-v2/client/client.d.ts +7 -0
  95. package/dist/types/src/ma-v2/client/client.d.ts.map +1 -0
  96. package/dist/types/src/ma-v2/index.d.ts +27 -0
  97. package/dist/types/src/ma-v2/index.d.ts.map +1 -0
  98. package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +557 -0
  99. package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts.map +1 -0
  100. package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts +580 -0
  101. package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts.map +1 -0
  102. package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +313 -0
  103. package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts.map +1 -0
  104. package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts +323 -0
  105. package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts.map +1 -0
  106. package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +187 -0
  107. package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts.map +1 -0
  108. package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts +197 -0
  109. package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts.map +1 -0
  110. package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +46 -0
  111. package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts.map +1 -0
  112. package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts +11 -0
  113. package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts.map +1 -0
  114. package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts +240 -0
  115. package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts.map +1 -0
  116. package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +230 -0
  117. package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts.map +1 -0
  118. package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts +246 -0
  119. package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts.map +1 -0
  120. package/dist/types/src/ma-v2/modules/utils.d.ts +92 -0
  121. package/dist/types/src/ma-v2/modules/utils.d.ts.map +1 -0
  122. package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +288 -0
  123. package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts.map +1 -0
  124. package/dist/types/src/ma-v2/utils.d.ts +17 -0
  125. package/dist/types/src/ma-v2/utils.d.ts.map +1 -0
  126. package/package.json +10 -5
  127. package/src/ma-v2/abis/accountFactoryAbi.ts +638 -0
  128. package/src/ma-v2/abis/modularAccountAbi.ts +1241 -0
  129. package/src/ma-v2/abis/semiModularAccountBytecodeAbi.ts +1288 -0
  130. package/src/ma-v2/abis/semiModularAccountStorageAbi.ts +1301 -0
  131. package/src/ma-v2/account/nativeSMASigner.ts +121 -0
  132. package/src/ma-v2/account/semiModularAccountV2.ts +289 -0
  133. package/src/ma-v2/actions/common/types.ts +37 -0
  134. package/src/ma-v2/actions/common/utils.ts +103 -0
  135. package/src/ma-v2/actions/install-validation/installValidation.ts +213 -0
  136. package/src/ma-v2/client/client.ts +74 -0
  137. package/src/ma-v2/index.ts +47 -0
  138. package/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.ts +715 -0
  139. package/src/ma-v2/modules/allowlist-module/module.ts +87 -0
  140. package/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.ts +403 -0
  141. package/src/ma-v2/modules/native-token-limit-module/module.ts +21 -0
  142. package/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.ts +241 -0
  143. package/src/ma-v2/modules/paymaster-guard-module/module.ts +35 -0
  144. package/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.ts +330 -0
  145. package/src/ma-v2/modules/single-signer-validation/module.ts +24 -0
  146. package/src/ma-v2/modules/single-signer-validation/signer.ts +127 -0
  147. package/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.ts +295 -0
  148. package/src/ma-v2/modules/time-range-module/module.ts +63 -0
  149. package/src/ma-v2/modules/utils.ts +213 -0
  150. package/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.ts +373 -0
  151. package/src/ma-v2/utils.ts +138 -0
@@ -0,0 +1,1241 @@
1
+ export const modularAccountAbi = [
2
+ {
3
+ type: "constructor",
4
+ inputs: [
5
+ {
6
+ name: "entryPoint",
7
+ type: "address",
8
+ internalType: "contract IEntryPoint",
9
+ },
10
+ {
11
+ name: "executionInstallDelegate",
12
+ type: "address",
13
+ internalType: "contract ExecutionInstallDelegate",
14
+ },
15
+ ],
16
+ stateMutability: "nonpayable",
17
+ },
18
+ {
19
+ type: "fallback",
20
+ stateMutability: "payable",
21
+ },
22
+ {
23
+ type: "receive",
24
+ stateMutability: "payable",
25
+ },
26
+ {
27
+ type: "function",
28
+ name: "accountId",
29
+ inputs: [],
30
+ outputs: [
31
+ {
32
+ name: "",
33
+ type: "string",
34
+ internalType: "string",
35
+ },
36
+ ],
37
+ stateMutability: "pure",
38
+ },
39
+ {
40
+ type: "function",
41
+ name: "entryPoint",
42
+ inputs: [],
43
+ outputs: [
44
+ {
45
+ name: "",
46
+ type: "address",
47
+ internalType: "contract IEntryPoint",
48
+ },
49
+ ],
50
+ stateMutability: "view",
51
+ },
52
+ {
53
+ type: "function",
54
+ name: "execute",
55
+ inputs: [
56
+ {
57
+ name: "target",
58
+ type: "address",
59
+ internalType: "address",
60
+ },
61
+ {
62
+ name: "value",
63
+ type: "uint256",
64
+ internalType: "uint256",
65
+ },
66
+ {
67
+ name: "data",
68
+ type: "bytes",
69
+ internalType: "bytes",
70
+ },
71
+ ],
72
+ outputs: [
73
+ {
74
+ name: "result",
75
+ type: "bytes",
76
+ internalType: "bytes",
77
+ },
78
+ ],
79
+ stateMutability: "payable",
80
+ },
81
+ {
82
+ type: "function",
83
+ name: "executeBatch",
84
+ inputs: [
85
+ {
86
+ name: "calls",
87
+ type: "tuple[]",
88
+ internalType: "struct Call[]",
89
+ components: [
90
+ {
91
+ name: "target",
92
+ type: "address",
93
+ internalType: "address",
94
+ },
95
+ {
96
+ name: "value",
97
+ type: "uint256",
98
+ internalType: "uint256",
99
+ },
100
+ {
101
+ name: "data",
102
+ type: "bytes",
103
+ internalType: "bytes",
104
+ },
105
+ ],
106
+ },
107
+ ],
108
+ outputs: [
109
+ {
110
+ name: "results",
111
+ type: "bytes[]",
112
+ internalType: "bytes[]",
113
+ },
114
+ ],
115
+ stateMutability: "payable",
116
+ },
117
+ {
118
+ type: "function",
119
+ name: "executeUserOp",
120
+ inputs: [
121
+ {
122
+ name: "userOp",
123
+ type: "tuple",
124
+ internalType: "struct PackedUserOperation",
125
+ components: [
126
+ {
127
+ name: "sender",
128
+ type: "address",
129
+ internalType: "address",
130
+ },
131
+ {
132
+ name: "nonce",
133
+ type: "uint256",
134
+ internalType: "uint256",
135
+ },
136
+ {
137
+ name: "initCode",
138
+ type: "bytes",
139
+ internalType: "bytes",
140
+ },
141
+ {
142
+ name: "callData",
143
+ type: "bytes",
144
+ internalType: "bytes",
145
+ },
146
+ {
147
+ name: "accountGasLimits",
148
+ type: "bytes32",
149
+ internalType: "bytes32",
150
+ },
151
+ {
152
+ name: "preVerificationGas",
153
+ type: "uint256",
154
+ internalType: "uint256",
155
+ },
156
+ {
157
+ name: "gasFees",
158
+ type: "bytes32",
159
+ internalType: "bytes32",
160
+ },
161
+ {
162
+ name: "paymasterAndData",
163
+ type: "bytes",
164
+ internalType: "bytes",
165
+ },
166
+ {
167
+ name: "signature",
168
+ type: "bytes",
169
+ internalType: "bytes",
170
+ },
171
+ ],
172
+ },
173
+ {
174
+ name: "",
175
+ type: "bytes32",
176
+ internalType: "bytes32",
177
+ },
178
+ ],
179
+ outputs: [],
180
+ stateMutability: "nonpayable",
181
+ },
182
+ {
183
+ type: "function",
184
+ name: "executeWithRuntimeValidation",
185
+ inputs: [
186
+ {
187
+ name: "data",
188
+ type: "bytes",
189
+ internalType: "bytes",
190
+ },
191
+ {
192
+ name: "authorization",
193
+ type: "bytes",
194
+ internalType: "bytes",
195
+ },
196
+ ],
197
+ outputs: [
198
+ {
199
+ name: "",
200
+ type: "bytes",
201
+ internalType: "bytes",
202
+ },
203
+ ],
204
+ stateMutability: "payable",
205
+ },
206
+ {
207
+ type: "function",
208
+ name: "getExecutionData",
209
+ inputs: [
210
+ {
211
+ name: "selector",
212
+ type: "bytes4",
213
+ internalType: "bytes4",
214
+ },
215
+ ],
216
+ outputs: [
217
+ {
218
+ name: "data",
219
+ type: "tuple",
220
+ internalType: "struct ExecutionDataView",
221
+ components: [
222
+ {
223
+ name: "module",
224
+ type: "address",
225
+ internalType: "address",
226
+ },
227
+ {
228
+ name: "skipRuntimeValidation",
229
+ type: "bool",
230
+ internalType: "bool",
231
+ },
232
+ {
233
+ name: "allowGlobalValidation",
234
+ type: "bool",
235
+ internalType: "bool",
236
+ },
237
+ {
238
+ name: "executionHooks",
239
+ type: "bytes25[]",
240
+ internalType: "HookConfig[]",
241
+ },
242
+ ],
243
+ },
244
+ ],
245
+ stateMutability: "view",
246
+ },
247
+ {
248
+ type: "function",
249
+ name: "getValidationData",
250
+ inputs: [
251
+ {
252
+ name: "validationFunction",
253
+ type: "bytes24",
254
+ internalType: "ModuleEntity",
255
+ },
256
+ ],
257
+ outputs: [
258
+ {
259
+ name: "data",
260
+ type: "tuple",
261
+ internalType: "struct ValidationDataView",
262
+ components: [
263
+ {
264
+ name: "validationFlags",
265
+ type: "uint8",
266
+ internalType: "ValidationFlags",
267
+ },
268
+ {
269
+ name: "validationHooks",
270
+ type: "bytes25[]",
271
+ internalType: "HookConfig[]",
272
+ },
273
+ {
274
+ name: "executionHooks",
275
+ type: "bytes25[]",
276
+ internalType: "HookConfig[]",
277
+ },
278
+ {
279
+ name: "selectors",
280
+ type: "bytes4[]",
281
+ internalType: "bytes4[]",
282
+ },
283
+ ],
284
+ },
285
+ ],
286
+ stateMutability: "view",
287
+ },
288
+ {
289
+ type: "function",
290
+ name: "initializeWithValidation",
291
+ inputs: [
292
+ {
293
+ name: "validationConfig",
294
+ type: "bytes25",
295
+ internalType: "ValidationConfig",
296
+ },
297
+ {
298
+ name: "selectors",
299
+ type: "bytes4[]",
300
+ internalType: "bytes4[]",
301
+ },
302
+ {
303
+ name: "installData",
304
+ type: "bytes",
305
+ internalType: "bytes",
306
+ },
307
+ {
308
+ name: "hooks",
309
+ type: "bytes[]",
310
+ internalType: "bytes[]",
311
+ },
312
+ ],
313
+ outputs: [],
314
+ stateMutability: "nonpayable",
315
+ },
316
+ {
317
+ type: "function",
318
+ name: "installExecution",
319
+ inputs: [
320
+ {
321
+ name: "module",
322
+ type: "address",
323
+ internalType: "address",
324
+ },
325
+ {
326
+ name: "manifest",
327
+ type: "tuple",
328
+ internalType: "struct ExecutionManifest",
329
+ components: [
330
+ {
331
+ name: "executionFunctions",
332
+ type: "tuple[]",
333
+ internalType: "struct ManifestExecutionFunction[]",
334
+ components: [
335
+ {
336
+ name: "executionSelector",
337
+ type: "bytes4",
338
+ internalType: "bytes4",
339
+ },
340
+ {
341
+ name: "skipRuntimeValidation",
342
+ type: "bool",
343
+ internalType: "bool",
344
+ },
345
+ {
346
+ name: "allowGlobalValidation",
347
+ type: "bool",
348
+ internalType: "bool",
349
+ },
350
+ ],
351
+ },
352
+ {
353
+ name: "executionHooks",
354
+ type: "tuple[]",
355
+ internalType: "struct ManifestExecutionHook[]",
356
+ components: [
357
+ {
358
+ name: "executionSelector",
359
+ type: "bytes4",
360
+ internalType: "bytes4",
361
+ },
362
+ {
363
+ name: "entityId",
364
+ type: "uint32",
365
+ internalType: "uint32",
366
+ },
367
+ {
368
+ name: "isPreHook",
369
+ type: "bool",
370
+ internalType: "bool",
371
+ },
372
+ {
373
+ name: "isPostHook",
374
+ type: "bool",
375
+ internalType: "bool",
376
+ },
377
+ ],
378
+ },
379
+ {
380
+ name: "interfaceIds",
381
+ type: "bytes4[]",
382
+ internalType: "bytes4[]",
383
+ },
384
+ ],
385
+ },
386
+ {
387
+ name: "moduleInstallData",
388
+ type: "bytes",
389
+ internalType: "bytes",
390
+ },
391
+ ],
392
+ outputs: [],
393
+ stateMutability: "nonpayable",
394
+ },
395
+ {
396
+ type: "function",
397
+ name: "installValidation",
398
+ inputs: [
399
+ {
400
+ name: "validationConfig",
401
+ type: "bytes25",
402
+ internalType: "ValidationConfig",
403
+ },
404
+ {
405
+ name: "selectors",
406
+ type: "bytes4[]",
407
+ internalType: "bytes4[]",
408
+ },
409
+ {
410
+ name: "installData",
411
+ type: "bytes",
412
+ internalType: "bytes",
413
+ },
414
+ {
415
+ name: "hooks",
416
+ type: "bytes[]",
417
+ internalType: "bytes[]",
418
+ },
419
+ ],
420
+ outputs: [],
421
+ stateMutability: "nonpayable",
422
+ },
423
+ {
424
+ type: "function",
425
+ name: "isValidSignature",
426
+ inputs: [
427
+ {
428
+ name: "hash",
429
+ type: "bytes32",
430
+ internalType: "bytes32",
431
+ },
432
+ {
433
+ name: "signature",
434
+ type: "bytes",
435
+ internalType: "bytes",
436
+ },
437
+ ],
438
+ outputs: [
439
+ {
440
+ name: "",
441
+ type: "bytes4",
442
+ internalType: "bytes4",
443
+ },
444
+ ],
445
+ stateMutability: "view",
446
+ },
447
+ {
448
+ type: "function",
449
+ name: "onERC1155BatchReceived",
450
+ inputs: [
451
+ {
452
+ name: "",
453
+ type: "address",
454
+ internalType: "address",
455
+ },
456
+ {
457
+ name: "",
458
+ type: "address",
459
+ internalType: "address",
460
+ },
461
+ {
462
+ name: "",
463
+ type: "uint256[]",
464
+ internalType: "uint256[]",
465
+ },
466
+ {
467
+ name: "",
468
+ type: "uint256[]",
469
+ internalType: "uint256[]",
470
+ },
471
+ {
472
+ name: "",
473
+ type: "bytes",
474
+ internalType: "bytes",
475
+ },
476
+ ],
477
+ outputs: [
478
+ {
479
+ name: "",
480
+ type: "bytes4",
481
+ internalType: "bytes4",
482
+ },
483
+ ],
484
+ stateMutability: "pure",
485
+ },
486
+ {
487
+ type: "function",
488
+ name: "onERC1155Received",
489
+ inputs: [
490
+ {
491
+ name: "",
492
+ type: "address",
493
+ internalType: "address",
494
+ },
495
+ {
496
+ name: "",
497
+ type: "address",
498
+ internalType: "address",
499
+ },
500
+ {
501
+ name: "",
502
+ type: "uint256",
503
+ internalType: "uint256",
504
+ },
505
+ {
506
+ name: "",
507
+ type: "uint256",
508
+ internalType: "uint256",
509
+ },
510
+ {
511
+ name: "",
512
+ type: "bytes",
513
+ internalType: "bytes",
514
+ },
515
+ ],
516
+ outputs: [
517
+ {
518
+ name: "",
519
+ type: "bytes4",
520
+ internalType: "bytes4",
521
+ },
522
+ ],
523
+ stateMutability: "pure",
524
+ },
525
+ {
526
+ type: "function",
527
+ name: "onERC721Received",
528
+ inputs: [
529
+ {
530
+ name: "",
531
+ type: "address",
532
+ internalType: "address",
533
+ },
534
+ {
535
+ name: "",
536
+ type: "address",
537
+ internalType: "address",
538
+ },
539
+ {
540
+ name: "",
541
+ type: "uint256",
542
+ internalType: "uint256",
543
+ },
544
+ {
545
+ name: "",
546
+ type: "bytes",
547
+ internalType: "bytes",
548
+ },
549
+ ],
550
+ outputs: [
551
+ {
552
+ name: "",
553
+ type: "bytes4",
554
+ internalType: "bytes4",
555
+ },
556
+ ],
557
+ stateMutability: "pure",
558
+ },
559
+ {
560
+ type: "function",
561
+ name: "performCreate",
562
+ inputs: [
563
+ {
564
+ name: "value",
565
+ type: "uint256",
566
+ internalType: "uint256",
567
+ },
568
+ {
569
+ name: "initCode",
570
+ type: "bytes",
571
+ internalType: "bytes",
572
+ },
573
+ {
574
+ name: "isCreate2",
575
+ type: "bool",
576
+ internalType: "bool",
577
+ },
578
+ {
579
+ name: "salt",
580
+ type: "bytes32",
581
+ internalType: "bytes32",
582
+ },
583
+ ],
584
+ outputs: [
585
+ {
586
+ name: "createdAddr",
587
+ type: "address",
588
+ internalType: "address",
589
+ },
590
+ ],
591
+ stateMutability: "payable",
592
+ },
593
+ {
594
+ type: "function",
595
+ name: "proxiableUUID",
596
+ inputs: [],
597
+ outputs: [
598
+ {
599
+ name: "",
600
+ type: "bytes32",
601
+ internalType: "bytes32",
602
+ },
603
+ ],
604
+ stateMutability: "view",
605
+ },
606
+ {
607
+ type: "function",
608
+ name: "supportsInterface",
609
+ inputs: [
610
+ {
611
+ name: "interfaceId",
612
+ type: "bytes4",
613
+ internalType: "bytes4",
614
+ },
615
+ ],
616
+ outputs: [
617
+ {
618
+ name: "",
619
+ type: "bool",
620
+ internalType: "bool",
621
+ },
622
+ ],
623
+ stateMutability: "view",
624
+ },
625
+ {
626
+ type: "function",
627
+ name: "uninstallExecution",
628
+ inputs: [
629
+ {
630
+ name: "module",
631
+ type: "address",
632
+ internalType: "address",
633
+ },
634
+ {
635
+ name: "manifest",
636
+ type: "tuple",
637
+ internalType: "struct ExecutionManifest",
638
+ components: [
639
+ {
640
+ name: "executionFunctions",
641
+ type: "tuple[]",
642
+ internalType: "struct ManifestExecutionFunction[]",
643
+ components: [
644
+ {
645
+ name: "executionSelector",
646
+ type: "bytes4",
647
+ internalType: "bytes4",
648
+ },
649
+ {
650
+ name: "skipRuntimeValidation",
651
+ type: "bool",
652
+ internalType: "bool",
653
+ },
654
+ {
655
+ name: "allowGlobalValidation",
656
+ type: "bool",
657
+ internalType: "bool",
658
+ },
659
+ ],
660
+ },
661
+ {
662
+ name: "executionHooks",
663
+ type: "tuple[]",
664
+ internalType: "struct ManifestExecutionHook[]",
665
+ components: [
666
+ {
667
+ name: "executionSelector",
668
+ type: "bytes4",
669
+ internalType: "bytes4",
670
+ },
671
+ {
672
+ name: "entityId",
673
+ type: "uint32",
674
+ internalType: "uint32",
675
+ },
676
+ {
677
+ name: "isPreHook",
678
+ type: "bool",
679
+ internalType: "bool",
680
+ },
681
+ {
682
+ name: "isPostHook",
683
+ type: "bool",
684
+ internalType: "bool",
685
+ },
686
+ ],
687
+ },
688
+ {
689
+ name: "interfaceIds",
690
+ type: "bytes4[]",
691
+ internalType: "bytes4[]",
692
+ },
693
+ ],
694
+ },
695
+ {
696
+ name: "moduleUninstallData",
697
+ type: "bytes",
698
+ internalType: "bytes",
699
+ },
700
+ ],
701
+ outputs: [],
702
+ stateMutability: "nonpayable",
703
+ },
704
+ {
705
+ type: "function",
706
+ name: "uninstallValidation",
707
+ inputs: [
708
+ {
709
+ name: "validationFunction",
710
+ type: "bytes24",
711
+ internalType: "ModuleEntity",
712
+ },
713
+ {
714
+ name: "uninstallData",
715
+ type: "bytes",
716
+ internalType: "bytes",
717
+ },
718
+ {
719
+ name: "hookUninstallData",
720
+ type: "bytes[]",
721
+ internalType: "bytes[]",
722
+ },
723
+ ],
724
+ outputs: [],
725
+ stateMutability: "nonpayable",
726
+ },
727
+ {
728
+ type: "function",
729
+ name: "upgradeToAndCall",
730
+ inputs: [
731
+ {
732
+ name: "newImplementation",
733
+ type: "address",
734
+ internalType: "address",
735
+ },
736
+ {
737
+ name: "data",
738
+ type: "bytes",
739
+ internalType: "bytes",
740
+ },
741
+ ],
742
+ outputs: [],
743
+ stateMutability: "payable",
744
+ },
745
+ {
746
+ type: "function",
747
+ name: "validateUserOp",
748
+ inputs: [
749
+ {
750
+ name: "userOp",
751
+ type: "tuple",
752
+ internalType: "struct PackedUserOperation",
753
+ components: [
754
+ {
755
+ name: "sender",
756
+ type: "address",
757
+ internalType: "address",
758
+ },
759
+ {
760
+ name: "nonce",
761
+ type: "uint256",
762
+ internalType: "uint256",
763
+ },
764
+ {
765
+ name: "initCode",
766
+ type: "bytes",
767
+ internalType: "bytes",
768
+ },
769
+ {
770
+ name: "callData",
771
+ type: "bytes",
772
+ internalType: "bytes",
773
+ },
774
+ {
775
+ name: "accountGasLimits",
776
+ type: "bytes32",
777
+ internalType: "bytes32",
778
+ },
779
+ {
780
+ name: "preVerificationGas",
781
+ type: "uint256",
782
+ internalType: "uint256",
783
+ },
784
+ {
785
+ name: "gasFees",
786
+ type: "bytes32",
787
+ internalType: "bytes32",
788
+ },
789
+ {
790
+ name: "paymasterAndData",
791
+ type: "bytes",
792
+ internalType: "bytes",
793
+ },
794
+ {
795
+ name: "signature",
796
+ type: "bytes",
797
+ internalType: "bytes",
798
+ },
799
+ ],
800
+ },
801
+ {
802
+ name: "userOpHash",
803
+ type: "bytes32",
804
+ internalType: "bytes32",
805
+ },
806
+ {
807
+ name: "missingAccountFunds",
808
+ type: "uint256",
809
+ internalType: "uint256",
810
+ },
811
+ ],
812
+ outputs: [
813
+ {
814
+ name: "validationData",
815
+ type: "uint256",
816
+ internalType: "uint256",
817
+ },
818
+ ],
819
+ stateMutability: "nonpayable",
820
+ },
821
+ {
822
+ type: "event",
823
+ name: "ExecutionInstalled",
824
+ inputs: [
825
+ {
826
+ name: "module",
827
+ type: "address",
828
+ indexed: true,
829
+ internalType: "address",
830
+ },
831
+ {
832
+ name: "manifest",
833
+ type: "tuple",
834
+ indexed: false,
835
+ internalType: "struct ExecutionManifest",
836
+ components: [
837
+ {
838
+ name: "executionFunctions",
839
+ type: "tuple[]",
840
+ internalType: "struct ManifestExecutionFunction[]",
841
+ components: [
842
+ {
843
+ name: "executionSelector",
844
+ type: "bytes4",
845
+ internalType: "bytes4",
846
+ },
847
+ {
848
+ name: "skipRuntimeValidation",
849
+ type: "bool",
850
+ internalType: "bool",
851
+ },
852
+ {
853
+ name: "allowGlobalValidation",
854
+ type: "bool",
855
+ internalType: "bool",
856
+ },
857
+ ],
858
+ },
859
+ {
860
+ name: "executionHooks",
861
+ type: "tuple[]",
862
+ internalType: "struct ManifestExecutionHook[]",
863
+ components: [
864
+ {
865
+ name: "executionSelector",
866
+ type: "bytes4",
867
+ internalType: "bytes4",
868
+ },
869
+ {
870
+ name: "entityId",
871
+ type: "uint32",
872
+ internalType: "uint32",
873
+ },
874
+ {
875
+ name: "isPreHook",
876
+ type: "bool",
877
+ internalType: "bool",
878
+ },
879
+ {
880
+ name: "isPostHook",
881
+ type: "bool",
882
+ internalType: "bool",
883
+ },
884
+ ],
885
+ },
886
+ {
887
+ name: "interfaceIds",
888
+ type: "bytes4[]",
889
+ internalType: "bytes4[]",
890
+ },
891
+ ],
892
+ },
893
+ ],
894
+ anonymous: false,
895
+ },
896
+ {
897
+ type: "event",
898
+ name: "ExecutionUninstalled",
899
+ inputs: [
900
+ {
901
+ name: "module",
902
+ type: "address",
903
+ indexed: true,
904
+ internalType: "address",
905
+ },
906
+ {
907
+ name: "onUninstallSucceeded",
908
+ type: "bool",
909
+ indexed: false,
910
+ internalType: "bool",
911
+ },
912
+ {
913
+ name: "manifest",
914
+ type: "tuple",
915
+ indexed: false,
916
+ internalType: "struct ExecutionManifest",
917
+ components: [
918
+ {
919
+ name: "executionFunctions",
920
+ type: "tuple[]",
921
+ internalType: "struct ManifestExecutionFunction[]",
922
+ components: [
923
+ {
924
+ name: "executionSelector",
925
+ type: "bytes4",
926
+ internalType: "bytes4",
927
+ },
928
+ {
929
+ name: "skipRuntimeValidation",
930
+ type: "bool",
931
+ internalType: "bool",
932
+ },
933
+ {
934
+ name: "allowGlobalValidation",
935
+ type: "bool",
936
+ internalType: "bool",
937
+ },
938
+ ],
939
+ },
940
+ {
941
+ name: "executionHooks",
942
+ type: "tuple[]",
943
+ internalType: "struct ManifestExecutionHook[]",
944
+ components: [
945
+ {
946
+ name: "executionSelector",
947
+ type: "bytes4",
948
+ internalType: "bytes4",
949
+ },
950
+ {
951
+ name: "entityId",
952
+ type: "uint32",
953
+ internalType: "uint32",
954
+ },
955
+ {
956
+ name: "isPreHook",
957
+ type: "bool",
958
+ internalType: "bool",
959
+ },
960
+ {
961
+ name: "isPostHook",
962
+ type: "bool",
963
+ internalType: "bool",
964
+ },
965
+ ],
966
+ },
967
+ {
968
+ name: "interfaceIds",
969
+ type: "bytes4[]",
970
+ internalType: "bytes4[]",
971
+ },
972
+ ],
973
+ },
974
+ ],
975
+ anonymous: false,
976
+ },
977
+ {
978
+ type: "event",
979
+ name: "Initialized",
980
+ inputs: [
981
+ {
982
+ name: "version",
983
+ type: "uint64",
984
+ indexed: false,
985
+ internalType: "uint64",
986
+ },
987
+ ],
988
+ anonymous: false,
989
+ },
990
+ {
991
+ type: "event",
992
+ name: "Upgraded",
993
+ inputs: [
994
+ {
995
+ name: "implementation",
996
+ type: "address",
997
+ indexed: true,
998
+ internalType: "address",
999
+ },
1000
+ ],
1001
+ anonymous: false,
1002
+ },
1003
+ {
1004
+ type: "event",
1005
+ name: "ValidationInstalled",
1006
+ inputs: [
1007
+ {
1008
+ name: "module",
1009
+ type: "address",
1010
+ indexed: true,
1011
+ internalType: "address",
1012
+ },
1013
+ {
1014
+ name: "entityId",
1015
+ type: "uint32",
1016
+ indexed: true,
1017
+ internalType: "uint32",
1018
+ },
1019
+ ],
1020
+ anonymous: false,
1021
+ },
1022
+ {
1023
+ type: "event",
1024
+ name: "ValidationUninstalled",
1025
+ inputs: [
1026
+ {
1027
+ name: "module",
1028
+ type: "address",
1029
+ indexed: true,
1030
+ internalType: "address",
1031
+ },
1032
+ {
1033
+ name: "entityId",
1034
+ type: "uint32",
1035
+ indexed: true,
1036
+ internalType: "uint32",
1037
+ },
1038
+ {
1039
+ name: "onUninstallSucceeded",
1040
+ type: "bool",
1041
+ indexed: false,
1042
+ internalType: "bool",
1043
+ },
1044
+ ],
1045
+ anonymous: false,
1046
+ },
1047
+ {
1048
+ type: "error",
1049
+ name: "ArrayLengthMismatch",
1050
+ inputs: [],
1051
+ },
1052
+ {
1053
+ type: "error",
1054
+ name: "CreateFailed",
1055
+ inputs: [],
1056
+ },
1057
+ {
1058
+ type: "error",
1059
+ name: "DeferredActionSignatureInvalid",
1060
+ inputs: [],
1061
+ },
1062
+ {
1063
+ type: "error",
1064
+ name: "DeferredValidationHasValidationHooks",
1065
+ inputs: [],
1066
+ },
1067
+ {
1068
+ type: "error",
1069
+ name: "ExecutionHookAlreadySet",
1070
+ inputs: [
1071
+ {
1072
+ name: "hookConfig",
1073
+ type: "bytes25",
1074
+ internalType: "HookConfig",
1075
+ },
1076
+ ],
1077
+ },
1078
+ {
1079
+ type: "error",
1080
+ name: "InterfaceNotSupported",
1081
+ inputs: [
1082
+ {
1083
+ name: "module",
1084
+ type: "address",
1085
+ internalType: "address",
1086
+ },
1087
+ ],
1088
+ },
1089
+ {
1090
+ type: "error",
1091
+ name: "InvalidInitialization",
1092
+ inputs: [],
1093
+ },
1094
+ {
1095
+ type: "error",
1096
+ name: "ModuleInstallCallbackFailed",
1097
+ inputs: [
1098
+ {
1099
+ name: "module",
1100
+ type: "address",
1101
+ internalType: "address",
1102
+ },
1103
+ {
1104
+ name: "revertReason",
1105
+ type: "bytes",
1106
+ internalType: "bytes",
1107
+ },
1108
+ ],
1109
+ },
1110
+ {
1111
+ type: "error",
1112
+ name: "NonCanonicalEncoding",
1113
+ inputs: [],
1114
+ },
1115
+ {
1116
+ type: "error",
1117
+ name: "NotEntryPoint",
1118
+ inputs: [],
1119
+ },
1120
+ {
1121
+ type: "error",
1122
+ name: "PreValidationHookDuplicate",
1123
+ inputs: [],
1124
+ },
1125
+ {
1126
+ type: "error",
1127
+ name: "RequireUserOperationContext",
1128
+ inputs: [],
1129
+ },
1130
+ {
1131
+ type: "error",
1132
+ name: "SegmentOutOfOrder",
1133
+ inputs: [],
1134
+ },
1135
+ {
1136
+ type: "error",
1137
+ name: "SelfCallRecursionDepthExceeded",
1138
+ inputs: [],
1139
+ },
1140
+ {
1141
+ type: "error",
1142
+ name: "SignatureValidationInvalid",
1143
+ inputs: [
1144
+ {
1145
+ name: "validationFunction",
1146
+ type: "bytes24",
1147
+ internalType: "ModuleEntity",
1148
+ },
1149
+ ],
1150
+ },
1151
+ {
1152
+ type: "error",
1153
+ name: "UnauthorizedCallContext",
1154
+ inputs: [],
1155
+ },
1156
+ {
1157
+ type: "error",
1158
+ name: "UnexpectedAggregator",
1159
+ inputs: [
1160
+ {
1161
+ name: "validationFunction",
1162
+ type: "bytes24",
1163
+ internalType: "ModuleEntity",
1164
+ },
1165
+ {
1166
+ name: "aggregator",
1167
+ type: "address",
1168
+ internalType: "address",
1169
+ },
1170
+ ],
1171
+ },
1172
+ {
1173
+ type: "error",
1174
+ name: "UnrecognizedFunction",
1175
+ inputs: [
1176
+ {
1177
+ name: "selector",
1178
+ type: "bytes4",
1179
+ internalType: "bytes4",
1180
+ },
1181
+ ],
1182
+ },
1183
+ {
1184
+ type: "error",
1185
+ name: "UpgradeFailed",
1186
+ inputs: [],
1187
+ },
1188
+ {
1189
+ type: "error",
1190
+ name: "UserOpValidationInvalid",
1191
+ inputs: [
1192
+ {
1193
+ name: "validationFunction",
1194
+ type: "bytes24",
1195
+ internalType: "ModuleEntity",
1196
+ },
1197
+ ],
1198
+ },
1199
+ {
1200
+ type: "error",
1201
+ name: "ValidationAlreadySet",
1202
+ inputs: [
1203
+ {
1204
+ name: "selector",
1205
+ type: "bytes4",
1206
+ internalType: "bytes4",
1207
+ },
1208
+ {
1209
+ name: "validationFunction",
1210
+ type: "bytes24",
1211
+ internalType: "ModuleEntity",
1212
+ },
1213
+ ],
1214
+ },
1215
+ {
1216
+ type: "error",
1217
+ name: "ValidationAssocHookLimitExceeded",
1218
+ inputs: [],
1219
+ },
1220
+ {
1221
+ type: "error",
1222
+ name: "ValidationEntityIdInUse",
1223
+ inputs: [],
1224
+ },
1225
+ {
1226
+ type: "error",
1227
+ name: "ValidationFunctionMissing",
1228
+ inputs: [
1229
+ {
1230
+ name: "selector",
1231
+ type: "bytes4",
1232
+ internalType: "bytes4",
1233
+ },
1234
+ ],
1235
+ },
1236
+ {
1237
+ type: "error",
1238
+ name: "ValidationSignatureSegmentMissing",
1239
+ inputs: [],
1240
+ },
1241
+ ] as const;