@argent/x-shared 1.54.0 → 1.56.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.
@@ -5017,6 +5017,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
5017
5017
  /** let's not import the keys from x-ui here */
5018
5018
  icon: z.ZodOptional<z.ZodString>;
5019
5019
  investment: z.ZodOptional<z.ZodObject<{
5020
+ useFullBalance: z.ZodOptional<z.ZodBoolean>;
5021
+ subsequentTransaction: z.ZodOptional<z.ZodBoolean>;
5022
+ investmentId: z.ZodOptional<z.ZodString>;
5020
5023
  stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
5021
5024
  stakerInfo: z.ZodObject<{
5022
5025
  name: z.ZodOptional<z.ZodString>;
@@ -5042,6 +5045,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
5042
5045
  iconUrl?: string | undefined;
5043
5046
  };
5044
5047
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5048
+ investmentId?: string | undefined;
5049
+ useFullBalance?: boolean | undefined;
5050
+ subsequentTransaction?: boolean | undefined;
5045
5051
  }, {
5046
5052
  amount: string;
5047
5053
  tokenAddress: string;
@@ -5051,6 +5057,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
5051
5057
  iconUrl?: string | undefined;
5052
5058
  };
5053
5059
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5060
+ investmentId?: string | undefined;
5061
+ useFullBalance?: boolean | undefined;
5062
+ subsequentTransaction?: boolean | undefined;
5054
5063
  }>>;
5055
5064
  isExecuteFromOutside: z.ZodOptional<z.ZodBoolean>;
5056
5065
  }, "strip", z.ZodTypeAny, {
@@ -5067,6 +5076,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
5067
5076
  iconUrl?: string | undefined;
5068
5077
  };
5069
5078
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5079
+ investmentId?: string | undefined;
5080
+ useFullBalance?: boolean | undefined;
5081
+ subsequentTransaction?: boolean | undefined;
5070
5082
  } | undefined;
5071
5083
  isExecuteFromOutside?: boolean | undefined;
5072
5084
  }, {
@@ -5083,6 +5095,9 @@ export declare const nativeActivityMetaSchema: z.ZodObject<{
5083
5095
  iconUrl?: string | undefined;
5084
5096
  };
5085
5097
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
5098
+ investmentId?: string | undefined;
5099
+ useFullBalance?: boolean | undefined;
5100
+ subsequentTransaction?: boolean | undefined;
5086
5101
  } | undefined;
5087
5102
  isExecuteFromOutside?: boolean | undefined;
5088
5103
  }>;
@@ -7606,6 +7621,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7606
7621
  /** let's not import the keys from x-ui here */
7607
7622
  icon: z.ZodOptional<z.ZodString>;
7608
7623
  investment: z.ZodOptional<z.ZodObject<{
7624
+ useFullBalance: z.ZodOptional<z.ZodBoolean>;
7625
+ subsequentTransaction: z.ZodOptional<z.ZodBoolean>;
7626
+ investmentId: z.ZodOptional<z.ZodString>;
7609
7627
  stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
7610
7628
  stakerInfo: z.ZodObject<{
7611
7629
  name: z.ZodOptional<z.ZodString>;
@@ -7631,6 +7649,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7631
7649
  iconUrl?: string | undefined;
7632
7650
  };
7633
7651
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7652
+ investmentId?: string | undefined;
7653
+ useFullBalance?: boolean | undefined;
7654
+ subsequentTransaction?: boolean | undefined;
7634
7655
  }, {
7635
7656
  amount: string;
7636
7657
  tokenAddress: string;
@@ -7640,6 +7661,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7640
7661
  iconUrl?: string | undefined;
7641
7662
  };
7642
7663
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7664
+ investmentId?: string | undefined;
7665
+ useFullBalance?: boolean | undefined;
7666
+ subsequentTransaction?: boolean | undefined;
7643
7667
  }>>;
7644
7668
  isExecuteFromOutside: z.ZodOptional<z.ZodBoolean>;
7645
7669
  }, "strip", z.ZodTypeAny, {
@@ -7656,6 +7680,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7656
7680
  iconUrl?: string | undefined;
7657
7681
  };
7658
7682
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7683
+ investmentId?: string | undefined;
7684
+ useFullBalance?: boolean | undefined;
7685
+ subsequentTransaction?: boolean | undefined;
7659
7686
  } | undefined;
