From 30297c3f0f1cc585ad0d143f4012348f87aa3761 Mon Sep 17 00:00:00 2001 From: Goksel Coban Date: Thu, 5 Jan 2023 13:24:42 +0300 Subject: [PATCH 1/4] update changelog --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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`. From fc4dbbc373786b4b926c2a6d9f11e96ed4949032 Mon Sep 17 00:00:00 2001 From: Goksel Coban Date: Thu, 5 Jan 2023 13:33:51 +0300 Subject: [PATCH 2/4] update requirements --- README.md | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..bbc5c5e 100644 --- a/setup.py +++ b/setup.py @@ -16,7 +16,7 @@ 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"]}, From eaec56ec14c174ed376d73b5443b2baf65489436 Mon Sep 17 00:00:00 2001 From: Goksel Coban Date: Thu, 5 Jan 2023 14:16:59 +0300 Subject: [PATCH 3/4] bump version to 2.1.0 --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bbc5c5e..f063b5a 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ 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", From 92ced12a95f3f5b38d18a72b4d186c39fade6ef3 Mon Sep 17 00:00:00 2001 From: Goksel Coban Date: Thu, 5 Jan 2023 17:29:42 +0300 Subject: [PATCH 4/4] add tinyman v2 mainnet app id --- tinyman/v2/constants.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)