diff --git a/CHANGELOG.md b/CHANGELOG.md index 5dc6f48..7b692b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ # Change Log -## Unreleased +## 2.1.0 ### Added +* Added Tinyman V2 (Mainnet) support. * Added `client_name` attribute to `TinymanClient` classes. [#51](https://github.com/tinymanorg/tinyman-py-sdk/pull/51) * Added note to application call transactions. The note (`tinyman/:j{"origin":""}`) follows [Algorand Transaction Note Field Conventions ARC-2](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md). [#51](https://github.com/tinymanorg/tinyman-py-sdk/pull/51) * Added `version` property and `generate_app_call_note` method to `TinymanClient` classes. [#51](https://github.com/tinymanorg/tinyman-py-sdk/pull/51) @@ -17,7 +18,7 @@ ### Added -* Added Tinyman V2 support (`tinyman.v2`). +* Added Tinyman V2 (Testnet) support (`tinyman.v2`). * Added Staking support (`tinyman.staking`). - It allows creating commitment transaction by `prepare_commit_transaction` and tracking commitments by `parse_commit_transaction`. * Added `calculate_price_impact` function to `tinyman.utils`. diff --git a/README.md b/README.md index b7125fa..1ddea3d 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ The SDK supports Tinyman V2 and V1.1. ## Requirements - Python 3.8+ -- py-algorand-sdk 1.10.0+ +- py-algorand-sdk 1.10.0+, <2.0.0 ## Installation tinyman-py-sdk is not released on PYPI. It can be installed directly from this repository with pip: diff --git a/setup.py b/setup.py index 78897a0..f063b5a 100644 --- a/setup.py +++ b/setup.py @@ -9,14 +9,14 @@ description="Tinyman Python SDK", author="Tinyman", author_email="hello@tinyman.org", - version="2.0.0", + version="2.1.0", long_description=long_description, long_description_content_type="text/markdown", license="MIT", project_urls={ "Source": "https://github.com/tinyman/tinyman-py-sdk", }, - install_requires=["py-algorand-sdk >= 1.10.0"], + install_requires=["py-algorand-sdk >= 1.10.0, <2.0.0"], packages=setuptools.find_packages(), python_requires=">=3.8", package_data={"tinyman.v1": ["asc.json"], "tinyman.v2": ["amm_approval.map.json"]}, diff --git a/tinyman/v2/constants.py b/tinyman/v2/constants.py index 3d84002..3b43d33 100644 --- a/tinyman/v2/constants.py +++ b/tinyman/v2/constants.py @@ -28,10 +28,10 @@ TESTNET_VALIDATOR_APP_ID_V2 = 148607000 -MAINNET_VALIDATOR_APP_ID_V2 = None +MAINNET_VALIDATOR_APP_ID_V2 = 1002541853 TESTNET_VALIDATOR_APP_ID = TESTNET_VALIDATOR_APP_ID_V2 -MAINNET_VALIDATOR_APP_ID = None +MAINNET_VALIDATOR_APP_ID = MAINNET_VALIDATOR_APP_ID_V2 TESTNET_VALIDATOR_APP_ADDRESS = get_application_address(TESTNET_VALIDATOR_APP_ID) # MAINNET_VALIDATOR_APP_ADDRESS = get_application_address(MAINNET_VALIDATOR_APP_ID)