@fidesbuild/sub 0.0.0-stage → 0.2.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.
- package/README.md +48 -2
- package/dist/abis.d.ts +1351 -0
- package/dist/abis.js +3 -0
- package/dist/guide.d.ts +2 -0
- package/dist/guide.js +34 -0
- package/dist/index.d.ts +214 -0
- package/dist/index.js +203 -0
- package/package.json +37 -3
package/dist/abis.d.ts
ADDED
|
@@ -0,0 +1,1351 @@
|
|
|
1
|
+
export declare const fidesAccountV2Abi: readonly [{
|
|
2
|
+
readonly type: "receive";
|
|
3
|
+
readonly stateMutability: "payable";
|
|
4
|
+
}, {
|
|
5
|
+
readonly type: "function";
|
|
6
|
+
readonly name: "LONG_FLAG";
|
|
7
|
+
readonly inputs: readonly [];
|
|
8
|
+
readonly outputs: readonly [{
|
|
9
|
+
readonly name: "";
|
|
10
|
+
readonly type: "uint192";
|
|
11
|
+
readonly internalType: "uint192";
|
|
12
|
+
}];
|
|
13
|
+
readonly stateMutability: "view";
|
|
14
|
+
}, {
|
|
15
|
+
readonly type: "function";
|
|
16
|
+
readonly name: "actionsInPeriod";
|
|
17
|
+
readonly inputs: readonly [{
|
|
18
|
+
readonly name: "fidesId";
|
|
19
|
+
readonly type: "bytes32";
|
|
20
|
+
readonly internalType: "bytes32";
|
|
21
|
+
}, {
|
|
22
|
+
readonly name: "period";
|
|
23
|
+
readonly type: "uint256";
|
|
24
|
+
readonly internalType: "uint256";
|
|
25
|
+
}];
|
|
26
|
+
readonly outputs: readonly [{
|
|
27
|
+
readonly name: "";
|
|
28
|
+
readonly type: "uint256";
|
|
29
|
+
readonly internalType: "uint256";
|
|
30
|
+
}];
|
|
31
|
+
readonly stateMutability: "view";
|
|
32
|
+
}, {
|
|
33
|
+
readonly type: "function";
|
|
34
|
+
readonly name: "actionsUsed";
|
|
35
|
+
readonly inputs: readonly [{
|
|
36
|
+
readonly name: "fidesId";
|
|
37
|
+
readonly type: "bytes32";
|
|
38
|
+
readonly internalType: "bytes32";
|
|
39
|
+
}];
|
|
40
|
+
readonly outputs: readonly [{
|
|
41
|
+
readonly name: "";
|
|
42
|
+
readonly type: "uint256";
|
|
43
|
+
readonly internalType: "uint256";
|
|
44
|
+
}];
|
|
45
|
+
readonly stateMutability: "view";
|
|
46
|
+
}, {
|
|
47
|
+
readonly type: "function";
|
|
48
|
+
readonly name: "execute";
|
|
49
|
+
readonly inputs: readonly [{
|
|
50
|
+
readonly name: "fides";
|
|
51
|
+
readonly type: "tuple";
|
|
52
|
+
readonly internalType: "struct Fides";
|
|
53
|
+
readonly components: readonly [{
|
|
54
|
+
readonly name: "version";
|
|
55
|
+
readonly type: "uint16";
|
|
56
|
+
readonly internalType: "uint16";
|
|
57
|
+
}, {
|
|
58
|
+
readonly name: "chainId";
|
|
59
|
+
readonly type: "uint256";
|
|
60
|
+
readonly internalType: "uint256";
|
|
61
|
+
}, {
|
|
62
|
+
readonly name: "account";
|
|
63
|
+
readonly type: "address";
|
|
64
|
+
readonly internalType: "address";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "owner";
|
|
67
|
+
readonly type: "address";
|
|
68
|
+
readonly internalType: "address";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "agent";
|
|
71
|
+
readonly type: "address";
|
|
72
|
+
readonly internalType: "address";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "validAfter";
|
|
75
|
+
readonly type: "uint64";
|
|
76
|
+
readonly internalType: "uint64";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "validUntil";
|
|
79
|
+
readonly type: "uint64";
|
|
80
|
+
readonly internalType: "uint64";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "targets";
|
|
83
|
+
readonly type: "tuple[]";
|
|
84
|
+
readonly internalType: "struct TargetRule[]";
|
|
85
|
+
readonly components: readonly [{
|
|
86
|
+
readonly name: "target";
|
|
87
|
+
readonly type: "address";
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "selectors";
|
|
91
|
+
readonly type: "bytes4[]";
|
|
92
|
+
readonly internalType: "bytes4[]";
|
|
93
|
+
}];
|
|
94
|
+
}, {
|
|
95
|
+
readonly name: "assets";
|
|
96
|
+
readonly type: "tuple[]";
|
|
97
|
+
readonly internalType: "struct AssetRule[]";
|
|
98
|
+
readonly components: readonly [{
|
|
99
|
+
readonly name: "asset";
|
|
100
|
+
readonly type: "address";
|
|
101
|
+
readonly internalType: "address";
|
|
102
|
+
}, {
|
|
103
|
+
readonly name: "maxOutflow";
|
|
104
|
+
readonly type: "uint256";
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
}];
|
|
107
|
+
}, {
|
|
108
|
+
readonly name: "services";
|
|
109
|
+
readonly type: "tuple[]";
|
|
110
|
+
readonly internalType: "struct ServiceRule[]";
|
|
111
|
+
readonly components: readonly [{
|
|
112
|
+
readonly name: "serviceId";
|
|
113
|
+
readonly type: "string";
|
|
114
|
+
readonly internalType: "string";
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "maxSpend";
|
|
117
|
+
readonly type: "uint256";
|
|
118
|
+
readonly internalType: "uint256";
|
|
119
|
+
}, {
|
|
120
|
+
readonly name: "allowedActions";
|
|
121
|
+
readonly type: "string[]";
|
|
122
|
+
readonly internalType: "string[]";
|
|
123
|
+
}];
|
|
124
|
+
}, {
|
|
125
|
+
readonly name: "maxNativeValue";
|
|
126
|
+
readonly type: "uint256";
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
}, {
|
|
129
|
+
readonly name: "spendLimits";
|
|
130
|
+
readonly type: "tuple[]";
|
|
131
|
+
readonly internalType: "struct SpendLimit[]";
|
|
132
|
+
readonly components: readonly [{
|
|
133
|
+
readonly name: "asset";
|
|
134
|
+
readonly type: "address";
|
|
135
|
+
readonly internalType: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly name: "amount";
|
|
138
|
+
readonly type: "uint256";
|
|
139
|
+
readonly internalType: "uint256";
|
|
140
|
+
}];
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "maxActions";
|
|
143
|
+
readonly type: "uint256";
|
|
144
|
+
readonly internalType: "uint256";
|
|
145
|
+
}, {
|
|
146
|
+
readonly name: "nonceSpace";
|
|
147
|
+
readonly type: "uint192";
|
|
148
|
+
readonly internalType: "uint192";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "salt";
|
|
151
|
+
readonly type: "bytes32";
|
|
152
|
+
readonly internalType: "bytes32";
|
|
153
|
+
}];
|
|
154
|
+
}, {
|
|
155
|
+
readonly name: "ownerSignature";
|
|
156
|
+
readonly type: "bytes";
|
|
157
|
+
readonly internalType: "bytes";
|
|
158
|
+
}, {
|
|
159
|
+
readonly name: "bundle";
|
|
160
|
+
readonly type: "tuple";
|
|
161
|
+
readonly internalType: "struct Bundle";
|
|
162
|
+
readonly components: readonly [{
|
|
163
|
+
readonly name: "fidesId";
|
|
164
|
+
readonly type: "bytes32";
|
|
165
|
+
readonly internalType: "bytes32";
|
|
166
|
+
}, {
|
|
167
|
+
readonly name: "nonce";
|
|
168
|
+
readonly type: "uint256";
|
|
169
|
+
readonly internalType: "uint256";
|
|
170
|
+
}, {
|
|
171
|
+
readonly name: "mode";
|
|
172
|
+
readonly type: "uint8";
|
|
173
|
+
readonly internalType: "enum ExecutionMode";
|
|
174
|
+
}, {
|
|
175
|
+
readonly name: "calls";
|
|
176
|
+
readonly type: "tuple[]";
|
|
177
|
+
readonly internalType: "struct Call[]";
|
|
178
|
+
readonly components: readonly [{
|
|
179
|
+
readonly name: "target";
|
|
180
|
+
readonly type: "address";
|
|
181
|
+
readonly internalType: "address";
|
|
182
|
+
}, {
|
|
183
|
+
readonly name: "value";
|
|
184
|
+
readonly type: "uint256";
|
|
185
|
+
readonly internalType: "uint256";
|
|
186
|
+
}, {
|
|
187
|
+
readonly name: "data";
|
|
188
|
+
readonly type: "bytes";
|
|
189
|
+
readonly internalType: "bytes";
|
|
190
|
+
}];
|
|
191
|
+
}];
|
|
192
|
+
}, {
|
|
193
|
+
readonly name: "agentSignature";
|
|
194
|
+
readonly type: "bytes";
|
|
195
|
+
readonly internalType: "bytes";
|
|
196
|
+
}];
|
|
197
|
+
readonly outputs: readonly [{
|
|
198
|
+
readonly name: "results";
|
|
199
|
+
readonly type: "bytes[]";
|
|
200
|
+
readonly internalType: "bytes[]";
|
|
201
|
+
}];
|
|
202
|
+
readonly stateMutability: "nonpayable";
|
|
203
|
+
}, {
|
|
204
|
+
readonly type: "function";
|
|
205
|
+
readonly name: "executeLong";
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly name: "fides";
|
|
208
|
+
readonly type: "tuple";
|
|
209
|
+
readonly internalType: "struct Fides";
|
|
210
|
+
readonly components: readonly [{
|
|
211
|
+
readonly name: "version";
|
|
212
|
+
readonly type: "uint16";
|
|
213
|
+
readonly internalType: "uint16";
|
|
214
|
+
}, {
|
|
215
|
+
readonly name: "chainId";
|
|
216
|
+
readonly type: "uint256";
|
|
217
|
+
readonly internalType: "uint256";
|
|
218
|
+
}, {
|
|
219
|
+
readonly name: "account";
|
|
220
|
+
readonly type: "address";
|
|
221
|
+
readonly internalType: "address";
|
|
222
|
+
}, {
|
|
223
|
+
readonly name: "owner";
|
|
224
|
+
readonly type: "address";
|
|
225
|
+
readonly internalType: "address";
|
|
226
|
+
}, {
|
|
227
|
+
readonly name: "agent";
|
|
228
|
+
readonly type: "address";
|
|
229
|
+
readonly internalType: "address";
|
|
230
|
+
}, {
|
|
231
|
+
readonly name: "validAfter";
|
|
232
|
+
readonly type: "uint64";
|
|
233
|
+
readonly internalType: "uint64";
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "validUntil";
|
|
236
|
+
readonly type: "uint64";
|
|
237
|
+
readonly internalType: "uint64";
|
|
238
|
+
}, {
|
|
239
|
+
readonly name: "targets";
|
|
240
|
+
readonly type: "tuple[]";
|
|
241
|
+
readonly internalType: "struct TargetRule[]";
|
|
242
|
+
readonly components: readonly [{
|
|
243
|
+
readonly name: "target";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
readonly internalType: "address";
|
|
246
|
+
}, {
|
|
247
|
+
readonly name: "selectors";
|
|
248
|
+
readonly type: "bytes4[]";
|
|
249
|
+
readonly internalType: "bytes4[]";
|
|
250
|
+
}];
|
|
251
|
+
}, {
|
|
252
|
+
readonly name: "assets";
|
|
253
|
+
readonly type: "tuple[]";
|
|
254
|
+
readonly internalType: "struct AssetRule[]";
|
|
255
|
+
readonly components: readonly [{
|
|
256
|
+
readonly name: "asset";
|
|
257
|
+
readonly type: "address";
|
|
258
|
+
readonly internalType: "address";
|
|
259
|
+
}, {
|
|
260
|
+
readonly name: "maxOutflow";
|
|
261
|
+
readonly type: "uint256";
|
|
262
|
+
readonly internalType: "uint256";
|
|
263
|
+
}];
|
|
264
|
+
}, {
|
|
265
|
+
readonly name: "services";
|
|
266
|
+
readonly type: "tuple[]";
|
|
267
|
+
readonly internalType: "struct ServiceRule[]";
|
|
268
|
+
readonly components: readonly [{
|
|
269
|
+
readonly name: "serviceId";
|
|
270
|
+
readonly type: "string";
|
|
271
|
+
readonly internalType: "string";
|
|
272
|
+
}, {
|
|
273
|
+
readonly name: "maxSpend";
|
|
274
|
+
readonly type: "uint256";
|
|
275
|
+
readonly internalType: "uint256";
|
|
276
|
+
}, {
|
|
277
|
+
readonly name: "allowedActions";
|
|
278
|
+
readonly type: "string[]";
|
|
279
|
+
readonly internalType: "string[]";
|
|
280
|
+
}];
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "maxNativeValue";
|
|
283
|
+
readonly type: "uint256";
|
|
284
|
+
readonly internalType: "uint256";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "spendLimits";
|
|
287
|
+
readonly type: "tuple[]";
|
|
288
|
+
readonly internalType: "struct SpendLimit[]";
|
|
289
|
+
readonly components: readonly [{
|
|
290
|
+
readonly name: "asset";
|
|
291
|
+
readonly type: "address";
|
|
292
|
+
readonly internalType: "address";
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "amount";
|
|
295
|
+
readonly type: "uint256";
|
|
296
|
+
readonly internalType: "uint256";
|
|
297
|
+
}];
|
|
298
|
+
}, {
|
|
299
|
+
readonly name: "maxActions";
|
|
300
|
+
readonly type: "uint256";
|
|
301
|
+
readonly internalType: "uint256";
|
|
302
|
+
}, {
|
|
303
|
+
readonly name: "nonceSpace";
|
|
304
|
+
readonly type: "uint192";
|
|
305
|
+
readonly internalType: "uint192";
|
|
306
|
+
}, {
|
|
307
|
+
readonly name: "salt";
|
|
308
|
+
readonly type: "bytes32";
|
|
309
|
+
readonly internalType: "bytes32";
|
|
310
|
+
}];
|
|
311
|
+
}, {
|
|
312
|
+
readonly name: "ownerSignature";
|
|
313
|
+
readonly type: "bytes";
|
|
314
|
+
readonly internalType: "bytes";
|
|
315
|
+
}, {
|
|
316
|
+
readonly name: "terms";
|
|
317
|
+
readonly type: "tuple";
|
|
318
|
+
readonly internalType: "struct LongTerms";
|
|
319
|
+
readonly components: readonly [{
|
|
320
|
+
readonly name: "period";
|
|
321
|
+
readonly type: "uint64";
|
|
322
|
+
readonly internalType: "uint64";
|
|
323
|
+
}, {
|
|
324
|
+
readonly name: "perPeriod";
|
|
325
|
+
readonly type: "tuple[]";
|
|
326
|
+
readonly internalType: "struct SpendLimit[]";
|
|
327
|
+
readonly components: readonly [{
|
|
328
|
+
readonly name: "asset";
|
|
329
|
+
readonly type: "address";
|
|
330
|
+
readonly internalType: "address";
|
|
331
|
+
}, {
|
|
332
|
+
readonly name: "amount";
|
|
333
|
+
readonly type: "uint256";
|
|
334
|
+
readonly internalType: "uint256";
|
|
335
|
+
}];
|
|
336
|
+
}, {
|
|
337
|
+
readonly name: "maxActionsPerPeriod";
|
|
338
|
+
readonly type: "uint256";
|
|
339
|
+
readonly internalType: "uint256";
|
|
340
|
+
}];
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "bundle";
|
|
343
|
+
readonly type: "tuple";
|
|
344
|
+
readonly internalType: "struct Bundle";
|
|
345
|
+
readonly components: readonly [{
|
|
346
|
+
readonly name: "fidesId";
|
|
347
|
+
readonly type: "bytes32";
|
|
348
|
+
readonly internalType: "bytes32";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "nonce";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
readonly internalType: "uint256";
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "mode";
|
|
355
|
+
readonly type: "uint8";
|
|
356
|
+
readonly internalType: "enum ExecutionMode";
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "calls";
|
|
359
|
+
readonly type: "tuple[]";
|
|
360
|
+
readonly internalType: "struct Call[]";
|
|
361
|
+
readonly components: readonly [{
|
|
362
|
+
readonly name: "target";
|
|
363
|
+
readonly type: "address";
|
|
364
|
+
readonly internalType: "address";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "value";
|
|
367
|
+
readonly type: "uint256";
|
|
368
|
+
readonly internalType: "uint256";
|
|
369
|
+
}, {
|
|
370
|
+
readonly name: "data";
|
|
371
|
+
readonly type: "bytes";
|
|
372
|
+
readonly internalType: "bytes";
|
|
373
|
+
}];
|
|
374
|
+
}];
|
|
375
|
+
}, {
|
|
376
|
+
readonly name: "agentSignature";
|
|
377
|
+
readonly type: "bytes";
|
|
378
|
+
readonly internalType: "bytes";
|
|
379
|
+
}];
|
|
380
|
+
readonly outputs: readonly [{
|
|
381
|
+
readonly name: "results";
|
|
382
|
+
readonly type: "bytes[]";
|
|
383
|
+
readonly internalType: "bytes[]";
|
|
384
|
+
}];
|
|
385
|
+
readonly stateMutability: "nonpayable";
|
|
386
|
+
}, {
|
|
387
|
+
readonly type: "function";
|
|
388
|
+
readonly name: "executeSub";
|
|
389
|
+
readonly inputs: readonly [{
|
|
390
|
+
readonly name: "fides";
|
|
391
|
+
readonly type: "tuple";
|
|
392
|
+
readonly internalType: "struct Fides";
|
|
393
|
+
readonly components: readonly [{
|
|
394
|
+
readonly name: "version";
|
|
395
|
+
readonly type: "uint16";
|
|
396
|
+
readonly internalType: "uint16";
|
|
397
|
+
}, {
|
|
398
|
+
readonly name: "chainId";
|
|
399
|
+
readonly type: "uint256";
|
|
400
|
+
readonly internalType: "uint256";
|
|
401
|
+
}, {
|
|
402
|
+
readonly name: "account";
|
|
403
|
+
readonly type: "address";
|
|
404
|
+
readonly internalType: "address";
|
|
405
|
+
}, {
|
|
406
|
+
readonly name: "owner";
|
|
407
|
+
readonly type: "address";
|
|
408
|
+
readonly internalType: "address";
|
|
409
|
+
}, {
|
|
410
|
+
readonly name: "agent";
|
|
411
|
+
readonly type: "address";
|
|
412
|
+
readonly internalType: "address";
|
|
413
|
+
}, {
|
|
414
|
+
readonly name: "validAfter";
|
|
415
|
+
readonly type: "uint64";
|
|
416
|
+
readonly internalType: "uint64";
|
|
417
|
+
}, {
|
|
418
|
+
readonly name: "validUntil";
|
|
419
|
+
readonly type: "uint64";
|
|
420
|
+
readonly internalType: "uint64";
|
|
421
|
+
}, {
|
|
422
|
+
readonly name: "targets";
|
|
423
|
+
readonly type: "tuple[]";
|
|
424
|
+
readonly internalType: "struct TargetRule[]";
|
|
425
|
+
readonly components: readonly [{
|
|
426
|
+
readonly name: "target";
|
|
427
|
+
readonly type: "address";
|
|
428
|
+
readonly internalType: "address";
|
|
429
|
+
}, {
|
|
430
|
+
readonly name: "selectors";
|
|
431
|
+
readonly type: "bytes4[]";
|
|
432
|
+
readonly internalType: "bytes4[]";
|
|
433
|
+
}];
|
|
434
|
+
}, {
|
|
435
|
+
readonly name: "assets";
|
|
436
|
+
readonly type: "tuple[]";
|
|
437
|
+
readonly internalType: "struct AssetRule[]";
|
|
438
|
+
readonly components: readonly [{
|
|
439
|
+
readonly name: "asset";
|
|
440
|
+
readonly type: "address";
|
|
441
|
+
readonly internalType: "address";
|
|
442
|
+
}, {
|
|
443
|
+
readonly name: "maxOutflow";
|
|
444
|
+
readonly type: "uint256";
|
|
445
|
+
readonly internalType: "uint256";
|
|
446
|
+
}];
|
|
447
|
+
}, {
|
|
448
|
+
readonly name: "services";
|
|
449
|
+
readonly type: "tuple[]";
|
|
450
|
+
readonly internalType: "struct ServiceRule[]";
|
|
451
|
+
readonly components: readonly [{
|
|
452
|
+
readonly name: "serviceId";
|
|
453
|
+
readonly type: "string";
|
|
454
|
+
readonly internalType: "string";
|
|
455
|
+
}, {
|
|
456
|
+
readonly name: "maxSpend";
|
|
457
|
+
readonly type: "uint256";
|
|
458
|
+
readonly internalType: "uint256";
|
|
459
|
+
}, {
|
|
460
|
+
readonly name: "allowedActions";
|
|
461
|
+
readonly type: "string[]";
|
|
462
|
+
readonly internalType: "string[]";
|
|
463
|
+
}];
|
|
464
|
+
}, {
|
|
465
|
+
readonly name: "maxNativeValue";
|
|
466
|
+
readonly type: "uint256";
|
|
467
|
+
readonly internalType: "uint256";
|
|
468
|
+
}, {
|
|
469
|
+
readonly name: "spendLimits";
|
|
470
|
+
readonly type: "tuple[]";
|
|
471
|
+
readonly internalType: "struct SpendLimit[]";
|
|
472
|
+
readonly components: readonly [{
|
|
473
|
+
readonly name: "asset";
|
|
474
|
+
readonly type: "address";
|
|
475
|
+
readonly internalType: "address";
|
|
476
|
+
}, {
|
|
477
|
+
readonly name: "amount";
|
|
478
|
+
readonly type: "uint256";
|
|
479
|
+
readonly internalType: "uint256";
|
|
480
|
+
}];
|
|
481
|
+
}, {
|
|
482
|
+
readonly name: "maxActions";
|
|
483
|
+
readonly type: "uint256";
|
|
484
|
+
readonly internalType: "uint256";
|
|
485
|
+
}, {
|
|
486
|
+
readonly name: "nonceSpace";
|
|
487
|
+
readonly type: "uint192";
|
|
488
|
+
readonly internalType: "uint192";
|
|
489
|
+
}, {
|
|
490
|
+
readonly name: "salt";
|
|
491
|
+
readonly type: "bytes32";
|
|
492
|
+
readonly internalType: "bytes32";
|
|
493
|
+
}];
|
|
494
|
+
}, {
|
|
495
|
+
readonly name: "ownerSignature";
|
|
496
|
+
readonly type: "bytes";
|
|
497
|
+
readonly internalType: "bytes";
|
|
498
|
+
}, {
|
|
499
|
+
readonly name: "sub";
|
|
500
|
+
readonly type: "tuple";
|
|
501
|
+
readonly internalType: "struct SubFides";
|
|
502
|
+
readonly components: readonly [{
|
|
503
|
+
readonly name: "parentFidesId";
|
|
504
|
+
readonly type: "bytes32";
|
|
505
|
+
readonly internalType: "bytes32";
|
|
506
|
+
}, {
|
|
507
|
+
readonly name: "agent";
|
|
508
|
+
readonly type: "address";
|
|
509
|
+
readonly internalType: "address";
|
|
510
|
+
}, {
|
|
511
|
+
readonly name: "validAfter";
|
|
512
|
+
readonly type: "uint64";
|
|
513
|
+
readonly internalType: "uint64";
|
|
514
|
+
}, {
|
|
515
|
+
readonly name: "validUntil";
|
|
516
|
+
readonly type: "uint64";
|
|
517
|
+
readonly internalType: "uint64";
|
|
518
|
+
}, {
|
|
519
|
+
readonly name: "targets";
|
|
520
|
+
readonly type: "tuple[]";
|
|
521
|
+
readonly internalType: "struct TargetRule[]";
|
|
522
|
+
readonly components: readonly [{
|
|
523
|
+
readonly name: "target";
|
|
524
|
+
readonly type: "address";
|
|
525
|
+
readonly internalType: "address";
|
|
526
|
+
}, {
|
|
527
|
+
readonly name: "selectors";
|
|
528
|
+
readonly type: "bytes4[]";
|
|
529
|
+
readonly internalType: "bytes4[]";
|
|
530
|
+
}];
|
|
531
|
+
}, {
|
|
532
|
+
readonly name: "spendLimits";
|
|
533
|
+
readonly type: "tuple[]";
|
|
534
|
+
readonly internalType: "struct SpendLimit[]";
|
|
535
|
+
readonly components: readonly [{
|
|
536
|
+
readonly name: "asset";
|
|
537
|
+
readonly type: "address";
|
|
538
|
+
readonly internalType: "address";
|
|
539
|
+
}, {
|
|
540
|
+
readonly name: "amount";
|
|
541
|
+
readonly type: "uint256";
|
|
542
|
+
readonly internalType: "uint256";
|
|
543
|
+
}];
|
|
544
|
+
}, {
|
|
545
|
+
readonly name: "maxNativeValue";
|
|
546
|
+
readonly type: "uint256";
|
|
547
|
+
readonly internalType: "uint256";
|
|
548
|
+
}, {
|
|
549
|
+
readonly name: "maxActions";
|
|
550
|
+
readonly type: "uint256";
|
|
551
|
+
readonly internalType: "uint256";
|
|
552
|
+
}, {
|
|
553
|
+
readonly name: "salt";
|
|
554
|
+
readonly type: "bytes32";
|
|
555
|
+
readonly internalType: "bytes32";
|
|
556
|
+
}];
|
|
557
|
+
}, {
|
|
558
|
+
readonly name: "parentAgentSignature";
|
|
559
|
+
readonly type: "bytes";
|
|
560
|
+
readonly internalType: "bytes";
|
|
561
|
+
}, {
|
|
562
|
+
readonly name: "bundle";
|
|
563
|
+
readonly type: "tuple";
|
|
564
|
+
readonly internalType: "struct Bundle";
|
|
565
|
+
readonly components: readonly [{
|
|
566
|
+
readonly name: "fidesId";
|
|
567
|
+
readonly type: "bytes32";
|
|
568
|
+
readonly internalType: "bytes32";
|
|
569
|
+
}, {
|
|
570
|
+
readonly name: "nonce";
|
|
571
|
+
readonly type: "uint256";
|
|
572
|
+
readonly internalType: "uint256";
|
|
573
|
+
}, {
|
|
574
|
+
readonly name: "mode";
|
|
575
|
+
readonly type: "uint8";
|
|
576
|
+
readonly internalType: "enum ExecutionMode";
|
|
577
|
+
}, {
|
|
578
|
+
readonly name: "calls";
|
|
579
|
+
readonly type: "tuple[]";
|
|
580
|
+
readonly internalType: "struct Call[]";
|
|
581
|
+
readonly components: readonly [{
|
|
582
|
+
readonly name: "target";
|
|
583
|
+
readonly type: "address";
|
|
584
|
+
readonly internalType: "address";
|
|
585
|
+
}, {
|
|
586
|
+
readonly name: "value";
|
|
587
|
+
readonly type: "uint256";
|
|
588
|
+
readonly internalType: "uint256";
|
|
589
|
+
}, {
|
|
590
|
+
readonly name: "data";
|
|
591
|
+
readonly type: "bytes";
|
|
592
|
+
readonly internalType: "bytes";
|
|
593
|
+
}];
|
|
594
|
+
}];
|
|
595
|
+
}, {
|
|
596
|
+
readonly name: "childSignature";
|
|
597
|
+
readonly type: "bytes";
|
|
598
|
+
readonly internalType: "bytes";
|
|
599
|
+
}];
|
|
600
|
+
readonly outputs: readonly [{
|
|
601
|
+
readonly name: "results";
|
|
602
|
+
readonly type: "bytes[]";
|
|
603
|
+
readonly internalType: "bytes[]";
|
|
604
|
+
}];
|
|
605
|
+
readonly stateMutability: "nonpayable";
|
|
606
|
+
}, {
|
|
607
|
+
readonly type: "function";
|
|
608
|
+
readonly name: "initialize";
|
|
609
|
+
readonly inputs: readonly [{
|
|
610
|
+
readonly name: "owner_";
|
|
611
|
+
readonly type: "address";
|
|
612
|
+
readonly internalType: "address";
|
|
613
|
+
}];
|
|
614
|
+
readonly outputs: readonly [];
|
|
615
|
+
readonly stateMutability: "nonpayable";
|
|
616
|
+
}, {
|
|
617
|
+
readonly type: "function";
|
|
618
|
+
readonly name: "isNonceUsed";
|
|
619
|
+
readonly inputs: readonly [{
|
|
620
|
+
readonly name: "fidesId";
|
|
621
|
+
readonly type: "bytes32";
|
|
622
|
+
readonly internalType: "bytes32";
|
|
623
|
+
}, {
|
|
624
|
+
readonly name: "nonce";
|
|
625
|
+
readonly type: "uint256";
|
|
626
|
+
readonly internalType: "uint256";
|
|
627
|
+
}];
|
|
628
|
+
readonly outputs: readonly [{
|
|
629
|
+
readonly name: "";
|
|
630
|
+
readonly type: "bool";
|
|
631
|
+
readonly internalType: "bool";
|
|
632
|
+
}];
|
|
633
|
+
readonly stateMutability: "view";
|
|
634
|
+
}, {
|
|
635
|
+
readonly type: "function";
|
|
636
|
+
readonly name: "nativeUsed";
|
|
637
|
+
readonly inputs: readonly [{
|
|
638
|
+
readonly name: "fidesId";
|
|
639
|
+
readonly type: "bytes32";
|
|
640
|
+
readonly internalType: "bytes32";
|
|
641
|
+
}];
|
|
642
|
+
readonly outputs: readonly [{
|
|
643
|
+
readonly name: "";
|
|
644
|
+
readonly type: "uint256";
|
|
645
|
+
readonly internalType: "uint256";
|
|
646
|
+
}];
|
|
647
|
+
readonly stateMutability: "view";
|
|
648
|
+
}, {
|
|
649
|
+
readonly type: "function";
|
|
650
|
+
readonly name: "owner";
|
|
651
|
+
readonly inputs: readonly [];
|
|
652
|
+
readonly outputs: readonly [{
|
|
653
|
+
readonly name: "";
|
|
654
|
+
readonly type: "address";
|
|
655
|
+
readonly internalType: "address";
|
|
656
|
+
}];
|
|
657
|
+
readonly stateMutability: "view";
|
|
658
|
+
}, {
|
|
659
|
+
readonly type: "function";
|
|
660
|
+
readonly name: "ownerExecute";
|
|
661
|
+
readonly inputs: readonly [{
|
|
662
|
+
readonly name: "target";
|
|
663
|
+
readonly type: "address";
|
|
664
|
+
readonly internalType: "address";
|
|
665
|
+
}, {
|
|
666
|
+
readonly name: "value";
|
|
667
|
+
readonly type: "uint256";
|
|
668
|
+
readonly internalType: "uint256";
|
|
669
|
+
}, {
|
|
670
|
+
readonly name: "data";
|
|
671
|
+
readonly type: "bytes";
|
|
672
|
+
readonly internalType: "bytes";
|
|
673
|
+
}];
|
|
674
|
+
readonly outputs: readonly [{
|
|
675
|
+
readonly name: "ret";
|
|
676
|
+
readonly type: "bytes";
|
|
677
|
+
readonly internalType: "bytes";
|
|
678
|
+
}];
|
|
679
|
+
readonly stateMutability: "nonpayable";
|
|
680
|
+
}, {
|
|
681
|
+
readonly type: "function";
|
|
682
|
+
readonly name: "policy";
|
|
683
|
+
readonly inputs: readonly [];
|
|
684
|
+
readonly outputs: readonly [{
|
|
685
|
+
readonly name: "";
|
|
686
|
+
readonly type: "address";
|
|
687
|
+
readonly internalType: "contract FidesPolicy";
|
|
688
|
+
}];
|
|
689
|
+
readonly stateMutability: "view";
|
|
690
|
+
}, {
|
|
691
|
+
readonly type: "function";
|
|
692
|
+
readonly name: "revocation";
|
|
693
|
+
readonly inputs: readonly [];
|
|
694
|
+
readonly outputs: readonly [{
|
|
695
|
+
readonly name: "";
|
|
696
|
+
readonly type: "address";
|
|
697
|
+
readonly internalType: "contract FidesRevocation";
|
|
698
|
+
}];
|
|
699
|
+
readonly stateMutability: "view";
|
|
700
|
+
}, {
|
|
701
|
+
readonly type: "function";
|
|
702
|
+
readonly name: "spent";
|
|
703
|
+
readonly inputs: readonly [{
|
|
704
|
+
readonly name: "fidesId";
|
|
705
|
+
readonly type: "bytes32";
|
|
706
|
+
readonly internalType: "bytes32";
|
|
707
|
+
}, {
|
|
708
|
+
readonly name: "asset";
|
|
709
|
+
readonly type: "address";
|
|
710
|
+
readonly internalType: "address";
|
|
711
|
+
}];
|
|
712
|
+
readonly outputs: readonly [{
|
|
713
|
+
readonly name: "";
|
|
714
|
+
readonly type: "uint256";
|
|
715
|
+
readonly internalType: "uint256";
|
|
716
|
+
}];
|
|
717
|
+
readonly stateMutability: "view";
|
|
718
|
+
}, {
|
|
719
|
+
readonly type: "function";
|
|
720
|
+
readonly name: "spentInPeriod";
|
|
721
|
+
readonly inputs: readonly [{
|
|
722
|
+
readonly name: "fidesId";
|
|
723
|
+
readonly type: "bytes32";
|
|
724
|
+
readonly internalType: "bytes32";
|
|
725
|
+
}, {
|
|
726
|
+
readonly name: "period";
|
|
727
|
+
readonly type: "uint256";
|
|
728
|
+
readonly internalType: "uint256";
|
|
729
|
+
}, {
|
|
730
|
+
readonly name: "asset";
|
|
731
|
+
readonly type: "address";
|
|
732
|
+
readonly internalType: "address";
|
|
733
|
+
}];
|
|
734
|
+
readonly outputs: readonly [{
|
|
735
|
+
readonly name: "";
|
|
736
|
+
readonly type: "uint256";
|
|
737
|
+
readonly internalType: "uint256";
|
|
738
|
+
}];
|
|
739
|
+
readonly stateMutability: "view";
|
|
740
|
+
}, {
|
|
741
|
+
readonly type: "function";
|
|
742
|
+
readonly name: "staged";
|
|
743
|
+
readonly inputs: readonly [];
|
|
744
|
+
readonly outputs: readonly [{
|
|
745
|
+
readonly name: "";
|
|
746
|
+
readonly type: "address";
|
|
747
|
+
readonly internalType: "contract FidesStagedVerifier";
|
|
748
|
+
}];
|
|
749
|
+
readonly stateMutability: "view";
|
|
750
|
+
}, {
|
|
751
|
+
readonly type: "function";
|
|
752
|
+
readonly name: "verifier";
|
|
753
|
+
readonly inputs: readonly [];
|
|
754
|
+
readonly outputs: readonly [{
|
|
755
|
+
readonly name: "";
|
|
756
|
+
readonly type: "address";
|
|
757
|
+
readonly internalType: "contract FidesVerifier";
|
|
758
|
+
}];
|
|
759
|
+
readonly stateMutability: "view";
|
|
760
|
+
}, {
|
|
761
|
+
readonly type: "event";
|
|
762
|
+
readonly name: "BundleExecuted";
|
|
763
|
+
readonly inputs: readonly [{
|
|
764
|
+
readonly name: "fidesId";
|
|
765
|
+
readonly type: "bytes32";
|
|
766
|
+
readonly indexed: true;
|
|
767
|
+
readonly internalType: "bytes32";
|
|
768
|
+
}, {
|
|
769
|
+
readonly name: "bundleHash";
|
|
770
|
+
readonly type: "bytes32";
|
|
771
|
+
readonly indexed: true;
|
|
772
|
+
readonly internalType: "bytes32";
|
|
773
|
+
}, {
|
|
774
|
+
readonly name: "mode";
|
|
775
|
+
readonly type: "uint8";
|
|
776
|
+
readonly indexed: false;
|
|
777
|
+
readonly internalType: "enum ExecutionMode";
|
|
778
|
+
}, {
|
|
779
|
+
readonly name: "succeeded";
|
|
780
|
+
readonly type: "uint256";
|
|
781
|
+
readonly indexed: false;
|
|
782
|
+
readonly internalType: "uint256";
|
|
783
|
+
}, {
|
|
784
|
+
readonly name: "failed";
|
|
785
|
+
readonly type: "uint256";
|
|
786
|
+
readonly indexed: false;
|
|
787
|
+
readonly internalType: "uint256";
|
|
788
|
+
}];
|
|
789
|
+
readonly anonymous: false;
|
|
790
|
+
}, {
|
|
791
|
+
readonly type: "event";
|
|
792
|
+
readonly name: "CallResult";
|
|
793
|
+
readonly inputs: readonly [{
|
|
794
|
+
readonly name: "bundleHash";
|
|
795
|
+
readonly type: "bytes32";
|
|
796
|
+
readonly indexed: true;
|
|
797
|
+
readonly internalType: "bytes32";
|
|
798
|
+
}, {
|
|
799
|
+
readonly name: "index";
|
|
800
|
+
readonly type: "uint256";
|
|
801
|
+
readonly indexed: false;
|
|
802
|
+
readonly internalType: "uint256";
|
|
803
|
+
}, {
|
|
804
|
+
readonly name: "success";
|
|
805
|
+
readonly type: "bool";
|
|
806
|
+
readonly indexed: false;
|
|
807
|
+
readonly internalType: "bool";
|
|
808
|
+
}];
|
|
809
|
+
readonly anonymous: false;
|
|
810
|
+
}, {
|
|
811
|
+
readonly type: "event";
|
|
812
|
+
readonly name: "FidesExecuted";
|
|
813
|
+
readonly inputs: readonly [{
|
|
814
|
+
readonly name: "fidesId";
|
|
815
|
+
readonly type: "bytes32";
|
|
816
|
+
readonly indexed: true;
|
|
817
|
+
readonly internalType: "bytes32";
|
|
818
|
+
}, {
|
|
819
|
+
readonly name: "bundleHash";
|
|
820
|
+
readonly type: "bytes32";
|
|
821
|
+
readonly indexed: true;
|
|
822
|
+
readonly internalType: "bytes32";
|
|
823
|
+
}, {
|
|
824
|
+
readonly name: "agent";
|
|
825
|
+
readonly type: "address";
|
|
826
|
+
readonly indexed: true;
|
|
827
|
+
readonly internalType: "address";
|
|
828
|
+
}, {
|
|
829
|
+
readonly name: "actionCount";
|
|
830
|
+
readonly type: "uint256";
|
|
831
|
+
readonly indexed: false;
|
|
832
|
+
readonly internalType: "uint256";
|
|
833
|
+
}];
|
|
834
|
+
readonly anonymous: false;
|
|
835
|
+
}, {
|
|
836
|
+
readonly type: "event";
|
|
837
|
+
readonly name: "LongFidesExecuted";
|
|
838
|
+
readonly inputs: readonly [{
|
|
839
|
+
readonly name: "fidesId";
|
|
840
|
+
readonly type: "bytes32";
|
|
841
|
+
readonly indexed: true;
|
|
842
|
+
readonly internalType: "bytes32";
|
|
843
|
+
}, {
|
|
844
|
+
readonly name: "period";
|
|
845
|
+
readonly type: "uint256";
|
|
846
|
+
readonly indexed: true;
|
|
847
|
+
readonly internalType: "uint256";
|
|
848
|
+
}, {
|
|
849
|
+
readonly name: "bundleHash";
|
|
850
|
+
readonly type: "bytes32";
|
|
851
|
+
readonly indexed: true;
|
|
852
|
+
readonly internalType: "bytes32";
|
|
853
|
+
}];
|
|
854
|
+
readonly anonymous: false;
|
|
855
|
+
}, {
|
|
856
|
+
readonly type: "event";
|
|
857
|
+
readonly name: "SpendRecorded";
|
|
858
|
+
readonly inputs: readonly [{
|
|
859
|
+
readonly name: "fidesId";
|
|
860
|
+
readonly type: "bytes32";
|
|
861
|
+
readonly indexed: true;
|
|
862
|
+
readonly internalType: "bytes32";
|
|
863
|
+
}, {
|
|
864
|
+
readonly name: "asset";
|
|
865
|
+
readonly type: "address";
|
|
866
|
+
readonly indexed: true;
|
|
867
|
+
readonly internalType: "address";
|
|
868
|
+
}, {
|
|
869
|
+
readonly name: "amount";
|
|
870
|
+
readonly type: "uint256";
|
|
871
|
+
readonly indexed: false;
|
|
872
|
+
readonly internalType: "uint256";
|
|
873
|
+
}, {
|
|
874
|
+
readonly name: "total";
|
|
875
|
+
readonly type: "uint256";
|
|
876
|
+
readonly indexed: false;
|
|
877
|
+
readonly internalType: "uint256";
|
|
878
|
+
}];
|
|
879
|
+
readonly anonymous: false;
|
|
880
|
+
}, {
|
|
881
|
+
readonly type: "event";
|
|
882
|
+
readonly name: "SubFidesExecuted";
|
|
883
|
+
readonly inputs: readonly [{
|
|
884
|
+
readonly name: "parentFidesId";
|
|
885
|
+
readonly type: "bytes32";
|
|
886
|
+
readonly indexed: true;
|
|
887
|
+
readonly internalType: "bytes32";
|
|
888
|
+
}, {
|
|
889
|
+
readonly name: "subFidesId";
|
|
890
|
+
readonly type: "bytes32";
|
|
891
|
+
readonly indexed: true;
|
|
892
|
+
readonly internalType: "bytes32";
|
|
893
|
+
}, {
|
|
894
|
+
readonly name: "bundleHash";
|
|
895
|
+
readonly type: "bytes32";
|
|
896
|
+
readonly indexed: true;
|
|
897
|
+
readonly internalType: "bytes32";
|
|
898
|
+
}, {
|
|
899
|
+
readonly name: "childAgent";
|
|
900
|
+
readonly type: "address";
|
|
901
|
+
readonly indexed: false;
|
|
902
|
+
readonly internalType: "address";
|
|
903
|
+
}];
|
|
904
|
+
readonly anonymous: false;
|
|
905
|
+
}, {
|
|
906
|
+
readonly type: "error";
|
|
907
|
+
readonly name: "AlreadyInitialized";
|
|
908
|
+
readonly inputs: readonly [];
|
|
909
|
+
}, {
|
|
910
|
+
readonly type: "error";
|
|
911
|
+
readonly name: "AssetOutflowExceeded";
|
|
912
|
+
readonly inputs: readonly [{
|
|
913
|
+
readonly name: "asset";
|
|
914
|
+
readonly type: "address";
|
|
915
|
+
readonly internalType: "address";
|
|
916
|
+
}];
|
|
917
|
+
}, {
|
|
918
|
+
readonly type: "error";
|
|
919
|
+
readonly name: "FidesExpired";
|
|
920
|
+
readonly inputs: readonly [];
|
|
921
|
+
}, {
|
|
922
|
+
readonly type: "error";
|
|
923
|
+
readonly name: "FidesRevoked";
|
|
924
|
+
readonly inputs: readonly [];
|
|
925
|
+
}, {
|
|
926
|
+
readonly type: "error";
|
|
927
|
+
readonly name: "InvalidAgentSignature";
|
|
928
|
+
readonly inputs: readonly [];
|
|
929
|
+
}, {
|
|
930
|
+
readonly type: "error";
|
|
931
|
+
readonly name: "InvalidOwner";
|
|
932
|
+
readonly inputs: readonly [];
|
|
933
|
+
}, {
|
|
934
|
+
readonly type: "error";
|
|
935
|
+
readonly name: "InvalidOwnerSignature";
|
|
936
|
+
readonly inputs: readonly [];
|
|
937
|
+
}, {
|
|
938
|
+
readonly type: "error";
|
|
939
|
+
readonly name: "InvalidParentAgentSignature";
|
|
940
|
+
readonly inputs: readonly [];
|
|
941
|
+
}, {
|
|
942
|
+
readonly type: "error";
|
|
943
|
+
readonly name: "InvalidPeriod";
|
|
944
|
+
readonly inputs: readonly [];
|
|
945
|
+
}, {
|
|
946
|
+
readonly type: "error";
|
|
947
|
+
readonly name: "LongFidesRequiresExecuteLong";
|
|
948
|
+
readonly inputs: readonly [];
|
|
949
|
+
}, {
|
|
950
|
+
readonly type: "error";
|
|
951
|
+
readonly name: "NonceAlreadyUsed";
|
|
952
|
+
readonly inputs: readonly [];
|
|
953
|
+
}, {
|
|
954
|
+
readonly type: "error";
|
|
955
|
+
readonly name: "NonceOutsidePeriod";
|
|
956
|
+
readonly inputs: readonly [];
|
|
957
|
+
}, {
|
|
958
|
+
readonly type: "error";
|
|
959
|
+
readonly name: "NotALongFides";
|
|
960
|
+
readonly inputs: readonly [];
|
|
961
|
+
}, {
|
|
962
|
+
readonly type: "error";
|
|
963
|
+
readonly name: "NotOwner";
|
|
964
|
+
readonly inputs: readonly [];
|
|
965
|
+
}, {
|
|
966
|
+
readonly type: "error";
|
|
967
|
+
readonly name: "OwnerCallFailed";
|
|
968
|
+
readonly inputs: readonly [];
|
|
969
|
+
}, {
|
|
970
|
+
readonly type: "error";
|
|
971
|
+
readonly name: "OwnerMismatch";
|
|
972
|
+
readonly inputs: readonly [];
|
|
973
|
+
}, {
|
|
974
|
+
readonly type: "error";
|
|
975
|
+
readonly name: "ParentActionLimitExceeded";
|
|
976
|
+
readonly inputs: readonly [];
|
|
977
|
+
}, {
|
|
978
|
+
readonly type: "error";
|
|
979
|
+
readonly name: "ParentNativeValueExceeded";
|
|
980
|
+
readonly inputs: readonly [];
|
|
981
|
+
}, {
|
|
982
|
+
readonly type: "error";
|
|
983
|
+
readonly name: "PeriodActionLimitExceeded";
|
|
984
|
+
readonly inputs: readonly [];
|
|
985
|
+
}, {
|
|
986
|
+
readonly type: "error";
|
|
987
|
+
readonly name: "PeriodSpendExceeded";
|
|
988
|
+
readonly inputs: readonly [{
|
|
989
|
+
readonly name: "asset";
|
|
990
|
+
readonly type: "address";
|
|
991
|
+
readonly internalType: "address";
|
|
992
|
+
}];
|
|
993
|
+
}, {
|
|
994
|
+
readonly type: "error";
|
|
995
|
+
readonly name: "Reentrancy";
|
|
996
|
+
readonly inputs: readonly [];
|
|
997
|
+
}, {
|
|
998
|
+
readonly type: "error";
|
|
999
|
+
readonly name: "SpendLimitExceeded";
|
|
1000
|
+
readonly inputs: readonly [{
|
|
1001
|
+
readonly name: "asset";
|
|
1002
|
+
readonly type: "address";
|
|
1003
|
+
readonly internalType: "address";
|
|
1004
|
+
}];
|
|
1005
|
+
}, {
|
|
1006
|
+
readonly type: "error";
|
|
1007
|
+
readonly name: "SubFidesRevoked";
|
|
1008
|
+
readonly inputs: readonly [];
|
|
1009
|
+
}, {
|
|
1010
|
+
readonly type: "error";
|
|
1011
|
+
readonly name: "TermsMismatch";
|
|
1012
|
+
readonly inputs: readonly [];
|
|
1013
|
+
}, {
|
|
1014
|
+
readonly type: "error";
|
|
1015
|
+
readonly name: "WrongAccount";
|
|
1016
|
+
readonly inputs: readonly [];
|
|
1017
|
+
}, {
|
|
1018
|
+
readonly type: "error";
|
|
1019
|
+
readonly name: "WrongFides";
|
|
1020
|
+
readonly inputs: readonly [];
|
|
1021
|
+
}, {
|
|
1022
|
+
readonly type: "error";
|
|
1023
|
+
readonly name: "WrongParent";
|
|
1024
|
+
readonly inputs: readonly [];
|
|
1025
|
+
}];
|
|
1026
|
+
export declare const fidesSubVerifierAbi: readonly [{
|
|
1027
|
+
readonly type: "function";
|
|
1028
|
+
readonly name: "checkSubset";
|
|
1029
|
+
readonly inputs: readonly [{
|
|
1030
|
+
readonly name: "parent";
|
|
1031
|
+
readonly type: "tuple";
|
|
1032
|
+
readonly internalType: "struct Fides";
|
|
1033
|
+
readonly components: readonly [{
|
|
1034
|
+
readonly name: "version";
|
|
1035
|
+
readonly type: "uint16";
|
|
1036
|
+
readonly internalType: "uint16";
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly name: "chainId";
|
|
1039
|
+
readonly type: "uint256";
|
|
1040
|
+
readonly internalType: "uint256";
|
|
1041
|
+
}, {
|
|
1042
|
+
readonly name: "account";
|
|
1043
|
+
readonly type: "address";
|
|
1044
|
+
readonly internalType: "address";
|
|
1045
|
+
}, {
|
|
1046
|
+
readonly name: "owner";
|
|
1047
|
+
readonly type: "address";
|
|
1048
|
+
readonly internalType: "address";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly name: "agent";
|
|
1051
|
+
readonly type: "address";
|
|
1052
|
+
readonly internalType: "address";
|
|
1053
|
+
}, {
|
|
1054
|
+
readonly name: "validAfter";
|
|
1055
|
+
readonly type: "uint64";
|
|
1056
|
+
readonly internalType: "uint64";
|
|
1057
|
+
}, {
|
|
1058
|
+
readonly name: "validUntil";
|
|
1059
|
+
readonly type: "uint64";
|
|
1060
|
+
readonly internalType: "uint64";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly name: "targets";
|
|
1063
|
+
readonly type: "tuple[]";
|
|
1064
|
+
readonly internalType: "struct TargetRule[]";
|
|
1065
|
+
readonly components: readonly [{
|
|
1066
|
+
readonly name: "target";
|
|
1067
|
+
readonly type: "address";
|
|
1068
|
+
readonly internalType: "address";
|
|
1069
|
+
}, {
|
|
1070
|
+
readonly name: "selectors";
|
|
1071
|
+
readonly type: "bytes4[]";
|
|
1072
|
+
readonly internalType: "bytes4[]";
|
|
1073
|
+
}];
|
|
1074
|
+
}, {
|
|
1075
|
+
readonly name: "assets";
|
|
1076
|
+
readonly type: "tuple[]";
|
|
1077
|
+
readonly internalType: "struct AssetRule[]";
|
|
1078
|
+
readonly components: readonly [{
|
|
1079
|
+
readonly name: "asset";
|
|
1080
|
+
readonly type: "address";
|
|
1081
|
+
readonly internalType: "address";
|
|
1082
|
+
}, {
|
|
1083
|
+
readonly name: "maxOutflow";
|
|
1084
|
+
readonly type: "uint256";
|
|
1085
|
+
readonly internalType: "uint256";
|
|
1086
|
+
}];
|
|
1087
|
+
}, {
|
|
1088
|
+
readonly name: "services";
|
|
1089
|
+
readonly type: "tuple[]";
|
|
1090
|
+
readonly internalType: "struct ServiceRule[]";
|
|
1091
|
+
readonly components: readonly [{
|
|
1092
|
+
readonly name: "serviceId";
|
|
1093
|
+
readonly type: "string";
|
|
1094
|
+
readonly internalType: "string";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly name: "maxSpend";
|
|
1097
|
+
readonly type: "uint256";
|
|
1098
|
+
readonly internalType: "uint256";
|
|
1099
|
+
}, {
|
|
1100
|
+
readonly name: "allowedActions";
|
|
1101
|
+
readonly type: "string[]";
|
|
1102
|
+
readonly internalType: "string[]";
|
|
1103
|
+
}];
|
|
1104
|
+
}, {
|
|
1105
|
+
readonly name: "maxNativeValue";
|
|
1106
|
+
readonly type: "uint256";
|
|
1107
|
+
readonly internalType: "uint256";
|
|
1108
|
+
}, {
|
|
1109
|
+
readonly name: "spendLimits";
|
|
1110
|
+
readonly type: "tuple[]";
|
|
1111
|
+
readonly internalType: "struct SpendLimit[]";
|
|
1112
|
+
readonly components: readonly [{
|
|
1113
|
+
readonly name: "asset";
|
|
1114
|
+
readonly type: "address";
|
|
1115
|
+
readonly internalType: "address";
|
|
1116
|
+
}, {
|
|
1117
|
+
readonly name: "amount";
|
|
1118
|
+
readonly type: "uint256";
|
|
1119
|
+
readonly internalType: "uint256";
|
|
1120
|
+
}];
|
|
1121
|
+
}, {
|
|
1122
|
+
readonly name: "maxActions";
|
|
1123
|
+
readonly type: "uint256";
|
|
1124
|
+
readonly internalType: "uint256";
|
|
1125
|
+
}, {
|
|
1126
|
+
readonly name: "nonceSpace";
|
|
1127
|
+
readonly type: "uint192";
|
|
1128
|
+
readonly internalType: "uint192";
|
|
1129
|
+
}, {
|
|
1130
|
+
readonly name: "salt";
|
|
1131
|
+
readonly type: "bytes32";
|
|
1132
|
+
readonly internalType: "bytes32";
|
|
1133
|
+
}];
|
|
1134
|
+
}, {
|
|
1135
|
+
readonly name: "child";
|
|
1136
|
+
readonly type: "tuple";
|
|
1137
|
+
readonly internalType: "struct SubFides";
|
|
1138
|
+
readonly components: readonly [{
|
|
1139
|
+
readonly name: "parentFidesId";
|
|
1140
|
+
readonly type: "bytes32";
|
|
1141
|
+
readonly internalType: "bytes32";
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly name: "agent";
|
|
1144
|
+
readonly type: "address";
|
|
1145
|
+
readonly internalType: "address";
|
|
1146
|
+
}, {
|
|
1147
|
+
readonly name: "validAfter";
|
|
1148
|
+
readonly type: "uint64";
|
|
1149
|
+
readonly internalType: "uint64";
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly name: "validUntil";
|
|
1152
|
+
readonly type: "uint64";
|
|
1153
|
+
readonly internalType: "uint64";
|
|
1154
|
+
}, {
|
|
1155
|
+
readonly name: "targets";
|
|
1156
|
+
readonly type: "tuple[]";
|
|
1157
|
+
readonly internalType: "struct TargetRule[]";
|
|
1158
|
+
readonly components: readonly [{
|
|
1159
|
+
readonly name: "target";
|
|
1160
|
+
readonly type: "address";
|
|
1161
|
+
readonly internalType: "address";
|
|
1162
|
+
}, {
|
|
1163
|
+
readonly name: "selectors";
|
|
1164
|
+
readonly type: "bytes4[]";
|
|
1165
|
+
readonly internalType: "bytes4[]";
|
|
1166
|
+
}];
|
|
1167
|
+
}, {
|
|
1168
|
+
readonly name: "spendLimits";
|
|
1169
|
+
readonly type: "tuple[]";
|
|
1170
|
+
readonly internalType: "struct SpendLimit[]";
|
|
1171
|
+
readonly components: readonly [{
|
|
1172
|
+
readonly name: "asset";
|
|
1173
|
+
readonly type: "address";
|
|
1174
|
+
readonly internalType: "address";
|
|
1175
|
+
}, {
|
|
1176
|
+
readonly name: "amount";
|
|
1177
|
+
readonly type: "uint256";
|
|
1178
|
+
readonly internalType: "uint256";
|
|
1179
|
+
}];
|
|
1180
|
+
}, {
|
|
1181
|
+
readonly name: "maxNativeValue";
|
|
1182
|
+
readonly type: "uint256";
|
|
1183
|
+
readonly internalType: "uint256";
|
|
1184
|
+
}, {
|
|
1185
|
+
readonly name: "maxActions";
|
|
1186
|
+
readonly type: "uint256";
|
|
1187
|
+
readonly internalType: "uint256";
|
|
1188
|
+
}, {
|
|
1189
|
+
readonly name: "salt";
|
|
1190
|
+
readonly type: "bytes32";
|
|
1191
|
+
readonly internalType: "bytes32";
|
|
1192
|
+
}];
|
|
1193
|
+
}];
|
|
1194
|
+
readonly outputs: readonly [];
|
|
1195
|
+
readonly stateMutability: "pure";
|
|
1196
|
+
}, {
|
|
1197
|
+
readonly type: "function";
|
|
1198
|
+
readonly name: "domainSeparator";
|
|
1199
|
+
readonly inputs: readonly [];
|
|
1200
|
+
readonly outputs: readonly [{
|
|
1201
|
+
readonly name: "";
|
|
1202
|
+
readonly type: "bytes32";
|
|
1203
|
+
readonly internalType: "bytes32";
|
|
1204
|
+
}];
|
|
1205
|
+
readonly stateMutability: "view";
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly type: "function";
|
|
1208
|
+
readonly name: "hashLongTerms";
|
|
1209
|
+
readonly inputs: readonly [{
|
|
1210
|
+
readonly name: "t";
|
|
1211
|
+
readonly type: "tuple";
|
|
1212
|
+
readonly internalType: "struct LongTerms";
|
|
1213
|
+
readonly components: readonly [{
|
|
1214
|
+
readonly name: "period";
|
|
1215
|
+
readonly type: "uint64";
|
|
1216
|
+
readonly internalType: "uint64";
|
|
1217
|
+
}, {
|
|
1218
|
+
readonly name: "perPeriod";
|
|
1219
|
+
readonly type: "tuple[]";
|
|
1220
|
+
readonly internalType: "struct SpendLimit[]";
|
|
1221
|
+
readonly components: readonly [{
|
|
1222
|
+
readonly name: "asset";
|
|
1223
|
+
readonly type: "address";
|
|
1224
|
+
readonly internalType: "address";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly name: "amount";
|
|
1227
|
+
readonly type: "uint256";
|
|
1228
|
+
readonly internalType: "uint256";
|
|
1229
|
+
}];
|
|
1230
|
+
}, {
|
|
1231
|
+
readonly name: "maxActionsPerPeriod";
|
|
1232
|
+
readonly type: "uint256";
|
|
1233
|
+
readonly internalType: "uint256";
|
|
1234
|
+
}];
|
|
1235
|
+
}];
|
|
1236
|
+
readonly outputs: readonly [{
|
|
1237
|
+
readonly name: "";
|
|
1238
|
+
readonly type: "bytes32";
|
|
1239
|
+
readonly internalType: "bytes32";
|
|
1240
|
+
}];
|
|
1241
|
+
readonly stateMutability: "pure";
|
|
1242
|
+
}, {
|
|
1243
|
+
readonly type: "function";
|
|
1244
|
+
readonly name: "hashSubFides";
|
|
1245
|
+
readonly inputs: readonly [{
|
|
1246
|
+
readonly name: "s";
|
|
1247
|
+
readonly type: "tuple";
|
|
1248
|
+
readonly internalType: "struct SubFides";
|
|
1249
|
+
readonly components: readonly [{
|
|
1250
|
+
readonly name: "parentFidesId";
|
|
1251
|
+
readonly type: "bytes32";
|
|
1252
|
+
readonly internalType: "bytes32";
|
|
1253
|
+
}, {
|
|
1254
|
+
readonly name: "agent";
|
|
1255
|
+
readonly type: "address";
|
|
1256
|
+
readonly internalType: "address";
|
|
1257
|
+
}, {
|
|
1258
|
+
readonly name: "validAfter";
|
|
1259
|
+
readonly type: "uint64";
|
|
1260
|
+
readonly internalType: "uint64";
|
|
1261
|
+
}, {
|
|
1262
|
+
readonly name: "validUntil";
|
|
1263
|
+
readonly type: "uint64";
|
|
1264
|
+
readonly internalType: "uint64";
|
|
1265
|
+
}, {
|
|
1266
|
+
readonly name: "targets";
|
|
1267
|
+
readonly type: "tuple[]";
|
|
1268
|
+
readonly internalType: "struct TargetRule[]";
|
|
1269
|
+
readonly components: readonly [{
|
|
1270
|
+
readonly name: "target";
|
|
1271
|
+
readonly type: "address";
|
|
1272
|
+
readonly internalType: "address";
|
|
1273
|
+
}, {
|
|
1274
|
+
readonly name: "selectors";
|
|
1275
|
+
readonly type: "bytes4[]";
|
|
1276
|
+
readonly internalType: "bytes4[]";
|
|
1277
|
+
}];
|
|
1278
|
+
}, {
|
|
1279
|
+
readonly name: "spendLimits";
|
|
1280
|
+
readonly type: "tuple[]";
|
|
1281
|
+
readonly internalType: "struct SpendLimit[]";
|
|
1282
|
+
readonly components: readonly [{
|
|
1283
|
+
readonly name: "asset";
|
|
1284
|
+
readonly type: "address";
|
|
1285
|
+
readonly internalType: "address";
|
|
1286
|
+
}, {
|
|
1287
|
+
readonly name: "amount";
|
|
1288
|
+
readonly type: "uint256";
|
|
1289
|
+
readonly internalType: "uint256";
|
|
1290
|
+
}];
|
|
1291
|
+
}, {
|
|
1292
|
+
readonly name: "maxNativeValue";
|
|
1293
|
+
readonly type: "uint256";
|
|
1294
|
+
readonly internalType: "uint256";
|
|
1295
|
+
}, {
|
|
1296
|
+
readonly name: "maxActions";
|
|
1297
|
+
readonly type: "uint256";
|
|
1298
|
+
readonly internalType: "uint256";
|
|
1299
|
+
}, {
|
|
1300
|
+
readonly name: "salt";
|
|
1301
|
+
readonly type: "bytes32";
|
|
1302
|
+
readonly internalType: "bytes32";
|
|
1303
|
+
}];
|
|
1304
|
+
}];
|
|
1305
|
+
readonly outputs: readonly [{
|
|
1306
|
+
readonly name: "";
|
|
1307
|
+
readonly type: "bytes32";
|
|
1308
|
+
readonly internalType: "bytes32";
|
|
1309
|
+
}];
|
|
1310
|
+
readonly stateMutability: "view";
|
|
1311
|
+
}, {
|
|
1312
|
+
readonly type: "error";
|
|
1313
|
+
readonly name: "ChildActionsExceedParent";
|
|
1314
|
+
readonly inputs: readonly [];
|
|
1315
|
+
}, {
|
|
1316
|
+
readonly type: "error";
|
|
1317
|
+
readonly name: "ChildLimitExceedsParent";
|
|
1318
|
+
readonly inputs: readonly [{
|
|
1319
|
+
readonly name: "asset";
|
|
1320
|
+
readonly type: "address";
|
|
1321
|
+
readonly internalType: "address";
|
|
1322
|
+
}];
|
|
1323
|
+
}, {
|
|
1324
|
+
readonly type: "error";
|
|
1325
|
+
readonly name: "ChildNativeValueExceedsParent";
|
|
1326
|
+
readonly inputs: readonly [];
|
|
1327
|
+
}, {
|
|
1328
|
+
readonly type: "error";
|
|
1329
|
+
readonly name: "ChildOutlivesParent";
|
|
1330
|
+
readonly inputs: readonly [];
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly type: "error";
|
|
1333
|
+
readonly name: "ChildSelectorNotInParent";
|
|
1334
|
+
readonly inputs: readonly [{
|
|
1335
|
+
readonly name: "target";
|
|
1336
|
+
readonly type: "address";
|
|
1337
|
+
readonly internalType: "address";
|
|
1338
|
+
}, {
|
|
1339
|
+
readonly name: "selector";
|
|
1340
|
+
readonly type: "bytes4";
|
|
1341
|
+
readonly internalType: "bytes4";
|
|
1342
|
+
}];
|
|
1343
|
+
}, {
|
|
1344
|
+
readonly type: "error";
|
|
1345
|
+
readonly name: "ChildTargetNotInParent";
|
|
1346
|
+
readonly inputs: readonly [{
|
|
1347
|
+
readonly name: "target";
|
|
1348
|
+
readonly type: "address";
|
|
1349
|
+
readonly internalType: "address";
|
|
1350
|
+
}];
|
|
1351
|
+
}];
|