@agirails/sdk 2.5.3 → 2.5.4

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 (166) hide show
  1. package/dist/ACTPClient.d.ts +18 -0
  2. package/dist/ACTPClient.d.ts.map +1 -1
  3. package/dist/ACTPClient.js +67 -22
  4. package/dist/ACTPClient.js.map +1 -1
  5. package/dist/adapters/BasicAdapter.d.ts +12 -0
  6. package/dist/adapters/BasicAdapter.d.ts.map +1 -1
  7. package/dist/adapters/BasicAdapter.js +30 -4
  8. package/dist/adapters/BasicAdapter.js.map +1 -1
  9. package/dist/adapters/StandardAdapter.d.ts +20 -3
  10. package/dist/adapters/StandardAdapter.d.ts.map +1 -1
  11. package/dist/adapters/StandardAdapter.js +45 -11
  12. package/dist/adapters/StandardAdapter.js.map +1 -1
  13. package/dist/cli/commands/publish.js +16 -4
  14. package/dist/cli/commands/publish.js.map +1 -1
  15. package/dist/cli/commands/register.js +16 -4
  16. package/dist/cli/commands/register.js.map +1 -1
  17. package/dist/cli/commands/tx.js +31 -3
  18. package/dist/cli/commands/tx.js.map +1 -1
  19. package/dist/config/networks.d.ts +2 -2
  20. package/dist/config/networks.d.ts.map +1 -1
  21. package/dist/config/networks.js +27 -22
  22. package/dist/config/networks.js.map +1 -1
  23. package/dist/level0/request.d.ts.map +1 -1
  24. package/dist/level0/request.js +2 -1
  25. package/dist/level0/request.js.map +1 -1
  26. package/dist/runtime/BlockchainRuntime.d.ts.map +1 -1
  27. package/dist/runtime/BlockchainRuntime.js +11 -5
  28. package/dist/runtime/BlockchainRuntime.js.map +1 -1
  29. package/dist/utils/IPFSClient.d.ts +3 -1
  30. package/dist/utils/IPFSClient.d.ts.map +1 -1
  31. package/dist/utils/IPFSClient.js +27 -7
  32. package/dist/utils/IPFSClient.js.map +1 -1
  33. package/dist/wallet/AutoWalletProvider.d.ts.map +1 -1
  34. package/dist/wallet/AutoWalletProvider.js +52 -18
  35. package/dist/wallet/AutoWalletProvider.js.map +1 -1
  36. package/dist/wallet/SmartWalletRouter.d.ts +116 -0
  37. package/dist/wallet/SmartWalletRouter.d.ts.map +1 -0
  38. package/dist/wallet/SmartWalletRouter.js +212 -0
  39. package/dist/wallet/SmartWalletRouter.js.map +1 -0
  40. package/dist/wallet/aa/DualNonceManager.d.ts +19 -0
  41. package/dist/wallet/aa/DualNonceManager.d.ts.map +1 -1
  42. package/dist/wallet/aa/DualNonceManager.js +100 -5
  43. package/dist/wallet/aa/DualNonceManager.js.map +1 -1
  44. package/package.json +3 -6
  45. package/src/ACTPClient.ts +0 -1579
  46. package/src/abi/ACTPKernel.json +0 -1356
  47. package/src/abi/AgentRegistry.json +0 -915
  48. package/src/abi/ERC20.json +0 -40
  49. package/src/abi/EscrowVault.json +0 -134
  50. package/src/abi/IdentityRegistry.json +0 -316
  51. package/src/adapters/AdapterRegistry.ts +0 -173
  52. package/src/adapters/AdapterRouter.ts +0 -416
  53. package/src/adapters/BaseAdapter.ts +0 -498
  54. package/src/adapters/BasicAdapter.ts +0 -514
  55. package/src/adapters/IAdapter.ts +0 -292
  56. package/src/adapters/StandardAdapter.ts +0 -555
  57. package/src/adapters/X402Adapter.ts +0 -731
  58. package/src/adapters/index.ts +0 -60
  59. package/src/builders/DeliveryProofBuilder.ts +0 -327
  60. package/src/builders/QuoteBuilder.ts +0 -483
  61. package/src/builders/index.ts +0 -17
  62. package/src/cli/commands/balance.ts +0 -110
  63. package/src/cli/commands/batch.ts +0 -487
  64. package/src/cli/commands/config.ts +0 -231
  65. package/src/cli/commands/deploy-check.ts +0 -364
  66. package/src/cli/commands/deploy-env.ts +0 -120
  67. package/src/cli/commands/diff.ts +0 -141
  68. package/src/cli/commands/init.ts +0 -469
  69. package/src/cli/commands/mint.ts +0 -116
  70. package/src/cli/commands/pay.ts +0 -113
  71. package/src/cli/commands/publish.ts +0 -475
  72. package/src/cli/commands/pull.ts +0 -124
  73. package/src/cli/commands/register.ts +0 -247
  74. package/src/cli/commands/simulate.ts +0 -345
  75. package/src/cli/commands/time.ts +0 -302
  76. package/src/cli/commands/tx.ts +0 -448
  77. package/src/cli/commands/watch.ts +0 -211
  78. package/src/cli/index.ts +0 -134
  79. package/src/cli/utils/client.ts +0 -252
  80. package/src/cli/utils/config.ts +0 -389
  81. package/src/cli/utils/output.ts +0 -465
  82. package/src/cli/utils/wallet.ts +0 -109
  83. package/src/config/agirailsmd.ts +0 -262
  84. package/src/config/networks.ts +0 -275
  85. package/src/config/pendingPublish.ts +0 -237
  86. package/src/config/publishPipeline.ts +0 -359
  87. package/src/config/syncOperations.ts +0 -279
  88. package/src/erc8004/ERC8004Bridge.ts +0 -462
  89. package/src/erc8004/ReputationReporter.ts +0 -468
  90. package/src/erc8004/index.ts +0 -61
  91. package/src/errors/index.ts +0 -427
  92. package/src/index.ts +0 -364
  93. package/src/level0/Provider.ts +0 -117
  94. package/src/level0/ServiceDirectory.ts +0 -131
  95. package/src/level0/index.ts +0 -10
  96. package/src/level0/provide.ts +0 -132
  97. package/src/level0/request.ts +0 -432
  98. package/src/level1/Agent.ts +0 -1426
  99. package/src/level1/index.ts +0 -10
  100. package/src/level1/pricing/PriceCalculator.ts +0 -255
  101. package/src/level1/pricing/PricingStrategy.ts +0 -198
  102. package/src/level1/types/Job.ts +0 -179
  103. package/src/level1/types/Options.ts +0 -291
  104. package/src/level1/types/index.ts +0 -8
  105. package/src/protocol/ACTPKernel.ts +0 -808
  106. package/src/protocol/AgentRegistry.ts +0 -559
  107. package/src/protocol/DIDManager.ts +0 -629
  108. package/src/protocol/DIDResolver.ts +0 -554
  109. package/src/protocol/EASHelper.ts +0 -378
  110. package/src/protocol/EscrowVault.ts +0 -255
  111. package/src/protocol/EventMonitor.ts +0 -204
  112. package/src/protocol/MessageSigner.ts +0 -510
  113. package/src/protocol/ProofGenerator.ts +0 -339
  114. package/src/protocol/QuoteBuilder.ts +0 -15
  115. package/src/registry/AgentRegistryClient.ts +0 -202
  116. package/src/runtime/BlockchainRuntime.ts +0 -1015
  117. package/src/runtime/IACTPRuntime.ts +0 -306
  118. package/src/runtime/MockRuntime.ts +0 -1298
  119. package/src/runtime/MockStateManager.ts +0 -577
  120. package/src/runtime/index.ts +0 -25
  121. package/src/runtime/types/MockState.ts +0 -237
  122. package/src/storage/ArchiveBundleBuilder.ts +0 -561
  123. package/src/storage/ArweaveClient.ts +0 -946
  124. package/src/storage/FilebaseClient.ts +0 -790
  125. package/src/storage/index.ts +0 -96
  126. package/src/storage/types.ts +0 -348
  127. package/src/types/adapter.ts +0 -310
  128. package/src/types/agent.ts +0 -79
  129. package/src/types/did.ts +0 -223
  130. package/src/types/eip712.ts +0 -175
  131. package/src/types/erc8004.ts +0 -293
  132. package/src/types/escrow.ts +0 -27
  133. package/src/types/index.ts +0 -17
  134. package/src/types/message.ts +0 -145
  135. package/src/types/state.ts +0 -87
  136. package/src/types/transaction.ts +0 -69
  137. package/src/types/x402.ts +0 -251
  138. package/src/utils/ErrorRecoveryGuide.ts +0 -676
  139. package/src/utils/Helpers.ts +0 -688
  140. package/src/utils/IPFSClient.ts +0 -368
  141. package/src/utils/Logger.ts +0 -484
  142. package/src/utils/NonceManager.ts +0 -591
  143. package/src/utils/RateLimiter.ts +0 -534
  144. package/src/utils/ReceivedNonceTracker.ts +0 -567
  145. package/src/utils/SDKLifecycle.ts +0 -416
  146. package/src/utils/SecureNonce.ts +0 -78
  147. package/src/utils/Semaphore.ts +0 -276
  148. package/src/utils/UsedAttestationTracker.ts +0 -385
  149. package/src/utils/canonicalJson.ts +0 -38
  150. package/src/utils/circuitBreaker.ts +0 -324
  151. package/src/utils/computeTypeHash.ts +0 -48
  152. package/src/utils/fsSafe.ts +0 -80
  153. package/src/utils/index.ts +0 -80
  154. package/src/utils/retry.ts +0 -364
  155. package/src/utils/security.ts +0 -418
  156. package/src/utils/validation.ts +0 -540
  157. package/src/wallet/AutoWalletProvider.ts +0 -299
  158. package/src/wallet/EOAWalletProvider.ts +0 -69
  159. package/src/wallet/IWalletProvider.ts +0 -135
  160. package/src/wallet/aa/BundlerClient.ts +0 -274
  161. package/src/wallet/aa/DualNonceManager.ts +0 -173
  162. package/src/wallet/aa/PaymasterClient.ts +0 -174
  163. package/src/wallet/aa/TransactionBatcher.ts +0 -353
  164. package/src/wallet/aa/UserOpBuilder.ts +0 -246
  165. package/src/wallet/aa/constants.ts +0 -60
  166. package/src/wallet/keystore.ts +0 -240
