@argent/x-shared 1.41.4 → 1.41.6
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.
|
@@ -230,7 +230,12 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
230
230
|
id: string;
|
|
231
231
|
totalBalances: Record<string, string>;
|
|
232
232
|
tokenAddress?: string | undefined;
|
|
233
|
-
}>]>, import('zod').ZodObject<{
|
|
233
|
+
}>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
234
|
+
id: import('zod').ZodString;
|
|
235
|
+
tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
|
|
236
|
+
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
237
|
+
}, {
|
|
238
|
+
id: import('zod').ZodString;
|
|
234
239
|
data: import('zod').ZodObject<{
|
|
235
240
|
delegatingTo: import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>;
|
|
236
241
|
}, "strip", import('zod').ZodTypeAny, {
|
|
@@ -239,16 +244,20 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
239
244
|
delegatingTo: string;
|
|
240
245
|
}>;
|
|
241
246
|
totalBalances: import('zod').ZodRecord<import('zod').ZodString, import('zod').ZodString>;
|
|
242
|
-
}
|
|
247
|
+
}>, "strip", import('zod').ZodTypeAny, {
|
|
243
248
|
data: {
|
|
244
249
|
delegatingTo: `0x${string}`;
|
|
245
250
|
};
|
|
251
|
+
id: string;
|
|
246
252
|
totalBalances: Record<string, string>;
|
|
253
|
+
tokenAddress?: `0x${string}` | undefined;
|
|
247
254
|
}, {
|
|
248
255
|
data: {
|
|
249
256
|
delegatingTo: string;
|
|
250
257
|
};
|
|
258
|
+
id: string;
|
|
251
259
|
totalBalances: Record<string, string>;
|
|
260
|
+
tokenAddress?: string | undefined;
|
|
252
261
|
}>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
253
262
|
id: import('zod').ZodString;
|
|
254
263
|
tokenAddress: import('zod').ZodOptional<import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>>;
|
|
@@ -298,7 +307,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
298
307
|
name?: string | undefined;
|
|
299
308
|
iconUrl?: string | undefined;
|
|
300
309
|
}>;
|
|
301
|
-
|
|
310
|
+
accruedRewards: import('zod').ZodString;
|
|
302
311
|
pendingWithdrawal: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
303
312
|
amount: import('zod').ZodString;
|
|
304
313
|
withdrawableAfter: import('zod').ZodNumber;
|
|
@@ -316,7 +325,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
316
325
|
name?: string | undefined;
|
|
317
326
|
iconUrl?: string | undefined;
|
|
318
327
|
};
|
|
319
|
-
|
|
328
|
+
accruedRewards: string;
|
|
320
329
|
apy?: string | undefined;
|
|
321
330
|
pendingWithdrawal?: {
|
|
322
331
|
amount: string;
|
|
@@ -328,7 +337,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
328
337
|
name?: string | undefined;
|
|
329
338
|
iconUrl?: string | undefined;
|
|
330
339
|
};
|
|
331
|
-
|
|
340
|
+
accruedRewards: string;
|
|
332
341
|
apy?: string | undefined;
|
|
333
342
|
pendingWithdrawal?: {
|
|
334
343
|
amount: string;
|
|
@@ -342,7 +351,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
342
351
|
name?: string | undefined;
|
|
343
352
|
iconUrl?: string | undefined;
|
|
344
353
|
};
|
|
345
|
-
|
|
354
|
+
accruedRewards: string;
|
|
346
355
|
apy?: string | undefined;
|
|
347
356
|
pendingWithdrawal?: {
|
|
348
357
|
amount: string;
|
|
@@ -359,7 +368,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
359
368
|
name?: string | undefined;
|
|
360
369
|
iconUrl?: string | undefined;
|
|
361
370
|
};
|
|
362
|
-
|
|
371
|
+
accruedRewards: string;
|
|
363
372
|
apy?: string | undefined;
|
|
364
373
|
pendingWithdrawal?: {
|
|
365
374
|
amount: string;
|
|
@@ -1 +1 @@
|
|
|
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()}))})),o=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(o)}),D=o,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)}),t=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:t,token1:t})}),P=e.z.array(n),s=i.extend({data:e.z.object({apy:e.z.string()}),investmentId:e.z.string().optional(),totalBalances:e.z.record(e.z.string())}),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.
|
|
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()}))})),o=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(o)}),D=o,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)}),t=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:t,token1:t})}),P=e.z.array(n),s=i.extend({data:e.z.object({apy:e.z.string()}),investmentId:e.z.string().optional(),totalBalances:e.z.record(e.z.string())}),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=i.extend({id:e.z.string(),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}),accruedRewards: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({productId:e.z.string(),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=t;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=o;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=I;
|