@xoxno/types 1.0.481 → 1.0.483

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.
@@ -11,6 +11,10 @@ declare class TokenDataDocBase {
11
11
  stellarNetwork?: 'mainnet' | 'testnet';
12
12
  issuer?: string;
13
13
  swappable?: boolean;
14
+ lpToken?: boolean;
15
+ lpDex?: string;
16
+ lpPool?: string;
17
+ lpAssets?: string[];
14
18
  constructor(props?: Partial<TokenDataDocBase>);
15
19
  }
16
20
  export declare class TokenDataDoc extends TokenDataDocBase {
@@ -111,6 +111,45 @@ __decorate([
111
111
  }),
112
112
  __metadata("design:type", Boolean)
113
113
  ], TokenDataDocBase.prototype, "swappable", void 0);
114
+ __decorate([
115
+ (0, swagger_1.ApiProperty)({
116
+ type: Boolean,
117
+ required: false,
118
+ description: 'Whether this token is an AMM LP share token. When true, lpDex, lpPool and lpAssets describe the pool it represents.',
119
+ example: true,
120
+ }),
121
+ __metadata("design:type", Boolean)
122
+ ], TokenDataDocBase.prototype, "lpToken", void 0);
123
+ __decorate([
124
+ (0, swagger_1.ApiProperty)({
125
+ type: String,
126
+ required: false,
127
+ description: 'DEX the LP share token belongs to (e.g. Aquarius).',
128
+ example: 'Aquarius',
129
+ }),
130
+ __metadata("design:type", String)
131
+ ], TokenDataDocBase.prototype, "lpDex", void 0);
132
+ __decorate([
133
+ (0, swagger_1.ApiProperty)({
134
+ type: String,
135
+ required: false,
136
+ description: 'Pool contract address (C…) behind an LP share token. Resolves a held share token to its exact pool — fee-tier precise — without any third-party or on-chain lookup (e.g. for building an Aquarius withdraw, which needs the pool address and index, not just the share token).',
137
+ example: 'CAB6MICC2WKRT372U3FRPKGGVB5R3FDJSMWSLPF2UJNJPYMBZ76RQVYE',
138
+ }),
139
+ __metadata("design:type", String)
140
+ ], TokenDataDocBase.prototype, "lpPool", void 0);
141
+ __decorate([
142
+ (0, swagger_1.ApiProperty)({
143
+ type: [String],
144
+ required: false,
145
+ description: 'Underlying leg token identifiers of an LP share token, in the pool contract order (sorted ascending by contract ID for Soroban AMMs).',
146
+ example: [
147
+ 'CAUIKL3IYGMERDRUN6YSCLWVAKIFG5Q4YJHUKM4S4NJZQIA3BAS6OJPK',
148
+ 'CD25MNVTZDL4Y3XBCPCJXGXATV5WUHHOWMYFF4YBEGU5FCPGMYTVG5JY',
149
+ ],
150
+ }),
151
+ __metadata("design:type", Array)
152
+ ], TokenDataDocBase.prototype, "lpAssets", void 0);
114
153
  class TokenDataDoc extends TokenDataDocBase {
115
154
  constructor(props) {
116
155
  super(props);
@@ -21,7 +21,19 @@ export interface StellarLendingActivityData {
21
21
  amountShort: number | null;
22
22
  oraclePrice: number | null;
23
23
  usd: number | null;
24
+ /**
25
+ * Fee in display units on rows where `amount` is a gross principal rather
26
+ * than the fee itself (`position:flash_loan`, `strategy:fee`). Omitted when
27
+ * the asset decimals are unknown — never a fabricated zero.
28
+ */
24
29
  feeShort?: number;
30
+ /**
31
+ * `feeShort` valued at the same `oraclePrice` as `usd`. On a `strategyFee`
32
+ * row `usd` is the strategy's gross principal, NOT protocol revenue — sum
33
+ * `feeUsd` for revenue. Omitted when the asset is unpriced or its decimals
34
+ * are unknown.
35
+ */
36
+ feeUsd?: number;
25
37
  /**
26
38
  * Which side of the position this row mutated (`null` for non-position
27
39
  * events: flash loan, strategy fee, bad-debt header).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.481",
3
+ "version": "1.0.483",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {