Skip to content

Releases: StellarCN/py-stellar-base

13.2.1

21 Jan 00:08
445865f

Choose a tag to compare

Update:

  • fix: get_transactions and get_ledgers with cursor raises AttributeError for missing end_ledger. (#1105)

13.2.0

06 Jan 03:22
cdfd411

Choose a tag to compare

Update:

  • feat: add SEP-45 (Stellar Web Authentication for Contract Accounts) support. Check stellar_sdk.sep.stellar_soroban_web_authentication for more details.
  • fix: remove diagnostic_events_xdr from stellar_sdk.soroban_rpc.Events, use stellar_sdk.soroban_rpc.GetTransactionResponse.diagnostic_events_xdr and stellar_sdk.soroban_rpc.Transaction.diagnostic_events_xdr instead. (#1086)
  • chore: drop support for Python 3.9.
  • chore: update outdated documentation.

13.1.0

25 Sep 07:18
21ff41d

Choose a tag to compare

Update:

  • feat: getEvents RPC method - expose endLedger param. (#1081)

13.0.0

14 Aug 23:44
64129e9

Choose a tag to compare

This release adds support for Protocol 23.

This release contains the exact same content as 13.0.0-beta1. Below is the changelog since 12.3.0.

Update:

  • feat: add liquidity pool and claimable balance support to StrKey. (#1060)
  • feat: add med25519 public keys to StrKey. (#1061)
  • feat: add muxed account, liquidity pool and claimable balance support to Address. (#1062)
  • feat: implement message signing and verification according to SEP-53, check Keypair.sign_message and Keypair.verify_message for more details. (#1067)
  • feat: add a poll_transaction function to Soroban RPC client. (#1038)
  • refactor: use tomllib instead of toml library in Python 3.11 and above. (#1047)
  • refactor: optimize the user experience of call_builder.stream. (#1050)
  • fix: add error handling for incomplete federation responses. (#1051)
  • feat: add support for non-root authorization in SorobanServer[Async].simulate_transaction. (#1069)
  • feat: update transaction meta handling to support v4 in protocol 23. (#1074)
  • fix: correct comparison for Uint32 in xdr.AuthenticatedMessage. (#1076)

Breaking changes

  • chore!: upgrade generated XDR definitions to Protocol 23. (#1057)
  • chore!: drop support for Python 3.8. (#1065)
  • refactor!: rename read_bytes to disk_read_bytes in SorobanDataBuilder and related methods. (#1058)
    • In SorobanDataBuilder, all occurrences of read_bytes have been replaced with disk_read_bytes. This includes method names, variable names, etc.
    • TransactionBuilder.append_payment_to_contract_op now uses disk_read_bytes instead of read_bytes in its function signature.
    • TransactionBuilder.append_restore_asset_balance_entry_op now uses disk_read_bytes instead of read_bytes in its function signature.
  • refactor!: StrKey.decode_muxed_account and StrKey.encode_muxed_account have been marked as deprecated, please use stellar_sdk.MuxedAccount instead. They will be removed in the next major release. (#1061)
  • refactor!: when an invalid account ID is passed into the MuxedAccount.from_account, it raises a ValueError now. (#1063)
  • feat!: adapt to the changes in the Stellar Soroban RPC v23 getEvents interface. (#1070)
    • drop paging_token from EventInfo, use cursor in GetEventsResponse instead.
    • in_successful_contract_call in EventInfo has been marked as deprecated now.
    • add operation_index and transaction_index to EventInfo.
    • add oldest_ledger, latest_ledger_close_time and oldest_ledger_close_time to GetEventsResponse.
  • feat!: adapt to the changes in the Stellar RPC Soroban v23 getTransaction and getTransactions interface. (#1068)
    • diagnosticEvents in GetTransactionsResponse.transactions has been marked as deprecated now, use GetTransactionsResponse.transactions[{id}].events instead.

Full Changelog: 12.3.0...13.0.0

13.0.0-beta1

09 Aug 06:40
054bf7f

Choose a tag to compare

13.0.0-beta1 Pre-release
Pre-release

Update:

  • feat: update transaction meta handling to support v4 in protocol 23. (#1074)
  • fix: correct comparison for Uint32 in xdr.AuthenticatedMessage. (#1076)
  • fix: fix muxed account handling in Address class. (#1077)

Full Changelog: 13.0.0-beta0...13.0.0-beta1

13.0.0-beta0

08 Jul 09:27
0734d9b

Choose a tag to compare

13.0.0-beta0 Pre-release
Pre-release

This release adds support for Protocol 23.

Update:

  • feat: add liquidity pool and claimable balance support to StrKey. (#1060)
  • feat: add med25519 public keys to StrKey. (#1061)
  • feat: add muxed account, liquidity pool and claimable balance support to Address. (#1062)
  • feat: implement message signing and verification according to SEP-53, check Keypair.sign_message and Keypair.verify_message for more details. (#1067)
  • feat: add a poll_transaction function to Soroban RPC client. (#1038)
  • refactor: use tomllib instead of toml library in Python 3.11 and above. (#1047)
  • refactor: optimize the user experience of call_builder.stream. (#1050)
  • fix: add error handling for incomplete federation responses. (#1051)
  • feat: add support for non-root authorization in SorobanServer[Async].simulate_transaction. (#1069)

Breaking changes

  • chore!: upgrade generated XDR definitions to Protocol 23. (#1057)
  • chore!: drop support for Python 3.8. (#1065)
  • refactor!: rename read_bytes to disk_read_bytes in SorobanDataBuilder and related methods. (#1058)
    • In SorobanDataBuilder, all occurrences of read_bytes have been replaced with disk_read_bytes. This includes method names, variable names, etc.
    • TransactionBuilder.append_payment_to_contract_op now uses disk_read_bytes instead of read_bytes in its function signature.
    • TransactionBuilder.append_restore_asset_balance_entry_op now uses disk_read_bytes instead of read_bytes in its function signature.
  • refactor!: StrKey.decode_muxed_account and StrKey.encode_muxed_account have been marked as deprecated, please use stellar_sdk.MuxedAccount instead. They will be removed in the next major release. (#1061)
  • refactor!: when an invalid account ID is passed into the MuxedAccount.from_account, it raises a ValueError now. (#1063)
  • feat!: adapt to the changes in the Stellar Soroban RPC v23 getEvents interface. (#1070)
    • drop paging_token from EventInfo, use cursor in GetEventsResponse instead.
    • in_successful_contract_call in EventInfo has been marked as deprecated now.
    • add operation_index and transaction_index to EventInfo.
    • add oldest_ledger, latest_ledger_close_time and oldest_ledger_close_time to GetEventsResponse.
  • feat!: adapt to the changes in the Stellar RPC Soroban v23 getTransaction and getTransactions interface. (#1068)
    • diagnosticEvents in GetTransactionsResponse.transactions has been marked as deprecated now, use GetTransactionsResponse.transactions[{id}].events instead.

12.3.0

05 Jun 10:54
09440c6

Choose a tag to compare

Update:

  • feat: add get_sac_balance to SorobanServer and SorobanServerAsync. (#1035)

12.2.1

11 Apr 14:20
c48b609

Choose a tag to compare

Update

  • fix: fix the issue where sending assets using Transaction.append_payment_to_contract_op fails when the sender's account is the same as the asset issuer's account. (#1029)
  • fix: allow SorobanServer.get_events(), .get_transactions(), and .get_ledgers() to be paginated by making the start_ledger argument optional. (#1032)

New Contributors

Full Changelog: 12.2.0...12.2.1

12.2.0

04 Mar 03:05
50b3a86

Choose a tag to compare

Update

  • feat: add TransactionBuilder.append_payment_to_contract_op and TransactionBuilder.append_restore_asset_balance_entry_op to send assets to contract accounts without relying on Stellar RPC. (#1023)
  • refactor: AssembledTransaction.simulate and AssembledTransactionAsync.simulate will no longer restore the state for read-only transactions. (#1026)

12.1.0

27 Dec 06:29
94b7417

Choose a tag to compare

Update

  • feat: Add optional support for Shamir Secret Sharing with Keypair.from_shamir_mnemonic_phrases and Keypair.generate_shamir_mnemonic_phrases. (#1010)