@xoxno/types 1.0.403 → 1.0.404

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.
@@ -1,5 +1,3 @@
1
- import { AccountPositionType, PositionMode } from '../../enums/lending.enum';
2
- import { StellarLendingTopic } from '../../enums/stellar-lending-topic.enum';
3
1
  import { AssetConfigRawDto } from './stellar-lending-admin-args.dto';
4
2
  import { StellarLendingOracleUpdateStruct } from '../../cosmos-db/documents/lending/lending-oracle';
5
3
  /**
@@ -33,12 +31,12 @@ export declare class StellarEventAccountAttributes {
33
31
  owner: string;
34
32
  isIsolatedPosition: boolean;
35
33
  eModeCategoryId: number;
36
- mode: PositionMode;
34
+ mode: 'None' | 'Multiply' | 'Long' | 'Short';
37
35
  isolatedToken?: string;
38
36
  }
39
37
  export declare class StellarEventPositionDelta {
40
38
  action: string;
41
- positionType: AccountPositionType;
39
+ positionType: 'Deposit' | 'Borrow';
42
40
  asset: string;
43
41
  scaledAmountRay: string;
44
42
  indexRay: string;
@@ -169,66 +167,66 @@ export declare class StellarOracleTwapDegradedEvent {
169
167
  * `"<domain>:<action>"` topic. Narrow on `topic` to access the typed `data`.
170
168
  */
171
169
  export type StellarLendingDecodedEvent = {
172
- topic: StellarLendingTopic.MarketCreate;
170
+ topic: 'market:create';
173
171
  data: StellarCreateMarketEvent;
174
172
  } | {
175
- topic: StellarLendingTopic.MarketParamsUpdate;
173
+ topic: 'market:params_update';
176
174
  data: StellarUpdateMarketParamsEvent;
177
175
  } | {
178
- topic: StellarLendingTopic.MarketStateBatchUpdate;
176
+ topic: 'market:batch_state_update';
179
177
  data: StellarUpdateMarketStateBatchEvent;
180
178
  } | {
181
- topic: StellarLendingTopic.PositionBatchUpdate;
179
+ topic: 'position:batch_update';
182
180
  data: StellarUpdatePositionBatchEvent;
183
181
  } | {
184
- topic: StellarLendingTopic.PositionFlashLoan;
182
+ topic: 'position:flash_loan';
185
183
  data: StellarFlashLoanEvent;
186
184
  } | {
187
- topic: StellarLendingTopic.ConfigAsset;
185
+ topic: 'config:asset';
188
186
  data: StellarUpdateAssetConfigEvent;
189
187
  } | {
190
- topic: StellarLendingTopic.ConfigOracle;
188
+ topic: 'config:oracle';
191
189
  data: StellarUpdateAssetOracleEvent;
192
190
  } | {
193
- topic: StellarLendingTopic.ConfigEModeCategory;
191
+ topic: 'config:emode_category';
194
192
  data: StellarUpdateEModeCategoryEvent;
195
193
  } | {
196
- topic: StellarLendingTopic.ConfigEModeAsset;
194
+ topic: 'config:emode_asset';
197
195
  data: StellarUpdateEModeAssetEvent;
198
196
  } | {
199
- topic: StellarLendingTopic.ConfigRemoveEModeAsset;
197
+ topic: 'config:remove_emode_asset';
200
198
  data: StellarRemoveEModeAssetEvent;
201
199
  } | {
202
- topic: StellarLendingTopic.DebtCeilingUpdate;
200
+ topic: 'debt:ceiling_update';
203
201
  data: StellarUpdateDebtCeilingEvent;
204
202
  } | {
205
- topic: StellarLendingTopic.DebtCeilingBatchUpdate;
203
+ topic: 'debt:ceiling_batch_update';
206
204
  data: StellarUpdateDebtCeilingBatchEvent;
207
205
  } | {
208
- topic: StellarLendingTopic.DebtBadDebt;
206
+ topic: 'debt:bad_debt';
209
207
  data: StellarCleanBadDebtEvent;
210
208
  } | {
211
- topic: StellarLendingTopic.StrategyInitialPayment;
209
+ topic: 'strategy:initial_payment';
212
210
  data: StellarInitialMultiplyPaymentEvent;
213
211
  } | {
214
- topic: StellarLendingTopic.ConfigApproveToken;
212
+ topic: 'config:approve_token';
215
213
  data: StellarApproveTokenEvent;
216
214
  } | {
217
- topic: StellarLendingTopic.ConfigAggregator;
215
+ topic: 'config:aggregator';
218
216
  data: StellarUpdateAggregatorEvent;
219
217
  } | {
220
- topic: StellarLendingTopic.ConfigAccumulator;
218
+ topic: 'config:accumulator';
221
219
  data: StellarUpdateAccumulatorEvent;
222
220
  } | {
223
- topic: StellarLendingTopic.ConfigPoolTemplate;
221
+ topic: 'config:pool_template';
224
222
  data: StellarUpdatePoolTemplateEvent;
225
223
  } | {
226
- topic: StellarLendingTopic.ConfigPositionLimits;
224
+ topic: 'config:position_limits';
227
225
  data: StellarUpdatePositionLimitsEvent;
228
226
  } | {
229
- topic: StellarLendingTopic.ConfigOracleDisabled;
227
+ topic: 'config:oracle_disabled';
230
228
  data: StellarOracleDisabledEvent;
231
229
  } | {
232
- topic: StellarLendingTopic.OracleTwapDegraded;
230
+ topic: 'oracle:twap_degraded';
233
231
  data: StellarOracleTwapDegradedEvent;
234
232
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.403",
3
+ "version": "1.0.404",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {