@xoxno/types 1.0.425 → 1.0.426

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.
@@ -98,6 +98,7 @@ export declare const CacheKeys: {
98
98
  LendingPositionLeaderboard: (hash: string) => CacheKeyConfig;
99
99
  LendingEModeCategoryProfileDoc: (id: string) => CacheKeyConfig;
100
100
  LendingMarketStatsGraphData: (startTime: string, endTime: string, bin: string, token?: string) => CacheKeyConfig;
101
+ LendingStatsHistory: (startTime: string, endTime: string, bin: string, chain: string) => CacheKeyConfig;
101
102
  LendingMarketAverageGraphData: (token: string) => CacheKeyConfig;
102
103
  LendingMarketQuery: (filterHash: string) => CacheKeyConfig;
103
104
  UserLendingPositions: (address: string, token?: string) => CacheKeyConfig;
@@ -362,6 +362,10 @@ exports.CacheKeys = {
362
362
  key: `lending:market:${token}:stats:graph:${startTime}:${endTime}:${bin}`,
363
363
  ttl: ttl_1.TTLS.ONE_MINUTE * 15,
364
364
  }),
365
+ LendingStatsHistory: (startTime, endTime, bin, chain) => ({
366
+ key: `lending:global:stats:history:${chain}:${startTime}:${endTime}:${bin}`,
367
+ ttl: ttl_1.TTLS.ONE_MINUTE * 15,
368
+ }),
365
369
  LendingMarketAverageGraphData: (token) => ({
366
370
  key: `lending:market:${token}:stats`,
367
371
  ttl: ttl_1.TTLS.ONE_HOUR * 4,
@@ -0,0 +1,5 @@
1
+ export declare class LendingStatsHistory {
2
+ timestamp: string[];
3
+ supplied: number[];
4
+ borrowed: number[];
5
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LendingStatsHistory = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ class LendingStatsHistory {
15
+ }
16
+ exports.LendingStatsHistory = LendingStatsHistory;
17
+ __decorate([
18
+ (0, swagger_1.ApiProperty)({
19
+ description: 'Bin-start timestamp of each point, ISO 8601',
20
+ example: [
21
+ '2026-05-26T00:00:00Z',
22
+ '2026-05-27T00:00:00Z',
23
+ '2026-05-28T00:00:00Z',
24
+ ],
25
+ isArray: true,
26
+ items: { type: 'string' },
27
+ }),
28
+ __metadata("design:type", Array)
29
+ ], LendingStatsHistory.prototype, "timestamp", void 0);
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({
32
+ description: 'Total deposits (supplied) in USD at each timestamp',
33
+ example: [1156010.01, 1133263.57, 1104721.64],
34
+ isArray: true,
35
+ items: { type: 'number' },
36
+ }),
37
+ __metadata("design:type", Array)
38
+ ], LendingStatsHistory.prototype, "supplied", void 0);
39
+ __decorate([
40
+ (0, swagger_1.ApiProperty)({
41
+ description: 'Active loans (borrowed) in USD at each timestamp',
42
+ example: [265017.92, 261174.28, 252766.49],
43
+ isArray: true,
44
+ items: { type: 'number' },
45
+ }),
46
+ __metadata("design:type", Array)
47
+ ], LendingStatsHistory.prototype, "borrowed", void 0);
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './common/kusto/lending-market-analytics';
4
4
  export * from './common/kusto/lending-market-average';
5
5
  export * from './common/kusto/lending-overall-stats';
6
6
  export * from './common/kusto/lending-position-status';
7
+ export * from './common/kusto/lending-stats-history';
7
8
  export * from './common/kusto/user-trading-summary';
8
9
  export * from './common/kusto/volume-graph';
9
10
  export * from './common/kusto/wallet-stats';
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ __exportStar(require("./common/kusto/lending-market-analytics"), exports);
20
20
  __exportStar(require("./common/kusto/lending-market-average"), exports);
21
21
  __exportStar(require("./common/kusto/lending-overall-stats"), exports);
22
22
  __exportStar(require("./common/kusto/lending-position-status"), exports);
23
+ __exportStar(require("./common/kusto/lending-stats-history"), exports);
23
24
  __exportStar(require("./common/kusto/user-trading-summary"), exports);
24
25
  __exportStar(require("./common/kusto/volume-graph"), exports);
25
26
  __exportStar(require("./common/kusto/wallet-stats"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.425",
3
+ "version": "1.0.426",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {