@lit-protocol/vincent-e2e-test-utils 1.1.0 → 1.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 +12 -0
- package/README.md +51 -9
- package/dist/package.json +2 -2
- package/package.json +3 -3
- package/dist/CHANGELOG.md +0 -29
- package/dist/CONTRIBUTING.md +0 -0
- package/dist/README.md +0 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.2.0 (2025-12-09)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- Adds a `smartAccountType` parameter to the `setupVincentDevelopmentEnvironment`. Supports `safe`, `crossmint` and `zerodev` smart accounts. When the parameter is set, the development environment will create a Smart Account owned by the `agentWalletOwner` (currently owns the Agent PKP for development). It will then add the Agent PKP as a signer on the Smart Account. ([](https://github.com/LIT-Protocol/Vincent/commit/))
|
|
6
|
+
|
|
7
|
+
## 1.1.3 (2025-11-23)
|
|
8
|
+
|
|
9
|
+
### 🧱 Updated Dependencies
|
|
10
|
+
|
|
11
|
+
- Updated contracts-sdk to 5.0.0
|
|
12
|
+
|
|
1
13
|
## 1.1.0 (2025-11-07)
|
|
2
14
|
|
|
3
15
|
### 🚀 Features
|
package/README.md
CHANGED
|
@@ -1,17 +1,59 @@
|
|
|
1
|
-
|
|
1
|
+
E2E test utilities for the Vincent protocol, providing helper functions for setting up test environments, managing wallets, minting PKPs, and handling permissions.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Installation
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
<CodeGroup>
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash npm
|
|
8
|
+
npm install @lit-protocol/vincent-e2e-test-utils
|
|
9
|
+
```
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
```bash yarn
|
|
12
|
+
yarn add @lit-protocol/vincent-e2e-test-utils
|
|
13
|
+
```
|
|
10
14
|
|
|
11
|
-
|
|
15
|
+
```bash pnpm
|
|
16
|
+
pnpm add @lit-protocol/vincent-e2e-test-utils
|
|
17
|
+
```
|
|
12
18
|
|
|
13
|
-
|
|
19
|
+
</CodeGroup>
|
|
14
20
|
|
|
15
|
-
|
|
21
|
+
## Features
|
|
16
22
|
|
|
17
|
-
|
|
23
|
+
- **Quick Environment Setup**: `setupVincentDevelopmentEnvironment()` handles all the boilerplate for setting up a complete Vincent test environment
|
|
24
|
+
- **Wallet Management**: Create random wallets and manage test accounts with automatic funding
|
|
25
|
+
- **PKP Management**: Mint new PKPs and configure permissions
|
|
26
|
+
- **Capacity Token Handling**: Ensure unexpired capacity tokens for testing
|
|
27
|
+
- **Chain Helpers**: Access pre-configured providers and wallets for different networks
|
|
28
|
+
|
|
29
|
+
## Quick Start
|
|
30
|
+
|
|
31
|
+
The easiest way to get started is with `setupVincentDevelopmentEnvironment()`:
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
import { setupVincentDevelopmentEnvironment } from '@lit-protocol/vincent-e2e-test-utils';
|
|
35
|
+
|
|
36
|
+
// Define your abilities and policies
|
|
37
|
+
const permissionData = {
|
|
38
|
+
[myAbility.ipfsCid]: {
|
|
39
|
+
[myPolicy.ipfsCid]: {
|
|
40
|
+
// policy configuration
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
// Set up everything with one call
|
|
46
|
+
const { agentPkpInfo, wallets, appId, appVersion } = await setupVincentDevelopmentEnvironment({
|
|
47
|
+
permissionData,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// Now you're ready to test!
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
This single function:
|
|
54
|
+
|
|
55
|
+
- Checks and funds all required accounts (funder, app delegatee, app manager)
|
|
56
|
+
- Registers or updates your app with abilities and policies
|
|
57
|
+
- Creates or uses an existing agent PKP
|
|
58
|
+
- Sets up permissions for the agent PKP
|
|
59
|
+
- Ensures a valid capacity token exists
|
package/dist/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lit-protocol/vincent-e2e-test-utils",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@lit-protocol/constants": "^8.0.4",
|
|
9
9
|
"@lit-protocol/contracts-sdk": "^7.2.3",
|
|
10
|
-
"@lit-protocol/vincent-contracts-sdk": "
|
|
10
|
+
"@lit-protocol/vincent-contracts-sdk": "workspace:*",
|
|
11
11
|
"@t3-oss/env-core": "^0.13.8",
|
|
12
12
|
"ethers": "^5.7.2",
|
|
13
13
|
"tslib": "^2.8.1",
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lit-protocol/vincent-e2e-test-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@lit-protocol/constants": "^8.0.4",
|
|
9
9
|
"@lit-protocol/contracts-sdk": "^7.2.3",
|
|
10
|
-
"@lit-protocol/vincent-contracts-sdk": "^2.0.0",
|
|
11
10
|
"@t3-oss/env-core": "^0.13.8",
|
|
12
11
|
"ethers": "^5.7.2",
|
|
13
12
|
"tslib": "^2.8.1",
|
|
14
|
-
"zod": "^3.25.64"
|
|
13
|
+
"zod": "^3.25.64",
|
|
14
|
+
"@lit-protocol/vincent-contracts-sdk": "5.0.0"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist/src/index.js",
|
|
17
17
|
"types": "./dist/src/index.d.ts",
|
package/dist/CHANGELOG.md
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
## 1.1.0 (2025-11-07)
|
|
2
|
-
|
|
3
|
-
### 🚀 Features
|
|
4
|
-
|
|
5
|
-
- Adds a `setupVincentDevelopmentEnvironment` function to streamline/abstract the developer experience. ([4ddce811](https://github.com/LIT-Protocol/Vincent/commit/4ddce811))
|
|
6
|
-
|
|
7
|
-
### ❤️ Thank You
|
|
8
|
-
|
|
9
|
-
- awisniew207 @awisniew207
|
|
10
|
-
|
|
11
|
-
# 1.0.0 (2025-11-06)
|
|
12
|
-
|
|
13
|
-
### 🚀 Features
|
|
14
|
-
|
|
15
|
-
- Add logic to registerNewAppVersion to avoid registering a new App version if the given Ability and Policy config matches the latest App version. Add logic to permitAppVersionForAgentWalletPkp to avoid permitting the App version if it's already been permitted. ([bbc0b752](https://github.com/LIT-Protocol/Vincent/commit/bbc0b752))
|
|
16
|
-
|
|
17
|
-
### ⚠️ Breaking Changes
|
|
18
|
-
|
|
19
|
-
- Initial release of Vincent E2E test util methods taken from the Vincent Ability Start Kit repo ([65b0a4a6](https://github.com/LIT-Protocol/Vincent/commit/65b0a4a6))
|
|
20
|
-
|
|
21
|
-
### ❤️ Thank You
|
|
22
|
-
|
|
23
|
-
- Wyatt Barnes @spacesailor24
|
|
24
|
-
|
|
25
|
-
# Changelog
|
|
26
|
-
|
|
27
|
-
## 0.1.0
|
|
28
|
-
|
|
29
|
-
Initial release of @lit-protocol/vincent-e2e-test-utils package.
|
package/dist/CONTRIBUTING.md
DELETED
|
File without changes
|
package/dist/README.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# @lit-protocol/vincent-e2e-test-utils
|
|
2
|
-
|
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
|
4
|
-
|
|
5
|
-
## Building
|
|
6
|
-
|
|
7
|
-
Run `nx build e2e-test-utils` to build the library.
|
|
8
|
-
|
|
9
|
-
## Usage
|
|
10
|
-
|
|
11
|
-
This package provides E2E test utilities for the Vincent protocol.
|
|
12
|
-
|
|
13
|
-
## Development
|
|
14
|
-
|
|
15
|
-
### Documentation
|
|
16
|
-
|
|
17
|
-
Documentation is generated using TypeDoc. Build the docs with the appropriate Nx command.
|