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