@argent/x-shared 1.45.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.eslintrc.d.cts +0 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +286 -280
- package/dist/src/chains/starknet/getAddressFromStarkName.cjs +1 -1
- package/dist/src/chains/starknet/getAddressFromStarkName.js +18 -18
- package/dist/src/chains/starknet/services/address/StarknetAddressService.cjs +1 -1
- package/dist/src/chains/starknet/services/address/StarknetAddressService.js +11 -11
- package/dist/src/http/fetcher.cjs +1 -1
- package/dist/src/http/fetcher.js +8 -8
- package/dist/src/http/time.cjs +1 -1
- package/dist/src/http/time.js +8 -8
- package/dist/src/index.d.ts +1 -0
- package/dist/src/storage/__test__/mockFunctionImplementation.d.ts +14 -0
- package/dist/src/storage/base.cjs +1 -0
- package/dist/src/storage/base.d.ts +10 -0
- package/dist/src/storage/base.js +38 -0
- package/dist/src/storage/index.d.ts +3 -0
- package/dist/src/storage/interface.d.ts +91 -0
- package/dist/src/storage/utils.cjs +1 -0
- package/dist/src/storage/utils.d.ts +5 -0
- package/dist/src/storage/utils.js +30 -0
- package/dist/src/tokens/service/implementation.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 +36 -36
- package/dist/src/tokens/service/types/backend.model.js +1 -1
- package/dist/src/utils/isContractDeployed.js +3 -3
- package/package.json +2 -6
|
@@ -1843,7 +1843,7 @@ export declare const apiDefiDecompositionProducts: z.ZodArray<z.ZodUnion<[z.ZodU
|
|
|
1843
1843
|
export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
1844
1844
|
productId: z.ZodOptional<z.ZodString>;
|
|
1845
1845
|
name: z.ZodString;
|
|
1846
|
-
manageUrl: z.ZodString
|
|
1846
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
1847
1847
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
1848
1848
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1849
1849
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2214,7 +2214,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
2214
2214
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2215
2215
|
productId: z.ZodOptional<z.ZodString>;
|
|
2216
2216
|
name: z.ZodString;
|
|
2217
|
-
manageUrl: z.ZodString
|
|
2217
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
2218
2218
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
2219
2219
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2220
2220
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2585,7 +2585,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
2585
2585
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2586
2586
|
productId: z.ZodOptional<z.ZodString>;
|
|
2587
2587
|
name: z.ZodString;
|
|
2588
|
-
manageUrl: z.ZodString
|
|
2588
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
2589
2589
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
2590
2590
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2591
2591
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2956,7 +2956,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
2956
2956
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
2957
2957
|
productId: z.ZodOptional<z.ZodString>;
|
|
2958
2958
|
name: z.ZodString;
|
|
2959
|
-
manageUrl: z.ZodString
|
|
2959
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
2960
2960
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
2961
2961
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
2962
2962
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3327,7 +3327,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
3327
3327
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
3328
3328
|
productId: z.ZodOptional<z.ZodString>;
|
|
3329
3329
|
name: z.ZodString;
|
|
3330
|
-
manageUrl: z.ZodString
|
|
3330
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
3331
3331
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
3332
3332
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3333
3333
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3699,7 +3699,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
3699
3699
|
extend: <E extends z.ZodRawShape>(extension: E) => z.ZodEffects<z.ZodObject<{
|
|
3700
3700
|
productId: z.ZodOptional<z.ZodString>;
|
|
3701
3701
|
name: z.ZodString;
|
|
3702
|
-
manageUrl: z.ZodString
|
|
3702
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
3703
3703
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
3704
3704
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
3705
3705
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -4070,7 +4070,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
4070
4070
|
} & E, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
4071
4071
|
productId: z.ZodOptional<z.ZodString>;
|
|
4072
4072
|
name: z.ZodString;
|
|
4073
|
-
manageUrl: z.ZodString
|
|
4073
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
4074
4074
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
4075
4075
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4076
4076
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -4441,7 +4441,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
4441
4441
|
} & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
4442
4442
|
productId: z.ZodOptional<z.ZodString>;
|
|
4443
4443
|
name: z.ZodString;
|
|
4444
|
-
manageUrl: z.ZodString
|
|
4444
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
4445
4445
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
4446
4446
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4447
4447
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -4812,7 +4812,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
4812
4812
|
} & E, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
4813
4813
|
productId: z.ZodOptional<z.ZodString>;
|
|
4814
4814
|
name: z.ZodString;
|
|
4815
|
-
manageUrl: z.ZodString
|
|
4815
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
4816
4816
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
4817
4817
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4818
4818
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -5183,7 +5183,7 @@ export declare const apiDefiDecompositionProduct: z.ZodEffects<z.ZodObject<{
|
|
|
5183
5183
|
} & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
5184
5184
|
productId: z.ZodOptional<z.ZodString>;
|
|
5185
5185
|
name: z.ZodString;
|
|
5186
|
-
manageUrl: z.ZodString
|
|
5186
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
5187
5187
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
5188
5188
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5189
5189
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -5558,7 +5558,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
5558
5558
|
products: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
5559
5559
|
productId: z.ZodOptional<z.ZodString>;
|
|
5560
5560
|
name: z.ZodString;
|
|
5561
|
-
manageUrl: z.ZodString
|
|
5561
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
5562
5562
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
5563
5563
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5564
5564
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -5929,7 +5929,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
5929
5929
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
5930
5930
|
productId: z.ZodOptional<z.ZodString>;
|
|
5931
5931
|
name: z.ZodString;
|
|
5932
|
-
manageUrl: z.ZodString
|
|
5932
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
5933
5933
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
5934
5934
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5935
5935
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -6300,7 +6300,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
6300
6300
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
6301
6301
|
productId: z.ZodOptional<z.ZodString>;
|
|
6302
6302
|
name: z.ZodString;
|
|
6303
|
-
manageUrl: z.ZodString
|
|
6303
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
6304
6304
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
6305
6305
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6306
6306
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -6671,7 +6671,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
6671
6671
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
6672
6672
|
productId: z.ZodOptional<z.ZodString>;
|
|
6673
6673
|
name: z.ZodString;
|
|
6674
|
-
manageUrl: z.ZodString
|
|
6674
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
6675
6675
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
6676
6676
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6677
6677
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -7042,7 +7042,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
7042
7042
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
7043
7043
|
productId: z.ZodOptional<z.ZodString>;
|
|
7044
7044
|
name: z.ZodString;
|
|
7045
|
-
manageUrl: z.ZodString
|
|
7045
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
7046
7046
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
7047
7047
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7048
7048
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -7414,7 +7414,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
7414
7414
|
extend: <E extends z.ZodRawShape>(extension: E) => z.ZodEffects<z.ZodObject<{
|
|
7415
7415
|
productId: z.ZodOptional<z.ZodString>;
|
|
7416
7416
|
name: z.ZodString;
|
|
7417
|
-
manageUrl: z.ZodString
|
|
7417
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
7418
7418
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
7419
7419
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7420
7420
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -7785,7 +7785,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
7785
7785
|
} & E, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
7786
7786
|
productId: z.ZodOptional<z.ZodString>;
|
|
7787
7787
|
name: z.ZodString;
|
|
7788
|
-
manageUrl: z.ZodString
|
|
7788
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
7789
7789
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
7790
7790
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7791
7791
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -8156,7 +8156,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
8156
8156
|
} & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
8157
8157
|
productId: z.ZodOptional<z.ZodString>;
|
|
8158
8158
|
name: z.ZodString;
|
|
8159
|
-
manageUrl: z.ZodString
|
|
8159
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
8160
8160
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
8161
8161
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8162
8162
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -8527,7 +8527,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
8527
8527
|
} & E, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
8528
8528
|
productId: z.ZodOptional<z.ZodString>;
|
|
8529
8529
|
name: z.ZodString;
|
|
8530
|
-
manageUrl: z.ZodString
|
|
8530
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
8531
8531
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
8532
8532
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8533
8533
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -8898,7 +8898,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
8898
8898
|
} & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
8899
8899
|
productId: z.ZodOptional<z.ZodString>;
|
|
8900
8900
|
name: z.ZodString;
|
|
8901
|
-
manageUrl: z.ZodString
|
|
8901
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
8902
8902
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
8903
8903
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
8904
8904
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -9273,7 +9273,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
9273
9273
|
products: z.objectOutputType<{
|
|
9274
9274
|
productId: z.ZodOptional<z.ZodString>;
|
|
9275
9275
|
name: z.ZodString;
|
|
9276
|
-
manageUrl: z.ZodString
|
|
9276
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
9277
9277
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
9278
9278
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9279
9279
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -9647,7 +9647,7 @@ export declare const apiDefiDecompositionSchema: z.ZodObject<{
|
|
|
9647
9647
|
products: z.objectInputType<{
|
|
9648
9648
|
productId: z.ZodOptional<z.ZodString>;
|
|
9649
9649
|
name: z.ZodString;
|
|
9650
|
-
manageUrl: z.ZodString
|
|
9650
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
9651
9651
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
9652
9652
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9653
9653
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -10023,7 +10023,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
10023
10023
|
products: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
10024
10024
|
productId: z.ZodOptional<z.ZodString>;
|
|
10025
10025
|
name: z.ZodString;
|
|
10026
|
-
manageUrl: z.ZodString
|
|
10026
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
10027
10027
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
10028
10028
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10029
10029
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -10394,7 +10394,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
10394
10394
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
10395
10395
|
productId: z.ZodOptional<z.ZodString>;
|
|
10396
10396
|
name: z.ZodString;
|
|
10397
|
-
manageUrl: z.ZodString
|
|
10397
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
10398
10398
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
10399
10399
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10400
10400
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -10765,7 +10765,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
10765
10765
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
10766
10766
|
productId: z.ZodOptional<z.ZodString>;
|
|
10767
10767
|
name: z.ZodString;
|
|
10768
|
-
manageUrl: z.ZodString
|
|
10768
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
10769
10769
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
10770
10770
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
10771
10771
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -11136,7 +11136,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
11136
11136
|
}, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
11137
11137
|
productId: z.ZodOptional<z.ZodString>;
|
|
11138
11138
|
name: z.ZodString;
|
|
11139
|
-
manageUrl: z.ZodString
|
|
11139
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
11140
11140
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
11141
11141
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11142
11142
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -11507,7 +11507,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
11507
11507
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
11508
11508
|
productId: z.ZodOptional<z.ZodString>;
|
|
11509
11509
|
name: z.ZodString;
|
|
11510
|
-
manageUrl: z.ZodString
|
|
11510
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
11511
11511
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
11512
11512
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11513
11513
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -11879,7 +11879,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
11879
11879
|
extend: <E extends z.ZodRawShape>(extension: E) => z.ZodEffects<z.ZodObject<{
|
|
11880
11880
|
productId: z.ZodOptional<z.ZodString>;
|
|
11881
11881
|
name: z.ZodString;
|
|
11882
|
-
manageUrl: z.ZodString
|
|
11882
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
11883
11883
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
11884
11884
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
11885
11885
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -12250,7 +12250,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
12250
12250
|
} & E, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
12251
12251
|
productId: z.ZodOptional<z.ZodString>;
|
|
12252
12252
|
name: z.ZodString;
|
|
12253
|
-
manageUrl: z.ZodString
|
|
12253
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
12254
12254
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
12255
12255
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
12256
12256
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -12621,7 +12621,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
12621
12621
|
} & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
12622
12622
|
productId: z.ZodOptional<z.ZodString>;
|
|
12623
12623
|
name: z.ZodString;
|
|
12624
|
-
manageUrl: z.ZodString
|
|
12624
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
12625
12625
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
12626
12626
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
12627
12627
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -12992,7 +12992,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
12992
12992
|
} & E, z.ZodTypeAny, "passthrough">>, z.objectOutputType<{
|
|
12993
12993
|
productId: z.ZodOptional<z.ZodString>;
|
|
12994
12994
|
name: z.ZodString;
|
|
12995
|
-
manageUrl: z.ZodString
|
|
12995
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
12996
12996
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
12997
12997
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
12998
12998
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -13363,7 +13363,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
13363
13363
|
} & E, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
13364
13364
|
productId: z.ZodOptional<z.ZodString>;
|
|
13365
13365
|
name: z.ZodString;
|
|
13366
|
-
manageUrl: z.ZodString
|
|
13366
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
13367
13367
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
13368
13368
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13369
13369
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -13738,7 +13738,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
13738
13738
|
products: z.objectOutputType<{
|
|
13739
13739
|
productId: z.ZodOptional<z.ZodString>;
|
|
13740
13740
|
name: z.ZodString;
|
|
13741
|
-
manageUrl: z.ZodString
|
|
13741
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
13742
13742
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
13743
13743
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13744
13744
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -14112,7 +14112,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
14112
14112
|
products: z.objectInputType<{
|
|
14113
14113
|
productId: z.ZodOptional<z.ZodString>;
|
|
14114
14114
|
name: z.ZodString;
|
|
14115
|
-
manageUrl: z.ZodString
|
|
14115
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
14116
14116
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
14117
14117
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14118
14118
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -14488,7 +14488,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
14488
14488
|
products: z.objectOutputType<{
|
|
14489
14489
|
productId: z.ZodOptional<z.ZodString>;
|
|
14490
14490
|
name: z.ZodString;
|
|
14491
|
-
manageUrl: z.ZodString
|
|
14491
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
14492
14492
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
14493
14493
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14494
14494
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -14864,7 +14864,7 @@ export declare const apiDefiPositionsSchema: z.ZodObject<{
|
|
|
14864
14864
|
products: z.objectInputType<{
|
|
14865
14865
|
productId: z.ZodOptional<z.ZodString>;
|
|
14866
14866
|
name: z.ZodString;
|
|
14867
|
-
manageUrl: z.ZodString
|
|
14867
|
+
manageUrl: z.ZodOptional<z.ZodString>;
|
|
14868
14868
|
type: z.ZodUnion<[z.ZodLiteral<"concentratedLiquidityPosition">, z.ZodLiteral<"collateralizedDebtPosition">, z.ZodLiteral<"delegatedTokens">, z.ZodLiteral<"strkDelegatedStaking">, z.ZodLiteral<"staking">]>;
|
|
14869
14869
|
groups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
14870
14870
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -106,7 +106,7 @@ const f = t.object({
|
|
|
106
106
|
}), w = t.array(p), b = r.or(c).or(l).or(s).or(p), h = t.array(b), u = g({
|
|
107
107
|
productId: t.string().optional(),
|
|
108
108
|
name: t.string(),
|
|
109
|
-
manageUrl: t.string(),
|
|
109
|
+
manageUrl: t.string().optional(),
|
|
110
110
|
type: d,
|
|
111
111
|
groups: t.record(t.object({
|
|
112
112
|
name: t.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argent/x-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/argentlabs/x-shared.git"
|
|
@@ -50,16 +50,12 @@
|
|
|
50
50
|
"@semantic-release/git": "^10.0.1",
|
|
51
51
|
"@types/async-retry": "^1.4.8",
|
|
52
52
|
"@types/lodash-es": "^4.17.6",
|
|
53
|
-
"@types/react": "^18.0.0",
|
|
54
|
-
"@types/react-dom": "^18.0.0",
|
|
55
53
|
"@types/ua-parser-js": "^0.7.39",
|
|
56
54
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
57
55
|
"@typescript-eslint/parser": "^8.0.0",
|
|
58
56
|
"eslint": "^8.7.0",
|
|
59
57
|
"eslint-config-prettier": "^9.1.0",
|
|
60
58
|
"eslint-plugin-import": "^2.29.1",
|
|
61
|
-
"eslint-plugin-react": "^7.28.0",
|
|
62
|
-
"eslint-plugin-react-hooks": "^4.6.0",
|
|
63
59
|
"husky": ">=7",
|
|
64
60
|
"lint-staged": ">=10",
|
|
65
61
|
"msw": "^2.0.0",
|
|
@@ -69,7 +65,7 @@
|
|
|
69
65
|
"typescript": "^5.0.4",
|
|
70
66
|
"vite": "^5.0.0",
|
|
71
67
|
"vite-plugin-dts": "^4.0.0",
|
|
72
|
-
"vitest": "2.1.
|
|
68
|
+
"vitest": "2.1.4"
|
|
73
69
|
},
|
|
74
70
|
"dependencies": {
|
|
75
71
|
"@argent/x-multicall": "^7.1.0",
|