@pendle/sdk-boros 1.1.54 → 1.2.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 +24 -0
- package/dist/backend/LogStore/LogStoreBackend.d.ts +1 -1
- package/dist/backend/secrettune/BorosCoreSDK.d.ts +127 -127
- package/dist/backend/secrettune/BorosSendTxsBotSDK.d.ts +6 -6
- package/dist/backend/secrettune/PendleV2SDK.d.ts +122 -122
- package/dist/entities/exchange/exchange.d.ts +49 -12
- package/dist/entities/exchange/exchange.js +145 -5
- package/dist/entities/exchange/exchange.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @pendle/sdk-boros
|
|
2
2
|
|
|
3
|
+
## 1.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1329db8: feat(exchange): in-flight dedupe for `getMarketData` — concurrent callers for the same `marketId` now share a single underlying multicall instead of firing duplicate RPCs. No staleness introduced: every caller still receives the result of one fresh multicall, and the next call after settlement fires a brand-new RPC.
|
|
8
|
+
|
|
9
|
+
## 1.2.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 8cadd65: Add helpers for working with expired markets on `Exchange`:
|
|
14
|
+
|
|
15
|
+
- `Exchange.getMarketInfo(marketId, options?)` — single-market lookup via the per-market backend endpoint. Unlike `getMarkets()`, this returns expired / delisted markets too. Cached separately, with a `skipCache` option.
|
|
16
|
+
- `Exchange.getMarketInfoByIds(marketIds, options?)` — batch helper that fetches every id in parallel via `Promise.allSettled` and returns `{ markets: Map<number, MarketResponse>, failed: Array<{ marketId, error }> }`. Input is de-duplicated.
|
|
17
|
+
- `Exchange.isMarketExpired(marketOrMaturity, nowSeconds?)` — static type-safe expiry check. Returns `undefined` (not `false`) when the input is `undefined` / `null` / has no `maturity`, so callers can't accidentally treat an unknown market as still-active.
|
|
18
|
+
- `Exchange.exitMarketsTyped(cross, marketIds, nonces?)` — typed wrapper around `exitMarkets` that returns `Array<{ marketId, txHash?, error? }>` correlated by marketId, instead of the positional bulk response. A missing `txHash` is surfaced as an explicit error rather than reported as success.
|
|
19
|
+
- `Exchange.cashTransferBatch(transfers, options?)` — batch N `cashTransfer` calls into a **single** on-chain transaction. Calldatas are fetched in parallel, concatenated, and submitted through one `bulkSignAndExecute` (which routes to `bulkAgentDirectCall`). Per-transfer results are correlated back to the input array; calldata-fetch failures and per-call errors don't poison the rest of the batch. Replaces the previous "N transfers = N transactions" pattern.
|
|
20
|
+
|
|
21
|
+
These primitives exist to make caller code safer when sweeping leftover balance out of expired isolated markets — the bulk `getMarkets({ isWhitelisted: true })` list strips matured markets server-side, which has historically led to silent skips.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 042e2aa: chore(governance): 01-axios-security-fix — pin axios >=1.15.0 (GHSA-fvcv-3m26-pcqx)
|
|
26
|
+
|
|
3
27
|
## 1.1.54
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -47,6 +47,6 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
47
47
|
}
|
|
48
48
|
export declare class Sdk<SecurityDataType extends unknown> extends HttpClient<SecurityDataType> {
|
|
49
49
|
logSdk: {
|
|
50
|
-
logSdkControllerCreateLogSdk: (data: CreateLogSDKDto, params?: RequestParams) => Promise<AxiosResponse<LogSDKResponse, any>>;
|
|
50
|
+
logSdkControllerCreateLogSdk: (data: CreateLogSDKDto, params?: RequestParams) => Promise<AxiosResponse<LogSDKResponse, any, {}>>;
|
|
51
51
|
};
|
|
52
52
|
}
|