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,161 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [],
5
+ "stateMutability": "nonpayable"
6
+ },
7
+ {
8
+ "type": "function",
9
+ "inputs": [
10
+ {
11
+ "name": "providerId",
12
+ "internalType": "uint256",
13
+ "type": "uint256"
14
+ }
15
+ ],
16
+ "name": "addProviderId",
17
+ "outputs": [],
18
+ "stateMutability": "nonpayable"
19
+ },
20
+ {
21
+ "type": "function",
22
+ "inputs": [
23
+ {
24
+ "name": "providerId",
25
+ "internalType": "uint256",
26
+ "type": "uint256"
27
+ }
28
+ ],
29
+ "name": "containsProviderId",
30
+ "outputs": [
31
+ {
32
+ "name": "",
33
+ "internalType": "bool",
34
+ "type": "bool"
35
+ }
36
+ ],
37
+ "stateMutability": "view"
38
+ },
39
+ {
40
+ "type": "function",
41
+ "inputs": [],
42
+ "name": "getProviderIds",
43
+ "outputs": [
44
+ {
45
+ "name": "",
46
+ "internalType": "uint256[]",
47
+ "type": "uint256[]"
48
+ }
49
+ ],
50
+ "stateMutability": "view"
51
+ },
52
+ {
53
+ "type": "function",
54
+ "inputs": [],
55
+ "name": "owner",
56
+ "outputs": [
57
+ {
58
+ "name": "",
59
+ "internalType": "address",
60
+ "type": "address"
61
+ }
62
+ ],
63
+ "stateMutability": "view"
64
+ },
65
+ {
66
+ "type": "function",
67
+ "inputs": [
68
+ {
69
+ "name": "providerId",
70
+ "internalType": "uint256",
71
+ "type": "uint256"
72
+ }
73
+ ],
74
+ "name": "removeProviderId",
75
+ "outputs": [],
76
+ "stateMutability": "nonpayable"
77
+ },
78
+ {
79
+ "type": "function",
80
+ "inputs": [],
81
+ "name": "renounceOwnership",
82
+ "outputs": [],
83
+ "stateMutability": "nonpayable"
84
+ },
85
+ {
86
+ "type": "function",
87
+ "inputs": [
88
+ {
89
+ "name": "newOwner",
90
+ "internalType": "address",
91
+ "type": "address"
92
+ }
93
+ ],
94
+ "name": "transferOwnership",
95
+ "outputs": [],
96
+ "stateMutability": "nonpayable"
97
+ },
98
+ {
99
+ "type": "event",
100
+ "anonymous": false,
101
+ "inputs": [
102
+ {
103
+ "name": "previousOwner",
104
+ "internalType": "address",
105
+ "type": "address",
106
+ "indexed": true
107
+ },
108
+ {
109
+ "name": "newOwner",
110
+ "internalType": "address",
111
+ "type": "address",
112
+ "indexed": true
113
+ }
114
+ ],
115
+ "name": "OwnershipTransferred"
116
+ },
117
+ {
118
+ "type": "error",
119
+ "inputs": [
120
+ {
121
+ "name": "owner",
122
+ "internalType": "address",
123
+ "type": "address"
124
+ }
125
+ ],
126
+ "name": "OwnableInvalidOwner"
127
+ },
128
+ {
129
+ "type": "error",
130
+ "inputs": [
131
+ {
132
+ "name": "account",
133
+ "internalType": "address",
134
+ "type": "address"
135
+ }
136
+ ],
137
+ "name": "OwnableUnauthorizedAccount"
138
+ },
139
+ {
140
+ "type": "error",
141
+ "inputs": [
142
+ {
143
+ "name": "providerId",
144
+ "internalType": "uint256",
145
+ "type": "uint256"
146
+ }
147
+ ],
148
+ "name": "ProviderIdNotFound"
149
+ },
150
+ {
151
+ "type": "error",
152
+ "inputs": [
153
+ {
154
+ "name": "providerId",
155
+ "internalType": "uint256",
156
+ "type": "uint256"
157
+ }
158
+ ],
159
+ "name": "ProviderIdTooLarge"
160
+ }
161
+ ]