@account-kit/smart-contracts 4.7.0 → 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,1288 @@
1
+ export const semiModularAccountBytecodeAbi = [
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: "getFallbackSignerData",
250
+ inputs: [],
251
+ outputs: [
252
+ {
253
+ name: "",
254
+ type: "address",
255
+ internalType: "address",
256
+ },
257
+ {
258
+ name: "",
259
+ type: "bool",
260
+ internalType: "bool",
261
+ },
262
+ ],
263
+ stateMutability: "view",
264
+ },
265
+ {
266
+ type: "function",
267
+ name: "getValidationData",
268
+ inputs: [
269
+ {
270
+ name: "validationFunction",
271
+ type: "bytes24",
272
+ internalType: "ModuleEntity",
273
+ },
274
+ ],
275
+ outputs: [
276
+ {
277
+ name: "data",
278
+ type: "tuple",
279
+ internalType: "struct ValidationDataView",
280
+ components: [
281
+ {
282
+ name: "validationFlags",
283
+ type: "uint8",
284
+ internalType: "ValidationFlags",
285
+ },
286
+ {
287
+ name: "validationHooks",
288
+ type: "bytes25[]",
289
+ internalType: "HookConfig[]",
290
+ },
291
+ {
292
+ name: "executionHooks",
293
+ type: "bytes25[]",
294
+ internalType: "HookConfig[]",
295
+ },
296
+ {
297
+ name: "selectors",
298
+ type: "bytes4[]",
299
+ internalType: "bytes4[]",
300
+ },
301
+ ],
302
+ },
303
+ ],
304
+ stateMutability: "view",
305
+ },
306
+ {
307
+ type: "function",
308
+ name: "installExecution",
309
+ inputs: [
310
+ {
311
+ name: "module",
312
+ type: "address",
313
+ internalType: "address",
314
+ },
315
+ {
316
+ name: "manifest",
317
+ type: "tuple",
318
+ internalType: "struct ExecutionManifest",
319
+ components: [
320
+ {
321
+ name: "executionFunctions",
322
+ type: "tuple[]",
323
+ internalType: "struct ManifestExecutionFunction[]",
324
+ components: [
325
+ {
326
+ name: "executionSelector",
327
+ type: "bytes4",
328
+ internalType: "bytes4",
329
+ },
330
+ {
331
+ name: "skipRuntimeValidation",
332
+ type: "bool",
333
+ internalType: "bool",
334
+ },
335
+ {
336
+ name: "allowGlobalValidation",
337
+ type: "bool",
338
+ internalType: "bool",
339
+ },
340
+ ],
341
+ },
342
+ {
343
+ name: "executionHooks",
344
+ type: "tuple[]",
345
+ internalType: "struct ManifestExecutionHook[]",
346
+ components: [
347
+ {
348
+ name: "executionSelector",
349
+ type: "bytes4",
350
+ internalType: "bytes4",
351
+ },
352
+ {
353
+ name: "entityId",
354
+ type: "uint32",
355
+ internalType: "uint32",
356
+ },
357
+ {
358
+ name: "isPreHook",
359
+ type: "bool",
360
+ internalType: "bool",
361
+ },
362
+ {
363
+ name: "isPostHook",
364
+ type: "bool",
365
+ internalType: "bool",
366
+ },
367
+ ],
368
+ },
369
+ {
370
+ name: "interfaceIds",
371
+ type: "bytes4[]",
372
+ internalType: "bytes4[]",
373
+ },
374
+ ],
375
+ },
376
+ {
377
+ name: "moduleInstallData",
378
+ type: "bytes",
379
+ internalType: "bytes",
380
+ },
381
+ ],
382
+ outputs: [],
383
+ stateMutability: "nonpayable",
384
+ },
385
+ {
386
+ type: "function",
387
+ name: "installValidation",
388
+ inputs: [
389
+ {
390
+ name: "validationConfig",
391
+ type: "bytes25",
392
+ internalType: "ValidationConfig",
393
+ },
394
+ {
395
+ name: "selectors",
396
+ type: "bytes4[]",
397
+ internalType: "bytes4[]",
398
+ },
399
+ {
400
+ name: "installData",
401
+ type: "bytes",
402
+ internalType: "bytes",
403
+ },
404
+ {
405
+ name: "hooks",
406
+ type: "bytes[]",
407
+ internalType: "bytes[]",
408
+ },
409
+ ],
410
+ outputs: [],
411
+ stateMutability: "nonpayable",
412
+ },
413
+ {
414
+ type: "function",
415
+ name: "isValidSignature",
416
+ inputs: [
417
+ {
418
+ name: "hash",
419
+ type: "bytes32",
420
+ internalType: "bytes32",
421
+ },
422
+ {
423
+ name: "signature",
424
+ type: "bytes",
425
+ internalType: "bytes",
426
+ },
427
+ ],
428
+ outputs: [
429
+ {
430
+ name: "",
431
+ type: "bytes4",
432
+ internalType: "bytes4",
433
+ },
434
+ ],
435
+ stateMutability: "view",
436
+ },
437
+ {
438
+ type: "function",
439
+ name: "onERC1155BatchReceived",
440
+ inputs: [
441
+ {
442
+ name: "",
443
+ type: "address",
444
+ internalType: "address",
445
+ },
446
+ {
447
+ name: "",
448
+ type: "address",
449
+ internalType: "address",
450
+ },
451
+ {
452
+ name: "",
453
+ type: "uint256[]",
454
+ internalType: "uint256[]",
455
+ },
456
+ {
457
+ name: "",
458
+ type: "uint256[]",
459
+ internalType: "uint256[]",
460
+ },
461
+ {
462
+ name: "",
463
+ type: "bytes",
464
+ internalType: "bytes",
465
+ },
466
+ ],
467
+ outputs: [
468
+ {
469
+ name: "",
470
+ type: "bytes4",
471
+ internalType: "bytes4",
472
+ },
473
+ ],
474
+ stateMutability: "pure",
475
+ },
476
+ {
477
+ type: "function",
478
+ name: "onERC1155Received",
479
+ inputs: [
480
+ {
481
+ name: "",
482
+ type: "address",
483
+ internalType: "address",
484
+ },
485
+ {
486
+ name: "",
487
+ type: "address",
488
+ internalType: "address",
489
+ },
490
+ {
491
+ name: "",
492
+ type: "uint256",
493
+ internalType: "uint256",
494
+ },
495
+ {
496
+ name: "",
497
+ type: "uint256",
498
+ internalType: "uint256",
499
+ },
500
+ {
501
+ name: "",
502
+ type: "bytes",
503
+ internalType: "bytes",
504
+ },
505
+ ],
506
+ outputs: [
507
+ {
508
+ name: "",
509
+ type: "bytes4",
510
+ internalType: "bytes4",
511
+ },
512
+ ],
513
+ stateMutability: "pure",
514
+ },
515
+ {
516
+ type: "function",
517
+ name: "onERC721Received",
518
+ inputs: [
519
+ {
520
+ name: "",
521
+ type: "address",
522
+ internalType: "address",
523
+ },
524
+ {
525
+ name: "",
526
+ type: "address",
527
+ internalType: "address",
528
+ },
529
+ {
530
+ name: "",
531
+ type: "uint256",
532
+ internalType: "uint256",
533
+ },
534
+ {
535
+ name: "",
536
+ type: "bytes",
537
+ internalType: "bytes",
538
+ },
539
+ ],
540
+ outputs: [
541
+ {
542
+ name: "",
543
+ type: "bytes4",
544
+ internalType: "bytes4",
545
+ },
546
+ ],
547
+ stateMutability: "pure",
548
+ },
549
+ {
550
+ type: "function",
551
+ name: "performCreate",
552
+ inputs: [
553
+ {
554
+ name: "value",
555
+ type: "uint256",
556
+ internalType: "uint256",
557
+ },
558
+ {
559
+ name: "initCode",
560
+ type: "bytes",
561
+ internalType: "bytes",
562
+ },
563
+ {
564
+ name: "isCreate2",
565
+ type: "bool",
566
+ internalType: "bool",
567
+ },
568
+ {
569
+ name: "salt",
570
+ type: "bytes32",
571
+ internalType: "bytes32",
572
+ },
573
+ ],
574
+ outputs: [
575
+ {
576
+ name: "createdAddr",
577
+ type: "address",
578
+ internalType: "address",
579
+ },
580
+ ],
581
+ stateMutability: "payable",
582
+ },
583
+ {
584
+ type: "function",
585
+ name: "proxiableUUID",
586
+ inputs: [],
587
+ outputs: [
588
+ {
589
+ name: "",
590
+ type: "bytes32",
591
+ internalType: "bytes32",
592
+ },
593
+ ],
594
+ stateMutability: "view",
595
+ },
596
+ {
597
+ type: "function",
598
+ name: "supportsInterface",
599
+ inputs: [
600
+ {
601
+ name: "interfaceId",
602
+ type: "bytes4",
603
+ internalType: "bytes4",
604
+ },
605
+ ],
606
+ outputs: [
607
+ {
608
+ name: "",
609
+ type: "bool",
610
+ internalType: "bool",
611
+ },
612
+ ],
613
+ stateMutability: "view",
614
+ },
615
+ {
616
+ type: "function",
617
+ name: "uninstallExecution",
618
+ inputs: [
619
+ {
620
+ name: "module",
621
+ type: "address",
622
+ internalType: "address",
623
+ },
624
+ {
625
+ name: "manifest",
626
+ type: "tuple",
627
+ internalType: "struct ExecutionManifest",
628
+ components: [
629
+ {
630
+ name: "executionFunctions",
631
+ type: "tuple[]",
632
+ internalType: "struct ManifestExecutionFunction[]",
633
+ components: [
634
+ {
635
+ name: "executionSelector",
636
+ type: "bytes4",
637
+ internalType: "bytes4",
638
+ },
639
+ {
640
+ name: "skipRuntimeValidation",
641
+ type: "bool",
642
+ internalType: "bool",
643
+ },
644
+ {
645
+ name: "allowGlobalValidation",
646
+ type: "bool",
647
+ internalType: "bool",
648
+ },
649
+ ],
650
+ },
651
+ {
652
+ name: "executionHooks",
653
+ type: "tuple[]",
654
+ internalType: "struct ManifestExecutionHook[]",
655
+ components: [
656
+ {
657
+ name: "executionSelector",
658
+ type: "bytes4",
659
+ internalType: "bytes4",
660
+ },
661
+ {
662
+ name: "entityId",
663
+ type: "uint32",
664
+ internalType: "uint32",
665
+ },
666
+ {
667
+ name: "isPreHook",
668
+ type: "bool",
669
+ internalType: "bool",
670
+ },
671
+ {
672
+ name: "isPostHook",
673
+ type: "bool",
674
+ internalType: "bool",
675
+ },
676
+ ],
677
+ },
678
+ {
679
+ name: "interfaceIds",
680
+ type: "bytes4[]",
681
+ internalType: "bytes4[]",
682
+ },
683
+ ],
684
+ },
685
+ {
686
+ name: "moduleUninstallData",
687
+ type: "bytes",
688
+ internalType: "bytes",
689
+ },
690
+ ],
691
+ outputs: [],
692
+ stateMutability: "nonpayable",
693
+ },
694
+ {
695
+ type: "function",
696
+ name: "uninstallValidation",
697
+ inputs: [
698
+ {
699
+ name: "validationFunction",
700
+ type: "bytes24",
701
+ internalType: "ModuleEntity",
702
+ },
703
+ {
704
+ name: "uninstallData",
705
+ type: "bytes",
706
+ internalType: "bytes",
707
+ },
708
+ {
709
+ name: "hookUninstallData",
710
+ type: "bytes[]",
711
+ internalType: "bytes[]",
712
+ },
713
+ ],
714
+ outputs: [],
715
+ stateMutability: "nonpayable",
716
+ },
717
+ {
718
+ type: "function",
719
+ name: "updateFallbackSignerData",
720
+ inputs: [
721
+ {
722
+ name: "fallbackSigner",
723
+ type: "address",
724
+ internalType: "address",
725
+ },
726
+ {
727
+ name: "isDisabled",
728
+ type: "bool",
729
+ internalType: "bool",
730
+ },
731
+ ],
732
+ outputs: [],
733
+ stateMutability: "nonpayable",
734
+ },
735
+ {
736
+ type: "function",
737
+ name: "upgradeToAndCall",
738
+ inputs: [
739
+ {
740
+ name: "newImplementation",
741
+ type: "address",
742
+ internalType: "address",
743
+ },
744
+ {
745
+ name: "data",
746
+ type: "bytes",
747
+ internalType: "bytes",
748
+ },
749
+ ],
750
+ outputs: [],
751
+ stateMutability: "payable",
752
+ },
753
+ {
754
+ type: "function",
755
+ name: "validateUserOp",
756
+ inputs: [
757
+ {
758
+ name: "userOp",
759
+ type: "tuple",
760
+ internalType: "struct PackedUserOperation",
761
+ components: [
762
+ {
763
+ name: "sender",
764
+ type: "address",
765
+ internalType: "address",
766
+ },
767
+ {
768
+ name: "nonce",
769
+ type: "uint256",
770
+ internalType: "uint256",
771
+ },
772
+ {
773
+ name: "initCode",
774
+ type: "bytes",
775
+ internalType: "bytes",
776
+ },
777
+ {
778
+ name: "callData",
779
+ type: "bytes",
780
+ internalType: "bytes",
781
+ },
782
+ {
783
+ name: "accountGasLimits",
784
+ type: "bytes32",
785
+ internalType: "bytes32",
786
+ },
787
+ {
788
+ name: "preVerificationGas",
789
+ type: "uint256",
790
+ internalType: "uint256",
791
+ },
792
+ {
793
+ name: "gasFees",
794
+ type: "bytes32",
795
+ internalType: "bytes32",
796
+ },
797
+ {
798
+ name: "paymasterAndData",
799
+ type: "bytes",
800
+ internalType: "bytes",
801
+ },
802
+ {
803
+ name: "signature",
804
+ type: "bytes",
805
+ internalType: "bytes",
806
+ },
807
+ ],
808
+ },
809
+ {
810
+ name: "userOpHash",
811
+ type: "bytes32",
812
+ internalType: "bytes32",
813
+ },
814
+ {
815
+ name: "missingAccountFunds",
816
+ type: "uint256",
817
+ internalType: "uint256",
818
+ },
819
+ ],
820
+ outputs: [
821
+ {
822
+ name: "validationData",
823
+ type: "uint256",
824
+ internalType: "uint256",
825
+ },
826
+ ],
827
+ stateMutability: "nonpayable",
828
+ },
829
+ {
830
+ type: "event",
831
+ name: "ExecutionInstalled",
832
+ inputs: [
833
+ {
834
+ name: "module",
835
+ type: "address",
836
+ indexed: true,
837
+ internalType: "address",
838
+ },
839
+ {
840
+ name: "manifest",
841
+ type: "tuple",
842
+ indexed: false,
843
+ internalType: "struct ExecutionManifest",
844
+ components: [
845
+ {
846
+ name: "executionFunctions",
847
+ type: "tuple[]",
848
+ internalType: "struct ManifestExecutionFunction[]",
849
+ components: [
850
+ {
851
+ name: "executionSelector",
852
+ type: "bytes4",
853
+ internalType: "bytes4",
854
+ },
855
+ {
856
+ name: "skipRuntimeValidation",
857
+ type: "bool",
858
+ internalType: "bool",
859
+ },
860
+ {
861
+ name: "allowGlobalValidation",
862
+ type: "bool",
863
+ internalType: "bool",
864
+ },
865
+ ],
866
+ },
867
+ {
868
+ name: "executionHooks",
869
+ type: "tuple[]",
870
+ internalType: "struct ManifestExecutionHook[]",
871
+ components: [
872
+ {
873
+ name: "executionSelector",
874
+ type: "bytes4",
875
+ internalType: "bytes4",
876
+ },
877
+ {
878
+ name: "entityId",
879
+ type: "uint32",
880
+ internalType: "uint32",
881
+ },
882
+ {
883
+ name: "isPreHook",
884
+ type: "bool",
885
+ internalType: "bool",
886
+ },
887
+ {
888
+ name: "isPostHook",
889
+ type: "bool",
890
+ internalType: "bool",
891
+ },
892
+ ],
893
+ },
894
+ {
895
+ name: "interfaceIds",
896
+ type: "bytes4[]",
897
+ internalType: "bytes4[]",
898
+ },
899
+ ],
900
+ },
901
+ ],
902
+ anonymous: false,
903
+ },
904
+ {
905
+ type: "event",
906
+ name: "ExecutionUninstalled",
907
+ inputs: [
908
+ {
909
+ name: "module",
910
+ type: "address",
911
+ indexed: true,
912
+ internalType: "address",
913
+ },
914
+ {
915
+ name: "onUninstallSucceeded",
916
+ type: "bool",
917
+ indexed: false,
918
+ internalType: "bool",
919
+ },
920
+ {
921
+ name: "manifest",
922
+ type: "tuple",
923
+ indexed: false,
924
+ internalType: "struct ExecutionManifest",
925
+ components: [
926
+ {
927
+ name: "executionFunctions",
928
+ type: "tuple[]",
929
+ internalType: "struct ManifestExecutionFunction[]",
930
+ components: [
931
+ {
932
+ name: "executionSelector",
933
+ type: "bytes4",
934
+ internalType: "bytes4",
935
+ },
936
+ {
937
+ name: "skipRuntimeValidation",
938
+ type: "bool",
939
+ internalType: "bool",
940
+ },
941
+ {
942
+ name: "allowGlobalValidation",
943
+ type: "bool",
944
+ internalType: "bool",
945
+ },
946
+ ],
947
+ },
948
+ {
949
+ name: "executionHooks",
950
+ type: "tuple[]",
951
+ internalType: "struct ManifestExecutionHook[]",
952
+ components: [
953
+ {
954
+ name: "executionSelector",
955
+ type: "bytes4",
956
+ internalType: "bytes4",
957
+ },
958
+ {
959
+ name: "entityId",
960
+ type: "uint32",
961
+ internalType: "uint32",
962
+ },
963
+ {
964
+ name: "isPreHook",
965
+ type: "bool",
966
+ internalType: "bool",
967
+ },
968
+ {
969
+ name: "isPostHook",
970
+ type: "bool",
971
+ internalType: "bool",
972
+ },
973
+ ],
974
+ },
975
+ {
976
+ name: "interfaceIds",
977
+ type: "bytes4[]",
978
+ internalType: "bytes4[]",
979
+ },
980
+ ],
981
+ },
982
+ ],
983
+ anonymous: false,
984
+ },
985
+ {
986
+ type: "event",
987
+ name: "FallbackSignerUpdated",
988
+ inputs: [
989
+ {
990
+ name: "newFallbackSigner",
991
+ type: "address",
992
+ indexed: true,
993
+ internalType: "address",
994
+ },
995
+ {
996
+ name: "isDisabled",
997
+ type: "bool",
998
+ indexed: false,
999
+ internalType: "bool",
1000
+ },
1001
+ ],
1002
+ anonymous: false,
1003
+ },
1004
+ {
1005
+ type: "event",
1006
+ name: "Initialized",
1007
+ inputs: [
1008
+ {
1009
+ name: "version",
1010
+ type: "uint64",
1011
+ indexed: false,
1012
+ internalType: "uint64",
1013
+ },
1014
+ ],
1015
+ anonymous: false,
1016
+ },
1017
+ {
1018
+ type: "event",
1019
+ name: "Upgraded",
1020
+ inputs: [
1021
+ {
1022
+ name: "implementation",
1023
+ type: "address",
1024
+ indexed: true,
1025
+ internalType: "address",
1026
+ },
1027
+ ],
1028
+ anonymous: false,
1029
+ },
1030
+ {
1031
+ type: "event",
1032
+ name: "ValidationInstalled",
1033
+ inputs: [
1034
+ {
1035
+ name: "module",
1036
+ type: "address",
1037
+ indexed: true,
1038
+ internalType: "address",
1039
+ },
1040
+ {
1041
+ name: "entityId",
1042
+ type: "uint32",
1043
+ indexed: true,
1044
+ internalType: "uint32",
1045
+ },
1046
+ ],
1047
+ anonymous: false,
1048
+ },
1049
+ {
1050
+ type: "event",
1051
+ name: "ValidationUninstalled",
1052
+ inputs: [
1053
+ {
1054
+ name: "module",
1055
+ type: "address",
1056
+ indexed: true,
1057
+ internalType: "address",
1058
+ },
1059
+ {
1060
+ name: "entityId",
1061
+ type: "uint32",
1062
+ indexed: true,
1063
+ internalType: "uint32",
1064
+ },
1065
+ {
1066
+ name: "onUninstallSucceeded",
1067
+ type: "bool",
1068
+ indexed: false,
1069
+ internalType: "bool",
1070
+ },
1071
+ ],
1072
+ anonymous: false,
1073
+ },
1074
+ {
1075
+ type: "error",
1076
+ name: "ArrayLengthMismatch",
1077
+ inputs: [],
1078
+ },
1079
+ {
1080
+ type: "error",
1081
+ name: "CreateFailed",
1082
+ inputs: [],
1083
+ },
1084
+ {
1085
+ type: "error",
1086
+ name: "DeferredActionSignatureInvalid",
1087
+ inputs: [],
1088
+ },
1089
+ {
1090
+ type: "error",
1091
+ name: "DeferredValidationHasValidationHooks",
1092
+ inputs: [],
1093
+ },
1094
+ {
1095
+ type: "error",
1096
+ name: "ExecutionHookAlreadySet",
1097
+ inputs: [
1098
+ {
1099
+ name: "hookConfig",
1100
+ type: "bytes25",
1101
+ internalType: "HookConfig",
1102
+ },
1103
+ ],
1104
+ },
1105
+ {
1106
+ type: "error",
1107
+ name: "FallbackSignerDisabled",
1108
+ inputs: [],
1109
+ },
1110
+ {
1111
+ type: "error",
1112
+ name: "FallbackSignerMismatch",
1113
+ inputs: [],
1114
+ },
1115
+ {
1116
+ type: "error",
1117
+ name: "FallbackValidationInstallationNotAllowed",
1118
+ inputs: [],
1119
+ },
1120
+ {
1121
+ type: "error",
1122
+ name: "InterfaceNotSupported",
1123
+ inputs: [
1124
+ {
1125
+ name: "module",
1126
+ type: "address",
1127
+ internalType: "address",
1128
+ },
1129
+ ],
1130
+ },
1131
+ {
1132
+ type: "error",
1133
+ name: "InvalidInitialization",
1134
+ inputs: [],
1135
+ },
1136
+ {
1137
+ type: "error",
1138
+ name: "InvalidSignatureType",
1139
+ inputs: [],
1140
+ },
1141
+ {
1142
+ type: "error",
1143
+ name: "ModuleInstallCallbackFailed",
1144
+ inputs: [
1145
+ {
1146
+ name: "module",
1147
+ type: "address",
1148
+ internalType: "address",
1149
+ },
1150
+ {
1151
+ name: "revertReason",
1152
+ type: "bytes",
1153
+ internalType: "bytes",
1154
+ },
1155
+ ],
1156
+ },
1157
+ {
1158
+ type: "error",
1159
+ name: "NonCanonicalEncoding",
1160
+ inputs: [],
1161
+ },
1162
+ {
1163
+ type: "error",
1164
+ name: "NotEntryPoint",
1165
+ inputs: [],
1166
+ },
1167
+ {
1168
+ type: "error",
1169
+ name: "PreValidationHookDuplicate",
1170
+ inputs: [],
1171
+ },
1172
+ {
1173
+ type: "error",
1174
+ name: "RequireUserOperationContext",
1175
+ inputs: [],
1176
+ },
1177
+ {
1178
+ type: "error",
1179
+ name: "SegmentOutOfOrder",
1180
+ inputs: [],
1181
+ },
1182
+ {
1183
+ type: "error",
1184
+ name: "SelfCallRecursionDepthExceeded",
1185
+ inputs: [],
1186
+ },
1187
+ {
1188
+ type: "error",
1189
+ name: "SignatureValidationInvalid",
1190
+ inputs: [
1191
+ {
1192
+ name: "validationFunction",
1193
+ type: "bytes24",
1194
+ internalType: "ModuleEntity",
1195
+ },
1196
+ ],
1197
+ },
1198
+ {
1199
+ type: "error",
1200
+ name: "UnauthorizedCallContext",
1201
+ inputs: [],
1202
+ },
1203
+ {
1204
+ type: "error",
1205
+ name: "UnexpectedAggregator",
1206
+ inputs: [
1207
+ {
1208
+ name: "validationFunction",
1209
+ type: "bytes24",
1210
+ internalType: "ModuleEntity",
1211
+ },
1212
+ {
1213
+ name: "aggregator",
1214
+ type: "address",
1215
+ internalType: "address",
1216
+ },
1217
+ ],
1218
+ },
1219
+ {
1220
+ type: "error",
1221
+ name: "UnrecognizedFunction",
1222
+ inputs: [
1223
+ {
1224
+ name: "selector",
1225
+ type: "bytes4",
1226
+ internalType: "bytes4",
1227
+ },
1228
+ ],
1229
+ },
1230
+ {
1231
+ type: "error",
1232
+ name: "UpgradeFailed",
1233
+ inputs: [],
1234
+ },
1235
+ {
1236
+ type: "error",
1237
+ name: "UserOpValidationInvalid",
1238
+ inputs: [
1239
+ {
1240
+ name: "validationFunction",
1241
+ type: "bytes24",
1242
+ internalType: "ModuleEntity",
1243
+ },
1244
+ ],
1245
+ },
1246
+ {
1247
+ type: "error",
1248
+ name: "ValidationAlreadySet",
1249
+ inputs: [
1250
+ {
1251
+ name: "selector",
1252
+ type: "bytes4",
1253
+ internalType: "bytes4",
1254
+ },
1255
+ {
1256
+ name: "validationFunction",
1257
+ type: "bytes24",
1258
+ internalType: "ModuleEntity",
1259
+ },
1260
+ ],
1261
+ },
1262
+ {
1263
+ type: "error",
1264
+ name: "ValidationAssocHookLimitExceeded",
1265
+ inputs: [],
1266
+ },
1267
+ {
1268
+ type: "error",
1269
+ name: "ValidationEntityIdInUse",
1270
+ inputs: [],
1271
+ },
1272
+ {
1273
+ type: "error",
1274
+ name: "ValidationFunctionMissing",
1275
+ inputs: [
1276
+ {
1277
+ name: "selector",
1278
+ type: "bytes4",
1279
+ internalType: "bytes4",
1280
+ },
1281
+ ],
1282
+ },
1283
+ {
1284
+ type: "error",
1285
+ name: "ValidationSignatureSegmentMissing",
1286
+ inputs: [],
1287
+ },
1288
+ ] as const;