File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
src/lighthouseweb3/functions Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
class Config :
5
5
"""Config class for lighthouse"""
6
6
7
- lighthouse_api = "http://13.234.35.183:5050" # "https://api.lighthouse.storage"
7
+ # lighthouse_api = "http://13.234.35.183:5050" # "https://api.lighthouse.storage"
8
+ lighthouse_api = 'https://api.lighthouse.storage'
8
9
lighthouse_node = "https://node.lighthouse.storage"
9
10
lighthouse_bls_node = "https://encryption.lighthouse.storage"
10
- lighthouse_api_v2 = 'https://api.lighthouse.storage'
Original file line number Diff line number Diff line change 6
6
7
7
def get_deal_status (cid : str ) -> List [t .DealData ]:
8
8
try :
9
- url = f"{ Config .lighthouse_api_v2 } /api/lighthouse/deal_status?cid={ cid } "
9
+ url = f"{ Config .lighthouse_api } /api/lighthouse/deal_status?cid={ cid } "
10
10
response = requests .get (url )
11
11
response .raise_for_status ()
12
12
return response .json ()
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ def bytes_to_size(bytes_size):
14
14
15
15
def get_uploads (publicKey : str , pageNo : int = 1 ) -> t .UploadsResponseType :
16
16
try :
17
- url = f"{ Config .lighthouse_api_v2 } /api/user/files_uploaded?publicKey={ publicKey } &pageNo={ pageNo } "
17
+ url = f"{ Config .lighthouse_api } /api/user/files_uploaded?publicKey={ publicKey } &pageNo={ pageNo } "
18
18
response = requests .get (url )
19
19
response .raise_for_status ()
20
20
return response .json ()
You can’t perform that action at this time.
0 commit comments