@fangorn-network/sdk 2026.10.27-dev → 2026.11.3-dev

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 (65) hide show
  1. package/README.md +36 -642
  2. package/lib/cli/cli.js +47 -322
  3. package/lib/cli/index.d.ts +1 -4
  4. package/lib/cli/index.js +2 -20
  5. package/lib/config.d.ts +15 -78
  6. package/lib/config.js +8 -35
  7. package/lib/contracts/data-registry/abi.d.ts +195 -19
  8. package/lib/contracts/data-registry/abi.js +223 -20
  9. package/lib/contracts/data-registry/index.d.ts +126 -2
  10. package/lib/contracts/data-registry/index.js +174 -1
  11. package/lib/contracts/index.d.ts +5 -8
  12. package/lib/contracts/index.js +4 -7
  13. package/lib/contracts/logs.d.ts +1 -1
  14. package/lib/contracts/logs.js +1 -1
  15. package/lib/contracts/{membership-registry → settlement-registry}/abi.d.ts +288 -637
  16. package/lib/contracts/{membership-registry → settlement-registry}/abi.js +326 -712
  17. package/lib/contracts/settlement-registry/index.d.ts +141 -0
  18. package/lib/contracts/settlement-registry/index.js +209 -0
  19. package/lib/crypto/aes.d.ts +2 -2
  20. package/lib/crypto/aes.js +4 -4
  21. package/lib/crypto/encryption.d.ts +8 -109
  22. package/lib/crypto/encryption.js +16 -114
  23. package/lib/crypto/paid.d.ts +104 -0
  24. package/lib/crypto/paid.js +147 -0
  25. package/lib/engine/index.d.ts +23 -12
  26. package/lib/engine/index.js +68 -29
  27. package/lib/engine/records.d.ts +4 -7
  28. package/lib/engine/records.js +6 -6
  29. package/lib/engine/test-helpers.d.ts +2 -3
  30. package/lib/engine/test-helpers.js +7 -5
  31. package/lib/erc8004.js +1 -4
  32. package/lib/fangorn.d.ts +64 -85
  33. package/lib/fangorn.js +106 -148
  34. package/lib/feed.d.ts +7 -8
  35. package/lib/feed.js +7 -8
  36. package/lib/index.d.ts +10 -14
  37. package/lib/index.js +9 -13
  38. package/lib/providers/storage/signed-url.d.ts +2 -10
  39. package/lib/providers/storage/signed-url.js +4 -14
  40. package/lib/providers/storage/types.d.ts +1 -1
  41. package/lib/providers/storage/utils.js +5 -3
  42. package/lib/test/key-server.d.ts +12 -0
  43. package/lib/test/key-server.js +30 -0
  44. package/lib/test/mem-registry.d.ts +14 -19
  45. package/lib/test/mem-registry.js +44 -37
  46. package/lib/test/sdk-suite.d.ts +1 -4
  47. package/lib/test/sdk-suite.js +16 -87
  48. package/lib/test/testbed.d.ts +5216 -5226
  49. package/lib/test/testbed.js +29 -56
  50. package/lib/types/index.d.ts +6 -11
  51. package/package.json +1 -4
  52. package/lib/contracts/app-registry/abi.d.ts +0 -1317
  53. package/lib/contracts/app-registry/abi.js +0 -1510
  54. package/lib/contracts/app-registry/index.d.ts +0 -173
  55. package/lib/contracts/app-registry/index.js +0 -294
  56. package/lib/contracts/membership-registry/index.d.ts +0 -79
  57. package/lib/contracts/membership-registry/index.js +0 -104
  58. package/lib/contracts/types.d.ts +0 -10
  59. package/lib/contracts/types.js +0 -12
  60. package/lib/harness/examples/hackmd/build-markdown-graph.d.ts +0 -1
  61. package/lib/harness/examples/hackmd/build-markdown-graph.js +0 -17
  62. package/lib/harness/index.d.ts +0 -58
  63. package/lib/harness/index.js +0 -73
  64. package/lib/registry.d.ts +0 -118
  65. package/lib/registry.js +0 -184
