@argent/x-shared 1.44.3 → 1.45.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,5 +1,5 @@
1
1
  import { z as t } from "zod";
2
- import { stakingActionSchema as m, providerInfoSchema as d, investmentMetaSchema as g } from "../../../staking/schema.js";
2
+ import { stakingActionSchema as m, stakerInfoSchema as d, investmentMetaSchema as g } from "../../../staking/schema.js";
3
3
  import { actionSchema as y, targetedDappSchema as b } from "../transactionReview/schema.js";
4
4
  import { addressSchemaArgentBackend as e } from "../../../chains/starknet/address.js";
5
5
  const r = t.object({
@@ -29,7 +29,7 @@ const r = t.object({
29
29
  }), v = t.object({
30
30
  chainId: t.enum(["TESTNET", "MAINNET", "SEPOLIA"]),
31
31
  ethereumNetwork: t.enum(["mainnet", "sepolia"])
32
- }), A = t.enum([
32
+ }), k = t.enum([
33
33
  "approval",
34
34
  "changePubKey",
35
35
  "dappInteraction",
@@ -51,23 +51,23 @@ const r = t.object({
51
51
  "cancelEscape",
52
52
  "accountUpgraded",
53
53
  "multisigConfigurationUpdated"
54
- ]), f = t.object({
54
+ ]), A = t.object({
55
55
  name: t.string(),
56
56
  parameters: t.array(t.unknown()).optional()
57
- }), j = t.object({
57
+ }), f = t.object({
58
58
  guid: t.string().optional(),
59
59
  signerType: t.string().optional(),
60
60
  // StarknetKey, Secp256k1, Secp256r1, Eip191, Webauthn
61
61
  signer: t.object({
62
62
  publicKey: t.string().optional()
63
63
  }).optional()
64
- }), k = t.object({
64
+ }), j = t.object({
65
65
  activeAt: t.string().optional(),
66
66
  newGuardian: t.string().optional(),
67
67
  newImplementation: t.string().optional(),
68
68
  newVersion: t.string().optional(),
69
69
  signerGuid: t.string().optional(),
70
- signers: t.array(j).optional()
70
+ signers: t.array(f).optional()
71
71
  }), o = t.discriminatedUnion("type", [
72
72
  t.object({
73
73
  type: t.literal("deploy"),
@@ -95,12 +95,12 @@ const r = t.object({
95
95
  t.object({
96
96
  type: t.literal("security"),
97
97
  action: s,
98
- context: k.optional()
98
+ context: j.optional()
99
99
  }),
100
100
  t.object({
101
101
  type: t.literal("dappInteraction"),
102
102
  dappAddress: e,
103
- function: f.optional().nullable()
103
+ function: A.optional().nullable()
104
104
  // This object is often null. It happens when we were unable to get the ABI or failed decoding the function call
105
105
  }),
106
106
  t.object({
@@ -108,7 +108,7 @@ const r = t.object({
108
108
  stakingAction: m,
109
109
  counterparty: e,
110
110
  asset: a,
111
- providerInfo: d
111
+ stakerInfo: d
112
112
  })
113
113
  ]), w = t.union([
114
114
  o,
@@ -164,7 +164,7 @@ const r = t.object({
164
164
  wallet: e,
165
165
  txSender: e,
166
166
  source: t.string(),
167
- type: A,
167
+ type: k,
168
168
  group: t.enum(["finance", "security"]),
169
169
  submitted: t.number(),
170
170
  lastModified: t.number(),
@@ -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()})})}),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()}),r=a.extend({category:e.z.literal("strkDelegatedStaking"),providerInfo: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()}),claimEnabled:e.z.boolean().optional()}),i=e.z.discriminatedUnion("category",[s,o,r]),d=e.z.object({investments:e.z.array(i)}),z=e.z.object({calls:e.z.array(c.callSchema)}),m=e.z.object({investmentId:e.z.string(),providerInfo:n,accountAddress:t.addressSchemaArgentBackend,tokenAddress:t.addressSchemaArgentBackend,amount:e.z.string()}),l=e.z.enum(["stake","initiateWithdraw","withdraw","claim"]),g=e.z.object({stakingAction:l,providerInfo:n,tokenAddress:t.addressSchema,amount:e.z.string()});exports.investmentMetaSchema=g;exports.investmentSchema=i;exports.investmentsResponseSchema=d;exports.lendingInvestmentSchema=o;exports.providerInfoSchema=n;exports.stakingActionSchema=l;exports.stakingInvestmentSchema=s;exports.strkDelegatedStakingInvestmentSchema=r;exports.strkStakingCalldataResponseSchema=z;exports.strkStakingCalldataSchema=m;
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()})})}),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()}),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()}),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)}),m=e.z.object({investmentId:e.z.string(),stakerInfo:n,accountAddress:t.addressSchemaArgentBackend,tokenAddress:t.addressSchemaArgentBackend,amount:e.z.string()}),l=e.z.enum(["stake","initiateWithdraw","withdraw","claim"]),g=e.z.object({stakingAction:l,stakerInfo:n,tokenAddress:t.addressSchema,amount:e.z.string()});exports.investmentMetaSchema=g;exports.investmentSchema=i;exports.investmentsResponseSchema=z;exports.lendingInvestmentSchema=o;exports.stakerInfoSchema=n;exports.stakingActionSchema=l;exports.stakingInvestmentSchema=s;exports.strkDelegatedStakingInvestmentSchema=r;exports.strkStakingCalldataResponseSchema=d;exports.strkStakingCalldataSchema=m;
@@ -405,7 +405,7 @@ export declare const lendingInvestmentSchema: z.ZodObject<z.objectUtil.extendSha
405
405
  };
