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.
- pynapse/__init__.py +6 -0
- pynapse/_version.py +1 -0
- pynapse/contracts/__init__.py +34 -0
- pynapse/contracts/abi_registry.py +11 -0
- pynapse/contracts/addresses.json +30 -0
- pynapse/contracts/erc20_abi.json +92 -0
- pynapse/contracts/errorsAbi.json +933 -0
- pynapse/contracts/filecoinPayV1Abi.json +2424 -0
- pynapse/contracts/filecoinWarmStorageServiceAbi.json +2363 -0
- pynapse/contracts/filecoinWarmStorageServiceStateViewAbi.json +651 -0
- pynapse/contracts/generated.py +35 -0
- pynapse/contracts/payments_abi.json +205 -0
- pynapse/contracts/pdpVerifierAbi.json +1266 -0
- pynapse/contracts/providerIdSetAbi.json +161 -0
- pynapse/contracts/serviceProviderRegistryAbi.json +1479 -0
- pynapse/contracts/sessionKeyRegistryAbi.json +147 -0
- pynapse/core/__init__.py +68 -0
- pynapse/core/abis.py +25 -0
- pynapse/core/chains.py +97 -0
- pynapse/core/constants.py +27 -0
- pynapse/core/errors.py +22 -0
- pynapse/core/piece.py +263 -0
- pynapse/core/rand.py +14 -0
- pynapse/core/typed_data.py +320 -0
- pynapse/core/utils.py +30 -0
- pynapse/evm/__init__.py +3 -0
- pynapse/evm/client.py +26 -0
- pynapse/filbeam/__init__.py +3 -0
- pynapse/filbeam/service.py +39 -0
- pynapse/payments/__init__.py +17 -0
- pynapse/payments/service.py +826 -0
- pynapse/pdp/__init__.py +21 -0
- pynapse/pdp/server.py +331 -0
- pynapse/pdp/types.py +38 -0
- pynapse/pdp/verifier.py +82 -0
- pynapse/retriever/__init__.py +12 -0
- pynapse/retriever/async_chain.py +227 -0
- pynapse/retriever/chain.py +209 -0
- pynapse/session/__init__.py +12 -0
- pynapse/session/key.py +30 -0
- pynapse/session/permissions.py +57 -0
- pynapse/session/registry.py +90 -0
- pynapse/sp_registry/__init__.py +11 -0
- pynapse/sp_registry/capabilities.py +25 -0
- pynapse/sp_registry/pdp_capabilities.py +102 -0
- pynapse/sp_registry/service.py +446 -0
- pynapse/sp_registry/types.py +52 -0
- pynapse/storage/__init__.py +57 -0
- pynapse/storage/async_context.py +682 -0
- pynapse/storage/async_manager.py +757 -0
- pynapse/storage/context.py +680 -0
- pynapse/storage/manager.py +758 -0
- pynapse/synapse.py +191 -0
- pynapse/utils/__init__.py +25 -0
- pynapse/utils/constants.py +25 -0
- pynapse/utils/errors.py +3 -0
- pynapse/utils/metadata.py +35 -0
- pynapse/utils/piece_url.py +16 -0
- pynapse/warm_storage/__init__.py +13 -0
- pynapse/warm_storage/service.py +513 -0
- synapse_filecoin_sdk-0.1.0.dist-info/METADATA +74 -0
- synapse_filecoin_sdk-0.1.0.dist-info/RECORD +64 -0
- synapse_filecoin_sdk-0.1.0.dist-info/WHEEL +4 -0
- 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
|
+
]
|