@@ -1,1317 +0,0 @@
1
- //#region src/contracts/app-registry/abi.d.ts
2
- /**
3
- * Generated from `forge inspect AppRegistry abi` in fangorn-network/contracts
4
- * (solidity/src/AppRegistry.sol). Regenerate with scripts/gen-abis.sh, do not edit.
5
- */
6
- declare const APP_REGISTRY_ABI: readonly [{
7
- readonly type: "constructor";
8
- readonly inputs: readonly [];
9
- readonly stateMutability: "nonpayable";
10
- }, {
11
- readonly type: "function";
12
- readonly name: "UPGRADE_INTERFACE_VERSION";
13
- readonly inputs: readonly [];
14
- readonly outputs: readonly [{
15
- readonly name: "";
16
- readonly type: "string";
17
- readonly internalType: "string";
18
- }];
19
- readonly stateMutability: "view";
20
- }, {
21
- readonly type: "function";
22
- readonly name: "acceptPublisher";
23
- readonly inputs: readonly [{
24
- readonly name: "app_id";
25
- readonly type: "bytes32";
26
- readonly internalType: "bytes32";
27
- }, {
28
- readonly name: "publisher";
29
- readonly type: "address";
30
- readonly internalType: "address";
31
- }];
32
- readonly outputs: readonly [];
33
- readonly stateMutability: "nonpayable";
34
- }, {
35
- readonly type: "function";
36
- readonly name: "access";
37
- readonly inputs: readonly [{
38
- readonly name: "app_id";
39
- readonly type: "bytes32";
40
- readonly internalType: "bytes32";
41
- }, {
42
- readonly name: "publisher";
43
- readonly type: "address";
44
- readonly internalType: "address";
45
- }];
46
- readonly outputs: readonly [{
47
- readonly name: "";
48
- readonly type: "bool";
49
- readonly internalType: "bool";
50
- }, {
51
- readonly name: "";
52
- readonly type: "address";
53
- readonly internalType: "address";
54
- }, {
55
- readonly name: "";
56
- readonly type: "uint64";
57
- readonly internalType: "uint64";
58
- }];
59
- readonly stateMutability: "view";
60
- }, {
61
- readonly type: "function";
62
- readonly name: "admin";
63
- readonly inputs: readonly [];
64
- readonly outputs: readonly [{
65
- readonly name: "";
66
- readonly type: "address";
67
- readonly internalType: "address";
68
- }];
69
- readonly stateMutability: "view";
70
- }, {
71
- readonly type: "function";
72
- readonly name: "appAgentUri";
73
- readonly inputs: readonly [{
74
- readonly name: "app_id";
75
- readonly type: "bytes32";
76
- readonly internalType: "bytes32";
77
- }];
78
- readonly outputs: readonly [{
79
- readonly name: "";
80
- readonly type: "string";
81
- readonly internalType: "string";
82
- }];
83
- readonly stateMutability: "view";
84
- }, {
85
- readonly type: "function";
86
- readonly name: "appCount";
87
- readonly inputs: readonly [];
88
- readonly outputs: readonly [{
89
- readonly name: "";
90
- readonly type: "uint256";
91
- readonly internalType: "uint256";
92
- }];
93
- readonly stateMutability: "view";
94
- }, {
95
- readonly type: "function";
96
- readonly name: "approve";
97
- readonly inputs: readonly [{
98
- readonly name: "to";
99
- readonly type: "address";
100
- readonly internalType: "address";
101
- }, {
102
- readonly name: "tokenId";
103
- readonly type: "uint256";
104
- readonly internalType: "uint256";
105
- }];
106
- readonly outputs: readonly [];
107
- readonly stateMutability: "nonpayable";
108
- }, {
109
- readonly type: "function";
110
- readonly name: "appsOf";
111
- readonly inputs: readonly [{
112
- readonly name: "owner";
113
- readonly type: "address";
114
- readonly internalType: "address";
115
- }];
116
- readonly outputs: readonly [{
117
- readonly name: "";
118
- readonly type: "bytes32[]";
119
- readonly internalType: "bytes32[]";
120
- }];
121
- readonly stateMutability: "view";
122
- }, {
123
- readonly type: "function";
124
- readonly name: "appsPage";
125
- readonly inputs: readonly [{
126
- readonly name: "offset";
127
- readonly type: "uint256";
128
- readonly internalType: "uint256";
129
- }, {
130
- readonly name: "limit";
131
- readonly type: "uint256";
132
- readonly internalType: "uint256";
133
- }];
134
- readonly outputs: readonly [{
135
- readonly name: "page";
136
- readonly type: "bytes32[]";
137
- readonly internalType: "bytes32[]";
138
- }];
139
- readonly stateMutability: "view";
140
- }, {
141
- readonly type: "function";
142
- readonly name: "balanceOf";
143
- readonly inputs: readonly [{
144
- readonly name: "owner";
145
- readonly type: "address";
146
- readonly internalType: "address";
147
- }];
148
- readonly outputs: readonly [{
149
- readonly name: "";
150
- readonly type: "uint256";
151
- readonly internalType: "uint256";
152
- }];
153
- readonly stateMutability: "view";
154
- }, {
155
- readonly type: "function";
156
- readonly name: "canPublish";
157
- readonly inputs: readonly [{
158
- readonly name: "app_id";
159
- readonly type: "bytes32";
160
- readonly internalType: "bytes32";
161
- }, {
162
- readonly name: "publisher";
163
- readonly type: "address";
164
- readonly internalType: "address";
165
- }];
166
- readonly outputs: readonly [{
167
- readonly name: "";
168
- readonly type: "bool";
169
- readonly internalType: "bool";
170
- }];
171
- readonly stateMutability: "view";
172
- }, {
173
- readonly type: "function";
174
- readonly name: "cancelSubscription";
175
- readonly inputs: readonly [{
176
- readonly name: "tokenId";
177
- readonly type: "uint256";
178
- readonly internalType: "uint256";
179
- }];
180
- readonly outputs: readonly [];
181
- readonly stateMutability: "payable";
182
- }, {
183
- readonly type: "function";
184
- readonly name: "dataRegistry";
185
- readonly inputs: readonly [];
186
- readonly outputs: readonly [{
187
- readonly name: "";
188
- readonly type: "address";
189
- readonly internalType: "address";
190
- }];
191
- readonly stateMutability: "view";
192
- }, {
193
- readonly type: "function";
194
- readonly name: "exclude";
195
- readonly inputs: readonly [{
196
- readonly name: "app_id";
197
- readonly type: "bytes32";
198
- readonly internalType: "bytes32";
199
- }, {
200
- readonly name: "publisher";
201
- readonly type: "address";
202
- readonly internalType: "address";
203
- }, {
204
- readonly name: "repo_id";
205
- readonly type: "bytes32";
206
- readonly internalType: "bytes32";
207
- }, {
208
- readonly name: "key_id";
209
- readonly type: "bytes32";
210
- readonly internalType: "bytes32";
211
- }];
212
- readonly outputs: readonly [];
213
- readonly stateMutability: "nonpayable";
214
- }, {
215
- readonly type: "function";
216
- readonly name: "exclusionCount";
217
- readonly inputs: readonly [{
218
- readonly name: "";
219
- readonly type: "bytes32";
220
- readonly internalType: "bytes32";
221
- }, {
222
- readonly name: "";
223
- readonly type: "bytes32";
224
- readonly internalType: "bytes32";
225
- }];
226
- readonly outputs: readonly [{
227
- readonly name: "";
228
- readonly type: "uint64";
229
- readonly internalType: "uint64";
230
- }];
231
- readonly stateMutability: "view";
232
- }, {
233
- readonly type: "function";
234
- readonly name: "exclusionId";
235
- readonly inputs: readonly [{
236
- readonly name: "publisher";
237
- readonly type: "address";
238
- readonly internalType: "address";
239
- }, {
240
- readonly name: "repo_id";
241
- readonly type: "bytes32";
242
- readonly internalType: "bytes32";
243
- }, {
244
- readonly name: "key_id";
245
- readonly type: "bytes32";
246
- readonly internalType: "bytes32";
247
- }];
248
- readonly outputs: readonly [{
249
- readonly name: "";
250
- readonly type: "bytes32";
251
- readonly internalType: "bytes32";
252
- }];
253
- readonly stateMutability: "pure";
254
- }, {
255
- readonly type: "function";
256
- readonly name: "expiresAt";
257
- readonly inputs: readonly [{
258
- readonly name: "tokenId";
259
- readonly type: "uint256";
260
- readonly internalType: "uint256";
261
- }];
262
- readonly outputs: readonly [{
263
- readonly name: "";
264
- readonly type: "uint64";
265
- readonly internalType: "uint64";
266
- }];
267
- readonly stateMutability: "view";
268
- }, {
269
- readonly type: "function";
270
- readonly name: "getAppOwner";
271
- readonly inputs: readonly [{
272
- readonly name: "app_id";
273
- readonly type: "bytes32";
274
- readonly internalType: "bytes32";
275
- }];
276
- readonly outputs: readonly [{
277
- readonly name: "";
278
- readonly type: "address";
279
- readonly internalType: "address";
280
- }];
281
- readonly stateMutability: "view";
282
- }, {
283
- readonly type: "function";
284
- readonly name: "getApproved";
285
- readonly inputs: readonly [{
286
- readonly name: "tokenId";
287
- readonly type: "uint256";
288
- readonly internalType: "uint256";
289
- }];
290
- readonly outputs: readonly [{
291
- readonly name: "";
292
- readonly type: "address";
293
- readonly internalType: "address";
294
- }];
295
- readonly stateMutability: "view";
296
- }, {
297
- readonly type: "function";
298
- readonly name: "globalSuspensions";
299
- readonly inputs: readonly [{
300
- readonly name: "";
301
- readonly type: "address";
302
- readonly internalType: "address";
303
- }];
304
- readonly outputs: readonly [{
305
- readonly name: "";
306
- readonly type: "bool";
307
- readonly internalType: "bool";
308
- }];
309
- readonly stateMutability: "view";
310
- }, {
311
- readonly type: "function";
312
- readonly name: "initialize";
313
- readonly inputs: readonly [{
314
- readonly name: "admin_";
315
- readonly type: "address";
316
- readonly internalType: "address";
317
- }, {
318
- readonly name: "usdc_";
319
- readonly type: "address";
320
- readonly internalType: "address";
321
- }, {
322
- readonly name: "subscriptionFee_";
323
- readonly type: "uint256";
324
- readonly internalType: "uint256";
325
- }, {
326
- readonly name: "subscriptionPeriod_";
327
- readonly type: "uint64";
328
- readonly internalType: "uint64";
329
- }];
330
- readonly outputs: readonly [];
331
- readonly stateMutability: "nonpayable";
332
- }, {
333
- readonly type: "function";
334
- readonly name: "initializeV2";
335
- readonly inputs: readonly [{
336
- readonly name: "existing";
337
- readonly type: "bytes32[]";
338
- readonly internalType: "bytes32[]";
339
- }];
340
- readonly outputs: readonly [];
341
- readonly stateMutability: "nonpayable";
342
- }, {
343
- readonly type: "function";
344
- readonly name: "isAppSuspended";
345
- readonly inputs: readonly [{
346
- readonly name: "app_id";
347
- readonly type: "bytes32";
348
- readonly internalType: "bytes32";
349
- }];
350
- readonly outputs: readonly [{
351
- readonly name: "";
352
- readonly type: "bool";
353
- readonly internalType: "bool";
354
- }];
355
- readonly stateMutability: "view";
356
- }, {
357
- readonly type: "function";
358
- readonly name: "isApprovedForAll";
359
- readonly inputs: readonly [{
360
- readonly name: "owner";
361
- readonly type: "address";
362
- readonly internalType: "address";
363
- }, {
364
- readonly name: "operator";
365
- readonly type: "address";
366
- readonly internalType: "address";
367
- }];
368
- readonly outputs: readonly [{
369
- readonly name: "";
370
- readonly type: "bool";
371
- readonly internalType: "bool";
372
- }];
373
- readonly stateMutability: "view";
374
- }, {
375
- readonly type: "function";
376
- readonly name: "isRenewable";
377
- readonly inputs: readonly [{
378
- readonly name: "tokenId";
379
- readonly type: "uint256";
380
- readonly internalType: "uint256";
381
- }];
382
- readonly outputs: readonly [{
383
- readonly name: "";
384
- readonly type: "bool";
385
- readonly internalType: "bool";
386
- }];
387
- readonly stateMutability: "view";
388
- }, {
389
- readonly type: "function";
390
- readonly name: "joinFeesOwed";
391
- readonly inputs: readonly [{
392
- readonly name: "";
393
- readonly type: "address";
394
- readonly internalType: "address";
395
- }];
396
- readonly outputs: readonly [{
397
- readonly name: "";
398
- readonly type: "uint256";
399
- readonly internalType: "uint256";
400
- }];
401
- readonly stateMutability: "view";
402
- }, {
403
- readonly type: "function";
404
- readonly name: "name";
405
- readonly inputs: readonly [];
406
- readonly outputs: readonly [{
407
- readonly name: "";
408
- readonly type: "string";
409
- readonly internalType: "string";
410
- }];
411
- readonly stateMutability: "view";
412
- }, {
413
- readonly type: "function";
414
- readonly name: "ownerOf";
415
- readonly inputs: readonly [{
416
- readonly name: "tokenId";
417
- readonly type: "uint256";
418
- readonly internalType: "uint256";
419
- }];
420
- readonly outputs: readonly [{
421
- readonly name: "";
422
- readonly type: "address";
423
- readonly internalType: "address";
424
- }];
425
- readonly stateMutability: "view";
426
- }, {
427
- readonly type: "function";
428
- readonly name: "proxiableUUID";
429
- readonly inputs: readonly [];
430
- readonly outputs: readonly [{
431
- readonly name: "";
432
- readonly type: "bytes32";
433
- readonly internalType: "bytes32";
434
- }];
435
- readonly stateMutability: "view";
436
- }, {
437
- readonly type: "function";
438
- readonly name: "registerApp";
439
- readonly inputs: readonly [{
440
- readonly name: "app_id";
441
- readonly type: "bytes32";
442
- readonly internalType: "bytes32";
443
- }, {
444
- readonly name: "max_subscription_fee";
445
- readonly type: "uint256";
446
- readonly internalType: "uint256";
447
- }];
448
- readonly outputs: readonly [];
449
- readonly stateMutability: "nonpayable";
450
- }, {
451
- readonly type: "function";
452
- readonly name: "renewSubscription";
453
- readonly inputs: readonly [{
454
- readonly name: "tokenId";
455
- readonly type: "uint256";
456
- readonly internalType: "uint256";
457
- }, {
458
- readonly name: "duration";
459
- readonly type: "uint64";
460
- readonly internalType: "uint64";
461
- }];
462
- readonly outputs: readonly [];
463
- readonly stateMutability: "payable";
464
- }, {
465
- readonly type: "function";
466
- readonly name: "restore";
467
- readonly inputs: readonly [{
468
- readonly name: "app_id";
469
- readonly type: "bytes32";
470
- readonly internalType: "bytes32";
471
- }, {
472
- readonly name: "publisher";
473
- readonly type: "address";
474
- readonly internalType: "address";
475
- }, {
476
- readonly name: "repo_id";
477
- readonly type: "bytes32";
478
- readonly internalType: "bytes32";
479
- }, {
480
- readonly name: "key_id";
481
- readonly type: "bytes32";
482
- readonly internalType: "bytes32";
483
- }];
484
- readonly outputs: readonly [];
485
- readonly stateMutability: "nonpayable";
486
- }, {
487
- readonly type: "function";
488
- readonly name: "safeTransferFrom";
489
- readonly inputs: readonly [{
490
- readonly name: "from";
491
- readonly type: "address";
492
- readonly internalType: "address";
493
- }, {
494
- readonly name: "to";
495
- readonly type: "address";
496
- readonly internalType: "address";
497
- }, {
498
- readonly name: "tokenId";
499
- readonly type: "uint256";
500
- readonly internalType: "uint256";
501
- }];
502
- readonly outputs: readonly [];
503
- readonly stateMutability: "nonpayable";
504
- }, {
505
- readonly type: "function";
506
- readonly name: "safeTransferFrom";
507
- readonly inputs: readonly [{
508
- readonly name: "from";
509
- readonly type: "address";
510
- readonly internalType: "address";
511
- }, {
512
- readonly name: "to";
513
- readonly type: "address";
514
- readonly internalType: "address";
515
- }, {
516
- readonly name: "tokenId";
517
- readonly type: "uint256";
518
- readonly internalType: "uint256";
519
- }, {
520
- readonly name: "data";
521
- readonly type: "bytes";
522
- readonly internalType: "bytes";
523
- }];
524
- readonly outputs: readonly [];
525
- readonly stateMutability: "nonpayable";
526
- }, {
527
- readonly type: "function";
528
- readonly name: "setAdmin";
529
- readonly inputs: readonly [{
530
- readonly name: "new_admin";
531
- readonly type: "address";
532
- readonly internalType: "address";
533
- }];
534
- readonly outputs: readonly [];
535
- readonly stateMutability: "nonpayable";
536
- }, {
537
- readonly type: "function";
538
- readonly name: "setAppAgentUri";
539
- readonly inputs: readonly [{
540
- readonly name: "app_id";
541
- readonly type: "bytes32";
542
- readonly internalType: "bytes32";
543
- }, {
544
- readonly name: "agent_uri";
545
- readonly type: "string";
546
- readonly internalType: "string";
547
- }];
548
- readonly outputs: readonly [];
549
- readonly stateMutability: "nonpayable";
550
- }, {
551
- readonly type: "function";
552
- readonly name: "setAppSuspended";
553
- readonly inputs: readonly [{
554
- readonly name: "app_id";
555
- readonly type: "bytes32";
556
- readonly internalType: "bytes32";
557
- }, {
558
- readonly name: "is_suspended";
559
- readonly type: "bool";
560
- readonly internalType: "bool";
561
- }];
562
- readonly outputs: readonly [];
563
- readonly stateMutability: "nonpayable";
564
- }, {
565
- readonly type: "function";
566
- readonly name: "setApprovalForAll";
567
- readonly inputs: readonly [{
568
- readonly name: "operator";
569
- readonly type: "address";
570
- readonly internalType: "address";
571
- }, {
572
- readonly name: "approved";
573
- readonly type: "bool";
574
- readonly internalType: "bool";
575
- }];
576
- readonly outputs: readonly [];
577
- readonly stateMutability: "nonpayable";
578
- }, {
579
- readonly type: "function";
580
- readonly name: "setDataRegistry";
581
- readonly inputs: readonly [{
582
- readonly name: "registry";
583
- readonly type: "address";
584
- readonly internalType: "address";
585
- }];
586
- readonly outputs: readonly [];
587
- readonly stateMutability: "nonpayable";
588
- }, {
589
- readonly type: "function";
590
- readonly name: "setGlobalSuspension";
591
- readonly inputs: readonly [{
592
- readonly name: "publisher";
593
- readonly type: "address";
594
- readonly internalType: "address";
595
- }, {
596
- readonly name: "is_suspended";
597
- readonly type: "bool";
598
- readonly internalType: "bool";
599
- }];
600
- readonly outputs: readonly [];
601
- readonly stateMutability: "nonpayable";
602
- }, {
603
- readonly type: "function";
604
- readonly name: "setPublisherSuspended";
605
- readonly inputs: readonly [{
606
- readonly name: "app_id";
607
- readonly type: "bytes32";
608
- readonly internalType: "bytes32";
609
- }, {
610
- readonly name: "publisher";
611
- readonly type: "address";
612
- readonly internalType: "address";
613
- }, {
614
- readonly name: "is_suspended";
615
- readonly type: "bool";
616
- readonly internalType: "bool";
617
- }];
618
- readonly outputs: readonly [];
619
- readonly stateMutability: "nonpayable";
620
- }, {
621
- readonly type: "function";
622
- readonly name: "setSubscriptionFee";
623
- readonly inputs: readonly [{
624
- readonly name: "fee";
625
- readonly type: "uint256";
626
- readonly internalType: "uint256";
627
- }];
628
- readonly outputs: readonly [];
629
- readonly stateMutability: "nonpayable";
630
- }, {
631
- readonly type: "function";
632
- readonly name: "setSubscriptionPeriod";
633
- readonly inputs: readonly [{
634
- readonly name: "period";
635
- readonly type: "uint64";
636
- readonly internalType: "uint64";
637
- }];
638
- readonly outputs: readonly [];
639
- readonly stateMutability: "nonpayable";
640
- }, {
641
- readonly type: "function";
642
- readonly name: "statusForApp";
643
- readonly inputs: readonly [{
644
- readonly name: "";
645
- readonly type: "bytes32";
646
- readonly internalType: "bytes32";
647
- }, {
648
- readonly name: "";
649
- readonly type: "address";
650
- readonly internalType: "address";
651
- }];
652
- readonly outputs: readonly [{
653
- readonly name: "";
654
- readonly type: "uint8";
655
- readonly internalType: "enum AppRegistry.Status";
656
- }];
657
- readonly stateMutability: "view";
658
- }, {
659
- readonly type: "function";
660
- readonly name: "subscriptionFee";
661
- readonly inputs: readonly [];
662
- readonly outputs: readonly [{
663
- readonly name: "";
664
- readonly type: "uint256";
665
- readonly internalType: "uint256";
666
- }];
667
- readonly stateMutability: "view";
668
- }, {
669
- readonly type: "function";
670
- readonly name: "subscriptionPeriod";
671
- readonly inputs: readonly [];
672
- readonly outputs: readonly [{
673
- readonly name: "";
674
- readonly type: "uint64";
675
- readonly internalType: "uint64";
676
- }];
677
- readonly stateMutability: "view";
678
- }, {
679
- readonly type: "function";
680
- readonly name: "supportsInterface";
681
- readonly inputs: readonly [{
682
- readonly name: "interface_id";
683
- readonly type: "bytes4";
684
- readonly internalType: "bytes4";
685
- }];
686
- readonly outputs: readonly [{
687
- readonly name: "";
688
- readonly type: "bool";
689
- readonly internalType: "bool";
690
- }];
691
- readonly stateMutability: "view";
692
- }, {
693
- readonly type: "function";
694
- readonly name: "symbol";
695
- readonly inputs: readonly [];
696
- readonly outputs: readonly [{
697
- readonly name: "";
698
- readonly type: "string";
699
- readonly internalType: "string";
700
- }];
701
- readonly stateMutability: "view";
702
- }, {
703
- readonly type: "function";
704
- readonly name: "tokenURI";
705
- readonly inputs: readonly [{
706
- readonly name: "tokenId";
707
- readonly type: "uint256";
708
- readonly internalType: "uint256";
709
- }];
710
- readonly outputs: readonly [{
711
- readonly name: "";
712
- readonly type: "string";
713
- readonly internalType: "string";
714
- }];
715
- readonly stateMutability: "view";
716
- }, {
717
- readonly type: "function";
718
- readonly name: "totalJoinFeesOwed";
719
- readonly inputs: readonly [];
720
- readonly outputs: readonly [{
721
- readonly name: "";
722
- readonly type: "uint256";
723
- readonly internalType: "uint256";
724
- }];
725
- readonly stateMutability: "view";
726
- }, {
727
- readonly type: "function";
728
- readonly name: "transferFrom";
729
- readonly inputs: readonly [{
730
- readonly name: "from";
731
- readonly type: "address";
732
- readonly internalType: "address";
733
- }, {
734
- readonly name: "to";
735
- readonly type: "address";
736
- readonly internalType: "address";
737
- }, {
738
- readonly name: "tokenId";
739
- readonly type: "uint256";
740
- readonly internalType: "uint256";
741
- }];
742
- readonly outputs: readonly [];
743
- readonly stateMutability: "nonpayable";
744
- }, {
745
- readonly type: "function";
746
- readonly name: "upgradeToAndCall";
747
- readonly inputs: readonly [{
748
- readonly name: "newImplementation";
749
- readonly type: "address";
750
- readonly internalType: "address";
751
- }, {
752
- readonly name: "data";
753
- readonly type: "bytes";
754
- readonly internalType: "bytes";
755
- }];
756
- readonly outputs: readonly [];
757
- readonly stateMutability: "payable";
758
- }, {
759
- readonly type: "function";
760
- readonly name: "usdc";
761
- readonly inputs: readonly [];
762
- readonly outputs: readonly [{
763
- readonly name: "";
764
- readonly type: "address";
765
- readonly internalType: "address";
766
- }];
767
- readonly stateMutability: "view";
768
- }, {
769
- readonly type: "function";
770
- readonly name: "withdrawJoinFees";
771
- readonly inputs: readonly [{
772
- readonly name: "to";
773
- readonly type: "address";
774
- readonly internalType: "address";
775
- }];
776
- readonly outputs: readonly [];
777
- readonly stateMutability: "nonpayable";
778
- }, {
779
- readonly type: "function";
780
- readonly name: "withdrawToken";
781
- readonly inputs: readonly [{
782
- readonly name: "token";
783
- readonly type: "address";
784
- readonly internalType: "address";
785
- }, {
786
- readonly name: "to";
787
- readonly type: "address";
788
- readonly internalType: "address";
789
- }, {
790
- readonly name: "amount";
791
- readonly type: "uint256";
792
- readonly internalType: "uint256";
793
- }];
794
- readonly outputs: readonly [];
795
- readonly stateMutability: "nonpayable";
796
- }, {
797
- readonly type: "event";
798
- readonly name: "AdminChanged";
799
- readonly inputs: readonly [{
800
- readonly name: "previous_admin";
801
- readonly type: "address";
802
- readonly indexed: false;
803
- readonly internalType: "address";
804
- }, {
805
- readonly name: "new_admin";
806
- readonly type: "address";
807
- readonly indexed: false;
808
- readonly internalType: "address";
809
- }];
810
- readonly anonymous: false;
811
- }, {
812
- readonly type: "event";
813
- readonly name: "AppAgentChanged";
814
- readonly inputs: readonly [{
815
- readonly name: "app_id";
816
- readonly type: "bytes32";
817
- readonly indexed: true;
818
- readonly internalType: "bytes32";
819
- }, {
820
- readonly name: "agent_uri";
821
- readonly type: "string";
822
- readonly indexed: false;
823
- readonly internalType: "string";
824
- }];
825
- readonly anonymous: false;
826
- }, {
827
- readonly type: "event";
828
- readonly name: "AppRegistered";
829
- readonly inputs: readonly [{
830
- readonly name: "app_id";
831
- readonly type: "bytes32";
832
- readonly indexed: true;
833
- readonly internalType: "bytes32";
834
- }, {
835
- readonly name: "owner";
836
- readonly type: "address";
837
- readonly indexed: true;
838
- readonly internalType: "address";
839
- }];
840
- readonly anonymous: false;
841
- }, {
842
- readonly type: "event";
843
- readonly name: "AppSuspensionChanged";
844
- readonly inputs: readonly [{
845
- readonly name: "app_id";
846
- readonly type: "bytes32";
847
- readonly indexed: true;
848
- readonly internalType: "bytes32";
849
- }, {
850
- readonly name: "suspended";
851
- readonly type: "bool";
852
- readonly indexed: false;
853
- readonly internalType: "bool";
854
- }];
855
- readonly anonymous: false;
856
- }, {
857
- readonly type: "event";
858
- readonly name: "Approval";
859
- readonly inputs: readonly [{
860
- readonly name: "owner";
861
- readonly type: "address";
862
- readonly indexed: true;
863
- readonly internalType: "address";
864
- }, {
865
- readonly name: "approved";
866
- readonly type: "address";
867
- readonly indexed: true;
868
- readonly internalType: "address";
869
- }, {
870
- readonly name: "tokenId";
871
- readonly type: "uint256";
872
- readonly indexed: true;
873
- readonly internalType: "uint256";
874
- }];
875
- readonly anonymous: false;
876
- }, {
877
- readonly type: "event";
878
- readonly name: "ApprovalForAll";
879
- readonly inputs: readonly [{
880
- readonly name: "owner";
881
- readonly type: "address";
882
- readonly indexed: true;
883
- readonly internalType: "address";
884
- }, {
885
- readonly name: "operator";
886
- readonly type: "address";
887
- readonly indexed: true;
888
- readonly internalType: "address";
889
- }, {
890
- readonly name: "approved";
891
- readonly type: "bool";
892
- readonly indexed: false;
893
- readonly internalType: "bool";
894
- }];
895
- readonly anonymous: false;
896
- }, {
897
- readonly type: "event";
898
- readonly name: "DataRegistryChanged";
899
- readonly inputs: readonly [{
900
- readonly name: "previous_registry";
901
- readonly type: "address";
902
- readonly indexed: false;
903
- readonly internalType: "address";
904
- }, {
905
- readonly name: "new_registry";
906
- readonly type: "address";
907
- readonly indexed: false;
908
- readonly internalType: "address";
909
- }];
910
- readonly anonymous: false;
911
- }, {
912
- readonly type: "event";
913
- readonly name: "ExclusionChanged";
914
- readonly inputs: readonly [{
915
- readonly name: "app_id";
916
- readonly type: "bytes32";
917
- readonly indexed: true;
918
- readonly internalType: "bytes32";
919
- }, {
920
- readonly name: "publisher";
921
- readonly type: "address";
922
- readonly indexed: true;
923
- readonly internalType: "address";
924
- }, {
925
- readonly name: "exclusion_id";
926
- readonly type: "bytes32";
927
- readonly indexed: true;
928
- readonly internalType: "bytes32";
929
- }, {
930
- readonly name: "repo_id";
931
- readonly type: "bytes32";
932
- readonly indexed: false;
933
- readonly internalType: "bytes32";
934
- }, {
935
- readonly name: "key_id";
936
- readonly type: "bytes32";
937
- readonly indexed: false;
938
- readonly internalType: "bytes32";
939
- }, {
940
- readonly name: "count";
941
- readonly type: "uint64";
942
- readonly indexed: false;
943
- readonly internalType: "uint64";
944
- }];
945
- readonly anonymous: false;
946
- }, {
947
- readonly type: "event";
948
- readonly name: "GlobalSuspensionChanged";
949
- readonly inputs: readonly [{
950
- readonly name: "publisher";
951
- readonly type: "address";
952
- readonly indexed: true;
953
- readonly internalType: "address";
954
- }, {
955
- readonly name: "suspended";
956
- readonly type: "bool";
957
- readonly indexed: false;
958
- readonly internalType: "bool";
959
- }];
960
- readonly anonymous: false;
961
- }, {
962
- readonly type: "event";
963
- readonly name: "Initialized";
964
- readonly inputs: readonly [{
965
- readonly name: "version";
966
- readonly type: "uint64";
967
- readonly indexed: false;
968
- readonly internalType: "uint64";
969
- }];
970
- readonly anonymous: false;
971
- }, {
972
- readonly type: "event";
973
- readonly name: "JoinFeesWithdrawn";
974
- readonly inputs: readonly [{
975
- readonly name: "owner";
976
- readonly type: "address";
977
- readonly indexed: true;
978
- readonly internalType: "address";
979
- }, {
980
- readonly name: "to";
981
- readonly type: "address";
982
- readonly indexed: false;
983
- readonly internalType: "address";
984
- }, {
985
- readonly name: "amount";
986
- readonly type: "uint256";
987
- readonly indexed: false;
988
- readonly internalType: "uint256";
989
- }];
990
- readonly anonymous: false;
991
- }, {
992
- readonly type: "event";
993
- readonly name: "PublisherAccepted";
994
- readonly inputs: readonly [{
995
- readonly name: "app_id";
996
- readonly type: "bytes32";
997
- readonly indexed: true;
998
- readonly internalType: "bytes32";
999
- }, {
1000
- readonly name: "publisher";
1001
- readonly type: "address";
1002
- readonly indexed: true;
1003
- readonly internalType: "address";
1004
- }];
1005
- readonly anonymous: false;
1006
- }, {
1007
- readonly type: "event";
1008
- readonly name: "PublisherSuspensionChanged";
1009
- readonly inputs: readonly [{
1010
- readonly name: "app_id";
1011
- readonly type: "bytes32";
1012
- readonly indexed: true;
1013
- readonly internalType: "bytes32";
1014
- }, {
1015
- readonly name: "publisher";
1016
- readonly type: "address";
1017
- readonly indexed: true;
1018
- readonly internalType: "address";
1019
- }, {
1020
- readonly name: "suspended";
1021
- readonly type: "bool";
1022
- readonly indexed: false;
1023
- readonly internalType: "bool";
1024
- }];
1025
- readonly anonymous: false;
1026
- }, {
1027
- readonly type: "event";
1028
- readonly name: "SubscriptionFeeChanged";
1029
- readonly inputs: readonly [{
1030
- readonly name: "fee";
1031
- readonly type: "uint256";
1032
- readonly indexed: false;
1033
- readonly internalType: "uint256";
1034
- }];
1035
- readonly anonymous: false;
1036
- }, {
1037
- readonly type: "event";
1038
- readonly name: "SubscriptionPeriodChanged";
1039
- readonly inputs: readonly [{
1040
- readonly name: "period";
1041
- readonly type: "uint64";
1042
- readonly indexed: false;
1043
- readonly internalType: "uint64";
1044
- }];
1045
- readonly anonymous: false;
1046
- }, {
1047
- readonly type: "event";
1048
- readonly name: "SubscriptionUpdate";
1049
- readonly inputs: readonly [{
1050
- readonly name: "tokenId";
1051
- readonly type: "uint256";
1052
- readonly indexed: true;
1053
- readonly internalType: "uint256";
1054
- }, {
1055
- readonly name: "expiration";
1056
- readonly type: "uint64";
1057
- readonly indexed: false;
1058
- readonly internalType: "uint64";
1059
- }];
1060
- readonly anonymous: false;
1061
- }, {
1062
- readonly type: "event";
1063
- readonly name: "TokenWithdrawn";
1064
- readonly inputs: readonly [{
1065
- readonly name: "token";
1066
- readonly type: "address";
1067
- readonly indexed: true;
1068
- readonly internalType: "address";
1069
- }, {
1070
- readonly name: "to";
1071
- readonly type: "address";
1072
- readonly indexed: true;
1073
- readonly internalType: "address";
1074
- }, {
1075
- readonly name: "amount";
1076
- readonly type: "uint256";
1077
- readonly indexed: false;
1078
- readonly internalType: "uint256";
1079
- }];
1080
- readonly anonymous: false;
1081
- }, {
1082
- readonly type: "event";
1083
- readonly name: "Transfer";
1084
- readonly inputs: readonly [{
1085
- readonly name: "from";
1086
- readonly type: "address";
1087
- readonly indexed: true;
1088
- readonly internalType: "address";
1089
- }, {
1090
- readonly name: "to";
1091
- readonly type: "address";
1092
- readonly indexed: true;
1093
- readonly internalType: "address";
1094
- }, {
1095
- readonly name: "tokenId";
1096
- readonly type: "uint256";
1097
- readonly indexed: true;
1098
- readonly internalType: "uint256";
1099
- }];
1100
- readonly anonymous: false;
1101
- }, {
1102
- readonly type: "event";
1103
- readonly name: "Upgraded";
1104
- readonly inputs: readonly [{
1105
- readonly name: "implementation";
1106
- readonly type: "address";
1107
- readonly indexed: true;
1108
- readonly internalType: "address";
1109
- }];
1110
- readonly anonymous: false;
1111
- }, {
1112
- readonly type: "error";
1113
- readonly name: "AddressEmptyCode";
1114
- readonly inputs: readonly [{
1115
- readonly name: "target";
1116
- readonly type: "address";
1117
- readonly internalType: "address";
1118
- }];
1119
- }, {
1120
- readonly type: "error";
1121
- readonly name: "AlreadyAccepted";
1122
- readonly inputs: readonly [];
1123
- }, {
1124
- readonly type: "error";
1125
- readonly name: "AlreadyExcluded";
1126
- readonly inputs: readonly [];
1127
- }, {
1128
- readonly type: "error";
1129
- readonly name: "AppAlreadyRegistered";
1130
- readonly inputs: readonly [];
1131
- }, {
1132
- readonly type: "error";
1133
- readonly name: "AppNotFound";
1134
- readonly inputs: readonly [];
1135
- }, {
1136
- readonly type: "error";
1137
- readonly name: "CannotSuspendOwner";
1138
- readonly inputs: readonly [];
1139
- }, {
1140
- readonly type: "error";
1141
- readonly name: "DurationMismatch";
1142
- readonly inputs: readonly [];
1143
- }, {
1144
- readonly type: "error";
1145
- readonly name: "ERC1967InvalidImplementation";
1146
- readonly inputs: readonly [{
1147
- readonly name: "implementation";
1148
- readonly type: "address";
1149
- readonly internalType: "address";
1150
- }];
1151
- }, {
1152
- readonly type: "error";
1153
- readonly name: "ERC1967NonPayable";
1154
- readonly inputs: readonly [];
1155
- }, {
1156
- readonly type: "error";
1157
- readonly name: "ERC721IncorrectOwner";
1158
- readonly inputs: readonly [{
1159
- readonly name: "sender";
1160
- readonly type: "address";
1161
- readonly internalType: "address";
1162
- }, {
1163
- readonly name: "tokenId";
1164
- readonly type: "uint256";
1165
- readonly internalType: "uint256";
1166
- }, {
1167
- readonly name: "owner";
1168
- readonly type: "address";
1169
- readonly internalType: "address";
1170
- }];
1171
- }, {
1172
- readonly type: "error";
1173
- readonly name: "ERC721InsufficientApproval";
1174
- readonly inputs: readonly [{
1175
- readonly name: "operator";
1176
- readonly type: "address";
1177
- readonly internalType: "address";
1178
- }, {
1179
- readonly name: "tokenId";
1180
- readonly type: "uint256";
1181
- readonly internalType: "uint256";
1182
- }];
1183
- }, {
1184
- readonly type: "error";
1185
- readonly name: "ERC721InvalidApprover";
1186
- readonly inputs: readonly [{
1187
- readonly name: "approver";
1188
- readonly type: "address";
1189
- readonly internalType: "address";
1190
- }];
1191
- }, {
1192
- readonly type: "error";
1193
- readonly name: "ERC721InvalidOperator";
1194
- readonly inputs: readonly [{
1195
- readonly name: "operator";
1196
- readonly type: "address";
1197
- readonly internalType: "address";
1198
- }];
1199
- }, {
1200
- readonly type: "error";
1201
- readonly name: "ERC721InvalidOwner";
1202
- readonly inputs: readonly [{
1203
- readonly name: "owner";
1204
- readonly type: "address";
1205
- readonly internalType: "address";
1206
- }];
1207
- }, {
1208
- readonly type: "error";
1209
- readonly name: "ERC721InvalidReceiver";
1210
- readonly inputs: readonly [{
1211
- readonly name: "receiver";
1212
- readonly type: "address";
1213
- readonly internalType: "address";
1214
- }];
1215
- }, {
1216
- readonly type: "error";
1217
- readonly name: "ERC721InvalidSender";
1218
- readonly inputs: readonly [{
1219
- readonly name: "sender";
1220
- readonly type: "address";
1221
- readonly internalType: "address";
1222
- }];
1223
- }, {
1224
- readonly type: "error";
1225
- readonly name: "ERC721NonexistentToken";
1226
- readonly inputs: readonly [{
1227
- readonly name: "tokenId";
1228
- readonly type: "uint256";
1229
- readonly internalType: "uint256";
1230
- }];
1231
- }, {
1232
- readonly type: "error";
1233
- readonly name: "EthNotAccepted";
1234
- readonly inputs: readonly [];
1235
- }, {
1236
- readonly type: "error";
1237
- readonly name: "ExceedsProtocolBalance";
1238
- readonly inputs: readonly [];
1239
- }, {
1240
- readonly type: "error";
1241
- readonly name: "FailedCall";
1242
- readonly inputs: readonly [];
1243
- }, {
1244
- readonly type: "error";
1245
- readonly name: "InvalidInitialization";
1246
- readonly inputs: readonly [];
1247
- }, {
1248
- readonly type: "error";
1249
- readonly name: "NotAccepted";
1250
- readonly inputs: readonly [];
1251
- }, {
1252
- readonly type: "error";
1253
- readonly name: "NotExcluded";
1254
- readonly inputs: readonly [];
1255
- }, {
1256
- readonly type: "error";
1257
- readonly name: "NotInitializing";
1258
- readonly inputs: readonly [];
1259
- }, {
1260
- readonly type: "error";
1261
- readonly name: "NotTransferable";
1262
- readonly inputs: readonly [];
1263
- }, {
1264
- readonly type: "error";
1265
- readonly name: "NothingToWithdraw";
1266
- readonly inputs: readonly [];
1267
- }, {
1268
- readonly type: "error";
1269
- readonly name: "PublisherNotSuspended";
1270
- readonly inputs: readonly [];
1271
- }, {
1272
- readonly type: "error";
1273
- readonly name: "PublisherSuspendedGlobal";
1274
- readonly inputs: readonly [];
1275
- }, {
1276
- readonly type: "error";
1277
- readonly name: "ReentrancyGuardReentrantCall";
1278
- readonly inputs: readonly [];
1279
- }, {
1280
- readonly type: "error";
1281
- readonly name: "SubscriptionFeeRequired";
1282
- readonly inputs: readonly [];
1283
- }, {
1284
- readonly type: "error";
1285
- readonly name: "SubscriptionFeeTooHigh";
1286
- readonly inputs: readonly [];
1287
- }, {
1288
- readonly type: "error";
1289
- readonly name: "SubscriptionNotRenewable";
1290
- readonly inputs: readonly [];
1291
- }, {
1292
- readonly type: "error";
1293
- readonly name: "TransferFailed";
1294
- readonly inputs: readonly [];
1295
- }, {
1296
- readonly type: "error";
1297
- readonly name: "UUPSUnauthorizedCallContext";
1298
- readonly inputs: readonly [];
1299
- }, {
1300
- readonly type: "error";
1301
- readonly name: "UUPSUnsupportedProxiableUUID";
1302
- readonly inputs: readonly [{
1303
- readonly name: "slot";
1304
- readonly type: "bytes32";
1305
- readonly internalType: "bytes32";
1306
- }];
1307
- }, {
1308
- readonly type: "error";
1309
- readonly name: "Unauthorized";
1310
- readonly inputs: readonly [];
1311
- }, {
1312
- readonly type: "error";
1313
- readonly name: "ZeroPeriod";
1314
- readonly inputs: readonly [];
1315
- }];
1316
- //#endregion
1317
- export { APP_REGISTRY_ABI };