horizonclient & txnbuild v8.0.0-beta.0
Pre-release
Pre-release
Shaptic
released this
04 Oct 21:35
·
1022 commits
to master
since this release
This pre-release adds support for Protocol 18.
horizonclient
- The restriction that
Fund
can only be called on the DefaultTestNetClient has been removed. Anyhorizonclient.Client
may now call Fund. Horizon instances not supporting funding will error with a resource not found error. - Change
AccountRequest
to acceptSponsor
andLiquidityPool
filters - Change
EffectRequest
,TransactionRequest
, andOperationRequest
to accept aForLiquidityPool
filter - Change
TradeRequest
to accept both aForLiquidityPool
filter or aTradeType
filter - Add
LiquidityPoolsRequest
for getting details about liquidity pools, with an optionalReserves
field to filter by pools' reserve asset(s). - Add
LiquidityPoolRequest
for getting details about a specific liquidity pool via theLiquidityPoolID
filter.
txnbuild
New features
GenericTransaction
,Transaction
, andFeeBumpTransaction
now implement
encoding.TextMarshaler
andencoding.TextUnmarshaler
.- New asset structures that conform to the new ChangeTrust and New assets:
- Support for the core liquidity pool XDR types:
LiquidityPoolId
,LiquidityPoolParameters
,LiquidityPoolDeposit
, andLiquidityPoolWithdraw
. - Support for the new asset structures:
ChangeTrustAsset
andTrustLineAsset
.
Changes
- There's now a 5-minute grace period to
transaction.ReadChallengeTx
's minimum time bound constraint (#3824). - Assets can now be liquidity pool shares (
AssetTypePoolShare
). - All asset objects can now be converted to the new
ChangeTrustAsset
andTrustLineAsset
objects. - Assets can now be compared in accordance with the protocol, see their respective
LessThan()
implementations.
Breaking changes
ChangeTrust
requires aChangeTrustAsset
.RevokeSponsorship
requires aTrustLineAsset
when revoking trustlines.RemoveTrustlineOp
helper now requires aChangeTrustAsset
validate*Asset
helpers now require more-specific asset types.