@argent/x-shared 1.39.1 → 1.40.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("async-retry"),c=require("url-join"),r=require("./types/backend.model.cjs"),d=require("../../utils/schemas.cjs");class u{constructor(s,e){this.apiBase=s,this.httpService=e,this.TOKENS_INFO_URL="/tokens/info",this.TOKENS_DEFI_DECOMPOSITION_URL="/tokens/defi/decomposition"}async fetchTokensInfoFromBackend(s){const e=c(this.apiBase,this.TOKENS_INFO_URL,s??"","?chain=starknet"),t=await this.httpService.get(e),n=r.apiTokensInfoResponseSchema.safeParse(t);if(n.success)return n.data.tokens;const o=r.apiTokenInfoResponseSchema.safeParse(t);if(o.success)return[o.data]}async fetchAddressTokenBalancesFromBackend(s,e,t){const n=c(this.apiBase,"activity","starknet",e,"account",s,"balance");return(await p(async a=>{let h;try{h=await this.httpService.get(n)}catch{return a(new Error("Error fetching")),[]}const i=r.apiAccountTokenBalancesSchema.safeParse(h);if(!i.success)return a(new Error("Error parsing response")),[];if(i.data.status!=="initialised")throw new Error("Not initialised yet");return i.data.balances},{retries:5,minTimeout:5e3,...t})).map(a=>({address:a.tokenAddress,balance:a.tokenBalance,networkId:e}))}async fetchDefiDecomposition(s){const e=c(this.apiBase,this.TOKENS_DEFI_DECOMPOSITION_URL,s,"?chain=starknet"),t=await this.httpService.get(e);return d.safeParseAndWarn(r.apiDefiPositionsSchema,t).success||console.error("Backend schema has changed. Make the changes to the models to prevent unknown/unhandled errors."),t.dapps}}exports.TokenServiceWeb=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("async-retry"),c=require("url-join"),o=require("./types/backend.model.cjs"),d=require("../../utils/schemas.cjs");class u{constructor(s,e){this.apiBase=s,this.httpService=e,this.TOKENS_INFO_URL="/tokens/info"}async fetchTokensInfoFromBackend(s){const e=c(this.apiBase,this.TOKENS_INFO_URL,s??"","?chain=starknet"),t=await this.httpService.get(e),n=o.apiTokensInfoResponseSchema.safeParse(t);if(n.success)return n.data.tokens;const r=o.apiTokenInfoResponseSchema.safeParse(t);if(r.success)return[r.data]}async fetchAddressTokenBalancesFromBackend(s,e,t){const n=c(this.apiBase,"activity","starknet",e,"account",s,"balance");return(await h(async a=>{let p;try{p=await this.httpService.get(n)}catch{return a(new Error("Error fetching")),[]}const i=o.apiAccountTokenBalancesSchema.safeParse(p);if(!i.success)return a(new Error("Error parsing response")),[];if(i.data.status!=="initialised")throw new Error("Not initialised yet");return i.data.balances},{retries:5,minTimeout:5e3,...t})).map(a=>({address:a.tokenAddress,balance:a.tokenBalance,networkId:e}))}async fetchDefiDecomposition(s,e){const t=c(this.apiBase,"tokens/defi",s,"investments","?chain=starknet",`&application=${e}`),n=await this.httpService.get(t);return d.safeParseAndWarn(o.apiDefiPositionsSchema,n).success||console.error("Backend schema has changed. Make the changes to the models to prevent unknown/unhandled errors."),n.dapps}}exports.TokenServiceWeb=u;
@@ -12,7 +12,6 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
12
12
  protected readonly apiBase: string;
13
13
  protected readonly httpService: IHttpService;
14
14
  private readonly TOKENS_INFO_URL;
15
- private readonly TOKENS_DEFI_DECOMPOSITION_URL;
16
15
  constructor(apiBase: string, httpService: IHttpService);
17
16
  /**
18
17
  * Fetch tokens info from backend
@@ -26,7 +25,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
26
25
  * @returns {Promise<WebBaseTokenWithBalance[]>} - The fetched balances for the account address.
27
26
  */
28
27
  fetchAddressTokenBalancesFromBackend(address: string, network: ArgentBackendNetworkId, opts?: retry.Options): Promise<WebBaseTokenWithBalance[]>;
