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:
```json
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:
```json
{
"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.
- Attribute `offer_id` in [manage buy offer](https://www.stellar.org/developers/horizon/reference/resources/operation.html#manage-buy-offer) and [manage sell offer](https://www.stellar.org/developers/horizon/reference/resources/operation.html#manage-sell-offer) operations.
- Attribute `offer_id` in `Trade` effect.
- Attribute `id` in [Offer](https://www.stellar.org/developers/horizon/reference/resources/offer.html) resource.
- Attribute `timestamp` and `trade_count` in [Trade Aggregation](https://www.stellar.org/developers/horizon/reference/resources/trade_aggregation.html) resource.
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
[ ] âž•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
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 deprecated
fee_paid
field from Transaction response (replace it with thefee_charged
andmax_fee
fields, see #1372).[ ] 🚨Multiple fields changed from
int64
tostring
. If your SDK has types, they need to be updated. If possible, we recommend implementing backward compatibility support, as we did here.[ ] 🚨 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 likestrictSendPaths(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.