@argent/x-shared 1.40.0 → 1.41.1

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.
@@ -30,7 +30,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
30
30
  products: import('zod').objectOutputType<{
31
31
  name: import('zod').ZodString;
32
32
  manageUrl: import('zod').ZodString;
33
- type: import('zod').ZodUnion<[import('zod').ZodLiteral<"concentratedLiquidityPosition">, import('zod').ZodLiteral<"collateralizedDebtPosition">, import('zod').ZodLiteral<"delegatedTokens">, import('zod').ZodLiteral<"staking">]>;
33
+ type: import('zod').ZodUnion<[import('zod').ZodLiteral<"concentratedLiquidityPosition">, import('zod').ZodLiteral<"collateralizedDebtPosition">, import('zod').ZodLiteral<"delegatedTokens">, import('zod').ZodLiteral<"strkDelegatedStaking">, import('zod').ZodLiteral<"staking">]>;
34
34
  groups: import('zod').ZodOptional<import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodObject<{
35
35
  name: import('zod').ZodOptional<import('zod').ZodString>;
36
36
  healthRatio: import('zod').ZodOptional<import('zod').ZodString>;
@@ -41,7 +41,8 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
41
41
  name?: string | undefined;
42
42
  healthRatio?: string | undefined;
43
43
  }>>>;
44
- positions: import('zod').ZodArray<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<import("zod").objectUtil.extendShape<{
44
+ positions: import('zod').ZodArray<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<import("zod").objectUtil.extendShape<{
45
+ id: import('zod').ZodString;
45
46
  tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
46
47
  totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
47
48
  }, {
@@ -153,6 +154,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
153
154
  };
154
155
  tickSpacingPercentage?: string | undefined;
155
156
  };
157
+ id: string;
156
158
  totalBalances: Record<string, string>;
157
159
  tokenId: string;
158
160
  tokenAddress?: `0x${string}` | undefined;
@@ -177,10 +179,12 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
177
179
  };
178
180
  tickSpacingPercentage?: string | undefined;
179
181
  };
182
+ id: string;
180
183
  totalBalances: Record<string, string>;
181
184
  tokenId: string;
182
185
  tokenAddress?: string | undefined;
183
186
  }>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
187
+ id: import('zod').ZodString;
184
188
  tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
185
189
  totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
186
190
  }, {
@@ -211,6 +215,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
211
215
  apy?: string | undefined;
212
216
  group?: number | undefined;
213
217
  };
218
+ id: string;
214
219
  totalBalances: Record<string, string>;
215
220
  tokenAddress?: `0x${string}` | undefined;
216
221
  }, {
@@ -221,6 +226,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
221
226
  apy?: string | undefined;
222
227
  group?: number | undefined;
223
228
  };
229
+ id: string;
224
230
  totalBalances: Record<string, string>;
225
231
  tokenAddress?: string | undefined;
226
232
  }>]>, import('zod').ZodObject<{
@@ -243,6 +249,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
243
249
  };
244
250
  totalBalances: Record<string, string>;
245
251
  }>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
252
+ id: import('zod').ZodString;
246
253
  tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
247
254
  totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
