@1delta/margin-fetcher 0.0.327 → 0.0.328
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.
|
@@ -23,6 +23,15 @@ export declare class ApiBookSource implements MidnightBookSource {
|
|
|
23
23
|
* APR (from tick + TTM) and applies count/size filters.
|
|
24
24
|
*/
|
|
25
25
|
getBook(marketId: string): Promise<MidnightBook | null>;
|
|
26
|
+
/**
|
|
27
|
+
* Maker addresses per price level, keyed by tick string. `getBook` levels are
|
|
28
|
+
* aggregated by tick and carry NO maker (a level can be several makers), so
|
|
29
|
+
* this reads the individual offers from the `{side}/quote` endpoint (which the
|
|
30
|
+
* book endpoint lacks) and groups their makers by tick. `assets` should be the
|
|
31
|
+
* book's total depth so the quote returns EVERY offer (it returns none when the
|
|
32
|
+
* target exceeds depth). Best-effort: `{}` on any failure.
|
|
33
|
+
*/
|
|
34
|
+
getOfferMakers(marketId: string, side: 'bids' | 'asks', assets: bigint): Promise<Record<string, string[]>>;
|
|
26
35
|
}
|
|
27
36
|
/** Build the default (hosted-API) book source for a chain. */
|
|
28
37
|
export declare function createMidnightBookSource(chainId: string, fetchImpl?: FetchLike): MidnightBookSource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiClient.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/midnight/apiClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAEhB,MAAM,SAAS,CAAA;AAEhB,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,uCAAuC,CAAA;AAOxE,KAAK,SAAS,GAAG,OAAO,KAAK,CAAA;AAE7B,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE1D;AAgED;;;;GAIG;AACH,qBAAa,aAAc,YAAW,kBAAkB;
|
|
1
|
+
{"version":3,"file":"apiClient.d.ts","sourceRoot":"","sources":["../../../../src/lending/public-data/midnight/apiClient.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAClB,eAAe,EAEhB,MAAM,SAAS,CAAA;AAEhB,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,uCAAuC,CAAA;AAOxE,KAAK,SAAS,GAAG,OAAO,KAAK,CAAA;AAE7B,4FAA4F;AAC5F,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE1D;AAgED;;;;GAIG;AACH,qBAAa,aAAc,YAAW,kBAAkB;IACtD,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAQ;IAChC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAW;gBAEzB,OAAO,EAAE,MAAM,EAAE,SAAS,GAAE,SAAiB;IAWnD,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;IAmBnE;;;;;;;OAOG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;IAgC7D;;;;;;;OAOG;IACG,cAAc,CAClB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GAAG,MAAM,EACrB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;CAuBrC;AAED,8DAA8D;AAC9D,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,SAAS,GAAE,SAAiB,GAC3B,kBAAkB,CAEpB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@1delta/margin-fetcher",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.328",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"async-retry": "^1.3.3",
|
|
24
24
|
"lodash": "^4.17.23",
|
|
25
|
-
"@1delta/
|
|
25
|
+
"@1delta/calldata-sdk": "0.0.158",
|
|
26
26
|
"@1delta/abis": "0.0.23",
|
|
27
|
+
"@1delta/data-sdk": "0.0.31",
|
|
27
28
|
"@1delta/dex-registry": "0.0.103",
|
|
28
|
-
"@1delta/calldata-sdk": "0.0.157",
|
|
29
29
|
"@1delta/lender-registry": "0.0.34",
|
|
30
|
-
"@1delta/
|
|
31
|
-
"@1delta/
|
|
30
|
+
"@1delta/proxy-fetch": "0.0.1",
|
|
31
|
+
"@1delta/providers": "0.0.62"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/async-retry": "^1.4.9",
|