@argent/x-shared 1.34.5 → 1.35.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.
Files changed (43) hide show
  1. package/dist/bips-CP71ZN9a.js +1 -0
  2. package/dist/bips-zBtnMbia.mjs +114 -0
  3. package/dist/chains/starknet/address.d.ts +2 -2
  4. package/dist/errors/swap.d.ts +12 -0
  5. package/dist/features/swap/index.d.ts +3 -0
  6. package/dist/features/swap/models/index.d.ts +3 -0
  7. package/dist/features/swap/models/order.model.d.ts +48 -0
  8. package/dist/features/swap/models/quote.model.d.ts +82 -0
  9. package/dist/features/swap/models/trade.model.d.ts +186 -0
  10. package/dist/features/swap/services/implementation.d.ts +14 -0
  11. package/dist/features/swap/services/index.d.ts +2 -0
  12. package/dist/features/swap/services/interface.d.ts +8 -0
  13. package/dist/features/swap/services/order.mock.d.ts +7 -0
  14. package/dist/features/swap/services/quote.mock.d.ts +29 -0
  15. package/dist/features/swap/tests/token.mock.d.ts +2 -0
  16. package/dist/features/swap/tests/trade.mock.d.ts +2 -0
  17. package/dist/features/swap/tests/walletAccount.mock.d.ts +43 -0
  18. package/dist/features/swap/utils/index.d.ts +2 -0
  19. package/dist/features/swap/utils/slippage.d.ts +16 -0
  20. package/dist/features/swap/utils/totalFee.d.ts +5 -0
  21. package/dist/index.js +2 -2
  22. package/dist/index.mjs +1326 -1407
  23. package/dist/nfts/BackendNftService.d.ts +2 -4
  24. package/dist/nfts/INFTService.d.ts +1 -1
  25. package/dist/simulation.js +1 -1
  26. package/dist/simulation.mjs +101 -100
  27. package/dist/swap.d.ts +2 -0
  28. package/dist/swap.js +1 -0
  29. package/dist/swap.mjs +183 -0
  30. package/dist/tokens/service/implementation.d.ts +3 -3
  31. package/dist/tokens/service/interface.d.ts +2 -2
  32. package/dist/tokens/service/types/defiPosition.model.d.ts +117 -0
  33. package/dist/tokens/service/types/index.d.ts +1 -0
  34. package/dist/tokens/service/types/{token.model.d.ts → webToken.model.d.ts} +27 -18
  35. package/dist/transactionVersion-CACUj2ch.mjs +793 -0
  36. package/dist/transactionVersion-CaRQ5Df4.js +1 -0
  37. package/dist/utils/bips.d.ts +7 -0
  38. package/dist/utils/index.d.ts +1 -0
  39. package/dist/webToken.model-Cl4dvcmj.mjs +1881 -0
  40. package/dist/webToken.model-Dsd8Rd3e.js +1 -0
  41. package/package.json +9 -2
  42. package/dist/transactionVersion-CL9JUEKt.js +0 -1
  43. package/dist/transactionVersion-CpEa4gsg.mjs +0 -2661
@@ -2,3 +2,4 @@ export * from './backend.model';
2
2
  export * from './defiPosition.model';
3
3
  export * from './defiPositionType.model';
4
4
  export * from './unclaimedRewards.model';
