Skip to content

Releases: algorandfoundation/algorand-python-testing

v0.5.0

20 Feb 06:45
Compare
Choose a tag to compare

v0.5.0 (2025-02-20)

v0.5.0-beta.1

19 Feb 17:37
Compare
Choose a tag to compare
v0.5.0-beta.1 Pre-release
Pre-release

v0.5.0-beta.1 (2025-02-19)

Features

  • support algopy.Array and algopy.ImmutableArray from algorand-python 2.7 (fd8d19f)

  • support mocking new algopy.op functions falcon_verify, mimc, online_stake, sumhash512 and VoterParamsGet (83ddcbb)

  • update algopy.op.Block with fields added in AVM 11 (90d857d)

  • update algopy.op.AcctParamsGet with fields added in AVM 11 (059b669)

  • add avm_version to algopy.Contract class options (fc53b0f)

  • update algopy.op.Global with fields added in AVM 11 (0cc9807)

  • add algopy.arc4.Struct._replace introduced in algorand-python 2.5.0 (75d6847)

  • add inline option to subroutine decorator (2cc15b3)

Bug fixes

  • add missing mappings for algopy.op.Txn members (fddfe6f)

  • include ARC4Contract in algopy.arc4 namespace (f19d46f)

  • update algopy.CompiledContract and algopy.CompiledLogicSig to be NamedTuples (84be408)

  • added missing contains implementation for algopy.Bytes (8b2efa2)

Documentation

  • fix doctest example for algopy.EllipticCurve (7d0bb0d)

v0.4.1

03 Sep 07:29
Compare
Choose a tag to compare

v0.4.1 (2024-09-03)

v0.4.1-beta.1

03 Sep 07:25
Compare
Choose a tag to compare
v0.4.1-beta.1 Pre-release
Pre-release

v0.4.1-beta.1 (2024-09-03)

Fix

  • ability to pass kw_only flag to dataclass when defining struct subclass (#23) (24bcf9d)

    • fix: ability to pass kw_only flag to dataclass when defining struct subclass

    • chore: add dependabot yaml

    • chore: adding ability to pass args to struct init subclass

v0.4.0

27 Aug 06:57
Compare
Choose a tag to compare

v0.4.0 (2024-08-27)

v0.4.0-beta.2

27 Aug 06:26
Compare
Choose a tag to compare
v0.4.0-beta.2 Pre-release
Pre-release

v0.4.0-beta.2 (2024-08-27)

v0.4.0-beta.1

27 Aug 06:10
Compare
Choose a tag to compare
v0.4.0-beta.1 Pre-release
Pre-release

v0.4.0-beta.1 (2024-08-27)

Feature

  • add support for frozen on asset holdings, including a new ledger function update_asset_holdings for setting asset holding balances and frozen states (d777ca0)

  • expand accepted types when interacting with accounts, applications and assets (f448a97)

    wip

  • replaced account_exists with account_is_funded as the later is more useful (4d08690)

Fix

  • use correct type for Globals.caller_application_id (a30d85a)

  • do not allow specifying address for applications, it is derived from the app_id (00fe1bc)

  • do not treat asset and application ids as possible foreign array indexes (94a989f)

  • removed incorrect deduction in algopy.op.balance (76e67c5)

  • ensure all comparable types return NotImplemented when a comparison is not possible (b055fa6)

  • arc4_prefix annotated to also accept algopy.Bytes (40328ca)

Documentation

  • include usage of algopy_testing_context in README.md quick start (4702f60)

v0.3.0

22 Aug 15:24
Compare
Choose a tag to compare

v0.3.0 (2024-08-22)

Introducing initial stable release of algorand-python-testing πŸŽ‰

  1. The context manager now interface exposes three main properties:
  • ledger: An instance of LedgerContext for interacting with and querying the emulated Algorand ledger state.
  • txn: An instance of TransactionContext for creating and managing transaction groups, submitting transactions, and accessing transaction results.
  • any: An instance of AlgopyValueGenerator for generating randomized test data.
  1. Introducing a mechanism for deferred execution of an application call to control transaction ordering for any abi/baremethod prefixed methods in contract instances.
  2. Adding explicit context for setting the scope for execution of a specific transaction group and active transaction within it.
  3. Revamped and detailed documentation, refer here to catch up with latest capabilities of algorand-python-testing package.

Release notes

New Features

  • Introduced ARC4 results in logs, with support for more than 15 ARC4 arguments (#18)
  • Added ARC4 factory for easier creation of ARC4 types
  • Implemented deferred app calls and modular test context
  • Refined access to value generators
  • Added support for ARC4 structs

Improvements

  • Renamed txn_op_fields to active_txn_overrides for clarity
  • Enhanced handling of mutable types (ARC4 tuple, array, and structs)
  • Improved equality implementation for Account
  • Refined handling of application and asset-related state operations
  • Simplified transaction and inner transaction implementations

Bug Fixes

  • Fixed propagation of changes in mutable types back to container-like types
  • Ensured new Account instances have field defaults populated
  • Corrected behavior of Global.current_application* properties to match AVM
  • Fixed generation of app/asset IDs to avoid conflicts

Documentation

  • Added comprehensive documentation for the initial stable release
  • Integrated pydoclint and improved overall documentation formatting

v0.3.0-beta.9

22 Aug 13:28
Compare
Choose a tag to compare
v0.3.0-beta.9 Pre-release
Pre-release

v0.3.0-beta.9 (2024-08-22)

v0.3.0-beta.8

22 Aug 08:33
Compare
Choose a tag to compare
v0.3.0-beta.8 Pre-release
Pre-release

v0.3.0-beta.8 (2024-08-22)

Feature

  • include ARC4 results in log, and handle > 15 ARC4 arguments (#18) (fd83ee8)