Skip to content

Releases: tinymanorg/tinyman-py-sdk

v2.3.0

31 Jul 10:46
ea4bdf1
Compare
Choose a tag to compare

New Features

  • Added Tinyman Governance features; Vault, Rewards, Proposal Voting, Staking Voting.
  • Added Tinyman Lending Pools feature.

Enhancements

  • Several utilities are improved.
  • Staking program asset limit is increased to 30.

Full Changelog: v2.2.0...v2.3.0

v2.2.0

17 Apr 15:30
f2f45cf
Compare
Choose a tag to compare

Breaking Changes

  • AMM V2, the quote calculations will now raise a LowSwapAmountError if the swap amount is too low and doesn't generate a fee. Also, the calculate_fixed_input_swap function will raise a LowSwapAmountError instead of the misleading InsufficientReserves.
  • AMM V1, the fetch_fixed_input_swap_quote function will raise a PoolHasNoLiquidity error instead of a generic Exception.
  • AMM V1, the fetch_fixed_output_swap_quote function will raise an InsufficientReserves error if the output amount is greater than or equal to the output asset reserves.

Enhancements

  • Improved the price impact formula and removed unnecessary abs usage.
  • Moved exception classes from tinyman.v2.exceptions to tinyman.exceptions.

New Features

  • Added low-level swap router support.
  • Introduced the Route class and added get_best_fixed_input_route, get_best_fixed_output_route, and fetch_best_route_suggestion functions for route preparation.
  • Added prepare_swap_router_transactions, prepare_swap_router_asset_opt_in_transaction, and get_swap_router_app_opt_in_required_asset_ids functions for swap router transaction preparation.
  • Added the parse_swap_router_event_log function to parse swap router application logs.

v2.1.1

19 Jan 14:04
b8f0b8b
Compare
Choose a tag to compare

Changed

  • Added py-algorand-sdk==2.0.0 support. #58
  • Added refresh parameter to Tinyman V1 fetch functions (fetch_mint_quote, fetch_burn_quote, fetch_fixed_input_swap_quote, fetch_fixed_output_swap_quote). #59

v2.1.0

05 Jan 14:33
1461fe1
Compare
Choose a tag to compare

Added

  • Added Tinyman V2 (Mainnet) support.
  • Added client_name attribute to TinymanClient classes. #51
  • Added note to application call transactions. The note (tinyman/<v1|v2>:j{"origin":"<client-name>"}) follows Algorand Transaction Note Field Conventions ARC-2. #51
  • Added version property and generate_app_call_note method to TinymanClient classes. #51
  • Added get_version and generate_app_call_note to tinyman.utils. #51
  • Improved error handling #49.
    • Added TealishMap.
    • Added AlgodError, LogicError, OverspendError exception classes.
    • Added amm_approval.map.json for V2.

v2.0.0

05 Jan 11:11
5e3ba82
Compare
Choose a tag to compare

Added

  • 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.
  • Improved TransactionGroup class.
    • Added + operator support for composability, it allows creating a new transaction group (txn_group_1 + txn_group_2).
    • Added id property, it returns the transactions group id.
    • Added TransactionGroup.sign_with_logicsig function and deprecated TransactionGroup.sign_with_logicisg because of the typo.

Changed

  • get_program (V1) is moved from tinyman.utils to tinyman.v1.contracts.
  • get_state_from_account_info (V1) is moved from tinyman.utils to tinyman.v1.utils.

Removed

  • Deprecated wait_for_confirmation function is removed. wait_for_confirmation is added to Algorand SDK.
  • Drop Python 3.7 support.