@fangorn-network/sdk 0.1.0 → 0.1.1

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