traia-iatp 0.1.2__py3-none-any.whl → 0.1.67__py3-none-any.whl

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 (95) hide show
  1. traia_iatp/__init__.py +105 -8
  2. traia_iatp/cli/main.py +85 -1
  3. traia_iatp/client/__init__.py +28 -3
  4. traia_iatp/client/crewai_a2a_tools.py +32 -12
  5. traia_iatp/client/d402_a2a_client.py +348 -0
  6. traia_iatp/contracts/__init__.py +11 -0
  7. traia_iatp/contracts/data/abis/contract-abis-localhost.json +4091 -0
  8. traia_iatp/contracts/data/abis/contract-abis-sepolia.json +4890 -0
  9. traia_iatp/contracts/data/addresses/contract-addresses.json +17 -0
  10. traia_iatp/contracts/data/addresses/contract-proxies.json +12 -0
  11. traia_iatp/contracts/iatp_contracts_config.py +263 -0
  12. traia_iatp/contracts/wallet_creator.py +369 -0
  13. traia_iatp/core/models.py +17 -3
  14. traia_iatp/d402/MIDDLEWARE_ARCHITECTURE.md +205 -0
  15. traia_iatp/d402/PRICE_BUILDER_USAGE.md +249 -0
  16. traia_iatp/d402/README.md +489 -0
  17. traia_iatp/d402/__init__.py +54 -0
  18. traia_iatp/d402/asgi_wrapper.py +469 -0
  19. traia_iatp/d402/chains.py +102 -0
  20. traia_iatp/d402/client.py +150 -0
  21. traia_iatp/d402/clients/__init__.py +7 -0
  22. traia_iatp/d402/clients/base.py +218 -0
  23. traia_iatp/d402/clients/httpx.py +266 -0
  24. traia_iatp/d402/common.py +114 -0
  25. traia_iatp/d402/encoding.py +28 -0
  26. traia_iatp/d402/examples/client_example.py +197 -0
  27. traia_iatp/d402/examples/server_example.py +171 -0
  28. traia_iatp/d402/facilitator.py +481 -0
  29. traia_iatp/d402/mcp_middleware.py +296 -0
  30. traia_iatp/d402/models.py +116 -0
  31. traia_iatp/d402/networks.py +98 -0
  32. traia_iatp/d402/path.py +43 -0
  33. traia_iatp/d402/payment_introspection.py +126 -0
  34. traia_iatp/d402/payment_signing.py +183 -0
  35. traia_iatp/d402/price_builder.py +164 -0
  36. traia_iatp/d402/servers/__init__.py +61 -0
  37. traia_iatp/d402/servers/base.py +139 -0
  38. traia_iatp/d402/servers/example_general_server.py +140 -0
  39. traia_iatp/d402/servers/fastapi.py +253 -0
  40. traia_iatp/d402/servers/mcp.py +304 -0
  41. traia_iatp/d402/servers/starlette.py +878 -0
  42. traia_iatp/d402/starlette_middleware.py +529 -0
  43. traia_iatp/d402/types.py +300 -0
  44. traia_iatp/mcp/D402_MCP_ADAPTER_FLOW.md +357 -0
  45. traia_iatp/mcp/__init__.py +3 -0
  46. traia_iatp/mcp/d402_mcp_tool_adapter.py +526 -0
  47. traia_iatp/mcp/mcp_agent_template.py +78 -13
  48. traia_iatp/mcp/templates/Dockerfile.j2 +27 -4
  49. traia_iatp/mcp/templates/README.md.j2 +104 -8
  50. traia_iatp/mcp/templates/cursor-rules.md.j2 +194 -0
  51. traia_iatp/mcp/templates/deployment_params.json.j2 +1 -2
  52. traia_iatp/mcp/templates/docker-compose.yml.j2 +13 -3
  53. traia_iatp/mcp/templates/env.example.j2 +60 -0
  54. traia_iatp/mcp/templates/mcp_health_check.py.j2 +2 -2
  55. traia_iatp/mcp/templates/pyproject.toml.j2 +11 -5
  56. traia_iatp/mcp/templates/pyrightconfig.json.j2 +22 -0
  57. traia_iatp/mcp/templates/run_local_docker.sh.j2 +320 -10
  58. traia_iatp/mcp/templates/server.py.j2 +174 -197
  59. traia_iatp/mcp/traia_mcp_adapter.py +182 -20
  60. traia_iatp/registry/__init__.py +47 -12
  61. traia_iatp/registry/atlas_search_indexes.json +108 -54
  62. traia_iatp/registry/iatp_search_api.py +169 -39
  63. traia_iatp/registry/mongodb_registry.py +241 -69
  64. traia_iatp/registry/readmes/EMBEDDINGS_SETUP.md +1 -1
  65. traia_iatp/registry/readmes/IATP_SEARCH_API_GUIDE.md +8 -8
  66. traia_iatp/registry/readmes/MONGODB_X509_AUTH.md +1 -1
  67. traia_iatp/registry/readmes/README.md +3 -3
  68. traia_iatp/registry/readmes/REFACTORING_SUMMARY.md +6 -6
  69. traia_iatp/scripts/__init__.py +2 -0
  70. traia_iatp/scripts/create_wallet.py +244 -0
  71. traia_iatp/server/a2a_server.py +22 -7
  72. traia_iatp/server/iatp_server_template_generator.py +23 -0
  73. traia_iatp/server/templates/.dockerignore.j2 +48 -0
  74. traia_iatp/server/templates/Dockerfile.j2 +23 -1
  75. traia_iatp/server/templates/README.md +2 -2
  76. traia_iatp/server/templates/README.md.j2 +5 -5
  77. traia_iatp/server/templates/__main__.py.j2 +374 -66
  78. traia_iatp/server/templates/agent.py.j2 +12 -11
  79. traia_iatp/server/templates/agent_config.json.j2 +3 -3
  80. traia_iatp/server/templates/agent_executor.py.j2 +45 -27
  81. traia_iatp/server/templates/env.example.j2 +32 -4
  82. traia_iatp/server/templates/gitignore.j2 +7 -0
  83. traia_iatp/server/templates/pyproject.toml.j2 +13 -12
  84. traia_iatp/server/templates/run_local_docker.sh.j2 +143 -11
  85. traia_iatp/server/templates/server.py.j2 +197 -10
  86. traia_iatp/special_agencies/registry_search_agency.py +1 -1
  87. traia_iatp/utils/iatp_utils.py +6 -6
  88. traia_iatp-0.1.67.dist-info/METADATA +320 -0
  89. traia_iatp-0.1.67.dist-info/RECORD +117 -0
  90. traia_iatp-0.1.2.dist-info/METADATA +0 -414
  91. traia_iatp-0.1.2.dist-info/RECORD +0 -72
  92. {traia_iatp-0.1.2.dist-info → traia_iatp-0.1.67.dist-info}/WHEEL +0 -0
  93. {traia_iatp-0.1.2.dist-info → traia_iatp-0.1.67.dist-info}/entry_points.txt +0 -0
  94. {traia_iatp-0.1.2.dist-info → traia_iatp-0.1.67.dist-info}/licenses/LICENSE +0 -0
  95. {traia_iatp-0.1.2.dist-info → traia_iatp-0.1.67.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,4091 @@
1
+ {
2
+ "localhost": {
3
+ "IATPWallet": [
4
+ {
5
+ "inputs": [],
6
+ "stateMutability": "nonpayable",
7
+ "type": "constructor"
8
+ },
9
+ {
10
+ "inputs": [
11
+ {
12
+ "internalType": "address",
13
+ "name": "target",
14
+ "type": "address"
15
+ }
16
+ ],
17
+ "name": "AddressEmptyCode",
18
+ "type": "error"
19
+ },
20
+ {
21
+ "inputs": [],
22
+ "name": "ECDSAInvalidSignature",
23
+ "type": "error"
24
+ },
25
+ {
26
+ "inputs": [
27
+ {
28
+ "internalType": "uint256",
29
+ "name": "length",
30
+ "type": "uint256"
31
+ }
32
+ ],
33
+ "name": "ECDSAInvalidSignatureLength",
34
+ "type": "error"
35
+ },
36
+ {
37
+ "inputs": [
38
+ {
39
+ "internalType": "bytes32",
40
+ "name": "s",
41
+ "type": "bytes32"
42
+ }
43
+ ],
44
+ "name": "ECDSAInvalidSignatureS",
45
+ "type": "error"
46
+ },
47
+ {
48
+ "inputs": [
49
+ {
50
+ "internalType": "address",
51
+ "name": "implementation",
52
+ "type": "address"
53
+ }
54
+ ],
55
+ "name": "ERC1967InvalidImplementation",
56
+ "type": "error"
57
+ },
58
+ {
59
+ "inputs": [],
60
+ "name": "ERC1967NonPayable",
61
+ "type": "error"
62
+ },
63
+ {
64
+ "inputs": [],
65
+ "name": "FailedCall",
66
+ "type": "error"
67
+ },
68
+ {
69
+ "inputs": [],
70
+ "name": "InsufficientBalance",
71
+ "type": "error"
72
+ },
73
+ {
74
+ "inputs": [],
75
+ "name": "InvalidAmount",
76
+ "type": "error"
77
+ },
78
+ {
79
+ "inputs": [],
80
+ "name": "InvalidInitialization",
81
+ "type": "error"
82
+ },
83
+ {
84
+ "inputs": [],
85
+ "name": "InvalidOperatorAddress",
86
+ "type": "error"
87
+ },
88
+ {
89
+ "inputs": [],
90
+ "name": "InvalidOwnerAddress",
91
+ "type": "error"
92
+ },
93
+ {
94
+ "inputs": [],
95
+ "name": "InvalidProvider",
96
+ "type": "error"
97
+ },
98
+ {
99
+ "inputs": [],
100
+ "name": "InvalidSettlementLayerAddress",
101
+ "type": "error"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "InvalidSignature",
106
+ "type": "error"
107
+ },
108
+ {
109
+ "inputs": [],
110
+ "name": "InvalidTokenAddress",
111
+ "type": "error"
112
+ },
113
+ {
114
+ "inputs": [],
115
+ "name": "NotAuthorized",
116
+ "type": "error"
117
+ },
118
+ {
119
+ "inputs": [],
120
+ "name": "NotInitializing",
121
+ "type": "error"
122
+ },
123
+ {
124
+ "inputs": [],
125
+ "name": "NotSettlementLayer",
126
+ "type": "error"
127
+ },
128
+ {
129
+ "inputs": [],
130
+ "name": "OnlyOwner",
131
+ "type": "error"
132
+ },
133
+ {
134
+ "inputs": [],
135
+ "name": "PendingWithdrawalExists",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "internalType": "address",
142
+ "name": "token",
143
+ "type": "address"
144
+ }
145
+ ],
146
+ "name": "SafeERC20FailedOperation",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "inputs": [],
151
+ "name": "SignatureExpired",
152
+ "type": "error"
153
+ },
154
+ {
155
+ "inputs": [],
156
+ "name": "TransferFailed",
157
+ "type": "error"
158
+ },
159
+ {
160
+ "inputs": [],
161
+ "name": "UUPSUnauthorizedCallContext",
162
+ "type": "error"
163
+ },
164
+ {
165
+ "inputs": [
166
+ {
167
+ "internalType": "bytes32",
168
+ "name": "slot",
169
+ "type": "bytes32"
170
+ }
171
+ ],
172
+ "name": "UUPSUnsupportedProxiableUUID",
173
+ "type": "error"
174
+ },
175
+ {
176
+ "inputs": [],
177
+ "name": "WithdrawalAlreadyExecuted",
178
+ "type": "error"
179
+ },
180
+ {
181
+ "inputs": [],
182
+ "name": "WithdrawalLockupNotExpired",
183
+ "type": "error"
184
+ },
185
+ {
186
+ "inputs": [],
187
+ "name": "WithdrawalRequestNotFound",
188
+ "type": "error"
189
+ },
190
+ {
191
+ "anonymous": false,
192
+ "inputs": [
193
+ {
194
+ "indexed": true,
195
+ "internalType": "address",
196
+ "name": "owner",
197
+ "type": "address"
198
+ },
199
+ {
200
+ "indexed": true,
201
+ "internalType": "address",
202
+ "name": "operatorAddress",
203
+ "type": "address"
204
+ },
205
+ {
206
+ "indexed": false,
207
+ "internalType": "address",
208
+ "name": "settlementLayer",
209
+ "type": "address"
210
+ }
211
+ ],
212
+ "name": "ClientInitialized",
213
+ "type": "event"
214
+ },
215
+ {
216
+ "anonymous": false,
217
+ "inputs": [],
218
+ "name": "EIP712DomainChanged",
219
+ "type": "event"
220
+ },
221
+ {
222
+ "anonymous": false,
223
+ "inputs": [
224
+ {
225
+ "indexed": true,
226
+ "internalType": "address",
227
+ "name": "token",
228
+ "type": "address"
229
+ },
230
+ {
231
+ "indexed": false,
232
+ "internalType": "uint256",
233
+ "name": "amount",
234
+ "type": "uint256"
235
+ }
236
+ ],
237
+ "name": "FundsDeposited",
238
+ "type": "event"
239
+ },
240
+ {
241
+ "anonymous": false,
242
+ "inputs": [
243
+ {
244
+ "indexed": true,
245
+ "internalType": "address",
246
+ "name": "token",
247
+ "type": "address"
248
+ },
249
+ {
250
+ "indexed": false,
251
+ "internalType": "uint256",
252
+ "name": "amount",
253
+ "type": "uint256"
254
+ },
255
+ {
256
+ "indexed": true,
257
+ "internalType": "address",
258
+ "name": "provider",
259
+ "type": "address"
260
+ },
261
+ {
262
+ "indexed": true,
263
+ "internalType": "address",
264
+ "name": "signer",
265
+ "type": "address"
266
+ }
267
+ ],
268
+ "name": "FundsTransferredToSettlement",
269
+ "type": "event"
270
+ },
271
+ {
272
+ "anonymous": false,
273
+ "inputs": [
274
+ {
275
+ "indexed": false,
276
+ "internalType": "uint64",
277
+ "name": "version",
278
+ "type": "uint64"
279
+ }
280
+ ],
281
+ "name": "Initialized",
282
+ "type": "event"
283
+ },
284
+ {
285
+ "anonymous": false,
286
+ "inputs": [
287
+ {
288
+ "indexed": true,
289
+ "internalType": "address",
290
+ "name": "oldOperator",
291
+ "type": "address"
292
+ },
293
+ {
294
+ "indexed": true,
295
+ "internalType": "address",
296
+ "name": "newOperator",
297
+ "type": "address"
298
+ }
299
+ ],
300
+ "name": "OperatorAddressUpdated",
301
+ "type": "event"
302
+ },
303
+ {
304
+ "anonymous": false,
305
+ "inputs": [
306
+ {
307
+ "indexed": true,
308
+ "internalType": "address",
309
+ "name": "newRoleManager",
310
+ "type": "address"
311
+ }
312
+ ],
313
+ "name": "RoleManagerUpdated",
314
+ "type": "event"
315
+ },
316
+ {
317
+ "anonymous": false,
318
+ "inputs": [
319
+ {
320
+ "indexed": true,
321
+ "internalType": "address",
322
+ "name": "implementation",
323
+ "type": "address"
324
+ }
325
+ ],
326
+ "name": "Upgraded",
327
+ "type": "event"
328
+ },
329
+ {
330
+ "anonymous": false,
331
+ "inputs": [
332
+ {
333
+ "indexed": true,
334
+ "internalType": "address",
335
+ "name": "token",
336
+ "type": "address"
337
+ },
338
+ {
339
+ "indexed": false,
340
+ "internalType": "uint256",
341
+ "name": "amount",
342
+ "type": "uint256"
343
+ }
344
+ ],
345
+ "name": "WithdrawalCancelled",
346
+ "type": "event"
347
+ },
348
+ {
349
+ "anonymous": false,
350
+ "inputs": [
351
+ {
352
+ "indexed": true,
353
+ "internalType": "address",
354
+ "name": "token",
355
+ "type": "address"
356
+ },
357
+ {
358
+ "indexed": false,
359
+ "internalType": "uint256",
360
+ "name": "amount",
361
+ "type": "uint256"
362
+ },
363
+ {
364
+ "indexed": true,
365
+ "internalType": "address",
366
+ "name": "recipient",
367
+ "type": "address"
368
+ }
369
+ ],
370
+ "name": "WithdrawalExecuted",
371
+ "type": "event"
372
+ },
373
+ {
374
+ "anonymous": false,
375
+ "inputs": [
376
+ {
377
+ "indexed": true,
378
+ "internalType": "address",
379
+ "name": "token",
380
+ "type": "address"
381
+ },
382
+ {
383
+ "indexed": false,
384
+ "internalType": "uint256",
385
+ "name": "amount",
386
+ "type": "uint256"
387
+ },
388
+ {
389
+ "indexed": false,
390
+ "internalType": "uint256",
391
+ "name": "requestedAt",
392
+ "type": "uint256"
393
+ },
394
+ {
395
+ "indexed": false,
396
+ "internalType": "uint256",
397
+ "name": "unlockTime",
398
+ "type": "uint256"
399
+ }
400
+ ],
401
+ "name": "WithdrawalRequested",
402
+ "type": "event"
403
+ },
404
+ {
405
+ "inputs": [],
406
+ "name": "BONDING_ROLE",
407
+ "outputs": [
408
+ {
409
+ "internalType": "bytes32",
410
+ "name": "",
411
+ "type": "bytes32"
412
+ }
413
+ ],
414
+ "stateMutability": "view",
415
+ "type": "function"
416
+ },
417
+ {
418
+ "inputs": [],
419
+ "name": "DEFAULT_ADMIN_ROLE",
420
+ "outputs": [
421
+ {
422
+ "internalType": "bytes32",
423
+ "name": "",
424
+ "type": "bytes32"
425
+ }
426
+ ],
427
+ "stateMutability": "view",
428
+ "type": "function"
429
+ },
430
+ {
431
+ "inputs": [],
432
+ "name": "PROVIDER_ATTESTATION_TYPEHASH",
433
+ "outputs": [
434
+ {
435
+ "internalType": "bytes32",
436
+ "name": "",
437
+ "type": "bytes32"
438
+ }
439
+ ],
440
+ "stateMutability": "view",
441
+ "type": "function"
442
+ },
443
+ {
444
+ "inputs": [],
445
+ "name": "PULL_FUNDS_FOR_SETTLEMENT_TYPEHASH",
446
+ "outputs": [
447
+ {
448
+ "internalType": "bytes32",
449
+ "name": "",
450
+ "type": "bytes32"
451
+ }
452
+ ],
453
+ "stateMutability": "view",
454
+ "type": "function"
455
+ },
456
+ {
457
+ "inputs": [],
458
+ "name": "UPGRADE_INTERFACE_VERSION",
459
+ "outputs": [
460
+ {
461
+ "internalType": "string",
462
+ "name": "",
463
+ "type": "string"
464
+ }
465
+ ],
466
+ "stateMutability": "view",
467
+ "type": "function"
468
+ },
469
+ {
470
+ "inputs": [],
471
+ "name": "WITHDRAWAL_LOCKUP_PERIOD",
472
+ "outputs": [
473
+ {
474
+ "internalType": "uint256",
475
+ "name": "",
476
+ "type": "uint256"
477
+ }
478
+ ],
479
+ "stateMutability": "view",
480
+ "type": "function"
481
+ },
482
+ {
483
+ "inputs": [
484
+ {
485
+ "internalType": "address",
486
+ "name": "token",
487
+ "type": "address"
488
+ }
489
+ ],
490
+ "name": "cancelWithdrawal",
491
+ "outputs": [],
492
+ "stateMutability": "nonpayable",
493
+ "type": "function"
494
+ },
495
+ {
496
+ "inputs": [
497
+ {
498
+ "internalType": "address",
499
+ "name": "token",
500
+ "type": "address"
501
+ },
502
+ {
503
+ "internalType": "uint256",
504
+ "name": "amount",
505
+ "type": "uint256"
506
+ }
507
+ ],
508
+ "name": "deposit",
509
+ "outputs": [],
510
+ "stateMutability": "nonpayable",
511
+ "type": "function"
512
+ },
513
+ {
514
+ "inputs": [],
515
+ "name": "eip712Domain",
516
+ "outputs": [
517
+ {
518
+ "internalType": "bytes1",
519
+ "name": "fields",
520
+ "type": "bytes1"
521
+ },
522
+ {
523
+ "internalType": "string",
524
+ "name": "name",
525
+ "type": "string"
526
+ },
527
+ {
528
+ "internalType": "string",
529
+ "name": "version",
530
+ "type": "string"
531
+ },
532
+ {
533
+ "internalType": "uint256",
534
+ "name": "chainId",
535
+ "type": "uint256"
536
+ },
537
+ {
538
+ "internalType": "address",
539
+ "name": "verifyingContract",
540
+ "type": "address"
541
+ },
542
+ {
543
+ "internalType": "bytes32",
544
+ "name": "salt",
545
+ "type": "bytes32"
546
+ },
547
+ {
548
+ "internalType": "uint256[]",
549
+ "name": "extensions",
550
+ "type": "uint256[]"
551
+ }
552
+ ],
553
+ "stateMutability": "view",
554
+ "type": "function"
555
+ },
556
+ {
557
+ "inputs": [
558
+ {
559
+ "internalType": "address",
560
+ "name": "token",
561
+ "type": "address"
562
+ }
563
+ ],
564
+ "name": "executeWithdrawal",
565
+ "outputs": [],
566
+ "stateMutability": "nonpayable",
567
+ "type": "function"
568
+ },
569
+ {
570
+ "inputs": [
571
+ {
572
+ "internalType": "address",
573
+ "name": "token",
574
+ "type": "address"
575
+ }
576
+ ],
577
+ "name": "getBalance",
578
+ "outputs": [
579
+ {
580
+ "internalType": "uint256",
581
+ "name": "",
582
+ "type": "uint256"
583
+ }
584
+ ],
585
+ "stateMutability": "view",
586
+ "type": "function"
587
+ },
588
+ {
589
+ "inputs": [
590
+ {
591
+ "internalType": "address",
592
+ "name": "token",
593
+ "type": "address"
594
+ }
595
+ ],
596
+ "name": "getWithdrawalRequest",
597
+ "outputs": [
598
+ {
599
+ "components": [
600
+ {
601
+ "internalType": "address",
602
+ "name": "token",
603
+ "type": "address"
604
+ },
605
+ {
606
+ "internalType": "uint256",
607
+ "name": "amount",
608
+ "type": "uint256"
609
+ },
610
+ {
611
+ "internalType": "uint256",
612
+ "name": "requestedAt",
613
+ "type": "uint256"
614
+ },
615
+ {
616
+ "internalType": "bool",
617
+ "name": "executed",
618
+ "type": "bool"
619
+ }
620
+ ],
621
+ "internalType": "struct IIATPWallet.WithdrawalRequest",
622
+ "name": "request",
623
+ "type": "tuple"
624
+ },
625
+ {
626
+ "internalType": "uint256",
627
+ "name": "unlockTime",
628
+ "type": "uint256"
629
+ }
630
+ ],
631
+ "stateMutability": "view",
632
+ "type": "function"
633
+ },
634
+ {
635
+ "inputs": [
636
+ {
637
+ "internalType": "address",
638
+ "name": "_roleManager",
639
+ "type": "address"
640
+ },
641
+ {
642
+ "internalType": "address",
643
+ "name": "_owner",
644
+ "type": "address"
645
+ },
646
+ {
647
+ "internalType": "address",
648
+ "name": "_operatorAddress",
649
+ "type": "address"
650
+ },
651
+ {
652
+ "internalType": "address",
653
+ "name": "_settlementLayer",
654
+ "type": "address"
655
+ }
656
+ ],
657
+ "name": "initialize",
658
+ "outputs": [],
659
+ "stateMutability": "nonpayable",
660
+ "type": "function"
661
+ },
662
+ {
663
+ "inputs": [
664
+ {
665
+ "internalType": "address",
666
+ "name": "account",
667
+ "type": "address"
668
+ }
669
+ ],
670
+ "name": "isMaintainer",
671
+ "outputs": [
672
+ {
673
+ "internalType": "bool",
674
+ "name": "",
675
+ "type": "bool"
676
+ }
677
+ ],
678
+ "stateMutability": "view",
679
+ "type": "function"
680
+ },
681
+ {
682
+ "inputs": [],
683
+ "name": "operatorAddress",
684
+ "outputs": [
685
+ {
686
+ "internalType": "address",
687
+ "name": "",
688
+ "type": "address"
689
+ }
690
+ ],
691
+ "stateMutability": "view",
692
+ "type": "function"
693
+ },
694
+ {
695
+ "inputs": [],
696
+ "name": "owner",
697
+ "outputs": [
698
+ {
699
+ "internalType": "address",
700
+ "name": "",
701
+ "type": "address"
702
+ }
703
+ ],
704
+ "stateMutability": "view",
705
+ "type": "function"
706
+ },
707
+ {
708
+ "inputs": [],
709
+ "name": "proxiableUUID",
710
+ "outputs": [
711
+ {
712
+ "internalType": "bytes32",
713
+ "name": "",
714
+ "type": "bytes32"
715
+ }
716
+ ],
717
+ "stateMutability": "view",
718
+ "type": "function"
719
+ },
720
+ {
721
+ "inputs": [
722
+ {
723
+ "internalType": "address",
724
+ "name": "token",
725
+ "type": "address"
726
+ },
727
+ {
728
+ "internalType": "uint256",
729
+ "name": "amount",
730
+ "type": "uint256"
731
+ },
732
+ {
733
+ "internalType": "address",
734
+ "name": "provider",
735
+ "type": "address"
736
+ },
737
+ {
738
+ "internalType": "uint256",
739
+ "name": "deadline",
740
+ "type": "uint256"
741
+ },
742
+ {
743
+ "internalType": "string",
744
+ "name": "requestPath",
745
+ "type": "string"
746
+ },
747
+ {
748
+ "internalType": "bytes",
749
+ "name": "signature",
750
+ "type": "bytes"
751
+ }
752
+ ],
753
+ "name": "pullFundsForSettlement",
754
+ "outputs": [],
755
+ "stateMutability": "nonpayable",
756
+ "type": "function"
757
+ },
758
+ {
759
+ "inputs": [
760
+ {
761
+ "internalType": "address",
762
+ "name": "token",
763
+ "type": "address"
764
+ },
765
+ {
766
+ "internalType": "uint256",
767
+ "name": "amount",
768
+ "type": "uint256"
769
+ }
770
+ ],
771
+ "name": "requestWithdrawal",
772
+ "outputs": [],
773
+ "stateMutability": "nonpayable",
774
+ "type": "function"
775
+ },
776
+ {
777
+ "inputs": [],
778
+ "name": "roleManager",
779
+ "outputs": [
780
+ {
781
+ "internalType": "contract IRoleManager",
782
+ "name": "",
783
+ "type": "address"
784
+ }
785
+ ],
786
+ "stateMutability": "view",
787
+ "type": "function"
788
+ },
789
+ {
790
+ "inputs": [],
791
+ "name": "settlementLayer",
792
+ "outputs": [
793
+ {
794
+ "internalType": "contract IIATPSettlementLayer",
795
+ "name": "",
796
+ "type": "address"
797
+ }
798
+ ],
799
+ "stateMutability": "view",
800
+ "type": "function"
801
+ },
802
+ {
803
+ "inputs": [
804
+ {
805
+ "internalType": "address",
806
+ "name": "_newOperatorAddress",
807
+ "type": "address"
808
+ }
809
+ ],
810
+ "name": "updateOperatorAddress",
811
+ "outputs": [],
812
+ "stateMutability": "nonpayable",
813
+ "type": "function"
814
+ },
815
+ {
816
+ "inputs": [
817
+ {
818
+ "internalType": "address",
819
+ "name": "newImplementation",
820
+ "type": "address"
821
+ },
822
+ {
823
+ "internalType": "bytes",
824
+ "name": "data",
825
+ "type": "bytes"
826
+ }
827
+ ],
828
+ "name": "upgradeToAndCall",
829
+ "outputs": [],
830
+ "stateMutability": "payable",
831
+ "type": "function"
832
+ },
833
+ {
834
+ "inputs": [
835
+ {
836
+ "internalType": "address",
837
+ "name": "token",
838
+ "type": "address"
839
+ },
840
+ {
841
+ "internalType": "uint256",
842
+ "name": "amount",
843
+ "type": "uint256"
844
+ },
845
+ {
846
+ "internalType": "address",
847
+ "name": "provider",
848
+ "type": "address"
849
+ },
850
+ {
851
+ "internalType": "uint256",
852
+ "name": "deadline",
853
+ "type": "uint256"
854
+ },
855
+ {
856
+ "internalType": "string",
857
+ "name": "requestPath",
858
+ "type": "string"
859
+ },
860
+ {
861
+ "internalType": "bytes",
862
+ "name": "signature",
863
+ "type": "bytes"
864
+ }
865
+ ],
866
+ "name": "validateConsumerSignature",
867
+ "outputs": [
868
+ {
869
+ "internalType": "bool",
870
+ "name": "",
871
+ "type": "bool"
872
+ }
873
+ ],
874
+ "stateMutability": "view",
875
+ "type": "function"
876
+ },
877
+ {
878
+ "inputs": [
879
+ {
880
+ "internalType": "bytes",
881
+ "name": "consumerSignature",
882
+ "type": "bytes"
883
+ },
884
+ {
885
+ "internalType": "bytes",
886
+ "name": "outputHash",
887
+ "type": "bytes"
888
+ },
889
+ {
890
+ "internalType": "uint256",
891
+ "name": "timestamp",
892
+ "type": "uint256"
893
+ },
894
+ {
895
+ "internalType": "bytes32",
896
+ "name": "serviceDescription",
897
+ "type": "bytes32"
898
+ },
899
+ {
900
+ "internalType": "uint256",
901
+ "name": "facilitatorFeePercent",
902
+ "type": "uint256"
903
+ },
904
+ {
905
+ "internalType": "bytes",
906
+ "name": "signature",
907
+ "type": "bytes"
908
+ }
909
+ ],
910
+ "name": "validateProviderAttestation",
911
+ "outputs": [],
912
+ "stateMutability": "view",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "inputs": [
917
+ {
918
+ "internalType": "address",
919
+ "name": "token",
920
+ "type": "address"
921
+ }
922
+ ],
923
+ "name": "withdrawAllFromSettlement",
924
+ "outputs": [],
925
+ "stateMutability": "nonpayable",
926
+ "type": "function"
927
+ },
928
+ {
929
+ "inputs": [
930
+ {
931
+ "internalType": "uint256",
932
+ "name": "epoch",
933
+ "type": "uint256"
934
+ },
935
+ {
936
+ "internalType": "address",
937
+ "name": "token",
938
+ "type": "address"
939
+ }
940
+ ],
941
+ "name": "withdrawEpochFromSettlement",
942
+ "outputs": [],
943
+ "stateMutability": "nonpayable",
944
+ "type": "function"
945
+ },
946
+ {
947
+ "inputs": [
948
+ {
949
+ "internalType": "address",
950
+ "name": "",
951
+ "type": "address"
952
+ }
953
+ ],
954
+ "name": "withdrawalRequests",
955
+ "outputs": [
956
+ {
957
+ "internalType": "address",
958
+ "name": "token",
959
+ "type": "address"
960
+ },
961
+ {
962
+ "internalType": "uint256",
963
+ "name": "amount",
964
+ "type": "uint256"
965
+ },
966
+ {
967
+ "internalType": "uint256",
968
+ "name": "requestedAt",
969
+ "type": "uint256"
970
+ },
971
+ {
972
+ "internalType": "bool",
973
+ "name": "executed",
974
+ "type": "bool"
975
+ }
976
+ ],
977
+ "stateMutability": "view",
978
+ "type": "function"
979
+ },
980
+ {
981
+ "stateMutability": "payable",
982
+ "type": "receive"
983
+ }
984
+ ],
985
+ "RoleManager": [
986
+ {
987
+ "inputs": [],
988
+ "name": "AccessControlBadConfirmation",
989
+ "type": "error"
990
+ },
991
+ {
992
+ "inputs": [
993
+ {
994
+ "internalType": "address",
995
+ "name": "account",
996
+ "type": "address"
997
+ },
998
+ {
999
+ "internalType": "bytes32",
1000
+ "name": "neededRole",
1001
+ "type": "bytes32"
1002
+ }
1003
+ ],
1004
+ "name": "AccessControlUnauthorizedAccount",
1005
+ "type": "error"
1006
+ },
1007
+ {
1008
+ "inputs": [
1009
+ {
1010
+ "internalType": "address",
1011
+ "name": "target",
1012
+ "type": "address"
1013
+ }
1014
+ ],
1015
+ "name": "AddressEmptyCode",
1016
+ "type": "error"
1017
+ },
1018
+ {
1019
+ "inputs": [
1020
+ {
1021
+ "internalType": "address",
1022
+ "name": "implementation",
1023
+ "type": "address"
1024
+ }
1025
+ ],
1026
+ "name": "ERC1967InvalidImplementation",
1027
+ "type": "error"
1028
+ },
1029
+ {
1030
+ "inputs": [],
1031
+ "name": "ERC1967NonPayable",
1032
+ "type": "error"
1033
+ },
1034
+ {
1035
+ "inputs": [],
1036
+ "name": "FailedCall",
1037
+ "type": "error"
1038
+ },
1039
+ {
1040
+ "inputs": [],
1041
+ "name": "InvalidInitialization",
1042
+ "type": "error"
1043
+ },
1044
+ {
1045
+ "inputs": [],
1046
+ "name": "NotInitializing",
1047
+ "type": "error"
1048
+ },
1049
+ {
1050
+ "inputs": [],
1051
+ "name": "UUPSUnauthorizedCallContext",
1052
+ "type": "error"
1053
+ },
1054
+ {
1055
+ "inputs": [
1056
+ {
1057
+ "internalType": "bytes32",
1058
+ "name": "slot",
1059
+ "type": "bytes32"
1060
+ }
1061
+ ],
1062
+ "name": "UUPSUnsupportedProxiableUUID",
1063
+ "type": "error"
1064
+ },
1065
+ {
1066
+ "anonymous": false,
1067
+ "inputs": [
1068
+ {
1069
+ "indexed": false,
1070
+ "internalType": "uint64",
1071
+ "name": "version",
1072
+ "type": "uint64"
1073
+ }
1074
+ ],
1075
+ "name": "Initialized",
1076
+ "type": "event"
1077
+ },
1078
+ {
1079
+ "anonymous": false,
1080
+ "inputs": [
1081
+ {
1082
+ "indexed": true,
1083
+ "internalType": "bytes32",
1084
+ "name": "role",
1085
+ "type": "bytes32"
1086
+ },
1087
+ {
1088
+ "indexed": true,
1089
+ "internalType": "bytes32",
1090
+ "name": "previousAdminRole",
1091
+ "type": "bytes32"
1092
+ },
1093
+ {
1094
+ "indexed": true,
1095
+ "internalType": "bytes32",
1096
+ "name": "newAdminRole",
1097
+ "type": "bytes32"
1098
+ }
1099
+ ],
1100
+ "name": "RoleAdminChanged",
1101
+ "type": "event"
1102
+ },
1103
+ {
1104
+ "anonymous": false,
1105
+ "inputs": [
1106
+ {
1107
+ "indexed": true,
1108
+ "internalType": "bytes32",
1109
+ "name": "role",
1110
+ "type": "bytes32"
1111
+ },
1112
+ {
1113
+ "indexed": true,
1114
+ "internalType": "address",
1115
+ "name": "account",
1116
+ "type": "address"
1117
+ },
1118
+ {
1119
+ "indexed": true,
1120
+ "internalType": "address",
1121
+ "name": "sender",
1122
+ "type": "address"
1123
+ }
1124
+ ],
1125
+ "name": "RoleGranted",
1126
+ "type": "event"
1127
+ },
1128
+ {
1129
+ "anonymous": false,
1130
+ "inputs": [
1131
+ {
1132
+ "indexed": true,
1133
+ "internalType": "bytes32",
1134
+ "name": "role",
1135
+ "type": "bytes32"
1136
+ },
1137
+ {
1138
+ "indexed": true,
1139
+ "internalType": "address",
1140
+ "name": "account",
1141
+ "type": "address"
1142
+ },
1143
+ {
1144
+ "indexed": true,
1145
+ "internalType": "address",
1146
+ "name": "sender",
1147
+ "type": "address"
1148
+ }
1149
+ ],
1150
+ "name": "RoleRevoked",
1151
+ "type": "event"
1152
+ },
1153
+ {
1154
+ "anonymous": false,
1155
+ "inputs": [
1156
+ {
1157
+ "indexed": true,
1158
+ "internalType": "address",
1159
+ "name": "implementation",
1160
+ "type": "address"
1161
+ }
1162
+ ],
1163
+ "name": "Upgraded",
1164
+ "type": "event"
1165
+ },
1166
+ {
1167
+ "inputs": [],
1168
+ "name": "DEFAULT_ADMIN_ROLE",
1169
+ "outputs": [
1170
+ {
1171
+ "internalType": "bytes32",
1172
+ "name": "",
1173
+ "type": "bytes32"
1174
+ }
1175
+ ],
1176
+ "stateMutability": "view",
1177
+ "type": "function"
1178
+ },
1179
+ {
1180
+ "inputs": [],
1181
+ "name": "MAINTAINER_ROLE",
1182
+ "outputs": [
1183
+ {
1184
+ "internalType": "bytes32",
1185
+ "name": "",
1186
+ "type": "bytes32"
1187
+ }
1188
+ ],
1189
+ "stateMutability": "view",
1190
+ "type": "function"
1191
+ },
1192
+ {
1193
+ "inputs": [],
1194
+ "name": "UPGRADE_INTERFACE_VERSION",
1195
+ "outputs": [
1196
+ {
1197
+ "internalType": "string",
1198
+ "name": "",
1199
+ "type": "string"
1200
+ }
1201
+ ],
1202
+ "stateMutability": "view",
1203
+ "type": "function"
1204
+ },
1205
+ {
1206
+ "inputs": [
1207
+ {
1208
+ "internalType": "address",
1209
+ "name": "maintainer",
1210
+ "type": "address"
1211
+ }
1212
+ ],
1213
+ "name": "addMaintainer",
1214
+ "outputs": [],
1215
+ "stateMutability": "nonpayable",
1216
+ "type": "function"
1217
+ },
1218
+ {
1219
+ "inputs": [],
1220
+ "name": "getDefaultAdmin",
1221
+ "outputs": [
1222
+ {
1223
+ "internalType": "address",
1224
+ "name": "",
1225
+ "type": "address"
1226
+ }
1227
+ ],
1228
+ "stateMutability": "view",
1229
+ "type": "function"
1230
+ },
1231
+ {
1232
+ "inputs": [
1233
+ {
1234
+ "internalType": "bytes32",
1235
+ "name": "role",
1236
+ "type": "bytes32"
1237
+ }
1238
+ ],
1239
+ "name": "getRoleAdmin",
1240
+ "outputs": [
1241
+ {
1242
+ "internalType": "bytes32",
1243
+ "name": "",
1244
+ "type": "bytes32"
1245
+ }
1246
+ ],
1247
+ "stateMutability": "view",
1248
+ "type": "function"
1249
+ },
1250
+ {
1251
+ "inputs": [
1252
+ {
1253
+ "internalType": "bytes32",
1254
+ "name": "role",
1255
+ "type": "bytes32"
1256
+ },
1257
+ {
1258
+ "internalType": "uint256",
1259
+ "name": "index",
1260
+ "type": "uint256"
1261
+ }
1262
+ ],
1263
+ "name": "getRoleMember",
1264
+ "outputs": [
1265
+ {
1266
+ "internalType": "address",
1267
+ "name": "",
1268
+ "type": "address"
1269
+ }
1270
+ ],
1271
+ "stateMutability": "view",
1272
+ "type": "function"
1273
+ },
1274
+ {
1275
+ "inputs": [
1276
+ {
1277
+ "internalType": "bytes32",
1278
+ "name": "role",
1279
+ "type": "bytes32"
1280
+ }
1281
+ ],
1282
+ "name": "getRoleMemberCount",
1283
+ "outputs": [
1284
+ {
1285
+ "internalType": "uint256",
1286
+ "name": "",
1287
+ "type": "uint256"
1288
+ }
1289
+ ],
1290
+ "stateMutability": "view",
1291
+ "type": "function"
1292
+ },
1293
+ {
1294
+ "inputs": [
1295
+ {
1296
+ "internalType": "bytes32",
1297
+ "name": "role",
1298
+ "type": "bytes32"
1299
+ }
1300
+ ],
1301
+ "name": "getRoleMembers",
1302
+ "outputs": [
1303
+ {
1304
+ "internalType": "address[]",
1305
+ "name": "",
1306
+ "type": "address[]"
1307
+ }
1308
+ ],
1309
+ "stateMutability": "view",
1310
+ "type": "function"
1311
+ },
1312
+ {
1313
+ "inputs": [
1314
+ {
1315
+ "internalType": "bytes32",
1316
+ "name": "role",
1317
+ "type": "bytes32"
1318
+ },
1319
+ {
1320
+ "internalType": "address",
1321
+ "name": "account",
1322
+ "type": "address"
1323
+ }
1324
+ ],
1325
+ "name": "grantRole",
1326
+ "outputs": [],
1327
+ "stateMutability": "nonpayable",
1328
+ "type": "function"
1329
+ },
1330
+ {
1331
+ "inputs": [
1332
+ {
1333
+ "internalType": "bytes32",
1334
+ "name": "role",
1335
+ "type": "bytes32"
1336
+ },
1337
+ {
1338
+ "internalType": "address",
1339
+ "name": "account",
1340
+ "type": "address"
1341
+ }
1342
+ ],
1343
+ "name": "hasRole",
1344
+ "outputs": [
1345
+ {
1346
+ "internalType": "bool",
1347
+ "name": "",
1348
+ "type": "bool"
1349
+ }
1350
+ ],
1351
+ "stateMutability": "view",
1352
+ "type": "function"
1353
+ },
1354
+ {
1355
+ "inputs": [
1356
+ {
1357
+ "internalType": "address",
1358
+ "name": "congress",
1359
+ "type": "address"
1360
+ },
1361
+ {
1362
+ "internalType": "address[]",
1363
+ "name": "maintainers",
1364
+ "type": "address[]"
1365
+ }
1366
+ ],
1367
+ "name": "initialize",
1368
+ "outputs": [],
1369
+ "stateMutability": "nonpayable",
1370
+ "type": "function"
1371
+ },
1372
+ {
1373
+ "inputs": [],
1374
+ "name": "proxiableUUID",
1375
+ "outputs": [
1376
+ {
1377
+ "internalType": "bytes32",
1378
+ "name": "",
1379
+ "type": "bytes32"
1380
+ }
1381
+ ],
1382
+ "stateMutability": "view",
1383
+ "type": "function"
1384
+ },
1385
+ {
1386
+ "inputs": [
1387
+ {
1388
+ "internalType": "address",
1389
+ "name": "maintainer",
1390
+ "type": "address"
1391
+ }
1392
+ ],
1393
+ "name": "removeMaintainer",
1394
+ "outputs": [],
1395
+ "stateMutability": "nonpayable",
1396
+ "type": "function"
1397
+ },
1398
+ {
1399
+ "inputs": [
1400
+ {
1401
+ "internalType": "bytes32",
1402
+ "name": "role",
1403
+ "type": "bytes32"
1404
+ },
1405
+ {
1406
+ "internalType": "address",
1407
+ "name": "callerConfirmation",
1408
+ "type": "address"
1409
+ }
1410
+ ],
1411
+ "name": "renounceRole",
1412
+ "outputs": [],
1413
+ "stateMutability": "nonpayable",
1414
+ "type": "function"
1415
+ },
1416
+ {
1417
+ "inputs": [
1418
+ {
1419
+ "internalType": "bytes32",
1420
+ "name": "role",
1421
+ "type": "bytes32"
1422
+ },
1423
+ {
1424
+ "internalType": "address",
1425
+ "name": "account",
1426
+ "type": "address"
1427
+ }
1428
+ ],
1429
+ "name": "revokeRole",
1430
+ "outputs": [],
1431
+ "stateMutability": "nonpayable",
1432
+ "type": "function"
1433
+ },
1434
+ {
1435
+ "inputs": [
1436
+ {
1437
+ "internalType": "bytes4",
1438
+ "name": "interfaceId",
1439
+ "type": "bytes4"
1440
+ }
1441
+ ],
1442
+ "name": "supportsInterface",
1443
+ "outputs": [
1444
+ {
1445
+ "internalType": "bool",
1446
+ "name": "",
1447
+ "type": "bool"
1448
+ }
1449
+ ],
1450
+ "stateMutability": "view",
1451
+ "type": "function"
1452
+ },
1453
+ {
1454
+ "inputs": [
1455
+ {
1456
+ "internalType": "address",
1457
+ "name": "newAdmin",
1458
+ "type": "address"
1459
+ }
1460
+ ],
1461
+ "name": "transferDefaultAdmin",
1462
+ "outputs": [],
1463
+ "stateMutability": "nonpayable",
1464
+ "type": "function"
1465
+ },
1466
+ {
1467
+ "inputs": [
1468
+ {
1469
+ "internalType": "address",
1470
+ "name": "newImplementation",
1471
+ "type": "address"
1472
+ },
1473
+ {
1474
+ "internalType": "bytes",
1475
+ "name": "data",
1476
+ "type": "bytes"
1477
+ }
1478
+ ],
1479
+ "name": "upgradeToAndCall",
1480
+ "outputs": [],
1481
+ "stateMutability": "payable",
1482
+ "type": "function"
1483
+ }
1484
+ ],
1485
+ "IATPSettlementLayer": [
1486
+ {
1487
+ "inputs": [],
1488
+ "stateMutability": "nonpayable",
1489
+ "type": "constructor"
1490
+ },
1491
+ {
1492
+ "inputs": [
1493
+ {
1494
+ "internalType": "address",
1495
+ "name": "target",
1496
+ "type": "address"
1497
+ }
1498
+ ],
1499
+ "name": "AddressEmptyCode",
1500
+ "type": "error"
1501
+ },
1502
+ {
1503
+ "inputs": [],
1504
+ "name": "AmountMustBePositive",
1505
+ "type": "error"
1506
+ },
1507
+ {
1508
+ "inputs": [],
1509
+ "name": "ArrayLengthMismatch",
1510
+ "type": "error"
1511
+ },
1512
+ {
1513
+ "inputs": [],
1514
+ "name": "CannotReleaseEpochYet",
1515
+ "type": "error"
1516
+ },
1517
+ {
1518
+ "inputs": [],
1519
+ "name": "ConsumerProviderSame",
1520
+ "type": "error"
1521
+ },
1522
+ {
1523
+ "inputs": [],
1524
+ "name": "DisputeAlreadyFiled",
1525
+ "type": "error"
1526
+ },
1527
+ {
1528
+ "inputs": [],
1529
+ "name": "DisputeAlreadyResolved",
1530
+ "type": "error"
1531
+ },
1532
+ {
1533
+ "inputs": [],
1534
+ "name": "DisputeNotFound",
1535
+ "type": "error"
1536
+ },
1537
+ {
1538
+ "inputs": [],
1539
+ "name": "DisputePeriodExpired",
1540
+ "type": "error"
1541
+ },
1542
+ {
1543
+ "inputs": [
1544
+ {
1545
+ "internalType": "address",
1546
+ "name": "implementation",
1547
+ "type": "address"
1548
+ }
1549
+ ],
1550
+ "name": "ERC1967InvalidImplementation",
1551
+ "type": "error"
1552
+ },
1553
+ {
1554
+ "inputs": [],
1555
+ "name": "ERC1967NonPayable",
1556
+ "type": "error"
1557
+ },
1558
+ {
1559
+ "inputs": [],
1560
+ "name": "EmptyArray",
1561
+ "type": "error"
1562
+ },
1563
+ {
1564
+ "inputs": [],
1565
+ "name": "EpochMustBeNextOne",
1566
+ "type": "error"
1567
+ },
1568
+ {
1569
+ "inputs": [],
1570
+ "name": "EpochMustBeOne",
1571
+ "type": "error"
1572
+ },
1573
+ {
1574
+ "inputs": [],
1575
+ "name": "FailedCall",
1576
+ "type": "error"
1577
+ },
1578
+ {
1579
+ "inputs": [],
1580
+ "name": "InsufficientBalance",
1581
+ "type": "error"
1582
+ },
1583
+ {
1584
+ "inputs": [],
1585
+ "name": "InvalidAddress",
1586
+ "type": "error"
1587
+ },
1588
+ {
1589
+ "inputs": [],
1590
+ "name": "InvalidConsumer",
1591
+ "type": "error"
1592
+ },
1593
+ {
1594
+ "inputs": [],
1595
+ "name": "InvalidConsumerSignature",
1596
+ "type": "error"
1597
+ },
1598
+ {
1599
+ "inputs": [],
1600
+ "name": "InvalidEpoch",
1601
+ "type": "error"
1602
+ },
1603
+ {
1604
+ "inputs": [],
1605
+ "name": "InvalidInitialization",
1606
+ "type": "error"
1607
+ },
1608
+ {
1609
+ "inputs": [],
1610
+ "name": "InvalidInput",
1611
+ "type": "error"
1612
+ },
1613
+ {
1614
+ "inputs": [],
1615
+ "name": "InvalidProvider",
1616
+ "type": "error"
1617
+ },
1618
+ {
1619
+ "inputs": [],
1620
+ "name": "InvalidProviderSignature",
1621
+ "type": "error"
1622
+ },
1623
+ {
1624
+ "inputs": [],
1625
+ "name": "InvalidTraiaToken",
1626
+ "type": "error"
1627
+ },
1628
+ {
1629
+ "inputs": [],
1630
+ "name": "InvalidUtilityAgentFactory",
1631
+ "type": "error"
1632
+ },
1633
+ {
1634
+ "inputs": [],
1635
+ "name": "NoFundsToRelease",
1636
+ "type": "error"
1637
+ },
1638
+ {
1639
+ "inputs": [],
1640
+ "name": "NoLockedFunds",
1641
+ "type": "error"
1642
+ },
1643
+ {
1644
+ "inputs": [],
1645
+ "name": "NotAuthorized",
1646
+ "type": "error"
1647
+ },
1648
+ {
1649
+ "inputs": [],
1650
+ "name": "NotInitializing",
1651
+ "type": "error"
1652
+ },
1653
+ {
1654
+ "inputs": [],
1655
+ "name": "ProviderNotRegistered",
1656
+ "type": "error"
1657
+ },
1658
+ {
1659
+ "inputs": [],
1660
+ "name": "ReentrancyGuardReentrantCall",
1661
+ "type": "error"
1662
+ },
1663
+ {
1664
+ "inputs": [],
1665
+ "name": "RequestAlreadyProcessed",
1666
+ "type": "error"
1667
+ },
1668
+ {
1669
+ "inputs": [],
1670
+ "name": "RequestExpired",
1671
+ "type": "error"
1672
+ },
1673
+ {
1674
+ "inputs": [],
1675
+ "name": "RequestNotSettled",
1676
+ "type": "error"
1677
+ },
1678
+ {
1679
+ "inputs": [
1680
+ {
1681
+ "internalType": "address",
1682
+ "name": "token",
1683
+ "type": "address"
1684
+ }
1685
+ ],
1686
+ "name": "SafeERC20FailedOperation",
1687
+ "type": "error"
1688
+ },
1689
+ {
1690
+ "inputs": [],
1691
+ "name": "SignatureAlreadyUsed",
1692
+ "type": "error"
1693
+ },
1694
+ {
1695
+ "inputs": [],
1696
+ "name": "UUPSUnauthorizedCallContext",
1697
+ "type": "error"
1698
+ },
1699
+ {
1700
+ "inputs": [
1701
+ {
1702
+ "internalType": "bytes32",
1703
+ "name": "slot",
1704
+ "type": "bytes32"
1705
+ }
1706
+ ],
1707
+ "name": "UUPSUnsupportedProxiableUUID",
1708
+ "type": "error"
1709
+ },
1710
+ {
1711
+ "anonymous": false,
1712
+ "inputs": [
1713
+ {
1714
+ "indexed": true,
1715
+ "internalType": "address",
1716
+ "name": "consumer",
1717
+ "type": "address"
1718
+ },
1719
+ {
1720
+ "indexed": false,
1721
+ "internalType": "uint256",
1722
+ "name": "refillAmount",
1723
+ "type": "uint256"
1724
+ },
1725
+ {
1726
+ "indexed": false,
1727
+ "internalType": "uint256",
1728
+ "name": "previousBalance",
1729
+ "type": "uint256"
1730
+ },
1731
+ {
1732
+ "indexed": false,
1733
+ "internalType": "uint256",
1734
+ "name": "newBalance",
1735
+ "type": "uint256"
1736
+ }
1737
+ ],
1738
+ "name": "AutoRefillExecuted",
1739
+ "type": "event"
1740
+ },
1741
+ {
1742
+ "anonymous": false,
1743
+ "inputs": [
1744
+ {
1745
+ "indexed": false,
1746
+ "internalType": "uint256",
1747
+ "name": "newMaxAutoRefillAmount",
1748
+ "type": "uint256"
1749
+ },
1750
+ {
1751
+ "indexed": false,
1752
+ "internalType": "uint256",
1753
+ "name": "newBalanceThresholdMultiplier",
1754
+ "type": "uint256"
1755
+ },
1756
+ {
1757
+ "indexed": false,
1758
+ "internalType": "uint256",
1759
+ "name": "newAutoRefillMultiplier",
1760
+ "type": "uint256"
1761
+ }
1762
+ ],
1763
+ "name": "AutoRefillParametersUpdated",
1764
+ "type": "event"
1765
+ },
1766
+ {
1767
+ "anonymous": false,
1768
+ "inputs": [
1769
+ {
1770
+ "indexed": true,
1771
+ "internalType": "address",
1772
+ "name": "consumer",
1773
+ "type": "address"
1774
+ },
1775
+ {
1776
+ "indexed": false,
1777
+ "internalType": "uint256",
1778
+ "name": "amount",
1779
+ "type": "uint256"
1780
+ }
1781
+ ],
1782
+ "name": "ConsumerDeposit",
1783
+ "type": "event"
1784
+ },
1785
+ {
1786
+ "anonymous": false,
1787
+ "inputs": [
1788
+ {
1789
+ "indexed": true,
1790
+ "internalType": "address",
1791
+ "name": "consumer",
1792
+ "type": "address"
1793
+ },
1794
+ {
1795
+ "indexed": false,
1796
+ "internalType": "uint256",
1797
+ "name": "amount",
1798
+ "type": "uint256"
1799
+ }
1800
+ ],
1801
+ "name": "ConsumerWithdraw",
1802
+ "type": "event"
1803
+ },
1804
+ {
1805
+ "anonymous": false,
1806
+ "inputs": [
1807
+ {
1808
+ "indexed": true,
1809
+ "internalType": "bytes32",
1810
+ "name": "requestId",
1811
+ "type": "bytes32"
1812
+ },
1813
+ {
1814
+ "indexed": true,
1815
+ "internalType": "address",
1816
+ "name": "consumer",
1817
+ "type": "address"
1818
+ },
1819
+ {
1820
+ "indexed": true,
1821
+ "internalType": "address",
1822
+ "name": "provider",
1823
+ "type": "address"
1824
+ },
1825
+ {
1826
+ "indexed": false,
1827
+ "internalType": "string",
1828
+ "name": "reason",
1829
+ "type": "string"
1830
+ }
1831
+ ],
1832
+ "name": "DisputeFiled",
1833
+ "type": "event"
1834
+ },
1835
+ {
1836
+ "anonymous": false,
1837
+ "inputs": [
1838
+ {
1839
+ "indexed": true,
1840
+ "internalType": "bytes32",
1841
+ "name": "requestId",
1842
+ "type": "bytes32"
1843
+ },
1844
+ {
1845
+ "indexed": false,
1846
+ "internalType": "bool",
1847
+ "name": "consumerWon",
1848
+ "type": "bool"
1849
+ },
1850
+ {
1851
+ "indexed": false,
1852
+ "internalType": "address",
1853
+ "name": "resolvedBy",
1854
+ "type": "address"
1855
+ }
1856
+ ],
1857
+ "name": "DisputeResolved",
1858
+ "type": "event"
1859
+ },
1860
+ {
1861
+ "anonymous": false,
1862
+ "inputs": [],
1863
+ "name": "EIP712DomainChanged",
1864
+ "type": "event"
1865
+ },
1866
+ {
1867
+ "anonymous": false,
1868
+ "inputs": [
1869
+ {
1870
+ "indexed": false,
1871
+ "internalType": "uint256",
1872
+ "name": "epochDurationSeconds",
1873
+ "type": "uint256"
1874
+ },
1875
+ {
1876
+ "indexed": false,
1877
+ "internalType": "uint256",
1878
+ "name": "maxEpochsToRelease",
1879
+ "type": "uint256"
1880
+ }
1881
+ ],
1882
+ "name": "EpochParametersSet",
1883
+ "type": "event"
1884
+ },
1885
+ {
1886
+ "anonymous": false,
1887
+ "inputs": [
1888
+ {
1889
+ "indexed": true,
1890
+ "internalType": "address",
1891
+ "name": "provider",
1892
+ "type": "address"
1893
+ },
1894
+ {
1895
+ "indexed": false,
1896
+ "internalType": "uint256",
1897
+ "name": "epoch",
1898
+ "type": "uint256"
1899
+ },
1900
+ {
1901
+ "indexed": false,
1902
+ "internalType": "uint256",
1903
+ "name": "amount",
1904
+ "type": "uint256"
1905
+ }
1906
+ ],
1907
+ "name": "EpochReleased",
1908
+ "type": "event"
1909
+ },
1910
+ {
1911
+ "anonymous": false,
1912
+ "inputs": [
1913
+ {
1914
+ "indexed": false,
1915
+ "internalType": "uint256",
1916
+ "name": "newFeePercent",
1917
+ "type": "uint256"
1918
+ },
1919
+ {
1920
+ "indexed": true,
1921
+ "internalType": "address",
1922
+ "name": "newFeeCollector",
1923
+ "type": "address"
1924
+ }
1925
+ ],
1926
+ "name": "FeeConfigUpdated",
1927
+ "type": "event"
1928
+ },
1929
+ {
1930
+ "anonymous": false,
1931
+ "inputs": [
1932
+ {
1933
+ "indexed": true,
1934
+ "internalType": "address",
1935
+ "name": "provider",
1936
+ "type": "address"
1937
+ },
1938
+ {
1939
+ "indexed": true,
1940
+ "internalType": "address",
1941
+ "name": "feeCollector",
1942
+ "type": "address"
1943
+ },
1944
+ {
1945
+ "indexed": false,
1946
+ "internalType": "uint256",
1947
+ "name": "feeAmount",
1948
+ "type": "uint256"
1949
+ },
1950
+ {
1951
+ "indexed": false,
1952
+ "internalType": "uint256",
1953
+ "name": "providerAmount",
1954
+ "type": "uint256"
1955
+ }
1956
+ ],
1957
+ "name": "FeesCollected",
1958
+ "type": "event"
1959
+ },
1960
+ {
1961
+ "anonymous": false,
1962
+ "inputs": [
1963
+ {
1964
+ "indexed": false,
1965
+ "internalType": "uint64",
1966
+ "name": "version",
1967
+ "type": "uint64"
1968
+ }
1969
+ ],
1970
+ "name": "Initialized",
1971
+ "type": "event"
1972
+ },
1973
+ {
1974
+ "anonymous": false,
1975
+ "inputs": [
1976
+ {
1977
+ "indexed": false,
1978
+ "internalType": "uint256",
1979
+ "name": "newMaxFacilitatorFee",
1980
+ "type": "uint256"
1981
+ }
1982
+ ],
1983
+ "name": "MaxFacilitatorFeeUpdated",
1984
+ "type": "event"
1985
+ },
1986
+ {
1987
+ "anonymous": false,
1988
+ "inputs": [
1989
+ {
1990
+ "indexed": true,
1991
+ "internalType": "address",
1992
+ "name": "provider",
1993
+ "type": "address"
1994
+ },
1995
+ {
1996
+ "indexed": false,
1997
+ "internalType": "uint256",
1998
+ "name": "amount",
1999
+ "type": "uint256"
2000
+ }
2001
+ ],
2002
+ "name": "ProviderWithdrawn",
2003
+ "type": "event"
2004
+ },
2005
+ {
2006
+ "anonymous": false,
2007
+ "inputs": [
2008
+ {
2009
+ "indexed": true,
2010
+ "internalType": "bytes32",
2011
+ "name": "requestId",
2012
+ "type": "bytes32"
2013
+ },
2014
+ {
2015
+ "indexed": true,
2016
+ "internalType": "address",
2017
+ "name": "consumer",
2018
+ "type": "address"
2019
+ },
2020
+ {
2021
+ "indexed": true,
2022
+ "internalType": "address",
2023
+ "name": "provider",
2024
+ "type": "address"
2025
+ },
2026
+ {
2027
+ "indexed": false,
2028
+ "internalType": "uint256",
2029
+ "name": "amount",
2030
+ "type": "uint256"
2031
+ },
2032
+ {
2033
+ "indexed": false,
2034
+ "internalType": "uint256",
2035
+ "name": "consumerRequestCount",
2036
+ "type": "uint256"
2037
+ },
2038
+ {
2039
+ "indexed": false,
2040
+ "internalType": "uint256",
2041
+ "name": "epoch",
2042
+ "type": "uint256"
2043
+ },
2044
+ {
2045
+ "indexed": false,
2046
+ "internalType": "address",
2047
+ "name": "tokenAddress",
2048
+ "type": "address"
2049
+ }
2050
+ ],
2051
+ "name": "RequestSettled",
2052
+ "type": "event"
2053
+ },
2054
+ {
2055
+ "anonymous": false,
2056
+ "inputs": [
2057
+ {
2058
+ "indexed": true,
2059
+ "internalType": "uint256",
2060
+ "name": "index",
2061
+ "type": "uint256"
2062
+ },
2063
+ {
2064
+ "indexed": true,
2065
+ "internalType": "address",
2066
+ "name": "consumer",
2067
+ "type": "address"
2068
+ },
2069
+ {
2070
+ "indexed": true,
2071
+ "internalType": "address",
2072
+ "name": "provider",
2073
+ "type": "address"
2074
+ },
2075
+ {
2076
+ "indexed": false,
2077
+ "internalType": "bytes32",
2078
+ "name": "requestId",
2079
+ "type": "bytes32"
2080
+ },
2081
+ {
2082
+ "indexed": false,
2083
+ "internalType": "bytes",
2084
+ "name": "reason",
2085
+ "type": "bytes"
2086
+ }
2087
+ ],
2088
+ "name": "RequestSettlementFailed",
2089
+ "type": "event"
2090
+ },
2091
+ {
2092
+ "anonymous": false,
2093
+ "inputs": [
2094
+ {
2095
+ "indexed": true,
2096
+ "internalType": "address",
2097
+ "name": "newRoleManager",
2098
+ "type": "address"
2099
+ }
2100
+ ],
2101
+ "name": "RoleManagerUpdated",
2102
+ "type": "event"
2103
+ },
2104
+ {
2105
+ "anonymous": false,
2106
+ "inputs": [
2107
+ {
2108
+ "indexed": true,
2109
+ "internalType": "address",
2110
+ "name": "implementation",
2111
+ "type": "address"
2112
+ }
2113
+ ],
2114
+ "name": "Upgraded",
2115
+ "type": "event"
2116
+ },
2117
+ {
2118
+ "anonymous": false,
2119
+ "inputs": [
2120
+ {
2121
+ "indexed": true,
2122
+ "internalType": "address",
2123
+ "name": "oldFactory",
2124
+ "type": "address"
2125
+ },
2126
+ {
2127
+ "indexed": true,
2128
+ "internalType": "address",
2129
+ "name": "newFactory",
2130
+ "type": "address"
2131
+ }
2132
+ ],
2133
+ "name": "UtilityAgentFactoryUpdated",
2134
+ "type": "event"
2135
+ },
2136
+ {
2137
+ "inputs": [],
2138
+ "name": "BASIS_POINTS",
2139
+ "outputs": [
2140
+ {
2141
+ "internalType": "uint256",
2142
+ "name": "",
2143
+ "type": "uint256"
2144
+ }
2145
+ ],
2146
+ "stateMutability": "view",
2147
+ "type": "function"
2148
+ },
2149
+ {
2150
+ "inputs": [],
2151
+ "name": "BONDING_ROLE",
2152
+ "outputs": [
2153
+ {
2154
+ "internalType": "bytes32",
2155
+ "name": "",
2156
+ "type": "bytes32"
2157
+ }
2158
+ ],
2159
+ "stateMutability": "view",
2160
+ "type": "function"
2161
+ },
2162
+ {
2163
+ "inputs": [],
2164
+ "name": "DEFAULT_ADMIN_ROLE",
2165
+ "outputs": [
2166
+ {
2167
+ "internalType": "bytes32",
2168
+ "name": "",
2169
+ "type": "bytes32"
2170
+ }
2171
+ ],
2172
+ "stateMutability": "view",
2173
+ "type": "function"
2174
+ },
2175
+ {
2176
+ "inputs": [],
2177
+ "name": "EpochDuration",
2178
+ "outputs": [
2179
+ {
2180
+ "internalType": "uint256",
2181
+ "name": "",
2182
+ "type": "uint256"
2183
+ }
2184
+ ],
2185
+ "stateMutability": "view",
2186
+ "type": "function"
2187
+ },
2188
+ {
2189
+ "inputs": [],
2190
+ "name": "EpochReleaseDelay",
2191
+ "outputs": [
2192
+ {
2193
+ "internalType": "uint256",
2194
+ "name": "",
2195
+ "type": "uint256"
2196
+ }
2197
+ ],
2198
+ "stateMutability": "view",
2199
+ "type": "function"
2200
+ },
2201
+ {
2202
+ "inputs": [],
2203
+ "name": "MAX_FEE_PERCENT",
2204
+ "outputs": [
2205
+ {
2206
+ "internalType": "uint256",
2207
+ "name": "",
2208
+ "type": "uint256"
2209
+ }
2210
+ ],
2211
+ "stateMutability": "view",
2212
+ "type": "function"
2213
+ },
2214
+ {
2215
+ "inputs": [],
2216
+ "name": "RequestExpirationTime",
2217
+ "outputs": [
2218
+ {
2219
+ "internalType": "uint256",
2220
+ "name": "",
2221
+ "type": "uint256"
2222
+ }
2223
+ ],
2224
+ "stateMutability": "view",
2225
+ "type": "function"
2226
+ },
2227
+ {
2228
+ "inputs": [],
2229
+ "name": "SETTLEMENT_POINTS",
2230
+ "outputs": [
2231
+ {
2232
+ "internalType": "uint256",
2233
+ "name": "",
2234
+ "type": "uint256"
2235
+ }
2236
+ ],
2237
+ "stateMutability": "view",
2238
+ "type": "function"
2239
+ },
2240
+ {
2241
+ "inputs": [],
2242
+ "name": "UPGRADE_INTERFACE_VERSION",
2243
+ "outputs": [
2244
+ {
2245
+ "internalType": "string",
2246
+ "name": "",
2247
+ "type": "string"
2248
+ }
2249
+ ],
2250
+ "stateMutability": "view",
2251
+ "type": "function"
2252
+ },
2253
+ {
2254
+ "inputs": [
2255
+ {
2256
+ "components": [
2257
+ {
2258
+ "components": [
2259
+ {
2260
+ "internalType": "contract IIATPWallet",
2261
+ "name": "consumer",
2262
+ "type": "address"
2263
+ },
2264
+ {
2265
+ "internalType": "contract IIATPWallet",
2266
+ "name": "provider",
2267
+ "type": "address"
2268
+ },
2269
+ {
2270
+ "internalType": "address",
2271
+ "name": "tokenAddress",
2272
+ "type": "address"
2273
+ },
2274
+ {
2275
+ "internalType": "uint256",
2276
+ "name": "amount",
2277
+ "type": "uint256"
2278
+ },
2279
+ {
2280
+ "internalType": "string",
2281
+ "name": "requestPath",
2282
+ "type": "string"
2283
+ },
2284
+ {
2285
+ "internalType": "uint256",
2286
+ "name": "consumerDeadline",
2287
+ "type": "uint256"
2288
+ },
2289
+ {
2290
+ "internalType": "uint256",
2291
+ "name": "timestamp",
2292
+ "type": "uint256"
2293
+ },
2294
+ {
2295
+ "internalType": "bytes32",
2296
+ "name": "serviceDescription",
2297
+ "type": "bytes32"
2298
+ },
2299
+ {
2300
+ "internalType": "bytes",
2301
+ "name": "outputHash",
2302
+ "type": "bytes"
2303
+ },
2304
+ {
2305
+ "internalType": "uint256",
2306
+ "name": "facilitatorFeePercent",
2307
+ "type": "uint256"
2308
+ }
2309
+ ],
2310
+ "internalType": "struct IIATPSettlementLayer.SettlementRequestData",
2311
+ "name": "requestData",
2312
+ "type": "tuple"
2313
+ },
2314
+ {
2315
+ "internalType": "bytes",
2316
+ "name": "consumerSignature",
2317
+ "type": "bytes"
2318
+ },
2319
+ {
2320
+ "internalType": "bytes",
2321
+ "name": "providerSignature",
2322
+ "type": "bytes"
2323
+ }
2324
+ ],
2325
+ "internalType": "struct IIATPSettlementLayer.SettlementRequest",
2326
+ "name": "req",
2327
+ "type": "tuple"
2328
+ }
2329
+ ],
2330
+ "name": "_settleRequest",
2331
+ "outputs": [],
2332
+ "stateMutability": "nonpayable",
2333
+ "type": "function"
2334
+ },
2335
+ {
2336
+ "inputs": [
2337
+ {
2338
+ "internalType": "uint256",
2339
+ "name": "epoch",
2340
+ "type": "uint256"
2341
+ }
2342
+ ],
2343
+ "name": "canReleaseEpoch",
2344
+ "outputs": [
2345
+ {
2346
+ "internalType": "bool",
2347
+ "name": "",
2348
+ "type": "bool"
2349
+ }
2350
+ ],
2351
+ "stateMutability": "view",
2352
+ "type": "function"
2353
+ },
2354
+ {
2355
+ "inputs": [
2356
+ {
2357
+ "internalType": "address",
2358
+ "name": "token",
2359
+ "type": "address"
2360
+ }
2361
+ ],
2362
+ "name": "collectFees",
2363
+ "outputs": [],
2364
+ "stateMutability": "nonpayable",
2365
+ "type": "function"
2366
+ },
2367
+ {
2368
+ "inputs": [
2369
+ {
2370
+ "internalType": "address",
2371
+ "name": "",
2372
+ "type": "address"
2373
+ }
2374
+ ],
2375
+ "name": "consumerReputations",
2376
+ "outputs": [
2377
+ {
2378
+ "internalType": "uint256",
2379
+ "name": "completed",
2380
+ "type": "uint256"
2381
+ },
2382
+ {
2383
+ "internalType": "uint256",
2384
+ "name": "failed",
2385
+ "type": "uint256"
2386
+ },
2387
+ {
2388
+ "internalType": "uint256",
2389
+ "name": "faults",
2390
+ "type": "uint256"
2391
+ },
2392
+ {
2393
+ "internalType": "int256",
2394
+ "name": "score",
2395
+ "type": "int256"
2396
+ },
2397
+ {
2398
+ "internalType": "uint256",
2399
+ "name": "firstSettlementAt",
2400
+ "type": "uint256"
2401
+ }
2402
+ ],
2403
+ "stateMutability": "view",
2404
+ "type": "function"
2405
+ },
2406
+ {
2407
+ "inputs": [
2408
+ {
2409
+ "internalType": "address",
2410
+ "name": "",
2411
+ "type": "address"
2412
+ }
2413
+ ],
2414
+ "name": "consumerRequestCounts",
2415
+ "outputs": [
2416
+ {
2417
+ "internalType": "uint256",
2418
+ "name": "",
2419
+ "type": "uint256"
2420
+ }
2421
+ ],
2422
+ "stateMutability": "view",
2423
+ "type": "function"
2424
+ },
2425
+ {
2426
+ "inputs": [
2427
+ {
2428
+ "internalType": "bytes32",
2429
+ "name": "requestId",
2430
+ "type": "bytes32"
2431
+ },
2432
+ {
2433
+ "internalType": "string",
2434
+ "name": "reason",
2435
+ "type": "string"
2436
+ }
2437
+ ],
2438
+ "name": "disputeRequest",
2439
+ "outputs": [],
2440
+ "stateMutability": "nonpayable",
2441
+ "type": "function"
2442
+ },
2443
+ {
2444
+ "inputs": [
2445
+ {
2446
+ "internalType": "bytes32",
2447
+ "name": "",
2448
+ "type": "bytes32"
2449
+ }
2450
+ ],
2451
+ "name": "disputes",
2452
+ "outputs": [
2453
+ {
2454
+ "internalType": "bytes32",
2455
+ "name": "requestId",
2456
+ "type": "bytes32"
2457
+ },
2458
+ {
2459
+ "internalType": "address",
2460
+ "name": "consumer",
2461
+ "type": "address"
2462
+ },
2463
+ {
2464
+ "internalType": "address",
2465
+ "name": "provider",
2466
+ "type": "address"
2467
+ },
2468
+ {
2469
+ "internalType": "uint256",
2470
+ "name": "amount",
2471
+ "type": "uint256"
2472
+ },
2473
+ {
2474
+ "internalType": "uint256",
2475
+ "name": "epoch",
2476
+ "type": "uint256"
2477
+ },
2478
+ {
2479
+ "internalType": "string",
2480
+ "name": "reason",
2481
+ "type": "string"
2482
+ },
2483
+ {
2484
+ "internalType": "uint256",
2485
+ "name": "filedAt",
2486
+ "type": "uint256"
2487
+ },
2488
+ {
2489
+ "internalType": "bool",
2490
+ "name": "resolved",
2491
+ "type": "bool"
2492
+ }
2493
+ ],
2494
+ "stateMutability": "view",
2495
+ "type": "function"
2496
+ },
2497
+ {
2498
+ "inputs": [],
2499
+ "name": "eip712Domain",
2500
+ "outputs": [
2501
+ {
2502
+ "internalType": "bytes1",
2503
+ "name": "fields",
2504
+ "type": "bytes1"
2505
+ },
2506
+ {
2507
+ "internalType": "string",
2508
+ "name": "name",
2509
+ "type": "string"
2510
+ },
2511
+ {
2512
+ "internalType": "string",
2513
+ "name": "version",
2514
+ "type": "string"
2515
+ },
2516
+ {
2517
+ "internalType": "uint256",
2518
+ "name": "chainId",
2519
+ "type": "uint256"
2520
+ },
2521
+ {
2522
+ "internalType": "address",
2523
+ "name": "verifyingContract",
2524
+ "type": "address"
2525
+ },
2526
+ {
2527
+ "internalType": "bytes32",
2528
+ "name": "salt",
2529
+ "type": "bytes32"
2530
+ },
2531
+ {
2532
+ "internalType": "uint256[]",
2533
+ "name": "extensions",
2534
+ "type": "uint256[]"
2535
+ }
2536
+ ],
2537
+ "stateMutability": "view",
2538
+ "type": "function"
2539
+ },
2540
+ {
2541
+ "inputs": [
2542
+ {
2543
+ "internalType": "address",
2544
+ "name": "",
2545
+ "type": "address"
2546
+ }
2547
+ ],
2548
+ "name": "feeBalances",
2549
+ "outputs": [
2550
+ {
2551
+ "internalType": "uint256",
2552
+ "name": "",
2553
+ "type": "uint256"
2554
+ }
2555
+ ],
2556
+ "stateMutability": "view",
2557
+ "type": "function"
2558
+ },
2559
+ {
2560
+ "inputs": [],
2561
+ "name": "feeCollector",
2562
+ "outputs": [
2563
+ {
2564
+ "internalType": "address",
2565
+ "name": "",
2566
+ "type": "address"
2567
+ }
2568
+ ],
2569
+ "stateMutability": "view",
2570
+ "type": "function"
2571
+ },
2572
+ {
2573
+ "inputs": [],
2574
+ "name": "getCurrentEpoch",
2575
+ "outputs": [
2576
+ {
2577
+ "internalType": "uint256",
2578
+ "name": "",
2579
+ "type": "uint256"
2580
+ }
2581
+ ],
2582
+ "stateMutability": "view",
2583
+ "type": "function"
2584
+ },
2585
+ {
2586
+ "inputs": [
2587
+ {
2588
+ "internalType": "address",
2589
+ "name": "provider",
2590
+ "type": "address"
2591
+ },
2592
+ {
2593
+ "internalType": "uint256",
2594
+ "name": "epoch",
2595
+ "type": "uint256"
2596
+ },
2597
+ {
2598
+ "internalType": "address",
2599
+ "name": "token",
2600
+ "type": "address"
2601
+ }
2602
+ ],
2603
+ "name": "getDisputeInProgressAmount",
2604
+ "outputs": [
2605
+ {
2606
+ "internalType": "uint256",
2607
+ "name": "",
2608
+ "type": "uint256"
2609
+ }
2610
+ ],
2611
+ "stateMutability": "view",
2612
+ "type": "function"
2613
+ },
2614
+ {
2615
+ "inputs": [
2616
+ {
2617
+ "internalType": "address",
2618
+ "name": "provider",
2619
+ "type": "address"
2620
+ },
2621
+ {
2622
+ "internalType": "uint256",
2623
+ "name": "epoch",
2624
+ "type": "uint256"
2625
+ },
2626
+ {
2627
+ "internalType": "address",
2628
+ "name": "token",
2629
+ "type": "address"
2630
+ }
2631
+ ],
2632
+ "name": "getEpochBalance",
2633
+ "outputs": [
2634
+ {
2635
+ "components": [
2636
+ {
2637
+ "internalType": "uint256",
2638
+ "name": "balance",
2639
+ "type": "uint256"
2640
+ },
2641
+ {
2642
+ "internalType": "uint256",
2643
+ "name": "disputeInProgressBalance",
2644
+ "type": "uint256"
2645
+ },
2646
+ {
2647
+ "internalType": "bool",
2648
+ "name": "isWithdrawn",
2649
+ "type": "bool"
2650
+ }
2651
+ ],
2652
+ "internalType": "struct IIATPSettlementLayer.EpochBalance",
2653
+ "name": "",
2654
+ "type": "tuple"
2655
+ }
2656
+ ],
2657
+ "stateMutability": "view",
2658
+ "type": "function"
2659
+ },
2660
+ {
2661
+ "inputs": [
2662
+ {
2663
+ "internalType": "address",
2664
+ "name": "token",
2665
+ "type": "address"
2666
+ }
2667
+ ],
2668
+ "name": "getFeeBalance",
2669
+ "outputs": [
2670
+ {
2671
+ "internalType": "uint256",
2672
+ "name": "",
2673
+ "type": "uint256"
2674
+ }
2675
+ ],
2676
+ "stateMutability": "view",
2677
+ "type": "function"
2678
+ },
2679
+ {
2680
+ "inputs": [
2681
+ {
2682
+ "internalType": "address",
2683
+ "name": "provider",
2684
+ "type": "address"
2685
+ },
2686
+ {
2687
+ "internalType": "address",
2688
+ "name": "token",
2689
+ "type": "address"
2690
+ }
2691
+ ],
2692
+ "name": "getLockedBalanceForProvider",
2693
+ "outputs": [
2694
+ {
2695
+ "internalType": "uint256",
2696
+ "name": "",
2697
+ "type": "uint256"
2698
+ }
2699
+ ],
2700
+ "stateMutability": "view",
2701
+ "type": "function"
2702
+ },
2703
+ {
2704
+ "inputs": [
2705
+ {
2706
+ "internalType": "address",
2707
+ "name": "provider",
2708
+ "type": "address"
2709
+ }
2710
+ ],
2711
+ "name": "getProviderReputation",
2712
+ "outputs": [
2713
+ {
2714
+ "components": [
2715
+ {
2716
+ "internalType": "uint256",
2717
+ "name": "completed",
2718
+ "type": "uint256"
2719
+ },
2720
+ {
2721
+ "internalType": "uint256",
2722
+ "name": "failed",
2723
+ "type": "uint256"
2724
+ },
2725
+ {
2726
+ "internalType": "uint256",
2727
+ "name": "faults",
2728
+ "type": "uint256"
2729
+ },
2730
+ {
2731
+ "internalType": "int256",
2732
+ "name": "score",
2733
+ "type": "int256"
2734
+ },
2735
+ {
2736
+ "internalType": "uint256",
2737
+ "name": "firstSettlementAt",
2738
+ "type": "uint256"
2739
+ }
2740
+ ],
2741
+ "internalType": "struct IIATPSettlementLayer.Reputation",
2742
+ "name": "",
2743
+ "type": "tuple"
2744
+ }
2745
+ ],
2746
+ "stateMutability": "view",
2747
+ "type": "function"
2748
+ },
2749
+ {
2750
+ "inputs": [
2751
+ {
2752
+ "internalType": "address",
2753
+ "name": "provider",
2754
+ "type": "address"
2755
+ }
2756
+ ],
2757
+ "name": "getProviderReputationScore",
2758
+ "outputs": [
2759
+ {
2760
+ "internalType": "int256",
2761
+ "name": "",
2762
+ "type": "int256"
2763
+ }
2764
+ ],
2765
+ "stateMutability": "view",
2766
+ "type": "function"
2767
+ },
2768
+ {
2769
+ "inputs": [
2770
+ {
2771
+ "internalType": "address",
2772
+ "name": "provider",
2773
+ "type": "address"
2774
+ },
2775
+ {
2776
+ "internalType": "address",
2777
+ "name": "token",
2778
+ "type": "address"
2779
+ }
2780
+ ],
2781
+ "name": "getUnlockedBalanceForProvider",
2782
+ "outputs": [
2783
+ {
2784
+ "internalType": "uint256",
2785
+ "name": "",
2786
+ "type": "uint256"
2787
+ }
2788
+ ],
2789
+ "stateMutability": "view",
2790
+ "type": "function"
2791
+ },
2792
+ {
2793
+ "inputs": [
2794
+ {
2795
+ "internalType": "address",
2796
+ "name": "_roleManager",
2797
+ "type": "address"
2798
+ },
2799
+ {
2800
+ "internalType": "address",
2801
+ "name": "_feeCollector",
2802
+ "type": "address"
2803
+ }
2804
+ ],
2805
+ "name": "initialize",
2806
+ "outputs": [],
2807
+ "stateMutability": "nonpayable",
2808
+ "type": "function"
2809
+ },
2810
+ {
2811
+ "inputs": [
2812
+ {
2813
+ "internalType": "address",
2814
+ "name": "account",
2815
+ "type": "address"
2816
+ }
2817
+ ],
2818
+ "name": "isMaintainer",
2819
+ "outputs": [
2820
+ {
2821
+ "internalType": "bool",
2822
+ "name": "",
2823
+ "type": "bool"
2824
+ }
2825
+ ],
2826
+ "stateMutability": "view",
2827
+ "type": "function"
2828
+ },
2829
+ {
2830
+ "inputs": [
2831
+ {
2832
+ "internalType": "address",
2833
+ "name": "",
2834
+ "type": "address"
2835
+ },
2836
+ {
2837
+ "internalType": "address",
2838
+ "name": "",
2839
+ "type": "address"
2840
+ }
2841
+ ],
2842
+ "name": "lastWithdrawnEpoch",
2843
+ "outputs": [
2844
+ {
2845
+ "internalType": "uint256",
2846
+ "name": "",
2847
+ "type": "uint256"
2848
+ }
2849
+ ],
2850
+ "stateMutability": "view",
2851
+ "type": "function"
2852
+ },
2853
+ {
2854
+ "inputs": [],
2855
+ "name": "maxFacilitatorFee",
2856
+ "outputs": [
2857
+ {
2858
+ "internalType": "uint256",
2859
+ "name": "",
2860
+ "type": "uint256"
2861
+ }
2862
+ ],
2863
+ "stateMutability": "view",
2864
+ "type": "function"
2865
+ },
2866
+ {
2867
+ "inputs": [],
2868
+ "name": "protocolFee",
2869
+ "outputs": [
2870
+ {
2871
+ "internalType": "uint256",
2872
+ "name": "",
2873
+ "type": "uint256"
2874
+ }
2875
+ ],
2876
+ "stateMutability": "view",
2877
+ "type": "function"
2878
+ },
2879
+ {
2880
+ "inputs": [
2881
+ {
2882
+ "internalType": "address",
2883
+ "name": "",
2884
+ "type": "address"
2885
+ },
2886
+ {
2887
+ "internalType": "uint256",
2888
+ "name": "",
2889
+ "type": "uint256"
2890
+ },
2891
+ {
2892
+ "internalType": "address",
2893
+ "name": "",
2894
+ "type": "address"
2895
+ }
2896
+ ],
2897
+ "name": "providerEpochBalances",
2898
+ "outputs": [
2899
+ {
2900
+ "internalType": "uint256",
2901
+ "name": "balance",
2902
+ "type": "uint256"
2903
+ },
2904
+ {
2905
+ "internalType": "uint256",
2906
+ "name": "disputeInProgressBalance",
2907
+ "type": "uint256"
2908
+ },
2909
+ {
2910
+ "internalType": "bool",
2911
+ "name": "isWithdrawn",
2912
+ "type": "bool"
2913
+ }
2914
+ ],
2915
+ "stateMutability": "view",
2916
+ "type": "function"
2917
+ },
2918
+ {
2919
+ "inputs": [
2920
+ {
2921
+ "internalType": "address",
2922
+ "name": "",
2923
+ "type": "address"
2924
+ }
2925
+ ],
2926
+ "name": "providerReputations",
2927
+ "outputs": [
2928
+ {
2929
+ "internalType": "uint256",
2930
+ "name": "completed",
2931
+ "type": "uint256"
2932
+ },
2933
+ {
2934
+ "internalType": "uint256",
2935
+ "name": "failed",
2936
+ "type": "uint256"
2937
+ },
2938
+ {
2939
+ "internalType": "uint256",
2940
+ "name": "faults",
2941
+ "type": "uint256"
2942
+ },
2943
+ {
2944
+ "internalType": "int256",
2945
+ "name": "score",
2946
+ "type": "int256"
2947
+ },
2948
+ {
2949
+ "internalType": "uint256",
2950
+ "name": "firstSettlementAt",
2951
+ "type": "uint256"
2952
+ }
2953
+ ],
2954
+ "stateMutability": "view",
2955
+ "type": "function"
2956
+ },
2957
+ {
2958
+ "inputs": [],
2959
+ "name": "proxiableUUID",
2960
+ "outputs": [
2961
+ {
2962
+ "internalType": "bytes32",
2963
+ "name": "",
2964
+ "type": "bytes32"
2965
+ }
2966
+ ],
2967
+ "stateMutability": "view",
2968
+ "type": "function"
2969
+ },
2970
+ {
2971
+ "inputs": [
2972
+ {
2973
+ "internalType": "bytes32",
2974
+ "name": "requestId",
2975
+ "type": "bytes32"
2976
+ },
2977
+ {
2978
+ "internalType": "bool",
2979
+ "name": "consumerWon",
2980
+ "type": "bool"
2981
+ }
2982
+ ],
2983
+ "name": "resolveDispute",
2984
+ "outputs": [],
2985
+ "stateMutability": "nonpayable",
2986
+ "type": "function"
2987
+ },
2988
+ {
2989
+ "inputs": [],
2990
+ "name": "roleManager",
2991
+ "outputs": [
2992
+ {
2993
+ "internalType": "contract IRoleManager",
2994
+ "name": "",
2995
+ "type": "address"
2996
+ }
2997
+ ],
2998
+ "stateMutability": "view",
2999
+ "type": "function"
3000
+ },
3001
+ {
3002
+ "inputs": [
3003
+ {
3004
+ "internalType": "uint256",
3005
+ "name": "_epochDuration",
3006
+ "type": "uint256"
3007
+ },
3008
+ {
3009
+ "internalType": "uint256",
3010
+ "name": "_epochReleaseDelay",
3011
+ "type": "uint256"
3012
+ }
3013
+ ],
3014
+ "name": "setEpochParameters",
3015
+ "outputs": [],
3016
+ "stateMutability": "nonpayable",
3017
+ "type": "function"
3018
+ },
3019
+ {
3020
+ "inputs": [
3021
+ {
3022
+ "internalType": "uint256",
3023
+ "name": "_protocolFee",
3024
+ "type": "uint256"
3025
+ },
3026
+ {
3027
+ "internalType": "address",
3028
+ "name": "_feeCollector",
3029
+ "type": "address"
3030
+ }
3031
+ ],
3032
+ "name": "setFeeConfig",
3033
+ "outputs": [],
3034
+ "stateMutability": "nonpayable",
3035
+ "type": "function"
3036
+ },
3037
+ {
3038
+ "inputs": [
3039
+ {
3040
+ "internalType": "uint256",
3041
+ "name": "_maxFacilitatorFee",
3042
+ "type": "uint256"
3043
+ }
3044
+ ],
3045
+ "name": "setMaxFacilitatorFee",
3046
+ "outputs": [],
3047
+ "stateMutability": "nonpayable",
3048
+ "type": "function"
3049
+ },
3050
+ {
3051
+ "inputs": [
3052
+ {
3053
+ "internalType": "uint256",
3054
+ "name": "_requestExpirationTime",
3055
+ "type": "uint256"
3056
+ }
3057
+ ],
3058
+ "name": "setRequestExpirationTime",
3059
+ "outputs": [],
3060
+ "stateMutability": "nonpayable",
3061
+ "type": "function"
3062
+ },
3063
+ {
3064
+ "inputs": [
3065
+ {
3066
+ "components": [
3067
+ {
3068
+ "components": [
3069
+ {
3070
+ "internalType": "contract IIATPWallet",
3071
+ "name": "consumer",
3072
+ "type": "address"
3073
+ },
3074
+ {
3075
+ "internalType": "contract IIATPWallet",
3076
+ "name": "provider",
3077
+ "type": "address"
3078
+ },
3079
+ {
3080
+ "internalType": "address",
3081
+ "name": "tokenAddress",
3082
+ "type": "address"
3083
+ },
3084
+ {
3085
+ "internalType": "uint256",
3086
+ "name": "amount",
3087
+ "type": "uint256"
3088
+ },
3089
+ {
3090
+ "internalType": "string",
3091
+ "name": "requestPath",
3092
+ "type": "string"
3093
+ },
3094
+ {
3095
+ "internalType": "uint256",
3096
+ "name": "consumerDeadline",
3097
+ "type": "uint256"
3098
+ },
3099
+ {
3100
+ "internalType": "uint256",
3101
+ "name": "timestamp",
3102
+ "type": "uint256"
3103
+ },
3104
+ {
3105
+ "internalType": "bytes32",
3106
+ "name": "serviceDescription",
3107
+ "type": "bytes32"
3108
+ },
3109
+ {
3110
+ "internalType": "bytes",
3111
+ "name": "outputHash",
3112
+ "type": "bytes"
3113
+ },
3114
+ {
3115
+ "internalType": "uint256",
3116
+ "name": "facilitatorFeePercent",
3117
+ "type": "uint256"
3118
+ }
3119
+ ],
3120
+ "internalType": "struct IIATPSettlementLayer.SettlementRequestData",
3121
+ "name": "requestData",
3122
+ "type": "tuple"
3123
+ },
3124
+ {
3125
+ "internalType": "bytes",
3126
+ "name": "consumerSignature",
3127
+ "type": "bytes"
3128
+ },
3129
+ {
3130
+ "internalType": "bytes",
3131
+ "name": "providerSignature",
3132
+ "type": "bytes"
3133
+ }
3134
+ ],
3135
+ "internalType": "struct IIATPSettlementLayer.SettlementRequest",
3136
+ "name": "req",
3137
+ "type": "tuple"
3138
+ }
3139
+ ],
3140
+ "name": "settleRequest",
3141
+ "outputs": [],
3142
+ "stateMutability": "nonpayable",
3143
+ "type": "function"
3144
+ },
3145
+ {
3146
+ "inputs": [
3147
+ {
3148
+ "components": [
3149
+ {
3150
+ "components": [
3151
+ {
3152
+ "internalType": "contract IIATPWallet",
3153
+ "name": "consumer",
3154
+ "type": "address"
3155
+ },
3156
+ {
3157
+ "internalType": "contract IIATPWallet",
3158
+ "name": "provider",
3159
+ "type": "address"
3160
+ },
3161
+ {
3162
+ "internalType": "address",
3163
+ "name": "tokenAddress",
3164
+ "type": "address"
3165
+ },
3166
+ {
3167
+ "internalType": "uint256",
3168
+ "name": "amount",
3169
+ "type": "uint256"
3170
+ },
3171
+ {
3172
+ "internalType": "string",
3173
+ "name": "requestPath",
3174
+ "type": "string"
3175
+ },
3176
+ {
3177
+ "internalType": "uint256",
3178
+ "name": "consumerDeadline",
3179
+ "type": "uint256"
3180
+ },
3181
+ {
3182
+ "internalType": "uint256",
3183
+ "name": "timestamp",
3184
+ "type": "uint256"
3185
+ },
3186
+ {
3187
+ "internalType": "bytes32",
3188
+ "name": "serviceDescription",
3189
+ "type": "bytes32"
3190
+ },
3191
+ {
3192
+ "internalType": "bytes",
3193
+ "name": "outputHash",
3194
+ "type": "bytes"
3195
+ },
3196
+ {
3197
+ "internalType": "uint256",
3198
+ "name": "facilitatorFeePercent",
3199
+ "type": "uint256"
3200
+ }
3201
+ ],
3202
+ "internalType": "struct IIATPSettlementLayer.SettlementRequestData",
3203
+ "name": "requestData",
3204
+ "type": "tuple"
3205
+ },
3206
+ {
3207
+ "internalType": "bytes",
3208
+ "name": "consumerSignature",
3209
+ "type": "bytes"
3210
+ },
3211
+ {
3212
+ "internalType": "bytes",
3213
+ "name": "providerSignature",
3214
+ "type": "bytes"
3215
+ }
3216
+ ],
3217
+ "internalType": "struct IIATPSettlementLayer.SettlementRequest[]",
3218
+ "name": "serviceRequests",
3219
+ "type": "tuple[]"
3220
+ }
3221
+ ],
3222
+ "name": "settleRequests",
3223
+ "outputs": [
3224
+ {
3225
+ "internalType": "uint256[]",
3226
+ "name": "failedIndices",
3227
+ "type": "uint256[]"
3228
+ }
3229
+ ],
3230
+ "stateMutability": "nonpayable",
3231
+ "type": "function"
3232
+ },
3233
+ {
3234
+ "inputs": [
3235
+ {
3236
+ "internalType": "bytes32",
3237
+ "name": "",
3238
+ "type": "bytes32"
3239
+ }
3240
+ ],
3241
+ "name": "settlements",
3242
+ "outputs": [
3243
+ {
3244
+ "components": [
3245
+ {
3246
+ "components": [
3247
+ {
3248
+ "internalType": "contract IIATPWallet",
3249
+ "name": "consumer",
3250
+ "type": "address"
3251
+ },
3252
+ {
3253
+ "internalType": "contract IIATPWallet",
3254
+ "name": "provider",
3255
+ "type": "address"
3256
+ },
3257
+ {
3258
+ "internalType": "address",
3259
+ "name": "tokenAddress",
3260
+ "type": "address"
3261
+ },
3262
+ {
3263
+ "internalType": "uint256",
3264
+ "name": "amount",
3265
+ "type": "uint256"
3266
+ },
3267
+ {
3268
+ "internalType": "string",
3269
+ "name": "requestPath",
3270
+ "type": "string"
3271
+ },
3272
+ {
3273
+ "internalType": "uint256",
3274
+ "name": "consumerDeadline",
3275
+ "type": "uint256"
3276
+ },
3277
+ {
3278
+ "internalType": "uint256",
3279
+ "name": "timestamp",
3280
+ "type": "uint256"
3281
+ },
3282
+ {
3283
+ "internalType": "bytes32",
3284
+ "name": "serviceDescription",
3285
+ "type": "bytes32"
3286
+ },
3287
+ {
3288
+ "internalType": "bytes",
3289
+ "name": "outputHash",
3290
+ "type": "bytes"
3291
+ },
3292
+ {
3293
+ "internalType": "uint256",
3294
+ "name": "facilitatorFeePercent",
3295
+ "type": "uint256"
3296
+ }
3297
+ ],
3298
+ "internalType": "struct IIATPSettlementLayer.SettlementRequestData",
3299
+ "name": "requestData",
3300
+ "type": "tuple"
3301
+ },
3302
+ {
3303
+ "internalType": "bytes",
3304
+ "name": "consumerSignature",
3305
+ "type": "bytes"
3306
+ },
3307
+ {
3308
+ "internalType": "bytes",
3309
+ "name": "providerSignature",
3310
+ "type": "bytes"
3311
+ }
3312
+ ],
3313
+ "internalType": "struct IIATPSettlementLayer.SettlementRequest",
3314
+ "name": "settlementRequest",
3315
+ "type": "tuple"
3316
+ },
3317
+ {
3318
+ "internalType": "uint256",
3319
+ "name": "epoch",
3320
+ "type": "uint256"
3321
+ },
3322
+ {
3323
+ "internalType": "enum IIATPSettlementLayer.RequestStatus",
3324
+ "name": "status",
3325
+ "type": "uint8"
3326
+ }
3327
+ ],
3328
+ "stateMutability": "view",
3329
+ "type": "function"
3330
+ },
3331
+ {
3332
+ "inputs": [
3333
+ {
3334
+ "internalType": "address",
3335
+ "name": "newImplementation",
3336
+ "type": "address"
3337
+ },
3338
+ {
3339
+ "internalType": "bytes",
3340
+ "name": "data",
3341
+ "type": "bytes"
3342
+ }
3343
+ ],
3344
+ "name": "upgradeToAndCall",
3345
+ "outputs": [],
3346
+ "stateMutability": "payable",
3347
+ "type": "function"
3348
+ },
3349
+ {
3350
+ "inputs": [
3351
+ {
3352
+ "internalType": "bytes32",
3353
+ "name": "",
3354
+ "type": "bytes32"
3355
+ }
3356
+ ],
3357
+ "name": "usedSignatures",
3358
+ "outputs": [
3359
+ {
3360
+ "internalType": "bool",
3361
+ "name": "",
3362
+ "type": "bool"
3363
+ }
3364
+ ],
3365
+ "stateMutability": "view",
3366
+ "type": "function"
3367
+ },
3368
+ {
3369
+ "inputs": [
3370
+ {
3371
+ "internalType": "address",
3372
+ "name": "token",
3373
+ "type": "address"
3374
+ }
3375
+ ],
3376
+ "name": "withdrawAllAvailableEpochs",
3377
+ "outputs": [],
3378
+ "stateMutability": "nonpayable",
3379
+ "type": "function"
3380
+ },
3381
+ {
3382
+ "inputs": [
3383
+ {
3384
+ "internalType": "uint256",
3385
+ "name": "epoch",
3386
+ "type": "uint256"
3387
+ },
3388
+ {
3389
+ "internalType": "address",
3390
+ "name": "token",
3391
+ "type": "address"
3392
+ }
3393
+ ],
3394
+ "name": "withdrawEpochToken",
3395
+ "outputs": [],
3396
+ "stateMutability": "nonpayable",
3397
+ "type": "function"
3398
+ }
3399
+ ],
3400
+ "IATPWalletFactory": [
3401
+ {
3402
+ "inputs": [],
3403
+ "stateMutability": "nonpayable",
3404
+ "type": "constructor"
3405
+ },
3406
+ {
3407
+ "inputs": [
3408
+ {
3409
+ "internalType": "address",
3410
+ "name": "target",
3411
+ "type": "address"
3412
+ }
3413
+ ],
3414
+ "name": "AddressEmptyCode",
3415
+ "type": "error"
3416
+ },
3417
+ {
3418
+ "inputs": [
3419
+ {
3420
+ "internalType": "address",
3421
+ "name": "implementation",
3422
+ "type": "address"
3423
+ }
3424
+ ],
3425
+ "name": "ERC1967InvalidImplementation",
3426
+ "type": "error"
3427
+ },
3428
+ {
3429
+ "inputs": [],
3430
+ "name": "ERC1967NonPayable",
3431
+ "type": "error"
3432
+ },
3433
+ {
3434
+ "inputs": [],
3435
+ "name": "FailedCall",
3436
+ "type": "error"
3437
+ },
3438
+ {
3439
+ "inputs": [],
3440
+ "name": "InvalidInitialization",
3441
+ "type": "error"
3442
+ },
3443
+ {
3444
+ "inputs": [],
3445
+ "name": "InvalidParameters",
3446
+ "type": "error"
3447
+ },
3448
+ {
3449
+ "inputs": [],
3450
+ "name": "NotInitializing",
3451
+ "type": "error"
3452
+ },
3453
+ {
3454
+ "inputs": [],
3455
+ "name": "UUPSUnauthorizedCallContext",
3456
+ "type": "error"
3457
+ },
3458
+ {
3459
+ "inputs": [
3460
+ {
3461
+ "internalType": "bytes32",
3462
+ "name": "slot",
3463
+ "type": "bytes32"
3464
+ }
3465
+ ],
3466
+ "name": "UUPSUnsupportedProxiableUUID",
3467
+ "type": "error"
3468
+ },
3469
+ {
3470
+ "inputs": [],
3471
+ "name": "ZeroAddress",
3472
+ "type": "error"
3473
+ },
3474
+ {
3475
+ "anonymous": false,
3476
+ "inputs": [
3477
+ {
3478
+ "indexed": false,
3479
+ "internalType": "uint64",
3480
+ "name": "version",
3481
+ "type": "uint64"
3482
+ }
3483
+ ],
3484
+ "name": "Initialized",
3485
+ "type": "event"
3486
+ },
3487
+ {
3488
+ "anonymous": false,
3489
+ "inputs": [
3490
+ {
3491
+ "indexed": true,
3492
+ "internalType": "address",
3493
+ "name": "newRoleManager",
3494
+ "type": "address"
3495
+ }
3496
+ ],
3497
+ "name": "RoleManagerUpdated",
3498
+ "type": "event"
3499
+ },
3500
+ {
3501
+ "anonymous": false,
3502
+ "inputs": [
3503
+ {
3504
+ "indexed": true,
3505
+ "internalType": "address",
3506
+ "name": "newSettlementLayer",
3507
+ "type": "address"
3508
+ }
3509
+ ],
3510
+ "name": "SettlementLayerUpdated",
3511
+ "type": "event"
3512
+ },
3513
+ {
3514
+ "anonymous": false,
3515
+ "inputs": [
3516
+ {
3517
+ "indexed": true,
3518
+ "internalType": "address",
3519
+ "name": "implementation",
3520
+ "type": "address"
3521
+ }
3522
+ ],
3523
+ "name": "Upgraded",
3524
+ "type": "event"
3525
+ },
3526
+ {
3527
+ "anonymous": false,
3528
+ "inputs": [
3529
+ {
3530
+ "indexed": true,
3531
+ "internalType": "address",
3532
+ "name": "wallet",
3533
+ "type": "address"
3534
+ },
3535
+ {
3536
+ "indexed": true,
3537
+ "internalType": "address",
3538
+ "name": "owner",
3539
+ "type": "address"
3540
+ },
3541
+ {
3542
+ "indexed": true,
3543
+ "internalType": "address",
3544
+ "name": "operatorAddress",
3545
+ "type": "address"
3546
+ },
3547
+ {
3548
+ "indexed": false,
3549
+ "internalType": "address",
3550
+ "name": "settlementLayer",
3551
+ "type": "address"
3552
+ }
3553
+ ],
3554
+ "name": "WalletCreated",
3555
+ "type": "event"
3556
+ },
3557
+ {
3558
+ "anonymous": false,
3559
+ "inputs": [
3560
+ {
3561
+ "indexed": true,
3562
+ "internalType": "address",
3563
+ "name": "newImplementation",
3564
+ "type": "address"
3565
+ }
3566
+ ],
3567
+ "name": "WalletImplementationUpdated",
3568
+ "type": "event"
3569
+ },
3570
+ {
3571
+ "anonymous": false,
3572
+ "inputs": [
3573
+ {
3574
+ "indexed": true,
3575
+ "internalType": "address",
3576
+ "name": "newRoleManager",
3577
+ "type": "address"
3578
+ }
3579
+ ],
3580
+ "name": "WalletRoleManagerUpdated",
3581
+ "type": "event"
3582
+ },
3583
+ {
3584
+ "inputs": [],
3585
+ "name": "BONDING_ROLE",
3586
+ "outputs": [
3587
+ {
3588
+ "internalType": "bytes32",
3589
+ "name": "",
3590
+ "type": "bytes32"
3591
+ }
3592
+ ],
3593
+ "stateMutability": "view",
3594
+ "type": "function"
3595
+ },
3596
+ {
3597
+ "inputs": [],
3598
+ "name": "DEFAULT_ADMIN_ROLE",
3599
+ "outputs": [
3600
+ {
3601
+ "internalType": "bytes32",
3602
+ "name": "",
3603
+ "type": "bytes32"
3604
+ }
3605
+ ],
3606
+ "stateMutability": "view",
3607
+ "type": "function"
3608
+ },
3609
+ {
3610
+ "inputs": [],
3611
+ "name": "UPGRADE_INTERFACE_VERSION",
3612
+ "outputs": [
3613
+ {
3614
+ "internalType": "string",
3615
+ "name": "",
3616
+ "type": "string"
3617
+ }
3618
+ ],
3619
+ "stateMutability": "view",
3620
+ "type": "function"
3621
+ },
3622
+ {
3623
+ "inputs": [
3624
+ {
3625
+ "internalType": "uint256",
3626
+ "name": "",
3627
+ "type": "uint256"
3628
+ }
3629
+ ],
3630
+ "name": "allWallets",
3631
+ "outputs": [
3632
+ {
3633
+ "internalType": "address",
3634
+ "name": "",
3635
+ "type": "address"
3636
+ }
3637
+ ],
3638
+ "stateMutability": "view",
3639
+ "type": "function"
3640
+ },
3641
+ {
3642
+ "inputs": [
3643
+ {
3644
+ "internalType": "address",
3645
+ "name": "_operatorAddress",
3646
+ "type": "address"
3647
+ }
3648
+ ],
3649
+ "name": "createWallet",
3650
+ "outputs": [
3651
+ {
3652
+ "internalType": "address",
3653
+ "name": "wallet",
3654
+ "type": "address"
3655
+ }
3656
+ ],
3657
+ "stateMutability": "nonpayable",
3658
+ "type": "function"
3659
+ },
3660
+ {
3661
+ "inputs": [
3662
+ {
3663
+ "internalType": "address",
3664
+ "name": "_owner",
3665
+ "type": "address"
3666
+ },
3667
+ {
3668
+ "internalType": "address",
3669
+ "name": "_operatorAddress",
3670
+ "type": "address"
3671
+ }
3672
+ ],
3673
+ "name": "createWalletFor",
3674
+ "outputs": [
3675
+ {
3676
+ "internalType": "address",
3677
+ "name": "wallet",
3678
+ "type": "address"
3679
+ }
3680
+ ],
3681
+ "stateMutability": "nonpayable",
3682
+ "type": "function"
3683
+ },
3684
+ {
3685
+ "inputs": [
3686
+ {
3687
+ "internalType": "address",
3688
+ "name": "_operator",
3689
+ "type": "address"
3690
+ }
3691
+ ],
3692
+ "name": "getOperatorWalletCount",
3693
+ "outputs": [
3694
+ {
3695
+ "internalType": "uint256",
3696
+ "name": "",
3697
+ "type": "uint256"
3698
+ }
3699
+ ],
3700
+ "stateMutability": "view",
3701
+ "type": "function"
3702
+ },
3703
+ {
3704
+ "inputs": [
3705
+ {
3706
+ "internalType": "address",
3707
+ "name": "_owner",
3708
+ "type": "address"
3709
+ }
3710
+ ],
3711
+ "name": "getOwnerWalletCount",
3712
+ "outputs": [
3713
+ {
3714
+ "internalType": "uint256",
3715
+ "name": "",
3716
+ "type": "uint256"
3717
+ }
3718
+ ],
3719
+ "stateMutability": "view",
3720
+ "type": "function"
3721
+ },
3722
+ {
3723
+ "inputs": [],
3724
+ "name": "getTotalWallets",
3725
+ "outputs": [
3726
+ {
3727
+ "internalType": "uint256",
3728
+ "name": "",
3729
+ "type": "uint256"
3730
+ }
3731
+ ],
3732
+ "stateMutability": "view",
3733
+ "type": "function"
3734
+ },
3735
+ {
3736
+ "inputs": [
3737
+ {
3738
+ "internalType": "address",
3739
+ "name": "_owner",
3740
+ "type": "address"
3741
+ }
3742
+ ],
3743
+ "name": "getWallet",
3744
+ "outputs": [
3745
+ {
3746
+ "internalType": "address",
3747
+ "name": "",
3748
+ "type": "address"
3749
+ }
3750
+ ],
3751
+ "stateMutability": "view",
3752
+ "type": "function"
3753
+ },
3754
+ {
3755
+ "inputs": [
3756
+ {
3757
+ "internalType": "uint256",
3758
+ "name": "_offset",
3759
+ "type": "uint256"
3760
+ },
3761
+ {
3762
+ "internalType": "uint256",
3763
+ "name": "_limit",
3764
+ "type": "uint256"
3765
+ }
3766
+ ],
3767
+ "name": "getWallets",
3768
+ "outputs": [
3769
+ {
3770
+ "internalType": "address[]",
3771
+ "name": "wallets",
3772
+ "type": "address[]"
3773
+ },
3774
+ {
3775
+ "internalType": "uint256",
3776
+ "name": "total",
3777
+ "type": "uint256"
3778
+ }
3779
+ ],
3780
+ "stateMutability": "view",
3781
+ "type": "function"
3782
+ },
3783
+ {
3784
+ "inputs": [
3785
+ {
3786
+ "internalType": "address",
3787
+ "name": "_operator",
3788
+ "type": "address"
3789
+ }
3790
+ ],
3791
+ "name": "getWalletsByOperator",
3792
+ "outputs": [
3793
+ {
3794
+ "internalType": "address[]",
3795
+ "name": "",
3796
+ "type": "address[]"
3797
+ }
3798
+ ],
3799
+ "stateMutability": "view",
3800
+ "type": "function"
3801
+ },
3802
+ {
3803
+ "inputs": [
3804
+ {
3805
+ "internalType": "address",
3806
+ "name": "_owner",
3807
+ "type": "address"
3808
+ }
3809
+ ],
3810
+ "name": "getWalletsByOwner",
3811
+ "outputs": [
3812
+ {
3813
+ "internalType": "address[]",
3814
+ "name": "",
3815
+ "type": "address[]"
3816
+ }
3817
+ ],
3818
+ "stateMutability": "view",
3819
+ "type": "function"
3820
+ },
3821
+ {
3822
+ "inputs": [
3823
+ {
3824
+ "internalType": "address",
3825
+ "name": "_owner",
3826
+ "type": "address"
3827
+ }
3828
+ ],
3829
+ "name": "hasWallet",
3830
+ "outputs": [
3831
+ {
3832
+ "internalType": "bool",
3833
+ "name": "",
3834
+ "type": "bool"
3835
+ }
3836
+ ],
3837
+ "stateMutability": "view",
3838
+ "type": "function"
3839
+ },
3840
+ {
3841
+ "inputs": [
3842
+ {
3843
+ "internalType": "address",
3844
+ "name": "_roleManager",
3845
+ "type": "address"
3846
+ },
3847
+ {
3848
+ "internalType": "address",
3849
+ "name": "_walletRoleManager",
3850
+ "type": "address"
3851
+ },
3852
+ {
3853
+ "internalType": "address",
3854
+ "name": "_settlementLayer",
3855
+ "type": "address"
3856
+ },
3857
+ {
3858
+ "internalType": "address",
3859
+ "name": "_walletImplementation",
3860
+ "type": "address"
3861
+ }
3862
+ ],
3863
+ "name": "initialize",
3864
+ "outputs": [],
3865
+ "stateMutability": "nonpayable",
3866
+ "type": "function"
3867
+ },
3868
+ {
3869
+ "inputs": [
3870
+ {
3871
+ "internalType": "address",
3872
+ "name": "account",
3873
+ "type": "address"
3874
+ }
3875
+ ],
3876
+ "name": "isMaintainer",
3877
+ "outputs": [
3878
+ {
3879
+ "internalType": "bool",
3880
+ "name": "",
3881
+ "type": "bool"
3882
+ }
3883
+ ],
3884
+ "stateMutability": "view",
3885
+ "type": "function"
3886
+ },
3887
+ {
3888
+ "inputs": [
3889
+ {
3890
+ "internalType": "address",
3891
+ "name": "",
3892
+ "type": "address"
3893
+ }
3894
+ ],
3895
+ "name": "ownerByWallet",
3896
+ "outputs": [
3897
+ {
3898
+ "internalType": "address",
3899
+ "name": "",
3900
+ "type": "address"
3901
+ }
3902
+ ],
3903
+ "stateMutability": "view",
3904
+ "type": "function"
3905
+ },
3906
+ {
3907
+ "inputs": [],
3908
+ "name": "proxiableUUID",
3909
+ "outputs": [
3910
+ {
3911
+ "internalType": "bytes32",
3912
+ "name": "",
3913
+ "type": "bytes32"
3914
+ }
3915
+ ],
3916
+ "stateMutability": "view",
3917
+ "type": "function"
3918
+ },
3919
+ {
3920
+ "inputs": [],
3921
+ "name": "roleManager",
3922
+ "outputs": [
3923
+ {
3924
+ "internalType": "contract IRoleManager",
3925
+ "name": "",
3926
+ "type": "address"
3927
+ }
3928
+ ],
3929
+ "stateMutability": "view",
3930
+ "type": "function"
3931
+ },
3932
+ {
3933
+ "inputs": [
3934
+ {
3935
+ "internalType": "address",
3936
+ "name": "_newSettlementLayer",
3937
+ "type": "address"
3938
+ }
3939
+ ],
3940
+ "name": "setSettlementLayer",
3941
+ "outputs": [],
3942
+ "stateMutability": "nonpayable",
3943
+ "type": "function"
3944
+ },
3945
+ {
3946
+ "inputs": [
3947
+ {
3948
+ "internalType": "address",
3949
+ "name": "_newWalletImplementation",
3950
+ "type": "address"
3951
+ }
3952
+ ],
3953
+ "name": "setWalletImplementation",
3954
+ "outputs": [],
3955
+ "stateMutability": "nonpayable",
3956
+ "type": "function"
3957
+ },
3958
+ {
3959
+ "inputs": [
3960
+ {
3961
+ "internalType": "address",
3962
+ "name": "_newWalletRoleManager",
3963
+ "type": "address"
3964
+ }
3965
+ ],
3966
+ "name": "setWalletRoleManager",
3967
+ "outputs": [],
3968
+ "stateMutability": "nonpayable",
3969
+ "type": "function"
3970
+ },
3971
+ {
3972
+ "inputs": [],
3973
+ "name": "settlementLayer",
3974
+ "outputs": [
3975
+ {
3976
+ "internalType": "address",
3977
+ "name": "",
3978
+ "type": "address"
3979
+ }
3980
+ ],
3981
+ "stateMutability": "view",
3982
+ "type": "function"
3983
+ },
3984
+ {
3985
+ "inputs": [],
3986
+ "name": "totalWallets",
3987
+ "outputs": [
3988
+ {
3989
+ "internalType": "uint256",
3990
+ "name": "",
3991
+ "type": "uint256"
3992
+ }
3993
+ ],
3994
+ "stateMutability": "view",
3995
+ "type": "function"
3996
+ },
3997
+ {
3998
+ "inputs": [
3999
+ {
4000
+ "internalType": "address",
4001
+ "name": "newImplementation",
4002
+ "type": "address"
4003
+ },
4004
+ {
4005
+ "internalType": "bytes",
4006
+ "name": "data",
4007
+ "type": "bytes"
4008
+ }
4009
+ ],
4010
+ "name": "upgradeToAndCall",
4011
+ "outputs": [],
4012
+ "stateMutability": "payable",
4013
+ "type": "function"
4014
+ },
4015
+ {
4016
+ "inputs": [],
4017
+ "name": "walletImplementation",
4018
+ "outputs": [
4019
+ {
4020
+ "internalType": "address",
4021
+ "name": "",
4022
+ "type": "address"
4023
+ }
4024
+ ],
4025
+ "stateMutability": "view",
4026
+ "type": "function"
4027
+ },
4028
+ {
4029
+ "inputs": [],
4030
+ "name": "walletRoleManager",
4031
+ "outputs": [
4032
+ {
4033
+ "internalType": "address",
4034
+ "name": "",
4035
+ "type": "address"
4036
+ }
4037
+ ],
4038
+ "stateMutability": "view",
4039
+ "type": "function"
4040
+ },
4041
+ {
4042
+ "inputs": [
4043
+ {
4044
+ "internalType": "address",
4045
+ "name": "",
4046
+ "type": "address"
4047
+ },
4048
+ {
4049
+ "internalType": "uint256",
4050
+ "name": "",
4051
+ "type": "uint256"
4052
+ }
4053
+ ],
4054
+ "name": "walletsByOperator",
4055
+ "outputs": [
4056
+ {
4057
+ "internalType": "address",
4058
+ "name": "",
4059
+ "type": "address"
4060
+ }
4061
+ ],
4062
+ "stateMutability": "view",
4063
+ "type": "function"
4064
+ },
4065
+ {
4066
+ "inputs": [
4067
+ {
4068
+ "internalType": "address",
4069
+ "name": "",
4070
+ "type": "address"
4071
+ },
4072
+ {
4073
+ "internalType": "uint256",
4074
+ "name": "",
4075
+ "type": "uint256"
4076
+ }
4077
+ ],
4078
+ "name": "walletsByOwner",
4079
+ "outputs": [
4080
+ {
4081
+ "internalType": "address",
4082
+ "name": "",
4083
+ "type": "address"
4084
+ }
4085
+ ],
4086
+ "stateMutability": "view",
4087
+ "type": "function"
4088
+ }
4089
+ ]
4090
+ }
4091
+ }