Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ omit =
# omit tests
tests/*
branch = true

2 changes: 1 addition & 1 deletion .env-example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
WALLET_PRIVATE_KEY=YOUR-PRIVATE-WALLET-KEY
RPC_PROVIDER_URL=YOUR_RPC_URL
ETHERSCAN_API_KEY=YOUR-ETHERSCAN-API-KEY-HERE
ETHERSCAN_API_KEY=YOUR-ETHERSCAN-API-KEY-HERE
8 changes: 4 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ This pr adds user login function, includes:
- 1. add user login page.
- 2. ...

## Test Plan
<!-- The test plan section indicates detailed steps on how to verify and test code changes.
## Test Plan
<!-- The test plan section indicates detailed steps on how to verify and test code changes.
You can list the test cases or test steps that need to be performed.-->
Example:
Example:
- 1. Use different test accounts for login tests, including correct user names and passwords, and incorrect user names and passwords.
- 2. ...

Expand All @@ -21,4 +21,4 @@ Example: Issue #123
## Notes
<!-- The Important Matters section can alert others to special requirements or matters that need extra attention -->

- Example: Links and navigation need to be added to the front-end interface
- Example: Links and navigation need to be added to the front-end interface
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ virtualenv/
web3py.md

# AI Assistant Configuration
CLAUDE.md
CLAUDE.md
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ repos:
rev: v0.8.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes]
args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes]
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.ht
[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
https://www.contributor-covenant.org/faq
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ To make it easier for your PR to receive reviews, consider the reviewers will ne

[1]: https://github.com/storyprotocol/typescript-sdk/issues
[2]: https://chris.beams.io/posts/git-commit/#seven-rules
[3]: https://google.github.io/styleguide/tsguide.html
[3]: https://google.github.io/styleguide/tsguide.html
2 changes: 1 addition & 1 deletion DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,4 @@ Before submitting a pull request:
3. Update tests if adding new functionality
4. Follow the existing code style and patterns

See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ include LICENSE
include requirements.txt
recursive-include src *.py *.json
recursive-include src/story_protocol_python_sdk/abi *.json
recursive-include src/story_protocol_python_sdk/scripts *.json
recursive-include src/story_protocol_python_sdk/scripts *.json
4 changes: 3 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ markers =
addopts = -v -ra

# ignore directories
norecursedirs = *.egg .git .* _darcs build dist venv
norecursedirs = *.egg .git .* _darcs build dist venv

pythonpath = tests/integration tests/integration/config tests/unit tests/demo
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from setuptools import setup, find_packages
from setuptools import find_packages, setup

# python setup.py sdist
# twine upload dist/*
Expand Down
7 changes: 3 additions & 4 deletions src/story_protocol_python_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
__version__ = "0.3.14"

from .story_client import StoryClient
from .resources.Dispute import Dispute
from .resources.IPAccount import IPAccount
from .resources.IPAsset import IPAsset
from .resources.License import License
from .resources.Royalty import Royalty
from .resources.IPAccount import IPAccount
from .resources.Dispute import Dispute
from .resources.WIP import WIP

from .story_client import StoryClient

__all__ = [
"StoryClient",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for AccessController not found in config.json"
"Contract address for AccessController not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for ArbitrationPolicyUMA not found in config.json"
"Contract address for ArbitrationPolicyUMA not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for CoreMetadataModule not found in config.json"
"Contract address for CoreMetadataModule not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -22,7 +23,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for CoreMetadataViewModule not found in config.json"
"Contract address for CoreMetadataViewModule not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for DerivativeWorkflows not found in config.json"
"Contract address for DerivativeWorkflows not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for DisputeModule not found in config.json"
"Contract address for DisputeModule not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__), "..", "..", "abi", "jsons", "DisputeModule.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for GroupingModule not found in config.json"
"Contract address for GroupingModule not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__), "..", "..", "abi", "jsons", "GroupingModule.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for GroupingWorkflows not found in config.json"
"Contract address for GroupingWorkflows not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for IPAssetRegistry not found in config.json"
"Contract address for IPAssetRegistry not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for LicenseAttachmentWorkflows not found in config.json"
"Contract address for LicenseAttachmentWorkflows not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for LicenseRegistry not found in config.json"
"Contract address for LicenseRegistry not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for LicenseToken not found in config.json"
"Contract address for LicenseToken not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__), "..", "..", "abi", "jsons", "LicenseToken.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for LicensingModule not found in config.json"
"Contract address for LicensingModule not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -20,7 +21,7 @@ def __init__(self, web3: Web3):
contract_address = contract["contract_address"]
break
if not contract_address:
raise ValueError(f"Contract address for MockERC20 not found in config.json")
raise ValueError("Contract address for MockERC20 not found in config.json")
abi_path = os.path.join(
os.path.dirname(__file__), "..", "..", "abi", "jsons", "MockERC20.json"
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for ModuleRegistry not found in config.json"
"Contract address for ModuleRegistry not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__), "..", "..", "abi", "jsons", "ModuleRegistry.json"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for PILicenseTemplate not found in config.json"
"Contract address for PILicenseTemplate not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import json
import os

from web3 import Web3


Expand All @@ -21,7 +22,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(
f"Contract address for RegistrationWorkflows not found in config.json"
"Contract address for RegistrationWorkflows not found in config.json"
)
abi_path = os.path.join(
os.path.dirname(__file__),
Expand Down
Loading
Loading