Skip to content

Commit ed13dab

Browse files
authored
Merge pull request #77 from singnet/development
Release version 3.6.1
2 parents 9507541 + 63644c4 commit ed13dab

5 files changed

Lines changed: 11 additions & 9 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The package is published in PyPI at the following link:
1616
The SingularityNET SDK allows you to make calls to SingularityNET services programmatically from your application.
1717
To communicate between clients and services, SingularityNET uses [gRPC](https://grpc.io/).
1818
To handle payment of services, SingularityNET uses
19-
[Ethereum state channels](https://dev.singularitynet.io/docs/concepts/multi-party-escrow/).
19+
[Ethereum state channels](https://dev.singularitynet.io/docs/ai-consumers/mpe/).
2020
The SingularityNET SDK abstracts and manages state channels with service providers on behalf of the user and
2121
handles authentication with the SingularityNET services.
2222

@@ -144,18 +144,19 @@ If you want to use the free calls you will need to pass these arguments to the `
144144

145145
```python
146146
free_call_auth_token_bin = "f2548d27ffd319b9c05918eeac15ebab934e5cfcd68e1ec3db2b92765",
147-
free_call_token_expiry_block = 172800
147+
free_call_token_expiry_block = 172800,
148+
email = "test@test.com" # which using in AI marketplace account
148149
```
149150

150151
You can receive these for a given service from the [Dapp](https://beta.singularitynet.io/)
151152

152153
Creating a service client with free calls included would look like this:
153154
```python
154155
service_client = snet_sdk.create_service_client(org_id="26072b8b6a0e448180f8c0e702ab6d2f",
155-
service_id="Exampleservice",
156-
group_name="default_group",
156+
service_id="Exampleservice"
157157
free_call_auth_token_bin="f2548d27ffd319b9c05918eeac15ebab934e5cfcd68e1ec3db2b92765",
158-
free_call_token_expiry_block=172800)
158+
free_call_token_expiry_block=172800,
159+
email="test@mail.com")
159160
```
160161

161162
### Paid call

docs/storage_provider/service_metadata.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## module: sdk.storage_provider.service_metadata
22

3-
[Link](https://github.com/singnet/snet-sdk-python/blob/master/snet/sdk/metadata_provider/service_metadata.py) to GitHub
3+
[Link](https://github.com/singnet/snet-sdk-python/blob/master/snet/sdk/storage_provider/service_metadata.py) to GitHub
44

55
Entities:
66
1. [AssetType](#class-assettype)

snet/sdk/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def create_service_client(self, org_id: str, service_id: str, group_name=None,
8282
payment_channel_management_strategy=None,
8383
free_call_auth_token_bin=None,
8484
free_call_token_expiry_block=None,
85+
email=None,
8586
options=None,
8687
concurrent_calls=1):
8788

@@ -108,7 +109,7 @@ def create_service_client(self, org_id: str, service_id: str, group_name=None,
108109
free_call_token_expiry_block else ""
109110
options['free-call-token-expiry-block'] = free_call_token_expiry_block if\
110111
free_call_token_expiry_block else 0
111-
options['email'] = self._sdk_config.get("email", "")
112+
options['email'] = email if email else ""
112113
options['concurrency'] = self._sdk_config.get("concurrency", True)
113114

114115
service_metadata = self._metadata_provider.enhance_service_metadata(org_id, service_id)

snet/sdk/storage_provider/storage_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def fetch_org_metadata(self,org_id):
2424
if org_provider_type == "ipfs":
2525
org_metadata_json = get_from_ipfs_and_checkhash(self._ipfs_client, org_metadata_hash)
2626
else:
27-
org_metadata_json, _ = self.lighthouse_client.download(org_metadata_uri)
27+
org_metadata_json, _ = self.lighthouse_client.download(org_metadata_hash)
2828
org_metadata = json.loads(org_metadata_json)
2929

3030
return org_metadata

version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "3.6.0"
1+
__version__ = "3.6.1"

0 commit comments

Comments
 (0)