248
255
  }, {
@@ -258,6 +265,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
258
265
  data: {
259
266
  apy: string;
260
267
  };
268
+ id: string;
261
269
  totalBalances: Record<string, string>;
262
270
  tokenAddress?: `0x${string}` | undefined;
263
271
  investmentId?: string | undefined;
@@ -265,9 +273,100 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
265
273
  data: {
266
274
  apy: string;
267
275
  };
276
+ id: string;
268
277
  totalBalances: Record<string, string>;
269
278
  tokenAddress?: string | undefined;
270
279
  investmentId?: string | undefined;
280
+ }>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
281
+ id: import('zod').ZodString;
282
+ tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
283
+ totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
284
+ }, {
285
+ data: import('zod').ZodObject<{
286
+ stakerInfo: import('zod').ZodObject<{
287
+ name: import('zod').ZodOptional<import('zod').ZodString>;
288
+ iconUrl: import('zod').ZodOptional<import('zod').ZodString>;
289
+ address: import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>;
290
+ }, "strip", import('zod').ZodTypeAny, {
291
+ address: `0x${string}`;
292
+ name?: string | undefined;
293
+ iconUrl?: string | undefined;
294
+ }, {
295
+ address: string;
296
+ name?: string | undefined;
297
+ iconUrl?: string | undefined;
298
+ }>;
299
+ accruedReward: import('zod').ZodString;
300
+ pendingWithdrawal: import('zod').ZodOptional<import('zod').ZodObject<{
301
+ amount: import('zod').ZodString;
302
+ withdrawableAfter: import('zod').ZodNumber;
303
+ }, "strip", import('zod').ZodTypeAny, {
304
+ amount: string;
305
+ withdrawableAfter: number;
306
+ }, {
307
+ amount: string;
308
+ withdrawableAfter: number;
309
+ }>>;
310
+ apy: import('zod').ZodOptional<import('zod').ZodString>;
311
+ }, "strip", import('zod').ZodTypeAny, {
312
+ stakerInfo: {
313
+ address: `0x${string}`;
314
+ name?: string | undefined;
315
+ iconUrl?: string | undefined;
316
+ };
317
+ accruedReward: string;
318
+ apy?: string | undefined;
319
+ pendingWithdrawal?: {
320
+ amount: string;
321
+ withdrawableAfter: number;
322
+ } | undefined;
323
+ }, {
324
+ stakerInfo: {
325
+ address: string;
326
+ name?: string | undefined;
327
+ iconUrl?: string | undefined;
328
+ };
329
+ accruedReward: string;
330
+ apy?: string | undefined;
331
+ pendingWithdrawal?: {
332
+ amount: string;
333
+ withdrawableAfter: number;
334
+ } | undefined;
335
+ }>;
336
+ }>, "strip", import('zod').ZodTypeAny, {
337
+ data: {
338
+ stakerInfo: {
339
+ address: `0x${string}`;
340
+ name?: string | undefined;
341
+ iconUrl?: string | undefined;
342
+ };
343
+ accruedReward: string;
344
+ apy?: string | undefined;
345
+ pendingWithdrawal?: {
346
+ amount: string;
347
+ withdrawableAfter: number;
348
+ } | undefined;
349
+ };
350
+ id: string;
351
+ totalBalances: Record<string, string>;
352
+ tokenAddress?: `0x${string}` | undefined;
353
+ }, {
354
+ data: {
355
+ stakerInfo: {
356
+ address: string;
357
+ name?: string | undefined;
358
+ iconUrl?: string | undefined;
359
+ };
360
+ accruedReward: string;
361
+ apy?: string | undefined;
362
+ pendingWithdrawal?: {
363
+ amount: string;
364
+ withdrawableAfter: number;
365
+ } | undefined;
366
+ };
367
+ id: string;
368
+ totalBalances: Record<string, string>;
369
+ tokenAddress?: string | undefined;
271
370
  }>]>, "many">;
272
371
  }, import('zod').ZodTypeAny, "passthrough">[];
