@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.
- package/CHANGELOG.md +22 -0
- package/CONTRIBUTING.md +6 -6
- package/README.md +1 -1
- package/dist/CHANGELOG.md +22 -0
- package/dist/CONTRIBUTING.md +6 -6
- package/dist/README.md +1 -1
- package/dist/package.json +3 -3
- package/dist/src/generated/lit-action.js +2 -2
- package/dist/src/generated/vincent-bundled-policy.d.ts +183 -144
- package/dist/src/generated/vincent-bundled-policy.d.ts.map +1 -1
- package/dist/src/generated/vincent-policy-metadata.json +1 -1
- package/dist/src/lib/abi/counterSignatures.d.ts +82 -0
- package/dist/src/lib/abi/counterSignatures.d.ts.map +1 -0
- package/dist/src/lib/abi/counterSignatures.js +100 -0
- package/dist/src/lib/abi/counterSignatures.js.map +1 -0
- package/dist/src/lib/helpers/index.d.ts +26 -0
- package/dist/src/lib/helpers/index.d.ts.map +1 -0
- package/dist/src/lib/helpers/index.js +107 -0
- package/dist/src/lib/helpers/index.js.map +1 -0
- package/dist/src/lib/schemas.d.ts +115 -64
- package/dist/src/lib/schemas.d.ts.map +1 -1
- package/dist/src/lib/schemas.js +71 -36
- package/dist/src/lib/schemas.js.map +1 -1
- package/dist/src/lib/vincent-policy.d.ts +183 -144
- package/dist/src/lib/vincent-policy.d.ts.map +1 -1
- package/dist/src/lib/vincent-policy.js +145 -74
- package/dist/src/lib/vincent-policy.js.map +1 -1
- package/package.json +5 -5
- package/dist/src/lib/policy-helpers/calculate-usd-value.d.ts +0 -7
- package/dist/src/lib/policy-helpers/calculate-usd-value.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/calculate-usd-value.js +0 -22
- package/dist/src/lib/policy-helpers/calculate-usd-value.js.map +0 -1
- package/dist/src/lib/policy-helpers/check-spending-limit.d.ts +0 -16
- package/dist/src/lib/policy-helpers/check-spending-limit.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/check-spending-limit.js +0 -29
- package/dist/src/lib/policy-helpers/check-spending-limit.js.map +0 -1
- package/dist/src/lib/policy-helpers/get-eth-usd-price.d.ts +0 -6
- package/dist/src/lib/policy-helpers/get-eth-usd-price.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/get-eth-usd-price.js +0 -22
- package/dist/src/lib/policy-helpers/get-eth-usd-price.js.map +0 -1
- package/dist/src/lib/policy-helpers/get-token-amount-in-usd.d.ts +0 -10
- package/dist/src/lib/policy-helpers/get-token-amount-in-usd.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/get-token-amount-in-usd.js +0 -68
- package/dist/src/lib/policy-helpers/get-token-amount-in-usd.js.map +0 -1
- package/dist/src/lib/policy-helpers/get-uniswap-quote.d.ts +0 -15
- package/dist/src/lib/policy-helpers/get-uniswap-quote.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/get-uniswap-quote.js +0 -114
- package/dist/src/lib/policy-helpers/get-uniswap-quote.js.map +0 -1
- package/dist/src/lib/policy-helpers/index.d.ts +0 -7
- package/dist/src/lib/policy-helpers/index.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/index.js +0 -10
- package/dist/src/lib/policy-helpers/index.js.map +0 -1
- package/dist/src/lib/policy-helpers/send-spend-tx.d.ts +0 -9
- package/dist/src/lib/policy-helpers/send-spend-tx.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/send-spend-tx.js +0 -144
- package/dist/src/lib/policy-helpers/send-spend-tx.js.map +0 -1
- package/dist/src/lib/policy-helpers/sign-tx.d.ts +0 -3
- package/dist/src/lib/policy-helpers/sign-tx.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/sign-tx.js +0 -28
- package/dist/src/lib/policy-helpers/sign-tx.js.map +0 -1
- package/dist/src/lib/policy-helpers/spending-limit-contract.d.ts +0 -4
- package/dist/src/lib/policy-helpers/spending-limit-contract.d.ts.map +0 -1
- package/dist/src/lib/policy-helpers/spending-limit-contract.js +0 -22
- 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
|
|
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
|
|
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
|
|
57
|
+
## Integration with Abilities
|
|
58
58
|
|
|
59
|
-
This policy can be integrated with various Vincent
|
|
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
|
|
62
|
-
- Vincent
|
|
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
|
|
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
|
package/dist/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
|
|
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
|
|
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
|
|
57
|
+
## Integration with Abilities
|
|
58
58
|
|
|
59
|
-
This policy can be integrated with various Vincent
|
|
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
|
|
62
|
-
- Vincent
|
|
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
|
|
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.
|
|
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
|
-
"@
|
|
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",
|