@argent/x-shared 1.27.0 → 1.29.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/features/simulation/activity/schema.d.ts +338 -338
- package/dist/features/simulation/activity/utils/createNativeActivity.d.ts +10 -10
- package/dist/features/simulation/activity/utils/index.d.ts +1 -0
- package/dist/features/simulation/activity/utils/isUpgradeActivity.d.ts +3 -0
- package/dist/features/simulation/transactionReview/schema.d.ts +1562 -1562
- package/dist/index.d.ts +10 -9
- package/dist/index.js +3 -3
- package/dist/index.mjs +3937 -2230
- package/dist/knownDapps/schema.d.ts +22 -22
- package/dist/knownDapps/utils/getDapplandUrl.d.ts +1 -1
- package/dist/nameResolution/ResolveNameService.d.ts +1 -1
- package/dist/nameResolution/schema.d.ts +4 -4
- package/dist/onchainRecovery/IOnchainRecoveryService.d.ts +13 -0
- package/dist/onchainRecovery/OnchainRecoveryService.d.ts +18 -0
- package/dist/onchainRecovery/index.d.ts +3 -0
- package/dist/onchainRecovery/schema.d.ts +73 -0
- package/dist/{schema-THcYC9Pj.mjs → schema-3qaq9ugL.mjs} +141 -141
- package/dist/{schema-CtZY8-Gm.js → schema-C-_pmcO7.js} +1 -1
- package/dist/simulation.js +1 -1
- package/dist/simulation.mjs +113 -93
- package/dist/tokens/service/implementation.d.ts +1 -1
- package/dist/tokens/service/types/backend.model.d.ts +20 -20
- package/dist/tokens/service/types/defiPosition.model.d.ts +236 -236
- package/dist/tokens/service/types/token.model.d.ts +24 -24
- package/dist/tokens/service/types/unclaimedRewards.model.d.ts +8 -8
- package/dist/transactions/errors.d.ts +4 -4
- package/dist/transactions/useTransactionReviewV2web.d.ts +56 -56
- package/dist/utils/starknet/starknetSchemas.d.ts +212 -212
- package/package.json +2 -1
|
@@ -45,24 +45,24 @@ export declare const tokenSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
45
45
|
symbol?: string | undefined;
|
|
46
46
|
name?: string | undefined;
|
|
47
47
|
decimals?: number | undefined;
|
|
48
|
-
|
|
48
|
+
dappId?: string | undefined;
|
|
49
49
|
brandColor?: string | undefined;
|
|
50
|
+
id?: number | undefined;
|
|
50
51
|
iconUrl?: string | undefined;
|
|
51
52
|
category?: string | undefined;
|
|
52
53
|
pricingId?: number | undefined;
|
|
53
|
-
dappId?: string | undefined;
|
|
54
54
|
}, {
|
|
55
55
|
address: string;
|
|
56
56
|
networkId: string;
|
|
57
57
|
symbol?: string | undefined;
|
|
58
58
|
name?: string | undefined;
|
|
59
59
|
decimals?: number | undefined;
|
|
60
|
-
|
|
60
|
+
dappId?: string | undefined;
|
|
61
61
|
brandColor?: string | undefined;
|
|
62
|
+
id?: number | undefined;
|
|
62
63
|
iconUrl?: string | undefined;
|
|
63
64
|
category?: string | undefined;
|
|
64
65
|
pricingId?: number | undefined;
|
|
65
|
-
dappId?: string | undefined;
|
|
66
66
|
}>;
|
|
67
67
|
export type Token = z.infer<typeof tokenSchema>;
|
|
68
68
|
export declare const tokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -87,12 +87,12 @@ export declare const tokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
87
87
|
symbol?: string | undefined;
|
|
88
88
|
name?: string | undefined;
|
|
89
89
|
decimals?: number | undefined;
|
|
90
|
-
|
|
90
|
+
dappId?: string | undefined;
|
|
91
91
|
brandColor?: string | undefined;
|
|
92
|
+
id?: number | undefined;
|
|
92
93
|
iconUrl?: string | undefined;
|
|
93
94
|
category?: string | undefined;
|
|
94
95
|
pricingId?: number | undefined;
|
|
95
|
-
dappId?: string | undefined;
|
|
96
96
|
}, {
|
|
97
97
|
address: string;
|
|
98
98
|
networkId: string;
|
|
@@ -100,12 +100,12 @@ export declare const tokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
100
100
|
symbol?: string | undefined;
|
|
101
101
|
name?: string | undefined;
|
|
102
102
|
decimals?: number | undefined;
|
|
103
|
-
|
|
103
|
+
dappId?: string | undefined;
|
|
104
104
|
brandColor?: string | undefined;
|
|
105
|
+
id?: number | undefined;
|
|
105
106
|
iconUrl?: string | undefined;
|
|
106
107
|
category?: string | undefined;
|
|
107
108
|
pricingId?: number | undefined;
|
|
108
|
-
dappId?: string | undefined;
|
|
109
109
|
}>;
|
|
110
110
|
export type TokenWithBalance = z.infer<typeof tokenWithBalanceSchema>;
|
|
111
111
|
export declare const tokenWithPriceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
@@ -133,13 +133,13 @@ export declare const tokenWithPriceSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
133
133
|
symbol?: string | undefined;
|
|
134
134
|
name?: string | undefined;
|
|
135
135
|
decimals?: number | undefined;
|
|
136
|
+
dappId?: string | undefined;
|
|
137
|
+
brandColor?: string | undefined;
|
|
136
138
|
unitCurrencyValue?: string | undefined;
|
|
137
139
|
id?: number | undefined;
|
|
138
|
-
brandColor?: string | undefined;
|
|
139
140
|
iconUrl?: string | undefined;
|
|
140
141
|
category?: string | undefined;
|
|
141
142
|
pricingId?: number | undefined;
|
|
142
|
-
dappId?: string | undefined;
|
|
143
143
|
ethDayChange?: string | undefined;
|
|
144
144
|
ccyDayChange?: string | undefined;
|
|
145
145
|
}, {
|
|
@@ -149,13 +149,13 @@ export declare const tokenWithPriceSchema: z.ZodObject<z.objectUtil.extendShape<
|
|
|
149
149
|
symbol?: string | undefined;
|
|
150
150
|
name?: string | undefined;
|
|
151
151
|
decimals?: number | undefined;
|
|
152
|
+
dappId?: string | undefined;
|
|
153
|
+
brandColor?: string | undefined;
|
|
152
154
|
unitCurrencyValue?: string | undefined;
|
|
153
155
|
id?: number | undefined;
|
|
154
|
-
brandColor?: string | undefined;
|
|
155
156
|
iconUrl?: string | undefined;
|
|
156
157
|
category?: string | undefined;
|
|
157
158
|
pricingId?: number | undefined;
|
|
158
|
-
dappId?: string | undefined;
|
|
159
159
|
ethDayChange?: string | undefined;
|
|
160
160
|
ccyDayChange?: string | undefined;
|
|
161
161
|
}>;
|
|
@@ -199,13 +199,13 @@ export declare const tokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil.ex
|
|
|
199
199
|
symbol?: string | undefined;
|
|
200
200
|
name?: string | undefined;
|
|
201
201
|
decimals?: number | undefined;
|
|
202
|
+
dappId?: string | undefined;
|
|
203
|
+
brandColor?: string | undefined;
|
|
202
204
|
unitCurrencyValue?: string | undefined;
|
|
203
205
|
id?: number | undefined;
|
|
204
|
-
brandColor?: string | undefined;
|
|
205
206
|
iconUrl?: string | undefined;
|
|
206
207
|
category?: string | undefined;
|
|
207
208
|
pricingId?: number | undefined;
|
|
208
|
-
dappId?: string | undefined;
|
|
209
209
|
ethDayChange?: string | undefined;
|
|
210
210
|
ccyDayChange?: string | undefined;
|
|
211
211
|
}, {
|
|
@@ -216,13 +216,13 @@ export declare const tokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil.ex
|
|
|
216
216
|
symbol?: string | undefined;
|
|
217
217
|
name?: string | undefined;
|
|
218
218
|
decimals?: number | undefined;
|
|
219
|
+
dappId?: string | undefined;
|
|
220
|
+
brandColor?: string | undefined;
|
|
219
221
|
unitCurrencyValue?: string | undefined;
|
|
220
222
|
id?: number | undefined;
|
|
221
|
-
brandColor?: string | undefined;
|
|
222
223
|
iconUrl?: string | undefined;
|
|
223
224
|
category?: string | undefined;
|
|
224
225
|
pricingId?: number | undefined;
|
|
225
|
-
dappId?: string | undefined;
|
|
226
226
|
ethDayChange?: string | undefined;
|
|
227
227
|
ccyDayChange?: string | undefined;
|
|
228
228
|
}>;
|
|
@@ -266,13 +266,13 @@ export declare const tokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<z.o
|
|
|
266
266
|
symbol?: string | undefined;
|
|
267
267
|
name?: string | undefined;
|
|
268
268
|
decimals?: number | undefined;
|
|
269
|
+
dappId?: string | undefined;
|
|
270
|
+
brandColor?: string | undefined;
|
|
269
271
|
unitCurrencyValue?: string | undefined;
|
|
270
272
|
id?: number | undefined;
|
|
271
|
-
brandColor?: string | undefined;
|
|
272
273
|
iconUrl?: string | undefined;
|
|
273
274
|
category?: string | undefined;
|
|
274
275
|
pricingId?: number | undefined;
|
|
275
|
-
dappId?: string | undefined;
|
|
276
276
|
ethDayChange?: string | undefined;
|
|
277
277
|
ccyDayChange?: string | undefined;
|
|
278
278
|
}, {
|
|
@@ -283,13 +283,13 @@ export declare const tokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<z.o
|
|
|
283
283
|
symbol?: string | undefined;
|
|
284
284
|
name?: string | undefined;
|
|
285
285
|
decimals?: number | undefined;
|
|
286
|
+
dappId?: string | undefined;
|
|
287
|
+
brandColor?: string | undefined;
|
|
286
288
|
unitCurrencyValue?: string | undefined;
|
|
287
289
|
id?: number | undefined;
|
|
288
|
-
brandColor?: string | undefined;
|
|
289
290
|
iconUrl?: string | undefined;
|
|
290
291
|
category?: string | undefined;
|
|
291
292
|
pricingId?: number | undefined;
|
|
292
|
-
dappId?: string | undefined;
|
|
293
293
|
ethDayChange?: string | undefined;
|
|
294
294
|
ccyDayChange?: string | undefined;
|
|
295
295
|
}>, "many">;
|
|
@@ -361,8 +361,8 @@ export declare const tokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
361
361
|
symbol: string;
|
|
362
362
|
name: string;
|
|
363
363
|
address: `0x${string}`;
|
|
364
|
-
networkId: string;
|
|
365
364
|
decimals: number;
|
|
365
|
+
networkId: string;
|
|
366
366
|
id: number;
|
|
367
367
|
sendable: boolean;
|
|
368
368
|
popular: boolean;
|
|
@@ -370,10 +370,10 @@ export declare const tokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
370
370
|
listed: boolean;
|
|
371
371
|
tradable: boolean;
|
|
372
372
|
category: "tokens" | "currencies" | "savings";
|
|
373
|
+
dappId?: string | undefined;
|
|
373
374
|
brandColor?: string | undefined;
|
|
374
375
|
iconUrl?: string | undefined;
|
|
375
376
|
pricingId?: number | undefined;
|
|
376
|
-
dappId?: string | undefined;
|
|
377
377
|
marketData?: {
|
|
378
378
|
marketCap: number;
|
|
379
379
|
marketCap24hChange: number;
|
|
@@ -385,8 +385,8 @@ export declare const tokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
385
385
|
symbol: string;
|
|
386
386
|
name: string;
|
|
387
387
|
address: string;
|
|
388
|
-
networkId: string;
|
|
389
388
|
decimals: number;
|
|
389
|
+
networkId: string;
|
|
390
390
|
id: number;
|
|
391
391
|
sendable: boolean;
|
|
392
392
|
popular: boolean;
|
|
@@ -394,10 +394,10 @@ export declare const tokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
394
394
|
listed: boolean;
|
|
395
395
|
tradable: boolean;
|
|
396
396
|
category: "tokens" | "currencies" | "savings";
|
|
397
|
+
dappId?: string | undefined;
|
|
397
398
|
brandColor?: string | undefined;
|
|
398
399
|
iconUrl?: string | undefined;
|
|
399
400
|
pricingId?: number | undefined;
|
|
400
|
-
dappId?: string | undefined;
|
|
401
401
|
marketData?: {
|
|
402
402
|
marketCap: number;
|
|
403
403
|
marketCap24hChange: number;
|
|
@@ -48,10 +48,10 @@ export declare const airdropSchema: z.ZodObject<{
|
|
|
48
48
|
listed: boolean;
|
|
49
49
|
tradable: boolean;
|
|
50
50
|
category: "tokens" | "currencies" | "savings";
|
|
51
|
+
dappId?: string | undefined;
|
|
51
52
|
brandColor?: string | undefined;
|
|
52
53
|
iconUrl?: string | undefined;
|
|
53
54
|
pricingId?: number | undefined;
|
|
54
|
-
dappId?: string | undefined;
|
|
55
55
|
marketData?: {
|
|
56
56
|
marketCap: number;
|
|
57
57
|
marketCap24hChange: number;
|
|
@@ -71,10 +71,10 @@ export declare const airdropSchema: z.ZodObject<{
|
|
|
71
71
|
listed: boolean;
|
|
72
72
|
tradable: boolean;
|
|
73
73
|
category: "tokens" | "currencies" | "savings";
|
|
74
|
+
dappId?: string | undefined;
|
|
74
75
|
brandColor?: string | undefined;
|
|
75
76
|
iconUrl?: string | undefined;
|
|
76
77
|
pricingId?: number | undefined;
|
|
77
|
-
dappId?: string | undefined;
|
|
78
78
|
marketData?: {
|
|
79
79
|
marketCap: number;
|
|
80
80
|
marketCap24hChange: number;
|
|
@@ -106,10 +106,10 @@ export declare const airdropSchema: z.ZodObject<{
|
|
|
106
106
|
listed: boolean;
|
|
107
107
|
tradable: boolean;
|
|
108
108
|
category: "tokens" | "currencies" | "savings";
|
|
109
|
+
dappId?: string | undefined;
|
|
109
110
|
brandColor?: string | undefined;
|
|
110
111
|
iconUrl?: string | undefined;
|
|
111
112
|
pricingId?: number | undefined;
|
|
112
|
-
dappId?: string | undefined;
|
|
113
113
|
marketData?: {
|
|
114
114
|
marketCap: number;
|
|
115
115
|
marketCap24hChange: number;
|
|
@@ -137,10 +137,10 @@ export declare const airdropSchema: z.ZodObject<{
|
|
|
137
137
|
listed: boolean;
|
|
138
138
|
tradable: boolean;
|
|
139
139
|
category: "tokens" | "currencies" | "savings";
|
|
140
|
+
dappId?: string | undefined;
|
|
140
141
|
brandColor?: string | undefined;
|
|
141
142
|
iconUrl?: string | undefined;
|
|
142
143
|
pricingId?: number | undefined;
|
|
143
|
-
dappId?: string | undefined;
|
|
144
144
|
marketData?: {
|
|
145
145
|
marketCap: number;
|
|
146
146
|
marketCap24hChange: number;
|
|
@@ -198,10 +198,10 @@ export declare const unclaimedRewardsSchema: z.ZodArray<z.ZodObject<{
|
|
|
198
198
|
listed: boolean;
|
|
199
199
|
tradable: boolean;
|
|
200
200
|
category: "tokens" | "currencies" | "savings";
|
|
201
|
+
dappId?: string | undefined;
|
|
201
202
|
brandColor?: string | undefined;
|
|
202
203
|
iconUrl?: string | undefined;
|
|
203
204
|
pricingId?: number | undefined;
|
|
204
|
-
dappId?: string | undefined;
|
|
205
205
|
marketData?: {
|
|
206
206
|
marketCap: number;
|
|
207
207
|
marketCap24hChange: number;
|
|
@@ -221,10 +221,10 @@ export declare const unclaimedRewardsSchema: z.ZodArray<z.ZodObject<{
|
|
|
221
221
|
listed: boolean;
|
|
222
222
|
tradable: boolean;
|
|
223
223
|
category: "tokens" | "currencies" | "savings";
|
|
224
|
+
dappId?: string | undefined;
|
|
224
225
|
brandColor?: string | undefined;
|
|
225
226
|
iconUrl?: string | undefined;
|
|
226
227
|
pricingId?: number | undefined;
|
|
227
|
-
dappId?: string | undefined;
|
|
228
228
|
marketData?: {
|
|
229
229
|
marketCap: number;
|
|
230
230
|
marketCap24hChange: number;
|
|
@@ -256,10 +256,10 @@ export declare const unclaimedRewardsSchema: z.ZodArray<z.ZodObject<{
|
|
|
256
256
|
listed: boolean;
|
|
257
257
|
tradable: boolean;
|
|
258
258
|
category: "tokens" | "currencies" | "savings";
|
|
259
|
+
dappId?: string | undefined;
|
|
259
260
|
brandColor?: string | undefined;
|
|
260
261
|
iconUrl?: string | undefined;
|
|
261
262
|
pricingId?: number | undefined;
|
|
262
|
-
dappId?: string | undefined;
|
|
263
263
|
marketData?: {
|
|
264
264
|
marketCap: number;
|
|
265
265
|
marketCap24hChange: number;
|
|
@@ -287,10 +287,10 @@ export declare const unclaimedRewardsSchema: z.ZodArray<z.ZodObject<{
|
|
|
287
287
|
listed: boolean;
|
|
288
288
|
tradable: boolean;
|
|
289
289
|
category: "tokens" | "currencies" | "savings";
|
|
290
|
+
dappId?: string | undefined;
|
|
290
291
|
brandColor?: string | undefined;
|
|
291
292
|
iconUrl?: string | undefined;
|
|
292
293
|
pricingId?: number | undefined;
|
|
293
|
-
dappId?: string | undefined;
|
|
294
294
|
marketData?: {
|
|
295
295
|
marketCap: number;
|
|
296
296
|
marketCap24hChange: number;
|
|
@@ -7,24 +7,24 @@ export declare const trpcErrorSchema: z.ZodObject<{
|
|
|
7
7
|
message: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
message: string;
|
|
10
|
-
code?: string | undefined;
|
|
11
10
|
name?: string | undefined;
|
|
11
|
+
code?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
message: string;
|
|
14
|
-
code?: string | undefined;
|
|
15
14
|
name?: string | undefined;
|
|
15
|
+
code?: string | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
data: {
|
|
19
19
|
message: string;
|
|
20
|
-
code?: string | undefined;
|
|
21
20
|
name?: string | undefined;
|
|
21
|
+
code?: string | undefined;
|
|
22
22
|
};
|
|
23
23
|
}, {
|
|
24
24
|
data: {
|
|
25
25
|
message: string;
|
|
26
|
-
code?: string | undefined;
|
|
27
26
|
name?: string | undefined;
|
|
27
|
+
code?: string | undefined;
|
|
28
28
|
};
|
|
29
29
|
}>;
|
|
30
30
|
export declare const getMessageFromTrpcError: (error: unknown) => string | undefined;
|