@pushchain/core 6.0.27-alpha.3 → 6.0.27-alpha.5

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 (90) hide show
  1. package/AGW.md +35 -6
  2. package/CHANGELOG.md +13 -0
  3. package/MARKETPLACE.md +206 -0
  4. package/package.json +2 -1
  5. package/src/lib/agentic/codec/rules.js +74 -69
  6. package/src/lib/agentic/codec/universal.js +15 -3
  7. package/src/lib/agentic/constants.d.ts +36 -1
  8. package/src/lib/agentic/constants.js +14 -1
  9. package/src/lib/agentic/contracts/reader.d.ts +21 -0
  10. package/src/lib/agentic/contracts/reader.js +3 -0
  11. package/src/lib/agentic/error-messages.d.ts +3 -0
  12. package/src/lib/agentic/error-messages.js +127 -0
  13. package/src/lib/agentic/errors.d.ts +12 -3
  14. package/src/lib/agentic/errors.js +76 -0
  15. package/src/lib/agentic/management/common.js +6 -0
  16. package/src/lib/agentic/management/destination.d.ts +5 -0
  17. package/src/lib/agentic/management/destination.js +32 -0
  18. package/src/lib/agentic/management/prepare.js +80 -55
  19. package/src/lib/agentic/management/svm-public.js +13 -4
  20. package/src/lib/agentic/presets/index.js +8 -9
  21. package/src/lib/agentic/presets/routes.d.ts +1 -1
  22. package/src/lib/agentic/presets/routes.js +6 -7
  23. package/src/lib/agentic/presets/types.d.ts +1 -6
  24. package/src/lib/agentic/public-rule.js +18 -2
  25. package/src/lib/constants/index.d.ts +35 -0
  26. package/src/lib/index.d.ts +4 -0
  27. package/src/lib/index.js +6 -2
  28. package/src/lib/job/job.d.ts +35 -0
  29. package/src/lib/job/job.js +382 -0
  30. package/src/lib/job/types.d.ts +94 -0
  31. package/src/lib/job/types.js +3 -0
  32. package/src/lib/job/watch.d.ts +3 -0
  33. package/src/lib/job/watch.js +169 -0
  34. package/src/lib/job-spec/codec.d.ts +18 -0
  35. package/src/lib/job-spec/codec.js +348 -0
  36. package/src/lib/job-spec/constants.d.ts +32 -0
  37. package/src/lib/job-spec/constants.js +36 -0
  38. package/src/lib/job-spec/helpers.d.ts +19 -0
  39. package/src/lib/job-spec/helpers.js +138 -0
  40. package/src/lib/job-spec/index.d.ts +14 -0
  41. package/src/lib/job-spec/index.js +17 -0
  42. package/src/lib/job-spec/preview.d.ts +8 -0
  43. package/src/lib/job-spec/preview.js +298 -0
  44. package/src/lib/job-spec/read.d.ts +20 -0
  45. package/src/lib/job-spec/read.js +224 -0
  46. package/src/lib/job-spec/schema.d.ts +290 -0
  47. package/src/lib/job-spec/schema.js +70 -0
  48. package/src/lib/job-spec/types.d.ts +139 -0
  49. package/src/lib/job-spec/types.js +3 -0
  50. package/src/lib/market/contracts/AgenticCommerce.d.ts +1026 -0
  51. package/src/lib/market/contracts/AgenticCommerce.js +1317 -0
  52. package/src/lib/market/contracts/RulesBindingHook.d.ts +235 -0
  53. package/src/lib/market/contracts/RulesBindingHook.js +314 -0
  54. package/src/lib/market/contracts/UniversalMarketplace.d.ts +1770 -0
  55. package/src/lib/market/contracts/UniversalMarketplace.js +2295 -0
  56. package/src/lib/market/contracts/UniversalMarketplaceErrors.d.ts +309 -0
  57. package/src/lib/market/contracts/UniversalMarketplaceErrors.js +416 -0
  58. package/src/lib/market/contracts/UniversalMarketplaceRules.d.ts +241 -0
  59. package/src/lib/market/contracts/UniversalMarketplaceRules.js +323 -0
  60. package/src/lib/market/data.d.ts +8 -0
  61. package/src/lib/market/data.js +60 -0
  62. package/src/lib/market/deployment.d.ts +14 -0
  63. package/src/lib/market/deployment.js +23 -0
  64. package/src/lib/market/deposit.d.ts +24 -0
  65. package/src/lib/market/deposit.js +271 -0
  66. package/src/lib/market/errors.d.ts +13 -0
  67. package/src/lib/market/errors.js +81 -0
  68. package/src/lib/market/history.d.ts +6 -0
  69. package/src/lib/market/history.js +83 -0
  70. package/src/lib/market/index.d.ts +4 -0
  71. package/src/lib/market/index.js +12 -0
  72. package/src/lib/market/kernel-wire.d.ts +15 -0
  73. package/src/lib/market/kernel-wire.js +41 -0
  74. package/src/lib/market/market.d.ts +55 -0
  75. package/src/lib/market/market.js +635 -0
  76. package/src/lib/market/rules.d.ts +106 -0
  77. package/src/lib/market/rules.js +293 -0
  78. package/src/lib/market/runtime.d.ts +35 -0
  79. package/src/lib/market/runtime.js +130 -0
  80. package/src/lib/market/types.d.ts +180 -0
  81. package/src/lib/market/types.js +3 -0
  82. package/src/lib/orchestrator/internals/errors.d.ts +9 -2
  83. package/src/lib/orchestrator/internals/errors.js +9 -2
  84. package/src/lib/orchestrator/internals/push-chain-tx.js +17 -3
  85. package/src/lib/push-chain/push-chain.d.ts +44 -1
  86. package/src/lib/push-chain/push-chain.js +23 -3
  87. package/src/lib/read-state/read-params.d.ts +9 -0
  88. package/src/lib/read-state/read-params.js +5 -1
  89. package/src/lib/utils.d.ts +15 -0
  90. package/src/lib/utils.js +4 -0
