hippius 0.2.23__tar.gz → 0.2.24__tar.gz
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.
- {hippius-0.2.23 → hippius-0.2.24}/PKG-INFO +1 -1
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/__init__.py +1 -1
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/ipfs.py +3 -1
- {hippius-0.2.23 → hippius-0.2.24}/pyproject.toml +1 -1
- {hippius-0.2.23 → hippius-0.2.24}/README.md +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/cli.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/cli_assets.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/cli_handlers.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/cli_parser.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/cli_rich.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/client.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/config.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/db/README.md +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/db/env.db.template +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/db/migrations/20241201000001_create_key_storage_tables.sql +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/db/setup_database.sh +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/db_utils.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/errors.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/ipfs_core.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/key_storage.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/substrate.py +0 -0
- {hippius-0.2.23 → hippius-0.2.24}/hippius_sdk/utils.py +0 -0
@@ -26,7 +26,7 @@ from hippius_sdk.config import (
|
|
26
26
|
from hippius_sdk.ipfs import IPFSClient, S3PublishResult, S3DownloadResult
|
27
27
|
from hippius_sdk.utils import format_cid, format_size, hex_to_ipfs_cid
|
28
28
|
|
29
|
-
__version__ = "0.2.
|
29
|
+
__version__ = "0.2.24"
|
30
30
|
__all__ = [
|
31
31
|
"HippiusClient",
|
32
32
|
"IPFSClient",
|
@@ -1941,6 +1941,7 @@ class IPFSClient:
|
|
1941
1941
|
seed_phrase: str,
|
1942
1942
|
store_node: str = "http://localhost:5001",
|
1943
1943
|
pin_node: str = "https://store.hippius.network",
|
1944
|
+
substrate_url: str = "wss://rpc.hippius.network",
|
1944
1945
|
) -> S3PublishResult:
|
1945
1946
|
"""
|
1946
1947
|
Publish a file to IPFS and the Hippius marketplace in one operation.
|
@@ -1961,6 +1962,7 @@ class IPFSClient:
|
|
1961
1962
|
seed_phrase: Seed phrase for blockchain transaction signing
|
1962
1963
|
store_node: IPFS node URL for initial upload (default: local node)
|
1963
1964
|
pin_node: IPFS node URL for backup pinning (default: remote service)
|
1965
|
+
substrate_url: the substrate url to connect to for the storage request.
|
1964
1966
|
|
1965
1967
|
Returns:
|
1966
1968
|
S3PublishResult: Object containing CID, file info, and transaction hash
|
@@ -2068,7 +2070,7 @@ class IPFSClient:
|
|
2068
2070
|
# Publish to substrate marketplace
|
2069
2071
|
try:
|
2070
2072
|
# Pass the seed phrase directly to avoid password prompts for encrypted config
|
2071
|
-
substrate_client = SubstrateClient(seed_phrase=seed_phrase)
|
2073
|
+
substrate_client = SubstrateClient(seed_phrase=seed_phrase, url=substrate_url)
|
2072
2074
|
logger.info(
|
2073
2075
|
f"Submitting storage request to substrate for file: {filename}, CID: {cid}"
|
2074
2076
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|