Releases: tinymanorg/tinyman-py-sdk
Releases · tinymanorg/tinyman-py-sdk
v2.3.0
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
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, thecalculate_fixed_input_swap
function will raise aLowSwapAmountError
instead of the misleadingInsufficientReserves
. - AMM V1, the
fetch_fixed_input_swap_quote
function will raise aPoolHasNoLiquidity
error instead of a genericException
. - AMM V1, the
fetch_fixed_output_swap_quote
function will raise anInsufficientReserves
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
totinyman.exceptions
.
New Features
- Added low-level swap router support.
- Introduced the
Route
class and addedget_best_fixed_input_route
,get_best_fixed_output_route
, andfetch_best_route_suggestion
functions for route preparation. - Added
prepare_swap_router_transactions
,prepare_swap_router_asset_opt_in_transaction
, andget_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
v2.1.0
Added
- Added Tinyman V2 (Mainnet) support.
- Added
client_name
attribute toTinymanClient
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 andgenerate_app_call_note
method toTinymanClient
classes. #51 - Added
get_version
andgenerate_app_call_note
totinyman.utils
. #51 - Improved error handling #49.
- Added
TealishMap
. - Added
AlgodError
,LogicError
,OverspendError
exception classes. - Added
amm_approval.map.json
for V2.
- Added
v2.0.0
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 byparse_commit_transaction
.
- It allows creating commitment transaction by
- Added
calculate_price_impact
function totinyman.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 deprecatedTransactionGroup.sign_with_logicisg
because of the typo.
- Added
Changed
get_program
(V1) is moved fromtinyman.utils
totinyman.v1.contracts
.get_state_from_account_info
(V1) is moved fromtinyman.utils
totinyman.v1.utils
.
Removed
- Deprecated
wait_for_confirmation
function is removed.wait_for_confirmation
is added to Algorand SDK. - Drop Python 3.7 support.