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 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/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/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", 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