@lit-protocol/vincent-e2e-test-utils 2.0.1 → 2.0.3
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 +16 -0
- package/dist/CHANGELOG.md +22 -0
- package/dist/package.json +2 -2
- package/dist/src/lib/appManager/register-new-app.d.ts.map +1 -1
- package/dist/src/lib/appManager/register-new-app.js +3 -8
- package/dist/src/lib/appManager/register-new-app.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 2.0.3 (2026-01-12)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- Fix registerNewApp to receive an AppId from the contracts client, not generate it internally. ([bd440780](https://github.com/LIT-Protocol/Vincent/commit/bd440780))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- awisniew207 @awisniew207
|
|
10
|
+
|
|
11
|
+
## 2.0.2 (2026-01-10)
|
|
12
|
+
|
|
13
|
+
### 🧱 Updated Dependencies
|
|
14
|
+
|
|
15
|
+
- Updated contracts-sdk to 7.1.0
|
|
16
|
+
|
|
1
17
|
## 2.0.1 (2026-01-08)
|
|
2
18
|
|
|
3
19
|
### 🧱 Updated Dependencies
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 2.0.3 (2026-01-12)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- Fix registerNewApp to receive an AppId from the contracts client, not generate it internally. ([bd440780](https://github.com/LIT-Protocol/Vincent/commit/bd440780))
|
|
6
|
+
|
|
7
|
+
### ❤️ Thank You
|
|
8
|
+
|
|
9
|
+
- awisniew207 @awisniew207
|
|
10
|
+
|
|
11
|
+
## 2.0.2 (2026-01-10)
|
|
12
|
+
|
|
13
|
+
### 🧱 Updated Dependencies
|
|
14
|
+
|
|
15
|
+
- Updated contracts-sdk to 7.1.0
|
|
16
|
+
|
|
17
|
+
## 2.0.1 (2026-01-08)
|
|
18
|
+
|
|
19
|
+
### 🧱 Updated Dependencies
|
|
20
|
+
|
|
21
|
+
- Updated contracts-sdk to 7.0.0
|
|
22
|
+
|
|
1
23
|
# 2.0.0 (2026-01-07)
|
|
2
24
|
|
|
3
25
|
### 🚀 Features
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lit-protocol/vincent-e2e-test-utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@lit-protocol/lit-node-client": "^7",
|
|
19
19
|
"@lit-protocol/pkp-ethers": "^7.3.1",
|
|
20
20
|
"@lit-protocol/types": "^7",
|
|
21
|
-
"@lit-protocol/vincent-contracts-sdk": "
|
|
21
|
+
"@lit-protocol/vincent-contracts-sdk": "7.1.0",
|
|
22
22
|
"@t3-oss/env-core": "^0.13.8",
|
|
23
23
|
"@zerodev/ecdsa-validator": "^5.4.9",
|
|
24
24
|
"@zerodev/permissions": "^5.6.2",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-new-app.d.ts","sourceRoot":"","sources":["../../../../src/lib/appManager/register-new-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register-new-app.d.ts","sourceRoot":"","sources":["../../../../src/lib/appManager/register-new-app.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,EACnC,eAAe,EACf,eAAe,GAChB,EAAE;IACD,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,eAAe,EAAE,MAAM,EAAE,EAAE,CAAC;CAC7B;;;GAkBA"}
|
|
@@ -3,9 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.registerNewApp = registerNewApp;
|
|
4
4
|
const vincent_contracts_sdk_1 = require("@lit-protocol/vincent-contracts-sdk");
|
|
5
5
|
const chain_1 = require("../chain");
|
|
6
|
-
function generateRandomAppId() {
|
|
7
|
-
return Math.floor(Math.random() * (100_000_000_000 - 10_000_000_000)) + 10_000_000_000;
|
|
8
|
-
}
|
|
9
6
|
/**
|
|
10
7
|
* Registers a new app
|
|
11
8
|
* @param abilityIpfsCids - Array of ability IPFS CIDs to register
|
|
@@ -13,18 +10,16 @@ function generateRandomAppId() {
|
|
|
13
10
|
*/
|
|
14
11
|
async function registerNewApp({ abilityIpfsCids, abilityPolicies, }) {
|
|
15
12
|
const { wallets: { appManager, appDelegatee }, } = await (0, chain_1.getChainHelpers)();
|
|
16
|
-
const
|
|
17
|
-
const { txHash } = await (0, vincent_contracts_sdk_1.getClient)({
|
|
13
|
+
const { txHash, newAppId } = await (0, vincent_contracts_sdk_1.getClient)({
|
|
18
14
|
signer: appManager,
|
|
19
15
|
}).registerApp({
|
|
20
|
-
appId,
|
|
21
16
|
delegateeAddresses: [await appDelegatee.getAddress()],
|
|
22
17
|
versionAbilities: {
|
|
23
18
|
abilityIpfsCids: abilityIpfsCids,
|
|
24
19
|
abilityPolicies: abilityPolicies,
|
|
25
20
|
},
|
|
26
21
|
});
|
|
27
|
-
console.log(`Registered new App with ID: ${
|
|
28
|
-
return { appId, appVersion: 1 };
|
|
22
|
+
console.log(`Registered new App with ID: ${newAppId}\nTx hash: ${txHash}`);
|
|
23
|
+
return { appId: newAppId, appVersion: 1 };
|
|
29
24
|
}
|
|
30
25
|
//# sourceMappingURL=register-new-app.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register-new-app.js","sourceRoot":"","sources":["../../../../src/lib/appManager/register-new-app.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"register-new-app.js","sourceRoot":"","sources":["../../../../src/lib/appManager/register-new-app.ts"],"names":[],"mappings":";;AASA,wCAwBC;AAjCD,+EAAgE;AAEhE,oCAA2C;AAE3C;;;;GAIG;AACI,KAAK,UAAU,cAAc,CAAC,EACnC,eAAe,EACf,eAAe,GAIhB;IACC,MAAM,EACJ,OAAO,EAAE,EAAE,UAAU,EAAE,YAAY,EAAE,GACtC,GAAG,MAAM,IAAA,uBAAe,GAAE,CAAC;IAE5B,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAA,iCAAS,EAAC;QAC3C,MAAM,EAAE,UAAU;KACnB,CAAC,CAAC,WAAW,CAAC;QACb,kBAAkB,EAAE,CAAC,MAAM,YAAY,CAAC,UAAU,EAAE,CAAC;QACrD,gBAAgB,EAAE;YAChB,eAAe,EAAE,eAAe;YAChC,eAAe,EAAE,eAAe;SACjC;KACF,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,+BAA+B,QAAQ,cAAc,MAAM,EAAE,CAAC,CAAC;IAE3E,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;AAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lit-protocol/vincent-e2e-test-utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"@lit-protocol/lit-node-client": "^7",
|
|
13
13
|
"@lit-protocol/pkp-ethers": "^7.3.1",
|
|
14
14
|
"@lit-protocol/types": "^7",
|
|
15
|
+
"@lit-protocol/vincent-contracts-sdk": "7.1.0",
|
|
15
16
|
"@t3-oss/env-core": "^0.13.8",
|
|
16
17
|
"@zerodev/ecdsa-validator": "^5.4.9",
|
|
17
18
|
"@zerodev/permissions": "^5.6.2",
|
|
@@ -20,8 +21,7 @@
|
|
|
20
21
|
"permissionless": "^0.2.57",
|
|
21
22
|
"tslib": "^2.8.1",
|
|
22
23
|
"viem": "^2.38.3",
|
|
23
|
-
"zod": "^3.25.64"
|
|
24
|
-
"@lit-protocol/vincent-contracts-sdk": "7.0.0"
|
|
24
|
+
"zod": "^3.25.64"
|
|
25
25
|
},
|
|
26
26
|
"main": "./dist/src/index.js",
|
|
27
27
|
"types": "./dist/src/index.d.ts",
|