Skip to content

Releases: StellarCN/py-stellar-base

12.1.0

27 Dec 06:29
94b7417
Compare
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)

12.0.0

28 Nov 03:34
ae0ade2
Compare
Choose a tag to compare

This is the first stable release that supports Protocol 22. While the network has not upgraded yet, you can start integrating the new features into your codebase if you want a head start.

If you are using this SDK to call Soroban contracts, please check stellar-contract-bindings, which can automatically generate contract binding code for you, making it incredibly easy to call contracts.

The following log is the changes since 11.1.0:

Update

  • feat: add stellar_sdk.contract.ContractClient and stellar_sdk.contract.ContractClientAsync, this greatly reduces the difficulty of calling contracts, and you can learn more through the documentation and examples. (#998)
  • feat: add support for Soroban PRC's getLedgers API interfaces. (#992)
  • feat: add support for Soroban PRC's getVersionInfo API interfaces. (#984)
  • feat: Add transaction_hash to GetTransactionResponse and GetTransactionsResponse. (#984)
  • feat: scval.from_enum and scval.to_enum now support multiple values. (#1004)

Breaking changes

  • feat!: support constructors in contract creation via TransactionBuilder.append_create_contract_op, the signature of the function has been changed. (#979)
  • refactor!: The EventInfo.paging_token field has been marked as deprecated, use the cursor in GetEventsResponse instead. (#984)
  • refactor!: The legacy cost field has been removed from SimulateTransactionResponse, parse it from transaction_data instead. (#984)
  • refactor!: Updated signer parameter in auth to accept a callable returning (public_key, signatures) instead of just public_key. (#982)

12.0.0-beta6

26 Nov 12:08
7e1ae05
Compare
Choose a tag to compare
12.0.0-beta6 Pre-release
Pre-release

Update

  • feat: scval.from_enum and scval.to_enum now support multiple values. (#1004)

12.0.0-beta5

23 Nov 05:37
eddca04
Compare
Choose a tag to compare
12.0.0-beta5 Pre-release
Pre-release

Update

  • fix: fix a bug in AssembledTransaction.simulate. (#1000)

12.0.0-beta4

22 Nov 09:43
23b7fdd
Compare
Choose a tag to compare
12.0.0-beta4 Pre-release
Pre-release

This version significantly reduces the difficulty of calling contracts.

Update

  • feat: add stellar_sdk.contract.ContractClient and stellar_sdk.contract.ContractClientAsync, this greatly reduces the difficulty of calling contracts, and you can learn more through the documentation and examples. (#998)
    from stellar_sdk import Network, scval
    from stellar_sdk.contract import ContractClient
    
    assembled = ContractClient(
        contract_id="CACZTW72246RA2MOCNKUBRRRRPT26UZ7LXE5ZHH44OGKIMCTQJ74O4D5",
        rpc_url="https://soroban-testnet.stellar.org:443",
        network_passphrase=Network.TESTNET_NETWORK_PASSPHRASE,
    ).invoke(
        function_name="hello",
        parameters=[scval.to_string("world")],
        parse_result_xdr_fn=lambda result: [
            scval.from_string(s).decode() for s in scval.from_vec(result)
        ],
    )
    
    print(f"Result from simulation: {assembled.result}")

12.0.0-beta3

14 Nov 11:29
a81ed83
Compare
Choose a tag to compare
12.0.0-beta3 Pre-release
Pre-release

Several hours ago, I released version 12.0.0-beta2, which added support for the Soroban RPC's getLedgers API interface.
However, some field names in the implementation need to be renamed.

Update

  • refactor: rename LedgerInfo.ledger_header to LedgerInfo.header_xdr, LedgerInfo.ledger_metadata to LedgerInfo.metadata_xdr. (#994)

12.0.0-beta2

14 Nov 03:59
fb566cb
Compare
Choose a tag to compare
12.0.0-beta2 Pre-release
Pre-release

Update

  • feat: add support for Soroban PRC's getLedgers API interface. (#992)

12.0.0-beta1

01 Nov 07:47
121f459
Compare
Choose a tag to compare
12.0.0-beta1 Pre-release
Pre-release

Update

  • refactor: add paging_token back to EventInfo. This is to ensure compatibility with older versions of Soroban-RPC. We still recommend using the GetEventsResponse.cursor field after upgrading Soroban-RPC. (#990)

12.0.0-beta0

14 Oct 06:50
8d5d426
Compare
Choose a tag to compare
12.0.0-beta0 Pre-release
Pre-release

This is the first release that supports Protocol 22. While the network has not upgraded yet,
you can start integrating the new features into your codebase if you want a head start.

Update

  • feat: add support for Soroban PRC's getVersionInfo API interfaces.
  • feat: add transaction_hash to GetTransactionResponse and GetTransactionsResponse.

Breaking changes

  • refactor!: the paging_token field has been removed from EventInfo, use the cursor in GetEventsResponse instead.
  • refactor!: the legacy cost field has been removed from SimulateTransactionResponse, parse it from transaction_data instead.
  • feat!: support constructors in contract creation via TransactionBuilder.append_create_contract_op, the signature of the function has been changed.
  • refactor!: updated signer parameter in auth to accept a callable returning (public_key, signatures) instead of just public_key.

11.1.0

18 Sep 01:50
3043a27
Compare
Choose a tag to compare

Update

  • feat: add support for Soroban PRC's getTransactions and getFeeStats API interfaces. (#960)
  • feat: add support for Horizon's transactions_async API interfaces. (#961)
  • fix: fix authorize_entry to use the correct public key when passing Keypair as signer. (#971)
  • feat: Expose stellar_sdk.address.AddressType for easy importing. (#973)
  • chore: bump dependencies.