@lit-protocol/vincent-ability-uniswap-swap 5.0.0 → 7.0.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 (67) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/CHANGELOG.md +45 -0
  3. package/dist/package.json +1 -1
  4. package/dist/src/generated/lit-action.js +2 -2
  5. package/dist/src/generated/vincent-ability-metadata.json +1 -1
  6. package/dist/src/generated/vincent-bundled-ability.d.ts +67 -10
  7. package/dist/src/generated/vincent-bundled-ability.d.ts.map +1 -1
  8. package/dist/src/generated/vincent-prepare-metadata.json +3 -3
  9. package/dist/src/index.d.ts +2 -0
  10. package/dist/src/index.d.ts.map +1 -1
  11. package/dist/src/index.js +3 -1
  12. package/dist/src/index.js.map +1 -1
  13. package/dist/src/lib/ability-checks/check-erc20-allowance.d.ts +4 -3
  14. package/dist/src/lib/ability-checks/check-erc20-allowance.d.ts.map +1 -1
  15. package/dist/src/lib/ability-checks/check-erc20-allowance.js +24 -10
  16. package/dist/src/lib/ability-checks/check-erc20-allowance.js.map +1 -1
  17. package/dist/src/lib/ability-checks/check-erc20-balance.d.ts +9 -0
  18. package/dist/src/lib/ability-checks/check-erc20-balance.d.ts.map +1 -0
  19. package/dist/src/lib/ability-checks/check-erc20-balance.js +25 -0
  20. package/dist/src/lib/ability-checks/check-erc20-balance.js.map +1 -0
  21. package/dist/src/lib/ability-checks/check-native-token-balance.d.ts +2 -1
  22. package/dist/src/lib/ability-checks/check-native-token-balance.d.ts.map +1 -1
  23. package/dist/src/lib/ability-checks/check-native-token-balance.js +8 -2
  24. package/dist/src/lib/ability-checks/check-native-token-balance.js.map +1 -1
  25. package/dist/src/lib/ability-checks/index.d.ts +1 -1
  26. package/dist/src/lib/ability-checks/index.d.ts.map +1 -1
  27. package/dist/src/lib/ability-checks/index.js +1 -1
  28. package/dist/src/lib/ability-checks/index.js.map +1 -1
  29. package/dist/src/lib/ability-helpers/get-erc20-allowance.d.ts +8 -0
  30. package/dist/src/lib/ability-helpers/get-erc20-allowance.d.ts.map +1 -0
  31. package/dist/src/lib/ability-helpers/get-erc20-allowance.js +10 -0
  32. package/dist/src/lib/ability-helpers/get-erc20-allowance.js.map +1 -0
  33. package/dist/src/lib/{ability-checks/getErc20Contract.d.ts → ability-helpers/get-erc20-contract.d.ts} +2 -2
  34. package/dist/src/lib/ability-helpers/get-erc20-contract.d.ts.map +1 -0
  35. package/dist/src/lib/{ability-checks/getErc20Contract.js → ability-helpers/get-erc20-contract.js} +1 -1
  36. package/dist/src/lib/ability-helpers/get-erc20-contract.js.map +1 -0
  37. package/dist/src/lib/ability-helpers/index.d.ts +2 -0
  38. package/dist/src/lib/ability-helpers/index.d.ts.map +1 -1
  39. package/dist/src/lib/ability-helpers/index.js +2 -0
  40. package/dist/src/lib/ability-helpers/index.js.map +1 -1
  41. package/dist/src/lib/ability-helpers/send-erc20-approval-tx.d.ts +15 -0
  42. package/dist/src/lib/ability-helpers/send-erc20-approval-tx.d.ts.map +1 -0
  43. package/dist/src/lib/ability-helpers/send-erc20-approval-tx.js +86 -0
  44. package/dist/src/lib/ability-helpers/send-erc20-approval-tx.js.map +1 -0
  45. package/dist/src/lib/ability-helpers/send-uniswap-tx.d.ts +4 -1
  46. package/dist/src/lib/ability-helpers/send-uniswap-tx.d.ts.map +1 -1
  47. package/dist/src/lib/ability-helpers/send-uniswap-tx.js +16 -1
  48. package/dist/src/lib/ability-helpers/send-uniswap-tx.js.map +1 -1
  49. package/dist/src/lib/schemas.d.ts +67 -9
  50. package/dist/src/lib/schemas.d.ts.map +1 -1
  51. package/dist/src/lib/schemas.js +70 -12
  52. package/dist/src/lib/schemas.js.map +1 -1
  53. package/dist/src/lib/types.d.ts +44 -0
  54. package/dist/src/lib/types.d.ts.map +1 -0
  55. package/dist/src/lib/types.js +10 -0
  56. package/dist/src/lib/types.js.map +1 -0
  57. package/dist/src/lib/vincent-ability.d.ts +67 -10
  58. package/dist/src/lib/vincent-ability.d.ts.map +1 -1
  59. package/dist/src/lib/vincent-ability.js +178 -46
  60. package/dist/src/lib/vincent-ability.js.map +1 -1
  61. package/package.json +4 -4
  62. package/dist/src/lib/ability-checks/check-token-in-balance.d.ts +0 -8
  63. package/dist/src/lib/ability-checks/check-token-in-balance.d.ts.map +0 -1
  64. package/dist/src/lib/ability-checks/check-token-in-balance.js +0 -17
  65. package/dist/src/lib/ability-checks/check-token-in-balance.js.map +0 -1
  66. package/dist/src/lib/ability-checks/getErc20Contract.d.ts.map +0 -1
  67. package/dist/src/lib/ability-checks/getErc20Contract.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ # 7.0.0 (2025-10-08)
2
+
3
+ ### ⚠️ Breaking Changes
4
+
5
+ - The nativeTokenBalance, tokenInAddress, tokenInBalance properties of the Uniswap Ability Precheck success response have been made optional and can now possibly return undefined ([6069020e](https://github.com/LIT-Protocol/Vincent/commit/6069020e))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated ability-sdk to 2.3.1
10
+ - Updated app-sdk to 2.2.3
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - Wyatt Barnes @spacesailor24
15
+
16
+ # 6.0.0 (2025-10-06)
17
+
18
+ ### ⚠️ Breaking Changes
19
+
20
+ - Adds new Ability parameters that dictate what the Ability does (e.g. ERC20 allowance approvals, Uniswap Swaps, or both). Additionally, adds support for Alchemy gas sponsorship of both ERC20 approval and Uniswap swap txs. The Ability now returns failure reponses for known errors like insufficient balances or allowances ([39b5e217](https://github.com/LIT-Protocol/Vincent/commit/39b5e217))
21
+
22
+ ### 🧱 Updated Dependencies
23
+
24
+ - Updated ability-sdk to 2.3.0
25
+ - Updated app-sdk to 2.2.2
26
+
27
+ ### ❤️ Thank You
28
+
29
+ - Wyatt Barnes @spacesailor24
30
+
1
31
  # 5.0.0 (2025-09-25)
2
32
 
3
33
  ### ⚠️ Breaking Changes
package/dist/CHANGELOG.md CHANGED
@@ -1,3 +1,48 @@
1
+ # 7.0.0 (2025-10-08)
2
+
3
+ ### ⚠️ Breaking Changes
4
+
5
+ - The nativeTokenBalance, tokenInAddress, tokenInBalance properties of the Uniswap Ability Precheck success response have been made optional and can now possibly return undefined ([6069020e](https://github.com/LIT-Protocol/Vincent/commit/6069020e))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated ability-sdk to 2.3.1
10
+ - Updated app-sdk to 2.2.3
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - Wyatt Barnes @spacesailor24
15
+
16
+ # 6.0.0 (2025-10-06)
17
+
18
+ ### ⚠️ Breaking Changes
19
+
20
+ - Adds new Ability parameters that dictate what the Ability does (e.g. ERC20 allowance approvals, Uniswap Swaps, or both). Additionally, adds support for Alchemy gas sponsorship of both ERC20 approval and Uniswap swap txs. The Ability now returns failure reponses for known errors like insufficient balances or allowances ([39b5e217](https://github.com/LIT-Protocol/Vincent/commit/39b5e217))
21
+
22
+ ### 🧱 Updated Dependencies
23
+
24
+ - Updated ability-sdk to 2.3.0
25
+ - Updated app-sdk to 2.2.2
26
+
27
+ ### ❤️ Thank You
28
+
29
+ - Wyatt Barnes @spacesailor24
30
+
31
+ # 5.0.0 (2025-09-25)
32
+
33
+ ### ⚠️ Breaking Changes
34
+
35
+ - Remove estimatedGasUsed and estimatedGasUsedUSD values from signed uniswap quote. Added new ability params: gasBufferPercentage and baseFeePerGasBufferPercentage for adding buffers to uniswap swap transaction ([8170cda4](https://github.com/LIT-Protocol/Vincent/commit/8170cda4))
36
+
37
+ ### 🧱 Updated Dependencies
38
+
39
+ - Updated ability-sdk to 2.2.0
40
+ - Updated app-sdk to 2.2.1
41
+
42
+ ### ❤️ Thank You
43
+
44
+ - Wyatt Barnes @spacesailor24
45
+
1
46
  # 4.0.0 (2025-09-18)
2
47
 
3
48
  ### ⚠️ Breaking Changes
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lit-protocol/vincent-ability-uniswap-swap",
3
- "version": "4.0.0",
3
+ "version": "7.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },