@lit-protocol/vincent-policy-send-counter 0.1.0 → 0.2.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 (64) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/CONTRIBUTING.md +6 -6
  3. package/README.md +1 -1
  4. package/dist/CHANGELOG.md +22 -0
  5. package/dist/CONTRIBUTING.md +6 -6
  6. package/dist/README.md +1 -1
  7. package/dist/package.json +3 -3
  8. package/dist/src/generated/lit-action.js +2 -2
  9. package/dist/src/generated/vincent-bundled-policy.d.ts +183 -144
  10. package/dist/src/generated/vincent-bundled-policy.d.ts.map +1 -1
  11. package/dist/src/generated/vincent-policy-metadata.json +1 -1
  12. package/dist/src/lib/abi/counterSignatures.d.ts +82 -0
  13. package/dist/src/lib/abi/counterSignatures.d.ts.map +1 -0
  14. package/dist/src/lib/abi/counterSignatures.js +100 -0
  15. package/dist/src/lib/abi/counterSignatures.js.map +1 -0
  16. package/dist/src/lib/helpers/index.d.ts +26 -0
  17. package/dist/src/lib/helpers/index.d.ts.map +1 -0
  18. package/dist/src/lib/helpers/index.js +107 -0
  19. package/dist/src/lib/helpers/index.js.map +1 -0
  20. package/dist/src/lib/schemas.d.ts +115 -64
  21. package/dist/src/lib/schemas.d.ts.map +1 -1
  22. package/dist/src/lib/schemas.js +71 -36
  23. package/dist/src/lib/schemas.js.map +1 -1
  24. package/dist/src/lib/vincent-policy.d.ts +183 -144
  25. package/dist/src/lib/vincent-policy.d.ts.map +1 -1
  26. package/dist/src/lib/vincent-policy.js +145 -74
  27. package/dist/src/lib/vincent-policy.js.map +1 -1
  28. package/package.json +5 -5
  29. package/dist/src/lib/policy-helpers/calculate-usd-value.d.ts +0 -7
  30. package/dist/src/lib/policy-helpers/calculate-usd-value.d.ts.map +0 -1
  31. package/dist/src/lib/policy-helpers/calculate-usd-value.js +0 -22
  32. package/dist/src/lib/policy-helpers/calculate-usd-value.js.map +0 -1
  33. package/dist/src/lib/policy-helpers/check-spending-limit.d.ts +0 -16
  34. package/dist/src/lib/policy-helpers/check-spending-limit.d.ts.map +0 -1
  35. package/dist/src/lib/policy-helpers/check-spending-limit.js +0 -29
  36. package/dist/src/lib/policy-helpers/check-spending-limit.js.map +0 -1
  37. package/dist/src/lib/policy-helpers/get-eth-usd-price.d.ts +0 -6
  38. package/dist/src/lib/policy-helpers/get-eth-usd-price.d.ts.map +0 -1
  39. package/dist/src/lib/policy-helpers/get-eth-usd-price.js +0 -22
  40. package/dist/src/lib/policy-helpers/get-eth-usd-price.js.map +0 -1
  41. package/dist/src/lib/policy-helpers/get-token-amount-in-usd.d.ts +0 -10
  42. package/dist/src/lib/policy-helpers/get-token-amount-in-usd.d.ts.map +0 -1
  43. package/dist/src/lib/policy-helpers/get-token-amount-in-usd.js +0 -68
  44. package/dist/src/lib/policy-helpers/get-token-amount-in-usd.js.map +0 -1
  45. package/dist/src/lib/policy-helpers/get-uniswap-quote.d.ts +0 -15
  46. package/dist/src/lib/policy-helpers/get-uniswap-quote.d.ts.map +0 -1
  47. package/dist/src/lib/policy-helpers/get-uniswap-quote.js +0 -114
  48. package/dist/src/lib/policy-helpers/get-uniswap-quote.js.map +0 -1
  49. package/dist/src/lib/policy-helpers/index.d.ts +0 -7
  50. package/dist/src/lib/policy-helpers/index.d.ts.map +0 -1
  51. package/dist/src/lib/policy-helpers/index.js +0 -10
  52. package/dist/src/lib/policy-helpers/index.js.map +0 -1
  53. package/dist/src/lib/policy-helpers/send-spend-tx.d.ts +0 -9
  54. package/dist/src/lib/policy-helpers/send-spend-tx.d.ts.map +0 -1
  55. package/dist/src/lib/policy-helpers/send-spend-tx.js +0 -144
  56. package/dist/src/lib/policy-helpers/send-spend-tx.js.map +0 -1
  57. package/dist/src/lib/policy-helpers/sign-tx.d.ts +0 -3
  58. package/dist/src/lib/policy-helpers/sign-tx.d.ts.map +0 -1
  59. package/dist/src/lib/policy-helpers/sign-tx.js +0 -28
  60. package/dist/src/lib/policy-helpers/sign-tx.js.map +0 -1
  61. package/dist/src/lib/policy-helpers/spending-limit-contract.d.ts +0 -4
  62. package/dist/src/lib/policy-helpers/spending-limit-contract.d.ts.map +0 -1
  63. package/dist/src/lib/policy-helpers/spending-limit-contract.js +0 -22
  64. package/dist/src/lib/policy-helpers/spending-limit-contract.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## 0.2.0 (2025-09-11)
2
+
3
+ ### 🚀 Features
4
+
5
+ - Refactor the Uniswap Swap Ability to utilize a prepare step which uses a Lit Action to generate and sign a Uniswap route generated by the V3 Alpha Router. The Swap Ability now intakes the signed route, validates it was signed by the expected PKP (which can only be used to sign the generated Uniswap routes within the prepare Lit Action), then uses the provided route to create and sign the Uniswap Swap transaction with the Agent Wallet PKP. The Uniswap Swap Ability was also updated to no longer support the Spending Limit Policy, and currently doesn't support any Policies. ([8bbb1c07](https://github.com/LIT-Protocol/Vincent/commit/8bbb1c07))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated ability-sdk to 2.1.0
10
+ - Updated app-sdk to 2.1.0
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - Wyatt Barnes @spacesailor24
15
+
16
+ ## 0.1.1 (2025-09-03)
17
+
18
+ ### 🧱 Updated Dependencies
19
+
20
+ - Updated ability-sdk to 2.0.1
21
+ - Updated app-sdk to 2.0.1
22
+
1
23
  ## 0.1.0 (2025-08-05)
2
24
 
3
25
  ### 🚀 Features
package/CONTRIBUTING.md CHANGED
@@ -4,7 +4,7 @@ This document provides guidelines for contributing to the Vincent Policy Send Co
4
4
 
5
5
  ## Overview
6
6
 
7
- The Vincent Policy Send Counter is a policy that can be attached to abilities to avoid them spending more than a user-defined limit in a specific period of time. It's part of the Vincent Tools ecosystem and is built using the Vincent Tool SDK.
7
+ The Vincent Policy Send Counter is a policy that can be attached to abilities to avoid them spending more than a user-defined limit in a specific period of time. It's part of the Vincent Abilities ecosystem and is built using the Vincent Tool SDK.
8
8
 
9
9
  ## Setup
10
10
 
@@ -47,19 +47,19 @@ nx action:deploy policy-spending-limit
47
47
 
48
48
  ## Policy Development Guidelines
49
49
 
50
- 1. Use the Vincent Tool SDK to create policies
50
+ 1. Use the Vincent Ability SDK to create policies
51
51
  2. Define clear schemas for ability parameters and user parameters
52
52
  3. Implement the policy lifecycle methods (evaluate, commit)
53
53
  4. Handle errors gracefully
54
54
  5. Write comprehensive tests for all functionality
55
55
  6. Document the policy's purpose and usage
56
56
 
57
- ## Integration with Tools
57
+ ## Integration with Abilities
58
58
 
59
- This policy can be integrated with various Vincent Tools to enforce sending limits. When developing or modifying the policy, consider how it will be used by abilities such as:
59
+ This policy can be integrated with various Vincent Abilities to enforce sending limits. When developing or modifying the policy, consider how it will be used by abilities such as:
60
60
 
61
- - Vincent Tool ERC20 Approval
62
- - Vincent Tool Uniswap Swap
61
+ - Vincent Ability ERC20 Approval
62
+ - Vincent Ability Uniswap Swap
63
63
 
64
64
  ## Testing
65
65
 
package/README.md CHANGED
@@ -9,7 +9,7 @@ The Vincent Policy Send Counter is part of the Vincent Abilities ecosystem and i
9
9
  ## Features
10
10
 
11
11
  - Set maximum transaction limits per time period
12
- - Track transaction counts across multiple abilitys
12
+ - Track transaction counts across multiple abilities
13
13
  - Configurable by users through the Vincent Dashboard
14
14
 
15
15
  ## Installation
