@argent/x-shared 1.75.0 → 1.75.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.
- package/dist/src/features/simulation/activity/schema.d.ts +21 -21
- package/dist/src/features/simulation/fees/schema.d.ts +2 -2
- package/dist/src/features/simulation/transactionReview/schema.d.ts +24 -24
- package/dist/src/staking/schema.d.ts +2 -2
- package/dist/src/tokens/service/implementation.d.ts +2 -0
- package/dist/src/tokens/service/types/backend.model.cjs +1 -1
- package/dist/src/tokens/service/types/backend.model.d.ts +23 -261
- package/dist/src/tokens/service/types/backend.model.js +25 -23
- package/dist/src/utils/schemas.d.ts +1 -1
- package/package.json +20 -20
- package/dist/defiDecomposition.cjs +0 -1
- package/dist/defiDecomposition.d.ts +0 -2
- package/dist/defiDecomposition.js +0 -65
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.d.ts +0 -6
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.js +0 -62
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.js +0 -31
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.js +0 -55
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.js +0 -30
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.js +0 -30
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.js +0 -30
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.d.ts +0 -3
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.js +0 -17
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.d.ts +0 -1
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.js +0 -11
- package/dist/src/features/defiDecomposition/helpers/index.d.ts +0 -13
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.d.ts +0 -7
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.js +0 -56
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.js +0 -42
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.js +0 -63
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.js +0 -27
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.js +0 -29
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.d.ts +0 -4
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.js +0 -27
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.cjs +0 -1
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.d.ts +0 -9
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.js +0 -9
- package/dist/src/features/defiDecomposition/index.d.ts +0 -2
- package/dist/src/features/defiDecomposition/schema.cjs +0 -1
- package/dist/src/features/defiDecomposition/schema.d.ts +0 -1842
- package/dist/src/features/defiDecomposition/schema.js +0 -153
- package/dist/src/transactions/equalTokens.cjs +0 -1
- package/dist/src/transactions/equalTokens.js +0 -5
|
@@ -195,7 +195,7 @@ export declare const activityDetailsSchema: z.ZodUnion<readonly [z.ZodDiscrimina
|
|
|
195
195
|
zksync2: "zksync2";
|
|
196
196
|
starknet: "starknet";
|
|
197
197
|
}>>;
|
|
198
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
198
|
+
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
199
199
|
type: z.ZodLiteral<"multicall">;
|
|
200
200
|
calls: z.ZodArray<z.ZodObject<{
|
|
201
201
|
details: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -353,7 +353,7 @@ export declare const activityDetailsSchema: z.ZodUnion<readonly [z.ZodDiscrimina
|
|
|
353
353
|
zksync2: "zksync2";
|
|
354
354
|
starknet: "starknet";
|
|
355
355
|
}>>;
|
|
356
|
-
}, z.core.$strip>]>;
|
|
356
|
+
}, z.core.$strip>], "type">;
|
|
357
357
|
}, z.core.$strip>>;
|
|
358
358
|
}, z.core.$strip>]>;
|
|
359
359
|
export declare const activityDappSchema: z.ZodObject<{
|
|
@@ -381,7 +381,7 @@ export declare const activitySummarySchema: z.ZodObject<{
|
|
|
381
381
|
currency: z.ZodString;
|
|
382
382
|
currencyAmount: z.ZodCoercedString<unknown>;
|
|
383
383
|
}, z.core.$strip>>>;
|
|
384
|
-
}, z.core.$strip>]>;
|
|
384
|
+
}, z.core.$strip>], "type">;
|
|
385
385
|
}, z.core.$strip>;
|
|
386
386
|
export declare const feeSchema: z.ZodObject<{
|
|
387
387
|
type: z.ZodString;
|
|
@@ -654,7 +654,7 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
654
654
|
zksync2: "zksync2";
|
|
655
655
|
starknet: "starknet";
|
|
656
656
|
}>>;
|
|
657
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
657
|
+
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
658
658
|
type: z.ZodLiteral<"multicall">;
|
|
659
659
|
calls: z.ZodArray<z.ZodObject<{
|
|
660
660
|
details: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -812,7 +812,7 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
812
812
|
zksync2: "zksync2";
|
|
813
813
|
starknet: "starknet";
|
|
814
814
|
}>>;
|
|
815
|
-
}, z.core.$strip>]>;
|
|
815
|
+
}, z.core.$strip>], "type">;
|
|
816
816
|
}, z.core.$strip>>;
|
|
817
817
|
}, z.core.$strip>]>;
|
|
818
818
|
transferSummary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -834,7 +834,7 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
834
834
|
currency: z.ZodString;
|
|
835
835
|
currencyAmount: z.ZodCoercedString<unknown>;
|
|
836
836
|
}, z.core.$strip>>>;
|
|
837
|
-
}, z.core.$strip>]>;
|
|
837
|
+
}, z.core.$strip>], "type">;
|
|
838
838
|
}, z.core.$strip>>>;
|
|
839
839
|
dapp: z.ZodOptional<z.ZodObject<{
|
|
840
840
|
dappId: z.ZodString;
|
|
@@ -904,7 +904,7 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
904
904
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
905
905
|
type: z.ZodString;
|
|
906
906
|
}, z.core.$strip>;
|
|
907
|
-
}, z.core.$strip>]>>;
|
|
907
|
+
}, z.core.$strip>], "type">>;
|
|
908
908
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
909
909
|
type: z.ZodLiteral<"amount">;
|
|
910
910
|
label: z.ZodString;
|
|
@@ -967,7 +967,7 @@ export declare const activitySchema: z.ZodObject<{
|
|
|
967
967
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
968
968
|
type: z.ZodString;
|
|
969
969
|
}, z.core.$strip>;
|
|
970
|
-
}, z.core.$strip>]>>>;
|
|
970
|
+
}, z.core.$strip>], "type">>>;
|
|
971
971
|
}, z.core.$strip>>>;
|
|
972
972
|
title: z.ZodOptional<z.ZodString>;
|
|
973
973
|
multisigDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -1042,7 +1042,7 @@ export declare const nativeActivitySchema: z.ZodObject<{
|
|
|
1042
1042
|
currency: z.ZodString;
|
|
1043
1043
|
currencyAmount: z.ZodCoercedString<unknown>;
|
|
1044
1044
|
}, z.core.$strip>>>;
|
|
1045
|
-
}, z.core.$strip>]>;
|
|
1045
|
+
}, z.core.$strip>], "type">;
|
|
1046
1046
|
}, z.core.$strip>>>;
|
|
1047
1047
|
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1048
1048
|
name: z.ZodString;
|
|
@@ -1108,7 +1108,7 @@ export declare const nativeActivitySchema: z.ZodObject<{
|
|
|
1108
1108
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1109
1109
|
type: z.ZodString;
|
|
1110
1110
|
}, z.core.$strip>;
|
|
1111
|
-
}, z.core.$strip>]>>;
|
|
1111
|
+
}, z.core.$strip>], "type">>;
|
|
1112
1112
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1113
1113
|
type: z.ZodLiteral<"amount">;
|
|
1114
1114
|
label: z.ZodString;
|
|
@@ -1171,7 +1171,7 @@ export declare const nativeActivitySchema: z.ZodObject<{
|
|
|
1171
1171
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1172
1172
|
type: z.ZodString;
|
|
1173
1173
|
}, z.core.$strip>;
|
|
1174
|
-
}, z.core.$strip>]>>>;
|
|
1174
|
+
}, z.core.$strip>], "type">>>;
|
|
1175
1175
|
}, z.core.$strip>>>;
|
|
1176
1176
|
multisigDetails: z.ZodOptional<z.ZodObject<{
|
|
1177
1177
|
signers: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
@@ -1488,7 +1488,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
1488
1488
|
zksync2: "zksync2";
|
|
1489
1489
|
starknet: "starknet";
|
|
1490
1490
|
}>>;
|
|
1491
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
1491
|
+
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
1492
1492
|
type: z.ZodLiteral<"multicall">;
|
|
1493
1493
|
calls: z.ZodArray<z.ZodObject<{
|
|
1494
1494
|
details: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1646,7 +1646,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
1646
1646
|
zksync2: "zksync2";
|
|
1647
1647
|
starknet: "starknet";
|
|
1648
1648
|
}>>;
|
|
1649
|
-
}, z.core.$strip>]>;
|
|
1649
|
+
}, z.core.$strip>], "type">;
|
|
1650
1650
|
}, z.core.$strip>>;
|
|
1651
1651
|
}, z.core.$strip>]>;
|
|
1652
1652
|
transferSummary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1668,7 +1668,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
1668
1668
|
currency: z.ZodString;
|
|
1669
1669
|
currencyAmount: z.ZodCoercedString<unknown>;
|
|
1670
1670
|
}, z.core.$strip>>>;
|
|
1671
|
-
}, z.core.$strip>]>;
|
|
1671
|
+
}, z.core.$strip>], "type">;
|
|
1672
1672
|
}, z.core.$strip>>>;
|
|
1673
1673
|
dapp: z.ZodOptional<z.ZodObject<{
|
|
1674
1674
|
dappId: z.ZodString;
|
|
@@ -1738,7 +1738,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
1738
1738
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1739
1739
|
type: z.ZodString;
|
|
1740
1740
|
}, z.core.$strip>;
|
|
1741
|
-
}, z.core.$strip>]>>;
|
|
1741
|
+
}, z.core.$strip>], "type">>;
|
|
1742
1742
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1743
1743
|
type: z.ZodLiteral<"amount">;
|
|
1744
1744
|
label: z.ZodString;
|
|
@@ -1801,7 +1801,7 @@ export declare const activitiesSchema: z.ZodArray<z.ZodObject<{
|
|
|
1801
1801
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1802
1802
|
type: z.ZodString;
|
|
1803
1803
|
}, z.core.$strip>;
|
|
1804
|
-
}, z.core.$strip>]>>>;
|
|
1804
|
+
}, z.core.$strip>], "type">>>;
|
|
1805
1805
|
}, z.core.$strip>>>;
|
|
1806
1806
|
title: z.ZodOptional<z.ZodString>;
|
|
1807
1807
|
multisigDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -2067,7 +2067,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
2067
2067
|
zksync2: "zksync2";
|
|
2068
2068
|
starknet: "starknet";
|
|
2069
2069
|
}>>;
|
|
2070
|
-
}, z.core.$strip>]>, z.ZodObject<{
|
|
2070
|
+
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
2071
2071
|
type: z.ZodLiteral<"multicall">;
|
|
2072
2072
|
calls: z.ZodArray<z.ZodObject<{
|
|
2073
2073
|
details: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2225,7 +2225,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
2225
2225
|
zksync2: "zksync2";
|
|
2226
2226
|
starknet: "starknet";
|
|
2227
2227
|
}>>;
|
|
2228
|
-
}, z.core.$strip>]>;
|
|
2228
|
+
}, z.core.$strip>], "type">;
|
|
2229
2229
|
}, z.core.$strip>>;
|
|
2230
2230
|
}, z.core.$strip>]>;
|
|
2231
2231
|
transferSummary: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -2247,7 +2247,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
2247
2247
|
currency: z.ZodString;
|
|
2248
2248
|
currencyAmount: z.ZodCoercedString<unknown>;
|
|
2249
2249
|
}, z.core.$strip>>>;
|
|
2250
|
-
}, z.core.$strip>]>;
|
|
2250
|
+
}, z.core.$strip>], "type">;
|
|
2251
2251
|
}, z.core.$strip>>>;
|
|
2252
2252
|
dapp: z.ZodOptional<z.ZodObject<{
|
|
2253
2253
|
dappId: z.ZodString;
|
|
@@ -2317,7 +2317,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
2317
2317
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2318
2318
|
type: z.ZodString;
|
|
2319
2319
|
}, z.core.$strip>;
|
|
2320
|
-
}, z.core.$strip>]>>;
|
|
2320
|
+
}, z.core.$strip>], "type">>;
|
|
2321
2321
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2322
2322
|
type: z.ZodLiteral<"amount">;
|
|
2323
2323
|
label: z.ZodString;
|
|
@@ -2380,7 +2380,7 @@ export declare const activityResponseSchema: z.ZodObject<{
|
|
|
2380
2380
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2381
2381
|
type: z.ZodString;
|
|
2382
2382
|
}, z.core.$strip>;
|
|
2383
|
-
}, z.core.$strip>]>>>;
|
|
2383
|
+
}, z.core.$strip>], "type">>>;
|
|
2384
2384
|
}, z.core.$strip>>>;
|
|
2385
2385
|
title: z.ZodOptional<z.ZodString>;
|
|
2386
2386
|
multisigDetails: z.ZodOptional<z.ZodObject<{
|
|
@@ -53,7 +53,7 @@ export declare const estimatedFeeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
53
53
|
maxFee: z.ZodBigInt;
|
|
54
54
|
overallFee: z.ZodBigInt;
|
|
55
55
|
tip: z.ZodOptional<z.ZodBigInt>;
|
|
56
|
-
}, z.core.$strip>]>;
|
|
56
|
+
}, z.core.$strip>], "type">;
|
|
57
57
|
export type EstimatedFee = z.infer<typeof estimatedFeeSchema>;
|
|
58
58
|
export declare const nativeEstimatedFeesSchema: z.ZodObject<{
|
|
59
59
|
type: z.ZodLiteral<"native">;
|
|
@@ -157,7 +157,7 @@ export declare const estimatedFeesSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
157
157
|
tip: z.ZodOptional<z.ZodBigInt>;
|
|
158
158
|
maxFee: z.ZodBigInt;
|
|
159
159
|
}, z.core.$strip>>;
|
|
160
|
-
}, z.core.$strip>]>;
|
|
160
|
+
}, z.core.$strip>], "type">;
|
|
161
161
|
export type EstimatedFees = z.infer<typeof estimatedFeesSchema>;
|
|
162
162
|
export type EstimatedFeesEnriched = UnionEvaluate<EstimatedFees & {
|
|
163
163
|
id: string;
|
|
@@ -61,7 +61,7 @@ export declare const propertySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
61
61
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
62
62
|
type: z.ZodString;
|
|
63
63
|
}, z.core.$strip>;
|
|
64
|
-
}, z.core.$strip>]>;
|
|
64
|
+
}, z.core.$strip>], "type">;
|
|
65
65
|
export declare const actionSchema: z.ZodObject<{
|
|
66
66
|
name: z.ZodString;
|
|
67
67
|
properties: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -126,7 +126,7 @@ export declare const actionSchema: z.ZodObject<{
|
|
|
126
126
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
127
127
|
type: z.ZodString;
|
|
128
128
|
}, z.core.$strip>;
|
|
129
|
-
}, z.core.$strip>]>>;
|
|
129
|
+
}, z.core.$strip>], "type">>;
|
|
130
130
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
131
131
|
type: z.ZodLiteral<"amount">;
|
|
132
132
|
label: z.ZodString;
|
|
@@ -189,7 +189,7 @@ export declare const actionSchema: z.ZodObject<{
|
|
|
189
189
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
190
190
|
type: z.ZodString;
|
|
191
191
|
}, z.core.$strip>;
|
|
192
|
-
}, z.core.$strip>]>>>;
|
|
192
|
+
}, z.core.$strip>], "type">>>;
|
|
193
193
|
}, z.core.$strip>;
|
|
194
194
|
export declare const assessmentSchema: z.ZodUnion<readonly [z.ZodLiteral<"verified">, z.ZodLiteral<"neutral">, z.ZodLiteral<"partial">, z.ZodLiteral<"warn">]>;
|
|
195
195
|
export declare const warningDetailsSchema: z.ZodObject<{
|
|
@@ -291,7 +291,7 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
291
291
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
292
292
|
type: z.ZodString;
|
|
293
293
|
}, z.core.$strip>;
|
|
294
|
-
}, z.core.$strip>]>>;
|
|
294
|
+
}, z.core.$strip>], "type">>;
|
|
295
295
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
296
296
|
type: z.ZodLiteral<"amount">;
|
|
297
297
|
label: z.ZodString;
|
|
@@ -354,7 +354,7 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
354
354
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
355
355
|
type: z.ZodString;
|
|
356
356
|
}, z.core.$strip>;
|
|
357
|
-
}, z.core.$strip>]>>>;
|
|
357
|
+
}, z.core.$strip>], "type">>>;
|
|
358
358
|
}, z.core.$strip>;
|
|
359
359
|
}, z.core.$strip>;
|
|
360
360
|
export declare const targetedDappSchema: z.ZodObject<{
|
|
@@ -478,7 +478,7 @@ declare const reviewOfTransactionSchema: z.ZodOptional<z.ZodObject<{
|
|
|
478
478
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
479
479
|
type: z.ZodString;
|
|
480
480
|
}, z.core.$strip>;
|
|
481
|
-
}, z.core.$strip>]>>;
|
|
481
|
+
}, z.core.$strip>], "type">>;
|
|
482
482
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
483
483
|
type: z.ZodLiteral<"amount">;
|
|
484
484
|
label: z.ZodString;
|
|
@@ -541,7 +541,7 @@ declare const reviewOfTransactionSchema: z.ZodOptional<z.ZodObject<{
|
|
|
541
541
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
542
542
|
type: z.ZodString;
|
|
543
543
|
}, z.core.$strip>;
|
|
544
|
-
}, z.core.$strip>]>>>;
|
|
544
|
+
}, z.core.$strip>], "type">>>;
|
|
545
545
|
}, z.core.$strip>;
|
|
546
546
|
}, z.core.$strip>>;
|
|
547
547
|
}, z.core.$strip>>;
|
|
@@ -949,7 +949,7 @@ declare const transactionSimulationSchema: z.ZodObject<{
|
|
|
949
949
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
950
950
|
type: z.ZodString;
|
|
951
951
|
}, z.core.$strip>;
|
|
952
|
-
}, z.core.$strip>]>>;
|
|
952
|
+
}, z.core.$strip>], "type">>;
|
|
953
953
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
954
954
|
type: z.ZodLiteral<"amount">;
|
|
955
955
|
label: z.ZodString;
|
|
@@ -1012,7 +1012,7 @@ declare const transactionSimulationSchema: z.ZodObject<{
|
|
|
1012
1012
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1013
1013
|
type: z.ZodString;
|
|
1014
1014
|
}, z.core.$strip>;
|
|
1015
|
-
}, z.core.$strip>]>>>;
|
|
1015
|
+
}, z.core.$strip>], "type">>>;
|
|
1016
1016
|
}, z.core.$strip>;
|
|
1017
1017
|
}, z.core.$strip>>;
|
|
1018
1018
|
}, z.core.$strip>>;
|
|
@@ -1286,7 +1286,7 @@ declare const transactionSimulationErrorSchema: z.ZodObject<{
|
|
|
1286
1286
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1287
1287
|
type: z.ZodString;
|
|
1288
1288
|
}, z.core.$strip>;
|
|
1289
|
-
}, z.core.$strip>]>>;
|
|
1289
|
+
}, z.core.$strip>], "type">>;
|
|
1290
1290
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1291
1291
|
type: z.ZodLiteral<"amount">;
|
|
1292
1292
|
label: z.ZodString;
|
|
@@ -1349,7 +1349,7 @@ declare const transactionSimulationErrorSchema: z.ZodObject<{
|
|
|
1349
1349
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1350
1350
|
type: z.ZodString;
|
|
1351
1351
|
}, z.core.$strip>;
|
|
1352
|
-
}, z.core.$strip>]>>>;
|
|
1352
|
+
}, z.core.$strip>], "type">>>;
|
|
1353
1353
|
}, z.core.$strip>;
|
|
1354
1354
|
}, z.core.$strip>>;
|
|
1355
1355
|
}, z.core.$strip>>;
|
|
@@ -1471,7 +1471,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1471
1471
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1472
1472
|
type: z.ZodString;
|
|
1473
1473
|
}, z.core.$strip>;
|
|
1474
|
-
}, z.core.$strip>]>>;
|
|
1474
|
+
}, z.core.$strip>], "type">>;
|
|
1475
1475
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1476
1476
|
type: z.ZodLiteral<"amount">;
|
|
1477
1477
|
label: z.ZodString;
|
|
@@ -1534,7 +1534,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1534
1534
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1535
1535
|
type: z.ZodString;
|
|
1536
1536
|
}, z.core.$strip>;
|
|
1537
|
-
}, z.core.$strip>]>>>;
|
|
1537
|
+
}, z.core.$strip>], "type">>>;
|
|
1538
1538
|
}, z.core.$strip>;
|
|
1539
1539
|
}, z.core.$strip>>;
|
|
1540
1540
|
}, z.core.$strip>>;
|
|
@@ -1807,7 +1807,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1807
1807
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1808
1808
|
type: z.ZodString;
|
|
1809
1809
|
}, z.core.$strip>;
|
|
1810
|
-
}, z.core.$strip>]>>;
|
|
1810
|
+
}, z.core.$strip>], "type">>;
|
|
1811
1811
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1812
1812
|
type: z.ZodLiteral<"amount">;
|
|
1813
1813
|
label: z.ZodString;
|
|
@@ -1870,7 +1870,7 @@ declare const transactionSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
1870
1870
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
1871
1871
|
type: z.ZodString;
|
|
1872
1872
|
}, z.core.$strip>;
|
|
1873
|
-
}, z.core.$strip>]>>>;
|
|
1873
|
+
}, z.core.$strip>], "type">>>;
|
|
1874
1874
|
}, z.core.$strip>;
|
|
1875
1875
|
}, z.core.$strip>>;
|
|
1876
1876
|
}, z.core.$strip>>;
|
|
@@ -2008,7 +2008,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
2008
2008
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2009
2009
|
type: z.ZodString;
|
|
2010
2010
|
}, z.core.$strip>;
|
|
2011
|
-
}, z.core.$strip>]>>;
|
|
2011
|
+
}, z.core.$strip>], "type">>;
|
|
2012
2012
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2013
2013
|
type: z.ZodLiteral<"amount">;
|
|
2014
2014
|
label: z.ZodString;
|
|
@@ -2071,7 +2071,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
2071
2071
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2072
2072
|
type: z.ZodString;
|
|
2073
2073
|
}, z.core.$strip>;
|
|
2074
|
-
}, z.core.$strip>]>>>;
|
|
2074
|
+
}, z.core.$strip>], "type">>>;
|
|
2075
2075
|
}, z.core.$strip>;
|
|
2076
2076
|
}, z.core.$strip>>;
|
|
2077
2077
|
}, z.core.$strip>>;
|
|
@@ -2344,7 +2344,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
2344
2344
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2345
2345
|
type: z.ZodString;
|
|
2346
2346
|
}, z.core.$strip>;
|
|
2347
|
-
}, z.core.$strip>]>>;
|
|
2347
|
+
}, z.core.$strip>], "type">>;
|
|
2348
2348
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2349
2349
|
type: z.ZodLiteral<"amount">;
|
|
2350
2350
|
label: z.ZodString;
|
|
@@ -2407,7 +2407,7 @@ export declare const simulateAndReviewSchema: z.ZodObject<{
|
|
|
2407
2407
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2408
2408
|
type: z.ZodString;
|
|
2409
2409
|
}, z.core.$strip>;
|
|
2410
|
-
}, z.core.$strip>]>>>;
|
|
2410
|
+
}, z.core.$strip>], "type">>>;
|
|
2411
2411
|
}, z.core.$strip>;
|
|
2412
2412
|
}, z.core.$strip>>;
|
|
2413
2413
|
}, z.core.$strip>>;
|
|
@@ -2540,7 +2540,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2540
2540
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2541
2541
|
type: z.ZodString;
|
|
2542
2542
|
}, z.core.$strip>;
|
|
2543
|
-
}, z.core.$strip>]>>;
|
|
2543
|
+
}, z.core.$strip>], "type">>;
|
|
2544
2544
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2545
2545
|
type: z.ZodLiteral<"amount">;
|
|
2546
2546
|
label: z.ZodString;
|
|
@@ -2603,7 +2603,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2603
2603
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2604
2604
|
type: z.ZodString;
|
|
2605
2605
|
}, z.core.$strip>;
|
|
2606
|
-
}, z.core.$strip>]>>>;
|
|
2606
|
+
}, z.core.$strip>], "type">>>;
|
|
2607
2607
|
}, z.core.$strip>;
|
|
2608
2608
|
}, z.core.$strip>>;
|
|
2609
2609
|
}, z.core.$strip>>;
|
|
@@ -2876,7 +2876,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2876
2876
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2877
2877
|
type: z.ZodString;
|
|
2878
2878
|
}, z.core.$strip>;
|
|
2879
|
-
}, z.core.$strip>]>>;
|
|
2879
|
+
}, z.core.$strip>], "type">>;
|
|
2880
2880
|
defaultProperties: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2881
2881
|
type: z.ZodLiteral<"amount">;
|
|
2882
2882
|
label: z.ZodString;
|
|
@@ -2939,7 +2939,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
2939
2939
|
iconUrl: z.ZodOptional<z.ZodString>;
|
|
2940
2940
|
type: z.ZodString;
|
|
2941
2941
|
}, z.core.$strip>;
|
|
2942
|
-
}, z.core.$strip>]>>>;
|
|
2942
|
+
}, z.core.$strip>], "type">>>;
|
|
2943
2943
|
}, z.core.$strip>;
|
|
2944
2944
|
}, z.core.$strip>>;
|
|
2945
2945
|
}, z.core.$strip>>;
|
|
@@ -3006,7 +3006,7 @@ export declare const enrichedSimulateAndReviewSchema: z.ZodObject<{
|
|
|
3006
3006
|
tip: z.ZodOptional<z.ZodBigInt>;
|
|
3007
3007
|
maxFee: z.ZodBigInt;
|
|
3008
3008
|
}, z.core.$strip>>;
|
|
3009
|
-
}, z.core.$strip>]>>>;
|
|
3009
|
+
}, z.core.$strip>], "type">>>;
|
|
3010
3010
|
isBackendDown: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3011
3011
|
promotions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3012
3012
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -374,7 +374,7 @@ export declare const investmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
374
374
|
buyEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
375
375
|
sellEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
376
376
|
claimEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
377
|
-
}, z.core.$strip>]>;
|
|
377
|
+
}, z.core.$strip>], "category">;
|
|
378
378
|
export type Investment = z.infer<typeof investmentSchema>;
|
|
379
379
|
export type LiquidStakingInvestment = z.infer<typeof liquidStakingInvestmentSchema>;
|
|
380
380
|
export type LendingInvestment = z.infer<typeof lendingInvestmentSchema>;
|
|
@@ -563,7 +563,7 @@ export declare const investmentsResponseSchema: z.ZodObject<{
|
|
|
563
563
|
buyEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
564
564
|
sellEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
565
565
|
claimEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
566
|
-
}, z.core.$strip>]>>;
|
|
566
|
+
}, z.core.$strip>], "category">>;
|
|
567
567
|
}, z.core.$strip>;
|
|
568
568
|
export type InvestmentsResponse = z.infer<typeof investmentsResponseSchema>;
|
|
569
569
|
export declare const strkStakingCalldataResponseSchema: z.ZodObject<{
|
|
@@ -42,6 +42,8 @@ export declare class TokenServiceWeb implements ITokenServiceWeb {
|
|
|
42
42
|
};
|
|
43
43
|
accruedRewards: string;
|
|
44
44
|
stakedAmount: string;
|
|
45
|
+
stakedTokenAddress: `0x${string}`;
|
|
46
|
+
rewardTokenAddress: `0x${string}`;
|
|
45
47
|
pendingWithdrawal?: {
|
|
46
48
|
amount: string;
|
|
47
49
|
withdrawableAfter: number;
|
|
@@ -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().default(0),marketCap24hChange:e.z.number().default(0),dailyVolume:e.z.number().default(0),rank:e.z.number().default(0)}).optional(),tags:e.z.array(e.z.string()).optional()}),k=e.z.object({tokens:e.z.array(o)}),D=o,
|
|
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().default(0),marketCap24hChange:e.z.number().default(0),dailyVolume:e.z.number().default(0),rank:e.z.number().default(0)}).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)}),i=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()}),t=e.z.object({id:e.z.string(),investmentId:e.z.string().optional(),tokenAddress:a.addressSchema.optional(),totalBalances:e.z.record(e.z.string(),e.z.string())}),n=t.extend({tokenId:e.z.string(),data:e.z.object({poolFeePercentage:e.z.string(),tickSpacingPercentage:e.z.string().optional(),token0:i,token1:i})}),P=e.z.array(n),s=t.extend({data:e.z.object({apy:e.z.string().optional(),totalApy:e.z.string().optional()}),investmentId:e.z.string().optional(),totalBalances:e.z.record(e.z.string(),e.z.string())}),f=e.z.array(s),r=t.extend({data:e.z.object({apy:e.z.string().optional(),totalApy: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=t.extend({id:e.z.string(),data:e.z.object({delegatingTo:a.addressSchema}),totalBalances:e.z.record(e.z.string(),e.z.string())}),A=e.z.array(c),d=t.extend({investmentId:e.z.string().optional(),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(),totalApy:e.z.string().optional(),stakedTokenAddress:a.addressSchema,rewardTokenAddress:a.addressSchema})}),T=e.z.array(d),l=n.or(r).or(c).or(s).or(d),z=e.z.array(l),m=b.createSchemaWithWarnings({productId:e.z.string().optional(),name:e.z.string(),manageUrl:e.z.string().optional(),type:h.defiPositionTypeSchema,groups:e.z.record(e.z.string(),e.z.object({name:e.z.string().optional(),healthRatio:e.z.string().optional()})).optional(),positions:z}),g=e.z.object({dappId:e.z.string(),products:e.z.array(m)}),I=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=z;exports.apiDefiDecompositionSchema=g;exports.apiDefiDecompositionToken=i;exports.apiDefiPositionSchema=l;exports.apiDefiPositionsSchema=I;exports.apiDelegatedTokensArraySchema=A;exports.apiDelegatedTokensSchema=c;exports.apiPriceDataResponseSchema=y;exports.apiPriceDetailsSchema=p;exports.apiStakingPositionSchema=s;exports.apiStakingPositionsSchema=f;exports.apiStrkDelegatedStakingPositionsSchema=T;exports.apiStrkDelegatedStakingSchema=d;exports.apiTokenInfoResponseSchema=D;exports.apiTokenInfoSchema=o;exports.apiTokensInfoResponseSchema=k;exports.apiUnclaimedRewardsSchema=C;
|