@xoxno/types 1.0.455 → 1.0.457

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.
@@ -37,6 +37,8 @@ export declare class LendingGovernanceProposalDoc {
37
37
  proposer: string;
38
38
  assetAddress?: string;
39
39
  assetSymbol?: string;
40
+ hubId?: number;
41
+ spokeId?: number;
40
42
  summary: string;
41
43
  fields: GovernanceProposalField[];
42
44
  scheduledLedger: number;
@@ -74,7 +74,7 @@ __decorate([
74
74
  enum: lending_governance_enum_1.GovernanceProposalKind,
75
75
  enumName: 'GovernanceProposalKind',
76
76
  description: 'Which change this proposal performs',
77
- example: lending_governance_enum_1.GovernanceProposalKind.EditAssetConfig,
77
+ example: lending_governance_enum_1.GovernanceProposalKind.CreateLiquidityPool,
78
78
  }),
79
79
  __metadata("design:type", String)
80
80
  ], LendingGovernanceProposalDoc.prototype, "kind", void 0);
@@ -146,6 +146,22 @@ __decorate([
146
146
  }),
147
147
  __metadata("design:type", String)
148
148
  ], LendingGovernanceProposalDoc.prototype, "assetSymbol", void 0);
149
+ __decorate([
150
+ (0, swagger_1.ApiProperty)({
151
+ required: false,
152
+ type: 'integer',
153
+ description: 'Hub the proposal concerns, when hub-scoped',
154
+ }),
155
+ __metadata("design:type", Number)
156
+ ], LendingGovernanceProposalDoc.prototype, "hubId", void 0);
157
+ __decorate([
158
+ (0, swagger_1.ApiProperty)({
159
+ required: false,
160
+ type: 'integer',
161
+ description: 'Spoke the proposal concerns, when spoke-scoped',
162
+ }),
163
+ __metadata("design:type", Number)
164
+ ], LendingGovernanceProposalDoc.prototype, "spokeId", void 0);
149
165
  __decorate([
150
166
  (0, swagger_1.ApiProperty)({
151
167
  description: 'One-line human summary of the proposed change',
@@ -9,14 +9,15 @@ export declare enum GovernanceProposalKind {
9
9
  SetAggregator = "SetAggregator",
10
10
  SetAccumulator = "SetAccumulator",
11
11
  SetPoolTemplate = "SetPoolTemplate",
12
- EditAssetConfig = "EditAssetConfig",
13
12
  SetPositionLimits = "SetPositionLimits",
14
13
  SetMinBorrowCollateral = "SetMinBorrowCollateral",
15
- AddEModeCategory = "AddEModeCategory",
16
- RemoveEModeCategory = "RemoveEModeCategory",
17
- AddAssetToEModeCategory = "AddAssetToEModeCategory",
18
- EditAssetInEModeCategory = "EditAssetInEModeCategory",
19
- RemoveAssetFromEMode = "RemoveAssetFromEMode",
14
+ SetPositionManager = "SetPositionManager",
15
+ CreateHub = "CreateHub",
16
+ AddSpoke = "AddSpoke",
17
+ RemoveSpoke = "RemoveSpoke",
18
+ AddAssetToSpoke = "AddAssetToSpoke",
19
+ EditAssetInSpoke = "EditAssetInSpoke",
20
+ RemoveAssetFromSpoke = "RemoveAssetFromSpoke",
20
21
  ApproveToken = "ApproveToken",
21
22
  RevokeToken = "RevokeToken",
22
23
  ApproveBlendPool = "ApproveBlendPool",
@@ -13,14 +13,15 @@ var GovernanceProposalKind;
13
13
  GovernanceProposalKind["SetAggregator"] = "SetAggregator";
14
14
  GovernanceProposalKind["SetAccumulator"] = "SetAccumulator";
15
15
  GovernanceProposalKind["SetPoolTemplate"] = "SetPoolTemplate";
16
- GovernanceProposalKind["EditAssetConfig"] = "EditAssetConfig";
17
16
  GovernanceProposalKind["SetPositionLimits"] = "SetPositionLimits";
18
17
  GovernanceProposalKind["SetMinBorrowCollateral"] = "SetMinBorrowCollateral";
19
- GovernanceProposalKind["AddEModeCategory"] = "AddEModeCategory";
20
- GovernanceProposalKind["RemoveEModeCategory"] = "RemoveEModeCategory";
21
- GovernanceProposalKind["AddAssetToEModeCategory"] = "AddAssetToEModeCategory";
22
- GovernanceProposalKind["EditAssetInEModeCategory"] = "EditAssetInEModeCategory";
23
- GovernanceProposalKind["RemoveAssetFromEMode"] = "RemoveAssetFromEMode";
18
+ GovernanceProposalKind["SetPositionManager"] = "SetPositionManager";
19
+ GovernanceProposalKind["CreateHub"] = "CreateHub";
20
+ GovernanceProposalKind["AddSpoke"] = "AddSpoke";
21
+ GovernanceProposalKind["RemoveSpoke"] = "RemoveSpoke";
22
+ GovernanceProposalKind["AddAssetToSpoke"] = "AddAssetToSpoke";
23
+ GovernanceProposalKind["EditAssetInSpoke"] = "EditAssetInSpoke";
24
+ GovernanceProposalKind["RemoveAssetFromSpoke"] = "RemoveAssetFromSpoke";
24
25
  GovernanceProposalKind["ApproveToken"] = "ApproveToken";
25
26
  GovernanceProposalKind["RevokeToken"] = "RevokeToken";
26
27
  GovernanceProposalKind["ApproveBlendPool"] = "ApproveBlendPool";
@@ -3,6 +3,12 @@ export declare class StellarLendingCursorDoc {
3
3
  dataType: StellarLendingDataType;
4
4
  lastLedger: number;
5
5
  lastPagingToken: string | null;
6
+ /**
7
+ * Controller the cursor position belongs to. A fresh protocol deployment
8
+ * changes this address; the indexer discards a mismatched cursor and
9
+ * reseeds from the configured start ledger so setup events are not skipped.
10
+ */
11
+ controllerAddress: string | null;
6
12
  updatedAt: number;
7
13
  id: string;
8
14
  pk: string;
@@ -7,6 +7,12 @@ class StellarLendingCursorDoc {
7
7
  this.dataType = enums_1.StellarLendingDataType.CURSOR;
8
8
  this.lastLedger = 0;
9
9
  this.lastPagingToken = null;
10
+ /**
11
+ * Controller the cursor position belongs to. A fresh protocol deployment
12
+ * changes this address; the indexer discards a mismatched cursor and
13
+ * reseeds from the configured start ledger so setup events are not skipped.
14
+ */
15
+ this.controllerAddress = null;
10
16
  this.updatedAt = 0;
11
17
  Object.assign(this, props);
12
18
  this.pk = this.dataType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.455",
3
+ "version": "1.0.457",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {