@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,2187 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UNIVERSAL_RULES_POLICY_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/policy.json
6
+ // push-agentic-wallets@ffd567d3e49b2d27c6f50ad36093274dbac3090f
7
+ // sha256(UniversalRulesPolicy.json) = a07661d19b19656afdea560275d45669a908cd96646817884295e0017560f299
8
+ exports.UNIVERSAL_RULES_POLICY_ABI = [
9
+ {
10
+ "type": "function",
11
+ "name": "SEND_OUTBOUND_SELECTOR",
12
+ "inputs": [],
13
+ "outputs": [
14
+ {
15
+ "name": "",
16
+ "type": "bytes4",
17
+ "internalType": "bytes4"
18
+ }
19
+ ],
20
+ "stateMutability": "view"
21
+ },
22
+ {
23
+ "type": "function",
24
+ "name": "SESSION_ENGINE",
25
+ "inputs": [],
26
+ "outputs": [
27
+ {
28
+ "name": "",
29
+ "type": "address",
30
+ "internalType": "address"
31
+ }
32
+ ],
33
+ "stateMutability": "view"
34
+ },
35
+ {
36
+ "type": "function",
37
+ "name": "UNIVERSAL_EXECUTOR_MODULE",
38
+ "inputs": [],
39
+ "outputs": [
40
+ {
41
+ "name": "",
42
+ "type": "address",
43
+ "internalType": "address"
44
+ }
45
+ ],
46
+ "stateMutability": "view"
47
+ },
48
+ {
49
+ "type": "function",
50
+ "name": "UNIVERSAL_GATEWAY_PC",
51
+ "inputs": [],
52
+ "outputs": [
53
+ {
54
+ "name": "",
55
+ "type": "address",
56
+ "internalType": "address"
57
+ }
58
+ ],
59
+ "stateMutability": "view"
60
+ },
61
+ {
62
+ "type": "function",
63
+ "name": "assertSpent",
64
+ "inputs": [
65
+ {
66
+ "name": "id",
67
+ "type": "bytes32",
68
+ "internalType": "ConfigId"
69
+ },
70
+ {
71
+ "name": "account",
72
+ "type": "address",
73
+ "internalType": "address"
74
+ },
75
+ {
76
+ "name": "expectedValueSpent",
77
+ "type": "uint256",
78
+ "internalType": "uint256"
79
+ },
80
+ {
81
+ "name": "expectedAmountSpent",
82
+ "type": "uint256",
83
+ "internalType": "uint256"
84
+ },
85
+ {
86
+ "name": "expectedCalls",
87
+ "type": "uint32",
88
+ "internalType": "uint32"
89
+ }
90
+ ],
91
+ "outputs": [],
92
+ "stateMutability": "view"
93
+ },
94
+ {
95
+ "type": "function",
96
+ "name": "assertSpent",
97
+ "inputs": [
98
+ {
99
+ "name": "id",
100
+ "type": "bytes32",
101
+ "internalType": "ConfigId"
102
+ },
103
+ {
104
+ "name": "account",
105
+ "type": "address",
106
+ "internalType": "address"
107
+ },
108
+ {
109
+ "name": "expectedSpent",
110
+ "type": "uint256[]",
111
+ "internalType": "uint256[]"
112
+ }
113
+ ],
114
+ "outputs": [],
115
+ "stateMutability": "view"
116
+ },
117
+ {
118
+ "type": "function",
119
+ "name": "checkAction",
120
+ "inputs": [
121
+ {
122
+ "name": "id",
123
+ "type": "bytes32",
124
+ "internalType": "ConfigId"
125
+ },
126
+ {
127
+ "name": "account",
128
+ "type": "address",
129
+ "internalType": "address"
130
+ },
131
+ {
132
+ "name": "target",
133
+ "type": "address",
134
+ "internalType": "address"
135
+ },
136
+ {
137
+ "name": "value",
138
+ "type": "uint256",
139
+ "internalType": "uint256"
140
+ },
141
+ {
142
+ "name": "data",
143
+ "type": "bytes",
144
+ "internalType": "bytes"
145
+ }
146
+ ],
147
+ "outputs": [
148
+ {
149
+ "name": "",
150
+ "type": "uint256",
151
+ "internalType": "uint256"
152
+ }
153
+ ],
154
+ "stateMutability": "nonpayable"
155
+ },
156
+ {
157
+ "type": "function",
158
+ "name": "creditRevert",
159
+ "inputs": [
160
+ {
161
+ "name": "id",
162
+ "type": "bytes32",
163
+ "internalType": "ConfigId"
164
+ },
165
+ {
166
+ "name": "account",
167
+ "type": "address",
168
+ "internalType": "address"
169
+ },
170
+ {
171
+ "name": "outboundTxId",
172
+ "type": "bytes32",
173
+ "internalType": "bytes32"
174
+ },
175
+ {
176
+ "name": "token",
177
+ "type": "address",
178
+ "internalType": "address"
179
+ },
180
+ {
181
+ "name": "amount",
182
+ "type": "uint256",
183
+ "internalType": "uint256"
184
+ }
185
+ ],
186
+ "outputs": [],
187
+ "stateMutability": "nonpayable"
188
+ },
189
+ {
190
+ "type": "function",
191
+ "name": "getConfig",
192
+ "inputs": [
193
+ {
194
+ "name": "id",
195
+ "type": "bytes32",
196
+ "internalType": "ConfigId"
197
+ },
198
+ {
199
+ "name": "account",
200
+ "type": "address",
201
+ "internalType": "address"
202
+ }
203
+ ],
204
+ "outputs": [
205
+ {
206
+ "name": "",
207
+ "type": "tuple",
208
+ "internalType": "struct Config",
209
+ "components": [
210
+ {
211
+ "name": "initialized",
212
+ "type": "bool",
213
+ "internalType": "bool"
214
+ },
215
+ {
216
+ "name": "validUntil",
217
+ "type": "uint48",
218
+ "internalType": "uint48"
219
+ },
220
+ {
221
+ "name": "expectedCEA",
222
+ "type": "address",
223
+ "internalType": "address"
224
+ },
225
+ {
226
+ "name": "maxGasPerCall",
227
+ "type": "uint256",
228
+ "internalType": "uint256"
229
+ },
230
+ {
231
+ "name": "assets",
232
+ "type": "tuple[]",
233
+ "internalType": "struct AssetCapState[]",
234
+ "components": [
235
+ {
236
+ "name": "token",
237
+ "type": "address",
238
+ "internalType": "address"
239
+ },
240
+ {
241
+ "name": "maxPerCall",
242
+ "type": "uint256",
243
+ "internalType": "uint256"
244
+ },
245
+ {
246
+ "name": "maxTotal",
247
+ "type": "uint256",
248
+ "internalType": "uint256"
249
+ },
250
+ {
251
+ "name": "spent",
252
+ "type": "uint256",
253
+ "internalType": "uint256"
254
+ }
255
+ ]
256
+ },
257
+ {
258
+ "name": "allowedCalls",
259
+ "type": "tuple[]",
260
+ "internalType": "struct AllowedCall[]",
261
+ "components": [
262
+ {
263
+ "name": "target",
264
+ "type": "address",
265
+ "internalType": "address"
266
+ },
267
+ {
268
+ "name": "selector",
269
+ "type": "bytes4",
270
+ "internalType": "bytes4"
271
+ },
272
+ {
273
+ "name": "beneficiaryOffset",
274
+ "type": "uint16",
275
+ "internalType": "uint16"
276
+ },
277
+ {
278
+ "name": "hasBeneficiary",
279
+ "type": "bool",
280
+ "internalType": "bool"
281
+ },
282
+ {
283
+ "name": "maxValue",
284
+ "type": "uint256",
285
+ "internalType": "uint256"
286
+ },
287
+ {
288
+ "name": "pins",
289
+ "type": "tuple[]",
290
+ "internalType": "struct ArgPin[]",
291
+ "components": [
292
+ {
293
+ "name": "offset",
294
+ "type": "uint16",
295
+ "internalType": "uint16"
296
+ },
297
+ {
298
+ "name": "op",
299
+ "type": "uint8",
300
+ "internalType": "enum PinOp"
301
+ },
302
+ {
303
+ "name": "value",
304
+ "type": "bytes32",
305
+ "internalType": "bytes32"
306
+ }
307
+ ]
308
+ }
309
+ ]
310
+ }
311
+ ]
312
+ }
313
+ ],
314
+ "stateMutability": "view"
315
+ },
316
+ {
317
+ "type": "function",
318
+ "name": "getMode",
319
+ "inputs": [
320
+ {
321
+ "name": "id",
322
+ "type": "bytes32",
323
+ "internalType": "ConfigId"
324
+ },
325
+ {
326
+ "name": "account",
327
+ "type": "address",
328
+ "internalType": "address"
329
+ }
330
+ ],
331
+ "outputs": [
332
+ {
333
+ "name": "",
334
+ "type": "tuple",
335
+ "internalType": "struct ModeSlot",
336
+ "components": [
337
+ {
338
+ "name": "initialized",
339
+ "type": "bool",
340
+ "internalType": "bool"
341
+ },
342
+ {
343
+ "name": "mode",
344
+ "type": "uint8",
345
+ "internalType": "enum RulesType"
346
+ },
347
+ {
348
+ "name": "vm",
349
+ "type": "uint8",
350
+ "internalType": "enum VmFamily"
351
+ },
352
+ {
353
+ "name": "chainHash",
354
+ "type": "bytes32",
355
+ "internalType": "bytes32"
356
+ }
357
+ ]
358
+ }
359
+ ],
360
+ "stateMutability": "view"
361
+ },
362
+ {
363
+ "type": "function",
364
+ "name": "getNativeConfig",
365
+ "inputs": [
366
+ {
367
+ "name": "id",
368
+ "type": "bytes32",
369
+ "internalType": "ConfigId"
370
+ },
371
+ {
372
+ "name": "account",
373
+ "type": "address",
374
+ "internalType": "address"
375
+ }
376
+ ],
377
+ "outputs": [
378
+ {
379
+ "name": "",
380
+ "type": "tuple",
381
+ "internalType": "struct NativeConfig",
382
+ "components": [
383
+ {
384
+ "name": "initialized",
385
+ "type": "bool",
386
+ "internalType": "bool"
387
+ },
388
+ {
389
+ "name": "validUntil",
390
+ "type": "uint48",
391
+ "internalType": "uint48"
392
+ },
393
+ {
394
+ "name": "target",
395
+ "type": "address",
396
+ "internalType": "address"
397
+ },
398
+ {
399
+ "name": "selector",
400
+ "type": "bytes4",
401
+ "internalType": "bytes4"
402
+ },
403
+ {
404
+ "name": "maxValuePerCall",
405
+ "type": "uint256",
406
+ "internalType": "uint256"
407
+ },
408
+ {
409
+ "name": "maxValueTotal",
410
+ "type": "uint256",
411
+ "internalType": "uint256"
412
+ },
413
+ {
414
+ "name": "valueSpent",
415
+ "type": "uint256",
416
+ "internalType": "uint256"
417
+ },
418
+ {
419
+ "name": "amount",
420
+ "type": "tuple",
421
+ "internalType": "struct AmountRule",
422
+ "components": [
423
+ {
424
+ "name": "enabled",
425
+ "type": "bool",
426
+ "internalType": "bool"
427
+ },
428
+ {
429
+ "name": "offset",
430
+ "type": "uint16",
431
+ "internalType": "uint16"
432
+ },
433
+ {
434
+ "name": "maxPerCall",
435
+ "type": "uint256",
436
+ "internalType": "uint256"
437
+ },
438
+ {
439
+ "name": "maxTotal",
440
+ "type": "uint256",
441
+ "internalType": "uint256"
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ "name": "amountSpent",
447
+ "type": "uint256",
448
+ "internalType": "uint256"
449
+ },
450
+ {
451
+ "name": "maxCalls",
452
+ "type": "uint32",
453
+ "internalType": "uint32"
454
+ },
455
+ {
456
+ "name": "callsUsed",
457
+ "type": "uint32",
458
+ "internalType": "uint32"
459
+ },
460
+ {
461
+ "name": "pins",
462
+ "type": "tuple[]",
463
+ "internalType": "struct ArgPin[]",
464
+ "components": [
465
+ {
466
+ "name": "offset",
467
+ "type": "uint16",
468
+ "internalType": "uint16"
469
+ },
470
+ {
471
+ "name": "op",
472
+ "type": "uint8",
473
+ "internalType": "enum PinOp"
474
+ },
475
+ {
476
+ "name": "value",
477
+ "type": "bytes32",
478
+ "internalType": "bytes32"
479
+ }
480
+ ]
481
+ }
482
+ ]
483
+ }
484
+ ],
485
+ "stateMutability": "view"
486
+ },
487
+ {
488
+ "type": "function",
489
+ "name": "getSvmConfig",
490
+ "inputs": [
491
+ {
492
+ "name": "id",
493
+ "type": "bytes32",
494
+ "internalType": "ConfigId"
495
+ },
496
+ {
497
+ "name": "account",
498
+ "type": "address",
499
+ "internalType": "address"
500
+ }
501
+ ],
502
+ "outputs": [
503
+ {
504
+ "name": "",
505
+ "type": "tuple",
506
+ "internalType": "struct SvmConfig",
507
+ "components": [
508
+ {
509
+ "name": "initialized",
510
+ "type": "bool",
511
+ "internalType": "bool"
512
+ },
513
+ {
514
+ "name": "validUntil",
515
+ "type": "uint48",
516
+ "internalType": "uint48"
517
+ },
518
+ {
519
+ "name": "expectedCEA",
520
+ "type": "bytes32",
521
+ "internalType": "bytes32"
522
+ },
523
+ {
524
+ "name": "gatewayProgram",
525
+ "type": "bytes32",
526
+ "internalType": "bytes32"
527
+ },
528
+ {
529
+ "name": "maxGasPerCall",
530
+ "type": "uint256",
531
+ "internalType": "uint256"
532
+ },
533
+ {
534
+ "name": "assets",
535
+ "type": "tuple[]",
536
+ "internalType": "struct AssetCapState[]",
537
+ "components": [
538
+ {
539
+ "name": "token",
540
+ "type": "address",
541
+ "internalType": "address"
542
+ },
543
+ {
544
+ "name": "maxPerCall",
545
+ "type": "uint256",
546
+ "internalType": "uint256"
547
+ },
548
+ {
549
+ "name": "maxTotal",
550
+ "type": "uint256",
551
+ "internalType": "uint256"
552
+ },
553
+ {
554
+ "name": "spent",
555
+ "type": "uint256",
556
+ "internalType": "uint256"
557
+ }
558
+ ]
559
+ },
560
+ {
561
+ "name": "ceaAccounts",
562
+ "type": "bytes32[]",
563
+ "internalType": "bytes32[]"
564
+ },
565
+ {
566
+ "name": "programs",
567
+ "type": "tuple[]",
568
+ "internalType": "struct AllowedProgram[]",
569
+ "components": [
570
+ {
571
+ "name": "program",
572
+ "type": "bytes32",
573
+ "internalType": "bytes32"
574
+ },
575
+ {
576
+ "name": "discriminator",
577
+ "type": "bytes8",
578
+ "internalType": "bytes8"
579
+ },
580
+ {
581
+ "name": "discriminatorLen",
582
+ "type": "uint8",
583
+ "internalType": "uint8"
584
+ },
585
+ {
586
+ "name": "dataless",
587
+ "type": "bool",
588
+ "internalType": "bool"
589
+ },
590
+ {
591
+ "name": "maxAccounts",
592
+ "type": "uint8",
593
+ "internalType": "uint8"
594
+ }
595
+ ]
596
+ },
597
+ {
598
+ "name": "pins",
599
+ "type": "tuple[]",
600
+ "internalType": "struct SvmAccountPin[]",
601
+ "components": [
602
+ {
603
+ "name": "ruleIndex",
604
+ "type": "uint8",
605
+ "internalType": "uint8"
606
+ },
607
+ {
608
+ "name": "accountIndex",
609
+ "type": "uint8",
610
+ "internalType": "uint8"
611
+ },
612
+ {
613
+ "name": "expected",
614
+ "type": "bytes32",
615
+ "internalType": "bytes32"
616
+ }
617
+ ]
618
+ },
619
+ {
620
+ "name": "dataPins",
621
+ "type": "tuple[]",
622
+ "internalType": "struct SvmDataPin[]",
623
+ "components": [
624
+ {
625
+ "name": "ruleIndex",
626
+ "type": "uint8",
627
+ "internalType": "uint8"
628
+ },
629
+ {
630
+ "name": "fromEnd",
631
+ "type": "bool",
632
+ "internalType": "bool"
633
+ },
634
+ {
635
+ "name": "offset",
636
+ "type": "uint16",
637
+ "internalType": "uint16"
638
+ },
639
+ {
640
+ "name": "offsetB",
641
+ "type": "uint16",
642
+ "internalType": "uint16"
643
+ },
644
+ {
645
+ "name": "len",
646
+ "type": "uint8",
647
+ "internalType": "uint8"
648
+ },
649
+ {
650
+ "name": "mode",
651
+ "type": "uint8",
652
+ "internalType": "enum SvmDataPinMode"
653
+ },
654
+ {
655
+ "name": "expected",
656
+ "type": "bytes32",
657
+ "internalType": "bytes32"
658
+ },
659
+ {
660
+ "name": "num",
661
+ "type": "uint64",
662
+ "internalType": "uint64"
663
+ },
664
+ {
665
+ "name": "den",
666
+ "type": "uint64",
667
+ "internalType": "uint64"
668
+ }
669
+ ]
670
+ }
671
+ ]
672
+ }
673
+ ],
674
+ "stateMutability": "view"
675
+ },
676
+ {
677
+ "type": "function",
678
+ "name": "initialize",
679
+ "inputs": [
680
+ {
681
+ "name": "universalGatewayPC",
682
+ "type": "address",
683
+ "internalType": "address"
684
+ },
685
+ {
686
+ "name": "universalExecutorModule",
687
+ "type": "address",
688
+ "internalType": "address"
689
+ },
690
+ {
691
+ "name": "sessionEngine",
692
+ "type": "address",
693
+ "internalType": "address"
694
+ }
695
+ ],
696
+ "outputs": [],
697
+ "stateMutability": "nonpayable"
698
+ },
699
+ {
700
+ "type": "function",
701
+ "name": "initializeWithMultiplexer",
702
+ "inputs": [
703
+ {
704
+ "name": "account",
705
+ "type": "address",
706
+ "internalType": "address"
707
+ },
708
+ {
709
+ "name": "configId",
710
+ "type": "bytes32",
711
+ "internalType": "ConfigId"
712
+ },
713
+ {
714
+ "name": "initData",
715
+ "type": "bytes",
716
+ "internalType": "bytes"
717
+ }
718
+ ],
719
+ "outputs": [],
720
+ "stateMutability": "nonpayable"
721
+ },
722
+ {
723
+ "type": "function",
724
+ "name": "isCredited",
725
+ "inputs": [
726
+ {
727
+ "name": "outboundTxId",
728
+ "type": "bytes32",
729
+ "internalType": "bytes32"
730
+ }
731
+ ],
732
+ "outputs": [
733
+ {
734
+ "name": "",
735
+ "type": "bool",
736
+ "internalType": "bool"
737
+ }
738
+ ],
739
+ "stateMutability": "view"
740
+ },
741
+ {
742
+ "type": "function",
743
+ "name": "pushChainHash",
744
+ "inputs": [],
745
+ "outputs": [
746
+ {
747
+ "name": "",
748
+ "type": "bytes32",
749
+ "internalType": "bytes32"
750
+ }
751
+ ],
752
+ "stateMutability": "view"
753
+ },
754
+ {
755
+ "type": "function",
756
+ "name": "supportsInterface",
757
+ "inputs": [
758
+ {
759
+ "name": "iid",
760
+ "type": "bytes4",
761
+ "internalType": "bytes4"
762
+ }
763
+ ],
764
+ "outputs": [
765
+ {
766
+ "name": "",
767
+ "type": "bool",
768
+ "internalType": "bool"
769
+ }
770
+ ],
771
+ "stateMutability": "pure"
772
+ },
773
+ {
774
+ "type": "function",
775
+ "name": "version",
776
+ "inputs": [],
777
+ "outputs": [
778
+ {
779
+ "name": "",
780
+ "type": "string",
781
+ "internalType": "string"
782
+ }
783
+ ],
784
+ "stateMutability": "pure"
785
+ },
786
+ {
787
+ "type": "event",
788
+ "name": "Initialized",
789
+ "inputs": [
790
+ {
791
+ "name": "version",
792
+ "type": "uint64",
793
+ "indexed": false,
794
+ "internalType": "uint64"
795
+ }
796
+ ],
797
+ "anonymous": false
798
+ },
799
+ {
800
+ "type": "event",
801
+ "name": "NativeCallMetered",
802
+ "inputs": [
803
+ {
804
+ "name": "id",
805
+ "type": "bytes32",
806
+ "indexed": true,
807
+ "internalType": "ConfigId"
808
+ },
809
+ {
810
+ "name": "multiplexer",
811
+ "type": "address",
812
+ "indexed": true,
813
+ "internalType": "address"
814
+ },
815
+ {
816
+ "name": "account",
817
+ "type": "address",
818
+ "indexed": true,
819
+ "internalType": "address"
820
+ },
821
+ {
822
+ "name": "value",
823
+ "type": "uint256",
824
+ "indexed": false,
825
+ "internalType": "uint256"
826
+ },
827
+ {
828
+ "name": "amount",
829
+ "type": "uint256",
830
+ "indexed": false,
831
+ "internalType": "uint256"
832
+ }
833
+ ],
834
+ "anonymous": false
835
+ },
836
+ {
837
+ "type": "event",
838
+ "name": "OutboundMetered",
839
+ "inputs": [
840
+ {
841
+ "name": "id",
842
+ "type": "bytes32",
843
+ "indexed": true,
844
+ "internalType": "ConfigId"
845
+ },
846
+ {
847
+ "name": "multiplexer",
848
+ "type": "address",
849
+ "indexed": true,
850
+ "internalType": "address"
851
+ },
852
+ {
853
+ "name": "account",
854
+ "type": "address",
855
+ "indexed": true,
856
+ "internalType": "address"
857
+ },
858
+ {
859
+ "name": "token",
860
+ "type": "address",
861
+ "indexed": false,
862
+ "internalType": "address"
863
+ },
864
+ {
865
+ "name": "amount",
866
+ "type": "uint256",
867
+ "indexed": false,
868
+ "internalType": "uint256"
869
+ }
870
+ ],
871
+ "anonymous": false
872
+ },
873
+ {
874
+ "type": "event",
875
+ "name": "PolicySet",
876
+ "inputs": [
877
+ {
878
+ "name": "id",
879
+ "type": "bytes32",
880
+ "indexed": false,
881
+ "internalType": "ConfigId"
882
+ },
883
+ {
884
+ "name": "multiplexer",
885
+ "type": "address",
886
+ "indexed": false,
887
+ "internalType": "address"
888
+ },
889
+ {
890
+ "name": "account",
891
+ "type": "address",
892
+ "indexed": false,
893
+ "internalType": "address"
894
+ }
895
+ ],
896
+ "anonymous": false
897
+ },
898
+ {
899
+ "type": "event",
900
+ "name": "RevertCredited",
901
+ "inputs": [
902
+ {
903
+ "name": "outboundTxId",
904
+ "type": "bytes32",
905
+ "indexed": true,
906
+ "internalType": "bytes32"
907
+ },
908
+ {
909
+ "name": "id",
910
+ "type": "bytes32",
911
+ "indexed": true,
912
+ "internalType": "ConfigId"
913
+ },
914
+ {
915
+ "name": "account",
916
+ "type": "address",
917
+ "indexed": true,
918
+ "internalType": "address"
919
+ },
920
+ {
921
+ "name": "token",
922
+ "type": "address",
923
+ "indexed": false,
924
+ "internalType": "address"
925
+ },
926
+ {
927
+ "name": "amountApplied",
928
+ "type": "uint256",
929
+ "indexed": false,
930
+ "internalType": "uint256"
931
+ }
932
+ ],
933
+ "anonymous": false
934
+ },
935
+ {
936
+ "type": "event",
937
+ "name": "RulesConfigured",
938
+ "inputs": [
939
+ {
940
+ "name": "id",
941
+ "type": "bytes32",
942
+ "indexed": true,
943
+ "internalType": "ConfigId"
944
+ },
945
+ {
946
+ "name": "multiplexer",
947
+ "type": "address",
948
+ "indexed": true,
949
+ "internalType": "address"
950
+ },
951
+ {
952
+ "name": "account",
953
+ "type": "address",
954
+ "indexed": true,
955
+ "internalType": "address"
956
+ },
957
+ {
958
+ "name": "mode",
959
+ "type": "uint8",
960
+ "indexed": false,
961
+ "internalType": "enum RulesType"
962
+ },
963
+ {
964
+ "name": "vm",
965
+ "type": "uint8",
966
+ "indexed": false,
967
+ "internalType": "enum VmFamily"
968
+ },
969
+ {
970
+ "name": "chainHash",
971
+ "type": "bytes32",
972
+ "indexed": false,
973
+ "internalType": "bytes32"
974
+ }
975
+ ],
976
+ "anonymous": false
977
+ },
978
+ {
979
+ "type": "error",
980
+ "name": "AllowListOutOfRange",
981
+ "inputs": [
982
+ {
983
+ "name": "length",
984
+ "type": "uint256",
985
+ "internalType": "uint256"
986
+ }
987
+ ]
988
+ },
989
+ {
990
+ "type": "error",
991
+ "name": "AlreadyCredited",
992
+ "inputs": [
993
+ {
994
+ "name": "outboundTxId",
995
+ "type": "bytes32",
996
+ "internalType": "bytes32"
997
+ }
998
+ ]
999
+ },
1000
+ {
1001
+ "type": "error",
1002
+ "name": "AlreadyInitialized",
1003
+ "inputs": [
1004
+ {
1005
+ "name": "id",
1006
+ "type": "bytes32",
1007
+ "internalType": "ConfigId"
1008
+ }
1009
+ ]
1010
+ },
1011
+ {
1012
+ "type": "error",
1013
+ "name": "AmountExceedsCap",
1014
+ "inputs": [
1015
+ {
1016
+ "name": "amount",
1017
+ "type": "uint256",
1018
+ "internalType": "uint256"
1019
+ },
1020
+ {
1021
+ "name": "cap",
1022
+ "type": "uint256",
1023
+ "internalType": "uint256"
1024
+ }
1025
+ ]
1026
+ },
1027
+ {
1028
+ "type": "error",
1029
+ "name": "ArgPinAboveMax",
1030
+ "inputs": [
1031
+ {
1032
+ "name": "actual",
1033
+ "type": "uint256",
1034
+ "internalType": "uint256"
1035
+ },
1036
+ {
1037
+ "name": "index",
1038
+ "type": "uint256",
1039
+ "internalType": "uint256"
1040
+ },
1041
+ {
1042
+ "name": "max",
1043
+ "type": "uint256",
1044
+ "internalType": "uint256"
1045
+ }
1046
+ ]
1047
+ },
1048
+ {
1049
+ "type": "error",
1050
+ "name": "ArgPinMismatch",
1051
+ "inputs": [
1052
+ {
1053
+ "name": "actual",
1054
+ "type": "bytes32",
1055
+ "internalType": "bytes32"
1056
+ },
1057
+ {
1058
+ "name": "index",
1059
+ "type": "uint256",
1060
+ "internalType": "uint256"
1061
+ },
1062
+ {
1063
+ "name": "expected",
1064
+ "type": "bytes32",
1065
+ "internalType": "bytes32"
1066
+ }
1067
+ ]
1068
+ },
1069
+ {
1070
+ "type": "error",
1071
+ "name": "AssetListOutOfRange",
1072
+ "inputs": [
1073
+ {
1074
+ "name": "length",
1075
+ "type": "uint256",
1076
+ "internalType": "uint256"
1077
+ }
1078
+ ]
1079
+ },
1080
+ {
1081
+ "type": "error",
1082
+ "name": "AssetNotAllowed",
1083
+ "inputs": [
1084
+ {
1085
+ "name": "token",
1086
+ "type": "address",
1087
+ "internalType": "address"
1088
+ }
1089
+ ]
1090
+ },
1091
+ {
1092
+ "type": "error",
1093
+ "name": "AssetSpentMismatch",
1094
+ "inputs": [
1095
+ {
1096
+ "name": "token",
1097
+ "type": "address",
1098
+ "internalType": "address"
1099
+ },
1100
+ {
1101
+ "name": "expected",
1102
+ "type": "uint256",
1103
+ "internalType": "uint256"
1104
+ },
1105
+ {
1106
+ "name": "actual",
1107
+ "type": "uint256",
1108
+ "internalType": "uint256"
1109
+ }
1110
+ ]
1111
+ },
1112
+ {
1113
+ "type": "error",
1114
+ "name": "BatchSizeOutOfRange",
1115
+ "inputs": [
1116
+ {
1117
+ "name": "count",
1118
+ "type": "uint256",
1119
+ "internalType": "uint256"
1120
+ }
1121
+ ]
1122
+ },
1123
+ {
1124
+ "type": "error",
1125
+ "name": "CallLimitReached",
1126
+ "inputs": [
1127
+ {
1128
+ "name": "callsUsed",
1129
+ "type": "uint32",
1130
+ "internalType": "uint32"
1131
+ },
1132
+ {
1133
+ "name": "maxCalls",
1134
+ "type": "uint32",
1135
+ "internalType": "uint32"
1136
+ }
1137
+ ]
1138
+ },
1139
+ {
1140
+ "type": "error",
1141
+ "name": "CallNotAllowed",
1142
+ "inputs": [
1143
+ {
1144
+ "name": "target",
1145
+ "type": "address",
1146
+ "internalType": "address"
1147
+ },
1148
+ {
1149
+ "name": "selector",
1150
+ "type": "bytes4",
1151
+ "internalType": "bytes4"
1152
+ }
1153
+ ]
1154
+ },
1155
+ {
1156
+ "type": "error",
1157
+ "name": "CalldataTooShort",
1158
+ "inputs": [
1159
+ {
1160
+ "name": "length",
1161
+ "type": "uint256",
1162
+ "internalType": "uint256"
1163
+ }
1164
+ ]
1165
+ },
1166
+ {
1167
+ "type": "error",
1168
+ "name": "CalldataTooShortForAmount",
1169
+ "inputs": [
1170
+ {
1171
+ "name": "actualLength",
1172
+ "type": "uint256",
1173
+ "internalType": "uint256"
1174
+ },
1175
+ {
1176
+ "name": "needed",
1177
+ "type": "uint256",
1178
+ "internalType": "uint256"
1179
+ }
1180
+ ]
1181
+ },
1182
+ {
1183
+ "type": "error",
1184
+ "name": "CalldataTooShortForPin",
1185
+ "inputs": [
1186
+ {
1187
+ "name": "actualLength",
1188
+ "type": "uint256",
1189
+ "internalType": "uint256"
1190
+ },
1191
+ {
1192
+ "name": "index",
1193
+ "type": "uint256",
1194
+ "internalType": "uint256"
1195
+ },
1196
+ {
1197
+ "name": "needed",
1198
+ "type": "uint256",
1199
+ "internalType": "uint256"
1200
+ }
1201
+ ]
1202
+ },
1203
+ {
1204
+ "type": "error",
1205
+ "name": "CallerIsNotUEModule",
1206
+ "inputs": [
1207
+ {
1208
+ "name": "caller",
1209
+ "type": "address",
1210
+ "internalType": "address"
1211
+ }
1212
+ ]
1213
+ },
1214
+ {
1215
+ "type": "error",
1216
+ "name": "ChainMismatch",
1217
+ "inputs": [
1218
+ {
1219
+ "name": "declared",
1220
+ "type": "bytes32",
1221
+ "internalType": "bytes32"
1222
+ },
1223
+ {
1224
+ "name": "assetChain",
1225
+ "type": "bytes32",
1226
+ "internalType": "bytes32"
1227
+ }
1228
+ ]
1229
+ },
1230
+ {
1231
+ "type": "error",
1232
+ "name": "DuplicateAsset",
1233
+ "inputs": [
1234
+ {
1235
+ "name": "token",
1236
+ "type": "address",
1237
+ "internalType": "address"
1238
+ }
1239
+ ]
1240
+ },
1241
+ {
1242
+ "type": "error",
1243
+ "name": "EmptyChain",
1244
+ "inputs": []
1245
+ },
1246
+ {
1247
+ "type": "error",
1248
+ "name": "ForbiddenInnerTarget",
1249
+ "inputs": [
1250
+ {
1251
+ "name": "target",
1252
+ "type": "address",
1253
+ "internalType": "address"
1254
+ }
1255
+ ]
1256
+ },
1257
+ {
1258
+ "type": "error",
1259
+ "name": "InvalidAsset",
1260
+ "inputs": [
1261
+ {
1262
+ "name": "asset",
1263
+ "type": "address",
1264
+ "internalType": "address"
1265
+ }
1266
+ ]
1267
+ },
1268
+ {
1269
+ "type": "error",
1270
+ "name": "InvalidConfigField",
1271
+ "inputs": []
1272
+ },
1273
+ {
1274
+ "type": "error",
1275
+ "name": "InvalidExpiry",
1276
+ "inputs": [
1277
+ {
1278
+ "name": "validUntil",
1279
+ "type": "uint48",
1280
+ "internalType": "uint48"
1281
+ }
1282
+ ]
1283
+ },
1284
+ {
1285
+ "type": "error",
1286
+ "name": "InvalidInitialization",
1287
+ "inputs": []
1288
+ },
1289
+ {
1290
+ "type": "error",
1291
+ "name": "InvalidRevertRecipient",
1292
+ "inputs": [
1293
+ {
1294
+ "name": "expected",
1295
+ "type": "address",
1296
+ "internalType": "address"
1297
+ },
1298
+ {
1299
+ "name": "actual",
1300
+ "type": "address",
1301
+ "internalType": "address"
1302
+ }
1303
+ ]
1304
+ },
1305
+ {
1306
+ "type": "error",
1307
+ "name": "InvalidSelector",
1308
+ "inputs": [
1309
+ {
1310
+ "name": "selector",
1311
+ "type": "bytes4",
1312
+ "internalType": "bytes4"
1313
+ }
1314
+ ]
1315
+ },
1316
+ {
1317
+ "type": "error",
1318
+ "name": "InvalidTarget",
1319
+ "inputs": [
1320
+ {
1321
+ "name": "target",
1322
+ "type": "address",
1323
+ "internalType": "address"
1324
+ }
1325
+ ]
1326
+ },
1327
+ {
1328
+ "type": "error",
1329
+ "name": "MalformedInnerCalldata",
1330
+ "inputs": []
1331
+ },
1332
+ {
1333
+ "type": "error",
1334
+ "name": "MalformedOutboundRequest",
1335
+ "inputs": [
1336
+ {
1337
+ "name": "length",
1338
+ "type": "uint256",
1339
+ "internalType": "uint256"
1340
+ }
1341
+ ]
1342
+ },
1343
+ {
1344
+ "type": "error",
1345
+ "name": "NativeAmountExceedsCap",
1346
+ "inputs": [
1347
+ {
1348
+ "name": "amount",
1349
+ "type": "uint256",
1350
+ "internalType": "uint256"
1351
+ },
1352
+ {
1353
+ "name": "cap",
1354
+ "type": "uint256",
1355
+ "internalType": "uint256"
1356
+ }
1357
+ ]
1358
+ },
1359
+ {
1360
+ "type": "error",
1361
+ "name": "NativeTargetIsGateway",
1362
+ "inputs": [
1363
+ {
1364
+ "name": "target",
1365
+ "type": "address",
1366
+ "internalType": "address"
1367
+ }
1368
+ ]
1369
+ },
1370
+ {
1371
+ "type": "error",
1372
+ "name": "NativeTargetZero",
1373
+ "inputs": []
1374
+ },
1375
+ {
1376
+ "type": "error",
1377
+ "name": "NotInitialized",
1378
+ "inputs": [
1379
+ {
1380
+ "name": "id",
1381
+ "type": "bytes32",
1382
+ "internalType": "ConfigId"
1383
+ },
1384
+ {
1385
+ "name": "account",
1386
+ "type": "address",
1387
+ "internalType": "address"
1388
+ }
1389
+ ]
1390
+ },
1391
+ {
1392
+ "type": "error",
1393
+ "name": "NotInitializing",
1394
+ "inputs": []
1395
+ },
1396
+ {
1397
+ "type": "error",
1398
+ "name": "PCValueExceedsCap",
1399
+ "inputs": [
1400
+ {
1401
+ "name": "value",
1402
+ "type": "uint256",
1403
+ "internalType": "uint256"
1404
+ },
1405
+ {
1406
+ "name": "cap",
1407
+ "type": "uint256",
1408
+ "internalType": "uint256"
1409
+ }
1410
+ ]
1411
+ },
1412
+ {
1413
+ "type": "error",
1414
+ "name": "PayloadNotMulticall",
1415
+ "inputs": []
1416
+ },
1417
+ {
1418
+ "type": "error",
1419
+ "name": "PolicyNotInitialized",
1420
+ "inputs": [
1421
+ {
1422
+ "name": "id",
1423
+ "type": "bytes32",
1424
+ "internalType": "ConfigId"
1425
+ },
1426
+ {
1427
+ "name": "multiplexer",
1428
+ "type": "address",
1429
+ "internalType": "address"
1430
+ },
1431
+ {
1432
+ "name": "account",
1433
+ "type": "address",
1434
+ "internalType": "address"
1435
+ }
1436
+ ]
1437
+ },
1438
+ {
1439
+ "type": "error",
1440
+ "name": "RecipientMustBeEmpty",
1441
+ "inputs": []
1442
+ },
1443
+ {
1444
+ "type": "error",
1445
+ "name": "RulesExpired",
1446
+ "inputs": [
1447
+ {
1448
+ "name": "validUntil",
1449
+ "type": "uint48",
1450
+ "internalType": "uint48"
1451
+ }
1452
+ ]
1453
+ },
1454
+ {
1455
+ "type": "error",
1456
+ "name": "SelectorMismatch",
1457
+ "inputs": [
1458
+ {
1459
+ "name": "actual",
1460
+ "type": "bytes4",
1461
+ "internalType": "bytes4"
1462
+ },
1463
+ {
1464
+ "name": "expected",
1465
+ "type": "bytes4",
1466
+ "internalType": "bytes4"
1467
+ }
1468
+ ]
1469
+ },
1470
+ {
1471
+ "type": "error",
1472
+ "name": "SpentLengthMismatch",
1473
+ "inputs": [
1474
+ {
1475
+ "name": "expected",
1476
+ "type": "uint256",
1477
+ "internalType": "uint256"
1478
+ },
1479
+ {
1480
+ "name": "actual",
1481
+ "type": "uint256",
1482
+ "internalType": "uint256"
1483
+ }
1484
+ ]
1485
+ },
1486
+ {
1487
+ "type": "error",
1488
+ "name": "SpentMismatch",
1489
+ "inputs": [
1490
+ {
1491
+ "name": "expected",
1492
+ "type": "uint256",
1493
+ "internalType": "uint256"
1494
+ },
1495
+ {
1496
+ "name": "actual",
1497
+ "type": "uint256",
1498
+ "internalType": "uint256"
1499
+ }
1500
+ ]
1501
+ },
1502
+ {
1503
+ "type": "error",
1504
+ "name": "TargetMismatch",
1505
+ "inputs": [
1506
+ {
1507
+ "name": "actual",
1508
+ "type": "address",
1509
+ "internalType": "address"
1510
+ },
1511
+ {
1512
+ "name": "expected",
1513
+ "type": "address",
1514
+ "internalType": "address"
1515
+ }
1516
+ ]
1517
+ },
1518
+ {
1519
+ "type": "error",
1520
+ "name": "TooManyAllowedCallPins",
1521
+ "inputs": [
1522
+ {
1523
+ "name": "total",
1524
+ "type": "uint256",
1525
+ "internalType": "uint256"
1526
+ }
1527
+ ]
1528
+ },
1529
+ {
1530
+ "type": "error",
1531
+ "name": "TooManyPins",
1532
+ "inputs": [
1533
+ {
1534
+ "name": "count",
1535
+ "type": "uint256",
1536
+ "internalType": "uint256"
1537
+ }
1538
+ ]
1539
+ },
1540
+ {
1541
+ "type": "error",
1542
+ "name": "TotalNativeAmountExceeded",
1543
+ "inputs": [
1544
+ {
1545
+ "name": "newSpent",
1546
+ "type": "uint256",
1547
+ "internalType": "uint256"
1548
+ },
1549
+ {
1550
+ "name": "cap",
1551
+ "type": "uint256",
1552
+ "internalType": "uint256"
1553
+ }
1554
+ ]
1555
+ },
1556
+ {
1557
+ "type": "error",
1558
+ "name": "TotalSpendCapExceeded",
1559
+ "inputs": [
1560
+ {
1561
+ "name": "wouldBeTotal",
1562
+ "type": "uint256",
1563
+ "internalType": "uint256"
1564
+ },
1565
+ {
1566
+ "name": "cap",
1567
+ "type": "uint256",
1568
+ "internalType": "uint256"
1569
+ }
1570
+ ]
1571
+ },
1572
+ {
1573
+ "type": "error",
1574
+ "name": "TotalValueExceeded",
1575
+ "inputs": [
1576
+ {
1577
+ "name": "newSpent",
1578
+ "type": "uint256",
1579
+ "internalType": "uint256"
1580
+ },
1581
+ {
1582
+ "name": "cap",
1583
+ "type": "uint256",
1584
+ "internalType": "uint256"
1585
+ }
1586
+ ]
1587
+ },
1588
+ {
1589
+ "type": "error",
1590
+ "name": "UncappedGasSwapRejected",
1591
+ "inputs": []
1592
+ },
1593
+ {
1594
+ "type": "error",
1595
+ "name": "UnsupportedEnvelopeVersion",
1596
+ "inputs": [
1597
+ {
1598
+ "name": "version",
1599
+ "type": "uint256",
1600
+ "internalType": "uint256"
1601
+ }
1602
+ ]
1603
+ },
1604
+ {
1605
+ "type": "error",
1606
+ "name": "UnsupportedNamespace",
1607
+ "inputs": [
1608
+ {
1609
+ "name": "chainHash",
1610
+ "type": "bytes32",
1611
+ "internalType": "bytes32"
1612
+ }
1613
+ ]
1614
+ },
1615
+ {
1616
+ "type": "error",
1617
+ "name": "ValueExceedsCap",
1618
+ "inputs": [
1619
+ {
1620
+ "name": "value",
1621
+ "type": "uint256",
1622
+ "internalType": "uint256"
1623
+ },
1624
+ {
1625
+ "name": "cap",
1626
+ "type": "uint256",
1627
+ "internalType": "uint256"
1628
+ }
1629
+ ]
1630
+ },
1631
+ {
1632
+ "type": "error",
1633
+ "name": "ValueOnlyCalldataNotEmpty",
1634
+ "inputs": [
1635
+ {
1636
+ "name": "length",
1637
+ "type": "uint256",
1638
+ "internalType": "uint256"
1639
+ }
1640
+ ]
1641
+ },
1642
+ {
1643
+ "type": "error",
1644
+ "name": "ValueOnlyWithAmountRule",
1645
+ "inputs": []
1646
+ },
1647
+ {
1648
+ "type": "error",
1649
+ "name": "ValueOnlyWithPins",
1650
+ "inputs": []
1651
+ },
1652
+ {
1653
+ "type": "error",
1654
+ "name": "WrongModeForCall",
1655
+ "inputs": [
1656
+ {
1657
+ "name": "actual",
1658
+ "type": "uint8",
1659
+ "internalType": "enum RulesType"
1660
+ }
1661
+ ]
1662
+ },
1663
+ {
1664
+ "type": "error",
1665
+ "name": "WrongVmForCall",
1666
+ "inputs": [
1667
+ {
1668
+ "name": "actual",
1669
+ "type": "uint8",
1670
+ "internalType": "enum VmFamily"
1671
+ }
1672
+ ]
1673
+ },
1674
+ {
1675
+ "type": "error",
1676
+ "name": "ZeroAddress",
1677
+ "inputs": []
1678
+ },
1679
+ {
1680
+ "type": "error",
1681
+ "name": "ZeroMaxCalls",
1682
+ "inputs": []
1683
+ },
1684
+ {
1685
+ "type": "error",
1686
+ "name": "AmbiguousRule",
1687
+ "inputs": [
1688
+ {
1689
+ "name": "i",
1690
+ "type": "uint256",
1691
+ "internalType": "uint256"
1692
+ },
1693
+ {
1694
+ "name": "j",
1695
+ "type": "uint256",
1696
+ "internalType": "uint256"
1697
+ }
1698
+ ]
1699
+ },
1700
+ {
1701
+ "type": "error",
1702
+ "name": "AmountExceedsU64",
1703
+ "inputs": [
1704
+ {
1705
+ "name": "amount",
1706
+ "type": "uint256",
1707
+ "internalType": "uint256"
1708
+ }
1709
+ ]
1710
+ },
1711
+ {
1712
+ "type": "error",
1713
+ "name": "CeaAccountAtUnpinnedIndex",
1714
+ "inputs": [
1715
+ {
1716
+ "name": "accountIndex",
1717
+ "type": "uint256",
1718
+ "internalType": "uint256"
1719
+ },
1720
+ {
1721
+ "name": "account",
1722
+ "type": "bytes32",
1723
+ "internalType": "bytes32"
1724
+ }
1725
+ ]
1726
+ },
1727
+ {
1728
+ "type": "error",
1729
+ "name": "CeaAccountsMissExpectedCEA",
1730
+ "inputs": []
1731
+ },
1732
+ {
1733
+ "type": "error",
1734
+ "name": "DiscriminatorLenOutOfRange",
1735
+ "inputs": [
1736
+ {
1737
+ "name": "rule",
1738
+ "type": "uint256",
1739
+ "internalType": "uint256"
1740
+ },
1741
+ {
1742
+ "name": "len",
1743
+ "type": "uint8",
1744
+ "internalType": "uint8"
1745
+ }
1746
+ ]
1747
+ },
1748
+ {
1749
+ "type": "error",
1750
+ "name": "DuplicateSvmPin",
1751
+ "inputs": [
1752
+ {
1753
+ "name": "first",
1754
+ "type": "uint256",
1755
+ "internalType": "uint256"
1756
+ },
1757
+ {
1758
+ "name": "second",
1759
+ "type": "uint256",
1760
+ "internalType": "uint256"
1761
+ }
1762
+ ]
1763
+ },
1764
+ {
1765
+ "type": "error",
1766
+ "name": "ForbiddenProgramInAllowList",
1767
+ "inputs": [
1768
+ {
1769
+ "name": "rule",
1770
+ "type": "uint256",
1771
+ "internalType": "uint256"
1772
+ },
1773
+ {
1774
+ "name": "program",
1775
+ "type": "bytes32",
1776
+ "internalType": "bytes32"
1777
+ }
1778
+ ]
1779
+ },
1780
+ {
1781
+ "type": "error",
1782
+ "name": "ForbiddenTargetProgram",
1783
+ "inputs": [
1784
+ {
1785
+ "name": "program",
1786
+ "type": "bytes32",
1787
+ "internalType": "bytes32"
1788
+ }
1789
+ ]
1790
+ },
1791
+ {
1792
+ "type": "error",
1793
+ "name": "InvalidCeaAccount",
1794
+ "inputs": [
1795
+ {
1796
+ "name": "index",
1797
+ "type": "uint256",
1798
+ "internalType": "uint256"
1799
+ }
1800
+ ]
1801
+ },
1802
+ {
1803
+ "type": "error",
1804
+ "name": "InvalidSvmConfigField",
1805
+ "inputs": []
1806
+ },
1807
+ {
1808
+ "type": "error",
1809
+ "name": "MalformedSvmPayload",
1810
+ "inputs": [
1811
+ {
1812
+ "name": "code",
1813
+ "type": "uint8",
1814
+ "internalType": "uint8"
1815
+ }
1816
+ ]
1817
+ },
1818
+ {
1819
+ "type": "error",
1820
+ "name": "ProgramListOutOfRange",
1821
+ "inputs": [
1822
+ {
1823
+ "name": "length",
1824
+ "type": "uint256",
1825
+ "internalType": "uint256"
1826
+ }
1827
+ ]
1828
+ },
1829
+ {
1830
+ "type": "error",
1831
+ "name": "ProgramNotAllowed",
1832
+ "inputs": [
1833
+ {
1834
+ "name": "program",
1835
+ "type": "bytes32",
1836
+ "internalType": "bytes32"
1837
+ },
1838
+ {
1839
+ "name": "discriminator",
1840
+ "type": "bytes8",
1841
+ "internalType": "bytes8"
1842
+ }
1843
+ ]
1844
+ },
1845
+ {
1846
+ "type": "error",
1847
+ "name": "RecipientNotPubkey",
1848
+ "inputs": [
1849
+ {
1850
+ "name": "length",
1851
+ "type": "uint256",
1852
+ "internalType": "uint256"
1853
+ }
1854
+ ]
1855
+ },
1856
+ {
1857
+ "type": "error",
1858
+ "name": "RecipientTargetMismatch",
1859
+ "inputs": [
1860
+ {
1861
+ "name": "recipient",
1862
+ "type": "bytes32",
1863
+ "internalType": "bytes32"
1864
+ },
1865
+ {
1866
+ "name": "target",
1867
+ "type": "bytes32",
1868
+ "internalType": "bytes32"
1869
+ }
1870
+ ]
1871
+ },
1872
+ {
1873
+ "type": "error",
1874
+ "name": "RuleWithoutPin",
1875
+ "inputs": [
1876
+ {
1877
+ "name": "rule",
1878
+ "type": "uint256",
1879
+ "internalType": "uint256"
1880
+ }
1881
+ ]
1882
+ },
1883
+ {
1884
+ "type": "error",
1885
+ "name": "SvmAccountCountBelowPin",
1886
+ "inputs": [
1887
+ {
1888
+ "name": "pin",
1889
+ "type": "uint256",
1890
+ "internalType": "uint256"
1891
+ },
1892
+ {
1893
+ "name": "count",
1894
+ "type": "uint256",
1895
+ "internalType": "uint256"
1896
+ },
1897
+ {
1898
+ "name": "needed",
1899
+ "type": "uint8",
1900
+ "internalType": "uint8"
1901
+ }
1902
+ ]
1903
+ },
1904
+ {
1905
+ "type": "error",
1906
+ "name": "SvmAccountCountMismatch",
1907
+ "inputs": [
1908
+ {
1909
+ "name": "count",
1910
+ "type": "uint256",
1911
+ "internalType": "uint256"
1912
+ },
1913
+ {
1914
+ "name": "expected",
1915
+ "type": "uint8",
1916
+ "internalType": "uint8"
1917
+ }
1918
+ ]
1919
+ },
1920
+ {
1921
+ "type": "error",
1922
+ "name": "SvmAccountPinMismatch",
1923
+ "inputs": [
1924
+ {
1925
+ "name": "pin",
1926
+ "type": "uint256",
1927
+ "internalType": "uint256"
1928
+ },
1929
+ {
1930
+ "name": "accountIndex",
1931
+ "type": "uint8",
1932
+ "internalType": "uint8"
1933
+ },
1934
+ {
1935
+ "name": "expected",
1936
+ "type": "bytes32",
1937
+ "internalType": "bytes32"
1938
+ },
1939
+ {
1940
+ "name": "actual",
1941
+ "type": "bytes32",
1942
+ "internalType": "bytes32"
1943
+ }
1944
+ ]
1945
+ },
1946
+ {
1947
+ "type": "error",
1948
+ "name": "SvmAccountsOutOfRange",
1949
+ "inputs": [
1950
+ {
1951
+ "name": "count",
1952
+ "type": "uint256",
1953
+ "internalType": "uint256"
1954
+ }
1955
+ ]
1956
+ },
1957
+ {
1958
+ "type": "error",
1959
+ "name": "SvmDataCeilingExceeded",
1960
+ "inputs": [
1961
+ {
1962
+ "name": "pin",
1963
+ "type": "uint256",
1964
+ "internalType": "uint256"
1965
+ },
1966
+ {
1967
+ "name": "actual",
1968
+ "type": "uint256",
1969
+ "internalType": "uint256"
1970
+ },
1971
+ {
1972
+ "name": "ceiling",
1973
+ "type": "uint256",
1974
+ "internalType": "uint256"
1975
+ }
1976
+ ]
1977
+ },
1978
+ {
1979
+ "type": "error",
1980
+ "name": "SvmDataFloorNotMet",
1981
+ "inputs": [
1982
+ {
1983
+ "name": "pin",
1984
+ "type": "uint256",
1985
+ "internalType": "uint256"
1986
+ },
1987
+ {
1988
+ "name": "actual",
1989
+ "type": "uint256",
1990
+ "internalType": "uint256"
1991
+ },
1992
+ {
1993
+ "name": "floor",
1994
+ "type": "uint256",
1995
+ "internalType": "uint256"
1996
+ }
1997
+ ]
1998
+ },
1999
+ {
2000
+ "type": "error",
2001
+ "name": "SvmDataPinInvalid",
2002
+ "inputs": [
2003
+ {
2004
+ "name": "pin",
2005
+ "type": "uint256",
2006
+ "internalType": "uint256"
2007
+ }
2008
+ ]
2009
+ },
2010
+ {
2011
+ "type": "error",
2012
+ "name": "SvmDataPinMismatch",
2013
+ "inputs": [
2014
+ {
2015
+ "name": "pin",
2016
+ "type": "uint256",
2017
+ "internalType": "uint256"
2018
+ },
2019
+ {
2020
+ "name": "expected",
2021
+ "type": "bytes32",
2022
+ "internalType": "bytes32"
2023
+ },
2024
+ {
2025
+ "name": "actual",
2026
+ "type": "bytes32",
2027
+ "internalType": "bytes32"
2028
+ }
2029
+ ]
2030
+ },
2031
+ {
2032
+ "type": "error",
2033
+ "name": "SvmDataRatioNotMet",
2034
+ "inputs": [
2035
+ {
2036
+ "name": "pin",
2037
+ "type": "uint256",
2038
+ "internalType": "uint256"
2039
+ },
2040
+ {
2041
+ "name": "a",
2042
+ "type": "uint256",
2043
+ "internalType": "uint256"
2044
+ },
2045
+ {
2046
+ "name": "b",
2047
+ "type": "uint256",
2048
+ "internalType": "uint256"
2049
+ },
2050
+ {
2051
+ "name": "num",
2052
+ "type": "uint64",
2053
+ "internalType": "uint64"
2054
+ },
2055
+ {
2056
+ "name": "den",
2057
+ "type": "uint64",
2058
+ "internalType": "uint64"
2059
+ }
2060
+ ]
2061
+ },
2062
+ {
2063
+ "type": "error",
2064
+ "name": "SvmDataTooShortForPin",
2065
+ "inputs": [
2066
+ {
2067
+ "name": "pin",
2068
+ "type": "uint256",
2069
+ "internalType": "uint256"
2070
+ },
2071
+ {
2072
+ "name": "ixLen",
2073
+ "type": "uint256",
2074
+ "internalType": "uint256"
2075
+ }
2076
+ ]
2077
+ },
2078
+ {
2079
+ "type": "error",
2080
+ "name": "SvmInstructionNotExecute",
2081
+ "inputs": [
2082
+ {
2083
+ "name": "instructionId",
2084
+ "type": "uint8",
2085
+ "internalType": "uint8"
2086
+ }
2087
+ ]
2088
+ },
2089
+ {
2090
+ "type": "error",
2091
+ "name": "SvmIxDataTooLong",
2092
+ "inputs": [
2093
+ {
2094
+ "name": "length",
2095
+ "type": "uint256",
2096
+ "internalType": "uint256"
2097
+ }
2098
+ ]
2099
+ },
2100
+ {
2101
+ "type": "error",
2102
+ "name": "SvmMaxAccountsOutOfRange",
2103
+ "inputs": [
2104
+ {
2105
+ "name": "rule",
2106
+ "type": "uint256",
2107
+ "internalType": "uint256"
2108
+ },
2109
+ {
2110
+ "name": "maxAccounts",
2111
+ "type": "uint8",
2112
+ "internalType": "uint8"
2113
+ }
2114
+ ]
2115
+ },
2116
+ {
2117
+ "type": "error",
2118
+ "name": "SvmPayloadEmpty",
2119
+ "inputs": []
2120
+ },
2121
+ {
2122
+ "type": "error",
2123
+ "name": "SvmPinIndexOutOfRange",
2124
+ "inputs": [
2125
+ {
2126
+ "name": "pin",
2127
+ "type": "uint256",
2128
+ "internalType": "uint256"
2129
+ },
2130
+ {
2131
+ "name": "accountIndex",
2132
+ "type": "uint8",
2133
+ "internalType": "uint8"
2134
+ }
2135
+ ]
2136
+ },
2137
+ {
2138
+ "type": "error",
2139
+ "name": "SvmPinRuleOutOfRange",
2140
+ "inputs": [
2141
+ {
2142
+ "name": "pin",
2143
+ "type": "uint256",
2144
+ "internalType": "uint256"
2145
+ },
2146
+ {
2147
+ "name": "rule",
2148
+ "type": "uint8",
2149
+ "internalType": "uint8"
2150
+ }
2151
+ ]
2152
+ },
2153
+ {
2154
+ "type": "error",
2155
+ "name": "TooManyCeaAccounts",
2156
+ "inputs": [
2157
+ {
2158
+ "name": "count",
2159
+ "type": "uint256",
2160
+ "internalType": "uint256"
2161
+ }
2162
+ ]
2163
+ },
2164
+ {
2165
+ "type": "error",
2166
+ "name": "TooManySvmDataPins",
2167
+ "inputs": [
2168
+ {
2169
+ "name": "count",
2170
+ "type": "uint256",
2171
+ "internalType": "uint256"
2172
+ }
2173
+ ]
2174
+ },
2175
+ {
2176
+ "type": "error",
2177
+ "name": "TooManySvmPins",
2178
+ "inputs": [
2179
+ {
2180
+ "name": "count",
2181
+ "type": "uint256",
2182
+ "internalType": "uint256"
2183
+ }
2184
+ ]
2185
+ }
2186
+ ];
2187
+ //# sourceMappingURL=universal-rules-policy.js.map