@minswap/sdk-v2 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +2 -2
- package/dist/index.cjs +355 -481
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +132 -289
- package/dist/index.d.ts +132 -289
- package/dist/index.js +354 -478
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ All notable changes to `@minswap/sdk-v2` are documented here. The format follows
|
|
|
4
4
|
[Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
|
|
5
5
|
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [1.0.1] - 2026-10-19
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `sdk.order.getPending`: an address's open swap orders from the app API (`/api/v1/order/pending`), paginated; `protocol` is the app API protocol code.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Optional peer `@minswap/internal-sdk` is now `^0.1.18` (was `^0.1.13`).
|
|
18
|
+
- **Breaking:** `liquidity` reads pool state from the app API (`/api/v1/pool/state`) instead of the app GraphQL.
|
|
19
|
+
- **Breaking:** `getAppliedPoolsByLpAssets` takes `sdk.clients.appApi` and LP `coinId`s; `getAppliedPoolsByPairs` is replaced by `getAppliedPoolsByPair(client, coinA, coinB)`.
|
|
20
|
+
|
|
21
|
+
### Removed
|
|
22
|
+
|
|
23
|
+
- **Breaking:** `sdk.aggregator.getPendingOrders`, `GetPendingOrdersOptions`, and the aggregator `PendingOrder` shape; use `sdk.order.getPending`.
|
|
24
|
+
- **Breaking:** `appGraphqlUrl`, `sdk.clients.appGraphql`, `AppGraphqlClient`, `AppGraphqlOperation`, `InputPair`, `AppliedPool.rawDatum`.
|
|
25
|
+
|
|
7
26
|
## [1.0.0] - 2026-07-28
|
|
8
27
|
|
|
9
28
|
Initial release. A clean, standalone TypeScript client for the Minswap API,
|
package/README.md
CHANGED
|
@@ -69,8 +69,8 @@ const sdk = new MinswapSdk({
|
|
|
69
69
|
| `sdk.token` | `getById`, `getByIds`, `list`, `getOhlc`, `getTradeHistory` |
|
|
70
70
|
| `sdk.pool` | `list`, `getById`, `getByIds`, `getOhlc`, `getEvents` |
|
|
71
71
|
| `sdk.portfolio` | `getDefi` — a wallet's LP, farm, and staking positions |
|
|
72
|
-
| `sdk.order` | `getHistory` — DEX order history across protocols |
|
|
73
|
-
| `sdk.aggregator` | `estimate`, `buildTx`, `submitTx`, `cancelOrders
|
|
72
|
+
| `sdk.order` | `getHistory`, `getPending` — DEX order history and open swap orders across protocols |
|
|
73
|
+
| `sdk.aggregator` | `estimate`, `buildTx`, `submitTx`, `cancelOrders` |
|
|
74
74
|
| `sdk.liquidity` | `addLiquidity`, `removeLiquidity`, `zapIn`, `zapOut` — across DEX V2, V1, Stableswap |
|
|
75
75
|
| `sdk.farm` | `list`, `getPositions`, `deposit`, `withdraw`, `harvest`, `emergencyWithdraw` |
|
|
76
76
|
| `sdk.staking` | `list`, `getPositions`, `stake`, `unstake` |
|