Skip to content

Commit

Permalink
[UPDATE] Odyssey Support for AI Agents (#21)
Browse files Browse the repository at this point in the history
* Removed parental limitation on IPA

* Updated to 15 parent protocol changes

* Created 2 new scripts for generating Python classes from contract abi

* Generated all new python classes for protocol 1.2

* Added royalty isWhitelisted read fns

* Updated createCollection to protocol 1.2 and created integration test

* Added SPG fns to python classes

* Updated license module to protocol 1.2

* Added registerPILTerms fn to license module

* Disabled all functions except mintAndRegisterIpAssetWithPilTerms

* Updated license terms util

* Only allow Odyssey

* Updated some test cases for Odyssey support

* New release to PyPi and updated readme for odyssey
  • Loading branch information
aandrewchung authored Dec 20, 2024
1 parent 430d221 commit 6fdaad8
Show file tree
Hide file tree
Showing 78 changed files with 23,205 additions and 11,872 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ To set up the SDK client, import `StoryClient` from `story_protocol_python_sdk`.
from story_protocol_python_sdk import StoryClient

# Create StoryClient instance
sepolia_chain_id = 11155111
story_client = StoryClient(web3, account, sepolia_chain_id)
odyssey_chain_id = 1516
story_client = StoryClient(web3, account, odyssey_chain_id)
```

## Release
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
from setuptools import setup, find_packages

#python setup.py sdist
#twine upload dist/*

setup(
name='story_protocol_python_sdk',
version='0.3.2',
version='0.3.4',
packages=find_packages(where='src', exclude=["tests"]),
package_dir={'': 'src'},
install_requires=[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, web3: Web3):
break
if not contract_address:
raise ValueError(f"Contract address for AccessController not found in config.json")
abi_path = os.path.join(os.path.dirname(__file__), 'AccessController.json')
abi_path = os.path.join(os.path.dirname(__file__), '..', '..', 'abi', 'jsons', 'AccessController.json')
with open(abi_path, 'r') as abi_file:
abi = json.load(abi_file)
self.contract = self.web3.eth.contract(address=contract_address, abi=abi)
Expand Down
Loading

0 comments on commit 6fdaad8

Please sign in to comment.