7660
7687
  isExecuteFromOutside?: boolean | undefined;
7661
7688
  }, {
@@ -7672,6 +7699,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7672
7699
  iconUrl?: string | undefined;
7673
7700
  };
7674
7701
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7702
+ investmentId?: string | undefined;
7703
+ useFullBalance?: boolean | undefined;
7704
+ subsequentTransaction?: boolean | undefined;
7675
7705
  } | undefined;
7676
7706
  isExecuteFromOutside?: boolean | undefined;
7677
7707
  }>>;
@@ -7867,6 +7897,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
7867
7897
  iconUrl?: string | undefined;
7868
7898
  };
7869
7899
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
7900
+ investmentId?: string | undefined;
7901
+ useFullBalance?: boolean | undefined;
7902
+ subsequentTransaction?: boolean | undefined;
7870
7903
  } | undefined;
7871
7904
  isExecuteFromOutside?: boolean | undefined;
7872
7905
  } | undefined;
@@ -8062,6 +8095,9 @@ export declare const nativeActivitySchema: z.ZodObject<z.objectUtil.extendShape<
8062
8095
  iconUrl?: string | undefined;
8063
8096
  };
8064
8097
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
8098
+ investmentId?: string | undefined;
8099
+ useFullBalance?: boolean | undefined;
8100
+ subsequentTransaction?: boolean | undefined;
8065
8101
  } | undefined;
8066
8102
  isExecuteFromOutside?: boolean | undefined;
