Releases: StellarCN/py-stellar-base
2.2.2
2.2.1
2.1.4
2.2.0
Horizon v1.0.0 Compatibility.
Added
-
Add support for top-level offers endpoint with
seller
,selling
, andbuying
filter.
Horizon 1.0 includes a new/offers
end-point, which allows you to list all offers, supporting filtering byseller
,selling
, orbuying
asset.You can fetch data from this endpoint by doing
server.offers()
and use any of the following filters:seller
:server.offers().for_seller(account_id)
buying
:server.offers().for_buying(asset)
selling
:server.offers().for_selling(asset)
offer detail
:server.offers().offer(offer_id)
This introduced a breaking change since it modified the signature for the function
server.offers()
.Before, if you wanted to list all the offers for a given account, you'd do:
server.offers(account_id)
Starting on this version you'll need to do:
server.offers().for_seller(account_id)
You can do now things that were not possible before, like finding
all offers for an account filtering by the selling or buying assetserver.offers().for_seller(account_id).for_buying(buying_asset).for_selling(selling_asset)
-
Add support for filtering accounts by
signer
orasset
, this has been released in a previous patch version.
Horizon 1.0 includes a new/accounts
end-point, which allows you to list all accounts who have another account as a signer or hold a given asset.You can fetch data from this endpoint by doing
server.accounts()
and use any of the following filters:acount detail
:server.accounts().account_id(account_id)
, returns a single account.for signer
:server.accounts().for_signer(account_id)
, returns accounts whereaccount_id
is a signer.for asset
:server.accounts().for_asset(asset)
, returns accounts which hold theasset
.
Changed
Fixed
- Fixed some documentation errors.
Breaking
-
Change function signature for
server.offers
.
The signature for the functionserver.offers()
was changed to bring support for other filters.Before, if you wanted to list all the offers for a given account, you'd do:
server.offers(account_id)
Starting on this version you'll need to do:
server.offers().for_seller(account_id)
server.accounts().signer
andserver.accounts().asset
are marked as deprecated, useserver.accounts().for_signer
andserver.accounts().for_asset
instead.
There are also some changes related to the horizon's response, currently, SDK has not added parse support to it,
so please refer to this issue or release notes of Stellar horizon 1.0.0. In addition, support for parsing the horizon's responses will be added in the next major update.
2.1.3
- fix: fix the bug in SEP-0010 implementation.
2.1.2
- fix: fix the bug in SEP-0010 implementation.
2.2.0-beta1
Horizon v1.0.0 Compatibility.
- [Breaking Change] Add support for
/offers
end-point with query parameters, this will affect the existing API, please refer to the documentation. (See SDK API Documentation and Stellar documentation for offers) - Regenerate the XDR definitions to include MetaV2 support (also see #1902).
There are also some updates that have been released in previous versions, see this issue for details.
2.1.1
- feat: update challenge tx helpers for SEP-0010 v1.3.0.
2.1.1-beta1
- feat: update challenge tx helpers for SEP-0010 v1.3.0