406
406
  learnMoreUrl?: string | undefined;
407
407
  }>;
408
- export declare const providerInfoSchema: z.ZodObject<{
408
+ export declare const stakerInfoSchema: z.ZodObject<{
409
409
  name: z.ZodOptional<z.ZodString>;
410
410
  iconUrl: z.ZodOptional<z.ZodString>;
411
411
  address: z.ZodString;
@@ -418,7 +418,7 @@ export declare const providerInfoSchema: z.ZodObject<{
418
418
  name?: string | undefined;
419
419
  iconUrl?: string | undefined;
420
420
  }>;
421
- export type ProviderInfo = z.infer<typeof providerInfoSchema>;
421
+ export type StakerInfo = z.infer<typeof stakerInfoSchema>;
422
422
  export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectUtil.extendShape<{
423
423
  id: z.ZodString;
424
424
  dappId: z.ZodString;
@@ -476,7 +476,7 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
476
476
  sellEnabled: z.ZodBoolean;
477
477
  }, {
478
478
  category: z.ZodLiteral<"strkDelegatedStaking">;
479
- providerInfo: z.ZodObject<{
479
+ stakerInfo: z.ZodObject<{
480
480
  name: z.ZodOptional<z.ZodString>;
481
481
  iconUrl: z.ZodOptional<z.ZodString>;
482
482
  address: z.ZodString;
@@ -669,7 +669,7 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
669
669
  providerFee?: string | null | undefined;
670
670
  } | undefined;
671
671
  };
672
- providerInfo: {
672
+ stakerInfo: {
673
673
  address: string;
674
674
  name?: string | undefined;
675
675
  iconUrl?: string | undefined;
@@ -735,7 +735,7 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
735
735
  providerFee?: string | null | undefined;
736
736
  } | undefined;
737
737
  };
738
- providerInfo: {
738
+ stakerInfo: {
739
739
  address: string;
740
740
  name?: string | undefined;
741
741
  iconUrl?: string | undefined;
@@ -1204,7 +1204,7 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
1204
1204
  sellEnabled: z.ZodBoolean;
1205
1205
  }, {
1206
1206
  category: z.ZodLiteral<"strkDelegatedStaking">;
1207
- providerInfo: z.ZodObject<{
1207
+ stakerInfo: z.ZodObject<{
1208
1208
  name: z.ZodOptional<z.ZodString>;
1209
1209
  iconUrl: z.ZodOptional<z.ZodString>;
1210
1210
  address: z.ZodString;
@@ -1397,7 +1397,7 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
1397
1397
  providerFee?: string | null | undefined;
1398
1398
  } | undefined;
1399
1399
  };
1400
- providerInfo: {
1400
+ stakerInfo: {
1401
1401
  address: string;
1402
1402
  name?: string | undefined;
1403
1403
  iconUrl?: string | undefined;
@@ -1463,7 +1463,7 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
1463
1463
  providerFee?: string | null | undefined;
1464
1464
  } | undefined;
1465
1465
  };
1466
- providerInfo: {
1466
+ stakerInfo: {
1467
1467
  address: string;
1468
1468
  name?: string | undefined;
1469
1469
  iconUrl?: string | undefined;
@@ -1937,7 +1937,7 @@ export declare const investmentsResponseSchema: z.ZodObject<{
1937
1937
  sellEnabled: z.ZodBoolean;
1938
1938
  }, {
1939
1939
  category: z.ZodLiteral<"strkDelegatedStaking">;
1940
- providerInfo: z.ZodObject<{
1940
+ stakerInfo: z.ZodObject<{
1941
1941
  name: z.ZodOptional<z.ZodString>;
1942
1942
  iconUrl: z.ZodOptional<z.ZodString>;
1943
1943
  address: z.ZodString;
@@ -2130,7 +2130,7 @@ export declare const investmentsResponseSchema: z.ZodObject<{
2130
2130
  providerFee?: string | null | undefined;
2131
2131
  } | undefined;
2132
2132
  };
2133
- providerInfo: {
2133
+ stakerInfo: {
2134
2134
  address: string;
2135
2135
  name?: string | undefined;
2136
2136
  iconUrl?: string | undefined;
@@ -2196,7 +2196,7 @@ export declare const investmentsResponseSchema: z.ZodObject<{
2196
2196
  providerFee?: string | null | undefined;
2197
2197
  } | undefined;
2198
2198
  };
2199
- providerInfo: {
2199
+ stakerInfo: {
2200
2200
  address: string;
2201
2201
  name?: string | undefined;
2202
2202
  iconUrl?: string | undefined;
@@ -2354,7 +2354,7 @@ export declare const investmentsResponseSchema: z.ZodObject<{
2354
2354
  providerFee?: string | null | undefined;
2355
2355
  } | undefined;
2356
2356
  };
2357
- providerInfo: {
2357
+ stakerInfo: {
2358
2358
  address: string;
2359
2359
  name?: string | undefined;
2360
2360
  iconUrl?: string | undefined;
@@ -2512,7 +2512,7 @@ export declare const investmentsResponseSchema: z.ZodObject<{
2512
2512
  providerFee?: string | null | undefined;
2513
2513
  } | undefined;
2514
2514
  };
2515
- providerInfo: {
2515
+ stakerInfo: {
2516
2516
  address: string;
2517
2517
  name?: string | undefined;
2518
2518
  iconUrl?: string | undefined;
@@ -2532,7 +2532,7 @@ export declare const strkStakingCalldataResponseSchema: z.ZodObject<{
2532
2532
  export type StrkStakingCalldataResponse = z.infer<typeof strkStakingCalldataResponseSchema>;
2533
2533
  export declare const strkStakingCalldataSchema: z.ZodObject<{
2534
2534
  investmentId: z.ZodString;
2535
- providerInfo: z.ZodObject<{
2535
+ stakerInfo: z.ZodObject<{
2536
2536
  name: z.ZodOptional<z.ZodString>;
2537
2537
  iconUrl: z.ZodOptional<z.ZodString>;
2538
2538
  address: z.ZodString;
@@ -2551,29 +2551,29 @@ export declare const strkStakingCalldataSchema: z.ZodObject<{
2551
2551
  }, "strip", z.ZodTypeAny, {
2552
2552
  amount: string;
2553
2553
  accountAddress: `0x${string}`;
2554
- providerInfo: {
2554
+ tokenAddress: `0x${string}`;
2555
+ stakerInfo: {
2555
2556
  address: string;
2556
2557
  name?: string | undefined;
2557
2558
  iconUrl?: string | undefined;
2558
2559
  };
2559
2560
  investmentId: string;
2560
- tokenAddress: `0x${string}`;
2561
2561
  }, {
2562
2562
  amount: string;
2563
2563
  accountAddress: string;
2564
- providerInfo: {
2564
+ tokenAddress: string;
2565
+ stakerInfo: {
2565
2566
  address: string;
2566
2567
  name?: string | undefined;
2567
2568
  iconUrl?: string | undefined;
2568
2569
  };
2569
2570
  investmentId: string;
2570
- tokenAddress: string;
2571
2571
  }>;
2572
2572
  export type StrkStakingCalldata = z.infer<typeof strkStakingCalldataSchema>;
2573
2573
  export declare const stakingActionSchema: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
2574
2574
  export declare const investmentMetaSchema: z.ZodObject<{
2575
2575
  stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
2576
- providerInfo: z.ZodObject<{
2576
+ stakerInfo: z.ZodObject<{
2577
2577
  name: z.ZodOptional<z.ZodString>;
2578
2578
  iconUrl: z.ZodOptional<z.ZodString>;
2579
2579
  address: z.ZodString;
@@ -2590,21 +2590,21 @@ export declare const investmentMetaSchema: z.ZodObject<{
2590
2590
  amount: z.ZodString;
2591
2591
  }, "strip", z.ZodTypeAny, {
2592
2592
  amount: string;
2593
- providerInfo: {
2593
+ tokenAddress: `0x${string}`;
2594
+ stakerInfo: {
2594
2595
  address: string;
2595
2596
  name?: string | undefined;
2596
2597
  iconUrl?: string | undefined;
2597
2598
  };
2598
- tokenAddress: `0x${string}`;
2599
2599
  stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2600
2600
  }, {
2601
2601
  amount: string;
2602
- providerInfo: {
2602
+ tokenAddress: string;
2603
+ stakerInfo: {
2603
2604
  address: string;
2604
2605
  name?: string | undefined;
2605
2606
  iconUrl?: string | undefined;
2606
2607
  };
2607
- tokenAddress: string;
2608
2608
  stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2609
2609
  }>;
2610
2610
  export type InvestmentMeta = z.infer<typeof investmentMetaSchema>;
@@ -72,7 +72,7 @@ const n = e.object({
72
72
  address: e.string()
73
73
  }), l = n.extend({
74
74
  category: e.literal("strkDelegatedStaking"),
75
- providerInfo: o,
75
+ stakerInfo: o,
76
76
  investableAssets: e.object({
77
77
  tokenAddresses: e.array(t),
78
78
  tokensRequirement: e.enum(["any"]),
@@ -116,7 +116,7 @@ const n = e.object({
116
116
  calls: e.array(a)
117
117
  }), k = e.object({
118
118
  investmentId: e.string(),
119
- providerInfo: o,
119
+ stakerInfo: o,
120
120
  accountAddress: t,
121
121
  tokenAddress: t,
122
122
  amount: e.string()
@@ -127,7 +127,7 @@ const n = e.object({
127
127
  "claim"
128
128
  ]), F = e.object({
129
129
  stakingAction: d,
130
- providerInfo: o,
130
+ stakerInfo: o,
131
131
  tokenAddress: s,
132
132
  amount: e.string()
133
133
  });
@@ -136,7 +136,7 @@ export {
136
136
  c as investmentSchema,
137
137
  p as investmentsResponseSchema,
138
138
  i as lendingInvestmentSchema,
139
- o as providerInfoSchema,
139
+ o as stakerInfoSchema,
140
140
  d as stakingActionSchema,
141
141
  r as stakingInvestmentSchema,
142
142
  l as strkDelegatedStakingInvestmentSchema,
@@ -159,8 +159,8 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
159
159
  id: string;
160
160
  totalBalances: Record<string, string>;
161
161
  tokenId: string;
162
- investmentId?: string | undefined;
163
162
  tokenAddress?: `0x${string}` | undefined;
163
+ investmentId?: string | undefined;
164
164
  }, {
165
165
  data: {
166
166
  poolFeePercentage: string;
@@ -185,8 +185,8 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
185
185
  id: string;
186
186
  totalBalances: Record<string, string>;
187
187
  tokenId: string;
188
- investmentId?: string | undefined;
189
188
  tokenAddress?: string | undefined;
189
+ investmentId?: string | undefined;
190
190
  }>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
191
191
  id: import('zod').ZodString;
192
192
  investmentId: import('zod').ZodOptional<import('zod').ZodString>;
@@ -222,8 +222,8 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
222
222
  };
223
223
  id: string;
224
224
  totalBalances: Record<string, string>;
225
- investmentId?: string | undefined;
226
225
  tokenAddress?: `0x${string}` | undefined;
226
+ investmentId?: string | undefined;
227
227
  }, {
228
228
  data: {
229
229
  lending: boolean;
@@ -234,8 +234,8 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
234
234
  };
235
235
  id: string;
236
236
  totalBalances: Record<string, string>;
237
- investmentId?: string | undefined;
238
237
  tokenAddress?: string | undefined;
238
+ investmentId?: string | undefined;
239
239
  }>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
240
240
  id: import('zod').ZodString;
241
241
  investmentId: import('zod').ZodOptional<import('zod').ZodString>;
@@ -257,16 +257,16 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
257
257
  };
258
258
  id: string;
259
259
  totalBalances: Record<string, string>;
260
- investmentId?: string | undefined;
261
260
  tokenAddress?: `0x${string}` | undefined;
261
+ investmentId?: string | undefined;
262
262
  }, {
263
263
  data: {
264
264
  delegatingTo: string;
265
265
  };
266
266
  id: string;
267
267
  totalBalances: Record<string, string>;
268
- investmentId?: string | undefined;
269
268
  tokenAddress?: string | undefined;
269
+ investmentId?: string | undefined;
270
270
  }>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
271
271
  id: import('zod').ZodString;
272
272
  investmentId: import('zod').ZodOptional<import('zod').ZodString>;
@@ -288,16 +288,16 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
288
288
  };
289
289
  id: string;
290
290
  totalBalances: Record<string, string>;
291
- investmentId?: string | undefined;
292
291
  tokenAddress?: `0x${string}` | undefined;
292
+ investmentId?: string | undefined;
293
293
  }, {
294
294
  data: {
295
295
  apy: string;
296
296
  };
297
297
  id: string;
298
298
  totalBalances: Record<string, string>;
299
- investmentId?: string | undefined;
300
299
  tokenAddress?: string | undefined;
300
+ investmentId?: string | undefined;
301
301
  }>]>, import('zod').ZodObject<import("zod").objectUtil.extendShape<{
302
302
  id: import('zod').ZodString;
303
303
  investmentId: import('zod').ZodOptional<import('zod').ZodString>;
@@ -306,7 +306,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
306
306
  }, {
307
307
  investmentId: import('zod').ZodString;
308
308
  data: import('zod').ZodObject<{
309
- providerInfo: import('zod').ZodObject<{
309
+ stakerInfo: import('zod').ZodObject<{
310
310
  name: import('zod').ZodOptional<import('zod').ZodString>;
311
311
  iconUrl: import('zod').ZodOptional<import('zod').ZodString>;
312
312
  address: import('zod').ZodEffects<import('zod').ZodPipeline<import('zod').ZodString, import('zod').ZodEffects<import('zod').ZodString, string, string>>, `0x${string}`, string>;
@@ -333,7 +333,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
333
333
  }>>;
334
334
  apy: import('zod').ZodOptional<import('zod').ZodString>;
335
335
  }, "strip", import('zod').ZodTypeAny, {
336
- providerInfo: {
336
+ stakerInfo: {
337
337
  address: `0x${string}`;
338
338
  name?: string | undefined;
339
339
  iconUrl?: string | undefined;
@@ -346,7 +346,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
346
346
  withdrawableAfter: number;
347
347
  } | undefined;
348
348
  }, {
349
- providerInfo: {
349
+ stakerInfo: {
350
350
  address: string;
351
351
  name?: string | undefined;
352
352
  iconUrl?: string | undefined;
@@ -361,7 +361,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
361
361
  }>;
362
362
  }>, "strip", import('zod').ZodTypeAny, {
363
363
  data: {
364
- providerInfo: {
364
+ stakerInfo: {
365
365
  address: `0x${string}`;
366
366
  name?: string | undefined;
367
367
  iconUrl?: string | undefined;
@@ -380,7 +380,7 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
380
380
  tokenAddress?: `0x${string}` | undefined;
381
381
  }, {
382
382
  data: {
383
- providerInfo: {
383
+ stakerInfo: {
384
384
  address: string;
385
385
  name?: string | undefined;
386
386
  iconUrl?: string | undefined;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),a=require("../../../chains/starknet/address.cjs"),h=require("./defiPositionType.model.cjs"),b=require("../../../utils/schemas.cjs"),u=e.z.object({status:e.z.literal("initialising")}).or(e.z.object({status:e.z.literal("initialised"),balances:e.z.array(e.z.object({tokenAddress:a.addressSchemaArgentBackend,tokenBalance:e.z.string()}))})),o=e.z.object({id:e.z.number(),address:a.addressSchema,brandColor:e.z.string().optional(),name:e.z.string(),symbol:e.z.string(),decimals:e.z.number(),iconUrl:e.z.string().optional(),sendable:e.z.boolean(),popular:e.z.boolean(),refundable:e.z.boolean(),listed:e.z.boolean(),tradable:e.z.boolean(),category:e.z.union([e.z.literal("tokens"),e.z.literal("currencies"),e.z.literal("savings")]),pricingId:e.z.number().optional(),dappId:e.z.string().optional(),marketData:e.z.object({marketCap:e.z.number(),marketCap24hChange:e.z.number(),dailyVolume:e.z.number(),rank:e.z.number()}).optional(),tags:e.z.array(e.z.string()).optional()}),k=e.z.object({tokens:e.z.array(o)}),D=o,p=e.z.object({pricingId:e.z.number(),ethValue:e.z.string(),ccyValue:e.z.string(),ethDayChange:e.z.string(),ccyDayChange:e.z.string()}),y=e.z.object({prices:e.z.array(p)}),t=e.z.object({tokenAddress:a.addressSchemaArgentBackend,principal:e.z.string(),accruedFees:e.z.string(),minPrice:e.z.string(),maxPrice:e.z.string(),currentPrice:e.z.string()}),i=e.z.object({id:e.z.string(),investmentId:e.z.string().optional(),tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string())}),n=i.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:t,token1:t})}),P=e.z.array(n),s=i.extend({data:e.z.object({apy:e.z.string()}),investmentId:e.z.string().optional(),totalBalances:e.z.record(e.z.string())}),f=e.z.array(s),r=i.extend({data:e.z.object({apy:e.z.string().optional(),group:e.z.number().optional(),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean()})}),j=e.z.array(r),c=i.extend({id:e.z.string(),data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string())}),T=e.z.array(c),d=i.extend({investmentId:e.z.string(),data:e.z.object({providerInfo:e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().optional(),address:a.addressSchema}),accruedRewards:e.z.string(),stakedAmount:e.z.string(),pendingWithdrawal:e.z.object({amount:e.z.string(),withdrawableAfter:e.z.number()}).optional(),apy:e.z.string().optional()})}),I=e.z.array(d),z=n.or(r).or(c).or(s).or(d),l=e.z.array(z),m=b.createSchemaWithWarnings({productId:e.z.string().optional(),name:e.z.string(),manageUrl:e.z.string(),type:h.defiPositionTypeSchema,groups:e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:l}),g=e.z.object({dappId:e.z.string(),products:e.z.array(m)}),A=e.z.object({dapps:e.z.array(g)}),S=e.z.object({name:e.z.string().optional(),tokenAddress:a.addressSchema,amount:e.z.string().optional(),claimUrl:e.z.string().optional(),claimStart:e.z.number(),claimEnd:e.z.number().optional()}),C=e.z.object({accountAddress:a.addressSchema,chain:e.z.string(),airdrops:e.z.array(S)});exports.apiAccountTokenBalancesSchema=u;exports.apiAirdropSchema=S;exports.apiCollateralizedDebtPositionSchema=r;exports.apiCollateralizedDebtPositionsSchema=j;exports.apiConcentratedLiquidityPositionSchema=n;exports.apiConcentratedLiquidityPositionsSchema=P;exports.apiDefiDecompositionProduct=m;exports.apiDefiDecompositionProducts=l;exports.apiDefiDecompositionSchema=g;exports.apiDefiDecompositionToken=t;exports.apiDefiPositionSchema=z;exports.apiDefiPositionsSchema=A;exports.apiDelegatedTokensArraySchema=T;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=y;exports.apiPriceDetailsSchema=p;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=f;exports.apiStrkDelegatedStakingPositionsSchema=I;exports.apiStrkDelegatedStakingSchema=d;exports.apiTokenInfoResponseSchema=D;exports.apiTokenInfoSchema=o;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),a=require("../../../chains/starknet/address.cjs"),h=require("./defiPositionType.model.cjs"),b=require("../../../utils/schemas.cjs"),u=e.z.object({status:e.z.literal("initialising")}).or(e.z.object({status:e.z.literal("initialised"),balances:e.z.array(e.z.object({tokenAddress:a.addressSchemaArgentBackend,tokenBalance:e.z.string()}))})),o=e.z.object({id:e.z.number(),address:a.addressSchema,brandColor:e.z.string().optional(),name:e.z.string(),symbol:e.z.string(),decimals:e.z.number(),iconUrl:e.z.string().optional(),sendable:e.z.boolean(),popular:e.z.boolean(),refundable:e.z.boolean(),listed:e.z.boolean(),tradable:e.z.boolean(),category:e.z.union([e.z.literal("tokens"),e.z.literal("currencies"),e.z.literal("savings")]),pricingId:e.z.number().optional(),dappId:e.z.string().optional(),marketData:e.z.object({marketCap:e.z.number(),marketCap24hChange:e.z.number(),dailyVolume:e.z.number(),rank:e.z.number()}).optional(),tags:e.z.array(e.z.string()).optional()}),k=e.z.object({tokens:e.z.array(o)}),D=o,p=e.z.object({pricingId:e.z.number(),ethValue:e.z.string(),ccyValue:e.z.string(),ethDayChange:e.z.string(),ccyDayChange:e.z.string()}),y=e.z.object({prices:e.z.array(p)}),t=e.z.object({tokenAddress:a.addressSchemaArgentBackend,principal:e.z.string(),accruedFees:e.z.string(),minPrice:e.z.string(),maxPrice:e.z.string(),currentPrice:e.z.string()}),i=e.z.object({id:e.z.string(),investmentId:e.z.string().optional(),tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string())}),n=i.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:t,token1:t})}),P=e.z.array(n),s=i.extend({data:e.z.object({apy:e.z.string()}),investmentId:e.z.string().optional(),totalBalances:e.z.record(e.z.string())}),f=e.z.array(s),r=i.extend({data:e.z.object({apy:e.z.string().optional(),group:e.z.number().optional(),collateral:e.z.boolean(),debt:e.z.boolean(),lending:e.z.boolean()})}),j=e.z.array(r),c=i.extend({id:e.z.string(),data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string())}),T=e.z.array(c),d=i.extend({investmentId:e.z.string(),data:e.z.object({stakerInfo:e.z.object({name:e.z.string().optional(),iconUrl:e.z.string().optional(),address:a.addressSchema}),accruedRewards:e.z.string(),stakedAmount:e.z.string(),pendingWithdrawal:e.z.object({amount:e.z.string(),withdrawableAfter:e.z.number()}).optional(),apy:e.z.string().optional()})}),I=e.z.array(d),z=n.or(r).or(c).or(s).or(d),l=e.z.array(z),m=b.createSchemaWithWarnings({productId:e.z.string().optional(),name:e.z.string(),manageUrl:e.z.string(),type:h.defiPositionTypeSchema,groups:e.z.record(e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:l}),g=e.z.object({dappId:e.z.string(),products:e.z.array(m)}),A=e.z.object({dapps:e.z.array(g)}),S=e.z.object({name:e.z.string().optional(),tokenAddress:a.addressSchema,amount:e.z.string().optional(),claimUrl:e.z.string().optional(),claimStart:e.z.number(),claimEnd:e.z.number().optional()}),C=e.z.object({accountAddress:a.addressSchema,chain:e.z.string(),airdrops:e.z.array(S)});exports.apiAccountTokenBalancesSchema=u;exports.apiAirdropSchema=S;exports.apiCollateralizedDebtPositionSchema=r;exports.apiCollateralizedDebtPositionsSchema=j;exports.apiConcentratedLiquidityPositionSchema=n;exports.apiConcentratedLiquidityPositionsSchema=P;exports.apiDefiDecompositionProduct=m;exports.apiDefiDecompositionProducts=l;exports.apiDefiDecompositionSchema=g;exports.apiDefiDecompositionToken=t;exports.apiDefiPositionSchema=z;exports.apiDefiPositionsSchema=A;exports.apiDelegatedTokensArraySchema=T;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=y;exports.apiPriceDetailsSchema=p;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=f;exports.apiStrkDelegatedStakingPositionsSchema=I;exports.apiStrkDelegatedStakingSchema=d;exports.apiTokenInfoResponseSchema=D;exports.apiTokenInfoSchema=o;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=C;