29
- fetchDefiDecomposition(address: Address): Promise<{
28
+ fetchDefiDecomposition(address: Address, application: "mobile" | "webwallet" | "argentx"): Promise<{
30
29
  dappId: string;
31
30
  products: import('zod').objectOutputType<{
32
31
  name: import('zod').ZodString;
@@ -2,9 +2,9 @@ import p from "async-retry";
2
2
  import i from "url-join";
3
3
  import { apiTokensInfoResponseSchema as h, apiTokenInfoResponseSchema as d, apiAccountTokenBalancesSchema as u, apiDefiPositionsSchema as f } from "./types/backend.model.js";
4
4
  import { safeParseAndWarn as k } from "../../utils/schemas.js";
5
- class O {
5
+ class R {
6
6
  constructor(s, e) {
7
- this.apiBase = s, this.httpService = e, this.TOKENS_INFO_URL = "/tokens/info", this.TOKENS_DEFI_DECOMPOSITION_URL = "/tokens/defi/decomposition";
7
+ this.apiBase = s, this.httpService = e, this.TOKENS_INFO_URL = "/tokens/info";
8
8
  }
9
9
  /**
10
10
  * Fetch tokens info from backend
@@ -12,41 +12,41 @@ class O {
12
12
  * @returns {Promise<ApiTokenInfo[]>} - The fetched tokens or undefined if there was an error or not default network
13
13
  */
14
14
  async fetchTokensInfoFromBackend(s) {
15
- const e = i(this.apiBase, this.TOKENS_INFO_URL, s ?? "", "?chain=starknet"), t = await this.httpService.get(e), n = h.safeParse(t);
16
- if (n.success)
17
- return n.data.tokens;
18
- const o = d.safeParse(t);
19
- if (o.success)
20
- return [o.data];
15
+ const e = i(this.apiBase, this.TOKENS_INFO_URL, s ?? "", "?chain=starknet"), n = await this.httpService.get(e), t = h.safeParse(n);
16
+ if (t.success)
17
+ return t.data.tokens;
18
+ const r = d.safeParse(n);
19
+ if (r.success)
20
+ return [r.data];
21
21
  }
22
22
  /**
23
23
  * Fetch list of tokens and balances for given account from backend
24
24
  * @param {Address} address - The account address.
25
25
  * @returns {Promise<WebBaseTokenWithBalance[]>} - The fetched balances for the account address.
26
26
  */
27
- async fetchAddressTokenBalancesFromBackend(s, e, t) {
28
- const n = i(this.apiBase, "activity", "starknet", e, "account", s, "balance");
27
+ async fetchAddressTokenBalancesFromBackend(s, e, n) {
28
+ const t = i(this.apiBase, "activity", "starknet", e, "account", s, "balance");
29
29
  return (await p(
30
30
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
31
  async (a) => {
32
32
  let c;
33
33
  try {
34
- c = await this.httpService.get(n);
34
+ c = await this.httpService.get(t);
35
35
  } catch {
36
36
  return a(new Error("Error fetching")), [];
37
37
  }
38
- const r = u.safeParse(c);
39
- if (!r.success)
38
+ const o = u.safeParse(c);
39
+ if (!o.success)
40
40
  return a(new Error("Error parsing response")), [];
41
- if (r.data.status !== "initialised")
41
+ if (o.data.status !== "initialised")
42
42
  throw new Error("Not initialised yet");
43
- return r.data.balances;
43
+ return o.data.balances;
44
44
  },
45
45
  {
46
46
  /** seems to take 5-10 sec for initialised state */
47
47
  retries: 5,
48
48
  minTimeout: 5e3,
49
- ...t
49
+ ...n
50
50
  }
51
51
  )).map((a) => ({
52
52
  address: a.tokenAddress,
@@ -54,11 +54,11 @@ class O {
54
54
  networkId: e
55
55
  }));
56
56
  }
57
- async fetchDefiDecomposition(s) {
58
- const e = i(this.apiBase, this.TOKENS_DEFI_DECOMPOSITION_URL, s, "?chain=starknet"), t = await this.httpService.get(e);
57
+ async fetchDefiDecomposition(s, e) {
58
+ const n = i(this.apiBase, "tokens/defi", s, "investments", "?chain=starknet", `&application=${e}`), t = await this.httpService.get(n);
59
59
  return k(f, t).success || console.error("Backend schema has changed. Make the changes to the models to prevent unknown/unhandled errors."), t.dapps;
60
60
  }
61
61
  }
62
62
  export {
63
- O as TokenServiceWeb
63
+ R as TokenServiceWeb
64
64
  };
@@ -5,7 +5,7 @@ import { ApiDefiDecompositionSchema, ApiTokenInfo } from './types/backend.model'
5
5
  import { WebBaseTokenWithBalance } from './types/webToken.model';
6
6
  export type SelectorFn<T> = (value: T) => boolean;
7
7
  export interface ITokenServiceDefiDecomposition {
8
- fetchDefiDecomposition: (address: Address) => Promise<ApiDefiDecompositionSchema[]>;
8
+ fetchDefiDecomposition: (address: Address, application: "mobile" | "webwallet" | "argentx") => Promise<ApiDefiDecompositionSchema[]>;
9
9
  }
10
10
  /**
11
11
  * ITokenService interface provides methods for managing tokens, including storage methods, fetch methods, and get methods.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),o=require("../../../chains/starknet/address.cjs"),p=require("./backend.model.cjs"),z=require("./defiPositionType.model.cjs"),t=require("./webToken.model.cjs"),c=t.webTokenWithBalanceAndPriceSchema.extend({accruedFees:e.z.string(),currentPrice:e.z.string(),maxPrice:e.z.string(),minPrice:e.z.string(),principal:e.z.string()}),n=e.z.object({address:o.addressSchema.optional(),currencyValue:e.z.string().default("0")}),a=n.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:c,token1:c}),m=e.z.array(a),h=e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()}),i=n.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:p.apiTokenInfoSchema.or(e.z.undefined()),token:t.webTokenWithBalanceAndPriceSchema.optional(),accountAddress:o.addressSchema.optional(),accountAddressGroup:e.z.string().optional()}),g=e.z.array(i),r=n.extend({delegatingTo:o.addressSchema,token:t.webTokenWithBalanceAndPriceSchema.optional(),balance:e.z.string(),unitCurrencyValue:e.z.string().optional().default("0")}),S=e.z.array(r),s=a.or(i).or(r),d=e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()})),l=e.z.object({type:z.defiPositionTypeSchema,manageUrl:e.z.string().url().optional(),name:e.z.string(),positions:e.z.array(s),positionsTotalValue:e.z.string(),brandColor:e.z.string().optional(),groups:d.optional(),accountAddress:o.addressSchema}),u=e.z.array(l),P=e.z.object({dappId:e.z.string(),products:u});exports.collateralizedDebtGroupSchema=h;exports.collateralizedDebtPositionSchema=i;exports.collateralizedDebtPositionsSchema=g;exports.concentratedLiquidityPositionSchema=a;exports.concentratedLiquidityPositionsSchema=m;exports.defiDappsProductsSchema=P;exports.defiPositionSchema=s;exports.defiProductSchema=l;exports.defiProductsSchema=u;exports.delegatedTokensArraySchema=S;exports.delegatedTokensSchema=r;exports.productGroupsSchema=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),o=require("../../../chains/starknet/address.cjs"),p=require("./backend.model.cjs"),z=require("./defiPositionType.model.cjs"),t=require("./webToken.model.cjs"),c=t.webTokenWithBalanceAndPriceSchema.extend({accruedFees:e.z.string(),currentPrice:e.z.string(),maxPrice:e.z.string(),minPrice:e.z.string(),principal:e.z.string()}),n=e.z.object({id:e.z.string(),address:o.addressSchema.optional(),currencyValue:e.z.string().default("0")}),a=n.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:c,token1:c}),m=e.z.array(a),h=e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()}),i=n.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:p.apiTokenInfoSchema.or(e.z.undefined()),token:t.webTokenWithBalanceAndPriceSchema.optional(),accountAddress:o.addressSchema.optional(),accountAddressGroup:e.z.string().optional()}),g=e.z.array(i),r=n.extend({delegatingTo:o.addressSchema,token:t.webTokenWithBalanceAndPriceSchema.optional(),balance:e.z.string(),unitCurrencyValue:e.z.string().optional().default("0")}),S=e.z.array(r),s=a.or(i).or(r),d=e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:o.addressSchema.optional()})),l=e.z.object({type:z.defiPositionTypeSchema,manageUrl:e.z.string().url().optional(),name:e.z.string(),positions:e.z.array(s),positionsTotalValue:e.z.string(),brandColor:e.z.string().optional(),groups:d.optional(),accountAddress:o.addressSchema}),u=e.z.array(l),P=e.z.object({dappId:e.z.string(),products:u});exports.collateralizedDebtGroupSchema=h;exports.collateralizedDebtPositionSchema=i;exports.collateralizedDebtPositionsSchema=g;exports.concentratedLiquidityPositionSchema=a;exports.concentratedLiquidityPositionsSchema=m;exports.defiDappsProductsSchema=P;exports.defiPositionSchema=s;exports.defiProductSchema=l;exports.defiProductsSchema=u;exports.delegatedTokensArraySchema=S;exports.delegatedTokensSchema=r;exports.productGroupsSchema=d;
@@ -85,6 +85,7 @@ declare const defiPositionTokenSchema: z.ZodObject<z.objectUtil.extendShape<z.ob
85
85
  currencySymbol?: string | undefined;
86
86
  }>;
87
87
  export declare const concentratedLiquidityPositionSchema: z.ZodObject<z.objectUtil.extendShape<{
88
+ id: z.ZodString;
88
89
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
89
90
  currencyValue: z.ZodDefault<z.ZodString>;
90
91
  }, {
@@ -264,6 +265,7 @@ export declare const concentratedLiquidityPositionSchema: z.ZodObject<z.objectUt
264
265
  currencySymbol?: string | undefined;
265
266
  }>;
266
267
  }>, "strip", z.ZodTypeAny, {
268
+ id: string;
267
269
  poolFeePercentage: string;
268
270
  token0: {
269
271
  address: `0x${string}`;
@@ -320,6 +322,7 @@ export declare const concentratedLiquidityPositionSchema: z.ZodObject<z.objectUt
320
322
  unitCurrencyValueToken0?: string | undefined;
321
323
  unitCurrencyValueToken1?: string | undefined;
322
324
  }, {
325
+ id: string;
323
326
  poolFeePercentage: string;
324
327
  token0: {
325
328
  address: string;
@@ -377,6 +380,7 @@ export declare const concentratedLiquidityPositionSchema: z.ZodObject<z.objectUt
377
380
  unitCurrencyValueToken1?: string | undefined;
378
381
  }>;
379
382
  export declare const concentratedLiquidityPositionsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
383
+ id: z.ZodString;
380
384
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
381
385
  currencyValue: z.ZodDefault<z.ZodString>;
382
386
  }, {
@@ -556,6 +560,7 @@ export declare const concentratedLiquidityPositionsSchema: z.ZodArray<z.ZodObjec
556
560
  currencySymbol?: string | undefined;
557
561
  }>;
558
562
  }>, "strip", z.ZodTypeAny, {
563
+ id: string;
559
564
  poolFeePercentage: string;
560
565
  token0: {
561
566
  address: `0x${string}`;
@@ -612,6 +617,7 @@ export declare const concentratedLiquidityPositionsSchema: z.ZodArray<z.ZodObjec
612
617
  unitCurrencyValueToken0?: string | undefined;
613
618
  unitCurrencyValueToken1?: string | undefined;
614
619
  }, {
620
+ id: string;
615
621
  poolFeePercentage: string;
616
622
  token0: {
617
623
  address: string;
@@ -682,6 +688,7 @@ export declare const collateralizedDebtGroupSchema: z.ZodObject<{
682
688
  healthRatio?: string | undefined;
683
689
  }>;
684
690
  export declare const collateralizedDebtPositionSchema: z.ZodObject<z.objectUtil.extendShape<{
691
+ id: z.ZodString;
685
692
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
686
693
  currencyValue: z.ZodDefault<z.ZodString>;
687
694
  }, {
@@ -844,6 +851,7 @@ export declare const collateralizedDebtPositionSchema: z.ZodObject<z.objectUtil.
844
851
  accountAddress: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
845
852
  accountAddressGroup: z.ZodOptional<z.ZodString>;
846
853
  }>, "strip", z.ZodTypeAny, {
854
+ id: string;
847
855
  lending: boolean;
848
856
  totalBalances: Record<string, string>;
849
857
  collateral: boolean;
@@ -899,6 +907,7 @@ export declare const collateralizedDebtPositionSchema: z.ZodObject<z.objectUtil.
899
907
  } | undefined;
900
908
  accountAddressGroup?: string | undefined;
901
909
  }, {
910
+ id: string;
902
911
  lending: boolean;
903
912
  totalBalances: Record<string, string>;
904
913
  collateral: boolean;
@@ -955,6 +964,7 @@ export declare const collateralizedDebtPositionSchema: z.ZodObject<z.objectUtil.
955
964
  accountAddressGroup?: string | undefined;
956
965
  }>;
957
966
  export declare const collateralizedDebtPositionsSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
967
+ id: z.ZodString;
958
968
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
959
969
  currencyValue: z.ZodDefault<z.ZodString>;
960
970
  }, {
@@ -1117,6 +1127,7 @@ export declare const collateralizedDebtPositionsSchema: z.ZodArray<z.ZodObject<z
1117
1127
  accountAddress: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
1118
1128
  accountAddressGroup: z.ZodOptional<z.ZodString>;
1119
1129
  }>, "strip", z.ZodTypeAny, {
1130
+ id: string;
1120
1131
  lending: boolean;
1121
1132
  totalBalances: Record<string, string>;
1122
1133
  collateral: boolean;
@@ -1172,6 +1183,7 @@ export declare const collateralizedDebtPositionsSchema: z.ZodArray<z.ZodObject<z
1172
1183
  } | undefined;
1173
1184
  accountAddressGroup?: string | undefined;
1174
1185
  }, {
1186
+ id: string;
1175
1187
  lending: boolean;
1176
1188
  totalBalances: Record<string, string>;
1177
1189
  collateral: boolean;
@@ -1228,6 +1240,7 @@ export declare const collateralizedDebtPositionsSchema: z.ZodArray<z.ZodObject<z
1228
1240
  accountAddressGroup?: string | undefined;
1229
1241
  }>, "many">;
1230
1242
  export declare const delegatedTokensSchema: z.ZodObject<z.objectUtil.extendShape<{
1243
+ id: z.ZodString;
1231
1244
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
1232
1245
  currencyValue: z.ZodDefault<z.ZodString>;
1233
1246
  }, {
@@ -1304,6 +1317,7 @@ export declare const delegatedTokensSchema: z.ZodObject<z.objectUtil.extendShape
1304
1317
  balance: z.ZodString;
1305
1318
  unitCurrencyValue: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1306
1319
  }>, "strip", z.ZodTypeAny, {
1320
+ id: string;
1307
1321
  unitCurrencyValue: string;
1308
1322
  delegatingTo: `0x${string}`;
1309
1323
  balance: string;
@@ -1329,6 +1343,7 @@ export declare const delegatedTokensSchema: z.ZodObject<z.objectUtil.extendShape
1329
1343
  currencySymbol?: string | undefined;
1330
1344
  } | undefined;
1331
1345
  }, {
1346
+ id: string;
1332
1347
  delegatingTo: string;
1333
1348
  balance: string;
1334
1349
  address?: string | undefined;
@@ -1355,6 +1370,7 @@ export declare const delegatedTokensSchema: z.ZodObject<z.objectUtil.extendShape
1355
1370
  } | undefined;
1356
1371
  }>;
1357
1372
  export declare const delegatedTokensArraySchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
1373
+ id: z.ZodString;
1358
1374
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
1359
1375
  currencyValue: z.ZodDefault<z.ZodString>;
1360
1376
  }, {
@@ -1431,6 +1447,7 @@ export declare const delegatedTokensArraySchema: z.ZodArray<z.ZodObject<z.object
1431
1447
  balance: z.ZodString;
1432
1448
  unitCurrencyValue: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1433
1449
  }>, "strip", z.ZodTypeAny, {
1450
+ id: string;
1434
1451
  unitCurrencyValue: string;
1435
1452
  delegatingTo: `0x${string}`;
1436
1453
  balance: string;
@@ -1456,6 +1473,7 @@ export declare const delegatedTokensArraySchema: z.ZodArray<z.ZodObject<z.object
1456
1473
  currencySymbol?: string | undefined;
1457
1474
  } | undefined;
1458
1475
  }, {
1476
+ id: string;
1459
1477
  delegatingTo: string;
1460
1478
  balance: string;
1461
1479
  address?: string | undefined;
@@ -1482,6 +1500,7 @@ export declare const delegatedTokensArraySchema: z.ZodArray<z.ZodObject<z.object
1482
1500
  } | undefined;
1483
1501
  }>, "many">;
1484
1502
  export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1503
+ id: z.ZodString;
1485
1504
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
1486
1505
  currencyValue: z.ZodDefault<z.ZodString>;
1487
1506
  }, {
@@ -1661,6 +1680,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.o
1661
1680
  currencySymbol?: string | undefined;
1662
1681
  }>;
1663
1682
  }>, "strip", z.ZodTypeAny, {
1683
+ id: string;
1664
1684
  poolFeePercentage: string;
1665
1685
  token0: {
1666
1686
  address: `0x${string}`;
@@ -1717,6 +1737,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.o
1717
1737
  unitCurrencyValueToken0?: string | undefined;
1718
1738
  unitCurrencyValueToken1?: string | undefined;
1719
1739
  }, {
1740
+ id: string;
1720
1741
  poolFeePercentage: string;
1721
1742
  token0: {
1722
1743
  address: string;
@@ -1773,6 +1794,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.o
1773
1794
  unitCurrencyValueToken0?: string | undefined;
1774
1795
  unitCurrencyValueToken1?: string | undefined;
1775
1796
  }>, z.ZodObject<z.objectUtil.extendShape<{
1797
+ id: z.ZodString;
1776
1798
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
1777
1799
  currencyValue: z.ZodDefault<z.ZodString>;
1778
1800
  }, {
@@ -1935,6 +1957,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.o
1935
1957
  accountAddress: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
1936
1958
  accountAddressGroup: z.ZodOptional<z.ZodString>;
1937
1959
  }>, "strip", z.ZodTypeAny, {
1960
+ id: string;
1938
1961
  lending: boolean;
1939
1962
  totalBalances: Record<string, string>;
1940
1963
  collateral: boolean;
@@ -1990,6 +2013,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.o
1990
2013
  } | undefined;
1991
2014
  accountAddressGroup?: string | undefined;
1992
2015
  }, {
2016
+ id: string;
1993
2017
  lending: boolean;
1994
2018
  totalBalances: Record<string, string>;
1995
2019
  collateral: boolean;
@@ -2045,6 +2069,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.o
2045
2069
  } | undefined;
2046
2070
  accountAddressGroup?: string | undefined;
2047
2071
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
2072
+ id: z.ZodString;
2048
2073
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
2049
2074
  currencyValue: z.ZodDefault<z.ZodString>;
2050
2075
  }, {
@@ -2121,6 +2146,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.o
2121
2146
  balance: z.ZodString;
2122
2147
  unitCurrencyValue: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2123
2148
  }>, "strip", z.ZodTypeAny, {
2149
+ id: string;
2124
2150
  unitCurrencyValue: string;
2125
2151
  delegatingTo: `0x${string}`;
2126
2152
  balance: string;
@@ -2146,6 +2172,7 @@ export declare const defiPositionSchema: z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.o
2146
2172
  currencySymbol?: string | undefined;
2147
2173
  } | undefined;
2148
2174
  }, {
2175
+ id: string;
2149
2176
  delegatingTo: string;
2150
2177
  balance: string;
2151
2178
  address?: string | undefined;
@@ -2189,6 +2216,7 @@ export declare const defiProductSchema: z.ZodObject<{
2189
2216
  manageUrl: z.ZodOptional<z.ZodString>;
2190
2217
  name: z.ZodString;
2191
2218
  positions: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
2219
+ id: z.ZodString;
2192
2220
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
2193
2221
  currencyValue: z.ZodDefault<z.ZodString>;
2194
2222
  }, {
@@ -2368,6 +2396,7 @@ export declare const defiProductSchema: z.ZodObject<{
2368
2396
  currencySymbol?: string | undefined;
2369
2397
  }>;
2370
2398
  }>, "strip", z.ZodTypeAny, {
2399
+ id: string;
2371
2400
  poolFeePercentage: string;
2372
2401
  token0: {
2373
2402
  address: `0x${string}`;
@@ -2424,6 +2453,7 @@ export declare const defiProductSchema: z.ZodObject<{
2424
2453
  unitCurrencyValueToken0?: string | undefined;
2425
2454
  unitCurrencyValueToken1?: string | undefined;
2426
2455
  }, {
2456
+ id: string;
2427
2457
  poolFeePercentage: string;
2428
2458
  token0: {
2429
2459
  address: string;
@@ -2480,6 +2510,7 @@ export declare const defiProductSchema: z.ZodObject<{
2480
2510
  unitCurrencyValueToken0?: string | undefined;
2481
2511
  unitCurrencyValueToken1?: string | undefined;
2482
2512
  }>, z.ZodObject<z.objectUtil.extendShape<{
2513
+ id: z.ZodString;
2483
2514
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
2484
2515
  currencyValue: z.ZodDefault<z.ZodString>;
2485
2516
  }, {
@@ -2642,6 +2673,7 @@ export declare const defiProductSchema: z.ZodObject<{
2642
2673
  accountAddress: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
2643
2674
  accountAddressGroup: z.ZodOptional<z.ZodString>;
2644
2675
  }>, "strip", z.ZodTypeAny, {
2676
+ id: string;
2645
2677
  lending: boolean;
2646
2678
  totalBalances: Record<string, string>;
2647
2679
  collateral: boolean;
@@ -2697,6 +2729,7 @@ export declare const defiProductSchema: z.ZodObject<{
2697
2729
  } | undefined;
2698
2730
  accountAddressGroup?: string | undefined;
2699
2731
  }, {
2732
+ id: string;
2700
2733
  lending: boolean;
2701
2734
  totalBalances: Record<string, string>;
2702
2735
  collateral: boolean;
@@ -2752,6 +2785,7 @@ export declare const defiProductSchema: z.ZodObject<{
2752
2785
  } | undefined;
2753
2786
  accountAddressGroup?: string | undefined;
2754
2787
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
2788
+ id: z.ZodString;
2755
2789
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
2756
2790
  currencyValue: z.ZodDefault<z.ZodString>;
2757
2791
  }, {
@@ -2828,6 +2862,7 @@ export declare const defiProductSchema: z.ZodObject<{
2828
2862
  balance: z.ZodString;
2829
2863
  unitCurrencyValue: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2830
2864
  }>, "strip", z.ZodTypeAny, {
2865
+ id: string;
2831
2866
  unitCurrencyValue: string;
2832
2867
  delegatingTo: `0x${string}`;
2833
2868
  balance: string;
@@ -2853,6 +2888,7 @@ export declare const defiProductSchema: z.ZodObject<{
2853
2888
  currencySymbol?: string | undefined;
2854
2889
  } | undefined;
2855
2890
  }, {
2891
+ id: string;
2856
2892
  delegatingTo: string;
2857
2893
  balance: string;
2858
2894
  address?: string | undefined;
@@ -2899,6 +2935,7 @@ export declare const defiProductSchema: z.ZodObject<{
2899
2935
  type: "staking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
2900
2936
  accountAddress: `0x${string}`;
2901
2937
  positions: ({
2938
+ id: string;
2902
2939
  poolFeePercentage: string;
2903
2940
  token0: {
2904
2941
  address: `0x${string}`;
@@ -2955,6 +2992,7 @@ export declare const defiProductSchema: z.ZodObject<{
2955
2992
  unitCurrencyValueToken0?: string | undefined;
2956
2993
  unitCurrencyValueToken1?: string | undefined;
2957
2994
  } | {
2995
+ id: string;
2958
2996
  lending: boolean;
2959
2997
  totalBalances: Record<string, string>;
2960
2998
  collateral: boolean;
@@ -3010,6 +3048,7 @@ export declare const defiProductSchema: z.ZodObject<{
3010
3048
  } | undefined;
3011
3049
  accountAddressGroup?: string | undefined;
3012
3050
  } | {
3051
+ id: string;
3013
3052
  unitCurrencyValue: string;
3014
3053
  delegatingTo: `0x${string}`;
3015
3054
  balance: string;
@@ -3048,6 +3087,7 @@ export declare const defiProductSchema: z.ZodObject<{
3048
3087
  type: "staking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
3049
3088
  accountAddress: string;
3050
3089
  positions: ({
3090
+ id: string;
3051
3091
  poolFeePercentage: string;
3052
3092
  token0: {
3053
3093
  address: string;
@@ -3104,6 +3144,7 @@ export declare const defiProductSchema: z.ZodObject<{
3104
3144
  unitCurrencyValueToken0?: string | undefined;
3105
3145
  unitCurrencyValueToken1?: string | undefined;
3106
3146
  } | {
3147
+ id: string;
3107
3148
  lending: boolean;
3108
3149
  totalBalances: Record<string, string>;
3109
3150
  collateral: boolean;
@@ -3159,6 +3200,7 @@ export declare const defiProductSchema: z.ZodObject<{
3159
3200
  } | undefined;
3160
3201
  accountAddressGroup?: string | undefined;
3161
3202
  } | {
3203
+ id: string;
3162
3204
  delegatingTo: string;
3163
3205
  balance: string;
3164
3206
  address?: string | undefined;
@@ -3198,6 +3240,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3198
3240
  manageUrl: z.ZodOptional<z.ZodString>;
3199
3241
  name: z.ZodString;
3200
3242
  positions: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
3243
+ id: z.ZodString;
3201
3244
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
3202
3245
  currencyValue: z.ZodDefault<z.ZodString>;
3203
3246
  }, {
@@ -3377,6 +3420,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3377
3420
  currencySymbol?: string | undefined;
3378
3421
  }>;
3379
3422
  }>, "strip", z.ZodTypeAny, {
3423
+ id: string;
3380
3424
  poolFeePercentage: string;
3381
3425
  token0: {
3382
3426
  address: `0x${string}`;
@@ -3433,6 +3477,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3433
3477
  unitCurrencyValueToken0?: string | undefined;
3434
3478
  unitCurrencyValueToken1?: string | undefined;
3435
3479
  }, {
3480
+ id: string;
3436
3481
  poolFeePercentage: string;
3437
3482
  token0: {
3438
3483
  address: string;
@@ -3489,6 +3534,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3489
3534
  unitCurrencyValueToken0?: string | undefined;
3490
3535
  unitCurrencyValueToken1?: string | undefined;
3491
3536
  }>, z.ZodObject<z.objectUtil.extendShape<{
3537
+ id: z.ZodString;
3492
3538
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
3493
3539
  currencyValue: z.ZodDefault<z.ZodString>;
3494
3540
  }, {
@@ -3651,6 +3697,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3651
3697
  accountAddress: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
3652
3698
  accountAddressGroup: z.ZodOptional<z.ZodString>;
3653
3699
  }>, "strip", z.ZodTypeAny, {
3700
+ id: string;
3654
3701
  lending: boolean;
3655
3702
  totalBalances: Record<string, string>;
3656
3703
  collateral: boolean;
@@ -3706,6 +3753,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3706
3753
  } | undefined;
3707
3754
  accountAddressGroup?: string | undefined;
3708
3755
  }, {
3756
+ id: string;
3709
3757
  lending: boolean;
3710
3758
  totalBalances: Record<string, string>;
3711
3759
  collateral: boolean;
@@ -3761,6 +3809,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3761
3809
  } | undefined;
3762
3810
  accountAddressGroup?: string | undefined;
3763
3811
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
3812
+ id: z.ZodString;
3764
3813
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
3765
3814
  currencyValue: z.ZodDefault<z.ZodString>;
3766
3815
  }, {
@@ -3837,6 +3886,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3837
3886
  balance: z.ZodString;
3838
3887
  unitCurrencyValue: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3839
3888
  }>, "strip", z.ZodTypeAny, {
3889
+ id: string;
3840
3890
  unitCurrencyValue: string;
3841
3891
  delegatingTo: `0x${string}`;
3842
3892
  balance: string;
@@ -3862,6 +3912,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3862
3912
  currencySymbol?: string | undefined;
3863
3913
  } | undefined;
3864
3914
  }, {
3915
+ id: string;
3865
3916
  delegatingTo: string;
3866
3917
  balance: string;
3867
3918
  address?: string | undefined;
@@ -3908,6 +3959,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3908
3959
  type: "staking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
3909
3960
  accountAddress: `0x${string}`;
3910
3961
  positions: ({
3962
+ id: string;
3911
3963
  poolFeePercentage: string;
3912
3964
  token0: {
3913
3965
  address: `0x${string}`;
@@ -3964,6 +4016,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
3964
4016
  unitCurrencyValueToken0?: string | undefined;
3965
4017
  unitCurrencyValueToken1?: string | undefined;
3966
4018
  } | {
4019
+ id: string;
3967
4020
  lending: boolean;
3968
4021
  totalBalances: Record<string, string>;
3969
4022
  collateral: boolean;
@@ -4019,6 +4072,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
4019
4072
  } | undefined;
4020
4073
  accountAddressGroup?: string | undefined;
4021
4074
  } | {
4075
+ id: string;
4022
4076
  unitCurrencyValue: string;
4023
4077
  delegatingTo: `0x${string}`;
4024
4078
  balance: string;
@@ -4057,6 +4111,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
4057
4111
  type: "staking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
4058
4112
  accountAddress: string;
4059
4113
  positions: ({
4114
+ id: string;
4060
4115
  poolFeePercentage: string;
4061
4116
  token0: {
4062
4117
  address: string;
@@ -4113,6 +4168,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
4113
4168
  unitCurrencyValueToken0?: string | undefined;
4114
4169
  unitCurrencyValueToken1?: string | undefined;
4115
4170
  } | {
4171
+ id: string;
4116
4172
  lending: boolean;
4117
4173
  totalBalances: Record<string, string>;
4118
4174
  collateral: boolean;
@@ -4168,6 +4224,7 @@ export declare const defiProductsSchema: z.ZodArray<z.ZodObject<{
4168
4224
  } | undefined;
4169
4225
  accountAddressGroup?: string | undefined;
4170
4226
  } | {
4227
+ id: string;
4171
4228
  delegatingTo: string;
4172
4229
  balance: string;
4173
4230
  address?: string | undefined;
@@ -4209,6 +4266,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4209
4266
  manageUrl: z.ZodOptional<z.ZodString>;
4210
4267
  name: z.ZodString;
4211
4268
  positions: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
4269
+ id: z.ZodString;
4212
4270
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
4213
4271
  currencyValue: z.ZodDefault<z.ZodString>;
4214
4272
  }, {
@@ -4388,6 +4446,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4388
4446
  currencySymbol?: string | undefined;
4389
4447
  }>;
4390
4448
  }>, "strip", z.ZodTypeAny, {
4449
+ id: string;
4391
4450
  poolFeePercentage: string;
4392
4451
  token0: {
4393
4452
  address: `0x${string}`;
@@ -4444,6 +4503,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4444
4503
  unitCurrencyValueToken0?: string | undefined;
4445
4504
  unitCurrencyValueToken1?: string | undefined;
4446
4505
  }, {
4506
+ id: string;
4447
4507
  poolFeePercentage: string;
4448
4508
  token0: {
4449
4509
  address: string;
@@ -4500,6 +4560,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4500
4560
  unitCurrencyValueToken0?: string | undefined;
4501
4561
  unitCurrencyValueToken1?: string | undefined;
4502
4562
  }>, z.ZodObject<z.objectUtil.extendShape<{
4563
+ id: z.ZodString;
4503
4564
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
4504
4565
  currencyValue: z.ZodDefault<z.ZodString>;
4505
4566
  }, {
@@ -4662,6 +4723,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4662
4723
  accountAddress: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
4663
4724
  accountAddressGroup: z.ZodOptional<z.ZodString>;
4664
4725
  }>, "strip", z.ZodTypeAny, {
4726
+ id: string;
4665
4727
  lending: boolean;
4666
4728
  totalBalances: Record<string, string>;
4667
4729
  collateral: boolean;
@@ -4717,6 +4779,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4717
4779
  } | undefined;
4718
4780
  accountAddressGroup?: string | undefined;
4719
4781
  }, {
4782
+ id: string;
4720
4783
  lending: boolean;
4721
4784
  totalBalances: Record<string, string>;
4722
4785
  collateral: boolean;
@@ -4772,6 +4835,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4772
4835
  } | undefined;
4773
4836
  accountAddressGroup?: string | undefined;
4774
4837
  }>]>, z.ZodObject<z.objectUtil.extendShape<{
4838
+ id: z.ZodString;
4775
4839
  address: z.ZodOptional<z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>>;
4776
4840
  currencyValue: z.ZodDefault<z.ZodString>;
4777
4841
  }, {
@@ -4848,6 +4912,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4848
4912
  balance: z.ZodString;
4849
4913
  unitCurrencyValue: z.ZodDefault<z.ZodOptional<z.ZodString>>;
4850
4914
  }>, "strip", z.ZodTypeAny, {
4915
+ id: string;
4851
4916
  unitCurrencyValue: string;
4852
4917
  delegatingTo: `0x${string}`;
4853
4918
  balance: string;
@@ -4873,6 +4938,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4873
4938
  currencySymbol?: string | undefined;
4874
4939
  } | undefined;
4875
4940
  }, {
4941
+ id: string;
4876
4942
  delegatingTo: string;
4877
4943
  balance: string;
4878
4944
  address?: string | undefined;
@@ -4919,6 +4985,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4919
4985
  type: "staking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
4920
4986
  accountAddress: `0x${string}`;
4921
4987
  positions: ({
4988
+ id: string;
4922
4989
  poolFeePercentage: string;
4923
4990
  token0: {
4924
4991
  address: `0x${string}`;
@@ -4975,6 +5042,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
4975
5042
  unitCurrencyValueToken0?: string | undefined;
4976
5043
  unitCurrencyValueToken1?: string | undefined;
4977
5044
  } | {
5045
+ id: string;
4978
5046
  lending: boolean;
4979
5047
  totalBalances: Record<string, string>;
4980
5048
  collateral: boolean;
@@ -5030,6 +5098,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5030
5098
  } | undefined;
5031
5099
  accountAddressGroup?: string | undefined;
5032
5100
  } | {
5101
+ id: string;
5033
5102
  unitCurrencyValue: string;
5034
5103
  delegatingTo: `0x${string}`;
5035
5104
  balance: string;
@@ -5068,6 +5137,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5068
5137
  type: "staking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
5069
5138
  accountAddress: string;
5070
5139
  positions: ({
5140
+ id: string;
5071
5141
  poolFeePercentage: string;
5072
5142
  token0: {
5073
5143
  address: string;
@@ -5124,6 +5194,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5124
5194
  unitCurrencyValueToken0?: string | undefined;
5125
5195
  unitCurrencyValueToken1?: string | undefined;
5126
5196
  } | {
5197
+ id: string;
5127
5198
  lending: boolean;
5128
5199
  totalBalances: Record<string, string>;
5129
5200
  collateral: boolean;
@@ -5179,6 +5250,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5179
5250
  } | undefined;
5180
5251
  accountAddressGroup?: string | undefined;
5181
5252
  } | {
5253
+ id: string;
5182
5254
  delegatingTo: string;
5183
5255
  balance: string;
5184
5256
  address?: string | undefined;
@@ -5220,6 +5292,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5220
5292
  type: "staking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
5221
5293
  accountAddress: `0x${string}`;
5222
5294
  positions: ({
5295
+ id: string;
5223
5296
  poolFeePercentage: string;
5224
5297
  token0: {
5225
5298
  address: `0x${string}`;
@@ -5276,6 +5349,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5276
5349
  unitCurrencyValueToken0?: string | undefined;
5277
5350
  unitCurrencyValueToken1?: string | undefined;
5278
5351
  } | {
5352
+ id: string;
5279
5353
  lending: boolean;
5280
5354
  totalBalances: Record<string, string>;
5281
5355
  collateral: boolean;
@@ -5331,6 +5405,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5331
5405
  } | undefined;
5332
5406
  accountAddressGroup?: string | undefined;
5333
5407
  } | {
5408
+ id: string;
5334
5409
  unitCurrencyValue: string;
5335
5410
  delegatingTo: `0x${string}`;
5336
5411
  balance: string;
@@ -5372,6 +5447,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5372
5447
  type: "staking" | "concentratedLiquidityPosition" | "collateralizedDebtPosition" | "delegatedTokens";
5373
5448
  accountAddress: string;
5374
5449
  positions: ({
5450
+ id: string;
5375
5451
  poolFeePercentage: string;
5376
5452
  token0: {
5377
5453
  address: string;
@@ -5428,6 +5504,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5428
5504
  unitCurrencyValueToken0?: string | undefined;
5429
5505
  unitCurrencyValueToken1?: string | undefined;
5430
5506
  } | {
5507
+ id: string;
5431
5508
  lending: boolean;
5432
5509
  totalBalances: Record<string, string>;
5433
5510
  collateral: boolean;
@@ -5483,6 +5560,7 @@ export declare const defiDappsProductsSchema: z.ZodObject<{
5483
5560
  } | undefined;
5484
5561
  accountAddressGroup?: string | undefined;
5485
5562
  } | {
5563
+ id: string;
5486
5564
  delegatingTo: string;
5487
5565
  balance: string;
5488
5566
  address?: string | undefined;
@@ -3,24 +3,25 @@ import { addressSchema as t } from "../../../chains/starknet/address.js";
3
3
  import { apiTokenInfoSchema as s } from "./backend.model.js";
4
4
  import { defiPositionTypeSchema as l } from "./defiPositionType.model.js";
5
5
  import { webTokenWithBalanceAndPriceSchema as n } from "./webToken.model.js";
6
- const a = n.extend({
6
+ const i = n.extend({
7
7
  accruedFees: o.string(),
8
8
  currentPrice: o.string(),
9
9
  maxPrice: o.string(),
10
10
  minPrice: o.string(),
11
11
  principal: o.string()
12
12
  }), e = o.object({
13
+ id: o.string(),
13
14
  address: t.optional(),
14
15
  currencyValue: o.string().default("0")
15
- }), i = e.extend({
16
+ }), a = e.extend({
16
17
  poolFeePercentage: o.string(),
17
18
  tickSpacingPercentage: o.string().optional(),
18
19
  tokenId: o.string().optional(),
19
20
  unitCurrencyValueToken0: o.string().optional(),
20
21
  unitCurrencyValueToken1: o.string().optional(),
21
- token0: a,
22
- token1: a
23
- }), b = o.array(i), f = o.object({
22
+ token0: i,
23
+ token1: i
24
+ }), b = o.array(a), f = o.object({
24
25
  name: o.string().optional(),
25
26
  healthRatio: o.string().optional(),
26
27
  accountAddress: t.optional()
@@ -41,7 +42,7 @@ const a = n.extend({
41
42
  token: n.optional(),
42
43
  balance: o.string(),
43
44
  unitCurrencyValue: o.string().optional().default("0")
44
- }), T = o.array(c), d = i.or(r).or(c), p = o.record(o.object({
45
+ }), T = o.array(c), d = a.or(r).or(c), p = o.record(o.object({
45
46
  name: o.string().optional(),
46
47
  healthRatio: o.string().optional(),
47
48
  accountAddress: t.optional()
@@ -63,7 +64,7 @@ export {
63
64
  f as collateralizedDebtGroupSchema,
64
65
  r as collateralizedDebtPositionSchema,
65
66
  k as collateralizedDebtPositionsSchema,
66
- i as concentratedLiquidityPositionSchema,
67
+ a as concentratedLiquidityPositionSchema,
67
68
  b as concentratedLiquidityPositionsSchema,
68
69
  A as defiDappsProductsSchema,
69
70
  d as defiPositionSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.39.1",
3
+ "version": "1.40.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"