8067
8103
  } | undefined;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),c=require("../utils/starknet/starknet.cjs"),t=require("../chains/starknet/address.cjs"),a=e.z.object({id:e.z.string(),dappId:e.z.string(),productId:e.z.string(),productName:e.z.string(),chain:e.z.string(),name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url().optional(),riskFactor:e.z.enum(["low"]),metrics:e.z.object({baseApy:e.z.string(),totalApy:e.z.string(),tvl:e.z.string().optional()}),incentives:e.z.array(e.z.object({name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url(),metric:e.z.object({apy:e.z.string()})})),buyEnabled:e.z.boolean(),sellEnabled:e.z.boolean()}),s=a.extend({category:e.z.literal("staking"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),performanceFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}).optional()})}),o=a.extend({category:e.z.literal("lending"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({totalFee:e.z.string()}),withdrawalFees:e.z.object({totalFee:e.z.string()})})}),n=e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().url().optional(),address:e.z.string().optional()}),r=a.extend({category:e.z.literal("strkDelegatedStaking"),stakerInfo:n,investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional()}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional(),amountsRequirement:e.z.enum(["fullBalance"]).optional(),timelockDuration:e.z.number().optional()}),fees:e.z.object({depositFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),performanceFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}).optional()}),buyEnabled:e.z.boolean().optional(),sellEnabled:e.z.boolean().optional(),claimEnabled:e.z.boolean().optional()}),i=e.z.discriminatedUnion("category",[s,o,r]),z=e.z.object({investments:e.z.array(i)}),d=e.z.object({calls:e.z.array(c.callSchema)}),g=e.z.object({investmentId:e.z.string(),investmentType:e.z.enum(["staking","lending","strkDelegatedStaking"]).optional(),accountAddress:t.addressSchemaArgentBackend,tokenAddress:t.addressSchemaArgentBackend,stakerInfo:n,amount:e.z.string()}),l=e.z.enum(["deposit","stake","initiateWithdraw","withdraw","claim"]),m=e.z.object({stakingAction:l,stakerInfo:n,tokenAddress:t.addressSchema,amount:e.z.string()});exports.investmentMetaSchema=m;exports.investmentSchema=i;exports.investmentsResponseSchema=z;exports.lendingInvestmentSchema=o;exports.liquidStakingInvestmentSchema=s;exports.stakerInfoSchema=n;exports.stakingActionSchema=l;exports.strkDelegatedStakingInvestmentSchema=r;exports.strkStakingCalldataResponseSchema=d;exports.strkStakingCalldataSchema=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),z=require("../utils/starknet/starknet.cjs"),t=require("../chains/starknet/address.cjs"),a=e.z.object({id:e.z.string(),dappId:e.z.string(),productId:e.z.string(),productName:e.z.string(),chain:e.z.string(),name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url().optional(),riskFactor:e.z.enum(["low"]),metrics:e.z.object({baseApy:e.z.string(),totalApy:e.z.string(),tvl:e.z.string().optional()}),incentives:e.z.array(e.z.object({name:e.z.string(),description:e.z.string(),iconUrl:e.z.string().url(),learnMoreUrl:e.z.string().url(),metric:e.z.object({apy:e.z.string()})})),buyEnabled:e.z.boolean(),sellEnabled:e.z.boolean()}),s=a.extend({category:e.z.literal("staking"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({protocolFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),performanceFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}).optional()})}),o=a.extend({category:e.z.literal("lending"),investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"])}),fees:e.z.object({depositFees:e.z.object({totalFee:e.z.string()}),withdrawalFees:e.z.object({totalFee:e.z.string()})})}),n=e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().url().optional(),address:e.z.string().optional()}),r=a.extend({category:e.z.literal("strkDelegatedStaking"),stakerInfo:n,investableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional()}),withdrawableAssets:e.z.object({tokenAddresses:e.z.array(t.addressSchemaArgentBackend),tokensRequirement:e.z.enum(["any"]),useDecomposedBalances:e.z.boolean().optional(),amountsRequirement:e.z.enum(["fullBalance"]).optional(),timelockDuration:e.z.number().optional()}),fees:e.z.object({depositFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),withdrawalFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}),performanceFees:e.z.object({argentFee:e.z.string().nullable().optional(),protocolFee:e.z.string().nullable().optional(),providerFee:e.z.string().nullable().optional(),totalFee:e.z.string()}).optional()}),buyEnabled:e.z.boolean().optional(),sellEnabled:e.z.boolean().optional(),claimEnabled:e.z.boolean().optional()}),l=e.z.discriminatedUnion("category",[s,o,r]),d=e.z.object({investments:e.z.array(l)}),g=e.z.object({calls:e.z.array(z.callSchema)}),m=e.z.object({investmentId:e.z.string(),investmentType:e.z.enum(["staking","lending","strkDelegatedStaking"]).optional(),accountAddress:t.addressSchemaArgentBackend,tokenAddress:t.addressSchemaArgentBackend,stakerInfo:n,amount:e.z.string()}),i=e.z.enum(["deposit","stake","initiateWithdraw","withdraw","claim"]),c=e.z.object({useFullBalance:e.z.boolean().optional(),subsequentTransaction:e.z.boolean().optional()}),b=e.z.object({investmentId:e.z.string().optional(),stakingAction:i,stakerInfo:n,tokenAddress:t.addressSchema,amount:e.z.string(),...c.shape});exports.buildSellOptsSchema=c;exports.investmentMetaSchema=b;exports.investmentSchema=l;exports.investmentsResponseSchema=d;exports.lendingInvestmentSchema=o;exports.liquidStakingInvestmentSchema=s;exports.stakerInfoSchema=n;exports.stakingActionSchema=i;exports.strkDelegatedStakingInvestmentSchema=r;exports.strkStakingCalldataResponseSchema=g;exports.strkStakingCalldataSchema=m;
@@ -2712,7 +2712,21 @@ export declare const strkStakingCalldataSchema: z.ZodObject<{
2712
2712
  }>;
2713
2713
  export type StrkStakingCalldata = z.infer<typeof strkStakingCalldataSchema>;
2714
2714
  export declare const stakingActionSchema: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
2715
+ export declare const buildSellOptsSchema: z.ZodObject<{
2716
+ useFullBalance: z.ZodOptional<z.ZodBoolean>;
2717
+ subsequentTransaction: z.ZodOptional<z.ZodBoolean>;
2718
+ }, "strip", z.ZodTypeAny, {
2719
+ useFullBalance?: boolean | undefined;
2720
+ subsequentTransaction?: boolean | undefined;
2721
+ }, {
2722
+ useFullBalance?: boolean | undefined;
2723
+ subsequentTransaction?: boolean | undefined;
2724
+ }>;
2725
+ export type BuildSellOpts = z.infer<typeof buildSellOptsSchema>;
2715
2726
  export declare const investmentMetaSchema: z.ZodObject<{
2727
+ useFullBalance: z.ZodOptional<z.ZodBoolean>;
2728
+ subsequentTransaction: z.ZodOptional<z.ZodBoolean>;
2729
+ investmentId: z.ZodOptional<z.ZodString>;
2716
2730
  stakingAction: z.ZodEnum<["deposit", "stake", "initiateWithdraw", "withdraw", "claim"]>;
2717
2731
  stakerInfo: z.ZodObject<{
2718
2732
  name: z.ZodOptional<z.ZodString>;
@@ -2738,6 +2752,9 @@ export declare const investmentMetaSchema: z.ZodObject<{
2738
2752
  iconUrl?: string | undefined;
2739
2753
  };
2740
2754
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2755
+ investmentId?: string | undefined;
2756
+ useFullBalance?: boolean | undefined;
2757
+ subsequentTransaction?: boolean | undefined;
2741
2758
  }, {
2742
2759
  amount: string;
2743
2760
  tokenAddress: string;
@@ -2747,5 +2764,8 @@ export declare const investmentMetaSchema: z.ZodObject<{
2747
2764
  iconUrl?: string | undefined;
2748
2765
  };
2749
2766
  stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
2767
+ investmentId?: string | undefined;
2768
+ useFullBalance?: boolean | undefined;
2769
+ subsequentTransaction?: boolean | undefined;
2750
2770
  }>;
2751
2771
  export type InvestmentMeta = z.infer<typeof investmentMetaSchema>;
@@ -28,7 +28,7 @@ const n = e.object({
28
28
  })),
29
29
  buyEnabled: e.boolean(),
30
30
  sellEnabled: e.boolean()
31
- }), r = n.extend({
31
+ }), l = n.extend({
32
32
  category: e.literal("staking"),
33
33
  investableAssets: e.object({
34
34
  tokenAddresses: e.array(t),
@@ -54,7 +54,7 @@ const n = e.object({
54
54
  totalFee: e.string()
55
55
  }).optional()
56
56
  })
57
- }), i = n.extend({
57
+ }), r = n.extend({
58
58
  category: e.literal("lending"),
59
59
  investableAssets: e.object({
60
60
  tokenAddresses: e.array(t),
@@ -76,7 +76,7 @@ const n = e.object({
76
76
  name: e.string().optional(),
77
77
  iconUrl: e.string().url().optional(),
78
78
  address: e.string().optional()
79
- }), l = n.extend({
79
+ }), i = n.extend({
80
80
  category: e.literal("strkDelegatedStaking"),
81
81
  stakerInfo: o,
82
82
  investableAssets: e.object({
@@ -115,14 +115,14 @@ const n = e.object({
115
115
  sellEnabled: e.boolean().optional(),
116
116
  claimEnabled: e.boolean().optional()
117
117
  }), c = e.discriminatedUnion("category", [
118
+ l,
118
119
  r,
119
- i,
120
- l
121
- ]), p = e.object({
120
+ i
121
+ ]), u = e.object({
122
122
  investments: e.array(c)
123
- }), u = e.object({
124
- calls: e.array(a)
125
123
  }), k = e.object({
124
+ calls: e.array(a)
125
+ }), F = e.object({
126
126
  investmentId: e.string(),
127
127
  investmentType: e.enum(["staking", "lending", "strkDelegatedStaking"]).optional(),
128
128
  accountAddress: t,
@@ -135,21 +135,27 @@ const n = e.object({
135
135
  "initiateWithdraw",
136
136
  "withdraw",
137
137
  "claim"
138
- ]), F = e.object({
138
+ ]), g = e.object({
139
+ useFullBalance: e.boolean().optional(),
140
+ subsequentTransaction: e.boolean().optional()
141
+ }), j = e.object({
142
+ investmentId: e.string().optional(),
139
143
  stakingAction: d,
140
144
  stakerInfo: o,
141
145
  tokenAddress: s,
142
- amount: e.string()
146
+ amount: e.string(),
147
+ ...g.shape
143
148
  });
144
149
  export {
145
- F as investmentMetaSchema,
150
+ g as buildSellOptsSchema,
151
+ j as investmentMetaSchema,
146
152
  c as investmentSchema,
147
- p as investmentsResponseSchema,
148
- i as lendingInvestmentSchema,
149
- r as liquidStakingInvestmentSchema,
153
+ u as investmentsResponseSchema,
154
+ r as lendingInvestmentSchema,
155
+ l as liquidStakingInvestmentSchema,
150
156
  o as stakerInfoSchema,
151
157
  d as stakingActionSchema,
152
- l as strkDelegatedStakingInvestmentSchema,
153
- u as strkStakingCalldataResponseSchema,
154
- k as strkStakingCalldataSchema
158
+ i as strkDelegatedStakingInvestmentSchema,
159
+ k as strkStakingCalldataResponseSchema,
160
+ F as strkStakingCalldataSchema
155
161
  };
@@ -15917,3 +15917,5 @@ export type ApiStrkDelegatedStaking = z.infer<typeof apiStrkDelegatedStakingSche
15917
15917
  export type ApiStaking = z.infer<typeof apiStakingPositionSchema>;
15918
15918
  export type ApiDelegatedTokens = z.infer<typeof apiDelegatedTokensSchema>;
15919
15919
  export type ApiDelegatedTokensArray = z.infer<typeof apiDelegatedTokensArraySchema>;
15920
+ export type ApiStrkDelegatedStakingPosition = z.infer<typeof apiStrkDelegatedStakingPositionsSchema>;
15921
+ export type ApiStrkLiquidStakingPosition = z.infer<typeof apiStakingPositionsSchema>;
@@ -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(),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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),t=require("../../../chains/starknet/address.cjs"),m=require("./backend.model.cjs"),p=require("./defiPositionType.model.cjs"),o=require("./webToken.model.cjs"),l=o.webTokenWithBalanceAndPriceSchema.extend({accruedFees:e.z.string(),currentPrice:e.z.string(),maxPrice:e.z.string(),minPrice:e.z.string(),principal:e.z.string()}),a=e.z.object({address:t.addressSchema.optional(),currencyValue:e.z.string().default("0")}),i=a.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:l,token1:l}),S=e.z.array(i),k=e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:t.addressSchema.optional()}),r=a.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:m.apiTokenInfoSchema.or(e.z.undefined()),token:o.webTokenWithBalanceAndPriceSchema.optional(),accountAddress:t.addressSchema.optional(),accountAddressGroup:e.z.string().optional()}),P=e.z.array(r),c=a.extend({delegatingTo:t.addressSchema,token:o.webTokenWithBalanceAndPriceSchema.optional(),balance:e.z.string(),unitCurrencyValue:e.z.string().optional().default("0")}),y=e.z.array(c),n=e.z.object({wei:e.z.string(),eth:e.z.string(),currency:e.z.string()}),s=a.extend({id:e.z.string(),total:n,apy:e.z.number(),totalApy:e.z.number(),token:o.webTokenWithBalanceAndPriceSchema}),b=e.z.array(s),d=a.extend({id:e.z.string(),accruedRewards:n,stakedAmount:n,total:n,apy:e.z.number(),totalApy:e.z.number(),stakerInfo:m.apiStrkDelegatedStakingSchema.shape.data.shape.stakerInfo,token:o.webTokenWithBalanceAndPriceSchema}),T=e.z.array(d),z=i.or(r).or(c).or(d).or(s),g=e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional(),accountAddress:t.addressSchema.optional()})),u=e.z.object({type:p.defiPositionTypeSchema,manageUrl:e.z.string().url().optional(),name:e.z.string(),positions:e.z.array(z),positionsTotalValue:e.z.string(),brandColor:e.z.string().optional(),groups:g.optional(),accountAddress:t.addressSchema}),h=e.z.array(u),A=e.z.object({dappId:e.z.string(),products:h});exports.collateralizedDebtGroupSchema=k;exports.collateralizedDebtPositionSchema=r;exports.collateralizedDebtPositionsSchema=P;exports.concentratedLiquidityPositionSchema=i;exports.concentratedLiquidityPositionsSchema=S;exports.defiDappsProductsSchema=A;exports.defiPositionSchema=z;exports.defiProductSchema=u;exports.defiProductsSchema=h;exports.delegatedTokensArraySchema=y;exports.delegatedTokensSchema=c;exports.productGroupsSchema=g;exports.stakingPositionSchema=s;exports.stakingPositionsSchema=b;exports.strkDelegatedStakingPositionArraySchema=T;exports.strkDelegatedStakingPositionSchema=d;