@account-kit/smart-contracts 4.7.0 → 4.9.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 (187) hide show
  1. package/dist/esm/src/light-account/clients/alchemyClient.js +6 -12
  2. package/dist/esm/src/light-account/clients/alchemyClient.js.map +1 -1
  3. package/dist/esm/src/light-account/clients/client.d.ts +9 -4
  4. package/dist/esm/src/light-account/clients/client.js +26 -1
  5. package/dist/esm/src/light-account/clients/client.js.map +1 -1
  6. package/dist/esm/src/light-account/clients/multiOwnerAlchemyClient.js +6 -11
  7. package/dist/esm/src/light-account/clients/multiOwnerAlchemyClient.js.map +1 -1
  8. package/dist/esm/src/light-account/clients/multiOwnerLightAccount.d.ts +10 -4
  9. package/dist/esm/src/light-account/clients/multiOwnerLightAccount.js +27 -3
  10. package/dist/esm/src/light-account/clients/multiOwnerLightAccount.js.map +1 -1
  11. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.d.ts +492 -0
  12. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js +639 -0
  13. package/dist/esm/src/ma-v2/abis/accountFactoryAbi.js.map +1 -0
  14. package/dist/esm/src/ma-v2/abis/modularAccountAbi.d.ts +954 -0
  15. package/dist/esm/src/ma-v2/abis/modularAccountAbi.js +1242 -0
  16. package/dist/esm/src/ma-v2/abis/modularAccountAbi.js.map +1 -0
  17. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +991 -0
  18. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js +1289 -0
  19. package/dist/esm/src/ma-v2/abis/semiModularAccountBytecodeAbi.js.map +1 -0
  20. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1001 -0
  21. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js +1302 -0
  22. package/dist/esm/src/ma-v2/abis/semiModularAccountStorageAbi.js.map +1 -0
  23. package/dist/esm/src/ma-v2/account/nativeSMASigner.d.ts +238 -0
  24. package/dist/esm/src/ma-v2/account/nativeSMASigner.js +88 -0
  25. package/dist/esm/src/ma-v2/account/nativeSMASigner.js.map +1 -0
  26. package/dist/esm/src/ma-v2/account/semiModularAccountV2.d.ts +41 -0
  27. package/dist/esm/src/ma-v2/account/semiModularAccountV2.js +148 -0
  28. package/dist/esm/src/ma-v2/account/semiModularAccountV2.js.map +1 -0
  29. package/dist/esm/src/ma-v2/actions/common/types.d.ts +31 -0
  30. package/dist/esm/src/ma-v2/actions/common/types.js +6 -0
  31. package/dist/esm/src/ma-v2/actions/common/types.js.map +1 -0
  32. package/dist/esm/src/ma-v2/actions/common/utils.d.ts +76 -0
  33. package/dist/esm/src/ma-v2/actions/common/utils.js +100 -0
  34. package/dist/esm/src/ma-v2/actions/common/utils.js.map +1 -0
  35. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.d.ts +71 -0
  36. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js +109 -0
  37. package/dist/esm/src/ma-v2/actions/install-validation/installValidation.js.map +1 -0
  38. package/dist/esm/src/ma-v2/client/client.d.ts +13 -0
  39. package/dist/esm/src/ma-v2/client/client.js +54 -0
  40. package/dist/esm/src/ma-v2/client/client.js.map +1 -0
  41. package/dist/esm/src/ma-v2/index.d.ts +26 -0
  42. package/dist/esm/src/ma-v2/index.js +24 -0
  43. package/dist/esm/src/ma-v2/index.js.map +1 -0
  44. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +556 -0
  45. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js +716 -0
  46. package/dist/esm/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.js.map +1 -0
  47. package/dist/esm/src/ma-v2/modules/allowlist-module/module.d.ts +579 -0
  48. package/dist/esm/src/ma-v2/modules/allowlist-module/module.js +56 -0
  49. package/dist/esm/src/ma-v2/modules/allowlist-module/module.js.map +1 -0
  50. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +312 -0
  51. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js +404 -0
  52. package/dist/esm/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.js.map +1 -0
  53. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.d.ts +322 -0
  54. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js +14 -0
  55. package/dist/esm/src/ma-v2/modules/native-token-limit-module/module.js.map +1 -0
  56. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +186 -0
  57. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js +242 -0
  58. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.js.map +1 -0
  59. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.d.ts +196 -0
  60. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js +25 -0
  61. package/dist/esm/src/ma-v2/modules/paymaster-guard-module/module.js.map +1 -0
  62. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +45 -0
  63. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js +331 -0
  64. package/dist/esm/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.js.map +1 -0
  65. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.d.ts +10 -0
  66. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js +16 -0
  67. package/dist/esm/src/ma-v2/modules/single-signer-validation/module.js.map +1 -0
  68. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.d.ts +239 -0
  69. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js +93 -0
  70. package/dist/esm/src/ma-v2/modules/single-signer-validation/signer.js.map +1 -0
  71. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +229 -0
  72. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js +296 -0
  73. package/dist/esm/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.js.map +1 -0
  74. package/dist/esm/src/ma-v2/modules/time-range-module/module.d.ts +245 -0
  75. package/dist/esm/src/ma-v2/modules/time-range-module/module.js +42 -0
  76. package/dist/esm/src/ma-v2/modules/time-range-module/module.js.map +1 -0
  77. package/dist/esm/src/ma-v2/modules/utils.d.ts +91 -0
  78. package/dist/esm/src/ma-v2/modules/utils.js +188 -0
  79. package/dist/esm/src/ma-v2/modules/utils.js.map +1 -0
  80. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +287 -0
  81. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js +374 -0
  82. package/dist/esm/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.js.map +1 -0
  83. package/dist/esm/src/ma-v2/utils.d.ts +16 -0
  84. package/dist/esm/src/ma-v2/utils.js +105 -0
  85. package/dist/esm/src/ma-v2/utils.js.map +1 -0
  86. package/dist/esm/src/msca/client/alchemyClient.js +4 -17
  87. package/dist/esm/src/msca/client/alchemyClient.js.map +1 -1
  88. package/dist/esm/src/msca/client/client.d.ts +14 -5
  89. package/dist/esm/src/msca/client/client.js +62 -0
  90. package/dist/esm/src/msca/client/client.js.map +1 -1
  91. package/dist/esm/src/msca/client/multiSigAlchemyClient.d.ts +4 -2
  92. package/dist/esm/src/msca/client/multiSigAlchemyClient.js +5 -19
  93. package/dist/esm/src/msca/client/multiSigAlchemyClient.js.map +1 -1
  94. package/dist/types/src/light-account/clients/alchemyClient.d.ts.map +1 -1
  95. package/dist/types/src/light-account/clients/client.d.ts +9 -4
  96. package/dist/types/src/light-account/clients/client.d.ts.map +1 -1
  97. package/dist/types/src/light-account/clients/multiOwnerAlchemyClient.d.ts.map +1 -1
  98. package/dist/types/src/light-account/clients/multiOwnerLightAccount.d.ts +10 -4
  99. package/dist/types/src/light-account/clients/multiOwnerLightAccount.d.ts.map +1 -1
  100. package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts +493 -0
  101. package/dist/types/src/ma-v2/abis/accountFactoryAbi.d.ts.map +1 -0
  102. package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts +955 -0
  103. package/dist/types/src/ma-v2/abis/modularAccountAbi.d.ts.map +1 -0
  104. package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts +992 -0
  105. package/dist/types/src/ma-v2/abis/semiModularAccountBytecodeAbi.d.ts.map +1 -0
  106. package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts +1002 -0
  107. package/dist/types/src/ma-v2/abis/semiModularAccountStorageAbi.d.ts.map +1 -0
  108. package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts +239 -0
  109. package/dist/types/src/ma-v2/account/nativeSMASigner.d.ts.map +1 -0
  110. package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts +42 -0
  111. package/dist/types/src/ma-v2/account/semiModularAccountV2.d.ts.map +1 -0
  112. package/dist/types/src/ma-v2/actions/common/types.d.ts +32 -0
  113. package/dist/types/src/ma-v2/actions/common/types.d.ts.map +1 -0
  114. package/dist/types/src/ma-v2/actions/common/utils.d.ts +77 -0
  115. package/dist/types/src/ma-v2/actions/common/utils.d.ts.map +1 -0
  116. package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts +72 -0
  117. package/dist/types/src/ma-v2/actions/install-validation/installValidation.d.ts.map +1 -0
  118. package/dist/types/src/ma-v2/client/client.d.ts +14 -0
  119. package/dist/types/src/ma-v2/client/client.d.ts.map +1 -0
  120. package/dist/types/src/ma-v2/index.d.ts +27 -0
  121. package/dist/types/src/ma-v2/index.d.ts.map +1 -0
  122. package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts +557 -0
  123. package/dist/types/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.d.ts.map +1 -0
  124. package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts +580 -0
  125. package/dist/types/src/ma-v2/modules/allowlist-module/module.d.ts.map +1 -0
  126. package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts +313 -0
  127. package/dist/types/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.d.ts.map +1 -0
  128. package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts +323 -0
  129. package/dist/types/src/ma-v2/modules/native-token-limit-module/module.d.ts.map +1 -0
  130. package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts +187 -0
  131. package/dist/types/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.d.ts.map +1 -0
  132. package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts +197 -0
  133. package/dist/types/src/ma-v2/modules/paymaster-guard-module/module.d.ts.map +1 -0
  134. package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts +46 -0
  135. package/dist/types/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.d.ts.map +1 -0
  136. package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts +11 -0
  137. package/dist/types/src/ma-v2/modules/single-signer-validation/module.d.ts.map +1 -0
  138. package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts +240 -0
  139. package/dist/types/src/ma-v2/modules/single-signer-validation/signer.d.ts.map +1 -0
  140. package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts +230 -0
  141. package/dist/types/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.d.ts.map +1 -0
  142. package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts +246 -0
  143. package/dist/types/src/ma-v2/modules/time-range-module/module.d.ts.map +1 -0
  144. package/dist/types/src/ma-v2/modules/utils.d.ts +92 -0
  145. package/dist/types/src/ma-v2/modules/utils.d.ts.map +1 -0
  146. package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts +288 -0
  147. package/dist/types/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.d.ts.map +1 -0
  148. package/dist/types/src/ma-v2/utils.d.ts +17 -0
  149. package/dist/types/src/ma-v2/utils.d.ts.map +1 -0
  150. package/dist/types/src/msca/client/alchemyClient.d.ts.map +1 -1
  151. package/dist/types/src/msca/client/client.d.ts +14 -5
  152. package/dist/types/src/msca/client/client.d.ts.map +1 -1
  153. package/dist/types/src/msca/client/multiSigAlchemyClient.d.ts +4 -2
  154. package/dist/types/src/msca/client/multiSigAlchemyClient.d.ts.map +1 -1
  155. package/package.json +11 -5
  156. package/src/light-account/clients/alchemyClient.ts +5 -14
  157. package/src/light-account/clients/client.ts +52 -6
  158. package/src/light-account/clients/multiOwnerAlchemyClient.ts +5 -13
  159. package/src/light-account/clients/multiOwnerLightAccount.ts +64 -8
  160. package/src/ma-v2/abis/accountFactoryAbi.ts +638 -0
  161. package/src/ma-v2/abis/modularAccountAbi.ts +1241 -0
  162. package/src/ma-v2/abis/semiModularAccountBytecodeAbi.ts +1288 -0
  163. package/src/ma-v2/abis/semiModularAccountStorageAbi.ts +1301 -0
  164. package/src/ma-v2/account/nativeSMASigner.ts +121 -0
  165. package/src/ma-v2/account/semiModularAccountV2.ts +289 -0
  166. package/src/ma-v2/actions/common/types.ts +37 -0
  167. package/src/ma-v2/actions/common/utils.ts +103 -0
  168. package/src/ma-v2/actions/install-validation/installValidation.ts +213 -0
  169. package/src/ma-v2/client/client.ts +117 -0
  170. package/src/ma-v2/index.ts +47 -0
  171. package/src/ma-v2/modules/allowlist-module/abis/allowlistModuleAbi.ts +715 -0
  172. package/src/ma-v2/modules/allowlist-module/module.ts +87 -0
  173. package/src/ma-v2/modules/native-token-limit-module/abis/nativeTokenLimitModuleAbi.ts +403 -0
  174. package/src/ma-v2/modules/native-token-limit-module/module.ts +21 -0
  175. package/src/ma-v2/modules/paymaster-guard-module/abis/paymasterGuardModuleAbi.ts +241 -0
  176. package/src/ma-v2/modules/paymaster-guard-module/module.ts +35 -0
  177. package/src/ma-v2/modules/single-signer-validation/abis/singleSignerValidationModuleAbi.ts +330 -0
  178. package/src/ma-v2/modules/single-signer-validation/module.ts +24 -0
  179. package/src/ma-v2/modules/single-signer-validation/signer.ts +127 -0
  180. package/src/ma-v2/modules/time-range-module/abis/timeRangeModuleAbi.ts +295 -0
  181. package/src/ma-v2/modules/time-range-module/module.ts +63 -0
  182. package/src/ma-v2/modules/utils.ts +213 -0
  183. package/src/ma-v2/modules/webauthn-validation/abis/webauthnValidationAbi.ts +373 -0
  184. package/src/ma-v2/utils.ts +138 -0
  185. package/src/msca/client/alchemyClient.ts +3 -22
  186. package/src/msca/client/client.ts +157 -13
  187. package/src/msca/client/multiSigAlchemyClient.ts +6 -29
@@ -0,0 +1,715 @@
1
+ export const allowlistModuleAbi = [
2
+ {
3
+ type: "function",
4
+ name: "addressAllowlist",
5
+ inputs: [
6
+ {
7
+ name: "entityId",
8
+ type: "uint32",
9
+ internalType: "uint32",
10
+ },
11
+ {
12
+ name: "target",
13
+ type: "address",
14
+ internalType: "address",
15
+ },
16
+ {
17
+ name: "account",
18
+ type: "address",
19
+ internalType: "address",
20
+ },
21
+ ],
22
+ outputs: [
23
+ {
24
+ name: "allowed",
25
+ type: "bool",
26
+ internalType: "bool",
27
+ },
28
+ {
29
+ name: "hasSelectorAllowlist",
30
+ type: "bool",
31
+ internalType: "bool",
32
+ },
33
+ {
34
+ name: "hasERC20SpendLimit",
35
+ type: "bool",
36
+ internalType: "bool",
37
+ },
38
+ ],
39
+ stateMutability: "view",
40
+ },
41
+ {
42
+ type: "function",
43
+ name: "checkAllowlistCalldata",
44
+ inputs: [
45
+ {
46
+ name: "entityId",
47
+ type: "uint32",
48
+ internalType: "uint32",
49
+ },
50
+ {
51
+ name: "callData",
52
+ type: "bytes",
53
+ internalType: "bytes",
54
+ },
55
+ ],
56
+ outputs: [],
57
+ stateMutability: "view",
58
+ },
59
+ {
60
+ type: "function",
61
+ name: "deleteAllowlist",
62
+ inputs: [
63
+ {
64
+ name: "entityId",
65
+ type: "uint32",
66
+ internalType: "uint32",
67
+ },
68
+ {
69
+ name: "inputs",
70
+ type: "tuple[]",
71
+ internalType: "struct AllowlistModule.AllowlistInput[]",
72
+ components: [
73
+ {
74
+ name: "target",
75
+ type: "address",
76
+ internalType: "address",
77
+ },
78
+ {
79
+ name: "hasSelectorAllowlist",
80
+ type: "bool",
81
+ internalType: "bool",
82
+ },
83
+ {
84
+ name: "hasERC20SpendLimit",
85
+ type: "bool",
86
+ internalType: "bool",
87
+ },
88
+ {
89
+ name: "erc20SpendLimit",
90
+ type: "uint256",
91
+ internalType: "uint256",
92
+ },
93
+ {
94
+ name: "selectors",
95
+ type: "bytes4[]",
96
+ internalType: "bytes4[]",
97
+ },
98
+ ],
99
+ },
100
+ ],
101
+ outputs: [],
102
+ stateMutability: "nonpayable",
103
+ },
104
+ {
105
+ type: "function",
106
+ name: "erc20SpendLimits",
107
+ inputs: [
108
+ {
109
+ name: "entityId",
110
+ type: "uint32",
111
+ internalType: "uint32",
112
+ },
113
+ {
114
+ name: "target",
115
+ type: "address",
116
+ internalType: "address",
117
+ },
118
+ {
119
+ name: "account",
120
+ type: "address",
121
+ internalType: "address",
122
+ },
123
+ ],
124
+ outputs: [
125
+ {
126
+ name: "",
127
+ type: "uint256",
128
+ internalType: "uint256",
129
+ },
130
+ ],
131
+ stateMutability: "view",
132
+ },
133
+ {
134
+ type: "function",
135
+ name: "moduleId",
136
+ inputs: [],
137
+ outputs: [
138
+ {
139
+ name: "",
140
+ type: "string",
141
+ internalType: "string",
142
+ },
143
+ ],
144
+ stateMutability: "pure",
145
+ },
146
+ {
147
+ type: "function",
148
+ name: "onInstall",
149
+ inputs: [
150
+ {
151
+ name: "data",
152
+ type: "bytes",
153
+ internalType: "bytes",
154
+ },
155
+ ],
156
+ outputs: [],
157
+ stateMutability: "nonpayable",
158
+ },
159
+ {
160
+ type: "function",
161
+ name: "onUninstall",
162
+ inputs: [
163
+ {
164
+ name: "data",
165
+ type: "bytes",
166
+ internalType: "bytes",
167
+ },
168
+ ],
169
+ outputs: [],
170
+ stateMutability: "nonpayable",
171
+ },
172
+ {
173
+ type: "function",
174
+ name: "postExecutionHook",
175
+ inputs: [
176
+ {
177
+ name: "",
178
+ type: "uint32",
179
+ internalType: "uint32",
180
+ },
181
+ {
182
+ name: "",
183
+ type: "bytes",
184
+ internalType: "bytes",
185
+ },
186
+ ],
187
+ outputs: [],
188
+ stateMutability: "pure",
189
+ },
190
+ {
191
+ type: "function",
192
+ name: "preExecutionHook",
193
+ inputs: [
194
+ {
195
+ name: "entityId",
196
+ type: "uint32",
197
+ internalType: "uint32",
198
+ },
199
+ {
200
+ name: "",
201
+ type: "address",
202
+ internalType: "address",
203
+ },
204
+ {
205
+ name: "",
206
+ type: "uint256",
207
+ internalType: "uint256",
208
+ },
209
+ {
210
+ name: "data",
211
+ type: "bytes",
212
+ internalType: "bytes",
213
+ },
214
+ ],
215
+ outputs: [
216
+ {
217
+ name: "",
218
+ type: "bytes",
219
+ internalType: "bytes",
220
+ },
221
+ ],
222
+ stateMutability: "nonpayable",
223
+ },
224
+ {
225
+ type: "function",
226
+ name: "preRuntimeValidationHook",
227
+ inputs: [
228
+ {
229
+ name: "entityId",
230
+ type: "uint32",
231
+ internalType: "uint32",
232
+ },
233
+ {
234
+ name: "",
235
+ type: "address",
236
+ internalType: "address",
237
+ },
238
+ {
239
+ name: "",
240
+ type: "uint256",
241
+ internalType: "uint256",
242
+ },
243
+ {
244
+ name: "data",
245
+ type: "bytes",
246
+ internalType: "bytes",
247
+ },
248
+ {
249
+ name: "",
250
+ type: "bytes",
251
+ internalType: "bytes",
252
+ },
253
+ ],
254
+ outputs: [],
255
+ stateMutability: "view",
256
+ },
257
+ {
258
+ type: "function",
259
+ name: "preSignatureValidationHook",
260
+ inputs: [
261
+ {
262
+ name: "",
263
+ type: "uint32",
264
+ internalType: "uint32",
265
+ },
266
+ {
267
+ name: "",
268
+ type: "address",
269
+ internalType: "address",
270
+ },
271
+ {
272
+ name: "",
273
+ type: "bytes32",
274
+ internalType: "bytes32",
275
+ },
276
+ {
277
+ name: "",
278
+ type: "bytes",
279
+ internalType: "bytes",
280
+ },
281
+ ],
282
+ outputs: [],
283
+ stateMutability: "pure",
284
+ },
285
+ {
286
+ type: "function",
287
+ name: "preUserOpValidationHook",
288
+ inputs: [
289
+ {
290
+ name: "entityId",
291
+ type: "uint32",
292
+ internalType: "uint32",
293
+ },
294
+ {
295
+ name: "userOp",
296
+ type: "tuple",
297
+ internalType: "struct PackedUserOperation",
298
+ components: [
299
+ {
300
+ name: "sender",
301
+ type: "address",
302
+ internalType: "address",
303
+ },
304
+ {
305
+ name: "nonce",
306
+ type: "uint256",
307
+ internalType: "uint256",
308
+ },
309
+ {
310
+ name: "initCode",
311
+ type: "bytes",
312
+ internalType: "bytes",
313
+ },
314
+ {
315
+ name: "callData",
316
+ type: "bytes",
317
+ internalType: "bytes",
318
+ },
319
+ {
320
+ name: "accountGasLimits",
321
+ type: "bytes32",
322
+ internalType: "bytes32",
323
+ },
324
+ {
325
+ name: "preVerificationGas",
326
+ type: "uint256",
327
+ internalType: "uint256",
328
+ },
329
+ {
330
+ name: "gasFees",
331
+ type: "bytes32",
332
+ internalType: "bytes32",
333
+ },
334
+ {
335
+ name: "paymasterAndData",
336
+ type: "bytes",
337
+ internalType: "bytes",
338
+ },
339
+ {
340
+ name: "signature",
341
+ type: "bytes",
342
+ internalType: "bytes",
343
+ },
344
+ ],
345
+ },
346
+ {
347
+ name: "",
348
+ type: "bytes32",
349
+ internalType: "bytes32",
350
+ },
351
+ ],
352
+ outputs: [
353
+ {
354
+ name: "",
355
+ type: "uint256",
356
+ internalType: "uint256",
357
+ },
358
+ ],
359
+ stateMutability: "view",
360
+ },
361
+ {
362
+ type: "function",
363
+ name: "selectorAllowlist",
364
+ inputs: [
365
+ {
366
+ name: "entityId",
367
+ type: "uint32",
368
+ internalType: "uint32",
369
+ },
370
+ {
371
+ name: "selector",
372
+ type: "bytes4",
373
+ internalType: "bytes4",
374
+ },
375
+ {
376
+ name: "target",
377
+ type: "address",
378
+ internalType: "address",
379
+ },
380
+ {
381
+ name: "account",
382
+ type: "address",
383
+ internalType: "address",
384
+ },
385
+ ],
386
+ outputs: [
387
+ {
388
+ name: "",
389
+ type: "bool",
390
+ internalType: "bool",
391
+ },
392
+ ],
393
+ stateMutability: "view",
394
+ },
395
+ {
396
+ type: "function",
397
+ name: "setAddressAllowlist",
398
+ inputs: [
399
+ {
400
+ name: "entityId",
401
+ type: "uint32",
402
+ internalType: "uint32",
403
+ },
404
+ {
405
+ name: "target",
406
+ type: "address",
407
+ internalType: "address",
408
+ },
409
+ {
410
+ name: "allowed",
411
+ type: "bool",
412
+ internalType: "bool",
413
+ },
414
+ {
415
+ name: "hasSelectorAllowlist",
416
+ type: "bool",
417
+ internalType: "bool",
418
+ },
419
+ {
420
+ name: "hasERC20SpendLimit",
421
+ type: "bool",
422
+ internalType: "bool",
423
+ },
424
+ ],
425
+ outputs: [],
426
+ stateMutability: "nonpayable",
427
+ },
428
+ {
429
+ type: "function",
430
+ name: "setSelectorAllowlist",
431
+ inputs: [
432
+ {
433
+ name: "entityId",
434
+ type: "uint32",
435
+ internalType: "uint32",
436
+ },
437
+ {
438
+ name: "target",
439
+ type: "address",
440
+ internalType: "address",
441
+ },
442
+ {
443
+ name: "selector",
444
+ type: "bytes4",
445
+ internalType: "bytes4",
446
+ },
447
+ {
448
+ name: "allowed",
449
+ type: "bool",
450
+ internalType: "bool",
451
+ },
452
+ ],
453
+ outputs: [],
454
+ stateMutability: "nonpayable",
455
+ },
456
+ {
457
+ type: "function",
458
+ name: "supportsInterface",
459
+ inputs: [
460
+ {
461
+ name: "interfaceId",
462
+ type: "bytes4",
463
+ internalType: "bytes4",
464
+ },
465
+ ],
466
+ outputs: [
467
+ {
468
+ name: "",
469
+ type: "bool",
470
+ internalType: "bool",
471
+ },
472
+ ],
473
+ stateMutability: "view",
474
+ },
475
+ {
476
+ type: "function",
477
+ name: "updateAllowlist",
478
+ inputs: [
479
+ {
480
+ name: "entityId",
481
+ type: "uint32",
482
+ internalType: "uint32",
483
+ },
484
+ {
485
+ name: "inputs",
486
+ type: "tuple[]",
487
+ internalType: "struct AllowlistModule.AllowlistInput[]",
488
+ components: [
489
+ {
490
+ name: "target",
491
+ type: "address",
492
+ internalType: "address",
493
+ },
494
+ {
495
+ name: "hasSelectorAllowlist",
496
+ type: "bool",
497
+ internalType: "bool",
498
+ },
499
+ {
500
+ name: "hasERC20SpendLimit",
501
+ type: "bool",
502
+ internalType: "bool",
503
+ },
504
+ {
505
+ name: "erc20SpendLimit",
506
+ type: "uint256",
507
+ internalType: "uint256",
508
+ },
509
+ {
510
+ name: "selectors",
511
+ type: "bytes4[]",
512
+ internalType: "bytes4[]",
513
+ },
514
+ ],
515
+ },
516
+ ],
517
+ outputs: [],
518
+ stateMutability: "nonpayable",
519
+ },
520
+ {
521
+ type: "function",
522
+ name: "updateLimits",
523
+ inputs: [
524
+ {
525
+ name: "entityId",
526
+ type: "uint32",
527
+ internalType: "uint32",
528
+ },
529
+ {
530
+ name: "token",
531
+ type: "address",
532
+ internalType: "address",
533
+ },
534
+ {
535
+ name: "hasERC20SpendLimit",
536
+ type: "bool",
537
+ internalType: "bool",
538
+ },
539
+ {
540
+ name: "newLimit",
541
+ type: "uint256",
542
+ internalType: "uint256",
543
+ },
544
+ ],
545
+ outputs: [],
546
+ stateMutability: "nonpayable",
547
+ },
548
+ {
549
+ type: "event",
550
+ name: "AddressAllowlistUpdated",
551
+ inputs: [
552
+ {
553
+ name: "entityId",
554
+ type: "uint32",
555
+ indexed: true,
556
+ internalType: "uint32",
557
+ },
558
+ {
559
+ name: "account",
560
+ type: "address",
561
+ indexed: true,
562
+ internalType: "address",
563
+ },
564
+ {
565
+ name: "target",
566
+ type: "address",
567
+ indexed: true,
568
+ internalType: "address",
569
+ },
570
+ {
571
+ name: "entry",
572
+ type: "tuple",
573
+ indexed: false,
574
+ internalType: "struct AllowlistModule.AddressAllowlistEntry",
575
+ components: [
576
+ {
577
+ name: "allowed",
578
+ type: "bool",
579
+ internalType: "bool",
580
+ },
581
+ {
582
+ name: "hasSelectorAllowlist",
583
+ type: "bool",
584
+ internalType: "bool",
585
+ },
586
+ {
587
+ name: "hasERC20SpendLimit",
588
+ type: "bool",
589
+ internalType: "bool",
590
+ },
591
+ ],
592
+ },
593
+ ],
594
+ anonymous: false,
595
+ },
596
+ {
597
+ type: "event",
598
+ name: "ERC20SpendLimitUpdated",
599
+ inputs: [
600
+ {
601
+ name: "entityId",
602
+ type: "uint32",
603
+ indexed: true,
604
+ internalType: "uint32",
605
+ },
606
+ {
607
+ name: "account",
608
+ type: "address",
609
+ indexed: true,
610
+ internalType: "address",
611
+ },
612
+ {
613
+ name: "token",
614
+ type: "address",
615
+ indexed: true,
616
+ internalType: "address",
617
+ },
618
+ {
619
+ name: "newLimit",
620
+ type: "uint256",
621
+ indexed: false,
622
+ internalType: "uint256",
623
+ },
624
+ ],
625
+ anonymous: false,
626
+ },
627
+ {
628
+ type: "event",
629
+ name: "SelectorAllowlistUpdated",
630
+ inputs: [
631
+ {
632
+ name: "entityId",
633
+ type: "uint32",
634
+ indexed: true,
635
+ internalType: "uint32",
636
+ },
637
+ {
638
+ name: "account",
639
+ type: "address",
640
+ indexed: true,
641
+ internalType: "address",
642
+ },
643
+ {
644
+ name: "targetAndSelector",
645
+ type: "bytes24",
646
+ indexed: true,
647
+ internalType: "bytes24",
648
+ },
649
+ {
650
+ name: "allowed",
651
+ type: "bool",
652
+ indexed: false,
653
+ internalType: "bool",
654
+ },
655
+ ],
656
+ anonymous: false,
657
+ },
658
+ {
659
+ type: "error",
660
+ name: "AddressNotAllowed",
661
+ inputs: [],
662
+ },
663
+ {
664
+ type: "error",
665
+ name: "ERC20NotAllowed",
666
+ inputs: [
667
+ {
668
+ name: "",
669
+ type: "address",
670
+ internalType: "address",
671
+ },
672
+ ],
673
+ },
674
+ {
675
+ type: "error",
676
+ name: "ExceededTokenLimit",
677
+ inputs: [],
678
+ },
679
+ {
680
+ type: "error",
681
+ name: "InvalidCalldataLength",
682
+ inputs: [],
683
+ },
684
+ {
685
+ type: "error",
686
+ name: "NoSelectorSpecified",
687
+ inputs: [],
688
+ },
689
+ {
690
+ type: "error",
691
+ name: "NotImplemented",
692
+ inputs: [],
693
+ },
694
+ {
695
+ type: "error",
696
+ name: "SelectorNotAllowed",
697
+ inputs: [],
698
+ },
699
+ {
700
+ type: "error",
701
+ name: "SpendingRequestNotAllowed",
702
+ inputs: [
703
+ {
704
+ name: "",
705
+ type: "bytes4",
706
+ internalType: "bytes4",
707
+ },
708
+ ],
709
+ },
710
+ {
711
+ type: "error",
712
+ name: "UnexpectedDataPassed",
713
+ inputs: [],
714
+ },
715
+ ] as const;