@argent/x-shared 1.44.1 → 1.44.2

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, stakerInfoSchema as d, investmentMetaSchema as g } from "../../../staking/schema.js";
2
+ import { stakingActionSchema as m, providerInfoSchema 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
- }), k = t.enum([
32
+ }), A = 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
- ]), A = t.object({
54
+ ]), f = t.object({
55
55
  name: t.string(),
56
56
  parameters: t.array(t.unknown()).optional()
57
- }), f = t.object({
57
+ }), j = 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
- }), j = t.object({
64
+ }), k = 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(f).optional()
70
+ signers: t.array(j).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: j.optional()
98
+ context: k.optional()
99
99
  }),
100
100
  t.object({
101
101
  type: t.literal("dappInteraction"),
102
102
  dappAddress: e,
103
- function: A.optional().nullable()
103
+ function: f.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
- stakerInfo: d
111
+ providerInfo: 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: k,
167
+ type: A,
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"),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;
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;
@@ -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 stakerInfoSchema: z.ZodObject<{
408
+ export declare const providerInfoSchema: 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 stakerInfoSchema: z.ZodObject<{
418
418
  name?: string | undefined;
419
419
  iconUrl?: string | undefined;
420
420
  }>;
421
- export type StakerInfo = z.infer<typeof stakerInfoSchema>;
421
+ export type ProviderInfo = z.infer<typeof providerInfoSchema>;
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
- stakerInfo: z.ZodObject<{
479
+ providerInfo: 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
- stakerInfo: {
672
+ providerInfo: {
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
- stakerInfo: {
738
+ providerInfo: {
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
- stakerInfo: z.ZodObject<{
1207
+ providerInfo: 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
- stakerInfo: {
1400
+ providerInfo: {
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
- stakerInfo: {
1466
+ providerInfo: {
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
- stakerInfo: z.ZodObject<{
1940
+ providerInfo: 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
- stakerInfo: {
2133
+ providerInfo: {
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
- stakerInfo: {
2199
+ providerInfo: {
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
- stakerInfo: {
2357
+ providerInfo: {
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
- stakerInfo: {
2515
+ providerInfo: {
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
- stakerInfo: z.ZodObject<{
2535
+ providerInfo: z.ZodObject<{
2536
2536
  name: z.ZodOptional<z.ZodString>;
2537
2537
  iconUrl: z.ZodOptional<z.ZodString>;
2538
2538
  address: z.ZodString;
@@ -2551,7 +2551,7 @@ export declare const strkStakingCalldataSchema: z.ZodObject<{
2551
2551
  }, "strip", z.ZodTypeAny, {
2552
2552
  amount: string;
2553
2553
  accountAddress: `0x${string}`;
2554
- stakerInfo: {
2554
+ providerInfo: {
2555
2555
  address: string;
2556
2556
  name?: string | undefined;
2557
2557
  iconUrl?: string | undefined;
@@ -2561,7 +2561,7 @@ export declare const strkStakingCalldataSchema: z.ZodObject<{
2561
2561
  }, {
2562
2562
  amount: string;
2563
2563
  accountAddress: string;
2564
- stakerInfo: {
2564
+ providerInfo: {
2565
2565
  address: string;
2566
2566
  name?: string | undefined;
2567
2567
  iconUrl?: string | undefined;
@@ -2573,7 +2573,7 @@ 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
- stakerInfo: z.ZodObject<{
2576
+ providerInfo: z.ZodObject<{
2577
2577
  name: z.ZodOptional<z.ZodString>;
2578
2578
  iconUrl: z.ZodOptional<z.ZodString>;
2579
2579
  address: z.ZodString;
@@ -2590,7 +2590,7 @@ export declare const investmentMetaSchema: z.ZodObject<{
2590
2590
  amount: z.ZodString;
2591
2591
  }, "strip", z.ZodTypeAny, {
2592
2592
  amount: string;
2593
- stakerInfo: {
2593
+ providerInfo: {
2594
2594
  address: string;
2595
2595
  name?: string | undefined;
2596
2596
  iconUrl?: string | undefined;
@@ -2599,7 +2599,7 @@ export declare const investmentMetaSchema: z.ZodObject<{
2599
2599
  stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
2600
2600
  }, {
2601
2601
  amount: string;
2602
- stakerInfo: {
2602
+ providerInfo: {
2603
2603
  address: string;
2604
2604
  name?: string | undefined;
2605
2605
  iconUrl?: string | undefined;
@@ -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
- stakerInfo: o,
75
+ providerInfo: 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
- stakerInfo: o,
119
+ providerInfo: 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
- stakerInfo: o,
130
+ providerInfo: 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 stakerInfoSchema,
139
+ o as providerInfoSchema,
140
140
  d as stakingActionSchema,
141
141
  r as stakingInvestmentSchema,
142
142
  l as strkDelegatedStakingInvestmentSchema,
@@ -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
- stakerInfo: import('zod').ZodObject<{
309
+ providerInfo: 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
- stakerInfo: {
336
+ providerInfo: {
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
- stakerInfo: {
349
+ providerInfo: {
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
- stakerInfo: {
364
+ providerInfo: {
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
- stakerInfo: {
383
+ providerInfo: {
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({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;
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;