@xoxno/types 1.0.424 → 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);
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * Stellar lending governance (timelock) proposal taxonomy.
3
3
  *
4
- * `GovernanceProposalKind` mirrors the `propose_*` entrypoints on the
5
- * governance contract; the indexer maps an operation's invoked function symbol
6
- * to one of these so the dashboard can title and group proposals.
4
+ * `GovernanceProposalKind` mirrors the `AdminOperation` variants the governance
5
+ * contract schedules; the indexer maps a scheduled operation's invoked function
6
+ * symbol to one of these so the dashboard can title and group proposals.
7
7
  */
8
8
  export declare enum GovernanceProposalKind {
9
9
  SetAggregator = "SetAggregator",
@@ -13,20 +13,20 @@ export declare enum GovernanceProposalKind {
13
13
  SetPositionLimits = "SetPositionLimits",
14
14
  SetMinBorrowCollateral = "SetMinBorrowCollateral",
15
15
  AddEModeCategory = "AddEModeCategory",
16
- EditEModeCategory = "EditEModeCategory",
17
16
  RemoveEModeCategory = "RemoveEModeCategory",
18
17
  AddAssetToEModeCategory = "AddAssetToEModeCategory",
19
18
  EditAssetInEModeCategory = "EditAssetInEModeCategory",
20
19
  RemoveAssetFromEMode = "RemoveAssetFromEMode",
21
20
  ApproveToken = "ApproveToken",
22
21
  RevokeToken = "RevokeToken",
22
+ ApproveBlendPool = "ApproveBlendPool",
23
+ RevokeBlendPool = "RevokeBlendPool",
23
24
  CreateLiquidityPool = "CreateLiquidityPool",
24
25
  UpgradeLiquidityPoolParams = "UpgradeLiquidityPoolParams",
25
26
  UpdatePoolCaps = "UpdatePoolCaps",
26
27
  DeployPool = "DeployPool",
27
28
  UpgradePool = "UpgradePool",
28
- GrantControllerRole = "GrantControllerRole",
29
- RevokeControllerRole = "RevokeControllerRole",
29
+ DisableTokenOracle = "DisableTokenOracle",
30
30
  UpgradeController = "UpgradeController",
31
31
  MigrateController = "MigrateController",
32
32
  TransferControllerOwnership = "TransferControllerOwnership",
@@ -51,7 +51,7 @@ export declare enum GovernanceProposalStatus {
51
51
  }
52
52
  /**
53
53
  * Whether executing the proposal invokes the lending controller (generic
54
- * `execute`) or the governance contract itself (typed `execute_*`).
54
+ * `execute`) or the governance contract itself (`execute_self`).
55
55
  */
56
56
  export declare enum GovernanceProposalTarget {
57
57
  Controller = "Controller",
@@ -4,9 +4,9 @@ exports.GovernanceProposalTarget = exports.GovernanceProposalStatus = exports.Go
4
4
  /**
5
5
  * Stellar lending governance (timelock) proposal taxonomy.
6
6
  *
7
- * `GovernanceProposalKind` mirrors the `propose_*` entrypoints on the
8
- * governance contract; the indexer maps an operation's invoked function symbol
9
- * to one of these so the dashboard can title and group proposals.
7
+ * `GovernanceProposalKind` mirrors the `AdminOperation` variants the governance
8
+ * contract schedules; the indexer maps a scheduled operation's invoked function
9
+ * symbol to one of these so the dashboard can title and group proposals.
10
10
  */
11
11
  var GovernanceProposalKind;
12
12
  (function (GovernanceProposalKind) {
@@ -17,20 +17,20 @@ var GovernanceProposalKind;
17
17
  GovernanceProposalKind["SetPositionLimits"] = "SetPositionLimits";
18
18
  GovernanceProposalKind["SetMinBorrowCollateral"] = "SetMinBorrowCollateral";
19
19
  GovernanceProposalKind["AddEModeCategory"] = "AddEModeCategory";
20
- GovernanceProposalKind["EditEModeCategory"] = "EditEModeCategory";
21
20
  GovernanceProposalKind["RemoveEModeCategory"] = "RemoveEModeCategory";
22
21
  GovernanceProposalKind["AddAssetToEModeCategory"] = "AddAssetToEModeCategory";
23
22
  GovernanceProposalKind["EditAssetInEModeCategory"] = "EditAssetInEModeCategory";
24
23
  GovernanceProposalKind["RemoveAssetFromEMode"] = "RemoveAssetFromEMode";
25
24
  GovernanceProposalKind["ApproveToken"] = "ApproveToken";
26
25
  GovernanceProposalKind["RevokeToken"] = "RevokeToken";
26
+ GovernanceProposalKind["ApproveBlendPool"] = "ApproveBlendPool";
27
+ GovernanceProposalKind["RevokeBlendPool"] = "RevokeBlendPool";
27
28
  GovernanceProposalKind["CreateLiquidityPool"] = "CreateLiquidityPool";
28
29
  GovernanceProposalKind["UpgradeLiquidityPoolParams"] = "UpgradeLiquidityPoolParams";
29
30
  GovernanceProposalKind["UpdatePoolCaps"] = "UpdatePoolCaps";
30
31
  GovernanceProposalKind["DeployPool"] = "DeployPool";
31
32
  GovernanceProposalKind["UpgradePool"] = "UpgradePool";
32
- GovernanceProposalKind["GrantControllerRole"] = "GrantControllerRole";
33
- GovernanceProposalKind["RevokeControllerRole"] = "RevokeControllerRole";
33
+ GovernanceProposalKind["DisableTokenOracle"] = "DisableTokenOracle";
34
34
  GovernanceProposalKind["UpgradeController"] = "UpgradeController";
35
35
  GovernanceProposalKind["MigrateController"] = "MigrateController";
36
36
  GovernanceProposalKind["TransferControllerOwnership"] = "TransferControllerOwnership";
@@ -56,7 +56,7 @@ var GovernanceProposalStatus;
56
56
  })(GovernanceProposalStatus || (exports.GovernanceProposalStatus = GovernanceProposalStatus = {}));
57
57
  /**
58
58
  * Whether executing the proposal invokes the lending controller (generic
59
- * `execute`) or the governance contract itself (typed `execute_*`).
59
+ * `execute`) or the governance contract itself (`execute_self`).
60
60
  */
61
61
  var GovernanceProposalTarget;
62
62
  (function (GovernanceProposalTarget) {
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.424",
3
+ "version": "1.0.426",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {