@argent/x-shared 1.64.0 → 1.66.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 (37) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.js +407 -402
  3. package/dist/node_modules/.pnpm/@starknet-io_types-js@0.7.7/node_modules/@starknet-io/types-js/dist/esm/api/nonspec.cjs +1 -0
  4. package/dist/node_modules/.pnpm/@starknet-io_types-js@0.7.7/node_modules/@starknet-io/types-js/dist/esm/api/nonspec.js +6 -0
  5. package/dist/simulation.cjs +1 -1
  6. package/dist/simulation.js +20 -18
  7. package/dist/src/accountNameGenerator/x-names.json.js +1 -1
  8. package/dist/src/chains/starknet/network.cjs +1 -1
  9. package/dist/src/chains/starknet/network.d.ts +1 -0
  10. package/dist/src/chains/starknet/network.js +18 -10
  11. package/dist/src/features/paymaster/PaymasterService.cjs +1 -1
  12. package/dist/src/features/paymaster/PaymasterService.d.ts +0 -1
  13. package/dist/src/features/paymaster/PaymasterService.js +19 -25
  14. package/dist/src/features/simulation/activity/schema.cjs +1 -1
  15. package/dist/src/features/simulation/activity/schema.d.ts +238 -12
  16. package/dist/src/features/simulation/activity/schema.js +48 -46
  17. package/dist/src/features/simulation/transactionReview/schema.cjs +1 -1
  18. package/dist/src/features/simulation/transactionReview/schema.d.ts +76 -0
  19. package/dist/src/features/simulation/transactionReview/schema.js +106 -98
  20. package/dist/src/features/swap/models/execute.model.d.ts +35 -0
  21. package/dist/src/features/swap/models/index.d.ts +1 -0
  22. package/dist/src/features/swap/services/ISwapTransactionService.d.ts +10 -0
  23. package/dist/src/features/swap/services/{implementation.d.ts → SwapSharedService.d.ts} +1 -1
  24. package/dist/src/features/swap/services/SwapTransactionService.cjs +1 -0
  25. package/dist/src/features/swap/services/SwapTransactionService.d.ts +15 -0
  26. package/dist/src/features/swap/services/SwapTransactionService.js +60 -0
  27. package/dist/src/features/swap/services/index.d.ts +4 -2
  28. package/dist/src/transactions/index.d.ts +1 -0
  29. package/dist/src/transactions/transactionExecuteTypes.cjs +1 -0
  30. package/dist/src/transactions/transactionExecuteTypes.d.ts +114 -0
  31. package/dist/src/transactions/transactionExecuteTypes.js +23 -0
  32. package/dist/swap.cjs +1 -1
  33. package/dist/swap.js +20 -18
  34. package/package.json +11 -11
  35. /package/dist/src/features/swap/services/{interface.d.ts → ISwapSharedService.d.ts} +0 -0
  36. /package/dist/src/features/swap/services/{implementation.cjs → SwapSharedService.cjs} +0 -0
  37. /package/dist/src/features/swap/services/{implementation.js → SwapSharedService.js} +0 -0
package/dist/swap.js CHANGED
@@ -1,20 +1,22 @@
1
- import { SharedSwapService as r } from "./src/features/swap/services/implementation.js";
2
- import { SwapOrderRequestSchema as o, SwapOrderResponseSchema as p } from "./src/features/swap/models/order.model.js";
3
- import { SwapDataSchema as S, SwapQuoteResponseSchema as c, SwapQuoteRouteSchema as u } from "./src/features/swap/models/quote.model.js";
4
- import { TradeSchema as h, TradeType as T, TradeTypeSchema as x } from "./src/features/swap/models/trade.model.js";
5
- import { calculateTotalFee as n } from "./src/features/swap/utils/totalFee.js";
6
- import { maximumAmountInForTrade as s, minimumAmountOutFromTrade as i } from "./src/features/swap/utils/slippage.js";
1
+ import { SharedSwapService as a } from "./src/features/swap/services/SwapSharedService.js";
2
+ import { SwapTransactionService as m } from "./src/features/swap/services/SwapTransactionService.js";
3
+ import { SwapOrderRequestSchema as t, SwapOrderResponseSchema as S } from "./src/features/swap/models/order.model.js";
4
+ import { SwapDataSchema as u, SwapQuoteResponseSchema as T, SwapQuoteRouteSchema as d } from "./src/features/swap/models/quote.model.js";
5
+ import { TradeSchema as n, TradeType as x, TradeTypeSchema as f } from "./src/features/swap/models/trade.model.js";
6
+ import { calculateTotalFee as i } from "./src/features/swap/utils/totalFee.js";
7
+ import { maximumAmountInForTrade as R, minimumAmountOutFromTrade as l } from "./src/features/swap/utils/slippage.js";
7
8
  export {
8
- r as SharedSwapService,
9
- S as SwapDataSchema,
10
- o as SwapOrderRequestSchema,
11
- p as SwapOrderResponseSchema,
12
- c as SwapQuoteResponseSchema,
13
- u as SwapQuoteRouteSchema,
14
- h as TradeSchema,
15
- T as TradeType,
16
- x as TradeTypeSchema,
17
- n as calculateTotalFee,
18
- s as maximumAmountInForTrade,
19
- i as minimumAmountOutFromTrade
9
+ a as SharedSwapService,
10
+ u as SwapDataSchema,
11
+ t as SwapOrderRequestSchema,
12
+ S as SwapOrderResponseSchema,
13
+ T as SwapQuoteResponseSchema,
14
+ d as SwapQuoteRouteSchema,
15
+ m as SwapTransactionService,
16
+ n as TradeSchema,
17
+ x as TradeType,
18
+ f as TradeTypeSchema,
19
+ i as calculateTotalFee,
20
+ R as maximumAmountInForTrade,
21
+ l as minimumAmountOutFromTrade
20
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.64.0",
3
+ "version": "1.66.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"
@@ -54,28 +54,28 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@amplitude/analytics-types": "2.8.4",
57
- "@commitlint/cli": "19.6.1",
58
- "@commitlint/config-conventional": "19.6.0",
57
+ "@commitlint/cli": "19.7.1",
58
+ "@commitlint/config-conventional": "19.7.1",
59
59
  "@rollup/plugin-typescript": "12.1.2",
60
60
  "@semantic-release/git": "10.0.1",
61
61
  "@types/async-retry": "1.4.9",
62
62
  "@types/lodash-es": "4.17.12",
63
63
  "@types/numeral": "2.0.5",
64
64
  "@types/ua-parser-js": "0.7.39",
65
- "@typescript-eslint/eslint-plugin": "8.18.0",
66
- "@typescript-eslint/parser": "8.18.0",
65
+ "@typescript-eslint/eslint-plugin": "8.23.0",
66
+ "@typescript-eslint/parser": "8.23.0",
67
67
  "eslint": "8.57.1",
68
68
  "eslint-config-prettier": "10.0.1",
69
69
  "eslint-plugin-import": "2.31.0",
70
70
  "husky": "9.1.7",
71
- "lint-staged": "15.2.11",
72
- "msw": "2.6.8",
71
+ "lint-staged": "15.4.3",
72
+ "msw": "2.7.0",
73
73
  "prettier": "3.4.2",
74
- "semantic-release": "24.2.0",
74
+ "semantic-release": "24.2.1",
75
75
  "ts-to-zod": "3.15.0",
76
- "typescript": "5.7.2",
77
- "vite": "6.0.3",
78
- "vite-plugin-dts": "4.3.0",
76
+ "typescript": "5.7.3",
77
+ "vite": "6.0.11",
78
+ "vite-plugin-dts": "4.5.0",
79
79
  "vitest": "3.0.5"
80
80
  },
81
81
  "dependencies": {