@pushchain/core 6.0.26 → 6.0.27-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/AGW.md +226 -0
  2. package/CHANGELOG.md +18 -0
  3. package/README.md +2 -0
  4. package/package.json +7 -1
  5. package/src/lib/agentic/agentic.d.ts +23 -0
  6. package/src/lib/agentic/agentic.js +51 -0
  7. package/src/lib/agentic/agentic.types.d.ts +414 -0
  8. package/src/lib/agentic/agentic.types.js +3 -0
  9. package/src/lib/agentic/capabilities.d.ts +37 -0
  10. package/src/lib/agentic/capabilities.js +64 -0
  11. package/src/lib/agentic/chain.d.ts +3 -0
  12. package/src/lib/agentic/chain.js +15 -0
  13. package/src/lib/agentic/codec/abi-layout.d.ts +20 -0
  14. package/src/lib/agentic/codec/abi-layout.js +168 -0
  15. package/src/lib/agentic/codec/defaults.d.ts +51 -0
  16. package/src/lib/agentic/codec/defaults.js +53 -0
  17. package/src/lib/agentic/codec/ids.d.ts +35 -0
  18. package/src/lib/agentic/codec/ids.js +74 -0
  19. package/src/lib/agentic/codec/native.d.ts +73 -0
  20. package/src/lib/agentic/codec/native.js +341 -0
  21. package/src/lib/agentic/codec/pins.d.ts +20 -0
  22. package/src/lib/agentic/codec/pins.js +29 -0
  23. package/src/lib/agentic/codec/rules.d.ts +45 -0
  24. package/src/lib/agentic/codec/rules.js +110 -0
  25. package/src/lib/agentic/codec/selectors.d.ts +19 -0
  26. package/src/lib/agentic/codec/selectors.js +60 -0
  27. package/src/lib/agentic/codec/session.d.ts +54 -0
  28. package/src/lib/agentic/codec/session.js +65 -0
  29. package/src/lib/agentic/codec/svm-accounts.d.ts +35 -0
  30. package/src/lib/agentic/codec/svm-accounts.js +68 -0
  31. package/src/lib/agentic/codec/svm-idl.d.ts +11 -0
  32. package/src/lib/agentic/codec/svm-idl.js +226 -0
  33. package/src/lib/agentic/codec/svm-terms.d.ts +157 -0
  34. package/src/lib/agentic/codec/svm-terms.js +246 -0
  35. package/src/lib/agentic/codec/universal-terms.d.ts +82 -0
  36. package/src/lib/agentic/codec/universal-terms.js +43 -0
  37. package/src/lib/agentic/codec/universal.d.ts +14 -0
  38. package/src/lib/agentic/codec/universal.js +173 -0
  39. package/src/lib/agentic/constants.d.ts +12 -0
  40. package/src/lib/agentic/constants.js +16 -0
  41. package/src/lib/agentic/context.d.ts +29 -0
  42. package/src/lib/agentic/context.js +56 -0
  43. package/src/lib/agentic/contracts/abi/v6/agent-validator.d.ts +105 -0
  44. package/src/lib/agentic/contracts/abi/v6/agent-validator.js +149 -0
  45. package/src/lib/agentic/contracts/abi/v6/agw-factory.d.ts +1146 -0
  46. package/src/lib/agentic/contracts/abi/v6/agw-factory.js +1499 -0
  47. package/src/lib/agentic/contracts/abi/v6/agw.d.ts +1306 -0
  48. package/src/lib/agentic/contracts/abi/v6/agw.js +1713 -0
  49. package/src/lib/agentic/contracts/abi/v6/index.d.ts +6 -0
  50. package/src/lib/agentic/contracts/abi/v6/index.js +17 -0
  51. package/src/lib/agentic/contracts/abi/v6/smart-session.d.ts +1493 -0
  52. package/src/lib/agentic/contracts/abi/v6/smart-session.js +1965 -0
  53. package/src/lib/agentic/contracts/abi/v6/universal-rules-policy.d.ts +1661 -0
  54. package/src/lib/agentic/contracts/abi/v6/universal-rules-policy.js +2187 -0
  55. package/src/lib/agentic/contracts/donut-v6.d.ts +11 -0
  56. package/src/lib/agentic/contracts/donut-v6.js +15 -0
  57. package/src/lib/agentic/contracts/prc20-metadata.d.ts +26 -0
  58. package/src/lib/agentic/contracts/prc20-metadata.js +87 -0
  59. package/src/lib/agentic/contracts/reader.d.ts +35 -0
  60. package/src/lib/agentic/contracts/reader.js +16 -0
  61. package/src/lib/agentic/contracts/v6.d.ts +5739 -0
  62. package/src/lib/agentic/contracts/v6.js +343 -0
  63. package/src/lib/agentic/deployments.d.ts +61 -0
  64. package/src/lib/agentic/deployments.js +203 -0
  65. package/src/lib/agentic/errors.d.ts +65 -0
  66. package/src/lib/agentic/errors.js +84 -0
  67. package/src/lib/agentic/execution/guards.d.ts +9 -0
  68. package/src/lib/agentic/execution/guards.js +30 -0
  69. package/src/lib/agentic/execution/outbound.d.ts +55 -0
  70. package/src/lib/agentic/execution/outbound.js +187 -0
  71. package/src/lib/agentic/execution/send.d.ts +9 -0
  72. package/src/lib/agentic/execution/send.js +268 -0
  73. package/src/lib/agentic/execution/svm-instruction.d.ts +24 -0
  74. package/src/lib/agentic/execution/svm-instruction.js +40 -0
  75. package/src/lib/agentic/execution/svm-outbound.d.ts +18 -0
  76. package/src/lib/agentic/execution/svm-outbound.js +86 -0
  77. package/src/lib/agentic/execution/svm-payload.d.ts +18 -0
  78. package/src/lib/agentic/execution/svm-payload.js +136 -0
  79. package/src/lib/agentic/execution/svm-public.d.ts +5 -0
  80. package/src/lib/agentic/execution/svm-public.js +176 -0
  81. package/src/lib/agentic/execution/svm-quote.d.ts +11 -0
  82. package/src/lib/agentic/execution/svm-quote.js +24 -0
  83. package/src/lib/agentic/execution/svm-send.d.ts +44 -0
  84. package/src/lib/agentic/execution/svm-send.js +87 -0
  85. package/src/lib/agentic/index.d.ts +5 -0
  86. package/src/lib/agentic/index.js +10 -0
  87. package/src/lib/agentic/management/common.d.ts +29 -0
  88. package/src/lib/agentic/management/common.js +116 -0
  89. package/src/lib/agentic/management/create.d.ts +4 -0
  90. package/src/lib/agentic/management/create.js +138 -0
  91. package/src/lib/agentic/management/duplicates.d.ts +4 -0
  92. package/src/lib/agentic/management/duplicates.js +20 -0
  93. package/src/lib/agentic/management/label.d.ts +3 -0
  94. package/src/lib/agentic/management/label.js +17 -0
  95. package/src/lib/agentic/management/prepare.d.ts +7 -0
  96. package/src/lib/agentic/management/prepare.js +95 -0
  97. package/src/lib/agentic/management/rules-write.d.ts +42 -0
  98. package/src/lib/agentic/management/rules-write.js +279 -0
  99. package/src/lib/agentic/management/svm-context.d.ts +25 -0
  100. package/src/lib/agentic/management/svm-context.js +55 -0
  101. package/src/lib/agentic/management/svm-metadata.d.ts +10 -0
  102. package/src/lib/agentic/management/svm-metadata.js +56 -0
  103. package/src/lib/agentic/management/svm-public.d.ts +6 -0
  104. package/src/lib/agentic/management/svm-public.js +125 -0
  105. package/src/lib/agentic/management/svm.d.ts +27 -0
  106. package/src/lib/agentic/management/svm.js +150 -0
  107. package/src/lib/agentic/presets/catalog.d.ts +26 -0
  108. package/src/lib/agentic/presets/catalog.js +307 -0
  109. package/src/lib/agentic/presets/index.d.ts +5 -0
  110. package/src/lib/agentic/presets/index.js +265 -0
  111. package/src/lib/agentic/presets/types.d.ts +48 -0
  112. package/src/lib/agentic/presets/types.js +3 -0
  113. package/src/lib/agentic/public-rule.d.ts +9 -0
  114. package/src/lib/agentic/public-rule.js +326 -0
  115. package/src/lib/agentic/reads/checkpoints.d.ts +17 -0
  116. package/src/lib/agentic/reads/checkpoints.js +109 -0
  117. package/src/lib/agentic/reads/rules.d.ts +42 -0
  118. package/src/lib/agentic/reads/rules.js +302 -0
  119. package/src/lib/agentic/reads/snapshot.d.ts +28 -0
  120. package/src/lib/agentic/reads/snapshot.js +85 -0
  121. package/src/lib/agentic/reads/svm.d.ts +17 -0
  122. package/src/lib/agentic/reads/svm.js +52 -0
  123. package/src/lib/agentic/reads/wallets.d.ts +25 -0
  124. package/src/lib/agentic/reads/wallets.js +122 -0
  125. package/src/lib/agentic/response.d.ts +41 -0
  126. package/src/lib/agentic/response.js +358 -0
  127. package/src/lib/agentic/revert.d.ts +7 -0
  128. package/src/lib/agentic/revert.js +102 -0
  129. package/src/lib/agentic/runtime.d.ts +58 -0
  130. package/src/lib/agentic/runtime.js +104 -0
  131. package/src/lib/agentic/utils.d.ts +57 -0
  132. package/src/lib/agentic/utils.js +165 -0
  133. package/src/lib/agentic/wallet.d.ts +32 -0
  134. package/src/lib/agentic/wallet.js +130 -0
  135. package/src/lib/constants/enums.d.ts +6 -3
  136. package/src/lib/constants/enums.js +6 -3
  137. package/src/lib/constants/index.d.ts +61 -4
  138. package/src/lib/constants/index.js +17 -3
  139. package/src/lib/constants/read-state.d.ts +9 -0
  140. package/src/lib/constants/read-state.js +13 -1
  141. package/src/lib/index.d.ts +8 -2
  142. package/src/lib/index.js +9 -1
  143. package/src/lib/orchestrator/internals/errors.d.ts +7 -0
  144. package/src/lib/orchestrator/internals/errors.js +13 -1
  145. package/src/lib/orchestrator/internals/execute-standard.d.ts +3 -1
  146. package/src/lib/orchestrator/internals/execute-standard.js +3 -3
  147. package/src/lib/orchestrator/internals/outbound-sync.js +52 -7
  148. package/src/lib/orchestrator/internals/push-chain-tx.d.ts +1 -1
  149. package/src/lib/orchestrator/internals/push-chain-tx.js +13 -1
  150. package/src/lib/orchestrator/orchestrator.d.ts +3 -0
  151. package/src/lib/orchestrator/orchestrator.js +13 -1
  152. package/src/lib/orchestrator/orchestrator.types.d.ts +8 -0
  153. package/src/lib/orchestrator/route-detector.js +3 -2
  154. package/src/lib/orchestrator/svm-idl/resolve.d.ts +2 -0
  155. package/src/lib/orchestrator/svm-idl/resolve.js +11 -1
  156. package/src/lib/progress-hook/progress-hook.js +63 -0
  157. package/src/lib/progress-hook/progress-hook.types.d.ts +10 -1
  158. package/src/lib/progress-hook/progress-hook.types.js +10 -0
  159. package/src/lib/push-chain/push-chain.d.ts +57 -15
  160. package/src/lib/push-chain/push-chain.js +66 -7
  161. package/src/lib/read-state/destination.js +6 -1
  162. package/src/lib/read-state/read-params.d.ts +3 -3
  163. package/src/lib/read-state/read-params.js +3 -2
  164. package/src/lib/read-state/read-state.types.d.ts +3 -1
  165. package/src/lib/read-state/read-tracker.js +2 -2
  166. package/src/lib/read-state/spec-builder.js +1 -1
  167. package/src/lib/universal/prc20-address.d.ts +15 -0
  168. package/src/lib/universal/prc20-address.js +135 -0
  169. package/src/lib/utils.d.ts +6 -13
  170. package/src/lib/utils.js +5 -128
  171. package/src/lib/vm-client/evm-client.js +34 -20
@@ -0,0 +1,1965 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SMART_SESSION_ABI = void 0;
4
+ // GENERATED by packages/core/scripts/agw-local/gen-abi.mjs — do not edit.
5
+ // Source: packages/core/scripts/agw-local/abis/engine.json
6
+ // push-agentic-wallets@ffd567d3e49b2d27c6f50ad36093274dbac3090f
7
+ // sha256(SmartSession.json) = 6e5d9cea4dbed01f06af913c1e093743b86b7432195f4a4bf90fb94b282c51b2
8
+ exports.SMART_SESSION_ABI = [
9
+ {
10
+ "type": "function",
11
+ "name": "areActionsEnabled",
12
+ "inputs": [
13
+ {
14
+ "name": "account",
15
+ "type": "address",
16
+ "internalType": "address"
17
+ },
18
+ {
19
+ "name": "permissionId",
20
+ "type": "bytes32",
21
+ "internalType": "PermissionId"
22
+ },
23
+ {
24
+ "name": "actions",
25
+ "type": "tuple[]",
26
+ "internalType": "struct ActionData[]",
27
+ "components": [
28
+ {
29
+ "name": "actionTargetSelector",
30
+ "type": "bytes4",
31
+ "internalType": "bytes4"
32
+ },
33
+ {
34
+ "name": "actionTarget",
35
+ "type": "address",
36
+ "internalType": "address"
37
+ },
38
+ {
39
+ "name": "actionPolicies",
40
+ "type": "tuple[]",
41
+ "internalType": "struct PolicyData[]",
42
+ "components": [
43
+ {
44
+ "name": "policy",
45
+ "type": "address",
46
+ "internalType": "address"
47
+ },
48
+ {
49
+ "name": "initData",
50
+ "type": "bytes",
51
+ "internalType": "bytes"
52
+ }
53
+ ]
54
+ }
55
+ ]
56
+ }
57
+ ],
58
+ "outputs": [
59
+ {
60
+ "name": "",
61
+ "type": "bool",
62
+ "internalType": "bool"
63
+ }
64
+ ],
65
+ "stateMutability": "view"
66
+ },
67
+ {
68
+ "type": "function",
69
+ "name": "areERC1271PoliciesEnabled",
70
+ "inputs": [
71
+ {
72
+ "name": "account",
73
+ "type": "address",
74
+ "internalType": "address"
75
+ },
76
+ {
77
+ "name": "permissionId",
78
+ "type": "bytes32",
79
+ "internalType": "PermissionId"
80
+ },
81
+ {
82
+ "name": "erc1271Policies",
83
+ "type": "tuple[]",
84
+ "internalType": "struct PolicyData[]",
85
+ "components": [
86
+ {
87
+ "name": "policy",
88
+ "type": "address",
89
+ "internalType": "address"
90
+ },
91
+ {
92
+ "name": "initData",
93
+ "type": "bytes",
94
+ "internalType": "bytes"
95
+ }
96
+ ]
97
+ }
98
+ ],
99
+ "outputs": [
100
+ {
101
+ "name": "",
102
+ "type": "bool",
103
+ "internalType": "bool"
104
+ }
105
+ ],
106
+ "stateMutability": "view"
107
+ },
108
+ {
109
+ "type": "function",
110
+ "name": "areUserOpPoliciesEnabled",
111
+ "inputs": [
112
+ {
113
+ "name": "account",
114
+ "type": "address",
115
+ "internalType": "address"
116
+ },
117
+ {
118
+ "name": "permissionId",
119
+ "type": "bytes32",
120
+ "internalType": "PermissionId"
121
+ },
122
+ {
123
+ "name": "userOpPolicies",
124
+ "type": "tuple[]",
125
+ "internalType": "struct PolicyData[]",
126
+ "components": [
127
+ {
128
+ "name": "policy",
129
+ "type": "address",
130
+ "internalType": "address"
131
+ },
132
+ {
133
+ "name": "initData",
134
+ "type": "bytes",
135
+ "internalType": "bytes"
136
+ }
137
+ ]
138
+ }
139
+ ],
140
+ "outputs": [
141
+ {
142
+ "name": "",
143
+ "type": "bool",
144
+ "internalType": "bool"
145
+ }
146
+ ],
147
+ "stateMutability": "view"
148
+ },
149
+ {
150
+ "type": "function",
151
+ "name": "disableActionId",
152
+ "inputs": [
153
+ {
154
+ "name": "permissionId",
155
+ "type": "bytes32",
156
+ "internalType": "PermissionId"
157
+ },
158
+ {
159
+ "name": "actionId",
160
+ "type": "bytes32",
161
+ "internalType": "ActionId"
162
+ }
163
+ ],
164
+ "outputs": [],
165
+ "stateMutability": "nonpayable"
166
+ },
167
+ {
168
+ "type": "function",
169
+ "name": "disableActionPolicies",
170
+ "inputs": [
171
+ {
172
+ "name": "permissionId",
173
+ "type": "bytes32",
174
+ "internalType": "PermissionId"
175
+ },
176
+ {
177
+ "name": "actionId",
178
+ "type": "bytes32",
179
+ "internalType": "ActionId"
180
+ },
181
+ {
182
+ "name": "policies",
183
+ "type": "address[]",
184
+ "internalType": "address[]"
185
+ }
186
+ ],
187
+ "outputs": [],
188
+ "stateMutability": "nonpayable"
189
+ },
190
+ {
191
+ "type": "function",
192
+ "name": "disableERC1271Policies",
193
+ "inputs": [
194
+ {
195
+ "name": "permissionId",
196
+ "type": "bytes32",
197
+ "internalType": "PermissionId"
198
+ },
199
+ {
200
+ "name": "policies",
201
+ "type": "address[]",
202
+ "internalType": "address[]"
203
+ },
204
+ {
205
+ "name": "contexts",
206
+ "type": "tuple[]",
207
+ "internalType": "struct ERC7739Context[]",
208
+ "components": [
209
+ {
210
+ "name": "appDomainSeparator",
211
+ "type": "bytes32",
212
+ "internalType": "bytes32"
213
+ },
214
+ {
215
+ "name": "contentNames",
216
+ "type": "string[]",
217
+ "internalType": "string[]"
218
+ }
219
+ ]
220
+ }
221
+ ],
222
+ "outputs": [],
223
+ "stateMutability": "nonpayable"
224
+ },
225
+ {
226
+ "type": "function",
227
+ "name": "disableUserOpPolicies",
228
+ "inputs": [
229
+ {
230
+ "name": "permissionId",
231
+ "type": "bytes32",
232
+ "internalType": "PermissionId"
233
+ },
234
+ {
235
+ "name": "policies",
236
+ "type": "address[]",
237
+ "internalType": "address[]"
238
+ }
239
+ ],
240
+ "outputs": [],
241
+ "stateMutability": "nonpayable"
242
+ },
243
+ {
244
+ "type": "function",
245
+ "name": "enableActionPolicies",
246
+ "inputs": [
247
+ {
248
+ "name": "permissionId",
249
+ "type": "bytes32",
250
+ "internalType": "PermissionId"
251
+ },
252
+ {
253
+ "name": "actionPolicies",
254
+ "type": "tuple[]",
255
+ "internalType": "struct ActionData[]",
256
+ "components": [
257
+ {
258
+ "name": "actionTargetSelector",
259
+ "type": "bytes4",
260
+ "internalType": "bytes4"
261
+ },
262
+ {
263
+ "name": "actionTarget",
264
+ "type": "address",
265
+ "internalType": "address"
266
+ },
267
+ {
268
+ "name": "actionPolicies",
269
+ "type": "tuple[]",
270
+ "internalType": "struct PolicyData[]",
271
+ "components": [
272
+ {
273
+ "name": "policy",
274
+ "type": "address",
275
+ "internalType": "address"
276
+ },
277
+ {
278
+ "name": "initData",
279
+ "type": "bytes",
280
+ "internalType": "bytes"
281
+ }
282
+ ]
283
+ }
284
+ ]
285
+ }
286
+ ],
287
+ "outputs": [],
288
+ "stateMutability": "nonpayable"
289
+ },
290
+ {
291
+ "type": "function",
292
+ "name": "enableERC1271Policies",
293
+ "inputs": [
294
+ {
295
+ "name": "permissionId",
296
+ "type": "bytes32",
297
+ "internalType": "PermissionId"
298
+ },
299
+ {
300
+ "name": "erc1271Policies",
301
+ "type": "tuple",
302
+ "internalType": "struct ERC7739Data",
303
+ "components": [
304
+ {
305
+ "name": "allowedERC7739Content",
306
+ "type": "tuple[]",
307
+ "internalType": "struct ERC7739Context[]",
308
+ "components": [
309
+ {
310
+ "name": "appDomainSeparator",
311
+ "type": "bytes32",
312
+ "internalType": "bytes32"
313
+ },
314
+ {
315
+ "name": "contentNames",
316
+ "type": "string[]",
317
+ "internalType": "string[]"
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "name": "erc1271Policies",
323
+ "type": "tuple[]",
324
+ "internalType": "struct PolicyData[]",
325
+ "components": [
326
+ {
327
+ "name": "policy",
328
+ "type": "address",
329
+ "internalType": "address"
330
+ },
331
+ {
332
+ "name": "initData",
333
+ "type": "bytes",
334
+ "internalType": "bytes"
335
+ }
336
+ ]
337
+ }
338
+ ]
339
+ }
340
+ ],
341
+ "outputs": [],
342
+ "stateMutability": "nonpayable"
343
+ },
344
+ {
345
+ "type": "function",
346
+ "name": "enableSessions",
347
+ "inputs": [
348
+ {
349
+ "name": "sessions",
350
+ "type": "tuple[]",
351
+ "internalType": "struct Session[]",
352
+ "components": [
353
+ {
354
+ "name": "sessionValidator",
355
+ "type": "address",
356
+ "internalType": "contract ISessionValidator"
357
+ },
358
+ {
359
+ "name": "sessionValidatorInitData",
360
+ "type": "bytes",
361
+ "internalType": "bytes"
362
+ },
363
+ {
364
+ "name": "salt",
365
+ "type": "bytes32",
366
+ "internalType": "bytes32"
367
+ },
368
+ {
369
+ "name": "userOpPolicies",
370
+ "type": "tuple[]",
371
+ "internalType": "struct PolicyData[]",
372
+ "components": [
373
+ {
374
+ "name": "policy",
375
+ "type": "address",
376
+ "internalType": "address"
377
+ },
378
+ {
379
+ "name": "initData",
380
+ "type": "bytes",
381
+ "internalType": "bytes"
382
+ }
383
+ ]
384
+ },
385
+ {
386
+ "name": "erc7739Policies",
387
+ "type": "tuple",
388
+ "internalType": "struct ERC7739Data",
389
+ "components": [
390
+ {
391
+ "name": "allowedERC7739Content",
392
+ "type": "tuple[]",
393
+ "internalType": "struct ERC7739Context[]",
394
+ "components": [
395
+ {
396
+ "name": "appDomainSeparator",
397
+ "type": "bytes32",
398
+ "internalType": "bytes32"
399
+ },
400
+ {
401
+ "name": "contentNames",
402
+ "type": "string[]",
403
+ "internalType": "string[]"
404
+ }
405
+ ]
406
+ },
407
+ {
408
+ "name": "erc1271Policies",
409
+ "type": "tuple[]",
410
+ "internalType": "struct PolicyData[]",
411
+ "components": [
412
+ {
413
+ "name": "policy",
414
+ "type": "address",
415
+ "internalType": "address"
416
+ },
417
+ {
418
+ "name": "initData",
419
+ "type": "bytes",
420
+ "internalType": "bytes"
421
+ }
422
+ ]
423
+ }
424
+ ]
425
+ },
426
+ {
427
+ "name": "actions",
428
+ "type": "tuple[]",
429
+ "internalType": "struct ActionData[]",
430
+ "components": [
431
+ {
432
+ "name": "actionTargetSelector",
433
+ "type": "bytes4",
434
+ "internalType": "bytes4"
435
+ },
436
+ {
437
+ "name": "actionTarget",
438
+ "type": "address",
439
+ "internalType": "address"
440
+ },
441
+ {
442
+ "name": "actionPolicies",
443
+ "type": "tuple[]",
444
+ "internalType": "struct PolicyData[]",
445
+ "components": [
446
+ {
447
+ "name": "policy",
448
+ "type": "address",
449
+ "internalType": "address"
450
+ },
451
+ {
452
+ "name": "initData",
453
+ "type": "bytes",
454
+ "internalType": "bytes"
455
+ }
456
+ ]
457
+ }
458
+ ]
459
+ },
460
+ {
461
+ "name": "permitERC4337Paymaster",
462
+ "type": "bool",
463
+ "internalType": "bool"
464
+ }
465
+ ]
466
+ }
467
+ ],
468
+ "outputs": [
469
+ {
470
+ "name": "permissionIds",
471
+ "type": "bytes32[]",
472
+ "internalType": "PermissionId[]"
473
+ }
474
+ ],
475
+ "stateMutability": "nonpayable"
476
+ },
477
+ {
478
+ "type": "function",
479
+ "name": "enableUserOpPolicies",
480
+ "inputs": [
481
+ {
482
+ "name": "permissionId",
483
+ "type": "bytes32",
484
+ "internalType": "PermissionId"
485
+ },
486
+ {
487
+ "name": "userOpPolicies",
488
+ "type": "tuple[]",
489
+ "internalType": "struct PolicyData[]",
490
+ "components": [
491
+ {
492
+ "name": "policy",
493
+ "type": "address",
494
+ "internalType": "address"
495
+ },
496
+ {
497
+ "name": "initData",
498
+ "type": "bytes",
499
+ "internalType": "bytes"
500
+ }
501
+ ]
502
+ }
503
+ ],
504
+ "outputs": [],
505
+ "stateMutability": "nonpayable"
506
+ },
507
+ {
508
+ "type": "function",
509
+ "name": "getActionPolicies",
510
+ "inputs": [
511
+ {
512
+ "name": "account",
513
+ "type": "address",
514
+ "internalType": "address"
515
+ },
516
+ {
517
+ "name": "permissionId",
518
+ "type": "bytes32",
519
+ "internalType": "PermissionId"
520
+ },
521
+ {
522
+ "name": "actionId",
523
+ "type": "bytes32",
524
+ "internalType": "ActionId"
525
+ }
526
+ ],
527
+ "outputs": [
528
+ {
529
+ "name": "",
530
+ "type": "address[]",
531
+ "internalType": "address[]"
532
+ }
533
+ ],
534
+ "stateMutability": "view"
535
+ },
536
+ {
537
+ "type": "function",
538
+ "name": "getERC1271Policies",
539
+ "inputs": [
540
+ {
541
+ "name": "account",
542
+ "type": "address",
543
+ "internalType": "address"
544
+ },
545
+ {
546
+ "name": "permissionId",
547
+ "type": "bytes32",
548
+ "internalType": "PermissionId"
549
+ }
550
+ ],
551
+ "outputs": [
552
+ {
553
+ "name": "",
554
+ "type": "address[]",
555
+ "internalType": "address[]"
556
+ }
557
+ ],
558
+ "stateMutability": "view"
559
+ },
560
+ {
561
+ "type": "function",
562
+ "name": "getEnabledActions",
563
+ "inputs": [
564
+ {
565
+ "name": "account",
566
+ "type": "address",
567
+ "internalType": "address"
568
+ },
569
+ {
570
+ "name": "permissionId",
571
+ "type": "bytes32",
572
+ "internalType": "PermissionId"
573
+ }
574
+ ],
575
+ "outputs": [
576
+ {
577
+ "name": "",
578
+ "type": "bytes32[]",
579
+ "internalType": "bytes32[]"
580
+ }
581
+ ],
582
+ "stateMutability": "view"
583
+ },
584
+ {
585
+ "type": "function",
586
+ "name": "getEnabledERC7739Content",
587
+ "inputs": [
588
+ {
589
+ "name": "account",
590
+ "type": "address",
591
+ "internalType": "address"
592
+ },
593
+ {
594
+ "name": "permissionId",
595
+ "type": "bytes32",
596
+ "internalType": "PermissionId"
597
+ }
598
+ ],
599
+ "outputs": [
600
+ {
601
+ "name": "enabledERC7739ContentHashes",
602
+ "type": "tuple[]",
603
+ "internalType": "struct ERC7739ContextHashes[]",
604
+ "components": [
605
+ {
606
+ "name": "appDomainSeparator",
607
+ "type": "bytes32",
608
+ "internalType": "bytes32"
609
+ },
610
+ {
611
+ "name": "contentNameHashes",
612
+ "type": "bytes32[]",
613
+ "internalType": "bytes32[]"
614
+ }
615
+ ]
616
+ }
617
+ ],
618
+ "stateMutability": "view"
619
+ },
620
+ {
621
+ "type": "function",
622
+ "name": "getNonce",
623
+ "inputs": [
624
+ {
625
+ "name": "permissionId",
626
+ "type": "bytes32",
627
+ "internalType": "PermissionId"
628
+ },
629
+ {
630
+ "name": "account",
631
+ "type": "address",
632
+ "internalType": "address"
633
+ }
634
+ ],
635
+ "outputs": [
636
+ {
637
+ "name": "",
638
+ "type": "uint256",
639
+ "internalType": "uint256"
640
+ }
641
+ ],
642
+ "stateMutability": "view"
643
+ },
644
+ {
645
+ "type": "function",
646
+ "name": "getPermissionIDs",
647
+ "inputs": [
648
+ {
649
+ "name": "account",
650
+ "type": "address",
651
+ "internalType": "address"
652
+ }
653
+ ],
654
+ "outputs": [
655
+ {
656
+ "name": "permissionIds",
657
+ "type": "bytes32[]",
658
+ "internalType": "PermissionId[]"
659
+ }
660
+ ],
661
+ "stateMutability": "view"
662
+ },
663
+ {
664
+ "type": "function",
665
+ "name": "getPermissionId",
666
+ "inputs": [
667
+ {
668
+ "name": "session",
669
+ "type": "tuple",
670
+ "internalType": "struct Session",
671
+ "components": [
672
+ {
673
+ "name": "sessionValidator",
674
+ "type": "address",
675
+ "internalType": "contract ISessionValidator"
676
+ },
677
+ {
678
+ "name": "sessionValidatorInitData",
679
+ "type": "bytes",
680
+ "internalType": "bytes"
681
+ },
682
+ {
683
+ "name": "salt",
684
+ "type": "bytes32",
685
+ "internalType": "bytes32"
686
+ },
687
+ {
688
+ "name": "userOpPolicies",
689
+ "type": "tuple[]",
690
+ "internalType": "struct PolicyData[]",
691
+ "components": [
692
+ {
693
+ "name": "policy",
694
+ "type": "address",
695
+ "internalType": "address"
696
+ },
697
+ {
698
+ "name": "initData",
699
+ "type": "bytes",
700
+ "internalType": "bytes"
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ "name": "erc7739Policies",
706
+ "type": "tuple",
707
+ "internalType": "struct ERC7739Data",
708
+ "components": [
709
+ {
710
+ "name": "allowedERC7739Content",
711
+ "type": "tuple[]",
712
+ "internalType": "struct ERC7739Context[]",
713
+ "components": [
714
+ {
715
+ "name": "appDomainSeparator",
716
+ "type": "bytes32",
717
+ "internalType": "bytes32"
718
+ },
719
+ {
720
+ "name": "contentNames",
721
+ "type": "string[]",
722
+ "internalType": "string[]"
723
+ }
724
+ ]
725
+ },
726
+ {
727
+ "name": "erc1271Policies",
728
+ "type": "tuple[]",
729
+ "internalType": "struct PolicyData[]",
730
+ "components": [
731
+ {
732
+ "name": "policy",
733
+ "type": "address",
734
+ "internalType": "address"
735
+ },
736
+ {
737
+ "name": "initData",
738
+ "type": "bytes",
739
+ "internalType": "bytes"
740
+ }
741
+ ]
742
+ }
743
+ ]
744
+ },
745
+ {
746
+ "name": "actions",
747
+ "type": "tuple[]",
748
+ "internalType": "struct ActionData[]",
749
+ "components": [
750
+ {
751
+ "name": "actionTargetSelector",
752
+ "type": "bytes4",
753
+ "internalType": "bytes4"
754
+ },
755
+ {
756
+ "name": "actionTarget",
757
+ "type": "address",
758
+ "internalType": "address"
759
+ },
760
+ {
761
+ "name": "actionPolicies",
762
+ "type": "tuple[]",
763
+ "internalType": "struct PolicyData[]",
764
+ "components": [
765
+ {
766
+ "name": "policy",
767
+ "type": "address",
768
+ "internalType": "address"
769
+ },
770
+ {
771
+ "name": "initData",
772
+ "type": "bytes",
773
+ "internalType": "bytes"
774
+ }
775
+ ]
776
+ }
777
+ ]
778
+ },
779
+ {
780
+ "name": "permitERC4337Paymaster",
781
+ "type": "bool",
782
+ "internalType": "bool"
783
+ }
784
+ ]
785
+ }
786
+ ],
787
+ "outputs": [
788
+ {
789
+ "name": "permissionId",
790
+ "type": "bytes32",
791
+ "internalType": "PermissionId"
792
+ }
793
+ ],
794
+ "stateMutability": "pure"
795
+ },
796
+ {
797
+ "type": "function",
798
+ "name": "getSessionDigest",
799
+ "inputs": [
800
+ {
801
+ "name": "permissionId",
802
+ "type": "bytes32",
803
+ "internalType": "PermissionId"
804
+ },
805
+ {
806
+ "name": "account",
807
+ "type": "address",
808
+ "internalType": "address"
809
+ },
810
+ {
811
+ "name": "data",
812
+ "type": "tuple",
813
+ "internalType": "struct Session",
814
+ "components": [
815
+ {
816
+ "name": "sessionValidator",
817
+ "type": "address",
818
+ "internalType": "contract ISessionValidator"
819
+ },
820
+ {
821
+ "name": "sessionValidatorInitData",
822
+ "type": "bytes",
823
+ "internalType": "bytes"
824
+ },
825
+ {
826
+ "name": "salt",
827
+ "type": "bytes32",
828
+ "internalType": "bytes32"
829
+ },
830
+ {
831
+ "name": "userOpPolicies",
832
+ "type": "tuple[]",
833
+ "internalType": "struct PolicyData[]",
834
+ "components": [
835
+ {
836
+ "name": "policy",
837
+ "type": "address",
838
+ "internalType": "address"
839
+ },
840
+ {
841
+ "name": "initData",
842
+ "type": "bytes",
843
+ "internalType": "bytes"
844
+ }
845
+ ]
846
+ },
847
+ {
848
+ "name": "erc7739Policies",
849
+ "type": "tuple",
850
+ "internalType": "struct ERC7739Data",
851
+ "components": [
852
+ {
853
+ "name": "allowedERC7739Content",
854
+ "type": "tuple[]",
855
+ "internalType": "struct ERC7739Context[]",
856
+ "components": [
857
+ {
858
+ "name": "appDomainSeparator",
859
+ "type": "bytes32",
860
+ "internalType": "bytes32"
861
+ },
862
+ {
863
+ "name": "contentNames",
864
+ "type": "string[]",
865
+ "internalType": "string[]"
866
+ }
867
+ ]
868
+ },
869
+ {
870
+ "name": "erc1271Policies",
871
+ "type": "tuple[]",
872
+ "internalType": "struct PolicyData[]",
873
+ "components": [
874
+ {
875
+ "name": "policy",
876
+ "type": "address",
877
+ "internalType": "address"
878
+ },
879
+ {
880
+ "name": "initData",
881
+ "type": "bytes",
882
+ "internalType": "bytes"
883
+ }
884
+ ]
885
+ }
886
+ ]
887
+ },
888
+ {
889
+ "name": "actions",
890
+ "type": "tuple[]",
891
+ "internalType": "struct ActionData[]",
892
+ "components": [
893
+ {
894
+ "name": "actionTargetSelector",
895
+ "type": "bytes4",
896
+ "internalType": "bytes4"
897
+ },
898
+ {
899
+ "name": "actionTarget",
900
+ "type": "address",
901
+ "internalType": "address"
902
+ },
903
+ {
904
+ "name": "actionPolicies",
905
+ "type": "tuple[]",
906
+ "internalType": "struct PolicyData[]",
907
+ "components": [
908
+ {
909
+ "name": "policy",
910
+ "type": "address",
911
+ "internalType": "address"
912
+ },
913
+ {
914
+ "name": "initData",
915
+ "type": "bytes",
916
+ "internalType": "bytes"
917
+ }
918
+ ]
919
+ }
920
+ ]
921
+ },
922
+ {
923
+ "name": "permitERC4337Paymaster",
924
+ "type": "bool",
925
+ "internalType": "bool"
926
+ }
927
+ ]
928
+ },
929
+ {
930
+ "name": "mode",
931
+ "type": "uint8",
932
+ "internalType": "enum SmartSessionMode"
933
+ }
934
+ ],
935
+ "outputs": [
936
+ {
937
+ "name": "",
938
+ "type": "bytes32",
939
+ "internalType": "bytes32"
940
+ }
941
+ ],
942
+ "stateMutability": "view"
943
+ },
944
+ {
945
+ "type": "function",
946
+ "name": "getSessionValidatorAndConfig",
947
+ "inputs": [
948
+ {
949
+ "name": "account",
950
+ "type": "address",
951
+ "internalType": "address"
952
+ },
953
+ {
954
+ "name": "permissionId",
955
+ "type": "bytes32",
956
+ "internalType": "PermissionId"
957
+ }
958
+ ],
959
+ "outputs": [
960
+ {
961
+ "name": "sessionValidator",
962
+ "type": "address",
963
+ "internalType": "address"
964
+ },
965
+ {
966
+ "name": "sessionValidatorData",
967
+ "type": "bytes",
968
+ "internalType": "bytes"
969
+ }
970
+ ],
971
+ "stateMutability": "view"
972
+ },
973
+ {
974
+ "type": "function",
975
+ "name": "getUserOpPolicies",
976
+ "inputs": [
977
+ {
978
+ "name": "account",
979
+ "type": "address",
980
+ "internalType": "address"
981
+ },
982
+ {
983
+ "name": "permissionId",
984
+ "type": "bytes32",
985
+ "internalType": "PermissionId"
986
+ }
987
+ ],
988
+ "outputs": [
989
+ {
990
+ "name": "",
991
+ "type": "address[]",
992
+ "internalType": "address[]"
993
+ }
994
+ ],
995
+ "stateMutability": "view"
996
+ },
997
+ {
998
+ "type": "function",
999
+ "name": "isActionIdEnabled",
1000
+ "inputs": [
1001
+ {
1002
+ "name": "account",
1003
+ "type": "address",
1004
+ "internalType": "address"
1005
+ },
1006
+ {
1007
+ "name": "permissionId",
1008
+ "type": "bytes32",
1009
+ "internalType": "PermissionId"
1010
+ },
1011
+ {
1012
+ "name": "actionId",
1013
+ "type": "bytes32",
1014
+ "internalType": "ActionId"
1015
+ }
1016
+ ],
1017
+ "outputs": [
1018
+ {
1019
+ "name": "",
1020
+ "type": "bool",
1021
+ "internalType": "bool"
1022
+ }
1023
+ ],
1024
+ "stateMutability": "view"
1025
+ },
1026
+ {
1027
+ "type": "function",
1028
+ "name": "isActionPolicyEnabled",
1029
+ "inputs": [
1030
+ {
1031
+ "name": "account",
1032
+ "type": "address",
1033
+ "internalType": "address"
1034
+ },
1035
+ {
1036
+ "name": "permissionId",
1037
+ "type": "bytes32",
1038
+ "internalType": "PermissionId"
1039
+ },
1040
+ {
1041
+ "name": "actionId",
1042
+ "type": "bytes32",
1043
+ "internalType": "ActionId"
1044
+ },
1045
+ {
1046
+ "name": "policy",
1047
+ "type": "address",
1048
+ "internalType": "address"
1049
+ }
1050
+ ],
1051
+ "outputs": [
1052
+ {
1053
+ "name": "",
1054
+ "type": "bool",
1055
+ "internalType": "bool"
1056
+ }
1057
+ ],
1058
+ "stateMutability": "view"
1059
+ },
1060
+ {
1061
+ "type": "function",
1062
+ "name": "isERC1271PolicyEnabled",
1063
+ "inputs": [
1064
+ {
1065
+ "name": "account",
1066
+ "type": "address",
1067
+ "internalType": "address"
1068
+ },
1069
+ {
1070
+ "name": "permissionId",
1071
+ "type": "bytes32",
1072
+ "internalType": "PermissionId"
1073
+ },
1074
+ {
1075
+ "name": "policy",
1076
+ "type": "address",
1077
+ "internalType": "address"
1078
+ }
1079
+ ],
1080
+ "outputs": [
1081
+ {
1082
+ "name": "",
1083
+ "type": "bool",
1084
+ "internalType": "bool"
1085
+ }
1086
+ ],
1087
+ "stateMutability": "view"
1088
+ },
1089
+ {
1090
+ "type": "function",
1091
+ "name": "isERC7739ContentEnabled",
1092
+ "inputs": [
1093
+ {
1094
+ "name": "account",
1095
+ "type": "address",
1096
+ "internalType": "address"
1097
+ },
1098
+ {
1099
+ "name": "permissionId",
1100
+ "type": "bytes32",
1101
+ "internalType": "PermissionId"
1102
+ },
1103
+ {
1104
+ "name": "appDomainSeparator",
1105
+ "type": "bytes32",
1106
+ "internalType": "bytes32"
1107
+ },
1108
+ {
1109
+ "name": "content",
1110
+ "type": "string",
1111
+ "internalType": "string"
1112
+ }
1113
+ ],
1114
+ "outputs": [
1115
+ {
1116
+ "name": "",
1117
+ "type": "bool",
1118
+ "internalType": "bool"
1119
+ }
1120
+ ],
1121
+ "stateMutability": "view"
1122
+ },
1123
+ {
1124
+ "type": "function",
1125
+ "name": "isISessionValidatorSet",
1126
+ "inputs": [
1127
+ {
1128
+ "name": "permissionId",
1129
+ "type": "bytes32",
1130
+ "internalType": "PermissionId"
1131
+ },
1132
+ {
1133
+ "name": "account",
1134
+ "type": "address",
1135
+ "internalType": "address"
1136
+ }
1137
+ ],
1138
+ "outputs": [
1139
+ {
1140
+ "name": "",
1141
+ "type": "bool",
1142
+ "internalType": "bool"
1143
+ }
1144
+ ],
1145
+ "stateMutability": "view"
1146
+ },
1147
+ {
1148
+ "type": "function",
1149
+ "name": "isInitialized",
1150
+ "inputs": [
1151
+ {
1152
+ "name": "smartAccount",
1153
+ "type": "address",
1154
+ "internalType": "address"
1155
+ }
1156
+ ],
1157
+ "outputs": [
1158
+ {
1159
+ "name": "",
1160
+ "type": "bool",
1161
+ "internalType": "bool"
1162
+ }
1163
+ ],
1164
+ "stateMutability": "view"
1165
+ },
1166
+ {
1167
+ "type": "function",
1168
+ "name": "isModuleType",
1169
+ "inputs": [
1170
+ {
1171
+ "name": "typeID",
1172
+ "type": "uint256",
1173
+ "internalType": "uint256"
1174
+ }
1175
+ ],
1176
+ "outputs": [
1177
+ {
1178
+ "name": "",
1179
+ "type": "bool",
1180
+ "internalType": "bool"
1181
+ }
1182
+ ],
1183
+ "stateMutability": "pure"
1184
+ },
1185
+ {
1186
+ "type": "function",
1187
+ "name": "isPermissionEnabled",
1188
+ "inputs": [
1189
+ {
1190
+ "name": "permissionId",
1191
+ "type": "bytes32",
1192
+ "internalType": "PermissionId"
1193
+ },
1194
+ {
1195
+ "name": "account",
1196
+ "type": "address",
1197
+ "internalType": "address"
1198
+ }
1199
+ ],
1200
+ "outputs": [
1201
+ {
1202
+ "name": "",
1203
+ "type": "bool",
1204
+ "internalType": "bool"
1205
+ }
1206
+ ],
1207
+ "stateMutability": "view"
1208
+ },
1209
+ {
1210
+ "type": "function",
1211
+ "name": "isUserOpPolicyEnabled",
1212
+ "inputs": [
1213
+ {
1214
+ "name": "account",
1215
+ "type": "address",
1216
+ "internalType": "address"
1217
+ },
1218
+ {
1219
+ "name": "permissionId",
1220
+ "type": "bytes32",
1221
+ "internalType": "PermissionId"
1222
+ },
1223
+ {
1224
+ "name": "policy",
1225
+ "type": "address",
1226
+ "internalType": "address"
1227
+ }
1228
+ ],
1229
+ "outputs": [
1230
+ {
1231
+ "name": "",
1232
+ "type": "bool",
1233
+ "internalType": "bool"
1234
+ }
1235
+ ],
1236
+ "stateMutability": "view"
1237
+ },
1238
+ {
1239
+ "type": "function",
1240
+ "name": "isValidSignatureWithSender",
1241
+ "inputs": [
1242
+ {
1243
+ "name": "sender",
1244
+ "type": "address",
1245
+ "internalType": "address"
1246
+ },
1247
+ {
1248
+ "name": "hash",
1249
+ "type": "bytes32",
1250
+ "internalType": "bytes32"
1251
+ },
1252
+ {
1253
+ "name": "signature",
1254
+ "type": "bytes",
1255
+ "internalType": "bytes"
1256
+ }
1257
+ ],
1258
+ "outputs": [
1259
+ {
1260
+ "name": "result",
1261
+ "type": "bytes4",
1262
+ "internalType": "bytes4"
1263
+ }
1264
+ ],
1265
+ "stateMutability": "view"
1266
+ },
1267
+ {
1268
+ "type": "function",
1269
+ "name": "onInstall",
1270
+ "inputs": [
1271
+ {
1272
+ "name": "data",
1273
+ "type": "bytes",
1274
+ "internalType": "bytes"
1275
+ }
1276
+ ],
1277
+ "outputs": [],
1278
+ "stateMutability": "nonpayable"
1279
+ },
1280
+ {
1281
+ "type": "function",
1282
+ "name": "onUninstall",
1283
+ "inputs": [
1284
+ {
1285
+ "name": "",
1286
+ "type": "bytes",
1287
+ "internalType": "bytes"
1288
+ }
1289
+ ],
1290
+ "outputs": [],
1291
+ "stateMutability": "nonpayable"
1292
+ },
1293
+ {
1294
+ "type": "function",
1295
+ "name": "removeSession",
1296
+ "inputs": [
1297
+ {
1298
+ "name": "permissionId",
1299
+ "type": "bytes32",
1300
+ "internalType": "PermissionId"
1301
+ }
1302
+ ],
1303
+ "outputs": [],
1304
+ "stateMutability": "nonpayable"
1305
+ },
1306
+ {
1307
+ "type": "function",
1308
+ "name": "revokeEnableSignature",
1309
+ "inputs": [
1310
+ {
1311
+ "name": "permissionId",
1312
+ "type": "bytes32",
1313
+ "internalType": "PermissionId"
1314
+ }
1315
+ ],
1316
+ "outputs": [],
1317
+ "stateMutability": "nonpayable"
1318
+ },
1319
+ {
1320
+ "type": "function",
1321
+ "name": "setPermit4337Paymaster",
1322
+ "inputs": [
1323
+ {
1324
+ "name": "permissionId",
1325
+ "type": "bytes32",
1326
+ "internalType": "PermissionId"
1327
+ },
1328
+ {
1329
+ "name": "enabled",
1330
+ "type": "bool",
1331
+ "internalType": "bool"
1332
+ }
1333
+ ],
1334
+ "outputs": [],
1335
+ "stateMutability": "nonpayable"
1336
+ },
1337
+ {
1338
+ "type": "function",
1339
+ "name": "validateUserOp",
1340
+ "inputs": [
1341
+ {
1342
+ "name": "userOp",
1343
+ "type": "tuple",
1344
+ "internalType": "struct PackedUserOperation",
1345
+ "components": [
1346
+ {
1347
+ "name": "sender",
1348
+ "type": "address",
1349
+ "internalType": "address"
1350
+ },
1351
+ {
1352
+ "name": "nonce",
1353
+ "type": "uint256",
1354
+ "internalType": "uint256"
1355
+ },
1356
+ {
1357
+ "name": "initCode",
1358
+ "type": "bytes",
1359
+ "internalType": "bytes"
1360
+ },
1361
+ {
1362
+ "name": "callData",
1363
+ "type": "bytes",
1364
+ "internalType": "bytes"
1365
+ },
1366
+ {
1367
+ "name": "accountGasLimits",
1368
+ "type": "bytes32",
1369
+ "internalType": "bytes32"
1370
+ },
1371
+ {
1372
+ "name": "preVerificationGas",
1373
+ "type": "uint256",
1374
+ "internalType": "uint256"
1375
+ },
1376
+ {
1377
+ "name": "gasFees",
1378
+ "type": "bytes32",
1379
+ "internalType": "bytes32"
1380
+ },
1381
+ {
1382
+ "name": "paymasterAndData",
1383
+ "type": "bytes",
1384
+ "internalType": "bytes"
1385
+ },
1386
+ {
1387
+ "name": "signature",
1388
+ "type": "bytes",
1389
+ "internalType": "bytes"
1390
+ }
1391
+ ]
1392
+ },
1393
+ {
1394
+ "name": "userOpHash",
1395
+ "type": "bytes32",
1396
+ "internalType": "bytes32"
1397
+ }
1398
+ ],
1399
+ "outputs": [
1400
+ {
1401
+ "name": "vd",
1402
+ "type": "uint256",
1403
+ "internalType": "ValidationData"
1404
+ }
1405
+ ],
1406
+ "stateMutability": "nonpayable"
1407
+ },
1408
+ {
1409
+ "type": "event",
1410
+ "name": "ActionIdDisabled",
1411
+ "inputs": [
1412
+ {
1413
+ "name": "permissionId",
1414
+ "type": "bytes32",
1415
+ "indexed": false,
1416
+ "internalType": "PermissionId"
1417
+ },
1418
+ {
1419
+ "name": "actionId",
1420
+ "type": "bytes32",
1421
+ "indexed": false,
1422
+ "internalType": "ActionId"
1423
+ },
1424
+ {
1425
+ "name": "smartAccount",
1426
+ "type": "address",
1427
+ "indexed": false,
1428
+ "internalType": "address"
1429
+ }
1430
+ ],
1431
+ "anonymous": false
1432
+ },
1433
+ {
1434
+ "type": "event",
1435
+ "name": "NonceIterated",
1436
+ "inputs": [
1437
+ {
1438
+ "name": "permissionId",
1439
+ "type": "bytes32",
1440
+ "indexed": false,
1441
+ "internalType": "PermissionId"
1442
+ },
1443
+ {
1444
+ "name": "account",
1445
+ "type": "address",
1446
+ "indexed": false,
1447
+ "internalType": "address"
1448
+ },
1449
+ {
1450
+ "name": "newValue",
1451
+ "type": "uint256",
1452
+ "indexed": false,
1453
+ "internalType": "uint256"
1454
+ }
1455
+ ],
1456
+ "anonymous": false
1457
+ },
1458
+ {
1459
+ "type": "event",
1460
+ "name": "PermissionIdPermit4337Paymaster",
1461
+ "inputs": [
1462
+ {
1463
+ "name": "permissionId",
1464
+ "type": "bytes32",
1465
+ "indexed": false,
1466
+ "internalType": "PermissionId"
1467
+ },
1468
+ {
1469
+ "name": "smartAccount",
1470
+ "type": "address",
1471
+ "indexed": false,
1472
+ "internalType": "address"
1473
+ },
1474
+ {
1475
+ "name": "enabled",
1476
+ "type": "bool",
1477
+ "indexed": false,
1478
+ "internalType": "bool"
1479
+ }
1480
+ ],
1481
+ "anonymous": false
1482
+ },
1483
+ {
1484
+ "type": "event",
1485
+ "name": "PolicyDisabled",
1486
+ "inputs": [
1487
+ {
1488
+ "name": "permissionId",
1489
+ "type": "bytes32",
1490
+ "indexed": false,
1491
+ "internalType": "PermissionId"
1492
+ },
1493
+ {
1494
+ "name": "policyType",
1495
+ "type": "uint8",
1496
+ "indexed": false,
1497
+ "internalType": "enum PolicyType"
1498
+ },
1499
+ {
1500
+ "name": "policy",
1501
+ "type": "address",
1502
+ "indexed": false,
1503
+ "internalType": "address"
1504
+ },
1505
+ {
1506
+ "name": "smartAccount",
1507
+ "type": "address",
1508
+ "indexed": false,
1509
+ "internalType": "address"
1510
+ }
1511
+ ],
1512
+ "anonymous": false
1513
+ },
1514
+ {
1515
+ "type": "event",
1516
+ "name": "PolicyEnabled",
1517
+ "inputs": [
1518
+ {
1519
+ "name": "permissionId",
1520
+ "type": "bytes32",
1521
+ "indexed": false,
1522
+ "internalType": "PermissionId"
1523
+ },
1524
+ {
1525
+ "name": "policyType",
1526
+ "type": "uint8",
1527
+ "indexed": false,
1528
+ "internalType": "enum PolicyType"
1529
+ },
1530
+ {
1531
+ "name": "policy",
1532
+ "type": "address",
1533
+ "indexed": false,
1534
+ "internalType": "address"
1535
+ },
1536
+ {
1537
+ "name": "smartAccount",
1538
+ "type": "address",
1539
+ "indexed": false,
1540
+ "internalType": "address"
1541
+ }
1542
+ ],
1543
+ "anonymous": false
1544
+ },
1545
+ {
1546
+ "type": "event",
1547
+ "name": "SessionCreated",
1548
+ "inputs": [
1549
+ {
1550
+ "name": "permissionId",
1551
+ "type": "bytes32",
1552
+ "indexed": false,
1553
+ "internalType": "PermissionId"
1554
+ },
1555
+ {
1556
+ "name": "account",
1557
+ "type": "address",
1558
+ "indexed": false,
1559
+ "internalType": "address"
1560
+ }
1561
+ ],
1562
+ "anonymous": false
1563
+ },
1564
+ {
1565
+ "type": "event",
1566
+ "name": "SessionRemoved",
1567
+ "inputs": [
1568
+ {
1569
+ "name": "permissionId",
1570
+ "type": "bytes32",
1571
+ "indexed": false,
1572
+ "internalType": "PermissionId"
1573
+ },
1574
+ {
1575
+ "name": "smartAccount",
1576
+ "type": "address",
1577
+ "indexed": false,
1578
+ "internalType": "address"
1579
+ }
1580
+ ],
1581
+ "anonymous": false
1582
+ },
1583
+ {
1584
+ "type": "event",
1585
+ "name": "SessionValidatorDisabled",
1586
+ "inputs": [
1587
+ {
1588
+ "name": "permissionId",
1589
+ "type": "bytes32",
1590
+ "indexed": false,
1591
+ "internalType": "PermissionId"
1592
+ },
1593
+ {
1594
+ "name": "sessionValidator",
1595
+ "type": "address",
1596
+ "indexed": false,
1597
+ "internalType": "address"
1598
+ },
1599
+ {
1600
+ "name": "smartAccount",
1601
+ "type": "address",
1602
+ "indexed": false,
1603
+ "internalType": "address"
1604
+ }
1605
+ ],
1606
+ "anonymous": false
1607
+ },
1608
+ {
1609
+ "type": "event",
1610
+ "name": "SessionValidatorEnabled",
1611
+ "inputs": [
1612
+ {
1613
+ "name": "permissionId",
1614
+ "type": "bytes32",
1615
+ "indexed": false,
1616
+ "internalType": "PermissionId"
1617
+ },
1618
+ {
1619
+ "name": "sessionValidator",
1620
+ "type": "address",
1621
+ "indexed": false,
1622
+ "internalType": "address"
1623
+ },
1624
+ {
1625
+ "name": "smartAccount",
1626
+ "type": "address",
1627
+ "indexed": false,
1628
+ "internalType": "address"
1629
+ }
1630
+ ],
1631
+ "anonymous": false
1632
+ },
1633
+ {
1634
+ "type": "error",
1635
+ "name": "AssociatedArray_OutOfBounds",
1636
+ "inputs": [
1637
+ {
1638
+ "name": "index",
1639
+ "type": "uint256",
1640
+ "internalType": "uint256"
1641
+ }
1642
+ ]
1643
+ },
1644
+ {
1645
+ "type": "error",
1646
+ "name": "ChainIdMismatch",
1647
+ "inputs": [
1648
+ {
1649
+ "name": "providedChainId",
1650
+ "type": "uint64",
1651
+ "internalType": "uint64"
1652
+ }
1653
+ ]
1654
+ },
1655
+ {
1656
+ "type": "error",
1657
+ "name": "ChainIdMismatch",
1658
+ "inputs": [
1659
+ {
1660
+ "name": "providedChainId",
1661
+ "type": "uint64",
1662
+ "internalType": "uint64"
1663
+ }
1664
+ ]
1665
+ },
1666
+ {
1667
+ "type": "error",
1668
+ "name": "ForbiddenValidationData",
1669
+ "inputs": []
1670
+ },
1671
+ {
1672
+ "type": "error",
1673
+ "name": "HashIndexOutOfBounds",
1674
+ "inputs": [
1675
+ {
1676
+ "name": "index",
1677
+ "type": "uint256",
1678
+ "internalType": "uint256"
1679
+ }
1680
+ ]
1681
+ },
1682
+ {
1683
+ "type": "error",
1684
+ "name": "HashMismatch",
1685
+ "inputs": [
1686
+ {
1687
+ "name": "providedHash",
1688
+ "type": "bytes32",
1689
+ "internalType": "bytes32"
1690
+ },
1691
+ {
1692
+ "name": "computedHash",
1693
+ "type": "bytes32",
1694
+ "internalType": "bytes32"
1695
+ }
1696
+ ]
1697
+ },
1698
+ {
1699
+ "type": "error",
1700
+ "name": "HashMismatch",
1701
+ "inputs": [
1702
+ {
1703
+ "name": "providedHash",
1704
+ "type": "bytes32",
1705
+ "internalType": "bytes32"
1706
+ },
1707
+ {
1708
+ "name": "computedHash",
1709
+ "type": "bytes32",
1710
+ "internalType": "bytes32"
1711
+ }
1712
+ ]
1713
+ },
1714
+ {
1715
+ "type": "error",
1716
+ "name": "InvalidActionId",
1717
+ "inputs": []
1718
+ },
1719
+ {
1720
+ "type": "error",
1721
+ "name": "InvalidCallTarget",
1722
+ "inputs": []
1723
+ },
1724
+ {
1725
+ "type": "error",
1726
+ "name": "InvalidData",
1727
+ "inputs": []
1728
+ },
1729
+ {
1730
+ "type": "error",
1731
+ "name": "InvalidEnableSignature",
1732
+ "inputs": [
1733
+ {
1734
+ "name": "account",
1735
+ "type": "address",
1736
+ "internalType": "address"
1737
+ },
1738
+ {
1739
+ "name": "hash",
1740
+ "type": "bytes32",
1741
+ "internalType": "bytes32"
1742
+ }
1743
+ ]
1744
+ },
1745
+ {
1746
+ "type": "error",
1747
+ "name": "InvalidISessionValidator",
1748
+ "inputs": [
1749
+ {
1750
+ "name": "sessionValidator",
1751
+ "type": "address",
1752
+ "internalType": "contract ISessionValidator"
1753
+ }
1754
+ ]
1755
+ },
1756
+ {
1757
+ "type": "error",
1758
+ "name": "InvalidMode",
1759
+ "inputs": []
1760
+ },
1761
+ {
1762
+ "type": "error",
1763
+ "name": "InvalidPermissionId",
1764
+ "inputs": [
1765
+ {
1766
+ "name": "permissionId",
1767
+ "type": "bytes32",
1768
+ "internalType": "PermissionId"
1769
+ }
1770
+ ]
1771
+ },
1772
+ {
1773
+ "type": "error",
1774
+ "name": "InvalidSelfCall",
1775
+ "inputs": []
1776
+ },
1777
+ {
1778
+ "type": "error",
1779
+ "name": "InvalidSession",
1780
+ "inputs": [
1781
+ {
1782
+ "name": "permissionId",
1783
+ "type": "bytes32",
1784
+ "internalType": "PermissionId"
1785
+ }
1786
+ ]
1787
+ },
1788
+ {
1789
+ "type": "error",
1790
+ "name": "InvalidSessionKeySignature",
1791
+ "inputs": [
1792
+ {
1793
+ "name": "permissionId",
1794
+ "type": "bytes32",
1795
+ "internalType": "PermissionId"
1796
+ },
1797
+ {
1798
+ "name": "sessionValidator",
1799
+ "type": "address",
1800
+ "internalType": "address"
1801
+ },
1802
+ {
1803
+ "name": "account",
1804
+ "type": "address",
1805
+ "internalType": "address"
1806
+ },
1807
+ {
1808
+ "name": "userOpHash",
1809
+ "type": "bytes32",
1810
+ "internalType": "bytes32"
1811
+ }
1812
+ ]
1813
+ },
1814
+ {
1815
+ "type": "error",
1816
+ "name": "InvalidTarget",
1817
+ "inputs": []
1818
+ },
1819
+ {
1820
+ "type": "error",
1821
+ "name": "InvalidUserOpSender",
1822
+ "inputs": [
1823
+ {
1824
+ "name": "sender",
1825
+ "type": "address",
1826
+ "internalType": "address"
1827
+ }
1828
+ ]
1829
+ },
1830
+ {
1831
+ "type": "error",
1832
+ "name": "NoExecutionsInBatch",
1833
+ "inputs": []
1834
+ },
1835
+ {
1836
+ "type": "error",
1837
+ "name": "NoPoliciesSet",
1838
+ "inputs": [
1839
+ {
1840
+ "name": "permissionId",
1841
+ "type": "bytes32",
1842
+ "internalType": "PermissionId"
1843
+ }
1844
+ ]
1845
+ },
1846
+ {
1847
+ "type": "error",
1848
+ "name": "PartlyEnabledActions",
1849
+ "inputs": []
1850
+ },
1851
+ {
1852
+ "type": "error",
1853
+ "name": "PartlyEnabledPolicies",
1854
+ "inputs": []
1855
+ },
1856
+ {
1857
+ "type": "error",
1858
+ "name": "PaymasterValidationNotEnabled",
1859
+ "inputs": [
1860
+ {
1861
+ "name": "permissionId",
1862
+ "type": "bytes32",
1863
+ "internalType": "PermissionId"
1864
+ }
1865
+ ]
1866
+ },
1867
+ {
1868
+ "type": "error",
1869
+ "name": "PolicyViolation",
1870
+ "inputs": [
1871
+ {
1872
+ "name": "permissionId",
1873
+ "type": "bytes32",
1874
+ "internalType": "PermissionId"
1875
+ },
1876
+ {
1877
+ "name": "policy",
1878
+ "type": "address",
1879
+ "internalType": "address"
1880
+ }
1881
+ ]
1882
+ },
1883
+ {
1884
+ "type": "error",
1885
+ "name": "SignerNotFound",
1886
+ "inputs": [
1887
+ {
1888
+ "name": "permissionId",
1889
+ "type": "bytes32",
1890
+ "internalType": "PermissionId"
1891
+ },
1892
+ {
1893
+ "name": "account",
1894
+ "type": "address",
1895
+ "internalType": "address"
1896
+ }
1897
+ ]
1898
+ },
1899
+ {
1900
+ "type": "error",
1901
+ "name": "SignerNotFound",
1902
+ "inputs": [
1903
+ {
1904
+ "name": "permissionId",
1905
+ "type": "bytes32",
1906
+ "internalType": "PermissionId"
1907
+ },
1908
+ {
1909
+ "name": "account",
1910
+ "type": "address",
1911
+ "internalType": "address"
1912
+ }
1913
+ ]
1914
+ },
1915
+ {
1916
+ "type": "error",
1917
+ "name": "SmartSessionModuleAlreadyInstalled",
1918
+ "inputs": [
1919
+ {
1920
+ "name": "account",
1921
+ "type": "address",
1922
+ "internalType": "address"
1923
+ }
1924
+ ]
1925
+ },
1926
+ {
1927
+ "type": "error",
1928
+ "name": "UnsupportedCallType",
1929
+ "inputs": [
1930
+ {
1931
+ "name": "callType",
1932
+ "type": "bytes1",
1933
+ "internalType": "CallType"
1934
+ }
1935
+ ]
1936
+ },
1937
+ {
1938
+ "type": "error",
1939
+ "name": "UnsupportedExecutionType",
1940
+ "inputs": []
1941
+ },
1942
+ {
1943
+ "type": "error",
1944
+ "name": "UnsupportedPolicy",
1945
+ "inputs": [
1946
+ {
1947
+ "name": "policy",
1948
+ "type": "address",
1949
+ "internalType": "address"
1950
+ }
1951
+ ]
1952
+ },
1953
+ {
1954
+ "type": "error",
1955
+ "name": "UnsupportedSmartSessionMode",
1956
+ "inputs": [
1957
+ {
1958
+ "name": "mode",
1959
+ "type": "uint8",
1960
+ "internalType": "enum SmartSessionMode"
1961
+ }
1962
+ ]
1963
+ }
1964
+ ];
1965
+ //# sourceMappingURL=smart-session.js.map