Releases: StellarCN/py-stellar-base
8.0.0-beta4
Breaking changes
- refactor: no longer sets "now" as the default cursor for AiohttpClient.stream (#591)
PyPi Package: https://pypi.org/project/stellar-sdk/8.0.0b4/
Documentation: https://stellar-sdk.readthedocs.io/en/8.0.0-beta4/
8.0.0-beta3
Add
- feat: add
server.offers().for_account(account_id)
to retrieve the account's offers. (#590)
PyPi Package: https://pypi.org/project/stellar-sdk/8.0.0b3/
Documentation: https://stellar-sdk.readthedocs.io/en/8.0.0-beta3/
7.0.3
Add
- feat: add
server.offers().for_account(account_id)
to retrieve the account's offers. (#590)
PyPi Package: https://pypi.org/project/stellar-sdk/7.0.3/
Documentation: https://stellar-sdk.readthedocs.io/en/7.0.3/
8.0.0-beta2
Update
-
feat: you can turn off runtime type checking by configuring
STELLAR_SDK_RUNTIME_TYPE_CHECKING=0
in environment variables. (#589)In order to make the program more rigorous and novice friendly, we previously introduced runtime type checking, but this would cause a significant performance penalty, so now we allow users to turn it off.
PyPi Package: https://pypi.org/project/stellar-sdk/8.0.0b2/
Documentation: https://stellar-sdk.readthedocs.io/en/8.0.0-beta2/
8.0.0-beta1
Update
- refactor: remove runtime type checking in
stellar_sdk.xdr
package (#584)
PyPi Package: https://pypi.org/project/stellar-sdk/8.0.0b1/
Documentation: https://stellar-sdk.readthedocs.io/en/8.0.0-beta1/
8.0.0-beta0
This is a pre-release version, please do not use it in production.
It includes CAP-21 (new transaction preconditions) and CAP-40 (signed payload signers).
Breaking changes
Transaction.time_bounds
is moved toTransaction.preconditions.time_bounds
.- Some breaking updates are included in XDR, you can check the changes here.
Add
-
Support for converting signed payloads (CAP-40) to and from their StrKey (
P...
) representation, you can find the example here. -
Support for creating transactions with the new preconditions (CAP-21) via
TransactionBuilder
, you can find the example here.-
TransactionBuilder.set_ledger_bounds(min_ledger: int, max_ledger: int)
-
TransactionBuilder.set_min_sequence_number(min_sequence_number: int)
-
TransactionBuilder.set_min_sequence_age(min_sequence_age: int)
-
TransactionBuilder.set_min_sequence_ledger_gap(min_sequence_ledger_gap: int)
-
TransactionBuilder.add_extra_signer(signer_key: Union[SignerKey, SignedPayloadSigner, str])
-
-
Support for Signing transactions containing the ed25519 payload extra signer, you can find the example here.
Keypair.sign_payload_decorated(data: bytes)
TransactionEnvelope.sign_extra_signers_payload(signer: Union[Keypair, str])
-
Support for CAP-21 has been added to
stellar_sdk.sep.txrep
.
PyPi Package: https://pypi.org/project/stellar-sdk/8.0.0b0/
Documentation: https://stellar-sdk.readthedocs.io/en/8.0.0-beta0/
7.0.2
Update
- fix: fixed-length arrays pack/unpack should not include length, but the previous releases incorrectly include it. (#581)
PyPi Package: https://pypi.org/project/stellar-sdk/7.0.2/
Documentation: https://stellar-sdk.readthedocs.io/en/7.0.2/
7.0.1
Update
- feat: make stellar_sdk.Asset hashable. (#576)
PyPi Package: https://pypi.org/project/stellar-sdk/7.0.1/
Documentation: https://stellar-sdk.readthedocs.io/en/7.0.1/
7.0.0
This update includes breaking changes.
This release introduces unconditional support for muxed accounts. (#574)
Breaking changes
- In v4.0.0, we introduced opt-in support for muxed accounts, you would need to set
ENABLE_SEP_0023
totrue
in the environment variable to enable support for this feature. In the new release, this feature will be enabled by default. (#574)
Add
-
Introduced a helper function which lets you pre-determine the hex claimable balance ID of a CreateClaimableBalance operation prior to submission to the network: (#575)
class Transaction: def get_claimable_balance_id(self, operation_index: int) -> str: pass
Update
- When the user builds a transaction through TransactionBuilder but does not set TimeBounds, the SDK will give a warning. (#565)
stellar_sdk.xdr
module adds some validation to the data. (#564)
PyPi Package: https://pypi.org/project/stellar-sdk/7.0.0/
Documentation: https://stellar-sdk.readthedocs.io/en/7.0.0/
6.1.1
PyPi Package: https://pypi.org/project/stellar-sdk/6.1.1/
Documentation: https://stellar-sdk.readthedocs.io/en/6.1.1/
Some users encountered an error when initializing RequestsClient
, this release may be able to solve this issue.
Update
- Specify the version of urllib3 >= 1.26.7 and < 2.0.0. (#563)