@argent/x-shared 1.42.1 → 1.43.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/README.md +1 -1
- package/dist/.eslintrc.d.cts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +297 -295
- package/dist/src/backend/index.d.ts +1 -1
- package/dist/src/bigdecimal/index.d.ts +1 -1
- package/dist/src/cache/index.d.ts +1 -1
- package/dist/src/chains/starknet/services/address/index.d.ts +1 -1
- package/dist/src/errors/account.d.ts +1 -1
- package/dist/src/errors/address.d.ts +1 -1
- package/dist/src/errors/call.d.ts +1 -1
- package/dist/src/errors/network.d.ts +1 -1
- package/dist/src/errors/review.d.ts +1 -1
- package/dist/src/errors/swap.d.ts +1 -1
- package/dist/src/features/simulation/activity/schema.cjs +1 -1
- package/dist/src/features/simulation/activity/schema.d.ts +346 -334
- package/dist/src/features/simulation/activity/schema.js +17 -26
- package/dist/src/features/simulation/activity/utils/createNativeActivity.cjs +1 -1
- package/dist/src/features/simulation/activity/utils/createNativeActivity.js +23 -23
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/getErrorMessageAndLabelFromSimulation.js +10 -9
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.d.ts +12 -12
- package/dist/src/features/simulation/transactionReview/schema.js +2 -2
- package/dist/src/features/swap/services/index.d.ts +1 -1
- package/dist/src/http/index.d.ts +2 -2
- package/dist/src/knownDapps/index.d.ts +1 -1
- package/dist/src/nameResolution/index.d.ts +1 -1
- package/dist/src/nfts/index.d.ts +1 -1
- package/dist/src/onchainRecovery/index.d.ts +1 -1
- package/dist/src/staking/schema.cjs +1 -1
- package/dist/src/staking/schema.d.ts +88 -505
- package/dist/src/staking/schema.js +27 -19
- package/dist/src/tokens/index.d.ts +1 -1
- package/dist/src/tokens/service/implementation.d.ts +16 -10
- package/dist/src/tokens/service/index.d.ts +1 -1
- package/dist/src/tokens/service/tokenError.d.ts +1 -1
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.d.ts +640 -400
- package/dist/src/tokens/service/types/backend.model.js +116 -114
- package/dist/src/transactions/estimate/error.d.ts +1 -1
- package/dist/src/transactions/estimate/utils.cjs +1 -1
- package/dist/src/transactions/estimate/utils.js +30 -27
- package/dist/src/transactions/index.d.ts +5 -5
- package/dist/src/transactions/service/implementation.cjs +1 -1
- package/dist/src/transactions/service/implementation.js +66 -65
- package/dist/src/transactions/service/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -405,6 +405,20 @@ 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<{
|
|
409
|
+
name: z.ZodOptional<z.ZodString>;
|
|
410
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
411
|
+
address: z.ZodString;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
address: string;
|
|
414
|
+
name?: string | undefined;
|
|
415
|
+
iconUrl?: string | undefined;
|
|
416
|
+
}, {
|
|
417
|
+
address: string;
|
|
418
|
+
name?: string | undefined;
|
|
419
|
+
iconUrl?: string | undefined;
|
|
420
|
+
}>;
|
|
421
|
+
export type StakerInfo = z.infer<typeof stakerInfoSchema>;
|
|
408
422
|
export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
409
423
|
id: z.ZodString;
|
|
410
424
|
dappId: z.ZodString;
|
|
@@ -463,17 +477,17 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
|
|
|
463
477
|
}, {
|
|
464
478
|
category: z.ZodLiteral<"strkDelegatedStaking">;
|
|
465
479
|
stakerInfo: z.ZodObject<{
|
|
466
|
-
name: z.ZodString
|
|
467
|
-
iconUrl: z.ZodString
|
|
480
|
+
name: z.ZodOptional<z.ZodString>;
|
|
481
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
468
482
|
address: z.ZodString;
|
|
469
483
|
}, "strip", z.ZodTypeAny, {
|
|
470
|
-
name: string;
|
|
471
484
|
address: string;
|
|
472
|
-
|
|
485
|
+
name?: string | undefined;
|
|
486
|
+
iconUrl?: string | undefined;
|
|
473
487
|
}, {
|
|
474
|
-
name: string;
|
|
475
488
|
address: string;
|
|
476
|
-
|
|
489
|
+
name?: string | undefined;
|
|
490
|
+
iconUrl?: string | undefined;
|
|
477
491
|
}>;
|
|
478
492
|
investableAssets: z.ZodObject<{
|
|
479
493
|
tokenAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
@@ -656,9 +670,9 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
|
|
|
656
670
|
} | undefined;
|
|
657
671
|
};
|
|
658
672
|
stakerInfo: {
|
|
659
|
-
name: string;
|
|
660
673
|
address: string;
|
|
661
|
-
|
|
674
|
+
name?: string | undefined;
|
|
675
|
+
iconUrl?: string | undefined;
|
|
662
676
|
};
|
|
663
677
|
learnMoreUrl?: string | undefined;
|
|
664
678
|
claimEnabled?: boolean | undefined;
|
|
@@ -722,9 +736,9 @@ export declare const strkDelegatedStakingInvestmentSchema: z.ZodObject<z.objectU
|
|
|
722
736
|
} | undefined;
|
|
723
737
|
};
|
|
724
738
|
stakerInfo: {
|
|
725
|
-
name: string;
|
|
726
739
|
address: string;
|
|
727
|
-
|
|
740
|
+
name?: string | undefined;
|
|
741
|
+
iconUrl?: string | undefined;
|
|
728
742
|
};
|
|
729
743
|
learnMoreUrl?: string | undefined;
|
|
730
744
|
claimEnabled?: boolean | undefined;
|
|
@@ -1191,17 +1205,17 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
1191
1205
|
}, {
|
|
1192
1206
|
category: z.ZodLiteral<"strkDelegatedStaking">;
|
|
1193
1207
|
stakerInfo: z.ZodObject<{
|
|
1194
|
-
name: z.ZodString
|
|
1195
|
-
iconUrl: z.ZodString
|
|
1208
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1209
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1196
1210
|
address: z.ZodString;
|
|
1197
1211
|
}, "strip", z.ZodTypeAny, {
|
|
1198
|
-
name: string;
|
|
1199
1212
|
address: string;
|
|
1200
|
-
|
|
1213
|
+
name?: string | undefined;
|
|
1214
|
+
iconUrl?: string | undefined;
|
|
1201
1215
|
}, {
|
|
1202
|
-
name: string;
|
|
1203
1216
|
address: string;
|
|
1204
|
-
|
|
1217
|
+
name?: string | undefined;
|
|
1218
|
+
iconUrl?: string | undefined;
|
|
1205
1219
|
}>;
|
|
1206
1220
|
investableAssets: z.ZodObject<{
|
|
1207
1221
|
tokenAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
@@ -1384,9 +1398,9 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
1384
1398
|
} | undefined;
|
|
1385
1399
|
};
|
|
1386
1400
|
stakerInfo: {
|
|
1387
|
-
name: string;
|
|
1388
1401
|
address: string;
|
|
1389
|
-
|
|
1402
|
+
name?: string | undefined;
|
|
1403
|
+
iconUrl?: string | undefined;
|
|
1390
1404
|
};
|
|
1391
1405
|
learnMoreUrl?: string | undefined;
|
|
1392
1406
|
claimEnabled?: boolean | undefined;
|
|
@@ -1450,9 +1464,9 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<"category", [z.Zo
|
|
|
1450
1464
|
} | undefined;
|
|
1451
1465
|
};
|
|
1452
1466
|
stakerInfo: {
|
|
1453
|
-
name: string;
|
|
1454
1467
|
address: string;
|
|
1455
|
-
|
|
1468
|
+
name?: string | undefined;
|
|
1469
|
+
iconUrl?: string | undefined;
|
|
1456
1470
|
};
|
|
1457
1471
|
learnMoreUrl?: string | undefined;
|
|
1458
1472
|
claimEnabled?: boolean | undefined;
|
|
@@ -1924,17 +1938,17 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
1924
1938
|
}, {
|
|
1925
1939
|
category: z.ZodLiteral<"strkDelegatedStaking">;
|
|
1926
1940
|
stakerInfo: z.ZodObject<{
|
|
1927
|
-
name: z.ZodString
|
|
1928
|
-
iconUrl: z.ZodString
|
|
1941
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1942
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1929
1943
|
address: z.ZodString;
|
|
1930
1944
|
}, "strip", z.ZodTypeAny, {
|
|
1931
|
-
name: string;
|
|
1932
1945
|
address: string;
|
|
1933
|
-
|
|
1946
|
+
name?: string | undefined;
|
|
1947
|
+
iconUrl?: string | undefined;
|
|
1934
1948
|
}, {
|
|
1935
|
-
name: string;
|
|
1936
1949
|
address: string;
|
|
1937
|
-
|
|
1950
|
+
name?: string | undefined;
|
|
1951
|
+
iconUrl?: string | undefined;
|
|
1938
1952
|
}>;
|
|
1939
1953
|
investableAssets: z.ZodObject<{
|
|
1940
1954
|
tokenAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
@@ -2117,9 +2131,9 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2117
2131
|
} | undefined;
|
|
2118
2132
|
};
|
|
2119
2133
|
stakerInfo: {
|
|
2120
|
-
name: string;
|
|
2121
2134
|
address: string;
|
|
2122
|
-
|
|
2135
|
+
name?: string | undefined;
|
|
2136
|
+
iconUrl?: string | undefined;
|
|
2123
2137
|
};
|
|
2124
2138
|
learnMoreUrl?: string | undefined;
|
|
2125
2139
|
claimEnabled?: boolean | undefined;
|
|
@@ -2183,9 +2197,9 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2183
2197
|
} | undefined;
|
|
2184
2198
|
};
|
|
2185
2199
|
stakerInfo: {
|
|
2186
|
-
name: string;
|
|
2187
2200
|
address: string;
|
|
2188
|
-
|
|
2201
|
+
name?: string | undefined;
|
|
2202
|
+
iconUrl?: string | undefined;
|
|
2189
2203
|
};
|
|
2190
2204
|
learnMoreUrl?: string | undefined;
|
|
2191
2205
|
claimEnabled?: boolean | undefined;
|
|
@@ -2341,9 +2355,9 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2341
2355
|
} | undefined;
|
|
2342
2356
|
};
|
|
2343
2357
|
stakerInfo: {
|
|
2344
|
-
name: string;
|
|
2345
2358
|
address: string;
|
|
2346
|
-
|
|
2359
|
+
name?: string | undefined;
|
|
2360
|
+
iconUrl?: string | undefined;
|
|
2347
2361
|
};
|
|
2348
2362
|
learnMoreUrl?: string | undefined;
|
|
2349
2363
|
claimEnabled?: boolean | undefined;
|
|
@@ -2499,529 +2513,98 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
2499
2513
|
} | undefined;
|
|
2500
2514
|
};
|
|
2501
2515
|
stakerInfo: {
|
|
2502
|
-
name: string;
|
|
2503
2516
|
address: string;
|
|
2504
|
-
|
|
2517
|
+
name?: string | undefined;
|
|
2518
|
+
iconUrl?: string | undefined;
|
|
2505
2519
|
};
|
|
2506
2520
|
learnMoreUrl?: string | undefined;
|
|
2507
2521
|
claimEnabled?: boolean | undefined;
|
|
2508
2522
|
})[];
|
|
2509
2523
|
}>;
|
|
2510
2524
|
export type InvestmentsResponse = z.infer<typeof investmentsResponseSchema>;
|
|
2511
|
-
export declare const
|
|
2525
|
+
export declare const strkStakingCalldataResponseSchema: z.ZodObject<{
|
|
2512
2526
|
calls: z.ZodArray<z.ZodType<import('starknet').Call, z.ZodTypeDef, import('starknet').Call>, "many">;
|
|
2513
2527
|
}, "strip", z.ZodTypeAny, {
|
|
2514
2528
|
calls: import('starknet').Call[];
|
|
2515
2529
|
}, {
|
|
2516
2530
|
calls: import('starknet').Call[];
|
|
2517
2531
|
}>;
|
|
2518
|
-
export type
|
|
2519
|
-
export declare const
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
iconUrl
|
|
2529
|
-
learnMoreUrl: z.ZodOptional<z.ZodString>;
|
|
2530
|
-
riskFactor: z.ZodEnum<["low"]>;
|
|
2531
|
-
metrics: z.ZodObject<{
|
|
2532
|
-
baseApy: z.ZodString;
|
|
2533
|
-
totalApy: z.ZodString;
|
|
2534
|
-
tvl: z.ZodOptional<z.ZodString>;
|
|
2535
|
-
}, "strip", z.ZodTypeAny, {
|
|
2536
|
-
baseApy: string;
|
|
2537
|
-
totalApy: string;
|
|
2538
|
-
tvl?: string | undefined;
|
|
2539
|
-
}, {
|
|
2540
|
-
baseApy: string;
|
|
2541
|
-
totalApy: string;
|
|
2542
|
-
tvl?: string | undefined;
|
|
2543
|
-
}>;
|
|
2544
|
-
incentives: z.ZodArray<z.ZodObject<{
|
|
2545
|
-
name: z.ZodString;
|
|
2546
|
-
description: z.ZodString;
|
|
2547
|
-
iconUrl: z.ZodString;
|
|
2548
|
-
learnMoreUrl: z.ZodString;
|
|
2549
|
-
metric: z.ZodObject<{
|
|
2550
|
-
apy: z.ZodString;
|
|
2551
|
-
}, "strip", z.ZodTypeAny, {
|
|
2552
|
-
apy: string;
|
|
2553
|
-
}, {
|
|
2554
|
-
apy: string;
|
|
2555
|
-
}>;
|
|
2556
|
-
}, "strip", z.ZodTypeAny, {
|
|
2557
|
-
name: string;
|
|
2558
|
-
description: string;
|
|
2559
|
-
iconUrl: string;
|
|
2560
|
-
learnMoreUrl: string;
|
|
2561
|
-
metric: {
|
|
2562
|
-
apy: string;
|
|
2563
|
-
};
|
|
2564
|
-
}, {
|
|
2565
|
-
name: string;
|
|
2566
|
-
description: string;
|
|
2567
|
-
iconUrl: string;
|
|
2568
|
-
learnMoreUrl: string;
|
|
2569
|
-
metric: {
|
|
2570
|
-
apy: string;
|
|
2571
|
-
};
|
|
2572
|
-
}>, "many">;
|
|
2573
|
-
buyEnabled: z.ZodBoolean;
|
|
2574
|
-
sellEnabled: z.ZodBoolean;
|
|
2575
|
-
}, {
|
|
2576
|
-
category: z.ZodLiteral<"strkDelegatedStaking">;
|
|
2577
|
-
stakerInfo: z.ZodObject<{
|
|
2578
|
-
name: z.ZodString;
|
|
2579
|
-
iconUrl: z.ZodString;
|
|
2580
|
-
address: z.ZodString;
|
|
2581
|
-
}, "strip", z.ZodTypeAny, {
|
|
2582
|
-
name: string;
|
|
2583
|
-
address: string;
|
|
2584
|
-
iconUrl: string;
|
|
2585
|
-
}, {
|
|
2586
|
-
name: string;
|
|
2587
|
-
address: string;
|
|
2588
|
-
iconUrl: string;
|
|
2589
|
-
}>;
|
|
2590
|
-
investableAssets: z.ZodObject<{
|
|
2591
|
-
tokenAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
2592
|
-
tokensRequirement: z.ZodEnum<["any"]>;
|
|
2593
|
-
useDecomposedBalances: z.ZodOptional<z.ZodBoolean>;
|
|
2594
|
-
}, "strip", z.ZodTypeAny, {
|
|
2595
|
-
tokenAddresses: `0x${string}`[];
|
|
2596
|
-
tokensRequirement: "any";
|
|
2597
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2598
|
-
}, {
|
|
2599
|
-
tokenAddresses: string[];
|
|
2600
|
-
tokensRequirement: "any";
|
|
2601
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2602
|
-
}>;
|
|
2603
|
-
withdrawableAssets: z.ZodObject<{
|
|
2604
|
-
tokenAddresses: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
2605
|
-
tokensRequirement: z.ZodEnum<["any"]>;
|
|
2606
|
-
useDecomposedBalances: z.ZodOptional<z.ZodBoolean>;
|
|
2607
|
-
amountsRequirement: z.ZodOptional<z.ZodEnum<["fullBalance"]>>;
|
|
2608
|
-
timelockDuration: z.ZodOptional<z.ZodNumber>;
|
|
2609
|
-
}, "strip", z.ZodTypeAny, {
|
|
2610
|
-
tokenAddresses: `0x${string}`[];
|
|
2611
|
-
tokensRequirement: "any";
|
|
2612
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2613
|
-
amountsRequirement?: "fullBalance" | undefined;
|
|
2614
|
-
timelockDuration?: number | undefined;
|
|
2615
|
-
}, {
|
|
2616
|
-
tokenAddresses: string[];
|
|
2617
|
-
tokensRequirement: "any";
|
|
2618
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2619
|
-
amountsRequirement?: "fullBalance" | undefined;
|
|
2620
|
-
timelockDuration?: number | undefined;
|
|
2621
|
-
}>;
|
|
2622
|
-
fees: z.ZodObject<{
|
|
2623
|
-
depositFees: z.ZodObject<{
|
|
2624
|
-
argentFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2625
|
-
protocolFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2626
|
-
providerFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2627
|
-
totalFee: z.ZodString;
|
|
2628
|
-
}, "strip", z.ZodTypeAny, {
|
|
2629
|
-
totalFee: string;
|
|
2630
|
-
protocolFee?: string | null | undefined;
|
|
2631
|
-
argentFee?: string | null | undefined;
|
|
2632
|
-
providerFee?: string | null | undefined;
|
|
2633
|
-
}, {
|
|
2634
|
-
totalFee: string;
|
|
2635
|
-
protocolFee?: string | null | undefined;
|
|
2636
|
-
argentFee?: string | null | undefined;
|
|
2637
|
-
providerFee?: string | null | undefined;
|
|
2638
|
-
}>;
|
|
2639
|
-
withdrawalFees: z.ZodObject<{
|
|
2640
|
-
argentFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2641
|
-
protocolFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2642
|
-
providerFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2643
|
-
totalFee: z.ZodString;
|
|
2644
|
-
}, "strip", z.ZodTypeAny, {
|
|
2645
|
-
totalFee: string;
|
|
2646
|
-
protocolFee?: string | null | undefined;
|
|
2647
|
-
argentFee?: string | null | undefined;
|
|
2648
|
-
providerFee?: string | null | undefined;
|
|
2649
|
-
}, {
|
|
2650
|
-
totalFee: string;
|
|
2651
|
-
protocolFee?: string | null | undefined;
|
|
2652
|
-
argentFee?: string | null | undefined;
|
|
2653
|
-
providerFee?: string | null | undefined;
|
|
2654
|
-
}>;
|
|
2655
|
-
performanceFees: z.ZodOptional<z.ZodObject<{
|
|
2656
|
-
argentFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2657
|
-
protocolFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2658
|
-
providerFee: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2659
|
-
totalFee: z.ZodString;
|
|
2660
|
-
}, "strip", z.ZodTypeAny, {
|
|
2661
|
-
totalFee: string;
|
|
2662
|
-
protocolFee?: string | null | undefined;
|
|
2663
|
-
argentFee?: string | null | undefined;
|
|
2664
|
-
providerFee?: string | null | undefined;
|
|
2665
|
-
}, {
|
|
2666
|
-
totalFee: string;
|
|
2667
|
-
protocolFee?: string | null | undefined;
|
|
2668
|
-
argentFee?: string | null | undefined;
|
|
2669
|
-
providerFee?: string | null | undefined;
|
|
2670
|
-
}>>;
|
|
2671
|
-
}, "strip", z.ZodTypeAny, {
|
|
2672
|
-
depositFees: {
|
|
2673
|
-
totalFee: string;
|
|
2674
|
-
protocolFee?: string | null | undefined;
|
|
2675
|
-
argentFee?: string | null | undefined;
|
|
2676
|
-
providerFee?: string | null | undefined;
|
|
2677
|
-
};
|
|
2678
|
-
withdrawalFees: {
|
|
2679
|
-
totalFee: string;
|
|
2680
|
-
protocolFee?: string | null | undefined;
|
|
2681
|
-
argentFee?: string | null | undefined;
|
|
2682
|
-
providerFee?: string | null | undefined;
|
|
2683
|
-
};
|
|
2684
|
-
performanceFees?: {
|
|
2685
|
-
totalFee: string;
|
|
2686
|
-
protocolFee?: string | null | undefined;
|
|
2687
|
-
argentFee?: string | null | undefined;
|
|
2688
|
-
providerFee?: string | null | undefined;
|
|
2689
|
-
} | undefined;
|
|
2690
|
-
}, {
|
|
2691
|
-
depositFees: {
|
|
2692
|
-
totalFee: string;
|
|
2693
|
-
protocolFee?: string | null | undefined;
|
|
2694
|
-
argentFee?: string | null | undefined;
|
|
2695
|
-
providerFee?: string | null | undefined;
|
|
2696
|
-
};
|
|
2697
|
-
withdrawalFees: {
|
|
2698
|
-
totalFee: string;
|
|
2699
|
-
protocolFee?: string | null | undefined;
|
|
2700
|
-
argentFee?: string | null | undefined;
|
|
2701
|
-
providerFee?: string | null | undefined;
|
|
2702
|
-
};
|
|
2703
|
-
performanceFees?: {
|
|
2704
|
-
totalFee: string;
|
|
2705
|
-
protocolFee?: string | null | undefined;
|
|
2706
|
-
argentFee?: string | null | undefined;
|
|
2707
|
-
providerFee?: string | null | undefined;
|
|
2708
|
-
} | undefined;
|
|
2709
|
-
}>;
|
|
2710
|
-
claimEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2711
|
-
}>, "strip", z.ZodTypeAny, {
|
|
2712
|
-
name: string;
|
|
2713
|
-
chain: string;
|
|
2714
|
-
dappId: string;
|
|
2715
|
-
description: string;
|
|
2716
|
-
metrics: {
|
|
2717
|
-
baseApy: string;
|
|
2718
|
-
totalApy: string;
|
|
2719
|
-
tvl?: string | undefined;
|
|
2720
|
-
};
|
|
2721
|
-
id: string;
|
|
2722
|
-
productId: string;
|
|
2723
|
-
productName: string;
|
|
2724
|
-
iconUrl: string;
|
|
2725
|
-
riskFactor: "low";
|
|
2726
|
-
incentives: {
|
|
2727
|
-
name: string;
|
|
2728
|
-
description: string;
|
|
2729
|
-
iconUrl: string;
|
|
2730
|
-
learnMoreUrl: string;
|
|
2731
|
-
metric: {
|
|
2732
|
-
apy: string;
|
|
2733
|
-
};
|
|
2734
|
-
}[];
|
|
2735
|
-
buyEnabled: boolean;
|
|
2736
|
-
sellEnabled: boolean;
|
|
2737
|
-
category: "strkDelegatedStaking";
|
|
2738
|
-
investableAssets: {
|
|
2739
|
-
tokenAddresses: `0x${string}`[];
|
|
2740
|
-
tokensRequirement: "any";
|
|
2741
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2742
|
-
};
|
|
2743
|
-
withdrawableAssets: {
|
|
2744
|
-
tokenAddresses: `0x${string}`[];
|
|
2745
|
-
tokensRequirement: "any";
|
|
2746
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2747
|
-
amountsRequirement?: "fullBalance" | undefined;
|
|
2748
|
-
timelockDuration?: number | undefined;
|
|
2749
|
-
};
|
|
2750
|
-
fees: {
|
|
2751
|
-
depositFees: {
|
|
2752
|
-
totalFee: string;
|
|
2753
|
-
protocolFee?: string | null | undefined;
|
|
2754
|
-
argentFee?: string | null | undefined;
|
|
2755
|
-
providerFee?: string | null | undefined;
|
|
2756
|
-
};
|
|
2757
|
-
withdrawalFees: {
|
|
2758
|
-
totalFee: string;
|
|
2759
|
-
protocolFee?: string | null | undefined;
|
|
2760
|
-
argentFee?: string | null | undefined;
|
|
2761
|
-
providerFee?: string | null | undefined;
|
|
2762
|
-
};
|
|
2763
|
-
performanceFees?: {
|
|
2764
|
-
totalFee: string;
|
|
2765
|
-
protocolFee?: string | null | undefined;
|
|
2766
|
-
argentFee?: string | null | undefined;
|
|
2767
|
-
providerFee?: string | null | undefined;
|
|
2768
|
-
} | undefined;
|
|
2769
|
-
};
|
|
2770
|
-
stakerInfo: {
|
|
2771
|
-
name: string;
|
|
2772
|
-
address: string;
|
|
2773
|
-
iconUrl: string;
|
|
2774
|
-
};
|
|
2775
|
-
learnMoreUrl?: string | undefined;
|
|
2776
|
-
claimEnabled?: boolean | undefined;
|
|
2532
|
+
export type StrkStakingCalldataResponse = z.infer<typeof strkStakingCalldataResponseSchema>;
|
|
2533
|
+
export declare const strkStakingCalldataSchema: z.ZodObject<{
|
|
2534
|
+
investmentId: z.ZodString;
|
|
2535
|
+
stakerInfo: z.ZodObject<{
|
|
2536
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2537
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2538
|
+
address: z.ZodString;
|
|
2539
|
+
}, "strip", z.ZodTypeAny, {
|
|
2540
|
+
address: string;
|
|
2541
|
+
name?: string | undefined;
|
|
2542
|
+
iconUrl?: string | undefined;
|
|
2777
2543
|
}, {
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
description: string;
|
|
2782
|
-
metrics: {
|
|
2783
|
-
baseApy: string;
|
|
2784
|
-
totalApy: string;
|
|
2785
|
-
tvl?: string | undefined;
|
|
2786
|
-
};
|
|
2787
|
-
id: string;
|
|
2788
|
-
productId: string;
|
|
2789
|
-
productName: string;
|
|
2790
|
-
iconUrl: string;
|
|
2791
|
-
riskFactor: "low";
|
|
2792
|
-
incentives: {
|
|
2793
|
-
name: string;
|
|
2794
|
-
description: string;
|
|
2795
|
-
iconUrl: string;
|
|
2796
|
-
learnMoreUrl: string;
|
|
2797
|
-
metric: {
|
|
2798
|
-
apy: string;
|
|
2799
|
-
};
|
|
2800
|
-
}[];
|
|
2801
|
-
buyEnabled: boolean;
|
|
2802
|
-
sellEnabled: boolean;
|
|
2803
|
-
category: "strkDelegatedStaking";
|
|
2804
|
-
investableAssets: {
|
|
2805
|
-
tokenAddresses: string[];
|
|
2806
|
-
tokensRequirement: "any";
|
|
2807
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2808
|
-
};
|
|
2809
|
-
withdrawableAssets: {
|
|
2810
|
-
tokenAddresses: string[];
|
|
2811
|
-
tokensRequirement: "any";
|
|
2812
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2813
|
-
amountsRequirement?: "fullBalance" | undefined;
|
|
2814
|
-
timelockDuration?: number | undefined;
|
|
2815
|
-
};
|
|
2816
|
-
fees: {
|
|
2817
|
-
depositFees: {
|
|
2818
|
-
totalFee: string;
|
|
2819
|
-
protocolFee?: string | null | undefined;
|
|
2820
|
-
argentFee?: string | null | undefined;
|
|
2821
|
-
providerFee?: string | null | undefined;
|
|
2822
|
-
};
|
|
2823
|
-
withdrawalFees: {
|
|
2824
|
-
totalFee: string;
|
|
2825
|
-
protocolFee?: string | null | undefined;
|
|
2826
|
-
argentFee?: string | null | undefined;
|
|
2827
|
-
providerFee?: string | null | undefined;
|
|
2828
|
-
};
|
|
2829
|
-
performanceFees?: {
|
|
2830
|
-
totalFee: string;
|
|
2831
|
-
protocolFee?: string | null | undefined;
|
|
2832
|
-
argentFee?: string | null | undefined;
|
|
2833
|
-
providerFee?: string | null | undefined;
|
|
2834
|
-
} | undefined;
|
|
2835
|
-
};
|
|
2836
|
-
stakerInfo: {
|
|
2837
|
-
name: string;
|
|
2838
|
-
address: string;
|
|
2839
|
-
iconUrl: string;
|
|
2840
|
-
};
|
|
2841
|
-
learnMoreUrl?: string | undefined;
|
|
2842
|
-
claimEnabled?: boolean | undefined;
|
|
2544
|
+
address: string;
|
|
2545
|
+
name?: string | undefined;
|
|
2546
|
+
iconUrl?: string | undefined;
|
|
2843
2547
|
}>;
|
|
2844
2548
|
accountAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2845
2549
|
tokenAddress: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2846
2550
|
amount: z.ZodString;
|
|
2847
|
-
useFullBalance: z.ZodBoolean;
|
|
2848
2551
|
}, "strip", z.ZodTypeAny, {
|
|
2849
2552
|
amount: string;
|
|
2850
2553
|
accountAddress: `0x${string}`;
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
description: string;
|
|
2856
|
-
metrics: {
|
|
2857
|
-
baseApy: string;
|
|
2858
|
-
totalApy: string;
|
|
2859
|
-
tvl?: string | undefined;
|
|
2860
|
-
};
|
|
2861
|
-
id: string;
|
|
2862
|
-
productId: string;
|
|
2863
|
-
productName: string;
|
|
2864
|
-
iconUrl: string;
|
|
2865
|
-
riskFactor: "low";
|
|
2866
|
-
incentives: {
|
|
2867
|
-
name: string;
|
|
2868
|
-
description: string;
|
|
2869
|
-
iconUrl: string;
|
|
2870
|
-
learnMoreUrl: string;
|
|
2871
|
-
metric: {
|
|
2872
|
-
apy: string;
|
|
2873
|
-
};
|
|
2874
|
-
}[];
|
|
2875
|
-
buyEnabled: boolean;
|
|
2876
|
-
sellEnabled: boolean;
|
|
2877
|
-
category: "strkDelegatedStaking";
|
|
2878
|
-
investableAssets: {
|
|
2879
|
-
tokenAddresses: `0x${string}`[];
|
|
2880
|
-
tokensRequirement: "any";
|
|
2881
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2882
|
-
};
|
|
2883
|
-
withdrawableAssets: {
|
|
2884
|
-
tokenAddresses: `0x${string}`[];
|
|
2885
|
-
tokensRequirement: "any";
|
|
2886
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2887
|
-
amountsRequirement?: "fullBalance" | undefined;
|
|
2888
|
-
timelockDuration?: number | undefined;
|
|
2889
|
-
};
|
|
2890
|
-
fees: {
|
|
2891
|
-
depositFees: {
|
|
2892
|
-
totalFee: string;
|
|
2893
|
-
protocolFee?: string | null | undefined;
|
|
2894
|
-
argentFee?: string | null | undefined;
|
|
2895
|
-
providerFee?: string | null | undefined;
|
|
2896
|
-
};
|
|
2897
|
-
withdrawalFees: {
|
|
2898
|
-
totalFee: string;
|
|
2899
|
-
protocolFee?: string | null | undefined;
|
|
2900
|
-
argentFee?: string | null | undefined;
|
|
2901
|
-
providerFee?: string | null | undefined;
|
|
2902
|
-
};
|
|
2903
|
-
performanceFees?: {
|
|
2904
|
-
totalFee: string;
|
|
2905
|
-
protocolFee?: string | null | undefined;
|
|
2906
|
-
argentFee?: string | null | undefined;
|
|
2907
|
-
providerFee?: string | null | undefined;
|
|
2908
|
-
} | undefined;
|
|
2909
|
-
};
|
|
2910
|
-
stakerInfo: {
|
|
2911
|
-
name: string;
|
|
2912
|
-
address: string;
|
|
2913
|
-
iconUrl: string;
|
|
2914
|
-
};
|
|
2915
|
-
learnMoreUrl?: string | undefined;
|
|
2916
|
-
claimEnabled?: boolean | undefined;
|
|
2554
|
+
stakerInfo: {
|
|
2555
|
+
address: string;
|
|
2556
|
+
name?: string | undefined;
|
|
2557
|
+
iconUrl?: string | undefined;
|
|
2917
2558
|
};
|
|
2559
|
+
investmentId: string;
|
|
2918
2560
|
tokenAddress: `0x${string}`;
|
|
2919
|
-
useFullBalance: boolean;
|
|
2920
2561
|
}, {
|
|
2921
2562
|
amount: string;
|
|
2922
2563
|
accountAddress: string;
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
description: string;
|
|
2928
|
-
metrics: {
|
|
2929
|
-
baseApy: string;
|
|
2930
|
-
totalApy: string;
|
|
2931
|
-
tvl?: string | undefined;
|
|
2932
|
-
};
|
|
2933
|
-
id: string;
|
|
2934
|
-
productId: string;
|
|
2935
|
-
productName: string;
|
|
2936
|
-
iconUrl: string;
|
|
2937
|
-
riskFactor: "low";
|
|
2938
|
-
incentives: {
|
|
2939
|
-
name: string;
|
|
2940
|
-
description: string;
|
|
2941
|
-
iconUrl: string;
|
|
2942
|
-
learnMoreUrl: string;
|
|
2943
|
-
metric: {
|
|
2944
|
-
apy: string;
|
|
2945
|
-
};
|
|
2946
|
-
}[];
|
|
2947
|
-
buyEnabled: boolean;
|
|
2948
|
-
sellEnabled: boolean;
|
|
2949
|
-
category: "strkDelegatedStaking";
|
|
2950
|
-
investableAssets: {
|
|
2951
|
-
tokenAddresses: string[];
|
|
2952
|
-
tokensRequirement: "any";
|
|
2953
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2954
|
-
};
|
|
2955
|
-
withdrawableAssets: {
|
|
2956
|
-
tokenAddresses: string[];
|
|
2957
|
-
tokensRequirement: "any";
|
|
2958
|
-
useDecomposedBalances?: boolean | undefined;
|
|
2959
|
-
amountsRequirement?: "fullBalance" | undefined;
|
|
2960
|
-
timelockDuration?: number | undefined;
|
|
2961
|
-
};
|
|
2962
|
-
fees: {
|
|
2963
|
-
depositFees: {
|
|
2964
|
-
totalFee: string;
|
|
2965
|
-
protocolFee?: string | null | undefined;
|
|
2966
|
-
argentFee?: string | null | undefined;
|
|
2967
|
-
providerFee?: string | null | undefined;
|
|
2968
|
-
};
|
|
2969
|
-
withdrawalFees: {
|
|
2970
|
-
totalFee: string;
|
|
2971
|
-
protocolFee?: string | null | undefined;
|
|
2972
|
-
argentFee?: string | null | undefined;
|
|
2973
|
-
providerFee?: string | null | undefined;
|
|
2974
|
-
};
|
|
2975
|
-
performanceFees?: {
|
|
2976
|
-
totalFee: string;
|
|
2977
|
-
protocolFee?: string | null | undefined;
|
|
2978
|
-
argentFee?: string | null | undefined;
|
|
2979
|
-
providerFee?: string | null | undefined;
|
|
2980
|
-
} | undefined;
|
|
2981
|
-
};
|
|
2982
|
-
stakerInfo: {
|
|
2983
|
-
name: string;
|
|
2984
|
-
address: string;
|
|
2985
|
-
iconUrl: string;
|
|
2986
|
-
};
|
|
2987
|
-
learnMoreUrl?: string | undefined;
|
|
2988
|
-
claimEnabled?: boolean | undefined;
|
|
2564
|
+
stakerInfo: {
|
|
2565
|
+
address: string;
|
|
2566
|
+
name?: string | undefined;
|
|
2567
|
+
iconUrl?: string | undefined;
|
|
2989
2568
|
};
|
|
2569
|
+
investmentId: string;
|
|
2990
2570
|
tokenAddress: string;
|
|
2991
|
-
useFullBalance: boolean;
|
|
2992
2571
|
}>;
|
|
2993
|
-
export type
|
|
2572
|
+
export type StrkStakingCalldata = z.infer<typeof strkStakingCalldataSchema>;
|
|
2573
|
+
export declare const stakingActionSchema: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
|
|
2994
2574
|
export declare const investmentMetaSchema: z.ZodObject<{
|
|
2575
|
+
stakingAction: z.ZodEnum<["stake", "initiateWithdraw", "withdraw", "claim"]>;
|
|
2995
2576
|
stakerInfo: z.ZodObject<{
|
|
2996
|
-
name: z.ZodString
|
|
2997
|
-
iconUrl: z.ZodString
|
|
2577
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2578
|
+
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2998
2579
|
address: z.ZodString;
|
|
2999
2580
|
}, "strip", z.ZodTypeAny, {
|
|
3000
|
-
name: string;
|
|
3001
2581
|
address: string;
|
|
3002
|
-
|
|
2582
|
+
name?: string | undefined;
|
|
2583
|
+
iconUrl?: string | undefined;
|
|
3003
2584
|
}, {
|
|
3004
|
-
name: string;
|
|
3005
2585
|
address: string;
|
|
3006
|
-
|
|
2586
|
+
name?: string | undefined;
|
|
2587
|
+
iconUrl?: string | undefined;
|
|
3007
2588
|
}>;
|
|
3008
2589
|
tokenAddress: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
|
|
3009
2590
|
amount: z.ZodString;
|
|
3010
2591
|
}, "strip", z.ZodTypeAny, {
|
|
3011
2592
|
amount: string;
|
|
3012
2593
|
stakerInfo: {
|
|
3013
|
-
name: string;
|
|
3014
2594
|
address: string;
|
|
3015
|
-
|
|
2595
|
+
name?: string | undefined;
|
|
2596
|
+
iconUrl?: string | undefined;
|
|
3016
2597
|
};
|
|
3017
2598
|
tokenAddress: `0x${string}`;
|
|
2599
|
+
stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
3018
2600
|
}, {
|
|
3019
2601
|
amount: string;
|
|
3020
2602
|
stakerInfo: {
|
|
3021
|
-
name: string;
|
|
3022
2603
|
address: string;
|
|
3023
|
-
|
|
2604
|
+
name?: string | undefined;
|
|
2605
|
+
iconUrl?: string | undefined;
|
|
3024
2606
|
};
|
|
3025
2607
|
tokenAddress: string;
|
|
2608
|
+
stakingAction: "stake" | "initiateWithdraw" | "withdraw" | "claim";
|
|
3026
2609
|
}>;
|
|
3027
2610
|
export type InvestmentMeta = z.infer<typeof investmentMetaSchema>;
|