@@ -0,0 +1,2295 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MARKETPLACE_ABI = void 0;
4
+ // Generated from sdk-iteration-v1@443b4e2; Donut marketplace v2.
5
+ exports.MARKETPLACE_ABI = [
6
+ {
7
+ type: 'constructor',
8
+ inputs: [],
9
+ stateMutability: 'nonpayable',
10
+ },
11
+ {
12
+ type: 'function',
13
+ name: 'ADMIN_ROLE',
14
+ inputs: [],
15
+ outputs: [
16
+ {
17
+ name: '',
18
+ type: 'bytes32',
19
+ internalType: 'bytes32',
20
+ },
21
+ ],
22
+ stateMutability: 'view',
23
+ },
24
+ {
25
+ type: 'function',
26
+ name: 'AGW_FACTORY',
27
+ inputs: [],
28
+ outputs: [
29
+ {
30
+ name: '',
31
+ type: 'address',
32
+ internalType: 'contract IAGWFactory',
33
+ },
34
+ ],
35
+ stateMutability: 'view',
36
+ },
37
+ {
38
+ type: 'function',
39
+ name: 'DEFAULT_ADMIN_ROLE',
40
+ inputs: [],
41
+ outputs: [
42
+ {
43
+ name: '',
44
+ type: 'bytes32',
45
+ internalType: 'bytes32',
46
+ },
47
+ ],
48
+ stateMutability: 'view',
49
+ },
50
+ {
51
+ type: 'function',
52
+ name: 'KERNEL',
53
+ inputs: [],
54
+ outputs: [
55
+ {
56
+ name: '',
57
+ type: 'address',
58
+ internalType: 'contract IAgenticCommerce',
59
+ },
60
+ ],
61
+ stateMutability: 'view',
62
+ },
63
+ {
64
+ type: 'function',
65
+ name: 'MODE_SINGLE',
66
+ inputs: [],
67
+ outputs: [
68
+ {
69
+ name: '',
70
+ type: 'bytes32',
71
+ internalType: 'bytes32',
72
+ },
73
+ ],
74
+ stateMutability: 'view',
75
+ },
76
+ {
77
+ type: 'function',
78
+ name: 'OPENJOB_LANE',
79
+ inputs: [],
80
+ outputs: [
81
+ {
82
+ name: '',
83
+ type: 'uint192',
84
+ internalType: 'uint192',
85
+ },
86
+ ],
87
+ stateMutability: 'view',
88
+ },
89
+ {
90
+ type: 'function',
91
+ name: 'PUSH_CHAIN_HASH',
92
+ inputs: [],
93
+ outputs: [
94
+ {
95
+ name: '',
96
+ type: 'bytes32',
97
+ internalType: 'bytes32',
98
+ },
99
+ ],
100
+ stateMutability: 'view',
101
+ },
102
+ {
103
+ type: 'function',
104
+ name: 'RULES',
105
+ inputs: [],
106
+ outputs: [
107
+ {
108
+ name: '',
109
+ type: 'address',
110
+ internalType: 'contract IUniversalMarketplaceRules',
111
+ },
112
+ ],
113
+ stateMutability: 'view',
114
+ },
115
+ {
116
+ type: 'function',
117
+ name: 'activeJobOf',
118
+ inputs: [
119
+ {
120
+ name: 'agw',
121
+ type: 'address',
122
+ internalType: 'address',
123
+ },
124
+ ],
125
+ outputs: [
126
+ {
127
+ name: '',
128
+ type: 'uint256',
129
+ internalType: 'uint256',
130
+ },
131
+ ],
132
+ stateMutability: 'view',
133
+ },
134
+ {
135
+ type: 'function',
136
+ name: 'agentCardCount',
137
+ inputs: [],
138
+ outputs: [
139
+ {
140
+ name: '',
141
+ type: 'uint256',
142
+ internalType: 'uint256',
143
+ },
144
+ ],
145
+ stateMutability: 'view',
146
+ },
147
+ {
148
+ type: 'function',
149
+ name: 'agentCardOf',
150
+ inputs: [
151
+ {
152
+ name: '',
153
+ type: 'address',
154
+ internalType: 'address',
155
+ },
156
+ ],
157
+ outputs: [
158
+ {
159
+ name: '',
160
+ type: 'uint256',
161
+ internalType: 'uint256',
162
+ },
163
+ ],
164
+ stateMutability: 'view',
165
+ },
166
+ {
167
+ type: 'function',
168
+ name: 'agentCardVersion',
169
+ inputs: [
170
+ {
171
+ name: '',
172
+ type: 'uint256',
173
+ internalType: 'uint256',
174
+ },
175
+ ],
176
+ outputs: [
177
+ {
178
+ name: '',
179
+ type: 'uint256',
180
+ internalType: 'uint256',
181
+ },
182
+ ],
183
+ stateMutability: 'view',
184
+ },
185
+ {
186
+ type: 'function',
187
+ name: 'agwOfJob',
188
+ inputs: [
189
+ {
190
+ name: '',
191
+ type: 'uint256',
192
+ internalType: 'uint256',
193
+ },
194
+ ],
195
+ outputs: [
196
+ {
197
+ name: '',
198
+ type: 'address',
199
+ internalType: 'address',
200
+ },
201
+ ],
202
+ stateMutability: 'view',
203
+ },
204
+ {
205
+ type: 'function',
206
+ name: 'buildCreateJobCalldata',
207
+ inputs: [
208
+ {
209
+ name: 'cardId',
210
+ type: 'uint256',
211
+ internalType: 'uint256',
212
+ },
213
+ {
214
+ name: 'owner',
215
+ type: 'address',
216
+ internalType: 'address',
217
+ },
218
+ {
219
+ name: 'index',
220
+ type: 'uint96',
221
+ internalType: 'uint96',
222
+ },
223
+ {
224
+ name: 'job',
225
+ type: 'tuple',
226
+ internalType: 'struct JobInputs',
227
+ components: [
228
+ {
229
+ name: 'principal',
230
+ type: 'uint256',
231
+ internalType: 'uint256',
232
+ },
233
+ {
234
+ name: 'expiredAt',
235
+ type: 'uint48',
236
+ internalType: 'uint48',
237
+ },
238
+ {
239
+ name: 'executeBy',
240
+ type: 'uint48',
241
+ internalType: 'uint48',
242
+ },
243
+ {
244
+ name: 'params',
245
+ type: 'int256[]',
246
+ internalType: 'int256[]',
247
+ },
248
+ ],
249
+ },
250
+ ],
251
+ outputs: [
252
+ {
253
+ name: 'mode',
254
+ type: 'bytes32',
255
+ internalType: 'bytes32',
256
+ },
257
+ {
258
+ name: 'executionCalldata',
259
+ type: 'bytes',
260
+ internalType: 'bytes',
261
+ },
262
+ ],
263
+ stateMutability: 'view',
264
+ },
265
+ {
266
+ type: 'function',
267
+ name: 'cardOfJob',
268
+ inputs: [
269
+ {
270
+ name: '',
271
+ type: 'uint256',
272
+ internalType: 'uint256',
273
+ },
274
+ ],
275
+ outputs: [
276
+ {
277
+ name: '',
278
+ type: 'uint256',
279
+ internalType: 'uint256',
280
+ },
281
+ ],
282
+ stateMutability: 'view',
283
+ },
284
+ {
285
+ type: 'function',
286
+ name: 'cardVersionOfJob',
287
+ inputs: [
288
+ {
289
+ name: '',
290
+ type: 'uint256',
291
+ internalType: 'uint256',
292
+ },
293
+ ],
294
+ outputs: [
295
+ {
296
+ name: '',
297
+ type: 'uint256',
298
+ internalType: 'uint256',
299
+ },
300
+ ],
301
+ stateMutability: 'view',
302
+ },
303
+ {
304
+ type: 'function',
305
+ name: 'ceaDeployment',
306
+ inputs: [
307
+ {
308
+ name: '',
309
+ type: 'bytes32',
310
+ internalType: 'bytes32',
311
+ },
312
+ ],
313
+ outputs: [
314
+ {
315
+ name: 'ceaFactory',
316
+ type: 'address',
317
+ internalType: 'address',
318
+ },
319
+ {
320
+ name: 'ceaProxyImpl',
321
+ type: 'address',
322
+ internalType: 'address',
323
+ },
324
+ ],
325
+ stateMutability: 'view',
326
+ },
327
+ {
328
+ type: 'function',
329
+ name: 'computeCEA',
330
+ inputs: [
331
+ {
332
+ name: 'agw',
333
+ type: 'address',
334
+ internalType: 'address',
335
+ },
336
+ {
337
+ name: 'chainHash',
338
+ type: 'bytes32',
339
+ internalType: 'bytes32',
340
+ },
341
+ ],
342
+ outputs: [
343
+ {
344
+ name: '',
345
+ type: 'address',
346
+ internalType: 'address',
347
+ },
348
+ ],
349
+ stateMutability: 'view',
350
+ },
351
+ {
352
+ type: 'function',
353
+ name: 'disableAgentCard',
354
+ inputs: [
355
+ {
356
+ name: 'cardId',
357
+ type: 'uint256',
358
+ internalType: 'uint256',
359
+ },
360
+ ],
361
+ outputs: [],
362
+ stateMutability: 'nonpayable',
363
+ },
364
+ {
365
+ type: 'function',
366
+ name: 'evaluator',
367
+ inputs: [],
368
+ outputs: [
369
+ {
370
+ name: '',
371
+ type: 'address',
372
+ internalType: 'address',
373
+ },
374
+ ],
375
+ stateMutability: 'view',
376
+ },
377
+ {
378
+ type: 'function',
379
+ name: 'getAgentCard',
380
+ inputs: [
381
+ {
382
+ name: 'cardId',
383
+ type: 'uint256',
384
+ internalType: 'uint256',
385
+ },
386
+ ],
387
+ outputs: [
388
+ {
389
+ name: 'v',
390
+ type: 'tuple',
391
+ internalType: 'struct AgentCardView',
392
+ components: [
393
+ {
394
+ name: 'card',
395
+ type: 'tuple',
396
+ internalType: 'struct AgentCard',
397
+ components: [
398
+ {
399
+ name: 'provider',
400
+ type: 'address',
401
+ internalType: 'address',
402
+ },
403
+ {
404
+ name: 'jobType',
405
+ type: 'bytes32',
406
+ internalType: 'bytes32',
407
+ },
408
+ {
409
+ name: 'metadataURI',
410
+ type: 'string',
411
+ internalType: 'string',
412
+ },
413
+ {
414
+ name: 'metadataHash',
415
+ type: 'bytes32',
416
+ internalType: 'bytes32',
417
+ },
418
+ {
419
+ name: 'chainNamespace',
420
+ type: 'string',
421
+ internalType: 'string',
422
+ },
423
+ {
424
+ name: 'providerFee',
425
+ type: 'uint256',
426
+ internalType: 'uint256',
427
+ },
428
+ {
429
+ name: 'paymentToken',
430
+ type: 'address',
431
+ internalType: 'address',
432
+ },
433
+ {
434
+ name: 'principalMin',
435
+ type: 'uint256',
436
+ internalType: 'uint256',
437
+ },
438
+ {
439
+ name: 'principalMax',
440
+ type: 'uint256',
441
+ internalType: 'uint256',
442
+ },
443
+ {
444
+ name: 'minDuration',
445
+ type: 'uint32',
446
+ internalType: 'uint32',
447
+ },
448
+ {
449
+ name: 'maxDuration',
450
+ type: 'uint32',
451
+ internalType: 'uint32',
452
+ },
453
+ {
454
+ name: 'minExecuteWindow',
455
+ type: 'uint32',
456
+ internalType: 'uint32',
457
+ },
458
+ {
459
+ name: 'settleWindow',
460
+ type: 'uint32',
461
+ internalType: 'uint32',
462
+ },
463
+ {
464
+ name: 'active',
465
+ type: 'bool',
466
+ internalType: 'bool',
467
+ },
468
+ ],
469
+ },
470
+ {
471
+ name: 'rules',
472
+ type: 'bytes',
473
+ internalType: 'bytes',
474
+ },
475
+ {
476
+ name: 'jobSpecTemplate',
477
+ type: 'bytes',
478
+ internalType: 'bytes',
479
+ },
480
+ {
481
+ name: 'version',
482
+ type: 'uint256',
483
+ internalType: 'uint256',
484
+ },
485
+ {
486
+ name: 'verified',
487
+ type: 'bool',
488
+ internalType: 'bool',
489
+ },
490
+ {
491
+ name: 'disabled',
492
+ type: 'bool',
493
+ internalType: 'bool',
494
+ },
495
+ ],
496
+ },
497
+ ],
498
+ stateMutability: 'view',
499
+ },
500
+ {
501
+ type: 'function',
502
+ name: 'getAgentRating',
503
+ inputs: [
504
+ {
505
+ name: 'agent',
506
+ type: 'address',
507
+ internalType: 'address',
508
+ },
509
+ ],
510
+ outputs: [
511
+ {
512
+ name: '',
513
+ type: 'uint256',
514
+ internalType: 'uint256',
515
+ },
516
+ ],
517
+ stateMutability: 'view',
518
+ },
519
+ {
520
+ type: 'function',
521
+ name: 'getRoleAdmin',
522
+ inputs: [
523
+ {
524
+ name: 'role',
525
+ type: 'bytes32',
526
+ internalType: 'bytes32',
527
+ },
528
+ ],
529
+ outputs: [
530
+ {
531
+ name: '',
532
+ type: 'bytes32',
533
+ internalType: 'bytes32',
534
+ },
535
+ ],
536
+ stateMutability: 'view',
537
+ },
538
+ {
539
+ type: 'function',
540
+ name: 'grantRole',
541
+ inputs: [
542
+ {
543
+ name: 'role',
544
+ type: 'bytes32',
545
+ internalType: 'bytes32',
546
+ },
547
+ {
548
+ name: 'account',
549
+ type: 'address',
550
+ internalType: 'address',
551
+ },
552
+ ],
553
+ outputs: [],
554
+ stateMutability: 'nonpayable',
555
+ },
556
+ {
557
+ type: 'function',
558
+ name: 'hasRole',
559
+ inputs: [
560
+ {
561
+ name: 'role',
562
+ type: 'bytes32',
563
+ internalType: 'bytes32',
564
+ },
565
+ {
566
+ name: 'account',
567
+ type: 'address',
568
+ internalType: 'address',
569
+ },
570
+ ],
571
+ outputs: [
572
+ {
573
+ name: '',
574
+ type: 'bool',
575
+ internalType: 'bool',
576
+ },
577
+ ],
578
+ stateMutability: 'view',
579
+ },
580
+ {
581
+ type: 'function',
582
+ name: 'hook',
583
+ inputs: [],
584
+ outputs: [
585
+ {
586
+ name: '',
587
+ type: 'address',
588
+ internalType: 'address',
589
+ },
590
+ ],
591
+ stateMutability: 'view',
592
+ },
593
+ {
594
+ type: 'function',
595
+ name: 'initialize',
596
+ inputs: [
597
+ {
598
+ name: 'p',
599
+ type: 'tuple',
600
+ internalType: 'struct InitParams',
601
+ components: [
602
+ {
603
+ name: 'agwFactory',
604
+ type: 'address',
605
+ internalType: 'address',
606
+ },
607
+ {
608
+ name: 'kernel',
609
+ type: 'address',
610
+ internalType: 'address',
611
+ },
612
+ {
613
+ name: 'hook',
614
+ type: 'address',
615
+ internalType: 'address',
616
+ },
617
+ {
618
+ name: 'evaluator',
619
+ type: 'address',
620
+ internalType: 'address',
621
+ },
622
+ {
623
+ name: 'rules',
624
+ type: 'address',
625
+ internalType: 'address',
626
+ },
627
+ {
628
+ name: 'admin',
629
+ type: 'address',
630
+ internalType: 'address',
631
+ },
632
+ ],
633
+ },
634
+ ],
635
+ outputs: [],
636
+ stateMutability: 'nonpayable',
637
+ },
638
+ {
639
+ type: 'function',
640
+ name: 'isAgentCardDisabled',
641
+ inputs: [
642
+ {
643
+ name: '',
644
+ type: 'uint256',
645
+ internalType: 'uint256',
646
+ },
647
+ ],
648
+ outputs: [
649
+ {
650
+ name: '',
651
+ type: 'bool',
652
+ internalType: 'bool',
653
+ },
654
+ ],
655
+ stateMutability: 'view',
656
+ },
657
+ {
658
+ type: 'function',
659
+ name: 'isAgentCardVerified',
660
+ inputs: [
661
+ {
662
+ name: '',
663
+ type: 'uint256',
664
+ internalType: 'uint256',
665
+ },
666
+ ],
667
+ outputs: [
668
+ {
669
+ name: '',
670
+ type: 'bool',
671
+ internalType: 'bool',
672
+ },
673
+ ],
674
+ stateMutability: 'view',
675
+ },
676
+ {
677
+ type: 'function',
678
+ name: 'openJob',
679
+ inputs: [
680
+ {
681
+ name: 'p',
682
+ type: 'tuple',
683
+ internalType: 'struct OpenJobParams',
684
+ components: [
685
+ {
686
+ name: 'cardId',
687
+ type: 'uint256',
688
+ internalType: 'uint256',
689
+ },
690
+ {
691
+ name: 'cardVersion',
692
+ type: 'uint256',
693
+ internalType: 'uint256',
694
+ },
695
+ {
696
+ name: 'job',
697
+ type: 'tuple',
698
+ internalType: 'struct JobInputs',
699
+ components: [
700
+ {
701
+ name: 'principal',
702
+ type: 'uint256',
703
+ internalType: 'uint256',
704
+ },
705
+ {
706
+ name: 'expiredAt',
707
+ type: 'uint48',
708
+ internalType: 'uint48',
709
+ },
710
+ {
711
+ name: 'executeBy',
712
+ type: 'uint48',
713
+ internalType: 'uint48',
714
+ },
715
+ {
716
+ name: 'params',
717
+ type: 'int256[]',
718
+ internalType: 'int256[]',
719
+ },
720
+ ],
721
+ },
722
+ {
723
+ name: 'session',
724
+ type: 'tuple',
725
+ internalType: 'struct Session',
726
+ components: [
727
+ {
728
+ name: 'sessionValidator',
729
+ type: 'address',
730
+ internalType: 'address',
731
+ },
732
+ {
733
+ name: 'sessionValidatorInitData',
734
+ type: 'bytes',
735
+ internalType: 'bytes',
736
+ },
737
+ {
738
+ name: 'salt',
739
+ type: 'bytes32',
740
+ internalType: 'bytes32',
741
+ },
742
+ {
743
+ name: 'userOpPolicies',
744
+ type: 'tuple[]',
745
+ internalType: 'struct PolicyData[]',
746
+ components: [
747
+ {
748
+ name: 'policy',
749
+ type: 'address',
750
+ internalType: 'address',
751
+ },
752
+ {
753
+ name: 'initData',
754
+ type: 'bytes',
755
+ internalType: 'bytes',
756
+ },
757
+ ],
758
+ },
759
+ {
760
+ name: 'erc7739Policies',
761
+ type: 'tuple',
762
+ internalType: 'struct ERC7739Data',
763
+ components: [
764
+ {
765
+ name: 'allowedERC7739Content',
766
+ type: 'tuple[]',
767
+ internalType: 'struct ERC7739Context[]',
768
+ components: [
769
+ {
770
+ name: 'appDomainSeparator',
771
+ type: 'bytes32',
772
+ internalType: 'bytes32',
773
+ },
774
+ {
775
+ name: 'contentNames',
776
+ type: 'string[]',
777
+ internalType: 'string[]',
778
+ },
779
+ ],
780
+ },
781
+ {
782
+ name: 'erc1271Policies',
783
+ type: 'tuple[]',
784
+ internalType: 'struct PolicyData[]',
785
+ components: [
786
+ {
787
+ name: 'policy',
788
+ type: 'address',
789
+ internalType: 'address',
790
+ },
791
+ {
792
+ name: 'initData',
793
+ type: 'bytes',
794
+ internalType: 'bytes',
795
+ },
796
+ ],
797
+ },
798
+ ],
799
+ },
800
+ {
801
+ name: 'actions',
802
+ type: 'tuple[]',
803
+ internalType: 'struct ActionData[]',
804
+ components: [
805
+ {
806
+ name: 'actionTargetSelector',
807
+ type: 'bytes4',
808
+ internalType: 'bytes4',
809
+ },
810
+ {
811
+ name: 'actionTarget',
812
+ type: 'address',
813
+ internalType: 'address',
814
+ },
815
+ {
816
+ name: 'actionPolicies',
817
+ type: 'tuple[]',
818
+ internalType: 'struct PolicyData[]',
819
+ components: [
820
+ {
821
+ name: 'policy',
822
+ type: 'address',
823
+ internalType: 'address',
824
+ },
825
+ {
826
+ name: 'initData',
827
+ type: 'bytes',
828
+ internalType: 'bytes',
829
+ },
830
+ ],
831
+ },
832
+ ],
833
+ },
834
+ {
835
+ name: 'permitERC4337Paymaster',
836
+ type: 'bool',
837
+ internalType: 'bool',
838
+ },
839
+ ],
840
+ },
841
+ {
842
+ name: 'intent',
843
+ type: 'tuple',
844
+ internalType: 'struct OwnerIntent',
845
+ components: [
846
+ {
847
+ name: 'owner',
848
+ type: 'address',
849
+ internalType: 'address',
850
+ },
851
+ {
852
+ name: 'wallet',
853
+ type: 'address',
854
+ internalType: 'address',
855
+ },
856
+ {
857
+ name: 'executor',
858
+ type: 'address',
859
+ internalType: 'address',
860
+ },
861
+ {
862
+ name: 'index',
863
+ type: 'uint96',
864
+ internalType: 'uint96',
865
+ },
866
+ {
867
+ name: 'sessionHash',
868
+ type: 'bytes32',
869
+ internalType: 'bytes32',
870
+ },
871
+ {
872
+ name: 'mode',
873
+ type: 'bytes32',
874
+ internalType: 'bytes32',
875
+ },
876
+ {
877
+ name: 'execCalldataHash',
878
+ type: 'bytes32',
879
+ internalType: 'bytes32',
880
+ },
881
+ {
882
+ name: 'nonceKey',
883
+ type: 'uint192',
884
+ internalType: 'uint192',
885
+ },
886
+ {
887
+ name: 'nonceSeq',
888
+ type: 'uint64',
889
+ internalType: 'uint64',
890
+ },
891
+ {
892
+ name: 'grantNonce',
893
+ type: 'uint64',
894
+ internalType: 'uint64',
895
+ },
896
+ {
897
+ name: 'deadline',
898
+ type: 'uint48',
899
+ internalType: 'uint48',
900
+ },
901
+ {
902
+ name: 'signerChainId',
903
+ type: 'uint256',
904
+ internalType: 'uint256',
905
+ },
906
+ ],
907
+ },
908
+ {
909
+ name: 'sig',
910
+ type: 'bytes',
911
+ internalType: 'bytes',
912
+ },
913
+ {
914
+ name: 'label',
915
+ type: 'string',
916
+ internalType: 'string',
917
+ },
918
+ ],
919
+ },
920
+ ],
921
+ outputs: [
922
+ {
923
+ name: 'jobId',
924
+ type: 'uint256',
925
+ internalType: 'uint256',
926
+ },
927
+ {
928
+ name: 'agw',
929
+ type: 'address',
930
+ internalType: 'address',
931
+ },
932
+ {
933
+ name: 'rulesId',
934
+ type: 'bytes32',
935
+ internalType: 'bytes32',
936
+ },
937
+ ],
938
+ stateMutability: 'nonpayable',
939
+ },
940
+ {
941
+ type: 'function',
942
+ name: 'pause',
943
+ inputs: [],
944
+ outputs: [],
945
+ stateMutability: 'nonpayable',
946
+ },
947
+ {
948
+ type: 'function',
949
+ name: 'paused',
950
+ inputs: [],
951
+ outputs: [
952
+ {
953
+ name: '',
954
+ type: 'bool',
955
+ internalType: 'bool',
956
+ },
957
+ ],
958
+ stateMutability: 'view',
959
+ },
960
+ {
961
+ type: 'function',
962
+ name: 'previewIntent',
963
+ inputs: [
964
+ {
965
+ name: 'r',
966
+ type: 'tuple',
967
+ internalType: 'struct IntentRequest',
968
+ components: [
969
+ {
970
+ name: 'cardId',
971
+ type: 'uint256',
972
+ internalType: 'uint256',
973
+ },
974
+ {
975
+ name: 'owner',
976
+ type: 'address',
977
+ internalType: 'address',
978
+ },
979
+ {
980
+ name: 'index',
981
+ type: 'uint96',
982
+ internalType: 'uint96',
983
+ },
984
+ {
985
+ name: 'job',
986
+ type: 'tuple',
987
+ internalType: 'struct JobInputs',
988
+ components: [
989
+ {
990
+ name: 'principal',
991
+ type: 'uint256',
992
+ internalType: 'uint256',
993
+ },
994
+ {
995
+ name: 'expiredAt',
996
+ type: 'uint48',
997
+ internalType: 'uint48',
998
+ },
999
+ {
1000
+ name: 'executeBy',
1001
+ type: 'uint48',
1002
+ internalType: 'uint48',
1003
+ },
1004
+ {
1005
+ name: 'params',
1006
+ type: 'int256[]',
1007
+ internalType: 'int256[]',
1008
+ },
1009
+ ],
1010
+ },
1011
+ {
1012
+ name: 'deadline',
1013
+ type: 'uint48',
1014
+ internalType: 'uint48',
1015
+ },
1016
+ {
1017
+ name: 'signerChainId',
1018
+ type: 'uint256',
1019
+ internalType: 'uint256',
1020
+ },
1021
+ ],
1022
+ },
1023
+ {
1024
+ name: 's',
1025
+ type: 'tuple',
1026
+ internalType: 'struct Session',
1027
+ components: [
1028
+ {
1029
+ name: 'sessionValidator',
1030
+ type: 'address',
1031
+ internalType: 'address',
1032
+ },
1033
+ {
1034
+ name: 'sessionValidatorInitData',
1035
+ type: 'bytes',
1036
+ internalType: 'bytes',
1037
+ },
1038
+ {
1039
+ name: 'salt',
1040
+ type: 'bytes32',
1041
+ internalType: 'bytes32',
1042
+ },
1043
+ {
1044
+ name: 'userOpPolicies',
1045
+ type: 'tuple[]',
1046
+ internalType: 'struct PolicyData[]',
1047
+ components: [
1048
+ {
1049
+ name: 'policy',
1050
+ type: 'address',
1051
+ internalType: 'address',
1052
+ },
1053
+ {
1054
+ name: 'initData',
1055
+ type: 'bytes',
1056
+ internalType: 'bytes',
1057
+ },
1058
+ ],
1059
+ },
1060
+ {
1061
+ name: 'erc7739Policies',
1062
+ type: 'tuple',
1063
+ internalType: 'struct ERC7739Data',
1064
+ components: [
1065
+ {
1066
+ name: 'allowedERC7739Content',
1067
+ type: 'tuple[]',
1068
+ internalType: 'struct ERC7739Context[]',
1069
+ components: [
1070
+ {
1071
+ name: 'appDomainSeparator',
1072
+ type: 'bytes32',
1073
+ internalType: 'bytes32',
1074
+ },
1075
+ {
1076
+ name: 'contentNames',
1077
+ type: 'string[]',
1078
+ internalType: 'string[]',
1079
+ },
1080
+ ],
1081
+ },
1082
+ {
1083
+ name: 'erc1271Policies',
1084
+ type: 'tuple[]',
1085
+ internalType: 'struct PolicyData[]',
1086
+ components: [
1087
+ {
1088
+ name: 'policy',
1089
+ type: 'address',
1090
+ internalType: 'address',
1091
+ },
1092
+ {
1093
+ name: 'initData',
1094
+ type: 'bytes',
1095
+ internalType: 'bytes',
1096
+ },
1097
+ ],
1098
+ },
1099
+ ],
1100
+ },
1101
+ {
1102
+ name: 'actions',
1103
+ type: 'tuple[]',
1104
+ internalType: 'struct ActionData[]',
1105
+ components: [
1106
+ {
1107
+ name: 'actionTargetSelector',
1108
+ type: 'bytes4',
1109
+ internalType: 'bytes4',
1110
+ },
1111
+ {
1112
+ name: 'actionTarget',
1113
+ type: 'address',
1114
+ internalType: 'address',
1115
+ },
1116
+ {
1117
+ name: 'actionPolicies',
1118
+ type: 'tuple[]',
1119
+ internalType: 'struct PolicyData[]',
1120
+ components: [
1121
+ {
1122
+ name: 'policy',
1123
+ type: 'address',
1124
+ internalType: 'address',
1125
+ },
1126
+ {
1127
+ name: 'initData',
1128
+ type: 'bytes',
1129
+ internalType: 'bytes',
1130
+ },
1131
+ ],
1132
+ },
1133
+ ],
1134
+ },
1135
+ {
1136
+ name: 'permitERC4337Paymaster',
1137
+ type: 'bool',
1138
+ internalType: 'bool',
1139
+ },
1140
+ ],
1141
+ },
1142
+ ],
1143
+ outputs: [
1144
+ {
1145
+ name: 'i',
1146
+ type: 'tuple',
1147
+ internalType: 'struct OwnerIntent',
1148
+ components: [
1149
+ {
1150
+ name: 'owner',
1151
+ type: 'address',
1152
+ internalType: 'address',
1153
+ },
1154
+ {
1155
+ name: 'wallet',
1156
+ type: 'address',
1157
+ internalType: 'address',
1158
+ },
1159
+ {
1160
+ name: 'executor',
1161
+ type: 'address',
1162
+ internalType: 'address',
1163
+ },
1164
+ {
1165
+ name: 'index',
1166
+ type: 'uint96',
1167
+ internalType: 'uint96',
1168
+ },
1169
+ {
1170
+ name: 'sessionHash',
1171
+ type: 'bytes32',
1172
+ internalType: 'bytes32',
1173
+ },
1174
+ {
1175
+ name: 'mode',
1176
+ type: 'bytes32',
1177
+ internalType: 'bytes32',
1178
+ },
1179
+ {
1180
+ name: 'execCalldataHash',
1181
+ type: 'bytes32',
1182
+ internalType: 'bytes32',
1183
+ },
1184
+ {
1185
+ name: 'nonceKey',
1186
+ type: 'uint192',
1187
+ internalType: 'uint192',
1188
+ },
1189
+ {
1190
+ name: 'nonceSeq',
1191
+ type: 'uint64',
1192
+ internalType: 'uint64',
1193
+ },
1194
+ {
1195
+ name: 'grantNonce',
1196
+ type: 'uint64',
1197
+ internalType: 'uint64',
1198
+ },
1199
+ {
1200
+ name: 'deadline',
1201
+ type: 'uint48',
1202
+ internalType: 'uint48',
1203
+ },
1204
+ {
1205
+ name: 'signerChainId',
1206
+ type: 'uint256',
1207
+ internalType: 'uint256',
1208
+ },
1209
+ ],
1210
+ },
1211
+ ],
1212
+ stateMutability: 'view',
1213
+ },
1214
+ {
1215
+ type: 'function',
1216
+ name: 'registerAgentCard',
1217
+ inputs: [
1218
+ {
1219
+ name: 'c',
1220
+ type: 'tuple',
1221
+ internalType: 'struct AgentCard',
1222
+ components: [
1223
+ {
1224
+ name: 'provider',
1225
+ type: 'address',
1226
+ internalType: 'address',
1227
+ },
1228
+ {
1229
+ name: 'jobType',
1230
+ type: 'bytes32',
1231
+ internalType: 'bytes32',
1232
+ },
1233
+ {
1234
+ name: 'metadataURI',
1235
+ type: 'string',
1236
+ internalType: 'string',
1237
+ },
1238
+ {
1239
+ name: 'metadataHash',
1240
+ type: 'bytes32',
1241
+ internalType: 'bytes32',
1242
+ },
1243
+ {
1244
+ name: 'chainNamespace',
1245
+ type: 'string',
1246
+ internalType: 'string',
1247
+ },
1248
+ {
1249
+ name: 'providerFee',
1250
+ type: 'uint256',
1251
+ internalType: 'uint256',
1252
+ },
1253
+ {
1254
+ name: 'paymentToken',
1255
+ type: 'address',
1256
+ internalType: 'address',
1257
+ },
1258
+ {
1259
+ name: 'principalMin',
1260
+ type: 'uint256',
1261
+ internalType: 'uint256',
1262
+ },
1263
+ {
1264
+ name: 'principalMax',
1265
+ type: 'uint256',
1266
+ internalType: 'uint256',
1267
+ },
1268
+ {
1269
+ name: 'minDuration',
1270
+ type: 'uint32',
1271
+ internalType: 'uint32',
1272
+ },
1273
+ {
1274
+ name: 'maxDuration',
1275
+ type: 'uint32',
1276
+ internalType: 'uint32',
1277
+ },
1278
+ {
1279
+ name: 'minExecuteWindow',
1280
+ type: 'uint32',
1281
+ internalType: 'uint32',
1282
+ },
1283
+ {
1284
+ name: 'settleWindow',
1285
+ type: 'uint32',
1286
+ internalType: 'uint32',
1287
+ },
1288
+ {
1289
+ name: 'active',
1290
+ type: 'bool',
1291
+ internalType: 'bool',
1292
+ },
1293
+ ],
1294
+ },
1295
+ {
1296
+ name: 'rules',
1297
+ type: 'bytes',
1298
+ internalType: 'bytes',
1299
+ },
1300
+ {
1301
+ name: 'jobSpecTemplate',
1302
+ type: 'bytes',
1303
+ internalType: 'bytes',
1304
+ },
1305
+ ],
1306
+ outputs: [
1307
+ {
1308
+ name: 'cardId',
1309
+ type: 'uint256',
1310
+ internalType: 'uint256',
1311
+ },
1312
+ ],
1313
+ stateMutability: 'nonpayable',
1314
+ },
1315
+ {
1316
+ type: 'function',
1317
+ name: 'renounceRole',
1318
+ inputs: [
1319
+ {
1320
+ name: 'role',
1321
+ type: 'bytes32',
1322
+ internalType: 'bytes32',
1323
+ },
1324
+ {
1325
+ name: 'callerConfirmation',
1326
+ type: 'address',
1327
+ internalType: 'address',
1328
+ },
1329
+ ],
1330
+ outputs: [],
1331
+ stateMutability: 'nonpayable',
1332
+ },
1333
+ {
1334
+ type: 'function',
1335
+ name: 'revokeAgentCardVerification',
1336
+ inputs: [
1337
+ {
1338
+ name: 'cardId',
1339
+ type: 'uint256',
1340
+ internalType: 'uint256',
1341
+ },
1342
+ ],
1343
+ outputs: [],
1344
+ stateMutability: 'nonpayable',
1345
+ },
1346
+ {
1347
+ type: 'function',
1348
+ name: 'revokeRole',
1349
+ inputs: [
1350
+ {
1351
+ name: 'role',
1352
+ type: 'bytes32',
1353
+ internalType: 'bytes32',
1354
+ },
1355
+ {
1356
+ name: 'account',
1357
+ type: 'address',
1358
+ internalType: 'address',
1359
+ },
1360
+ ],
1361
+ outputs: [],
1362
+ stateMutability: 'nonpayable',
1363
+ },
1364
+ {
1365
+ type: 'function',
1366
+ name: 'rulesOfJob',
1367
+ inputs: [
1368
+ {
1369
+ name: '',
1370
+ type: 'uint256',
1371
+ internalType: 'uint256',
1372
+ },
1373
+ ],
1374
+ outputs: [
1375
+ {
1376
+ name: '',
1377
+ type: 'bytes32',
1378
+ internalType: 'bytes32',
1379
+ },
1380
+ ],
1381
+ stateMutability: 'view',
1382
+ },
1383
+ {
1384
+ type: 'function',
1385
+ name: 'setAgentCardActive',
1386
+ inputs: [
1387
+ {
1388
+ name: 'cardId',
1389
+ type: 'uint256',
1390
+ internalType: 'uint256',
1391
+ },
1392
+ {
1393
+ name: 'active',
1394
+ type: 'bool',
1395
+ internalType: 'bool',
1396
+ },
1397
+ ],
1398
+ outputs: [],
1399
+ stateMutability: 'nonpayable',
1400
+ },
1401
+ {
1402
+ type: 'function',
1403
+ name: 'setAgentRating',
1404
+ inputs: [
1405
+ {
1406
+ name: 'agent',
1407
+ type: 'address',
1408
+ internalType: 'address',
1409
+ },
1410
+ {
1411
+ name: 'rating',
1412
+ type: 'uint256',
1413
+ internalType: 'uint256',
1414
+ },
1415
+ ],
1416
+ outputs: [],
1417
+ stateMutability: 'nonpayable',
1418
+ },
1419
+ {
1420
+ type: 'function',
1421
+ name: 'setCEADeployment',
1422
+ inputs: [
1423
+ {
1424
+ name: 'chainHash',
1425
+ type: 'bytes32',
1426
+ internalType: 'bytes32',
1427
+ },
1428
+ {
1429
+ name: 'ceaFactory',
1430
+ type: 'address',
1431
+ internalType: 'address',
1432
+ },
1433
+ {
1434
+ name: 'ceaProxyImpl',
1435
+ type: 'address',
1436
+ internalType: 'address',
1437
+ },
1438
+ ],
1439
+ outputs: [],
1440
+ stateMutability: 'nonpayable',
1441
+ },
1442
+ {
1443
+ type: 'function',
1444
+ name: 'setEvaluator',
1445
+ inputs: [
1446
+ {
1447
+ name: 'evaluator_',
1448
+ type: 'address',
1449
+ internalType: 'address',
1450
+ },
1451
+ ],
1452
+ outputs: [],
1453
+ stateMutability: 'nonpayable',
1454
+ },
1455
+ {
1456
+ type: 'function',
1457
+ name: 'setHook',
1458
+ inputs: [
1459
+ {
1460
+ name: 'hook_',
1461
+ type: 'address',
1462
+ internalType: 'address',
1463
+ },
1464
+ ],
1465
+ outputs: [],
1466
+ stateMutability: 'nonpayable',
1467
+ },
1468
+ {
1469
+ type: 'function',
1470
+ name: 'supportsInterface',
1471
+ inputs: [
1472
+ {
1473
+ name: 'interfaceId',
1474
+ type: 'bytes4',
1475
+ internalType: 'bytes4',
1476
+ },
1477
+ ],
1478
+ outputs: [
1479
+ {
1480
+ name: '',
1481
+ type: 'bool',
1482
+ internalType: 'bool',
1483
+ },
1484
+ ],
1485
+ stateMutability: 'view',
1486
+ },
1487
+ {
1488
+ type: 'function',
1489
+ name: 'unpause',
1490
+ inputs: [],
1491
+ outputs: [],
1492
+ stateMutability: 'nonpayable',
1493
+ },
1494
+ {
1495
+ type: 'function',
1496
+ name: 'updateAgentCard',
1497
+ inputs: [
1498
+ {
1499
+ name: 'cardId',
1500
+ type: 'uint256',
1501
+ internalType: 'uint256',
1502
+ },
1503
+ {
1504
+ name: 'c',
1505
+ type: 'tuple',
1506
+ internalType: 'struct AgentCard',
1507
+ components: [
1508
+ {
1509
+ name: 'provider',
1510
+ type: 'address',
1511
+ internalType: 'address',
1512
+ },
1513
+ {
1514
+ name: 'jobType',
1515
+ type: 'bytes32',
1516
+ internalType: 'bytes32',
1517
+ },
1518
+ {
1519
+ name: 'metadataURI',
1520
+ type: 'string',
1521
+ internalType: 'string',
1522
+ },
1523
+ {
1524
+ name: 'metadataHash',
1525
+ type: 'bytes32',
1526
+ internalType: 'bytes32',
1527
+ },
1528
+ {
1529
+ name: 'chainNamespace',
1530
+ type: 'string',
1531
+ internalType: 'string',
1532
+ },
1533
+ {
1534
+ name: 'providerFee',
1535
+ type: 'uint256',
1536
+ internalType: 'uint256',
1537
+ },
1538
+ {
1539
+ name: 'paymentToken',
1540
+ type: 'address',
1541
+ internalType: 'address',
1542
+ },
1543
+ {
1544
+ name: 'principalMin',
1545
+ type: 'uint256',
1546
+ internalType: 'uint256',
1547
+ },
1548
+ {
1549
+ name: 'principalMax',
1550
+ type: 'uint256',
1551
+ internalType: 'uint256',
1552
+ },
1553
+ {
1554
+ name: 'minDuration',
1555
+ type: 'uint32',
1556
+ internalType: 'uint32',
1557
+ },
1558
+ {
1559
+ name: 'maxDuration',
1560
+ type: 'uint32',
1561
+ internalType: 'uint32',
1562
+ },
1563
+ {
1564
+ name: 'minExecuteWindow',
1565
+ type: 'uint32',
1566
+ internalType: 'uint32',
1567
+ },
1568
+ {
1569
+ name: 'settleWindow',
1570
+ type: 'uint32',
1571
+ internalType: 'uint32',
1572
+ },
1573
+ {
1574
+ name: 'active',
1575
+ type: 'bool',
1576
+ internalType: 'bool',
1577
+ },
1578
+ ],
1579
+ },
1580
+ {
1581
+ name: 'rules',
1582
+ type: 'bytes',
1583
+ internalType: 'bytes',
1584
+ },
1585
+ {
1586
+ name: 'jobSpecTemplate',
1587
+ type: 'bytes',
1588
+ internalType: 'bytes',
1589
+ },
1590
+ ],
1591
+ outputs: [],
1592
+ stateMutability: 'nonpayable',
1593
+ },
1594
+ {
1595
+ type: 'function',
1596
+ name: 'verifyAgentCard',
1597
+ inputs: [
1598
+ {
1599
+ name: 'cardId',
1600
+ type: 'uint256',
1601
+ internalType: 'uint256',
1602
+ },
1603
+ {
1604
+ name: 'cardVersion',
1605
+ type: 'uint256',
1606
+ internalType: 'uint256',
1607
+ },
1608
+ ],
1609
+ outputs: [],
1610
+ stateMutability: 'nonpayable',
1611
+ },
1612
+ {
1613
+ type: 'function',
1614
+ name: 'version',
1615
+ inputs: [],
1616
+ outputs: [
1617
+ {
1618
+ name: '',
1619
+ type: 'string',
1620
+ internalType: 'string',
1621
+ },
1622
+ ],
1623
+ stateMutability: 'pure',
1624
+ },
1625
+ {
1626
+ type: 'event',
1627
+ name: 'AgentCardDisabled',
1628
+ inputs: [
1629
+ {
1630
+ name: 'cardId',
1631
+ type: 'uint256',
1632
+ indexed: true,
1633
+ internalType: 'uint256',
1634
+ },
1635
+ ],
1636
+ anonymous: false,
1637
+ },
1638
+ {
1639
+ type: 'event',
1640
+ name: 'AgentCardRegistered',
1641
+ inputs: [
1642
+ {
1643
+ name: 'cardId',
1644
+ type: 'uint256',
1645
+ indexed: true,
1646
+ internalType: 'uint256',
1647
+ },
1648
+ {
1649
+ name: 'provider',
1650
+ type: 'address',
1651
+ indexed: true,
1652
+ internalType: 'address',
1653
+ },
1654
+ {
1655
+ name: 'jobType',
1656
+ type: 'bytes32',
1657
+ indexed: true,
1658
+ internalType: 'bytes32',
1659
+ },
1660
+ {
1661
+ name: 'chainNamespace',
1662
+ type: 'string',
1663
+ indexed: false,
1664
+ internalType: 'string',
1665
+ },
1666
+ {
1667
+ name: 'rulesHash',
1668
+ type: 'bytes32',
1669
+ indexed: false,
1670
+ internalType: 'bytes32',
1671
+ },
1672
+ {
1673
+ name: 'jobSpecHash',
1674
+ type: 'bytes32',
1675
+ indexed: false,
1676
+ internalType: 'bytes32',
1677
+ },
1678
+ {
1679
+ name: 'metadataHash',
1680
+ type: 'bytes32',
1681
+ indexed: false,
1682
+ internalType: 'bytes32',
1683
+ },
1684
+ {
1685
+ name: 'providerFee',
1686
+ type: 'uint256',
1687
+ indexed: false,
1688
+ internalType: 'uint256',
1689
+ },
1690
+ ],
1691
+ anonymous: false,
1692
+ },
1693
+ {
1694
+ type: 'event',
1695
+ name: 'AgentCardStatusChanged',
1696
+ inputs: [
1697
+ {
1698
+ name: 'cardId',
1699
+ type: 'uint256',
1700
+ indexed: true,
1701
+ internalType: 'uint256',
1702
+ },
1703
+ {
1704
+ name: 'active',
1705
+ type: 'bool',
1706
+ indexed: false,
1707
+ internalType: 'bool',
1708
+ },
1709
+ ],
1710
+ anonymous: false,
1711
+ },
1712
+ {
1713
+ type: 'event',
1714
+ name: 'AgentCardUpdated',
1715
+ inputs: [
1716
+ {
1717
+ name: 'cardId',
1718
+ type: 'uint256',
1719
+ indexed: true,
1720
+ internalType: 'uint256',
1721
+ },
1722
+ {
1723
+ name: 'version',
1724
+ type: 'uint256',
1725
+ indexed: false,
1726
+ internalType: 'uint256',
1727
+ },
1728
+ {
1729
+ name: 'rulesHash',
1730
+ type: 'bytes32',
1731
+ indexed: false,
1732
+ internalType: 'bytes32',
1733
+ },
1734
+ {
1735
+ name: 'jobSpecHash',
1736
+ type: 'bytes32',
1737
+ indexed: false,
1738
+ internalType: 'bytes32',
1739
+ },
1740
+ {
1741
+ name: 'metadataHash',
1742
+ type: 'bytes32',
1743
+ indexed: false,
1744
+ internalType: 'bytes32',
1745
+ },
1746
+ {
1747
+ name: 'providerFee',
1748
+ type: 'uint256',
1749
+ indexed: false,
1750
+ internalType: 'uint256',
1751
+ },
1752
+ ],
1753
+ anonymous: false,
1754
+ },
1755
+ {
1756
+ type: 'event',
1757
+ name: 'AgentCardVerificationRevoked',
1758
+ inputs: [
1759
+ {
1760
+ name: 'cardId',
1761
+ type: 'uint256',
1762
+ indexed: true,
1763
+ internalType: 'uint256',
1764
+ },
1765
+ ],
1766
+ anonymous: false,
1767
+ },
1768
+ {
1769
+ type: 'event',
1770
+ name: 'AgentCardVerified',
1771
+ inputs: [
1772
+ {
1773
+ name: 'cardId',
1774
+ type: 'uint256',
1775
+ indexed: true,
1776
+ internalType: 'uint256',
1777
+ },
1778
+ {
1779
+ name: 'version',
1780
+ type: 'uint256',
1781
+ indexed: false,
1782
+ internalType: 'uint256',
1783
+ },
1784
+ ],
1785
+ anonymous: false,
1786
+ },
1787
+ {
1788
+ type: 'event',
1789
+ name: 'AgentRatingSet',
1790
+ inputs: [
1791
+ {
1792
+ name: 'agent',
1793
+ type: 'address',
1794
+ indexed: true,
1795
+ internalType: 'address',
1796
+ },
1797
+ {
1798
+ name: 'rating',
1799
+ type: 'uint256',
1800
+ indexed: false,
1801
+ internalType: 'uint256',
1802
+ },
1803
+ ],
1804
+ anonymous: false,
1805
+ },
1806
+ {
1807
+ type: 'event',
1808
+ name: 'CEADeploymentSet',
1809
+ inputs: [
1810
+ {
1811
+ name: 'chainHash',
1812
+ type: 'bytes32',
1813
+ indexed: true,
1814
+ internalType: 'bytes32',
1815
+ },
1816
+ {
1817
+ name: 'ceaFactory',
1818
+ type: 'address',
1819
+ indexed: false,
1820
+ internalType: 'address',
1821
+ },
1822
+ {
1823
+ name: 'ceaProxyImpl',
1824
+ type: 'address',
1825
+ indexed: false,
1826
+ internalType: 'address',
1827
+ },
1828
+ ],
1829
+ anonymous: false,
1830
+ },
1831
+ {
1832
+ type: 'event',
1833
+ name: 'EvaluatorUpdated',
1834
+ inputs: [
1835
+ {
1836
+ name: 'evaluator',
1837
+ type: 'address',
1838
+ indexed: false,
1839
+ internalType: 'address',
1840
+ },
1841
+ ],
1842
+ anonymous: false,
1843
+ },
1844
+ {
1845
+ type: 'event',
1846
+ name: 'HookUpdated',
1847
+ inputs: [
1848
+ {
1849
+ name: 'hook',
1850
+ type: 'address',
1851
+ indexed: false,
1852
+ internalType: 'address',
1853
+ },
1854
+ ],
1855
+ anonymous: false,
1856
+ },
1857
+ {
1858
+ type: 'event',
1859
+ name: 'Initialized',
1860
+ inputs: [
1861
+ {
1862
+ name: 'version',
1863
+ type: 'uint64',
1864
+ indexed: false,
1865
+ internalType: 'uint64',
1866
+ },
1867
+ ],
1868
+ anonymous: false,
1869
+ },
1870
+ {
1871
+ type: 'event',
1872
+ name: 'JobOpened',
1873
+ inputs: [
1874
+ {
1875
+ name: 'cardId',
1876
+ type: 'uint256',
1877
+ indexed: true,
1878
+ internalType: 'uint256',
1879
+ },
1880
+ {
1881
+ name: 'owner',
1882
+ type: 'address',
1883
+ indexed: true,
1884
+ internalType: 'address',
1885
+ },
1886
+ {
1887
+ name: 'agw',
1888
+ type: 'address',
1889
+ indexed: true,
1890
+ internalType: 'address',
1891
+ },
1892
+ {
1893
+ name: 'jobId',
1894
+ type: 'uint256',
1895
+ indexed: false,
1896
+ internalType: 'uint256',
1897
+ },
1898
+ {
1899
+ name: 'rulesId',
1900
+ type: 'bytes32',
1901
+ indexed: false,
1902
+ internalType: 'bytes32',
1903
+ },
1904
+ {
1905
+ name: 'principal',
1906
+ type: 'uint256',
1907
+ indexed: false,
1908
+ internalType: 'uint256',
1909
+ },
1910
+ {
1911
+ name: 'cardVersion',
1912
+ type: 'uint256',
1913
+ indexed: false,
1914
+ internalType: 'uint256',
1915
+ },
1916
+ ],
1917
+ anonymous: false,
1918
+ },
1919
+ {
1920
+ type: 'event',
1921
+ name: 'Paused',
1922
+ inputs: [
1923
+ {
1924
+ name: 'account',
1925
+ type: 'address',
1926
+ indexed: false,
1927
+ internalType: 'address',
1928
+ },
1929
+ ],
1930
+ anonymous: false,
1931
+ },
1932
+ {
1933
+ type: 'event',
1934
+ name: 'RoleAdminChanged',
1935
+ inputs: [
1936
+ {
1937
+ name: 'role',
1938
+ type: 'bytes32',
1939
+ indexed: true,
1940
+ internalType: 'bytes32',
1941
+ },
1942
+ {
1943
+ name: 'previousAdminRole',
1944
+ type: 'bytes32',
1945
+ indexed: true,
1946
+ internalType: 'bytes32',
1947
+ },
1948
+ {
1949
+ name: 'newAdminRole',
1950
+ type: 'bytes32',
1951
+ indexed: true,
1952
+ internalType: 'bytes32',
1953
+ },
1954
+ ],
1955
+ anonymous: false,
1956
+ },
1957
+ {
1958
+ type: 'event',
1959
+ name: 'RoleGranted',
1960
+ inputs: [
1961
+ {
1962
+ name: 'role',
1963
+ type: 'bytes32',
1964
+ indexed: true,
1965
+ internalType: 'bytes32',
1966
+ },
1967
+ {
1968
+ name: 'account',
1969
+ type: 'address',
1970
+ indexed: true,
1971
+ internalType: 'address',
1972
+ },
1973
+ {
1974
+ name: 'sender',
1975
+ type: 'address',
1976
+ indexed: true,
1977
+ internalType: 'address',
1978
+ },
1979
+ ],
1980
+ anonymous: false,
1981
+ },
1982
+ {
1983
+ type: 'event',
1984
+ name: 'RoleRevoked',
1985
+ inputs: [
1986
+ {
1987
+ name: 'role',
1988
+ type: 'bytes32',
1989
+ indexed: true,
1990
+ internalType: 'bytes32',
1991
+ },
1992
+ {
1993
+ name: 'account',
1994
+ type: 'address',
1995
+ indexed: true,
1996
+ internalType: 'address',
1997
+ },
1998
+ {
1999
+ name: 'sender',
2000
+ type: 'address',
2001
+ indexed: true,
2002
+ internalType: 'address',
2003
+ },
2004
+ ],
2005
+ anonymous: false,
2006
+ },
2007
+ {
2008
+ type: 'event',
2009
+ name: 'Unpaused',
2010
+ inputs: [
2011
+ {
2012
+ name: 'account',
2013
+ type: 'address',
2014
+ indexed: false,
2015
+ internalType: 'address',
2016
+ },
2017
+ ],
2018
+ anonymous: false,
2019
+ },
2020
+ {
2021
+ type: 'error',
2022
+ name: 'AGWMismatch',
2023
+ inputs: [
2024
+ {
2025
+ name: 'expected',
2026
+ type: 'address',
2027
+ internalType: 'address',
2028
+ },
2029
+ {
2030
+ name: 'actual',
2031
+ type: 'address',
2032
+ internalType: 'address',
2033
+ },
2034
+ ],
2035
+ },
2036
+ {
2037
+ type: 'error',
2038
+ name: 'AccessControlBadConfirmation',
2039
+ inputs: [],
2040
+ },
2041
+ {
2042
+ type: 'error',
2043
+ name: 'AccessControlUnauthorizedAccount',
2044
+ inputs: [
2045
+ {
2046
+ name: 'account',
2047
+ type: 'address',
2048
+ internalType: 'address',
2049
+ },
2050
+ {
2051
+ name: 'neededRole',
2052
+ type: 'bytes32',
2053
+ internalType: 'bytes32',
2054
+ },
2055
+ ],
2056
+ },
2057
+ {
2058
+ type: 'error',
2059
+ name: 'AgentCardAlreadyRegistered',
2060
+ inputs: [
2061
+ {
2062
+ name: 'provider',
2063
+ type: 'address',
2064
+ internalType: 'address',
2065
+ },
2066
+ ],
2067
+ },
2068
+ {
2069
+ type: 'error',
2070
+ name: 'AgentCardDisabled',
2071
+ inputs: [
2072
+ {
2073
+ name: 'cardId',
2074
+ type: 'uint256',
2075
+ internalType: 'uint256',
2076
+ },
2077
+ ],
2078
+ },
2079
+ {
2080
+ type: 'error',
2081
+ name: 'AgentCardIdentityImmutable',
2082
+ inputs: [],
2083
+ },
2084
+ {
2085
+ type: 'error',
2086
+ name: 'AgentCardInactive',
2087
+ inputs: [],
2088
+ },
2089
+ {
2090
+ type: 'error',
2091
+ name: 'AgentCardVersionMismatch',
2092
+ inputs: [
2093
+ {
2094
+ name: 'provided',
2095
+ type: 'uint256',
2096
+ internalType: 'uint256',
2097
+ },
2098
+ {
2099
+ name: 'current',
2100
+ type: 'uint256',
2101
+ internalType: 'uint256',
2102
+ },
2103
+ ],
2104
+ },
2105
+ {
2106
+ type: 'error',
2107
+ name: 'CallerIsNotProvider',
2108
+ inputs: [],
2109
+ },
2110
+ {
2111
+ type: 'error',
2112
+ name: 'ChainNotSupported',
2113
+ inputs: [
2114
+ {
2115
+ name: 'chainHash',
2116
+ type: 'bytes32',
2117
+ internalType: 'bytes32',
2118
+ },
2119
+ ],
2120
+ },
2121
+ {
2122
+ type: 'error',
2123
+ name: 'EnforcedPause',
2124
+ inputs: [],
2125
+ },
2126
+ {
2127
+ type: 'error',
2128
+ name: 'ExecuteByOutOfRange',
2129
+ inputs: [],
2130
+ },
2131
+ {
2132
+ type: 'error',
2133
+ name: 'ExecutorMismatch',
2134
+ inputs: [
2135
+ {
2136
+ name: 'expected',
2137
+ type: 'address',
2138
+ internalType: 'address',
2139
+ },
2140
+ {
2141
+ name: 'actual',
2142
+ type: 'address',
2143
+ internalType: 'address',
2144
+ },
2145
+ ],
2146
+ },
2147
+ {
2148
+ type: 'error',
2149
+ name: 'ExpectedPause',
2150
+ inputs: [],
2151
+ },
2152
+ {
2153
+ type: 'error',
2154
+ name: 'ExpiryOutOfRange',
2155
+ inputs: [],
2156
+ },
2157
+ {
2158
+ type: 'error',
2159
+ name: 'HookNotWhitelisted',
2160
+ inputs: [],
2161
+ },
2162
+ {
2163
+ type: 'error',
2164
+ name: 'IntentExecMismatch',
2165
+ inputs: [
2166
+ {
2167
+ name: 'actualCalldataHash',
2168
+ type: 'bytes32',
2169
+ internalType: 'bytes32',
2170
+ },
2171
+ ],
2172
+ },
2173
+ {
2174
+ type: 'error',
2175
+ name: 'IntentSessionMismatch',
2176
+ inputs: [
2177
+ {
2178
+ name: 'actual',
2179
+ type: 'bytes32',
2180
+ internalType: 'bytes32',
2181
+ },
2182
+ ],
2183
+ },
2184
+ {
2185
+ type: 'error',
2186
+ name: 'IntentWalletMismatch',
2187
+ inputs: [
2188
+ {
2189
+ name: 'expected',
2190
+ type: 'address',
2191
+ internalType: 'address',
2192
+ },
2193
+ {
2194
+ name: 'provided',
2195
+ type: 'address',
2196
+ internalType: 'address',
2197
+ },
2198
+ ],
2199
+ },
2200
+ {
2201
+ type: 'error',
2202
+ name: 'InvalidAgentCard',
2203
+ inputs: [
2204
+ {
2205
+ name: 'reason',
2206
+ type: 'string',
2207
+ internalType: 'string',
2208
+ },
2209
+ ],
2210
+ },
2211
+ {
2212
+ type: 'error',
2213
+ name: 'InvalidInitialization',
2214
+ inputs: [],
2215
+ },
2216
+ {
2217
+ type: 'error',
2218
+ name: 'JobMismatch',
2219
+ inputs: [],
2220
+ },
2221
+ {
2222
+ type: 'error',
2223
+ name: 'NotInitializing',
2224
+ inputs: [],
2225
+ },
2226
+ {
2227
+ type: 'error',
2228
+ name: 'PrincipalOutOfRange',
2229
+ inputs: [],
2230
+ },
2231
+ {
2232
+ type: 'error',
2233
+ name: 'ProviderIsEvaluator',
2234
+ inputs: [],
2235
+ },
2236
+ {
2237
+ type: 'error',
2238
+ name: 'ReentrancyGuardReentrantCall',
2239
+ inputs: [],
2240
+ },
2241
+ {
2242
+ type: 'error',
2243
+ name: 'UnexpectedJobCount',
2244
+ inputs: [
2245
+ {
2246
+ name: 'before',
2247
+ type: 'uint256',
2248
+ internalType: 'uint256',
2249
+ },
2250
+ {
2251
+ name: 'afterCount',
2252
+ type: 'uint256',
2253
+ internalType: 'uint256',
2254
+ },
2255
+ ],
2256
+ },
2257
+ {
2258
+ type: 'error',
2259
+ name: 'WalletHasActiveJob',
2260
+ inputs: [
2261
+ {
2262
+ name: 'agw',
2263
+ type: 'address',
2264
+ internalType: 'address',
2265
+ },
2266
+ {
2267
+ name: 'jobId',
2268
+ type: 'uint256',
2269
+ internalType: 'uint256',
2270
+ },
2271
+ ],
2272
+ },
2273
+ {
2274
+ type: 'error',
2275
+ name: 'WalletOwnerMismatch',
2276
+ inputs: [
2277
+ {
2278
+ name: 'expected',
2279
+ type: 'address',
2280
+ internalType: 'address',
2281
+ },
2282
+ {
2283
+ name: 'actual',
2284
+ type: 'address',
2285
+ internalType: 'address',
2286
+ },
2287
+ ],
2288
+ },
2289
+ {
2290
+ type: 'error',
2291
+ name: 'ZeroAddress',
2292
+ inputs: [],
2293
+ },
2294
+ ];
2295
+ //# sourceMappingURL=UniversalMarketplace.js.map