question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Horizon v1.0.0 Compatibility

See original GitHub issue

The upcoming Horizon release is coming, and there are multiple breaking changes plus new features 🎉🎉🎉!

The following are the list of changes required to support this new release:

  • ➕Update /fee_stats response.

    • ✂ Remove the following fields:

      min_accepted_fee
      mode_accepted_fee
      p10_accepted_fee
      p20_accepted_fee
      p30_accepted_fee
      p40_accepted_fee
      p50_accepted_fee
      p60_accepted_fee
      p70_accepted_fee
      p80_accepted_fee
      p90_accepted_fee
      p95_accepted_fee
      p99_accepted_fee
      
    • ➕Add support for max_fee and fee_charged fields. Each field contains a JSON object that looks like this:

      {
        "last_ledger": "22606298",
        "last_ledger_base_fee": "100",
        "ledger_capacity_usage": "0.97",
        "fee_charged": {
          "max": "100",
          "min": "100",
          "mode": "100",
          "p10": "100",
          "p20": "100",
          "p30": "100",
          "p40": "100",
          "p50": "100",
          "p60": "100",
          "p70": "100",
          "p80": "100",
          "p90": "100",
          "p95": "100",
          "p99": "100"
        },
        "max_fee": {
          "max": "100000",
          "min": "100",
          "mode": "100",
          "p10": "100",
          "p20": "100",
          "p30": "100",
          "p40": "100",
          "p50": "100",
          "p60": "100",
          "p70": "100",
          "p80": "100",
          "p90": "15000",
          "p95": "100000",
          "p99": "100000"
        }
       }
      

    See https://github.com/stellar/go/pull/2140 for more info.

  • ✂ Remove deprecated fee_paid field from Transaction response (replace it with the fee_charged and max_fee fields, see #1372).

  • 🚨Multiple fields changed from int64 to string. If your SDK has types, they need to be updated. If possible, we recommend implementing backward compatibility support, as we did here.

    See https://github.com/stellar/go/issues/1609, https://github.com/stellar/go/pull/1909, and https://github.com/stellar/go/issues/1912 for more info

  • 🚨 Update operation types to canonical names (if needed) (see https://github.com/stellar/go/pull/2134).

  • ➕Add support for /accounts end-point with ?signer and ?asset filters. We recommend a method like .accounts(queryParams) (see documentation for accounts).

  • ➕Add support for /offers end-point with query parameters. We recommend a method like .offers(queryParams) (see documentation for offers).

  • ➕Add support for /paths/strict-send end-point. See documentation. We recommend a method like

    strictSendPaths(sourceAsset, sourceAmount, [destinationAsset])
    
  • ➕ Add support for /paths/strict-receive end-point. See documentation. We recommend a method like:

    strictReceivePaths(sourceAssets,destinationAsset, destinationAmount)
    
  • ♻ Regenerate the XDR definitions to include MetaV2 support (also see #1902).

That’s it! If you have any questions feel free to ping us on #dev-discussion in Keybase.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

3reactions
fracekcommented, Jan 26, 2020

We implemented all required changes and merged them into the horizon-1.0.0 branch. We just need to merge into master to release a new version of the SDK.

0reactions
fracekcommented, Jan 26, 2020
  • Accounts filter endpoint in #226
  • Offers filter endpoint in #227
  • Paths endpoints in #229
Read more comments on GitHub >

github_iconTop Results From Across the Web

Horizon v1.0.0 Compatibility · Issue #2014 · stellar/go
The upcoming Horizon release is coming, and there are multiple breaking changes plus new features !
Read more >
VMware Compatibility Guide - Horizon (Thin Clients) Search
Vendor products are tested for compatibility with Horizon. VMware provides support only for the products that are listed in this Compatibility Guide.
Read more >
How can I solve "laravel/horizon v1.1.0 requires ext-pcntl
Run composer with the --ignore-platform-reqs option and specify pcntl and posix composer install --ignore-platform-reqs.
Read more >
laravel/horizon
Horizon provides a beautiful dashboard and code-driven configuration for your Laravel powered Redis queues. Horizon allows you to easily monitor key metrics ...
Read more >
Patch notes/Horizon/1.9.0-ALPHA
1.9.0-ALPHA:1 Horizon v1.9 - Reclaiming the Commonwealth #1.9.0-ALPHA:2 Main ... WARNING: Horizon is no longer compatible with custom fonts (unless they are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found