8.0.0
This release includes breaking changes.
This release adds support for Protocol 19.
It includes CAP-21 (new transaction preconditions) and CAP-40 (signed payload signers).
Breaking changes
Transaction.time_bounds
has been removed, please useTransaction.preconditions.time_bounds
instead.- No longer sets "now" as the default cursor for AiohttpClient.stream (#591)
- 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
.
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.
-
refactor: remove runtime type checking in
stellar_sdk.xdr
package (#584)
PyPi Package: https://pypi.org/project/stellar-sdk/8.0.0/
Documentation: https://stellar-sdk.readthedocs.io/en/8.0.0/