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,1266 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "inputs": [],
10
+ "name": "MAX_ENQUEUED_REMOVALS",
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_PIECE_SIZE_LOG2",
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": "NO_CHALLENGE_SCHEDULED",
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": "NO_PROVEN_EPOCH",
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": "setId",
90
+ "internalType": "uint256",
91
+ "type": "uint256"
92
+ },
93
+ {
94
+ "name": "listenerAddr",
95
+ "internalType": "address",
96
+ "type": "address"
97
+ },
98
+ {
99
+ "name": "pieceData",
100
+ "internalType": "struct Cids.Cid[]",
101
+ "type": "tuple[]",
102
+ "components": [
103
+ {
104
+ "name": "data",
105
+ "internalType": "bytes",
106
+ "type": "bytes"
107
+ }
108
+ ]
109
+ },
110
+ {
111
+ "name": "extraData",
112
+ "internalType": "bytes",
113
+ "type": "bytes"
114
+ }
115
+ ],
116
+ "name": "addPieces",
117
+ "outputs": [
118
+ {
119
+ "name": "",
120
+ "internalType": "uint256",
121
+ "type": "uint256"
122
+ }
123
+ ],
124
+ "stateMutability": "payable"
125
+ },
126
+ {
127
+ "type": "function",
128
+ "inputs": [
129
+ {
130
+ "name": "setId",
131
+ "internalType": "uint256",
132
+ "type": "uint256"
133
+ }
134
+ ],
135
+ "name": "calculateProofFee",
136
+ "outputs": [
137
+ {
138
+ "name": "",
139
+ "internalType": "uint256",
140
+ "type": "uint256"
141
+ }
142
+ ],
143
+ "stateMutability": "view"
144
+ },
145
+ {
146
+ "type": "function",
147
+ "inputs": [
148
+ {
149
+ "name": "proofSize",
150
+ "internalType": "uint256",
151
+ "type": "uint256"
152
+ }
153
+ ],
154
+ "name": "calculateProofFeeForSize",
155
+ "outputs": [
156
+ {
157
+ "name": "",
158
+ "internalType": "uint256",
159
+ "type": "uint256"
160
+ }
161
+ ],
162
+ "stateMutability": "view"
163
+ },
164
+ {
165
+ "type": "function",
166
+ "inputs": [
167
+ {
168
+ "name": "setId",
169
+ "internalType": "uint256",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "name": "extraData",
174
+ "internalType": "bytes",
175
+ "type": "bytes"
176
+ }
177
+ ],
178
+ "name": "claimDataSetStorageProvider",
179
+ "outputs": [],
180
+ "stateMutability": "nonpayable"
181
+ },
182
+ {
183
+ "type": "function",
184
+ "inputs": [
185
+ {
186
+ "name": "listenerAddr",
187
+ "internalType": "address",
188
+ "type": "address"
189
+ },
190
+ {
191
+ "name": "extraData",
192
+ "internalType": "bytes",
193
+ "type": "bytes"
194
+ }
195
+ ],
196
+ "name": "createDataSet",
197
+ "outputs": [
198
+ {
199
+ "name": "",
200
+ "internalType": "uint256",
201
+ "type": "uint256"
202
+ }
203
+ ],
204
+ "stateMutability": "payable"
205
+ },
206
+ {
207
+ "type": "function",
208
+ "inputs": [
209
+ {
210
+ "name": "setId",
211
+ "internalType": "uint256",
212
+ "type": "uint256"
213
+ }
214
+ ],
215
+ "name": "dataSetLive",
216
+ "outputs": [
217
+ {
218
+ "name": "",
219
+ "internalType": "bool",
220
+ "type": "bool"
221
+ }
222
+ ],
223
+ "stateMutability": "view"
224
+ },
225
+ {
226
+ "type": "function",
227
+ "inputs": [
228
+ {
229
+ "name": "setId",
230
+ "internalType": "uint256",
231
+ "type": "uint256"
232
+ },
233
+ {
234
+ "name": "extraData",
235
+ "internalType": "bytes",
236
+ "type": "bytes"
237
+ }
238
+ ],
239
+ "name": "deleteDataSet",
240
+ "outputs": [],
241
+ "stateMutability": "nonpayable"
242
+ },
243
+ {
244
+ "type": "function",
245
+ "inputs": [],
246
+ "name": "feeEffectiveTime",
247
+ "outputs": [
248
+ {
249
+ "name": "",
250
+ "internalType": "uint64",
251
+ "type": "uint64"
252
+ }
253
+ ],
254
+ "stateMutability": "view"
255
+ },
256
+ {
257
+ "type": "function",
258
+ "inputs": [],
259
+ "name": "feePerTiB",
260
+ "outputs": [
261
+ {
262
+ "name": "",
263
+ "internalType": "uint96",
264
+ "type": "uint96"
265
+ }
266
+ ],
267
+ "stateMutability": "view"
268
+ },
269
+ {
270
+ "type": "function",
271
+ "inputs": [
272
+ {
273
+ "name": "setId",
274
+ "internalType": "uint256",
275
+ "type": "uint256"
276
+ },
277
+ {
278
+ "name": "leafIndexs",
279
+ "internalType": "uint256[]",
280
+ "type": "uint256[]"
281
+ }
282
+ ],
283
+ "name": "findPieceIds",
284
+ "outputs": [
285
+ {
286
+ "name": "",
287
+ "internalType": "struct IPDPTypes.PieceIdAndOffset[]",
288
+ "type": "tuple[]",
289
+ "components": [
290
+ {
291
+ "name": "pieceId",
292
+ "internalType": "uint256",
293
+ "type": "uint256"
294
+ },
295
+ {
296
+ "name": "offset",
297
+ "internalType": "uint256",
298
+ "type": "uint256"
299
+ }
300
+ ]
301
+ }
302
+ ],
303
+ "stateMutability": "view"
304
+ },
305
+ {
306
+ "type": "function",
307
+ "inputs": [
308
+ {
309
+ "name": "setId",
310
+ "internalType": "uint256",
311
+ "type": "uint256"
312
+ }
313
+ ],
314
+ "name": "getActivePieceCount",
315
+ "outputs": [
316
+ {
317
+ "name": "activeCount",
318
+ "internalType": "uint256",
319
+ "type": "uint256"
320
+ }
321
+ ],
322
+ "stateMutability": "view"
323
+ },
324
+ {
325
+ "type": "function",
326
+ "inputs": [
327
+ {
328
+ "name": "setId",
329
+ "internalType": "uint256",
330
+ "type": "uint256"
331
+ },
332
+ {
333
+ "name": "offset",
334
+ "internalType": "uint256",
335
+ "type": "uint256"
336
+ },
337
+ {
338
+ "name": "limit",
339
+ "internalType": "uint256",
340
+ "type": "uint256"
341
+ }
342
+ ],
343
+ "name": "getActivePieces",
344
+ "outputs": [
345
+ {
346
+ "name": "pieces",
347
+ "internalType": "struct Cids.Cid[]",
348
+ "type": "tuple[]",
349
+ "components": [
350
+ {
351
+ "name": "data",
352
+ "internalType": "bytes",
353
+ "type": "bytes"
354
+ }
355
+ ]
356
+ },
357
+ {
358
+ "name": "pieceIds",
359
+ "internalType": "uint256[]",
360
+ "type": "uint256[]"
361
+ },
362
+ {
363
+ "name": "hasMore",
364
+ "internalType": "bool",
365
+ "type": "bool"
366
+ }
367
+ ],
368
+ "stateMutability": "view"
369
+ },
370
+ {
371
+ "type": "function",
372
+ "inputs": [],
373
+ "name": "getChallengeFinality",
374
+ "outputs": [
375
+ {
376
+ "name": "",
377
+ "internalType": "uint256",
378
+ "type": "uint256"
379
+ }
380
+ ],
381
+ "stateMutability": "view"
382
+ },
383
+ {
384
+ "type": "function",
385
+ "inputs": [
386
+ {
387
+ "name": "setId",
388
+ "internalType": "uint256",
389
+ "type": "uint256"
390
+ }
391
+ ],
392
+ "name": "getChallengeRange",
393
+ "outputs": [
394
+ {
395
+ "name": "",
396
+ "internalType": "uint256",
397
+ "type": "uint256"
398
+ }
399
+ ],
400
+ "stateMutability": "view"
401
+ },
402
+ {
403
+ "type": "function",
404
+ "inputs": [
405
+ {
406
+ "name": "setId",
407
+ "internalType": "uint256",
408
+ "type": "uint256"
409
+ }
410
+ ],
411
+ "name": "getDataSetLastProvenEpoch",
412
+ "outputs": [
413
+ {
414
+ "name": "",
415
+ "internalType": "uint256",
416
+ "type": "uint256"
417
+ }
418
+ ],
419
+ "stateMutability": "view"
420
+ },
421
+ {
422
+ "type": "function",
423
+ "inputs": [
424
+ {
425
+ "name": "setId",
426
+ "internalType": "uint256",
427
+ "type": "uint256"
428
+ }
429
+ ],
430
+ "name": "getDataSetLeafCount",
431
+ "outputs": [
432
+ {
433
+ "name": "",
434
+ "internalType": "uint256",
435
+ "type": "uint256"
436
+ }
437
+ ],
438
+ "stateMutability": "view"
439
+ },
440
+ {
441
+ "type": "function",
442
+ "inputs": [
443
+ {
444
+ "name": "setId",
445
+ "internalType": "uint256",
446
+ "type": "uint256"
447
+ }
448
+ ],
449
+ "name": "getDataSetListener",
450
+ "outputs": [
451
+ {
452
+ "name": "",
453
+ "internalType": "address",
454
+ "type": "address"
455
+ }
456
+ ],
457
+ "stateMutability": "view"
458
+ },
459
+ {
460
+ "type": "function",
461
+ "inputs": [
462
+ {
463
+ "name": "setId",
464
+ "internalType": "uint256",
465
+ "type": "uint256"
466
+ }
467
+ ],
468
+ "name": "getDataSetStorageProvider",
469
+ "outputs": [
470
+ {
471
+ "name": "",
472
+ "internalType": "address",
473
+ "type": "address"
474
+ },
475
+ {
476
+ "name": "",
477
+ "internalType": "address",
478
+ "type": "address"
479
+ }
480
+ ],
481
+ "stateMutability": "view"
482
+ },
483
+ {
484
+ "type": "function",
485
+ "inputs": [
486
+ {
487
+ "name": "setId",
488
+ "internalType": "uint256",
489
+ "type": "uint256"
490
+ }
491
+ ],
492
+ "name": "getNextChallengeEpoch",
493
+ "outputs": [
494
+ {
495
+ "name": "",
496
+ "internalType": "uint256",
497
+ "type": "uint256"
498
+ }
499
+ ],
500
+ "stateMutability": "view"
501
+ },
502
+ {
503
+ "type": "function",
504
+ "inputs": [],
505
+ "name": "getNextDataSetId",
506
+ "outputs": [
507
+ {
508
+ "name": "",
509
+ "internalType": "uint64",
510
+ "type": "uint64"
511
+ }
512
+ ],
513
+ "stateMutability": "view"
514
+ },
515
+ {
516
+ "type": "function",
517
+ "inputs": [
518
+ {
519
+ "name": "setId",
520
+ "internalType": "uint256",
521
+ "type": "uint256"
522
+ }
523
+ ],
524
+ "name": "getNextPieceId",
525
+ "outputs": [
526
+ {
527
+ "name": "",
528
+ "internalType": "uint256",
529
+ "type": "uint256"
530
+ }
531
+ ],
532
+ "stateMutability": "view"
533
+ },
534
+ {
535
+ "type": "function",
536
+ "inputs": [
537
+ {
538
+ "name": "setId",
539
+ "internalType": "uint256",
540
+ "type": "uint256"
541
+ },
542
+ {
543
+ "name": "pieceId",
544
+ "internalType": "uint256",
545
+ "type": "uint256"
546
+ }
547
+ ],
548
+ "name": "getPieceCid",
549
+ "outputs": [
550
+ {
551
+ "name": "",
552
+ "internalType": "struct Cids.Cid",
553
+ "type": "tuple",
554
+ "components": [
555
+ {
556
+ "name": "data",
557
+ "internalType": "bytes",
558
+ "type": "bytes"
559
+ }
560
+ ]
561
+ }
562
+ ],
563
+ "stateMutability": "view"
564
+ },
565
+ {
566
+ "type": "function",
567
+ "inputs": [
568
+ {
569
+ "name": "setId",
570
+ "internalType": "uint256",
571
+ "type": "uint256"
572
+ },
573
+ {
574
+ "name": "pieceId",
575
+ "internalType": "uint256",
576
+ "type": "uint256"
577
+ }
578
+ ],
579
+ "name": "getPieceLeafCount",
580
+ "outputs": [
581
+ {
582
+ "name": "",
583
+ "internalType": "uint256",
584
+ "type": "uint256"
585
+ }
586
+ ],
587
+ "stateMutability": "view"
588
+ },
589
+ {
590
+ "type": "function",
591
+ "inputs": [
592
+ {
593
+ "name": "epoch",
594
+ "internalType": "uint256",
595
+ "type": "uint256"
596
+ }
597
+ ],
598
+ "name": "getRandomness",
599
+ "outputs": [
600
+ {
601
+ "name": "",
602
+ "internalType": "uint256",
603
+ "type": "uint256"
604
+ }
605
+ ],
606
+ "stateMutability": "view"
607
+ },
608
+ {
609
+ "type": "function",
610
+ "inputs": [
611
+ {
612
+ "name": "setId",
613
+ "internalType": "uint256",
614
+ "type": "uint256"
615
+ }
616
+ ],
617
+ "name": "getScheduledRemovals",
618
+ "outputs": [
619
+ {
620
+ "name": "",
621
+ "internalType": "uint256[]",
622
+ "type": "uint256[]"
623
+ }
624
+ ],
625
+ "stateMutability": "view"
626
+ },
627
+ {
628
+ "type": "function",
629
+ "inputs": [
630
+ {
631
+ "name": "_challengeFinality",
632
+ "internalType": "uint256",
633
+ "type": "uint256"
634
+ }
635
+ ],
636
+ "name": "initialize",
637
+ "outputs": [],
638
+ "stateMutability": "nonpayable"
639
+ },
640
+ {
641
+ "type": "function",
642
+ "inputs": [],
643
+ "name": "migrate",
644
+ "outputs": [],
645
+ "stateMutability": "nonpayable"
646
+ },
647
+ {
648
+ "type": "function",
649
+ "inputs": [
650
+ {
651
+ "name": "setId",
652
+ "internalType": "uint256",
653
+ "type": "uint256"
654
+ },
655
+ {
656
+ "name": "challengeEpoch",
657
+ "internalType": "uint256",
658
+ "type": "uint256"
659
+ },
660
+ {
661
+ "name": "extraData",
662
+ "internalType": "bytes",
663
+ "type": "bytes"
664
+ }
665
+ ],
666
+ "name": "nextProvingPeriod",
667
+ "outputs": [],
668
+ "stateMutability": "nonpayable"
669
+ },
670
+ {
671
+ "type": "function",
672
+ "inputs": [],
673
+ "name": "owner",
674
+ "outputs": [
675
+ {
676
+ "name": "",
677
+ "internalType": "address",
678
+ "type": "address"
679
+ }
680
+ ],
681
+ "stateMutability": "view"
682
+ },
683
+ {
684
+ "type": "function",
685
+ "inputs": [
686
+ {
687
+ "name": "setId",
688
+ "internalType": "uint256",
689
+ "type": "uint256"
690
+ },
691
+ {
692
+ "name": "pieceId",
693
+ "internalType": "uint256",
694
+ "type": "uint256"
695
+ }
696
+ ],
697
+ "name": "pieceChallengable",
698
+ "outputs": [
699
+ {
700
+ "name": "",
701
+ "internalType": "bool",
702
+ "type": "bool"
703
+ }
704
+ ],
705
+ "stateMutability": "view"
706
+ },
707
+ {
708
+ "type": "function",
709
+ "inputs": [
710
+ {
711
+ "name": "setId",
712
+ "internalType": "uint256",
713
+ "type": "uint256"
714
+ },
715
+ {
716
+ "name": "pieceId",
717
+ "internalType": "uint256",
718
+ "type": "uint256"
719
+ }
720
+ ],
721
+ "name": "pieceLive",
722
+ "outputs": [
723
+ {
724
+ "name": "",
725
+ "internalType": "bool",
726
+ "type": "bool"
727
+ }
728
+ ],
729
+ "stateMutability": "view"
730
+ },
731
+ {
732
+ "type": "function",
733
+ "inputs": [
734
+ {
735
+ "name": "setId",
736
+ "internalType": "uint256",
737
+ "type": "uint256"
738
+ },
739
+ {
740
+ "name": "newStorageProvider",
741
+ "internalType": "address",
742
+ "type": "address"
743
+ }
744
+ ],
745
+ "name": "proposeDataSetStorageProvider",
746
+ "outputs": [],
747
+ "stateMutability": "nonpayable"
748
+ },
749
+ {
750
+ "type": "function",
751
+ "inputs": [],
752
+ "name": "proposedFeePerTiB",
753
+ "outputs": [
754
+ {
755
+ "name": "",
756
+ "internalType": "uint96",
757
+ "type": "uint96"
758
+ }
759
+ ],
760
+ "stateMutability": "view"
761
+ },
762
+ {
763
+ "type": "function",
764
+ "inputs": [
765
+ {
766
+ "name": "setId",
767
+ "internalType": "uint256",
768
+ "type": "uint256"
769
+ },
770
+ {
771
+ "name": "proofs",
772
+ "internalType": "struct IPDPTypes.Proof[]",
773
+ "type": "tuple[]",
774
+ "components": [
775
+ {
776
+ "name": "leaf",
777
+ "internalType": "bytes32",
778
+ "type": "bytes32"
779
+ },
780
+ {
781
+ "name": "proof",
782
+ "internalType": "bytes32[]",
783
+ "type": "bytes32[]"
784
+ }
785
+ ]
786
+ }
787
+ ],
788
+ "name": "provePossession",
789
+ "outputs": [],
790
+ "stateMutability": "payable"
791
+ },
792
+ {
793
+ "type": "function",
794
+ "inputs": [],
795
+ "name": "proxiableUUID",
796
+ "outputs": [
797
+ {
798
+ "name": "",
799
+ "internalType": "bytes32",
800
+ "type": "bytes32"
801
+ }
802
+ ],
803
+ "stateMutability": "view"
804
+ },
805
+ {
806
+ "type": "function",
807
+ "inputs": [],
808
+ "name": "renounceOwnership",
809
+ "outputs": [],
810
+ "stateMutability": "nonpayable"
811
+ },
812
+ {
813
+ "type": "function",
814
+ "inputs": [
815
+ {
816
+ "name": "setId",
817
+ "internalType": "uint256",
818
+ "type": "uint256"
819
+ },
820
+ {
821
+ "name": "pieceIds",
822
+ "internalType": "uint256[]",
823
+ "type": "uint256[]"
824
+ },
825
+ {
826
+ "name": "extraData",
827
+ "internalType": "bytes",
828
+ "type": "bytes"
829
+ }
830
+ ],
831
+ "name": "schedulePieceDeletions",
832
+ "outputs": [],
833
+ "stateMutability": "nonpayable"
834
+ },
835
+ {
836
+ "type": "function",
837
+ "inputs": [
838
+ {
839
+ "name": "newOwner",
840
+ "internalType": "address",
841
+ "type": "address"
842
+ }
843
+ ],
844
+ "name": "transferOwnership",
845
+ "outputs": [],
846
+ "stateMutability": "nonpayable"
847
+ },
848
+ {
849
+ "type": "function",
850
+ "inputs": [
851
+ {
852
+ "name": "newFeePerTiB",
853
+ "internalType": "uint256",
854
+ "type": "uint256"
855
+ }
856
+ ],
857
+ "name": "updateProofFee",
858
+ "outputs": [],
859
+ "stateMutability": "nonpayable"
860
+ },
861
+ {
862
+ "type": "function",
863
+ "inputs": [
864
+ {
865
+ "name": "newImplementation",
866
+ "internalType": "address",
867
+ "type": "address"
868
+ },
869
+ {
870
+ "name": "data",
871
+ "internalType": "bytes",
872
+ "type": "bytes"
873
+ }
874
+ ],
875
+ "name": "upgradeToAndCall",
876
+ "outputs": [],
877
+ "stateMutability": "payable"
878
+ },
879
+ {
880
+ "type": "event",
881
+ "anonymous": false,
882
+ "inputs": [
883
+ {
884
+ "name": "version",
885
+ "internalType": "string",
886
+ "type": "string",
887
+ "indexed": false
888
+ },
889
+ {
890
+ "name": "implementation",
891
+ "internalType": "address",
892
+ "type": "address",
893
+ "indexed": false
894
+ }
895
+ ],
896
+ "name": "ContractUpgraded"
897
+ },
898
+ {
899
+ "type": "event",
900
+ "anonymous": false,
901
+ "inputs": [
902
+ {
903
+ "name": "setId",
904
+ "internalType": "uint256",
905
+ "type": "uint256",
906
+ "indexed": true
907
+ },
908
+ {
909
+ "name": "storageProvider",
910
+ "internalType": "address",
911
+ "type": "address",
912
+ "indexed": true
913
+ }
914
+ ],
915
+ "name": "DataSetCreated"
916
+ },
917
+ {
918
+ "type": "event",
919
+ "anonymous": false,
920
+ "inputs": [
921
+ {
922
+ "name": "setId",
923
+ "internalType": "uint256",
924
+ "type": "uint256",
925
+ "indexed": true
926
+ },
927
+ {
928
+ "name": "deletedLeafCount",
929
+ "internalType": "uint256",
930
+ "type": "uint256",
931
+ "indexed": false
932
+ }
933
+ ],
934
+ "name": "DataSetDeleted"
935
+ },
936
+ {
937
+ "type": "event",
938
+ "anonymous": false,
939
+ "inputs": [
940
+ {
941
+ "name": "setId",
942
+ "internalType": "uint256",
943
+ "type": "uint256",
944
+ "indexed": true
945
+ }
946
+ ],
947
+ "name": "DataSetEmpty"
948
+ },
949
+ {
950
+ "type": "event",
951
+ "anonymous": false,
952
+ "inputs": [
953
+ {
954
+ "name": "currentFee",
955
+ "internalType": "uint256",
956
+ "type": "uint256",
957
+ "indexed": false
958
+ },
959
+ {
960
+ "name": "newFee",
961
+ "internalType": "uint256",
962
+ "type": "uint256",
963
+ "indexed": false
964
+ },
965
+ {
966
+ "name": "effectiveTime",
967
+ "internalType": "uint256",
968
+ "type": "uint256",
969
+ "indexed": false
970
+ }
971
+ ],
972
+ "name": "FeeUpdateProposed"
973
+ },
974
+ {
975
+ "type": "event",
976
+ "anonymous": false,
977
+ "inputs": [
978
+ {
979
+ "name": "version",
980
+ "internalType": "uint64",
981
+ "type": "uint64",
982
+ "indexed": false
983
+ }
984
+ ],
985
+ "name": "Initialized"
986
+ },
987
+ {
988
+ "type": "event",
989
+ "anonymous": false,
990
+ "inputs": [
991
+ {
992
+ "name": "setId",
993
+ "internalType": "uint256",
994
+ "type": "uint256",
995
+ "indexed": true
996
+ },
997
+ {
998
+ "name": "challengeEpoch",
999
+ "internalType": "uint256",
1000
+ "type": "uint256",
1001
+ "indexed": false
1002
+ },
1003
+ {
1004
+ "name": "leafCount",
1005
+ "internalType": "uint256",
1006
+ "type": "uint256",
1007
+ "indexed": false
1008
+ }
1009
+ ],
1010
+ "name": "NextProvingPeriod"
1011
+ },
1012
+ {
1013
+ "type": "event",
1014
+ "anonymous": false,
1015
+ "inputs": [
1016
+ {
1017
+ "name": "previousOwner",
1018
+ "internalType": "address",
1019
+ "type": "address",
1020
+ "indexed": true
1021
+ },
1022
+ {
1023
+ "name": "newOwner",
1024
+ "internalType": "address",
1025
+ "type": "address",
1026
+ "indexed": true
1027
+ }
1028
+ ],
1029
+ "name": "OwnershipTransferred"
1030
+ },
1031
+ {
1032
+ "type": "event",
1033
+ "anonymous": false,
1034
+ "inputs": [
1035
+ {
1036
+ "name": "setId",
1037
+ "internalType": "uint256",
1038
+ "type": "uint256",
1039
+ "indexed": true
1040
+ },
1041
+ {
1042
+ "name": "pieceIds",
1043
+ "internalType": "uint256[]",
1044
+ "type": "uint256[]",
1045
+ "indexed": false
1046
+ },
1047
+ {
1048
+ "name": "pieceCids",
1049
+ "internalType": "struct Cids.Cid[]",
1050
+ "type": "tuple[]",
1051
+ "components": [
1052
+ {
1053
+ "name": "data",
1054
+ "internalType": "bytes",
1055
+ "type": "bytes"
1056
+ }
1057
+ ],
1058
+ "indexed": false
1059
+ }
1060
+ ],
1061
+ "name": "PiecesAdded"
1062
+ },
1063
+ {
1064
+ "type": "event",
1065
+ "anonymous": false,
1066
+ "inputs": [
1067
+ {
1068
+ "name": "setId",
1069
+ "internalType": "uint256",
1070
+ "type": "uint256",
1071
+ "indexed": true
1072
+ },
1073
+ {
1074
+ "name": "pieceIds",
1075
+ "internalType": "uint256[]",
1076
+ "type": "uint256[]",
1077
+ "indexed": false
1078
+ }
1079
+ ],
1080
+ "name": "PiecesRemoved"
1081
+ },
1082
+ {
1083
+ "type": "event",
1084
+ "anonymous": false,
1085
+ "inputs": [
1086
+ {
1087
+ "name": "setId",
1088
+ "internalType": "uint256",
1089
+ "type": "uint256",
1090
+ "indexed": true
1091
+ },
1092
+ {
1093
+ "name": "challenges",
1094
+ "internalType": "struct IPDPTypes.PieceIdAndOffset[]",
1095
+ "type": "tuple[]",
1096
+ "components": [
1097
+ {
1098
+ "name": "pieceId",
1099
+ "internalType": "uint256",
1100
+ "type": "uint256"
1101
+ },
1102
+ {
1103
+ "name": "offset",
1104
+ "internalType": "uint256",
1105
+ "type": "uint256"
1106
+ }
1107
+ ],
1108
+ "indexed": false
1109
+ }
1110
+ ],
1111
+ "name": "PossessionProven"
1112
+ },
1113
+ {
1114
+ "type": "event",
1115
+ "anonymous": false,
1116
+ "inputs": [
1117
+ {
1118
+ "name": "setId",
1119
+ "internalType": "uint256",
1120
+ "type": "uint256",
1121
+ "indexed": true
1122
+ },
1123
+ {
1124
+ "name": "fee",
1125
+ "internalType": "uint256",
1126
+ "type": "uint256",
1127
+ "indexed": false
1128
+ }
1129
+ ],
1130
+ "name": "ProofFeePaid"
1131
+ },
1132
+ {
1133
+ "type": "event",
1134
+ "anonymous": false,
1135
+ "inputs": [
1136
+ {
1137
+ "name": "setId",
1138
+ "internalType": "uint256",
1139
+ "type": "uint256",
1140
+ "indexed": true
1141
+ },
1142
+ {
1143
+ "name": "oldStorageProvider",
1144
+ "internalType": "address",
1145
+ "type": "address",
1146
+ "indexed": true
1147
+ },
1148
+ {
1149
+ "name": "newStorageProvider",
1150
+ "internalType": "address",
1151
+ "type": "address",
1152
+ "indexed": true
1153
+ }
1154
+ ],
1155
+ "name": "StorageProviderChanged"
1156
+ },
1157
+ {
1158
+ "type": "event",
1159
+ "anonymous": false,
1160
+ "inputs": [
1161
+ {
1162
+ "name": "implementation",
1163
+ "internalType": "address",
1164
+ "type": "address",
1165
+ "indexed": true
1166
+ }
1167
+ ],
1168
+ "name": "Upgraded"
1169
+ },
1170
+ {
1171
+ "type": "error",
1172
+ "inputs": [
1173
+ {
1174
+ "name": "target",
1175
+ "internalType": "address",
1176
+ "type": "address"
1177
+ }
1178
+ ],
1179
+ "name": "AddressEmptyCode"
1180
+ },
1181
+ {
1182
+ "type": "error",
1183
+ "inputs": [
1184
+ {
1185
+ "name": "implementation",
1186
+ "internalType": "address",
1187
+ "type": "address"
1188
+ }
1189
+ ],
1190
+ "name": "ERC1967InvalidImplementation"
1191
+ },
1192
+ {
1193
+ "type": "error",
1194
+ "inputs": [],
1195
+ "name": "ERC1967NonPayable"
1196
+ },
1197
+ {
1198
+ "type": "error",
1199
+ "inputs": [],
1200
+ "name": "FailedCall"
1201
+ },
1202
+ {
1203
+ "type": "error",
1204
+ "inputs": [
1205
+ {
1206
+ "name": "idx",
1207
+ "internalType": "uint256",
1208
+ "type": "uint256"
1209
+ },
1210
+ {
1211
+ "name": "msg",
1212
+ "internalType": "string",
1213
+ "type": "string"
1214
+ }
1215
+ ],
1216
+ "name": "IndexedError"
1217
+ },
1218
+ {
1219
+ "type": "error",
1220
+ "inputs": [],
1221
+ "name": "InvalidInitialization"
1222
+ },
1223
+ {
1224
+ "type": "error",
1225
+ "inputs": [],
1226
+ "name": "NotInitializing"
1227
+ },
1228
+ {
1229
+ "type": "error",
1230
+ "inputs": [
1231
+ {
1232
+ "name": "owner",
1233
+ "internalType": "address",
1234
+ "type": "address"
1235
+ }
1236
+ ],
1237
+ "name": "OwnableInvalidOwner"
1238
+ },
1239
+ {
1240
+ "type": "error",
1241
+ "inputs": [
1242
+ {
1243
+ "name": "account",
1244
+ "internalType": "address",
1245
+ "type": "address"
1246
+ }
1247
+ ],
1248
+ "name": "OwnableUnauthorizedAccount"
1249
+ },
1250
+ {
1251
+ "type": "error",
1252
+ "inputs": [],
1253
+ "name": "UUPSUnauthorizedCallContext"
1254
+ },
1255
+ {
1256
+ "type": "error",
1257
+ "inputs": [
1258
+ {
1259
+ "name": "slot",
1260
+ "internalType": "bytes32",
1261
+ "type": "bytes32"
1262
+ }
1263
+ ],
1264
+ "name": "UUPSUnsupportedProxiableUUID"
1265
+ }
1266
+ ]