Skip to content

Commit

Permalink
Merge branch 'release/v2.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Algo-devops-service committed Sep 20, 2023
2 parents fc25cc6 + 45d7829 commit ef2131e
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

# v2.5.0

<!-- Release notes generated using configuration in .github/release.yml at release/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

<!-- Release notes generated using configuration in .github/release.yml at release/v2.4.0 -->
Expand Down
16 changes: 16 additions & 0 deletions algosdk/v2client/algod.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
description="Algorand SDK in Python",
author="Algorand",
author_email="[email protected]",
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",
Expand Down
5 changes: 5 additions & 0 deletions tests/steps/other_v2_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 2 additions & 0 deletions tests/unit.tags
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@unit.atc_method_args
@unit.atomic_transaction_composer
@unit.blocksummary
@unit.blocktxids
@unit.dryrun
@unit.dryrun.trace.application
@unit.feetest
Expand All @@ -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
Expand Down

0 comments on commit ef2131e

Please sign in to comment.