@argent/x-shared 1.51.0 → 1.52.1
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.
- package/dist/src/account/account.model.cjs +1 -1
- package/dist/src/account/account.model.d.ts +3 -0
- package/dist/src/account/account.model.js +4 -3
- package/dist/src/backend/sessionKeys/schema.d.ts +2 -2
- package/dist/src/features/simulation/activity/schema.d.ts +126 -126
- package/dist/src/staking/schema.cjs +1 -1
- package/dist/src/staking/schema.d.ts +164 -32
- package/dist/src/staking/schema.js +15 -9
- package/package.json +2 -2
|
@@ -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()}),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)}),
|
|
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(),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.stakerInfoSchema=n;exports.stakingActionSchema=l;exports.stakingInvestmentSchema=s;exports.strkDelegatedStakingInvestmentSchema=r;exports.strkStakingCalldataResponseSchema=d;exports.strkStakingCalldataSchema=g;
|
|
@@ -97,6 +97,22 @@ export declare const stakingInvestmentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
97
97
|
totalFee: string;
|
|
98
98
|
protocolFee?: string | null | undefined;
|
|
99
99
|
}>;
|
|
100
|
+
performanceFees: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
argentFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
protocolFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
providerFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
totalFee: z.ZodString;
|
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
|
106
|
+
totalFee: string;
|
|
107
|
+
protocolFee?: string | null | undefined;
|
|
108
|
+
argentFee?: string | null | undefined;
|
|
109
|
+
providerFee?: string | null | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
totalFee: string;
|
|
112
|
+
protocolFee?: string | null | undefined;
|
|
113
|
+
argentFee?: string | null | undefined;
|
|
114
|
+
providerFee?: string | null | undefined;
|
|
115
|
+
}>>;
|
|
100
116
|
}, "strip", z.ZodTypeAny, {
|
|
101
117
|
depositFees: {
|
|
102
118
|
totalFee: string;
|
|
@@ -106,6 +122,12 @@ export declare const stakingInvestmentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
106
122
|
totalFee: string;
|
|
107
123
|
protocolFee?: string | null | undefined;
|
|
108
124
|
};
|
|
125
|
+
performanceFees?: {
|
|
126
|
+
totalFee: string;
|
|
127
|
+
protocolFee?: string | null | undefined;
|
|
128
|
+
argentFee?: string | null | undefined;
|
|
129
|
+
providerFee?: string | null | undefined;
|
|
130
|
+
} | undefined;
|
|
109
131
|
}, {
|
|
110
132
|
depositFees: {
|
|
111
133
|
totalFee: string;
|
|
@@ -115,6 +137,12 @@ export declare const stakingInvestmentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
115
137
|
totalFee: string;
|
|
116
138
|
protocolFee?: string | null | undefined;
|
|
117
139
|
};
|
|
140
|
+
performanceFees?: {
|
|
141
|
+
totalFee: string;
|
|
142
|
+
protocolFee?: string | null | undefined;
|
|
143
|
+
argentFee?: string | null | undefined;
|
|
144
|
+
providerFee?: string | null | undefined;
|
|
145
|
+
} | undefined;
|
|
118
146
|
}>;
|
|
119
147
|
}>, "strip", z.ZodTypeAny, {
|
|
120
148
|
name: string;
|
|
@@ -160,6 +188,12 @@ export declare const stakingInvestmentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
160
188
|
totalFee: string;
|
|
161
189
|
protocolFee?: string | null | undefined;
|
|
162
190
|
};
|
|
191
|
+
performanceFees?: {
|
|
192
|
+
totalFee: string;
|
|
193
|
+
protocolFee?: string | null | undefined;
|
|
194
|
+
argentFee?: string | null | undefined;
|
|
195
|
+
providerFee?: string | null | undefined;
|
|
196
|
+
} | undefined;
|
|
163
197
|
};
|
|
164
198
|
learnMoreUrl?: string | undefined;
|
|
165
199
|
}, {
|
|
@@ -206,6 +240,12 @@ export declare const stakingInvestmentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
206
240
|
totalFee: string;
|
|
207
241
|
protocolFee?: string | null | undefined;
|
|
208
242
|
};
|
|
243
|
+
performanceFees?: {
|
|
244
|
+
totalFee: string;
|
|
245
|
+
protocolFee?: string | null | undefined;
|
|
246
|
+
argentFee?: string | null | undefined;
|
|
247
|
+
providerFee?: string | null | undefined;
|
|
248
|
+
} | undefined;
|
|
209
249
|
};
|
|
210
250
|
learnMoreUrl?: string | undefined;
|
|
211
251
|
}>;
|
|
@@ -408,14 +448,14 @@ export declare const lendingInvestmentSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
408
448
|
export declare const stakerInfoSchema: z.ZodObject<{
|
|
409
449
|
name: z.ZodOptional<z.ZodString>;
|
|
410
450
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
411
|
-
address: z.ZodString
|
|
451
|
+
address: z.ZodOptional<z.ZodString>;
|
|
412
452
|
}, "strip", z.ZodTypeAny, {
|
|
413
|
-
address: string;
|
|
414
453
|
name?: string | undefined;
|
|
454
|
+
address?: string | undefined;
|
|
415
455
|
iconUrl?: string | undefined;
|
|
416
456
|
}, {
|
|
417
|
-
address: string;
|
|
418
457
|
name?: string | undefined;
|
|
458
|
+
address?: string | undefined;
|
|
419
459
|
iconUrl?: string | undefined;
|
|
420
460
|
}>;
|
|
421
461
|
export type StakerInfo = z.infer<typeof stakerInfoSchema>;
|
|
@@ -479,14 +519,14 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
|
|
|
479
519
|
stakerInfo: z.ZodObject<{
|
|
480
520
|
name: z.ZodOptional<z.ZodString>;
|
|
481
521
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
482
|
-
address: z.ZodString
|
|
522
|
+
address: z.ZodOptional<z.ZodString>;
|
|
483
523
|
}, "strip", z.ZodTypeAny, {
|
|
484
|
-
address: string;
|
|
485
524
|
name?: string | undefined;
|
|
525
|
+
address?: string | undefined;
|
|
486
526
|
iconUrl?: string | undefined;
|
|
487
527
|
}, {
|
|
488
|
-
address: string;
|
|
489
528
|
name?: string | undefined;
|
|
529
|
+
address?: string | undefined;
|
|
490
530
|
iconUrl?: string | undefined;
|
|
491
531
|
}>;
|
|
492
532
|
investableAssets: z.ZodObject<{
|
|
@@ -670,8 +710,8 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
|
|
|
670
710
|
} | undefined;
|
|
671
711
|
};
|
|
672
712
|
stakerInfo: {
|
|
673
|
-
address: string;
|
|
674
713
|
name?: string | undefined;
|
|
714
|
+
address?: string | undefined;
|
|
675
715
|
iconUrl?: string | undefined;
|
|
676
716
|
};
|
|
677
717
|
learnMoreUrl?: string | undefined;
|
|
@@ -736,8 +776,8 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
|
|
|
736
776
|
} | undefined;
|
|
737
777
|
};
|
|
738
778
|
stakerInfo: {
|
|
739
|
-
address: string;
|
|
740
779
|
name?: string | undefined;
|
|
780
|
+
address?: string | undefined;
|
|
741
781
|
iconUrl?: string | undefined;
|
|
742
782
|
};
|
|
743
783
|
learnMoreUrl?: string | undefined;
|
|
@@ -843,6 +883,22 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
843
883
|
totalFee: string;
|
|
844
884
|
protocolFee?: string | null | undefined;
|
|
845
885
|
}>;
|
|
886
|
+
performanceFees: z.ZodOptional<z.ZodObject<{
|
|
887
|
+
argentFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
888
|
+
protocolFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
889
|
+
providerFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
890
|
+
totalFee: z.ZodString;
|
|
891
|
+
}, "strip", z.ZodTypeAny, {
|
|
892
|
+
totalFee: string;
|
|
893
|
+
protocolFee?: string | null | undefined;
|
|
894
|
+
argentFee?: string | null | undefined;
|
|
895
|
+
providerFee?: string | null | undefined;
|
|
896
|
+
}, {
|
|
897
|
+
totalFee: string;
|
|
898
|
+
protocolFee?: string | null | undefined;
|
|
899
|
+
argentFee?: string | null | undefined;
|
|
900
|
+
providerFee?: string | null | undefined;
|
|
901
|
+
}>>;
|
|
846
902
|
}, "strip", z.ZodTypeAny, {
|
|
847
903
|
depositFees: {
|
|
848
904
|
totalFee: string;
|
|
@@ -852,6 +908,12 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
852
908
|
totalFee: string;
|
|
853
909
|
protocolFee?: string | null | undefined;
|
|
854
910
|
};
|
|
911
|
+
performanceFees?: {
|
|
912
|
+
totalFee: string;
|
|
913
|
+
protocolFee?: string | null | undefined;
|
|
914
|
+
argentFee?: string | null | undefined;
|
|
915
|
+
providerFee?: string | null | undefined;
|
|
916
|
+
} | undefined;
|
|
855
917
|
}, {
|
|
856
918
|
depositFees: {
|
|
857
919
|
totalFee: string;
|
|
@@ -861,6 +923,12 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
861
923
|
totalFee: string;
|
|
862
924
|
protocolFee?: string | null | undefined;
|
|
863
925
|
};
|
|
926
|
+
performanceFees?: {
|
|
927
|
+
totalFee: string;
|
|
928
|
+
protocolFee?: string | null | undefined;
|
|
929
|
+
argentFee?: string | null | undefined;
|
|
930
|
+
providerFee?: string | null | undefined;
|
|
931
|
+
} | undefined;
|
|
864
932
|
}>;
|
|
865
933
|
}>, "strip", z.ZodTypeAny, {
|
|
866
934
|
name: string;
|
|
@@ -906,6 +974,12 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
906
974
|
totalFee: string;
|
|
907
975
|
protocolFee?: string | null | undefined;
|
|
908
976
|
};
|
|
977
|
+
performanceFees?: {
|
|
978
|
+
totalFee: string;
|
|
979
|
+
protocolFee?: string | null | undefined;
|
|
980
|
+
argentFee?: string | null | undefined;
|
|
981
|
+
providerFee?: string | null | undefined;
|
|
982
|
+
} | undefined;
|
|
909
983
|
};
|
|
910
984
|
learnMoreUrl?: string | undefined;
|
|
911
985
|
}, {
|
|
@@ -952,6 +1026,12 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
952
1026
|
totalFee: string;
|
|
953
1027
|
protocolFee?: string | null | undefined;
|
|
954
1028
|
};
|
|
1029
|
+
performanceFees?: {
|
|
1030
|
+
totalFee: string;
|
|
1031
|
+
protocolFee?: string | null | undefined;
|
|
1032
|
+
argentFee?: string | null | undefined;
|
|
1033
|
+
providerFee?: string | null | undefined;
|
|
1034
|
+
} | undefined;
|
|
955
1035
|
};
|
|
956
1036
|
learnMoreUrl?: string | undefined;
|
|
957
1037
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1209,14 +1289,14 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
1209
1289
|
stakerInfo: z.ZodObject<{
|
|
1210
1290
|
name: z.ZodOptional<z.ZodString>;
|
|
1211
1291
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1212
|
-
address: z.ZodString
|
|
1292
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1213
1293
|
}, "strip", z.ZodTypeAny, {
|
|
1214
|
-
address: string;
|
|
1215
1294
|
name?: string | undefined;
|
|
1295
|
+
address?: string | undefined;
|
|
1216
1296
|
iconUrl?: string | undefined;
|
|
1217
1297
|
}, {
|
|
1218
|
-
address: string;
|
|
1219
1298
|
name?: string | undefined;
|
|
1299
|
+
address?: string | undefined;
|
|
1220
1300
|
iconUrl?: string | undefined;
|
|
1221
1301
|
}>;
|
|
1222
1302
|
investableAssets: z.ZodObject<{
|
|
@@ -1400,8 +1480,8 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
1400
1480
|
} | undefined;
|
|
1401
1481
|
};
|
|
1402
1482
|
stakerInfo: {
|
|
1403
|
-
address: string;
|
|
1404
1483
|
name?: string | undefined;
|
|
1484
|
+
address?: string | undefined;
|
|
1405
1485
|
iconUrl?: string | undefined;
|
|
1406
1486
|
};
|
|
1407
1487
|
learnMoreUrl?: string | undefined;
|
|
@@ -1466,8 +1546,8 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
1466
1546
|
} | undefined;
|
|
1467
1547
|
};
|
|
1468
1548
|
stakerInfo: {
|
|
1469
|
-
address: string;
|
|
1470
1549
|
name?: string | undefined;
|
|
1550
|
+
address?: string | undefined;
|
|
1471
1551
|
iconUrl?: string | undefined;
|
|
1472
1552
|
};
|
|
1473
1553
|
learnMoreUrl?: string | undefined;
|
|
@@ -1578,6 +1658,22 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
1578
1658
|
totalFee: string;
|
|
1579
1659
|
protocolFee?: string | null | undefined;
|
|
1580
1660
|
}>;
|
|
1661
|
+
performanceFees: z.ZodOptional<z.ZodObject<{
|
|
1662
|
+
argentFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1663
|
+
protocolFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1664
|
+
providerFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1665
|
+
totalFee: z.ZodString;
|
|
1666
|
+
}, "strip", z.ZodTypeAny, {
|
|
1667
|
+
totalFee: string;
|
|
1668
|
+
protocolFee?: string | null | undefined;
|
|
1669
|
+
argentFee?: string | null | undefined;
|
|
1670
|
+
providerFee?: string | null | undefined;
|
|
1671
|
+
}, {
|
|
1672
|
+
totalFee: string;
|
|
1673
|
+
protocolFee?: string | null | undefined;
|
|
1674
|
+
argentFee?: string | null | undefined;
|
|
1675
|
+
providerFee?: string | null | undefined;
|
|
1676
|
+
}>>;
|
|
1581
1677
|
}, "strip", z.ZodTypeAny, {
|
|
1582
1678
|
depositFees: {
|
|
1583
1679
|
totalFee: string;
|
|
@@ -1587,6 +1683,12 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
1587
1683
|
totalFee: string;
|
|
1588
1684
|
protocolFee?: string | null | undefined;
|
|
1589
1685
|
};
|
|
1686
|
+
performanceFees?: {
|
|
1687
|
+
totalFee: string;
|
|
1688
|
+
protocolFee?: string | null | undefined;
|
|
1689
|
+
argentFee?: string | null | undefined;
|
|
1690
|
+
providerFee?: string | null | undefined;
|
|
1691
|
+
} | undefined;
|
|
1590
1692
|
}, {
|
|
1591
1693
|
depositFees: {
|
|
1592
1694
|
totalFee: string;
|
|
@@ -1596,6 +1698,12 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
1596
1698
|
totalFee: string;
|
|
1597
1699
|
protocolFee?: string | null | undefined;
|
|
1598
1700
|
};
|
|
1701
|
+
performanceFees?: {
|
|
1702
|
+
totalFee: string;
|
|
1703
|
+
protocolFee?: string | null | undefined;
|
|
1704
|
+
argentFee?: string | null | undefined;
|
|
1705
|
+
providerFee?: string | null | undefined;
|
|
1706
|
+
} | undefined;
|
|
1599
1707
|
}>;
|
|
1600
1708
|
}>, "strip", z.ZodTypeAny, {
|
|
1601
1709
|
name: string;
|
|
@@ -1641,6 +1749,12 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
1641
1749
|
totalFee: string;
|
|
1642
1750
|
protocolFee?: string | null | undefined;
|
|
1643
1751
|
};
|
|
1752
|
+
performanceFees?: {
|
|
1753
|
+
totalFee: string;
|
|
1754
|
+
protocolFee?: string | null | undefined;
|
|
1755
|
+
argentFee?: string | null | undefined;
|
|
1756
|
+
providerFee?: string | null | undefined;
|
|
1757
|
+
} | undefined;
|
|
1644
1758
|
};
|
|
1645
1759
|
learnMoreUrl?: string | undefined;
|
|
1646
1760
|
}, {
|
|
@@ -1687,6 +1801,12 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
1687
1801
|
totalFee: string;
|
|
1688
1802
|
protocolFee?: string | null | undefined;
|
|
1689
1803
|
};
|
|
1804
|
+
performanceFees?: {
|
|
1805
|
+
totalFee: string;
|
|
1806
|
+
protocolFee?: string | null | undefined;
|
|
1807
|
+
argentFee?: string | null | undefined;
|
|
1808
|
+
providerFee?: string | null | undefined;
|
|
1809
|
+
} | undefined;
|
|
1690
1810
|
};
|
|
1691
1811
|
learnMoreUrl?: string | undefined;
|
|
1692
1812
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
@@ -1944,14 +2064,14 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
1944
2064
|
stakerInfo: z.ZodObject<{
|
|
1945
2065
|
name: z.ZodOptional<z.ZodString>;
|
|
1946
2066
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1947
|
-
address: z.ZodString
|
|
2067
|
+
address: z.ZodOptional<z.ZodString>;
|
|
1948
2068
|
}, "strip", z.ZodTypeAny, {
|
|
1949
|
-
address: string;
|
|
1950
2069
|
name?: string | undefined;
|
|
2070
|
+
address?: string | undefined;
|
|
1951
2071
|
iconUrl?: string | undefined;
|
|
1952
2072
|
}, {
|
|
1953
|
-
address: string;
|
|
1954
2073
|
name?: string | undefined;
|
|
2074
|
+
address?: string | undefined;
|
|
1955
2075
|
iconUrl?: string | undefined;
|
|
1956
2076
|
}>;
|
|
1957
2077
|
investableAssets: z.ZodObject<{
|
|
@@ -2135,8 +2255,8 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2135
2255
|
} | undefined;
|
|
2136
2256
|
};
|
|
2137
2257
|
stakerInfo: {
|
|
2138
|
-
address: string;
|
|
2139
2258
|
name?: string | undefined;
|
|
2259
|
+
address?: string | undefined;
|
|
2140
2260
|
iconUrl?: string | undefined;
|
|
2141
2261
|
};
|
|
2142
2262
|
learnMoreUrl?: string | undefined;
|
|
@@ -2201,8 +2321,8 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2201
2321
|
} | undefined;
|
|
2202
2322
|
};
|
|
2203
2323
|
stakerInfo: {
|
|
2204
|
-
address: string;
|
|
2205
2324
|
name?: string | undefined;
|
|
2325
|
+
address?: string | undefined;
|
|
2206
2326
|
iconUrl?: string | undefined;
|
|
2207
2327
|
};
|
|
2208
2328
|
learnMoreUrl?: string | undefined;
|
|
@@ -2255,6 +2375,12 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2255
2375
|
totalFee: string;
|
|
2256
2376
|
protocolFee?: string | null | undefined;
|
|
2257
2377
|
};
|
|
2378
|
+
performanceFees?: {
|
|
2379
|
+
totalFee: string;
|
|
2380
|
+
protocolFee?: string | null | undefined;
|
|
2381
|
+
argentFee?: string | null | undefined;
|
|
2382
|
+
providerFee?: string | null | undefined;
|
|
2383
|
+
} | undefined;
|
|
2258
2384
|
};
|
|
2259
2385
|
learnMoreUrl?: string | undefined;
|
|
2260
2386
|
} | {
|
|
@@ -2359,8 +2485,8 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2359
2485
|
} | undefined;
|
|
2360
2486
|
};
|
|
2361
2487
|
stakerInfo: {
|
|
2362
|
-
address: string;
|
|
2363
2488
|
name?: string | undefined;
|
|
2489
|
+
address?: string | undefined;
|
|
2364
2490
|
iconUrl?: string | undefined;
|
|
2365
2491
|
};
|
|
2366
2492
|
learnMoreUrl?: string | undefined;
|
|
@@ -2413,6 +2539,12 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2413
2539
|
totalFee: string;
|
|
2414
2540
|
protocolFee?: string | null | undefined;
|
|
2415
2541
|
};
|
|
2542
|
+
performanceFees?: {
|
|
2543
|
+
totalFee: string;
|
|
2544
|
+
protocolFee?: string | null | undefined;
|
|
2545
|
+
argentFee?: string | null | undefined;
|
|
2546
|
+
providerFee?: string | null | undefined;
|
|
2547
|
+
} | undefined;
|
|
2416
2548
|
};
|
|
2417
2549
|
learnMoreUrl?: string | undefined;
|
|
2418
2550
|
} | {
|
|
@@ -2517,8 +2649,8 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2517
2649
|
} | undefined;
|
|
2518
2650
|
};
|
|
2519
2651
|
stakerInfo: {
|
|
2520
|
-
address: string;
|
|
2521
2652
|
name?: string | undefined;
|
|
2653
|
+
address?: string | undefined;
|
|
2522
2654
|
iconUrl?: string | undefined;
|
|
2523
2655
|
};
|
|
2524
2656
|
learnMoreUrl?: string | undefined;
|
|
@@ -2538,29 +2670,29 @@ export declare const strkStakingCalldataResponseSchema: z.ZodObject<{
|
|
|
2538
2670
|
export type StrkStakingCalldataResponse = z.infer<typeof strkStakingCalldataResponseSchema>;
|
|
2539
2671
|
export declare const strkStakingCalldataSchema: z.ZodObject<{
|
|
2540
2672
|
investmentId: z.ZodString;
|
|
2673
|
+
accountAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2674
|
+
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2541
2675
|
stakerInfo: z.ZodObject<{
|
|
2542
2676
|
name: z.ZodOptional<z.ZodString>;
|
|
2543
2677
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2544
|
-
address: z.ZodString
|
|
2678
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2545
2679
|
}, "strip", z.ZodTypeAny, {
|
|
2546
|
-
address: string;
|
|
2547
2680
|
name?: string | undefined;
|
|
2681
|
+
address?: string | undefined;
|
|
2548
2682
|
iconUrl?: string | undefined;
|
|
2549
2683
|
}, {
|
|
2550
|
-
address: string;
|
|
2551
2684
|
name?: string | undefined;
|
|
2685
|
+
address?: string | undefined;
|
|
2552
2686
|
iconUrl?: string | undefined;
|
|
2553
2687
|
}>;
|
|
2554
|
-
accountAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2555
|
-
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2556
2688
|
amount: z.ZodString;
|
|
2557
2689
|
}, "strip", z.ZodTypeAny, {
|
|
2558
2690
|
amount: string;
|
|
2559
2691
|
accountAddress: `0x${string}`;
|
|
2560
2692
|
tokenAddress: `0x${string}`;
|
|
2561
2693
|
stakerInfo: {
|
|
2562
|
-
address: string;
|
|
2563
2694
|
name?: string | undefined;
|
|
2695
|
+
address?: string | undefined;
|
|
2564
2696
|
iconUrl?: string | undefined;
|
|
2565
2697
|
};
|
|
2566
2698
|
investmentId: string;
|
|
@@ -2569,8 +2701,8 @@ export declare const strkStakingCalldataSchema: z.ZodObject<{
|
|
|
2569
2701
|
accountAddress: string;
|
|
2570
2702
|
tokenAddress: string;
|
|
2571
2703
|
stakerInfo: {
|
|
2572
|
-
address: string;
|
|
2573
2704
|
name?: string | undefined;
|
|
2705
|
+
address?: string | undefined;
|
|
2574
2706
|
iconUrl?: string | undefined;
|
|
2575
2707
|
};
|
|
2576
2708
|
investmentId: string;
|
|
@@ -2582,14 +2714,14 @@ export declare const investmentMetaSchema: z.ZodObject<{
|
|
|
2582
2714
|
stakerInfo: z.ZodObject<{
|
|
2583
2715
|
name: z.ZodOptional<z.ZodString>;
|
|
2584
2716
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2585
|
-
address: z.ZodString
|
|
2717
|
+
address: z.ZodOptional<z.ZodString>;
|
|
2586
2718
|
}, "strip", z.ZodTypeAny, {
|
|
2587
|
-
address: string;
|
|
2588
2719
|
name?: string | undefined;
|
|
2720
|
+
address?: string | undefined;
|
|
2589
2721
|
iconUrl?: string | undefined;
|
|
2590
2722
|
}, {
|
|
2591
|
-
address: string;
|
|
2592
2723
|
name?: string | undefined;
|
|
2724
|
+
address?: string | undefined;
|
|
2593
2725
|
iconUrl?: string | undefined;
|
|
2594
2726
|
}>;
|
|
2595
2727
|
tokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
|
|
@@ -2598,8 +2730,8 @@ export declare const investmentMetaSchema: z.ZodObject<{
|
|
|
2598
2730
|
amount: string;
|
|
2599
2731
|
tokenAddress: `0x${string}`;
|
|
2600
2732
|
stakerInfo: {
|
|
2601
|
-
address: string;
|
|
2602
2733
|
name?: string | undefined;
|
|
2734
|
+
address?: string | undefined;
|
|
2603
2735
|
iconUrl?: string | undefined;
|
|
2604
2736
|
};
|
|
2605
2737
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
@@ -2607,8 +2739,8 @@ export declare const investmentMetaSchema: z.ZodObject<{
|
|
|
2607
2739
|
amount: string;
|
|
2608
2740
|
tokenAddress: string;
|
|
2609
2741
|
stakerInfo: {
|
|
2610
|
-
address: string;
|
|
2611
2742
|
name?: string | undefined;
|
|
2743
|
+
address?: string | undefined;
|
|
2612
2744
|
iconUrl?: string | undefined;
|
|
2613
2745
|
};
|
|
2614
2746
|
stakingAction: "deposit" | "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
@@ -46,9 +46,15 @@ const n = e.object({
|
|
|
46
46
|
withdrawalFees: e.object({
|
|
47
47
|
protocolFee: e.string().nullable().optional(),
|
|
48
48
|
totalFee: e.string()
|
|
49
|
-
})
|
|
49
|
+
}),
|
|
50
|
+
performanceFees: e.object({
|
|
51
|
+
argentFee: e.string().nullable().optional(),
|
|
52
|
+
protocolFee: e.string().nullable().optional(),
|
|
53
|
+
providerFee: e.string().nullable().optional(),
|
|
54
|
+
totalFee: e.string()
|
|
55
|
+
}).optional()
|
|
50
56
|
})
|
|
51
|
-
}),
|
|
57
|
+
}), l = n.extend({
|
|
52
58
|
category: e.literal("lending"),
|
|
53
59
|
investableAssets: e.object({
|
|
54
60
|
tokenAddresses: e.array(t),
|
|
@@ -69,8 +75,8 @@ const n = e.object({
|
|
|
69
75
|
}), o = e.object({
|
|
70
76
|
name: e.string().optional(),
|
|
71
77
|
iconUrl: e.string().url().optional(),
|
|
72
|
-
address: e.string()
|
|
73
|
-
}),
|
|
78
|
+
address: e.string().optional()
|
|
79
|
+
}), i = n.extend({
|
|
74
80
|
category: e.literal("strkDelegatedStaking"),
|
|
75
81
|
stakerInfo: o,
|
|
76
82
|
investableAssets: e.object({
|
|
@@ -110,17 +116,17 @@ const n = e.object({
|
|
|
110
116
|
claimEnabled: e.boolean().optional()
|
|
111
117
|
}), c = e.discriminatedUnion("category", [
|
|
112
118
|
r,
|
|
113
|
-
|
|
114
|
-
|
|
119
|
+
l,
|
|
120
|
+
i
|
|
115
121
|
]), p = e.object({
|
|
116
122
|
investments: e.array(c)
|
|
117
123
|
}), u = e.object({
|
|
118
124
|
calls: e.array(a)
|
|
119
125
|
}), k = e.object({
|
|
120
126
|
investmentId: e.string(),
|
|
121
|
-
stakerInfo: o,
|
|
122
127
|
accountAddress: t,
|
|
123
128
|
tokenAddress: t,
|
|
129
|
+
stakerInfo: o,
|
|
124
130
|
amount: e.string()
|
|
125
131
|
}), d = e.enum([
|
|
126
132
|
"deposit",
|
|
@@ -138,11 +144,11 @@ export {
|
|
|
138
144
|
F as investmentMetaSchema,
|
|
139
145
|
c as investmentSchema,
|
|
140
146
|
p as investmentsResponseSchema,
|
|
141
|
-
|
|
147
|
+
l as lendingInvestmentSchema,
|
|
142
148
|
o as stakerInfoSchema,
|
|
143
149
|
d as stakingActionSchema,
|
|
144
150
|
r as stakingInvestmentSchema,
|
|
145
|
-
|
|
151
|
+
i as strkDelegatedStakingInvestmentSchema,
|
|
146
152
|
u as strkStakingCalldataResponseSchema,
|
|
147
153
|
k as strkStakingCalldataSchema
|
|
148
154
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argent/x-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.52.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/argentlabs/x-shared.git"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"typescript": "5.7.2",
|
|
66
66
|
"vite": "6.0.2",
|
|
67
67
|
"vite-plugin-dts": "4.3.0",
|
|
68
|
-
"vitest": "2.1.
|
|
68
|
+
"vitest": "2.1.8"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@argent/x-multicall": "^7.1.0",
|