From 99129d139b1129a38d930f322f8d731f24f0cfdf Mon Sep 17 00:00:00 2001 From: algobarb <78746954+algobarb@users.noreply.github.com> Date: Fri, 18 Aug 2023 16:31:39 -0400 Subject: [PATCH 1/3] fix pre-release-version description in create-release-pr workflow (#510) --- .github/workflows/create-release-pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-release-pr.yml b/.github/workflows/create-release-pr.yml index 7c3b64fc..a0100434 100644 --- a/.github/workflows/create-release-pr.yml +++ b/.github/workflows/create-release-pr.yml @@ -9,7 +9,7 @@ on: required: true type: string pre_release_version: - description: "Pre-Release version, e.g. 'b1', will be added behind the release_version in setup.py." + description: "(Optional) Pre-Release version, e.g. 'b1'. Used mainly to support consensus release on betanet." required: false type: string From 229a8d5e0137ba3419950bd0caa038642ab09d19 Mon Sep 17 00:00:00 2001 From: Will Winder Date: Wed, 20 Sep 2023 12:00:30 -0400 Subject: [PATCH 2/3] api: Sync client object. (#514) --- algosdk/v2client/algod.py | 16 ++++++++++++++++ tests/steps/other_v2_steps.py | 5 +++++ tests/unit.tags | 2 ++ 3 files changed, 23 insertions(+) diff --git a/algosdk/v2client/algod.py b/algosdk/v2client/algod.py index 73bec63c..bd2f4189 100644 --- a/algosdk/v2client/algod.py +++ b/algosdk/v2client/algod.py @@ -779,6 +779,22 @@ def get_ledger_state_delta_for_transaction_group( "GET", req, params=query, response_format=response_format, **kwargs ) + def get_block_txids( + self, round_num: int, **kwargs: Any + ) -> AlgodResponseType: + """ + Get the top level transaction IDs for the block + on the given round. + + Args: + round_num (int): The round in which the transaction appears. + + Returns: + Dict[str, Any]: Response from algod + """ + req = "/blocks/{}/txids".format(round_num) + return self.algod_request("GET", req, **kwargs) + def _specify_round_string( block: Union[int, None], round_num: Union[int, None] diff --git a/tests/steps/other_v2_steps.py b/tests/steps/other_v2_steps.py index 1064e4cf..9728a6ca 100644 --- a/tests/steps/other_v2_steps.py +++ b/tests/steps/other_v2_steps.py @@ -1693,3 +1693,8 @@ def get_ledger_state_delta_for_transaction_group(context, id): id, response_format="msgpack" ) ) + + +@when("we make a GetBlockTxids call against block number {round}") +def get_block_txids_call(context, round): + context.response = context.acl.get_block_txids(round) diff --git a/tests/unit.tags b/tests/unit.tags index 71ae9e27..a1e28d90 100644 --- a/tests/unit.tags +++ b/tests/unit.tags @@ -7,6 +7,7 @@ @unit.atc_method_args @unit.atomic_transaction_composer @unit.blocksummary +@unit.blocktxids @unit.dryrun @unit.dryrun.trace.application @unit.feetest @@ -23,6 +24,7 @@ @unit.responses.participationupdates @unit.responses.sync @unit.responses.timestamp +@unit.responses.txid.json @unit.responses.unlimited_assets @unit.sourcemap @unit.statedelta From 45d78291b0d0213c2b1d68e3a32fdc9b42835758 Mon Sep 17 00:00:00 2001 From: onetechnical Date: Wed, 20 Sep 2023 16:03:37 +0000 Subject: [PATCH 3/3] bump up version to v2.5.0 --- CHANGELOG.md | 11 +++++++++++ setup.py | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89cd11c8..14ec9cfa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +# v2.5.0 + + + +## What's Changed +### Enhancements +* api: Sync client object. by @winder in https://github.com/algorand/py-algorand-sdk/pull/514 + + +**Full Changelog**: https://github.com/algorand/py-algorand-sdk/compare/v2.4.0...v2.5.0 + # v2.4.0 diff --git a/setup.py b/setup.py index c06215bf..70d6c854 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ description="Algorand SDK in Python", author="Algorand", author_email="pypiservice@algorand.com", - version="2.4.0", + version="2.5.0", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/algorand/py-algorand-sdk",