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