package/dist/CHANGELOG.md CHANGED
@@ -1,3 +1,25 @@
1
+ ## 0.2.0 (2025-09-11)
2
+
3
+ ### 🚀 Features
4
+
5
+ - Refactor the Uniswap Swap Ability to utilize a prepare step which uses a Lit Action to generate and sign a Uniswap route generated by the V3 Alpha Router. The Swap Ability now intakes the signed route, validates it was signed by the expected PKP (which can only be used to sign the generated Uniswap routes within the prepare Lit Action), then uses the provided route to create and sign the Uniswap Swap transaction with the Agent Wallet PKP. The Uniswap Swap Ability was also updated to no longer support the Spending Limit Policy, and currently doesn't support any Policies. ([8bbb1c07](https://github.com/LIT-Protocol/Vincent/commit/8bbb1c07))
6
+
7
+ ### 🧱 Updated Dependencies
8
+
9
+ - Updated ability-sdk to 2.1.0
10
+ - Updated app-sdk to 2.1.0
11
+
12
+ ### ❤️ Thank You
13
+
14
+ - Wyatt Barnes @spacesailor24
15
+
16
+ ## 0.1.1 (2025-09-03)
17
+
18
+ ### 🧱 Updated Dependencies
19
+
20
+ - Updated ability-sdk to 2.0.1
21
+ - Updated app-sdk to 2.0.1
22
+
1
23
  ## 0.1.0 (2025-08-05)
2
24
 
3
25
  ### 🚀 Features
@@ -4,7 +4,7 @@ This document provides guidelines for contributing to the Vincent Policy Send Co
4
4
 
5
5
  ## Overview
6
6
 
7
- The Vincent Policy Send Counter is a policy that can be attached to abilities to avoid them spending more than a user-defined limit in a specific period of time. It's part of the Vincent Tools ecosystem and is built using the Vincent Tool SDK.
7
+ The Vincent Policy Send Counter is a policy that can be attached to abilities to avoid them spending more than a user-defined limit in a specific period of time. It's part of the Vincent Abilities ecosystem and is built using the Vincent Tool SDK.
8
8
 
9
9
  ## Setup
10
10
 
@@ -47,19 +47,19 @@ nx action:deploy policy-spending-limit
47
47
 
48
48
  ## Policy Development Guidelines
49
49
 
50
- 1. Use the Vincent Tool SDK to create policies
50
+ 1. Use the Vincent Ability SDK to create policies
51
51
  2. Define clear schemas for ability parameters and user parameters
52
52
  3. Implement the policy lifecycle methods (evaluate, commit)
53
53
  4. Handle errors gracefully
54
54
  5. Write comprehensive tests for all functionality
55
55
  6. Document the policy's purpose and usage
56
56
 
57
- ## Integration with Tools
57
+ ## Integration with Abilities
58
58
 
59
- This policy can be integrated with various Vincent Tools to enforce sending limits. When developing or modifying the policy, consider how it will be used by abilities such as:
59
+ This policy can be integrated with various Vincent Abilities to enforce sending limits. When developing or modifying the policy, consider how it will be used by abilities such as:
60
60
 
61
- - Vincent Tool ERC20 Approval
62
- - Vincent Tool Uniswap Swap
61
+ - Vincent Ability ERC20 Approval
62
+ - Vincent Ability Uniswap Swap
63
63
 
64
64
  ## Testing
65
65
 
package/dist/README.md CHANGED
@@ -9,7 +9,7 @@ The Vincent Policy Send Counter is part of the Vincent Abilities ecosystem and i
9
9
  ## Features
10
10
 
11
11
  - Set maximum transaction limits per time period
12
- - Track transaction counts across multiple abilitys
12
+ - Track transaction counts across multiple abilities
13
13
  - Configurable by users through the Vincent Dashboard
14
14
 
15
15
  ## Installation
package/dist/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@lit-protocol/vincent-policy-send-counter",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "dependencies": {
8
8
  "@lit-protocol/vincent-ability-sdk": "workspace:*",
9
- "@uniswap/sdk-core": "^7.7.2",
9
+ "@lit-protocol/vincent-scaffold-sdk": "^1.1.7",
10
10
  "ethers": "^5.8.0",
11
11
  "tslib": "2.8.1",
12
12
  "zod": "^3.25.64"
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "devDependencies": {
18
18
  "esbuild": "^0.19.12",
19
- "esbuild-plugin-polyfill-node": "^0.3.0",
19
+ "@lit-protocol/esbuild-plugin-polyfill-node": "^0.3.0",
20
20
  "ipfs-only-hash": "^4.0.0"
21
21
  },
22
22
  "main": "./dist/src/index.js",