@argent/x-shared 1.46.1 → 1.48.0

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,9 +37,9 @@ const f = t.object({
37
37
  rank: t.number()
38
38
  }).optional(),
39
39
  tags: t.array(t.string()).optional()
40
- }), I = t.object({
40
+ }), A = t.object({
41
41
  tokens: t.array(i)
42
- }), A = i, m = t.object({
42
+ }), I = i, m = t.object({
43
43
  pricingId: t.number(),
44
44
  ethValue: t.string(),
45
45
  ccyValue: t.string(),
@@ -69,13 +69,15 @@ const f = t.object({
69
69
  })
70
70
  }), T = t.array(r), s = e.extend({
71
71
  data: t.object({
72
- apy: t.string()
72
+ apy: t.string(),
73
+ totalApy: t.string()
73
74
  }),
74
75
  investmentId: t.string().optional(),
75
76
  totalBalances: t.record(t.string())
76
77
  }), x = t.array(s), c = e.extend({
77
78
  data: t.object({
78
79
  apy: t.string().optional(),
80
+ totalApy: t.string().optional(),
79
81
  group: t.number().optional(),
80
82
  collateral: t.boolean(),
81
83
  debt: t.boolean(),
@@ -101,7 +103,8 @@ const f = t.object({
101
103
  amount: t.string(),
102
104
  withdrawableAfter: t.number()
103
105
  }).optional(),
104
- apy: t.string().optional()
106
+ apy: t.string().optional(),
107
+ totalApy: t.string().optional()
105
108
  })
106
109
  }), w = t.array(p), b = r.or(c).or(l).or(s).or(p), h = t.array(b), u = g({
107
110
  productId: t.string().optional(),
@@ -151,8 +154,8 @@ export {
151
154
  x as apiStakingPositionsSchema,
152
155
  w as apiStrkDelegatedStakingPositionsSchema,
153
156
  p as apiStrkDelegatedStakingSchema,
154
- A as apiTokenInfoResponseSchema,
157
+ I as apiTokenInfoResponseSchema,
155
158
  i as apiTokenInfoSchema,
156
- I as apiTokensInfoResponseSchema,
159
+ A as apiTokensInfoResponseSchema,
157
160
  v as apiUnclaimedRewardsSchema
158
161
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),o=require("../../../chains/starknet/address.cjs"),z=require("./backend.model.cjs"),m=require("./defiPositionType.model.cjs"),n=require("./webToken.model.cjs"),s=n.webTokenWithBalanceAndPriceSchema.extend({accruedFees:e.z.string(),currentPrice:e.z.string(),maxPrice:e.z.string(),minPrice:e.z.string(),principal:e.z.string()}),t=e.z.object({address:o.addressSchema.optional(),currencyValue:e.z.string().default("0")}),a=t.extend({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),tokenId:e.z.string().optional(),unitCurrencyValueToken0:e.z.string().optional(),unitCurrencyValueToken1:e.z.string().optional(),token0:s,token1:s}),g=e.z.array(a),h=e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()}),i=t.extend({totalBalances:e.z.record(e.z.string()),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean(),apy:e.z.string().optional(),group:e.z.string().optional(),unitCurrencyValue:e.z.string().optional(),positionToken:z.apiTokenInfoSchema.or(e.z.undefined()),token:n.webTokenWithBalanceAndPriceSchema.optional(),accountAddress:o.addressSchema.optional(),accountAddressGroup:e.z.string().optional()}),S=e.z.array(i),r=t.extend({delegatingTo:o.addressSchema,token:n.webTokenWithBalanceAndPriceSchema.optional(),balance:e.z.string(),unitCurrencyValue:e.z.string().optional().default("0")}),P=e.z.array(r),c=t.extend({apy:e.z.string().optional(),unitCurrencyValue:e.z.string().optional()}),y=e.z.array(c),d=a.or(i).or(r).or(c),l=e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()})),u=e.z.object({type:m.defiPositionTypeSchema,manageUrl:e.z.string().url().optional(),name:e.z.string(),positions:e.z.array(d),positionsTotalValue:e.z.string(),brandColor:e.z.string().optional(),groups:l.optional(),accountAddress:o.addressSchema}),p=e.z.array(u),b=e.z.object({dappId:e.z.string(),products:p});exports.collateralizedDebtGroupSchema=h;exports.collateralizedDebtPositionSchema=i;exports.collateralizedDebtPositionsSchema=S;exports.concentratedLiquidityPositionSchema=a;exports.concentratedLiquidityPositionsSchema=g;exports.defiDappsProductsSchema=b;exports.defiPositionSchema=d;exports.defiProductSchema=u;exports.defiProductsSchema=p;exports.delegatedTokensArraySchema=P;exports.delegatedTokensSchema=r;exports.productGroupsSchema=l;exports.stakingPositionSchema=c;exports.stakingPositionsSchema=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),o=require("../../../chains/starknet/address.cjs"),z=require("./backend.model.cjs"),m=require("./defiPositionType.model.cjs"),n=require("./webToken.model.cjs"),s=n.webTokenWithBalanceAndPriceSchema.extend({accruedFees:e.z.string(),currentPrice:e.z.string(),maxPrice:e.z.string(),minPrice:e.z.string(),principal:e.z.string()}),t=e.z.object({address:o.addressSchema.optional(),currencyValue:e.z.string().default("0")}),a=t.extend({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),tokenId:e.z.string().optional(),unitCurrencyValueToken0:e.z.string().optional(),unitCurrencyValueToken1:e.z.string().optional(),token0:s,token1:s}),g=e.z.array(a),h=e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()}),i=t.extend({totalBalances:e.z.record(e.z.string()),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean(),apy:e.z.string().optional(),totalApy:e.z.string().optional(),group:e.z.string().optional(),unitCurrencyValue:e.z.string().optional(),positionToken:z.apiTokenInfoSchema.or(e.z.undefined()),token:n.webTokenWithBalanceAndPriceSchema.optional(),accountAddress:o.addressSchema.optional(),accountAddressGroup:e.z.string().optional()}),S=e.z.array(i),r=t.extend({delegatingTo:o.addressSchema,token:n.webTokenWithBalanceAndPriceSchema.optional(),balance:e.z.string(),unitCurrencyValue:e.z.string().optional().default("0")}),P=e.z.array(r),c=t.extend({apy:e.z.string().optional(),totalApy:e.z.string().optional(),unitCurrencyValue:e.z.string().optional()}),y=e.z.array(c),d=a.or(i).or(r).or(c),l=e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()})),p=e.z.object({type:m.defiPositionTypeSchema,manageUrl:e.z.string().url().optional(),name:e.z.string(),positions:e.z.array(d),positionsTotalValue:e.z.string(),brandColor:e.z.string().optional(),groups:l.optional(),accountAddress:o.addressSchema}),u=e.z.array(p),b=e.z.object({dappId:e.z.string(),products:u});exports.collateralizedDebtGroupSchema=h;exports.collateralizedDebtPositionSchema=i;exports.collateralizedDebtPositionsSchema=S;exports.concentratedLiquidityPositionSchema=a;exports.concentratedLiquidityPositionsSchema=g;exports.defiDappsProductsSchema=b;exports.defiPositionSchema=d;exports.defiProductSchema=p;exports.defiProductsSchema=u;exports.delegatedTokensArraySchema=P;exports.delegatedTokensSchema=r;exports.productGroupsSchema=l;exports.stakingPositionSchema=c;exports.stakingPositionsSchema=y;
@@ -690,6 +690,7 @@ export declare const collateralizedDebtPositionSchema: z.ZodObject<z.objectUtil.
690
690
  debt: z.ZodBoolean;
