@argent/x-shared 1.62.11 → 1.63.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/defiDecomposition.cjs +1 -0
- package/dist/defiDecomposition.d.ts +2 -0
- package/dist/defiDecomposition.js +65 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +476 -475
- package/dist/src/account/account.model.cjs +1 -1
- package/dist/src/account/account.model.d.ts +11 -0
- package/dist/src/account/account.model.js +8 -4
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.d.ts +6 -0
- package/dist/src/features/defiDecomposition/helpers/computeCollateralizedDebtPositionsUsdValue.js +62 -0
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/computeConcentratedLiquidityPositionsUsdValue.js +31 -0
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/computeDefiDecompositionUsdValue.js +55 -0
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/computeDelegatedTokensPositionsUsdValue.js +30 -0
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/computeStakingPositionsUsdValue.js +30 -0
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/computeStrkDelegatedStakingPositionsUsdValue.js +30 -0
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.d.ts +3 -0
- package/dist/src/features/defiDecomposition/helpers/computeUsdValueForPosition.js +17 -0
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.d.ts +1 -0
- package/dist/src/features/defiDecomposition/helpers/getDefiProductName.js +11 -0
- package/dist/src/features/defiDecomposition/helpers/index.d.ts +13 -0
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.d.ts +7 -0
- package/dist/src/features/defiDecomposition/helpers/parseCollateralizedDebtPositions.js +57 -0
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/parseConcentratedLiquidityPositions.js +42 -0
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/parseDefiDecomposition.js +63 -0
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/parseDelegatedTokensPositions.js +27 -0
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/parseStakingPositions.js +29 -0
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.d.ts +4 -0
- package/dist/src/features/defiDecomposition/helpers/parseStrkDelegatedStakingPositions.js +27 -0
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.cjs +1 -0
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.d.ts +9 -0
- package/dist/src/features/defiDecomposition/helpers/sortDescendingByUsdValue.js +9 -0
- package/dist/src/features/defiDecomposition/index.d.ts +2 -0
- package/dist/src/features/defiDecomposition/schema.cjs +1 -0
- package/dist/src/features/defiDecomposition/schema.d.ts +16935 -0
- package/dist/src/features/defiDecomposition/schema.js +153 -0
- package/dist/src/features/paymaster/types.d.ts +20 -20
- package/dist/src/features/simulation/activity/schema.d.ts +366 -366
- package/dist/src/features/simulation/activity/utils/createNativeActivity.d.ts +8 -8
- package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
- package/dist/src/features/simulation/transactionReview/schema.d.ts +1814 -1814
- package/dist/src/features/simulation/transactionReview/schema.js +2 -2
- package/dist/src/features/swap/models/trade.model.d.ts +20 -0
- package/dist/src/staking/schema.d.ts +24 -24
- package/dist/src/tokens/service/types/backend.model.d.ts +8 -8
- package/dist/src/tokens/service/types/defiPosition.model.d.ts +576 -40
- package/dist/src/tokens/service/types/unclaimedRewards.model.d.ts +8 -8
- package/dist/src/tokens/service/types/webToken.model.cjs +1 -1
- package/dist/src/tokens/service/types/webToken.model.d.ts +36 -2
- package/dist/src/tokens/service/types/webToken.model.js +9 -7
- package/dist/src/transactions/equalTokens.cjs +1 -0
- package/dist/src/transactions/equalTokens.d.ts +2 -0
- package/dist/src/transactions/equalTokens.js +5 -0
- package/dist/src/transactions/errors.d.ts +4 -4
- package/dist/src/utils/starknet/starknet.d.ts +12 -12
- package/dist/src/utils/starknet/starknetSchemas.d.ts +212 -212
- package/package.json +6 -1
|
@@ -37,8 +37,8 @@ export declare const airdropSchema: z.ZodObject<{
|
|
|
37
37
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
39
|
symbol: string;
|
|
40
|
-
name: string;
|
|
41
40
|
address: `0x${string}`;
|
|
41
|
+
name: string;
|
|
42
42
|
decimals: number;
|
|
43
43
|
id: number;
|
|
44
44
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -60,8 +60,8 @@ export declare const airdropSchema: z.ZodObject<{
|
|
|
60
60
|
tags?: string[] | undefined;
|
|
61
61
|
}, {
|
|
62
62
|
symbol: string;
|
|
63
|
-
name: string;
|
|
64
63
|
address: string;
|
|
64
|
+
name: string;
|
|
65
65
|
decimals: number;
|
|
66
66
|
id: number;
|
|
67
67
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -95,8 +95,8 @@ export declare const airdropSchema: z.ZodObject<{
|
|
|
95
95
|
claimEnd?: number | undefined;
|
|
96
96
|
token?: {
|
|
97
97
|
symbol: string;
|
|
98
|
-
name: string;
|
|
99
98
|
address: `0x${string}`;
|
|
99
|
+
name: string;
|
|
100
100
|
decimals: number;
|
|
101
101
|
id: number;
|
|
102
102
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -126,8 +126,8 @@ export declare const airdropSchema: z.ZodObject<{
|
|
|
126
126
|
claimEnd?: number | undefined;
|
|
127
127
|
token?: {
|
|
128
128
|
symbol: string;
|
|
129
|
-
name: string;
|
|
130
129
|
address: string;
|
|
130
|
+
name: string;
|
|
131
131
|
decimals: number;
|
|
132
132
|
id: number;
|
|
133
133
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -187,8 +187,8 @@ export declare const unclaimedRewardsSchema: z.ZodArray<z.ZodObject<{
|
|
|
187
187
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
188
188
|
}, "strip", z.ZodTypeAny, {
|
|
189
189
|
symbol: string;
|
|
190
|
-
name: string;
|
|
191
190
|
address: `0x${string}`;
|
|
191
|
+
name: string;
|
|
192
192
|
decimals: number;
|
|
193
193
|
id: number;
|
|
194
194
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -210,8 +210,8 @@ export declare const unclaimedRewardsSchema: z.ZodArray<z.ZodObject<{
|
|
|
210
210
|
tags?: string[] | undefined;
|
|
211
211
|
}, {
|
|
212
212
|
symbol: string;
|
|
213
|
-
name: string;
|
|
214
213
|
address: string;
|
|
214
|
+
name: string;
|
|
215
215
|
decimals: number;
|
|
216
216
|
id: number;
|
|
217
217
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -245,8 +245,8 @@ export declare const unclaimedRewardsSchema: z.ZodArray<z.ZodObject<{
|
|
|
245
245
|
claimEnd?: number | undefined;
|
|
246
246
|
token?: {
|
|
247
247
|
symbol: string;
|
|
248
|
-
name: string;
|
|
249
248
|
address: `0x${string}`;
|
|
249
|
+
name: string;
|
|
250
250
|
decimals: number;
|
|
251
251
|
id: number;
|
|
252
252
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -276,8 +276,8 @@ export declare const unclaimedRewardsSchema: z.ZodArray<z.ZodObject<{
|
|
|
276
276
|
claimEnd?: number | undefined;
|
|
277
277
|
token?: {
|
|
278
278
|
symbol: string;
|
|
279
|
-
name: string;
|
|
280
279
|
address: string;
|
|
280
|
+
name: string;
|
|
281
281
|
decimals: number;
|
|
282
282
|
id: number;
|
|
283
283
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),c=require("../../../chains/starknet/address.cjs"),o=require("./backend.model.cjs"),n=e.z.object({address:c.addressSchema,networkId:e.z.string({required_error:"Network is required"})},{required_error:"Token is required"}),s=n.required().extend({balance:e.z.string()}),a=n.required().extend({id:e.z.number().optional(),name:e.z.string().optional(),symbol:e.z.string().optional(),decimals:e.z.coerce.number().optional(),iconUrl:e.z.string().url("").optional().or(e.z.literal("")),pricingId:e.z.number().optional(),category:e.z.string().optional(),dappId:e.z.string().optional(),brandColor:e.z.string().optional()}),r=a.extend({balance:e.z.string()}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("zod"),c=require("../../../chains/starknet/address.cjs"),o=require("./backend.model.cjs"),n=e.z.object({address:c.addressSchema,networkId:e.z.string({required_error:"Network is required"})},{required_error:"Token is required"}),s=n.required().extend({balance:e.z.string()}),a=n.required().extend({id:e.z.number().optional(),name:e.z.string().optional(),symbol:e.z.string().optional(),decimals:e.z.coerce.number().optional(),iconUrl:e.z.string().url("").optional().or(e.z.literal("")),pricingId:e.z.number().optional(),category:e.z.string().optional(),dappId:e.z.string().optional(),brandColor:e.z.string().optional(),tradable:e.z.boolean().optional(),popular:e.z.boolean().optional()}),r=a.extend({balance:e.z.string()}),t=a.extend({currencyValue:e.z.string(),currencySymbol:e.z.string().optional(),ccyDayChange:e.z.string().optional(),ethDayChange:e.z.string().optional(),unitCurrencyValue:e.z.string().optional()}),i=t.extend({...r.shape}),l=e.z.array(i),h=n.extend({...o.apiPriceDetailsSchema.shape}),d=n.extend({...o.apiTokenInfoSchema.shape});exports.webBaseTokenSchema=n;exports.webBaseTokenWithBalanceSchema=s;exports.webTokenInfoDetailsSchema=d;exports.webTokenPriceDetailsSchema=h;exports.webTokenSchema=a;exports.webTokenWithBalanceAndPriceSchema=i;exports.webTokenWithBalanceSchema=r;exports.webTokenWithPriceSchema=t;exports.webTokensWithBalanceAndPriceSchema=l;
|
|
@@ -38,6 +38,8 @@ export declare const webTokenSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
38
38
|
category: z.ZodOptional<z.ZodString>;
|
|
39
39
|
dappId: z.ZodOptional<z.ZodString>;
|
|
40
40
|
brandColor: z.ZodOptional<z.ZodString>;
|
|
41
|
+
tradable: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
popular: z.ZodOptional<z.ZodBoolean>;
|
|
41
43
|
}>, "strip", z.ZodTypeAny, {
|
|
42
44
|
address: `0x${string}`;
|
|
43
45
|
networkId: string;
|
|
@@ -49,6 +51,8 @@ export declare const webTokenSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
49
51
|
id?: number | undefined;
|
|
50
52
|
iconUrl?: string | undefined;
|
|
51
53
|
category?: string | undefined;
|
|
54
|
+
popular?: boolean | undefined;
|
|
55
|
+
tradable?: boolean | undefined;
|
|
52
56
|
pricingId?: number | undefined;
|
|
53
57
|
}, {
|
|
54
58
|
address: string;
|
|
@@ -61,6 +65,8 @@ export declare const webTokenSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
61
65
|
id?: number | undefined;
|
|
62
66
|
iconUrl?: string | undefined;
|
|
63
67
|
category?: string | undefined;
|
|
68
|
+
popular?: boolean | undefined;
|
|
69
|
+
tradable?: boolean | undefined;
|
|
64
70
|
pricingId?: number | undefined;
|
|
65
71
|
}>;
|
|
66
72
|
export type WebToken = z.infer<typeof webTokenSchema>;
|
|
@@ -77,6 +83,8 @@ export declare const webTokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
77
83
|
category: z.ZodOptional<z.ZodString>;
|
|
78
84
|
dappId: z.ZodOptional<z.ZodString>;
|
|
79
85
|
brandColor: z.ZodOptional<z.ZodString>;
|
|
86
|
+
tradable: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
popular: z.ZodOptional<z.ZodBoolean>;
|
|
80
88
|
}>, {
|
|
81
89
|
balance: z.ZodString;
|
|
82
90
|
}>, "strip", z.ZodTypeAny, {
|
|
@@ -91,6 +99,8 @@ export declare const webTokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
91
99
|
id?: number | undefined;
|
|
92
100
|
iconUrl?: string | undefined;
|
|
93
101
|
category?: string | undefined;
|
|
102
|
+
popular?: boolean | undefined;
|
|
103
|
+
tradable?: boolean | undefined;
|
|
94
104
|
pricingId?: number | undefined;
|
|
95
105
|
}, {
|
|
96
106
|
address: string;
|
|
@@ -104,6 +114,8 @@ export declare const webTokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
104
114
|
id?: number | undefined;
|
|
105
115
|
iconUrl?: string | undefined;
|
|
106
116
|
category?: string | undefined;
|
|
117
|
+
popular?: boolean | undefined;
|
|
118
|
+
tradable?: boolean | undefined;
|
|
107
119
|
pricingId?: number | undefined;
|
|
108
120
|
}>;
|
|
109
121
|
export type WebTokenWithBalance = z.infer<typeof webTokenWithBalanceSchema>;
|
|
@@ -120,6 +132,8 @@ export declare const webTokenWithPriceSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
120
132
|
category: z.ZodOptional<z.ZodString>;
|
|
121
133
|
dappId: z.ZodOptional<z.ZodString>;
|
|
122
134
|
brandColor: z.ZodOptional<z.ZodString>;
|
|
135
|
+
tradable: z.ZodOptional<z.ZodBoolean>;
|
|
136
|
+
popular: z.ZodOptional<z.ZodBoolean>;
|
|
123
137
|
}>, {
|
|
124
138
|
currencyValue: z.ZodString;
|
|
125
139
|
currencySymbol: z.ZodOptional<z.ZodString>;
|
|
@@ -139,6 +153,8 @@ export declare const webTokenWithPriceSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
139
153
|
iconUrl?: string | undefined;
|
|
140
154
|
category?: string | undefined;
|
|
141
155
|
unitCurrencyValue?: string | undefined;
|
|
156
|
+
popular?: boolean | undefined;
|
|
157
|
+
tradable?: boolean | undefined;
|
|
142
158
|
pricingId?: number | undefined;
|
|
143
159
|
ethDayChange?: string | undefined;
|
|
144
160
|
ccyDayChange?: string | undefined;
|
|
@@ -156,6 +172,8 @@ export declare const webTokenWithPriceSchema: z.ZodObject<z.objectUtil.extendSha
|
|
|
156
172
|
iconUrl?: string | undefined;
|
|
157
173
|
category?: string | undefined;
|
|
158
174
|
unitCurrencyValue?: string | undefined;
|
|
175
|
+
popular?: boolean | undefined;
|
|
176
|
+
tradable?: boolean | undefined;
|
|
159
177
|
pricingId?: number | undefined;
|
|
160
178
|
ethDayChange?: string | undefined;
|
|
161
179
|
ccyDayChange?: string | undefined;
|
|
@@ -175,6 +193,8 @@ export declare const webTokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil
|
|
|
175
193
|
category: z.ZodOptional<z.ZodString>;
|
|
176
194
|
dappId: z.ZodOptional<z.ZodString>;
|
|
177
195
|
brandColor: z.ZodOptional<z.ZodString>;
|
|
196
|
+
tradable: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
+
popular: z.ZodOptional<z.ZodBoolean>;
|
|
178
198
|
}>, {
|
|
179
199
|
currencyValue: z.ZodString;
|
|
180
200
|
currencySymbol: z.ZodOptional<z.ZodString>;
|
|
@@ -193,6 +213,8 @@ export declare const webTokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil
|
|
|
193
213
|
category: z.ZodOptional<z.ZodString>;
|
|
194
214
|
dappId: z.ZodOptional<z.ZodString>;
|
|
195
215
|
brandColor: z.ZodOptional<z.ZodString>;
|
|
216
|
+
tradable: z.ZodOptional<z.ZodBoolean>;
|
|
217
|
+
popular: z.ZodOptional<z.ZodBoolean>;
|
|
196
218
|
balance: z.ZodString;
|
|
197
219
|
}>, "strip", z.ZodTypeAny, {
|
|
198
220
|
address: `0x${string}`;
|
|
@@ -208,6 +230,8 @@ export declare const webTokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil
|
|
|
208
230
|
iconUrl?: string | undefined;
|
|
209
231
|
category?: string | undefined;
|
|
210
232
|
unitCurrencyValue?: string | undefined;
|
|
233
|
+
popular?: boolean | undefined;
|
|
234
|
+
tradable?: boolean | undefined;
|
|
211
235
|
pricingId?: number | undefined;
|
|
212
236
|
ethDayChange?: string | undefined;
|
|
213
237
|
ccyDayChange?: string | undefined;
|
|
@@ -226,6 +250,8 @@ export declare const webTokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil
|
|
|
226
250
|
iconUrl?: string | undefined;
|
|
227
251
|
category?: string | undefined;
|
|
228
252
|
unitCurrencyValue?: string | undefined;
|
|
253
|
+
popular?: boolean | undefined;
|
|
254
|
+
tradable?: boolean | undefined;
|
|
229
255
|
pricingId?: number | undefined;
|
|
230
256
|
ethDayChange?: string | undefined;
|
|
231
257
|
ccyDayChange?: string | undefined;
|
|
@@ -245,6 +271,8 @@ export declare const webTokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<
|
|
|
245
271
|
category: z.ZodOptional<z.ZodString>;
|
|
246
272
|
dappId: z.ZodOptional<z.ZodString>;
|
|
247
273
|
brandColor: z.ZodOptional<z.ZodString>;
|
|
274
|
+
tradable: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
+
popular: z.ZodOptional<z.ZodBoolean>;
|
|
248
276
|
}>, {
|
|
249
277
|
currencyValue: z.ZodString;
|
|
250
278
|
currencySymbol: z.ZodOptional<z.ZodString>;
|
|
@@ -263,6 +291,8 @@ export declare const webTokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<
|
|
|
263
291
|
category: z.ZodOptional<z.ZodString>;
|
|
264
292
|
dappId: z.ZodOptional<z.ZodString>;
|
|
265
293
|
brandColor: z.ZodOptional<z.ZodString>;
|
|
294
|
+
tradable: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
+
popular: z.ZodOptional<z.ZodBoolean>;
|
|
266
296
|
balance: z.ZodString;
|
|
267
297
|
}>, "strip", z.ZodTypeAny, {
|
|
268
298
|
address: `0x${string}`;
|
|
@@ -278,6 +308,8 @@ export declare const webTokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<
|
|
|
278
308
|
iconUrl?: string | undefined;
|
|
279
309
|
category?: string | undefined;
|
|
280
310
|
unitCurrencyValue?: string | undefined;
|
|
311
|
+
popular?: boolean | undefined;
|
|
312
|
+
tradable?: boolean | undefined;
|
|
281
313
|
pricingId?: number | undefined;
|
|
282
314
|
ethDayChange?: string | undefined;
|
|
283
315
|
ccyDayChange?: string | undefined;
|
|
@@ -296,6 +328,8 @@ export declare const webTokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<
|
|
|
296
328
|
iconUrl?: string | undefined;
|
|
297
329
|
category?: string | undefined;
|
|
298
330
|
unitCurrencyValue?: string | undefined;
|
|
331
|
+
popular?: boolean | undefined;
|
|
332
|
+
tradable?: boolean | undefined;
|
|
299
333
|
pricingId?: number | undefined;
|
|
300
334
|
ethDayChange?: string | undefined;
|
|
301
335
|
ccyDayChange?: string | undefined;
|
|
@@ -367,9 +401,9 @@ export declare const webTokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
367
401
|
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
368
402
|
}>, "strip", z.ZodTypeAny, {
|
|
369
403
|
symbol: string;
|
|
370
|
-
name: string;
|
|
371
404
|
address: `0x${string}`;
|
|
372
405
|
networkId: string;
|
|
406
|
+
name: string;
|
|
373
407
|
decimals: number;
|
|
374
408
|
id: number;
|
|
375
409
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -391,9 +425,9 @@ export declare const webTokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendS
|
|
|
391
425
|
tags?: string[] | undefined;
|
|
392
426
|
}, {
|
|
393
427
|
symbol: string;
|
|
394
|
-
name: string;
|
|
395
428
|
address: string;
|
|
396
429
|
networkId: string;
|
|
430
|
+
name: string;
|
|
397
431
|
decimals: number;
|
|
398
432
|
id: number;
|
|
399
433
|
category: "tokens" | "currencies" | "savings";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z as e } from "zod";
|
|
2
|
-
import { addressSchema as
|
|
3
|
-
import { apiPriceDetailsSchema as
|
|
2
|
+
import { addressSchema as a } from "../../../chains/starknet/address.js";
|
|
3
|
+
import { apiPriceDetailsSchema as r, apiTokenInfoSchema as t } from "./backend.model.js";
|
|
4
4
|
const n = e.object({
|
|
5
|
-
address:
|
|
5
|
+
address: a,
|
|
6
6
|
networkId: e.string({ required_error: "Network is required" })
|
|
7
|
-
}, { required_error: "Token is required" }),
|
|
7
|
+
}, { required_error: "Token is required" }), m = n.required().extend({
|
|
8
8
|
balance: e.string()
|
|
9
9
|
}), o = n.required().extend({
|
|
10
10
|
id: e.number().optional(),
|
|
@@ -16,7 +16,9 @@ const n = e.object({
|
|
|
16
16
|
pricingId: e.number().optional(),
|
|
17
17
|
category: e.string().optional(),
|
|
18
18
|
dappId: e.string().optional(),
|
|
19
|
-
brandColor: e.string().optional()
|
|
19
|
+
brandColor: e.string().optional(),
|
|
20
|
+
tradable: e.boolean().optional(),
|
|
21
|
+
popular: e.boolean().optional()
|
|
20
22
|
}), i = o.extend({
|
|
21
23
|
balance: e.string()
|
|
22
24
|
}), c = o.extend({
|
|
@@ -28,13 +30,13 @@ const n = e.object({
|
|
|
28
30
|
}), s = c.extend({
|
|
29
31
|
...i.shape
|
|
30
32
|
}), h = e.array(s), b = n.extend({
|
|
31
|
-
...
|
|
33
|
+
...r.shape
|
|
32
34
|
}), g = n.extend({
|
|
33
35
|
...t.shape
|
|
34
36
|
});
|
|
35
37
|
export {
|
|
36
38
|
n as webBaseTokenSchema,
|
|
37
|
-
|
|
39
|
+
m as webBaseTokenWithBalanceSchema,
|
|
38
40
|
g as webTokenInfoDetailsSchema,
|
|
39
41
|
b as webTokenPriceDetailsSchema,
|
|
40
42
|
o as webTokenSchema,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../chains/starknet/address.cjs"),d=(e,r)=>s.isEqualAddress(e.address,r.address)&&e.networkId===r.networkId;exports.equalToken=d;
|
|
@@ -6,24 +6,24 @@ export declare const trpcErrorSchema: z.ZodObject<{
|
|
|
6
6
|
message: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
message: string;
|
|
9
|
-
name?: string | undefined;
|
|
10
9
|
code?: string | undefined;
|
|
10
|
+
name?: string | undefined;
|
|
11
11
|
}, {
|
|
12
12
|
message: string;
|
|
13
|
-
name?: string | undefined;
|
|
14
13
|
code?: string | undefined;
|
|
14
|
+
name?: string | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
data: {
|
|
18
18
|
message: string;
|
|
19
|
-
name?: string | undefined;
|
|
20
19
|
code?: string | undefined;
|
|
20
|
+
name?: string | undefined;
|
|
21
21
|
};
|
|
22
22
|
}, {
|
|
23
23
|
data: {
|
|
24
24
|
message: string;
|
|
25
|
-
name?: string | undefined;
|
|
26
25
|
code?: string | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
}>;
|
|
29
29
|
export declare const getMessageFromTrpcError: (error: unknown) => string | undefined;
|
|
@@ -108,34 +108,34 @@ export declare const typedDataSchema: z.ZodObject<{
|
|
|
108
108
|
type: z.ZodLiteral<"merkletree">;
|
|
109
109
|
contains: z.ZodString;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
|
-
name: string;
|
|
112
111
|
type: "merkletree";
|
|
112
|
+
name: string;
|
|
113
113
|
contains: string;
|
|
114
114
|
}, {
|
|
115
|
-
name: string;
|
|
116
115
|
type: "merkletree";
|
|
116
|
+
name: string;
|
|
117
117
|
contains: string;
|
|
118
118
|
}>, z.ZodObject<{
|
|
119
119
|
name: z.ZodString;
|
|
120
120
|
type: z.ZodLiteral<"enum">;
|
|
121
121
|
contains: z.ZodString;
|
|
122
122
|
}, "strip", z.ZodTypeAny, {
|
|
123
|
-
name: string;
|
|
124
123
|
type: "enum";
|
|
124
|
+
name: string;
|
|
125
125
|
contains: string;
|
|
126
126
|
}, {
|
|
127
|
-
name: string;
|
|
128
127
|
type: "enum";
|
|
128
|
+
name: string;
|
|
129
129
|
contains: string;
|
|
130
130
|
}>, z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
type: z.ZodString;
|
|
133
133
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
-
name: string;
|
|
135
134
|
type: string;
|
|
136
|
-
}, {
|
|
137
135
|
name: string;
|
|
136
|
+
}, {
|
|
138
137
|
type: string;
|
|
138
|
+
name: string;
|
|
139
139
|
}>]>, "many">>;
|
|
140
140
|
primaryType: z.ZodString;
|
|
141
141
|
domain: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -143,32 +143,32 @@ export declare const typedDataSchema: z.ZodObject<{
|
|
|
143
143
|
}, "strip", z.ZodTypeAny, {
|
|
144
144
|
message: Record<string, any> | z.objectOutputType<{}, z.ZodTypeAny, "passthrough">;
|
|
145
145
|
types: Record<string, ({
|
|
146
|
-
name: string;
|
|
147
146
|
type: "merkletree";
|
|
147
|
+
name: string;
|
|
148
148
|
contains: string;
|
|
149
149
|
} | {
|
|
150
|
-
name: string;
|
|
151
150
|
type: "enum";
|
|
151
|
+
name: string;
|
|
152
152
|
contains: string;
|
|
153
153
|
} | {
|
|
154
|
-
name: string;
|
|
155
154
|
type: string;
|
|
155
|
+
name: string;
|
|
156
156
|
})[]>;
|
|
157
157
|
primaryType: string;
|
|
158
158
|
domain: Record<string, unknown>;
|
|
159
159
|
}, {
|
|
160
160
|
message: Record<string, any> | z.objectInputType<{}, z.ZodTypeAny, "passthrough">;
|
|
161
161
|
types: Record<string, ({
|
|
162
|
-
name: string;
|
|
163
162
|
type: "merkletree";
|
|
163
|
+
name: string;
|
|
164
164
|
contains: string;
|
|
165
165
|
} | {
|
|
166
|
-
name: string;
|
|
167
166
|
type: "enum";
|
|
167
|
+
name: string;
|
|
168
168
|
contains: string;
|
|
169
169
|
} | {
|
|
170
|
-
name: string;
|
|
171
170
|
type: string;
|
|
171
|
+
name: string;
|
|
172
172
|
})[]>;
|
|
173
173
|
primaryType: string;
|
|
174
174
|
domain: Record<string, unknown>;
|