@@ -1,915 +0,0 @@
1
- [
2
- {
3
- "type": "constructor",
4
- "inputs": [
5
- {
6
- "name": "_actpKernel",
7
- "type": "address",
8
- "internalType": "address"
9
- }
10
- ],
11
- "stateMutability": "nonpayable"
12
- },
13
- {
14
- "type": "function",
15
- "name": "MAX_CID_LENGTH",
16
- "inputs": [],
17
- "outputs": [
18
- {
19
- "name": "",
20
- "type": "uint256",
21
- "internalType": "uint256"
22
- }
23
- ],
24
- "stateMutability": "view"
25
- },
26
- {
27
- "type": "function",
28
- "name": "MAX_ENDPOINT_LENGTH",
29
- "inputs": [],
30
- "outputs": [
31
- {
32
- "name": "",
33
- "type": "uint256",
34
- "internalType": "uint256"
35
- }
36
- ],
37
- "stateMutability": "view"
38
- },
39
- {
40
- "type": "function",
41
- "name": "MAX_QUERY_AGENTS",
42
- "inputs": [],
43
- "outputs": [
44
- {
45
- "name": "",
46
- "type": "uint256",
47
- "internalType": "uint256"
48
- }
49
- ],
50
- "stateMutability": "view"
51
- },
52
- {
53
- "type": "function",
54
- "name": "MAX_REGISTERED_AGENTS",
55
- "inputs": [],
56
- "outputs": [
57
- {
58
- "name": "",
59
- "type": "uint256",
60
- "internalType": "uint256"
61
- }
62
- ],
63
- "stateMutability": "view"
64
- },
65
- {
66
- "type": "function",
67
- "name": "MAX_SERVICE_DESCRIPTORS",
68
- "inputs": [],
69
- "outputs": [
70
- {
71
- "name": "",
72
- "type": "uint256",
73
- "internalType": "uint256"
74
- }
75
- ],
76
- "stateMutability": "view"
77
- },
78
- {
79
- "type": "function",
80
- "name": "MAX_SERVICE_TYPE_LENGTH",
81
- "inputs": [],
82
- "outputs": [
83
- {
84
- "name": "",
85
- "type": "uint256",
86
- "internalType": "uint256"
87
- }
88
- ],
89
- "stateMutability": "view"
90
- },
91
- {
92
- "type": "function",
93
- "name": "actpKernel",
94
- "inputs": [],
95
- "outputs": [
96
- {
97
- "name": "",
98
- "type": "address",
99
- "internalType": "address"
100
- }
101
- ],
102
- "stateMutability": "view"
103
- },
104
- {
105
- "type": "function",
106
- "name": "addServiceType",
107
- "inputs": [
108
- {
109
- "name": "serviceType",
110
- "type": "string",
111
- "internalType": "string"
112
- }
113
- ],
114
- "outputs": [],
115
- "stateMutability": "nonpayable"
116
- },
117
- {
118
- "type": "function",
119
- "name": "agents",
120
- "inputs": [
121
- {
122
- "name": "",
123
- "type": "address",
124
- "internalType": "address"
125
- }
126
- ],
127
- "outputs": [
128
- {
129
- "name": "agentAddress",
130
- "type": "address",
131
- "internalType": "address"
132
- },
133
- {
134
- "name": "did",
135
- "type": "string",
136
- "internalType": "string"
137
- },
138
- {
139
- "name": "endpoint",
140
- "type": "string",
141
- "internalType": "string"
142
- },
143
- {
144
- "name": "stakedAmount",
145
- "type": "uint256",
146
- "internalType": "uint256"
147
- },
148
- {
149
- "name": "reputationScore",
150
- "type": "uint256",
151
- "internalType": "uint256"
152
- },
153
- {
154
- "name": "totalTransactions",
155
- "type": "uint256",
156
- "internalType": "uint256"
157
- },
158
- {
159
- "name": "disputedTransactions",
160
- "type": "uint256",
161
- "internalType": "uint256"
162
- },
163
- {
164
- "name": "totalVolumeUSDC",
165
- "type": "uint256",
166
- "internalType": "uint256"
167
- },
168
- {
169
- "name": "registeredAt",
170
- "type": "uint256",
171
- "internalType": "uint256"
172
- },
173
- {
174
- "name": "updatedAt",
175
- "type": "uint256",
176
- "internalType": "uint256"
177
- },
178
- {
179
- "name": "isActive",
180
- "type": "bool",
181
- "internalType": "bool"
182
- },
183
- {
184
- "name": "configHash",
185
- "type": "bytes32",
186
- "internalType": "bytes32"
187
- },
188
- {
189
- "name": "configCID",
190
- "type": "string",
191
- "internalType": "string"
192
- },
193
- {
194
- "name": "listed",
195
- "type": "bool",
196
- "internalType": "bool"
197
- }
198
- ],
199
- "stateMutability": "view"
200
- },
201
- {
202
- "type": "function",
203
- "name": "chainId",
204
- "inputs": [],
205
- "outputs": [
206
- {
207
- "name": "",
208
- "type": "uint256",
209
- "internalType": "uint256"
210
- }
211
- ],
212
- "stateMutability": "view"
213
- },
214
- {
215
- "type": "function",
216
- "name": "didToAddress",
217
- "inputs": [
218
- {
219
- "name": "",
220
- "type": "string",
221
- "internalType": "string"
222
- }
223
- ],
224
- "outputs": [
225
- {
226
- "name": "",
227
- "type": "address",
228
- "internalType": "address"
229
- }
230
- ],
231
- "stateMutability": "view"
232
- },
233
- {
234
- "type": "function",
235
- "name": "getAgent",
236
- "inputs": [
237
- {
238
- "name": "agentAddress",
239
- "type": "address",
240
- "internalType": "address"
241
- }
242
- ],
243
- "outputs": [
244
- {
245
- "name": "profile",
246
- "type": "tuple",
247
- "internalType": "struct IAgentRegistry.AgentProfile",
248
- "components": [
249
- {
250
- "name": "agentAddress",
251
- "type": "address",
252
- "internalType": "address"
253
- },
254
- {
255
- "name": "did",
256
- "type": "string",
257
- "internalType": "string"
258
- },
259
- {
260
- "name": "endpoint",
261
- "type": "string",
262
- "internalType": "string"
263
- },
264
- {
265
- "name": "serviceTypes",
266
- "type": "bytes32[]",
267
- "internalType": "bytes32[]"
268
- },
269
- {
270
- "name": "stakedAmount",
271
- "type": "uint256",
272
- "internalType": "uint256"
273
- },
274
- {
275
- "name": "reputationScore",
276
- "type": "uint256",
277
- "internalType": "uint256"
278
- },
279
- {
280
- "name": "totalTransactions",
281
- "type": "uint256",
282
- "internalType": "uint256"
283
- },
284
- {
285
- "name": "disputedTransactions",
286
- "type": "uint256",
287
- "internalType": "uint256"
288
- },
289
- {
290
- "name": "totalVolumeUSDC",
291
- "type": "uint256",
292
- "internalType": "uint256"
293
- },
294
- {
295
- "name": "registeredAt",
296
- "type": "uint256",
297
- "internalType": "uint256"
298
- },
299
- {
300
- "name": "updatedAt",
301
- "type": "uint256",
302
- "internalType": "uint256"
303
- },
304
- {
305
- "name": "isActive",
306
- "type": "bool",
307
- "internalType": "bool"
308
- },
309
- {
310
- "name": "configHash",
311
- "type": "bytes32",
312
- "internalType": "bytes32"
313
- },
314
- {
315
- "name": "configCID",
316
- "type": "string",
317
- "internalType": "string"
318
- },
319
- {
320
- "name": "listed",
321
- "type": "bool",
322
- "internalType": "bool"
323
- }
324
- ]
325
- }
326
- ],
327
- "stateMutability": "view"
328
- },
329
- {
330
- "type": "function",
331
- "name": "getAgentByDID",
332
- "inputs": [
333
- {
334
- "name": "did",
335
- "type": "string",
336
- "internalType": "string"
337
- }
338
- ],
339
- "outputs": [
340
- {
341
- "name": "profile",
342
- "type": "tuple",
343
- "internalType": "struct IAgentRegistry.AgentProfile",
344
- "components": [
345
- {
346
- "name": "agentAddress",
347
- "type": "address",
348
- "internalType": "address"
349
- },
350
- {
351
- "name": "did",
352
- "type": "string",
353
- "internalType": "string"
354
- },
355
- {
356
- "name": "endpoint",
357
- "type": "string",
358
- "internalType": "string"
359
- },
360
- {
361
- "name": "serviceTypes",
362
- "type": "bytes32[]",
363
- "internalType": "bytes32[]"
364
- },
365
- {
366
- "name": "stakedAmount",
367
- "type": "uint256",
368
- "internalType": "uint256"
369
- },
370
- {
371
- "name": "reputationScore",
372
- "type": "uint256",
373
- "internalType": "uint256"
374
- },
375
- {
376
- "name": "totalTransactions",
377
- "type": "uint256",
378
- "internalType": "uint256"
379
- },
380
- {
381
- "name": "disputedTransactions",
382
- "type": "uint256",
383
- "internalType": "uint256"
384
- },
385
- {
386
- "name": "totalVolumeUSDC",
387
- "type": "uint256",
388
- "internalType": "uint256"
389
- },
390
- {
391
- "name": "registeredAt",
392
- "type": "uint256",
393
- "internalType": "uint256"
394
- },
395
- {
396
- "name": "updatedAt",
397
- "type": "uint256",
398
- "internalType": "uint256"
399
- },
400
- {
401
- "name": "isActive",
402
- "type": "bool",
403
- "internalType": "bool"
404
- },
405
- {
406
- "name": "configHash",
407
- "type": "bytes32",
408
- "internalType": "bytes32"
409
- },
410
- {
411
- "name": "configCID",
412
- "type": "string",
413
- "internalType": "string"
414
- },
415
- {
416
- "name": "listed",
417
- "type": "bool",
418
- "internalType": "bool"
419
- }
420
- ]
421
- }
422
- ],
423
- "stateMutability": "view"
424
- },
425
- {
426
- "type": "function",
427
- "name": "getServiceDescriptors",
428
- "inputs": [
429
- {
430
- "name": "agentAddress",
431
- "type": "address",
432
- "internalType": "address"
433
- }
434
- ],
435
- "outputs": [
436
- {
437
- "name": "descriptors",
438
- "type": "tuple[]",
439
- "internalType": "struct IAgentRegistry.ServiceDescriptor[]",
440
- "components": [
441
- {
442
- "name": "serviceTypeHash",
443
- "type": "bytes32",
444
- "internalType": "bytes32"
445
- },
446
- {
447
- "name": "serviceType",
448
- "type": "string",
449
- "internalType": "string"
450
- },
451
- {
452
- "name": "schemaURI",
453
- "type": "string",
454
- "internalType": "string"
455
- },
456
- {
457
- "name": "minPrice",
458
- "type": "uint256",
459
- "internalType": "uint256"
460
- },
461
- {
462
- "name": "maxPrice",
463
- "type": "uint256",
464
- "internalType": "uint256"
465
- },
466
- {
467
- "name": "avgCompletionTime",
468
- "type": "uint256",
469
- "internalType": "uint256"
470
- },
471
- {
472
- "name": "metadataCID",
473
- "type": "string",
474
- "internalType": "string"
475
- }
476
- ]
477
- }
478
- ],
479
- "stateMutability": "view"
480
- },
481
- {
482
- "type": "function",
483
- "name": "publishConfig",
484
- "inputs": [
485
- {
486
- "name": "cid",
487
- "type": "string",
488
- "internalType": "string"
489
- },
490
- {
491
- "name": "hash",
492
- "type": "bytes32",
493
- "internalType": "bytes32"
494
- }
495
- ],
496
- "outputs": [],
497
- "stateMutability": "nonpayable"
498
- },
499
- {
500
- "type": "function",
501
- "name": "queryAgentsByService",
502
- "inputs": [
503
- {
504
- "name": "serviceTypeHash",
505
- "type": "bytes32",
506
- "internalType": "bytes32"
507
- },
508
- {
509
- "name": "minReputation",
510
- "type": "uint256",
511
- "internalType": "uint256"
512
- },
513
- {
514
- "name": "offset",
515
- "type": "uint256",
516
- "internalType": "uint256"
517
- },
518
- {
519
- "name": "limit",
520
- "type": "uint256",
521
- "internalType": "uint256"
522
- }
523
- ],
524
- "outputs": [
525
- {
526
- "name": "",
527
- "type": "address[]",
528
- "internalType": "address[]"
529
- }
530
- ],
531
- "stateMutability": "view"
532
- },
533
- {
534
- "type": "function",
535
- "name": "registerAgent",
536
- "inputs": [
537
- {
538
- "name": "endpoint",
539
- "type": "string",
540
- "internalType": "string"
541
- },
542
- {
543
- "name": "serviceDescriptors_",
544
- "type": "tuple[]",
545
- "internalType": "struct IAgentRegistry.ServiceDescriptor[]",
546
- "components": [
547
- {
548
- "name": "serviceTypeHash",
549
- "type": "bytes32",
550
- "internalType": "bytes32"
551
- },
552
- {
553
- "name": "serviceType",
554
- "type": "string",
555
- "internalType": "string"
556
- },
557
- {
558
- "name": "schemaURI",
559
- "type": "string",
560
- "internalType": "string"
561
- },
562
- {
563
- "name": "minPrice",
564
- "type": "uint256",
565
- "internalType": "uint256"
566
- },
567
- {
568
- "name": "maxPrice",
569
- "type": "uint256",
570
- "internalType": "uint256"
571
- },
572
- {
573
- "name": "avgCompletionTime",
574
- "type": "uint256",
575
- "internalType": "uint256"
576
- },
577
- {
578
- "name": "metadataCID",
579
- "type": "string",
580
- "internalType": "string"
581
- }
582
- ]
583
- }
584
- ],
585
- "outputs": [],
586
- "stateMutability": "nonpayable"
587
- },
588
- {
589
- "type": "function",
590
- "name": "removeServiceType",
591
- "inputs": [
592
- {
593
- "name": "serviceTypeHash",
594
- "type": "bytes32",
595
- "internalType": "bytes32"
596
- }
597
- ],
598
- "outputs": [],
599
- "stateMutability": "nonpayable"
600
- },
601
- {
602
- "type": "function",
603
- "name": "setActiveStatus",
604
- "inputs": [
605
- {
606
- "name": "isActive",
607
- "type": "bool",
608
- "internalType": "bool"
609
- }
610
- ],
611
- "outputs": [],
612
- "stateMutability": "nonpayable"
613
- },
614
- {
615
- "type": "function",
616
- "name": "setListed",
617
- "inputs": [
618
- {
619
- "name": "_listed",
620
- "type": "bool",
621
- "internalType": "bool"
622
- }
623
- ],
624
- "outputs": [],
625
- "stateMutability": "nonpayable"
626
- },
627
- {
628
- "type": "function",
629
- "name": "supportsService",
630
- "inputs": [
631
- {
632
- "name": "agentAddress",
633
- "type": "address",
634
- "internalType": "address"
635
- },
636
- {
637
- "name": "serviceTypeHash",
638
- "type": "bytes32",
639
- "internalType": "bytes32"
640
- }
641
- ],
642
- "outputs": [
643
- {
644
- "name": "supported",
645
- "type": "bool",
646
- "internalType": "bool"
647
- }
648
- ],
649
- "stateMutability": "view"
650
- },
651
- {
652
- "type": "function",
653
- "name": "updateEndpoint",
654
- "inputs": [
655
- {
656
- "name": "newEndpoint",
657
- "type": "string",
658
- "internalType": "string"
659
- }
660
- ],
661
- "outputs": [],
662
- "stateMutability": "nonpayable"
663
- },
664
- {
665
- "type": "function",
666
- "name": "updateReputationOnSettlement",
667
- "inputs": [
668
- {
669
- "name": "agentAddress",
670
- "type": "address",
671
- "internalType": "address"
672
- },
673
- {
674
- "name": "txId",
675
- "type": "bytes32",
676
- "internalType": "bytes32"
677
- },
678
- {
679
- "name": "txAmount",
680
- "type": "uint256",
681
- "internalType": "uint256"
682
- },
683
- {
684
- "name": "wasDisputed",
685
- "type": "bool",
686
- "internalType": "bool"
687
- }
688
- ],
689
- "outputs": [],
690
- "stateMutability": "nonpayable"
691
- },
692
- {
693
- "type": "event",
694
- "name": "ActiveStatusUpdated",
695
- "inputs": [
696
- {
697
- "name": "agentAddress",
698
- "type": "address",
699
- "indexed": true,
700
- "internalType": "address"
701
- },
702
- {
703
- "name": "isActive",
704
- "type": "bool",
705
- "indexed": false,
706
- "internalType": "bool"
707
- },
708
- {
709
- "name": "timestamp",
710
- "type": "uint256",
711
- "indexed": false,
712
- "internalType": "uint256"
713
- }
714
- ],
715
- "anonymous": false
716
- },
717
- {
718
- "type": "event",
719
- "name": "AgentRegistered",
720
- "inputs": [
721
- {
722
- "name": "agentAddress",
723
- "type": "address",
724
- "indexed": true,
725
- "internalType": "address"
726
- },
727
- {
728
- "name": "did",
729
- "type": "string",
730
- "indexed": false,
731
- "internalType": "string"
732
- },
733
- {
734
- "name": "endpoint",
735
- "type": "string",
736
- "indexed": false,
737
- "internalType": "string"
738
- },
739
- {
740
- "name": "timestamp",
741
- "type": "uint256",
742
- "indexed": false,
743
- "internalType": "uint256"
744
- }
745
- ],
746
- "anonymous": false
747
- },
748
- {
749
- "type": "event",
750
- "name": "ConfigPublished",
751
- "inputs": [
752
- {
753
- "name": "agent",
754
- "type": "address",
755
- "indexed": true,
756
- "internalType": "address"
757
- },
758
- {
759
- "name": "configCID",
760
- "type": "string",
761
- "indexed": false,
762
- "internalType": "string"
763
- },
764
- {
765
- "name": "configHash",
766
- "type": "bytes32",
767
- "indexed": false,
768
- "internalType": "bytes32"
769
- }
770
- ],
771
- "anonymous": false
772
- },
773
- {
774
- "type": "event",
775
- "name": "EndpointUpdated",
776
- "inputs": [
777
- {
778
- "name": "agentAddress",
779
- "type": "address",
780
- "indexed": true,
781
- "internalType": "address"
782
- },
783
- {
784
- "name": "oldEndpoint",
785
- "type": "string",
786
- "indexed": false,
787
- "internalType": "string"
788
- },
789
- {
790
- "name": "newEndpoint",
791
- "type": "string",
792
- "indexed": false,
793
- "internalType": "string"
794
- },
795
- {
796
- "name": "timestamp",
797
- "type": "uint256",
798
- "indexed": false,
799
- "internalType": "uint256"
800
- }
801
- ],
802
- "anonymous": false
803
- },
804
- {
805
- "type": "event",
806
- "name": "ListingChanged",
807
- "inputs": [
808
- {
809
- "name": "agent",
810
- "type": "address",
811
- "indexed": true,
812
- "internalType": "address"
813
- },
814
- {
815
- "name": "listed",
816
- "type": "bool",
817
- "indexed": false,
818
- "internalType": "bool"
819
- }
820
- ],
821
- "anonymous": false
822
- },
823
- {
824
- "type": "event",
825
- "name": "ReputationUpdated",
826
- "inputs": [
827
- {
828
- "name": "agentAddress",
829
- "type": "address",
830
- "indexed": true,
831
- "internalType": "address"
832
- },
833
- {
834
- "name": "oldScore",
835
- "type": "uint256",
836
- "indexed": false,
837
- "internalType": "uint256"
838
- },
839
- {
840
- "name": "newScore",
841
- "type": "uint256",
842
- "indexed": false,
843
- "internalType": "uint256"
844
- },
845
- {
846
- "name": "txId",
847
- "type": "bytes32",
848
- "indexed": true,
849
- "internalType": "bytes32"
850
- },
851
- {
852
- "name": "timestamp",
853
- "type": "uint256",
854
- "indexed": false,
855
- "internalType": "uint256"
856
- }
857
- ],
858
- "anonymous": false
859
- },
860
- {
861
- "type": "event",
862
- "name": "ServiceTypeUpdated",
863
- "inputs": [
864
- {
865
- "name": "agentAddress",
866
- "type": "address",
867
- "indexed": true,
868
- "internalType": "address"
869
- },
870
- {
871
- "name": "serviceTypeHash",
872
- "type": "bytes32",
873
- "indexed": true,
874
- "internalType": "bytes32"
875
- },
876
- {
877
- "name": "added",
878
- "type": "bool",
879
- "indexed": false,
880
- "internalType": "bool"
881
- },
882
- {
883
- "name": "timestamp",
884
- "type": "uint256",
885
- "indexed": false,
886
- "internalType": "uint256"
887
- }
888
- ],
889
- "anonymous": false
890
- },
891
- {
892
- "type": "event",
893
- "name": "TransactionProcessed",
894
- "inputs": [
895
- {
896
- "name": "txId",
897
- "type": "bytes32",
898
- "indexed": true,
899
- "internalType": "bytes32"
900
- },
901
- {
902
- "name": "agentAddress",
903
- "type": "address",
904
- "indexed": true,
905
- "internalType": "address"
906
- }
907
- ],
908
- "anonymous": false
909
- },
910
- {
911
- "type": "error",
912
- "name": "ReentrancyGuardReentrantCall",
913
- "inputs": []
914
- }
915
- ]