github stellar/go horizonclient-v10.0.0
horizonclient & txnbuild v10.0.0

latest releases: galexie-v22.0.0-rc1, horizonclient-v15.0.0, horizon-v22.0.0-rc2...
2 years ago

v10.0.0 - 2022-04-18

horizonclient

This release adds support for Protocol 19:

  • The library is updated to align with breaking changes to txnbuild.

txnbuild

Adds support for Protocol 19 transaction preconditions (CAP-21).

Breaking changes

  • There are many new ways for a transaction to be (in)valid (see the new Preconditions structure), and the corresponding breaking change is in how transactions are built:
 tx, err := NewTransaction(TransactionParams{
     SourceAccount: someAccount,
     // ... other parameters ...
-    Timebounds:    NewTimeout(5),
+    Preconditions: Preconditions{TimeBounds: NewTimeout(5)},
 })
  • Timebounds has been renamed to TimeBounds, though a type alias remains.

  • A *TimeBounds structure is no longer considered valid (via Validate()) if it's nil. This further reinforces the fact that transactions need timebounds.

Don't miss a new go release

NewReleases is sending notifications on new releases.