5
+ export * from './webToken.model';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const baseTokenSchema: z.ZodObject<{
2
+ export declare const webBaseTokenSchema: z.ZodObject<{
3
3
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
4
4
  networkId: z.ZodString;
5
5
  }, "strip", z.ZodTypeAny, {
@@ -9,8 +9,8 @@ export declare const baseTokenSchema: z.ZodObject<{
9
9
  address: string;
10
10
  networkId: string;
11
11
  }>;
12
- export type BaseToken = z.infer<typeof baseTokenSchema>;
13
- export declare const baseTokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendShape<{
12
+ export type WebBaseToken = z.infer<typeof webBaseTokenSchema>;
13
+ export declare const webBaseTokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendShape<{
14
14
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
15
15
  networkId: z.ZodString;
16
16
  }, {
@@ -24,8 +24,8 @@ export declare const baseTokenWithBalanceSchema: z.ZodObject<z.objectUtil.extend
24
24
  networkId: string;
25
25
  balance: string;
26
26
  }>;
27
- export type BaseTokenWithBalance = z.infer<typeof baseTokenWithBalanceSchema>;
28
- export declare const tokenSchema: z.ZodObject<z.objectUtil.extendShape<{
27
+ export type WebBaseTokenWithBalance = z.infer<typeof webBaseTokenWithBalanceSchema>;
28
+ export declare const webTokenSchema: z.ZodObject<z.objectUtil.extendShape<{
29
29
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
30
30
  networkId: z.ZodString;
31
31
  }, {
@@ -63,8 +63,8 @@ export declare const tokenSchema: z.ZodObject<z.objectUtil.extendShape<{
63
63
  category?: string | undefined;
64
64
  pricingId?: number | undefined;
65
65
  }>;
66
- export type Token = z.infer<typeof tokenSchema>;
67
- export declare const tokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
66
+ export type WebToken = z.infer<typeof webTokenSchema>;
67
+ export declare const webTokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
68
68
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
69
69
  networkId: z.ZodString;
70
70
  }, {
@@ -106,8 +106,8 @@ export declare const tokenWithBalanceSchema: z.ZodObject<z.objectUtil.extendShap
106
106
  category?: string | undefined;
107
107
  pricingId?: number | undefined;
108
108
  }>;
109
- export type TokenWithBalance = z.infer<typeof tokenWithBalanceSchema>;
110
- export declare const tokenWithPriceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
109
+ export type WebTokenWithBalance = z.infer<typeof webTokenWithBalanceSchema>;
110
+ export declare const webTokenWithPriceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
111
111
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
112
112
  networkId: z.ZodString;
113
113
  }, {
@@ -122,6 +122,7 @@ export declare const tokenWithPriceSchema: z.ZodObject<z.objectUtil.extendShape<
122
122
  brandColor: z.ZodOptional<z.ZodString>;
123
123
  }>, {
124
124
  currencyValue: z.ZodString;
125
+ currencySymbol: z.ZodOptional<z.ZodString>;
125
126
  ccyDayChange: z.ZodOptional<z.ZodString>;
126
127
  ethDayChange: z.ZodOptional<z.ZodString>;
127
128
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
@@ -141,6 +142,7 @@ export declare const tokenWithPriceSchema: z.ZodObject<z.objectUtil.extendShape<
141
142
  pricingId?: number | undefined;
142
143
  ethDayChange?: string | undefined;
143
144
  ccyDayChange?: string | undefined;
145
+ currencySymbol?: string | undefined;
144
146
  }, {
145
147
  address: string;
146
148
  networkId: string;
@@ -157,9 +159,10 @@ export declare const tokenWithPriceSchema: z.ZodObject<z.objectUtil.extendShape<
157
159
  pricingId?: number | undefined;
158
160
  ethDayChange?: string | undefined;
159
161
  ccyDayChange?: string | undefined;
162
+ currencySymbol?: string | undefined;
160
163
  }>;
161
- export type TokenWithPrice = z.infer<typeof tokenWithPriceSchema>;
162
- export declare const tokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
164
+ export type WebTokenWithPrice = z.infer<typeof webTokenWithPriceSchema>;
165
+ export declare const webTokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
163
166
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
164
167
  networkId: z.ZodString;
165
168
  }, {
@@ -174,6 +177,7 @@ export declare const tokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil.ex
174
177
  brandColor: z.ZodOptional<z.ZodString>;
175
178
  }>, {
176
179
  currencyValue: z.ZodString;
180
+ currencySymbol: z.ZodOptional<z.ZodString>;
177
181
  ccyDayChange: z.ZodOptional<z.ZodString>;
178
182
  ethDayChange: z.ZodOptional<z.ZodString>;
179
183
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
@@ -207,6 +211,7 @@ export declare const tokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil.ex
207
211
  pricingId?: number | undefined;
208
212
  ethDayChange?: string | undefined;
209
213
  ccyDayChange?: string | undefined;
214
+ currencySymbol?: string | undefined;
210
215
  }, {
211
216
  address: string;
212
217
  networkId: string;
@@ -224,9 +229,10 @@ export declare const tokenWithBalanceAndPriceSchema: z.ZodObject<z.objectUtil.ex
224
229
  pricingId?: number | undefined;
225
230
  ethDayChange?: string | undefined;
226
231
  ccyDayChange?: string | undefined;
232
+ currencySymbol?: string | undefined;
227
233
  }>;
228
- export type TokenWithBalanceAndPrice = z.infer<typeof tokenWithBalanceAndPriceSchema>;
229
- export declare const tokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
234
+ export type WebTokenWithBalanceAndPrice = z.infer<typeof webTokenWithBalanceAndPriceSchema>;
235
+ export declare const webTokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
230
236
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
231
237
  networkId: z.ZodString;
232
238
  }, {
@@ -241,6 +247,7 @@ export declare const tokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<z.o
241
247
  brandColor: z.ZodOptional<z.ZodString>;
242
248
  }>, {
243
249
  currencyValue: z.ZodString;
250
+ currencySymbol: z.ZodOptional<z.ZodString>;
244
251
  ccyDayChange: z.ZodOptional<z.ZodString>;
245
252
  ethDayChange: z.ZodOptional<z.ZodString>;
246
253
  unitCurrencyValue: z.ZodOptional<z.ZodString>;
@@ -274,6 +281,7 @@ export declare const tokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<z.o
274
281
  pricingId?: number | undefined;
275
282
  ethDayChange?: string | undefined;
276
283
  ccyDayChange?: string | undefined;
284
+ currencySymbol?: string | undefined;
277
285
  }, {
278
286
  address: string;
279
287
  networkId: string;
@@ -291,9 +299,10 @@ export declare const tokensWithBalanceAndPriceSchema: z.ZodArray<z.ZodObject<z.o
291
299
  pricingId?: number | undefined;
292
300
  ethDayChange?: string | undefined;
293
301
  ccyDayChange?: string | undefined;
302
+ currencySymbol?: string | undefined;
294
303
  }>, "many">;
295
- export type TokensWithBalanceAndPrice = z.infer<typeof tokensWithBalanceAndPriceSchema>;
296
- export declare const tokenPriceDetailsSchema: z.ZodObject<z.objectUtil.extendShape<{
304
+ export type WebTokensWithBalanceAndPrice = z.infer<typeof webTokensWithBalanceAndPriceSchema>;
305
+ export declare const webTokenPriceDetailsSchema: z.ZodObject<z.objectUtil.extendShape<{
297
306
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
298
307
  networkId: z.ZodString;
299
308
  }, {
@@ -319,8 +328,8 @@ export declare const tokenPriceDetailsSchema: z.ZodObject<z.objectUtil.extendSha
319
328
  ethDayChange: string;
320
329
  ccyDayChange: string;
321
330
  }>;
322
- export type TokenPriceDetails = z.infer<typeof tokenPriceDetailsSchema>;
323
- export declare const tokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendShape<{
331
+ export type WebTokenPriceDetails = z.infer<typeof webTokenPriceDetailsSchema>;
332
+ export declare const webTokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendShape<{
324
333
  address: z.ZodEffects<z.ZodPipeline<z.ZodString, z.ZodEffects<z.ZodString, string, string>>, `0x${string}`, string>;
325
334
  networkId: z.ZodString;
326
335
  }, {
@@ -405,4 +414,4 @@ export declare const tokenInfoDetailsSchema: z.ZodObject<z.objectUtil.extendShap
405
414
  } | undefined;
406
415
  tags?: string[] | undefined;
407
416
  }>;
408
- export type TokenInfoDetails = z.infer<typeof tokenInfoDetailsSchema>;
417
+ export type WebTokenInfoDetails = z.infer<typeof webTokenInfoDetailsSchema>;