Skip to content

Commit e49933c

Browse files
authored
Updates liquidity pool records' reserves type and releases v9.0.0. (#715)
* Bump js-base version * Release v9.0.0 stable
1 parent 83e5da1 commit e49933c

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
A breaking change will get clearly marked in this log.
44

55

6+
## Unreleased
7+
8+
9+
## [v9.0.0](https://github.com/stellar/js-stellar-sdk/compare/v9.0.0-beta.1...v9.0.0)
10+
11+
This stable release adds **support for Protocol 18**. For details, you can refer to [CAP-38](https://stellar.org/protocol/cap-38) for XDR changes and [this document](https://docs.google.com/document/d/1pXL8kr1a2vfYSap9T67R-g72B_WWbaE1YsLMa04OgoU/view) for changes to the Horizon API.
12+
13+
Refer to the release notes for the betas (e.g. [v9.0.0-beta.0](https://github.com/stellar/js-stellar-sdk/releases/v9.0.0-beta.0)) for a comprehensive list of changes to this library.
14+
15+
16+
### Fix
17+
18+
- Corrects the `reserves` field on `LiquidityPoolRecord`s to be an array ([#715](https://github.com/stellar/js-stellar-sdk/pull/715)).
19+
- Bumps the `stellar-base` dependency to [v6.0.4](https://github.com/stellar/js-stellar-base/releases/tag/v6.0.4) ([#715](https://github.com/stellar/js-stellar-sdk/pull/715)).
20+
21+
622
## [v9.0.0-beta.1](https://github.com/stellar/js-stellar-sdk/compare/v9.0.0-beta.0...v9.0.0-beta.1)
723

824
### Add

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stellar-sdk",
3-
"version": "9.0.0-beta.1",
3+
"version": "9.0.0",
44
"description": "stellar-sdk is a library for working with the Stellar Horizon server.",
55
"main": "./lib/index.js",
66
"types": "./lib/index.d.ts",
@@ -138,7 +138,7 @@
138138
"eventsource": "^1.0.7",
139139
"lodash": "^4.17.21",
140140
"randombytes": "^2.1.0",
141-
"stellar-base": "^6.0.3",
141+
"stellar-base": "^6.0.4",
142142
"toml": "^2.3.0",
143143
"tslib": "^1.10.0",
144144
"urijs": "^1.19.1",

src/server_api.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,7 @@ export namespace ServerApi {
118118
type: Horizon.LiquidityPoolType;
119119
total_trustlines: string;
120120
total_shares: string;
121-
reserves: {
122-
amount: string;
123-
asset: string;
124-
};
121+
reserves: Horizon.Reserve[];
125122
}
126123
export enum TradeType {
127124
all = "all",

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -7876,10 +7876,10 @@ static-extend@^0.1.1:
78767876
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
78777877
integrity sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=
78787878

7879-
stellar-base@^6.0.3:
7880-
version "6.0.3"
7881-
resolved "https://registry.yarnpkg.com/stellar-base/-/stellar-base-6.0.3.tgz#14ac70ee74a974142fb2509b01649f9b3bb5cf3f"
7882-
integrity sha512-3xQo7VU2u84CQZ4ZxOk+TVXAUuMkwNbWzMcUSEcYja5i5CRX1RK1ivP9pn/VENIsLgu5tWhQeBMt3WHOo1ryBw==
7879+
stellar-base@^6.0.4:
7880+
version "6.0.4"
7881+
resolved "https://registry.yarnpkg.com/stellar-base/-/stellar-base-6.0.4.tgz#2b44ef6434e52cbfca103ff9349f16fca806557e"
7882+
integrity sha512-zYoo4sjeF3mX9L/m/VF5qySpKdmGi+1c8Q58dB+wRNSLZMYssx7cplONuFMZpcCDukSdFNx+8mjyZdPuy7j1tA==
78837883
dependencies:
78847884
base32.js "^0.1.0"
78857885
bignumber.js "^4.0.0"

0 commit comments

Comments
 (0)