691
691
  lending: z.ZodBoolean;
692
692
  apy: z.ZodOptional<z.ZodString>;
693
+ totalApy: z.ZodOptional<z.ZodString>;
693
694
  group: z.ZodOptional<z.ZodString>;
694
695
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
695
696
  positionToken: z.ZodUnion<[z.ZodObject<{
@@ -851,6 +852,7 @@ export declare const collateralizedDebtPositionSchema: z.ZodObject<z.objectUtil.
851
852
  currencyValue: string;
852
853
  address?: `0x${string}` | undefined;
853
854
  accountAddress?: `0x${string}` | undefined;
855
+ totalApy?: string | undefined;
854
856
  apy?: string | undefined;
855
857
  unitCurrencyValue?: string | undefined;
856
858
  group?: string | undefined;
@@ -905,6 +907,7 @@ export declare const collateralizedDebtPositionSchema: z.ZodObject<z.objectUtil.
905
907
  debt: boolean;
906
908
  address?: string | undefined;
907
909
  accountAddress?: string | undefined;
910
+ totalApy?: string | undefined;
908
911
  apy?: string | undefined;
909
912
  unitCurrencyValue?: string | undefined;
910
913
  group?: string | undefined;
@@ -963,6 +966,7 @@ export declare const collateralizedDebtPositionsSchema: z.ZodArray<z.ZodObject<z
963
966
  debt: z.ZodBoolean;
964
967
  lending: z.ZodBoolean;
965
968
  apy: z.ZodOptional<z.ZodString>;
969
+ totalApy: z.ZodOptional<z.ZodString>;
966
970
  group: z.ZodOptional<z.ZodString>;
967
971
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
968
972
  positionToken: z.ZodUnion<[z.ZodObject<{
@@ -1124,6 +1128,7 @@ export declare const collateralizedDebtPositionsSchema: z.ZodArray<z.ZodObject<z
1124
1128
  currencyValue: string;
1125
1129
  address?: `0x${string}` | undefined;
1126
1130
  accountAddress?: `0x${string}` | undefined;
1131
+ totalApy?: string | undefined;
1127
1132
  apy?: string | undefined;
1128
1133
  unitCurrencyValue?: string | undefined;
1129
1134
  group?: string | undefined;
@@ -1178,6 +1183,7 @@ export declare const collateralizedDebtPositionsSchema: z.ZodArray<z.ZodObject<z
1178
1183
  debt: boolean;
1179
1184
  address?: string | undefined;
1180
1185
  accountAddress?: string | undefined;
1186
+ totalApy?: string | undefined;
1181
1187
  apy?: string | undefined;
1182
1188
  unitCurrencyValue?: string | undefined;
1183
1189
  group?: string | undefined;
@@ -1486,14 +1492,17 @@ export declare const stakingPositionSchema: z.ZodObject<z.objectUtil.extendShape
1486
1492
  currencyValue: z.ZodDefault<z.ZodString>;
1487
1493
  }, {
1488
1494
  apy: z.ZodOptional<z.ZodString>;
1495
+ totalApy: z.ZodOptional<z.ZodString>;
1489
1496
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
1490
1497
  }>, "strip", z.ZodTypeAny, {
1491
1498
  currencyValue: string;
1492
1499
  address?: `0x${string}` | undefined;
1500
+ totalApy?: string | undefined;
1493
1501
  apy?: string | undefined;
1494
1502
  unitCurrencyValue?: string | undefined;
1495
1503
  }, {
1496
1504
  address?: string | undefined;
1505
+ totalApy?: string | undefined;
1497
1506
  apy?: string | undefined;
1498
1507
  unitCurrencyValue?: string | undefined;
1499
1508
  currencyValue?: string | undefined;
@@ -1503,14 +1512,17 @@ export declare const stakingPositionsSchema: z.ZodArray<z.ZodObject<z.objectUtil
1503
1512
  currencyValue: z.ZodDefault<z.ZodString>;
1504
1513
  }, {
1505
1514
  apy: z.ZodOptional<z.ZodString>;
1515
+ totalApy: z.ZodOptional<z.ZodString>;
1506
1516
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
1507
1517
  }>, "strip", z.ZodTypeAny, {
1508
1518
  currencyValue: string;
1509
1519
  address?: `0x${string}` | undefined;
1520
+ totalApy?: string | undefined;
1510
1521
  apy?: string | undefined;
1511
1522
  unitCurrencyValue?: string | undefined;
1512
1523
  }, {
1513
1524
  address?: string | undefined;
1525
+ totalApy?: string | undefined;
1514
1526
  apy?: string | undefined;
1515
1527
  unitCurrencyValue?: string | undefined;
1516
1528
  currencyValue?: string | undefined;
@@ -1815,6 +1827,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.Z
1815
1827
  debt: z.ZodBoolean;
1816
1828
  lending: z.ZodBoolean;
1817
1829
  apy: z.ZodOptional<z.ZodString>;
1830
+ totalApy: z.ZodOptional<z.ZodString>;
1818
1831
  group: z.ZodOptional<z.ZodString>;
1819
1832
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
1820
1833
  positionToken: z.ZodUnion<[z.ZodObject<{
@@ -1976,6 +1989,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.Z
1976
1989
  currencyValue: string;
1977
1990
  address?: `0x${string}` | undefined;
1978
1991
  accountAddress?: `0x${string}` | undefined;
1992
+ totalApy?: string | undefined;
1979
1993
  apy?: string | undefined;
1980
1994
  unitCurrencyValue?: string | undefined;
1981
1995
  group?: string | undefined;
@@ -2030,6 +2044,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.Z
2030
2044
  debt: boolean;
2031
2045
  address?: string | undefined;
2032
2046
  accountAddress?: string | undefined;
2047
+ totalApy?: string | undefined;
2033
2048
  apy?: string | undefined;
2034
2049
  unitCurrencyValue?: string | undefined;
2035
2050
  group?: string | undefined;
@@ -2209,14 +2224,17 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.Z
2209
2224
  currencyValue: z.ZodDefault<z.ZodString>;
2210
2225
  }, {
2211
2226
  apy: z.ZodOptional<z.ZodString>;
2227
+ totalApy: z.ZodOptional<z.ZodString>;
2212
2228
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
2213
2229
  }>, "strip", z.ZodTypeAny, {
2214
2230
  currencyValue: string;
2215
2231
  address?: `0x${string}` | undefined;
2232
+ totalApy?: string | undefined;
2216
2233
  apy?: string | undefined;
2217
2234
  unitCurrencyValue?: string | undefined;
2218
2235
  }, {
2219
2236
  address?: string | undefined;
2237
+ totalApy?: string | undefined;
2220
2238
  apy?: string | undefined;
2221
2239
  unitCurrencyValue?: string | undefined;
2222
2240
  currencyValue?: string | undefined;
@@ -2538,6 +2556,7 @@ export declare const defiProductSchema: z.ZodObject<{
2538
2556
  debt: z.ZodBoolean;
2539
2557
  lending: z.ZodBoolean;
2540
2558
  apy: z.ZodOptional<z.ZodString>;
2559
+ totalApy: z.ZodOptional<z.ZodString>;
2541
2560
  group: z.ZodOptional<z.ZodString>;
2542
2561
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
2543
2562
  positionToken: z.ZodUnion<[z.ZodObject<{
@@ -2699,6 +2718,7 @@ export declare const defiProductSchema: z.ZodObject<{
2699
2718
  currencyValue: string;
2700
2719
  address?: `0x${string}` | undefined;
2701
2720
  accountAddress?: `0x${string}` | undefined;
2721
+ totalApy?: string | undefined;
2702
2722
  apy?: string | undefined;
2703
2723
  unitCurrencyValue?: string | undefined;
2704
2724
  group?: string | undefined;
@@ -2753,6 +2773,7 @@ export declare const defiProductSchema: z.ZodObject<{
2753
2773
  debt: boolean;
2754
2774
  address?: string | undefined;
2755
2775
  accountAddress?: string | undefined;
2776
+ totalApy?: string | undefined;
2756
2777
  apy?: string | undefined;
2757
2778
  unitCurrencyValue?: string | undefined;
2758
2779
  group?: string | undefined;
@@ -2932,14 +2953,17 @@ export declare const defiProductSchema: z.ZodObject<{
2932
2953
  currencyValue: z.ZodDefault<z.ZodString>;
2933
2954
  }, {
2934
2955
  apy: z.ZodOptional<z.ZodString>;
2956
+ totalApy: z.ZodOptional<z.ZodString>;
2935
2957
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
2936
2958
  }>, "strip", z.ZodTypeAny, {
2937
2959
  currencyValue: string;
2938
2960
  address?: `0x${string}` | undefined;
2961
+ totalApy?: string | undefined;
2939
2962
  apy?: string | undefined;
2940
2963
  unitCurrencyValue?: string | undefined;
2941
2964
  }, {
2942
2965
  address?: string | undefined;
2966
+ totalApy?: string | undefined;
2943
2967
  apy?: string | undefined;
2944
2968
  unitCurrencyValue?: string | undefined;
2945
2969
  currencyValue?: string | undefined;
@@ -3028,6 +3052,7 @@ export declare const defiProductSchema: z.ZodObject<{
3028
3052
  currencyValue: string;
3029
3053
  address?: `0x${string}` | undefined;
3030
3054
  accountAddress?: `0x${string}` | undefined;
3055
+ totalApy?: string | undefined;
3031
3056
  apy?: string | undefined;
3032
3057
  unitCurrencyValue?: string | undefined;
3033
3058
  group?: string | undefined;
@@ -3103,6 +3128,7 @@ export declare const defiProductSchema: z.ZodObject<{
3103
3128
  } | {
3104
3129
  currencyValue: string;
3105
3130
  address?: `0x${string}` | undefined;
3131
+ totalApy?: string | undefined;
3106
3132
  apy?: string | undefined;
3107
3133
  unitCurrencyValue?: string | undefined;
3108
3134
  })[];
@@ -3181,6 +3207,7 @@ export declare const defiProductSchema: z.ZodObject<{
3181
3207
  debt: boolean;
3182
3208
  address?: string | undefined;
3183
3209
  accountAddress?: string | undefined;
3210
+ totalApy?: string | undefined;
3184
3211
  apy?: string | undefined;
3185
3212
  unitCurrencyValue?: string | undefined;
3186
3213
  group?: string | undefined;
@@ -3256,6 +3283,7 @@ export declare const defiProductSchema: z.ZodObject<{
3256
3283
  } | undefined;
3257
3284
  } | {
3258
3285
  address?: string | undefined;
3286
+ totalApy?: string | undefined;
3259
3287
  apy?: string | undefined;
3260
3288
  unitCurrencyValue?: string | undefined;
3261
3289
  currencyValue?: string | undefined;
@@ -3573,6 +3601,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3573
3601
  debt: z.ZodBoolean;
3574
3602
  lending: z.ZodBoolean;
3575
3603
  apy: z.ZodOptional<z.ZodString>;
3604
+ totalApy: z.ZodOptional<z.ZodString>;
3576
3605
  group: z.ZodOptional<z.ZodString>;
3577
3606
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
3578
3607
  positionToken: z.ZodUnion<[z.ZodObject<{
@@ -3734,6 +3763,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3734
3763
  currencyValue: string;
3735
3764
  address?: `0x${string}` | undefined;
3736
3765
  accountAddress?: `0x${string}` | undefined;
3766
+ totalApy?: string | undefined;
3737
3767
  apy?: string | undefined;
3738
3768
  unitCurrencyValue?: string | undefined;
3739
3769
  group?: string | undefined;
@@ -3788,6 +3818,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3788
3818
  debt: boolean;
3789
3819
  address?: string | undefined;
3790
3820
  accountAddress?: string | undefined;
3821
+ totalApy?: string | undefined;
3791
3822
  apy?: string | undefined;
3792
3823
  unitCurrencyValue?: string | undefined;
3793
3824
  group?: string | undefined;
@@ -3967,14 +3998,17 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3967
3998
  currencyValue: z.ZodDefault<z.ZodString>;
3968
3999
  }, {
3969
4000
  apy: z.ZodOptional<z.ZodString>;
4001
+ totalApy: z.ZodOptional<z.ZodString>;
3970
4002
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
3971
4003
  }>, "strip", z.ZodTypeAny, {
3972
4004
  currencyValue: string;
3973
4005
  address?: `0x${string}` | undefined;
4006
+ totalApy?: string | undefined;
3974
4007
  apy?: string | undefined;
3975
4008
  unitCurrencyValue?: string | undefined;
3976
4009
  }, {
3977
4010
  address?: string | undefined;
4011
+ totalApy?: string | undefined;
3978
4012
  apy?: string | undefined;
3979
4013
  unitCurrencyValue?: string | undefined;
3980
4014
  currencyValue?: string | undefined;
@@ -4063,6 +4097,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
4063
4097
  currencyValue: string;
4064
4098
  address?: `0x${string}` | undefined;
4065
4099
  accountAddress?: `0x${string}` | undefined;
4100
+ totalApy?: string | undefined;
4066
4101
  apy?: string | undefined;
4067
4102
  unitCurrencyValue?: string | undefined;
4068
4103
  group?: string | undefined;
@@ -4138,6 +4173,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
4138
4173
  } | {
4139
4174
  currencyValue: string;
4140
4175
  address?: `0x${string}` | undefined;
4176
+ totalApy?: string | undefined;
4141
4177
  apy?: string | undefined;
4142
4178
  unitCurrencyValue?: string | undefined;
4143
4179
  })[];
@@ -4216,6 +4252,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
4216
4252
  debt: boolean;
4217
4253
  address?: string | undefined;
4218
4254
  accountAddress?: string | undefined;
4255
+ totalApy?: string | undefined;
4219
4256
  apy?: string | undefined;
4220
4257
  unitCurrencyValue?: string | undefined;
4221
4258
  group?: string | undefined;
@@ -4291,6 +4328,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
4291
4328
  } | undefined;
4292
4329
  } | {
4293
4330
  address?: string | undefined;
4331
+ totalApy?: string | undefined;
4294
4332
  apy?: string | undefined;
4295
4333
  unitCurrencyValue?: string | undefined;
4296
4334
  currencyValue?: string | undefined;
@@ -4610,6 +4648,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4610
4648
  debt: z.ZodBoolean;
4611
4649
  lending: z.ZodBoolean;
4612
4650
  apy: z.ZodOptional<z.ZodString>;
4651
+ totalApy: z.ZodOptional<z.ZodString>;
4613
4652
  group: z.ZodOptional<z.ZodString>;
4614
4653
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
4615
4654
  positionToken: z.ZodUnion<[z.ZodObject<{
@@ -4771,6 +4810,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4771
4810
  currencyValue: string;
4772
4811
  address?: `0x${string}` | undefined;
4773
4812
  accountAddress?: `0x${string}` | undefined;
4813
+ totalApy?: string | undefined;
4774
4814
  apy?: string | undefined;
4775
4815
  unitCurrencyValue?: string | undefined;
4776
4816
  group?: string | undefined;
@@ -4825,6 +4865,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4825
4865
  debt: boolean;
4826
4866
  address?: string | undefined;
4827
4867
  accountAddress?: string | undefined;
4868
+ totalApy?: string | undefined;
4828
4869
  apy?: string | undefined;
4829
4870
  unitCurrencyValue?: string | undefined;
4830
4871
  group?: string | undefined;
@@ -5004,14 +5045,17 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5004
5045
  currencyValue: z.ZodDefault<z.ZodString>;
5005
5046
  }, {
5006
5047
  apy: z.ZodOptional<z.ZodString>;
5048
+ totalApy: z.ZodOptional<z.ZodString>;
5007
5049
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
5008
5050
  }>, "strip", z.ZodTypeAny, {
5009
5051
  currencyValue: string;
5010
5052
  address?: `0x${string}` | undefined;
5053
+ totalApy?: string | undefined;
5011
5054
  apy?: string | undefined;
5012
5055
  unitCurrencyValue?: string | undefined;
5013
5056
  }, {
5014
5057
  address?: string | undefined;
5058
+ totalApy?: string | undefined;
5015
5059
  apy?: string | undefined;
5016
5060
  unitCurrencyValue?: string | undefined;
5017
5061
  currencyValue?: string | undefined;
@@ -5100,6 +5144,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5100
5144
  currencyValue: string;
5101
5145
  address?: `0x${string}` | undefined;
5102
5146
  accountAddress?: `0x${string}` | undefined;
5147
+ totalApy?: string | undefined;
5103
5148
  apy?: string | undefined;
5104
5149
  unitCurrencyValue?: string | undefined;
5105
5150
  group?: string | undefined;
@@ -5175,6 +5220,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5175
5220
  } | {
5176
5221
  currencyValue: string;
5177
5222
  address?: `0x${string}` | undefined;
5223
+ totalApy?: string | undefined;
5178
5224
  apy?: string | undefined;
5179
5225
  unitCurrencyValue?: string | undefined;
5180
5226
  })[];
@@ -5253,6 +5299,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5253
5299
  debt: boolean;
5254
5300
  address?: string | undefined;
5255
5301
  accountAddress?: string | undefined;
5302
+ totalApy?: string | undefined;
5256
5303
  apy?: string | undefined;
5257
5304
  unitCurrencyValue?: string | undefined;
5258
5305
  group?: string | undefined;
@@ -5328,6 +5375,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5328
5375
  } | undefined;
5329
5376
  } | {
5330
5377
  address?: string | undefined;
5378
+ totalApy?: string | undefined;
5331
5379
  apy?: string | undefined;
5332
5380
  unitCurrencyValue?: string | undefined;
5333
5381
  currencyValue?: string | undefined;
@@ -5411,6 +5459,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5411
5459
  currencyValue: string;
5412
5460
  address?: `0x${string}` | undefined;
5413
5461
  accountAddress?: `0x${string}` | undefined;
5462
+ totalApy?: string | undefined;
5414
5463
  apy?: string | undefined;
5415
5464
  unitCurrencyValue?: string | undefined;
5416
5465
  group?: string | undefined;
@@ -5486,6 +5535,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5486
5535
  } | {
5487
5536
  currencyValue: string;
5488
5537
  address?: `0x${string}` | undefined;
5538
+ totalApy?: string | undefined;
5489
5539
  apy?: string | undefined;
5490
5540
  unitCurrencyValue?: string | undefined;
5491
5541
  })[];
@@ -5567,6 +5617,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5567
5617
  debt: boolean;
5568
5618
  address?: string | undefined;
5569
5619
  accountAddress?: string | undefined;
5620
+ totalApy?: string | undefined;
5570
5621
  apy?: string | undefined;
5571
5622
  unitCurrencyValue?: string | undefined;
5572
5623
  group?: string | undefined;
@@ -5642,6 +5693,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5642
5693
  } | undefined;
5643
5694
  } | {
5644
5695
  address?: string | undefined;
5696
+ totalApy?: string | undefined;
5645
5697
  apy?: string | undefined;
5646
5698
  unitCurrencyValue?: string | undefined;
5647
5699
  currencyValue?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  import { z as o } from "zod";
2
2
  import { addressSchema as t } from "../../../chains/starknet/address.js";
3
3
  import { apiTokenInfoSchema as l } from "./backend.model.js";
4
- import { defiPositionTypeSchema as d } from "./defiPositionType.model.js";
4
+ import { defiPositionTypeSchema as p } from "./defiPositionType.model.js";
5
5
  import { webTokenWithBalanceAndPriceSchema as e } from "./webToken.model.js";
6
6
  const i = e.extend({
7
7
  accruedFees: o.string(),
@@ -30,6 +30,7 @@ const i = e.extend({
30
30
  debt: o.boolean(),
31
31
  lending: o.boolean(),
32
32
  apy: o.string().optional(),
33
+ totalApy: o.string().optional(),
33
34
  group: o.string().optional(),
34
35
  unitCurrencyValue: o.string().optional(),
35
36
  positionToken: l.or(o.undefined()),
@@ -41,18 +42,19 @@ const i = e.extend({
41
42
  token: e.optional(),
42
43
  balance: o.string(),
43
44
  unitCurrencyValue: o.string().optional().default("0")
44
- }), x = o.array(s), c = n.extend({
45
+ }), A = o.array(s), c = n.extend({
45
46
  apy: o.string().optional(),
47
+ totalApy: o.string().optional(),
46
48
  unitCurrencyValue: o.string().optional()
47
- }), A = o.array(c), p = a.or(r).or(s).or(c), g = o.record(o.object({
49
+ }), x = o.array(c), d = a.or(r).or(s).or(c), g = o.record(o.object({
48
50
  name: o.string().optional(),
49
51
  healthRatio: o.string().optional(),
50
52
  accountAddress: t.optional()
51
53
  })), u = o.object({
52
- type: d,
54
+ type: p,
53
55
  manageUrl: o.string().url().optional(),
54
56
  name: o.string(),
55
- positions: o.array(p),
57
+ positions: o.array(d),
56
58
  // other types will be added when available from be
57
59
  positionsTotalValue: o.string(),
58
60
  brandColor: o.string().optional(),
@@ -69,12 +71,12 @@ export {
69
71
  a as concentratedLiquidityPositionSchema,
70
72
  b as concentratedLiquidityPositionsSchema,
71
73
  V as defiDappsProductsSchema,
72
- p as defiPositionSchema,
74
+ d as defiPositionSchema,
73
75
  u as defiProductSchema,
74
76
  m as defiProductsSchema,
75
- x as delegatedTokensArraySchema,
77
+ A as delegatedTokensArraySchema,
76
78
  s as delegatedTokensSchema,
77
79
  g as productGroupsSchema,
78
80
  c as stakingPositionSchema,
79
- A as stakingPositionsSchema
81
+ x as stakingPositionsSchema
80
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.46.1",
3
+ "version": "1.48.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"