synapse-filecoin-sdk 0.1.0__py3-none-any.whl

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