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