273
372
  }[]>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),a=require("../../../chains/starknet/address.cjs"),g=require("./defiPositionType.model.cjs"),h=require("../../../utils/schemas.cjs"),S=e.z.object({status:e.z.literal("initialising")}).or(e.z.object({status:e.z.literal("initialised"),balances:e.z.array(e.z.object({tokenAddress:a.addressSchemaArgentBackend,tokenBalance:e.z.string()}))})),i=e.z.object({id:e.z.number(),address:a.addressSchema,brandColor:e.z.string().optional(),name:e.z.string(),symbol:e.z.string(),decimals:e.z.number(),iconUrl:e.z.string().optional(),sendable:e.z.boolean(),popular:e.z.boolean(),refundable:e.z.boolean(),listed:e.z.boolean(),tradable:e.z.boolean(),category:e.z.union([e.z.literal("tokens"),e.z.literal("currencies"),e.z.literal("savings")]),pricingId:e.z.number().optional(),dappId:e.z.string().optional(),marketData:e.z.object({marketCap:e.z.number(),marketCap24hChange:e.z.number(),dailyVolume:e.z.number(),rank:e.z.number()}).optional(),tags:e.z.array(e.z.string()).optional()}),b=e.z.object({tokens:e.z.array(i)}),u=i,p=e.z.object({pricingId:e.z.number(),ethValue:e.z.string(),ccyValue:e.z.string(),ethDayChange:e.z.string(),ccyDayChange:e.z.string()}),k=e.z.object({prices:e.z.array(p)}),o=e.z.object({tokenAddress:a.addressSchemaArgentBackend,principal:e.z.string(),accruedFees:e.z.string(),minPrice:e.z.string(),maxPrice:e.z.string(),currentPrice:e.z.string()}),t=e.z.object({tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string())}),n=t.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:o,token1:o})}),D=e.z.array(n),s=t.extend({data:e.z.object({apy:e.z.string()}),investmentId:e.z.string().optional()}),y=e.z.array(s),r=t.extend({data:e.z.object({apy:e.z.string().optional(),group:e.z.number().optional(),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean()})}),P=e.z.array(r),c=e.z.object({data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string())}),j=e.z.array(c),z=e.z.array(n.or(r).or(c).or(s)),d=h.createSchemaWithWarnings({name:e.z.string(),manageUrl:e.z.string(),type:g.defiPositionTypeSchema,groups:e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:z}),l=e.z.object({dappId:e.z.string(),products:e.z.array(d)}),f=e.z.object({dapps:e.z.array(l)}),m=e.z.object({name:e.z.string().optional(),tokenAddress:a.addressSchema,amount:e.z.string().optional(),claimUrl:e.z.string().optional(),claimStart:e.z.number(),claimEnd:e.z.number().optional()}),T=e.z.object({accountAddress:a.addressSchema,chain:e.z.string(),airdrops:e.z.array(m)});exports.apiAccountTokenBalancesSchema=S;exports.apiAirdropSchema=m;exports.apiCollateralizedDebtPositionSchema=r;exports.apiCollateralizedDebtPositionsSchema=P;exports.apiConcentratedLiquidityPositionSchema=n;exports.apiConcentratedLiquidityPositionsSchema=D;exports.apiDefiDecompositionProduct=d;exports.apiDefiDecompositionProducts=z;exports.apiDefiDecompositionSchema=l;exports.apiDefiDecompositionToken=o;exports.apiDefiPositionsSchema=f;exports.apiDelegatedTokensArraySchema=j;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=k;exports.apiPriceDetailsSchema=p;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=y;exports.apiTokenInfoResponseSchema=u;exports.apiTokenInfoSchema=i;exports.apiTokensInfoResponseSchema=b;exports.apiUnclaimedRewardsSchema=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),a=require("../../../chains/starknet/address.cjs"),h=require("./defiPositionType.model.cjs"),b=require("../../../utils/schemas.cjs"),u=e.z.object({status:e.z.literal("initialising")}).or(e.z.object({status:e.z.literal("initialised"),balances:e.z.array(e.z.object({tokenAddress:a.addressSchemaArgentBackend,tokenBalance:e.z.string()}))})),t=e.z.object({id:e.z.number(),address:a.addressSchema,brandColor:e.z.string().optional(),name:e.z.string(),symbol:e.z.string(),decimals:e.z.number(),iconUrl:e.z.string().optional(),sendable:e.z.boolean(),popular:e.z.boolean(),refundable:e.z.boolean(),listed:e.z.boolean(),tradable:e.z.boolean(),category:e.z.union([e.z.literal("tokens"),e.z.literal("currencies"),e.z.literal("savings")]),pricingId:e.z.number().optional(),dappId:e.z.string().optional(),marketData:e.z.object({marketCap:e.z.number(),marketCap24hChange:e.z.number(),dailyVolume:e.z.number(),rank:e.z.number()}).optional(),tags:e.z.array(e.z.string()).optional()}),k=e.z.object({tokens:e.z.array(t)}),D=t,d=e.z.object({pricingId:e.z.number(),ethValue:e.z.string(),ccyValue:e.z.string(),ethDayChange:e.z.string(),ccyDayChange:e.z.string()}),y=e.z.object({prices:e.z.array(d)}),o=e.z.object({tokenAddress:a.addressSchemaArgentBackend,principal:e.z.string(),accruedFees:e.z.string(),minPrice:e.z.string(),maxPrice:e.z.string(),currentPrice:e.z.string()}),i=e.z.object({id:e.z.string(),tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string())}),n=i.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:o,token1:o})}),P=e.z.array(n),s=i.extend({data:e.z.object({apy:e.z.string()}),investmentId:e.z.string().optional()}),f=e.z.array(s),r=i.extend({data:e.z.object({apy:e.z.string().optional(),group:e.z.number().optional(),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean()})}),j=e.z.array(r),c=e.z.object({data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string())}),T=e.z.array(c),p=i.extend({data:e.z.object({stakerInfo:e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().optional(),address:a.addressSchema}),accruedReward:e.z.string(),pendingWithdrawal:e.z.object({amount:e.z.string(),withdrawableAfter:e.z.number()}).optional(),apy:e.z.string().optional()})}),A=e.z.array(p),z=n.or(r).or(c).or(s).or(p),l=e.z.array(z),m=b.createSchemaWithWarnings({name:e.z.string(),manageUrl:e.z.string(),type:h.defiPositionTypeSchema,groups:e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:l}),g=e.z.object({dappId:e.z.string(),products:e.z.array(m)}),C=e.z.object({dapps:e.z.array(g)}),S=e.z.object({name:e.z.string().optional(),tokenAddress:a.addressSchema,amount:e.z.string().optional(),claimUrl:e.z.string().optional(),claimStart:e.z.number(),claimEnd:e.z.number().optional()}),I=e.z.object({accountAddress:a.addressSchema,chain:e.z.string(),airdrops:e.z.array(S)});exports.apiAccountTokenBalancesSchema=u;exports.apiAirdropSchema=S;exports.apiCollateralizedDebtPositionSchema=r;exports.apiCollateralizedDebtPositionsSchema=j;exports.apiConcentratedLiquidityPositionSchema=n;exports.apiConcentratedLiquidityPositionsSchema=P;exports.apiDefiDecompositionProduct=m;exports.apiDefiDecompositionProducts=l;exports.apiDefiDecompositionSchema=g;exports.apiDefiDecompositionToken=o;exports.apiDefiPositionSchema=z;exports.apiDefiPositionsSchema=C;exports.apiDelegatedTokensArraySchema=T;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=y;exports.apiPriceDetailsSchema=d;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=f;exports.apiStrkDelegatedStakingPositionsSchema=A;exports.apiStrkDelegatedStakingSchema=p;exports.apiTokenInfoResponseSchema=D;exports.apiTokenInfoSchema=t;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=I;