Skip to content
Snippets Groups Projects
Commit 2471f906 authored by Steffen Schulze's avatar Steffen Schulze
Browse files

Merge branch 'chore/update-deps' into 'main'

Fix Node version, update Credo

See merge request eclipse/xfsc/ocm/ocm-engine!61
parents 3a2f6b38 f4aab635
No related branches found
No related tags found
No related merge requests found
Pipeline #42724 canceled
FROM node:20 AS dependencies
FROM node:20.11 AS dependencies
ARG APP_HOME=/home/node/app
ARG SERVICE
......@@ -12,7 +12,7 @@ COPY apps/shared/package.json ./apps/shared/
RUN pnpm install --frozen-lockfile
# Build shared
FROM node:20 as build-shared
FROM node:20.11 as build-shared
ARG APP_HOME=/home/node/app
ARG SERVICE
......@@ -29,7 +29,7 @@ COPY --from=dependencies /home/node/app/patches ./patches
RUN pnpm --filter shared build
# Build service
FROM node:20 AS build-service
FROM node:20.11 AS build-service
ARG APP_HOME=/home/node/app
ARG SERVICE
......@@ -46,7 +46,7 @@ COPY apps/${SERVICE} ./apps/${SERVICE}
RUN pnpm install --frozen-lockfile && pnpm --filter ${SERVICE} build && pnpm --filter ${SERVICE} --prod deploy build
# Final
FROM node:20-slim AS final
FROM node:20.11-slim AS final
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
......
......@@ -19,9 +19,9 @@
"test": "jest"
},
"dependencies": {
"@credo-ts/anoncreds": "0.5.0-alpha.151",
"@credo-ts/core": "0.5.0-alpha.151",
"@credo-ts/tenants": "0.5.0-alpha.151",
"@credo-ts/anoncreds": "0.5.1",
"@credo-ts/core": "0.5.1",
"@credo-ts/tenants": "0.5.1",
"@elastic/ecs-winston-format": "1.5.2",
"@nestjs/axios": "3.0.2",
"@nestjs/swagger": "7.3.0",
......
......@@ -18,12 +18,12 @@
"test:e2e": "pnpm test -- -c=test/jest.config.js --runInBand"
},
"dependencies": {
"@credo-ts/anoncreds": "0.5.0-alpha.151",
"@credo-ts/askar": "0.5.0-alpha.151",
"@credo-ts/core": "0.5.0-alpha.151",
"@credo-ts/indy-vdr": "0.5.0-alpha.151",
"@credo-ts/node": "0.5.0-alpha.151",
"@credo-ts/tenants": "0.5.0-alpha.151",
"@credo-ts/anoncreds": "0.5.1",
"@credo-ts/askar": "0.5.1",
"@credo-ts/core": "0.5.1",
"@credo-ts/indy-vdr": "0.5.1",
"@credo-ts/node": "0.5.1",
"@credo-ts/tenants": "0.5.1",
"@elastic/ecs-winston-format": "1.5.2",
"@hyperledger/anoncreds-nodejs": "^0.2.1",
"@hyperledger/aries-askar-nodejs": "^0.2.0",
......
......@@ -31,8 +31,8 @@
},
"pnpm": {
"patchedDependencies": {
"@credo-ts/indy-vdr@0.5.0-alpha.151": "patches/@credo-ts__indy-vdr@0.5.0-alpha.151.patch",
"@credo-ts/anoncreds@0.5.0-alpha.151": "patches/@credo-ts__anoncreds@0.5.0-alpha.151.patch"
"@credo-ts/anoncreds@0.5.1": "patches/@credo-ts__anoncreds@0.5.1.patch",
"@credo-ts/indy-vdr@0.5.1": "patches/@credo-ts__indy-vdr@0.5.1.patch"
},
"overrides": {
"expo-random": "./.noop",
......
diff --git a/build/AnonCredsApi.js b/build/AnonCredsApi.js
index d5118ee111a00dff7a22554a005a2af3cb480868..6228a9da1b604e94c6c50b1dc626970f8e445efb 100644
index d8d29a7d6410f90d7e544329ba447d7ee91f24aa..88398c270c21dbc82aea60d327d07668f05ed9e3 100644
--- a/build/AnonCredsApi.js
+++ b/build/AnonCredsApi.js
@@ -303,10 +303,7 @@ let AnonCredsApi = class AnonCredsApi {
......
diff --git a/build/IndyVdrApi.d.ts b/build/IndyVdrApi.d.ts
index 3a929c1393ad4c8adddac2412db7d2adc24702f0..4855ae6fcc1cb99724952b604571bbb19419654d 100644
index 7f999b6c62ef145527386c7ffa980b8ffc166f0b..24f9ffe708bbc5382d7df3866e601b43b0488ae4 100644
--- a/build/IndyVdrApi.d.ts
+++ b/build/IndyVdrApi.d.ts
@@ -28,4 +28,5 @@ export declare class IndyVdrApi {
@@ -31,4 +31,5 @@ export declare class IndyVdrApi {
* @returns An endorsed transaction
*/
endorseTransaction(transaction: string | Record<string, unknown>, endorserDid: string): Promise<string>;
+ submitTransaction(transaction:string | Record<string, unknown>, submitterDid:string): Promise<void>
+ submitTransaction(transaction:string | Record<string, unknown>, submitterDid:string): Promise<void>;
}
diff --git a/build/IndyVdrApi.js b/build/IndyVdrApi.js
index 689a3c4d325d8f04947fac8b12699e53b94d94e1..d242c58fbf1fc32dd26ed8ac2e427159c937eb2b 100644
index 689a3c4d325d8f04947fac8b12699e53b94d94e1..cfe3af00a0b66ad0c5a0d50f8511bc4fc3aaddb4 100644
--- a/build/IndyVdrApi.js
+++ b/build/IndyVdrApi.js
@@ -73,6 +73,18 @@ let IndyVdrApi = class IndyVdrApi {
......@@ -17,31 +17,31 @@ index 689a3c4d325d8f04947fac8b12699e53b94d94e1..d242c58fbf1fc32dd26ed8ac2e427159
return endorsedTransaction.body;
}
+ async submitTransaction(txn, submitterDid) {
+ const request = new indy_vdr_shared_1.CustomRequest({
+ const request = new indy_vdr_shared_1.CustomRequest({
+ customRequest: txn,
+ });
+ });
+
+ const {namespace } = (0, anoncreds_1.parseIndyDid)(submitterDid);
+ const {namespace } = (0, anoncreds_1.parseIndyDid)(submitterDid);
+
+ return await this.indyVdrPoolService.submitTransaction(
+ return await this.indyVdrPoolService.submitTransaction(
+ request,
+ namespace
+ );
+ );
+ }
};
IndyVdrApi = __decorate([
(0, core_1.injectable)(),
diff --git a/build/pool/IndyVdrPoolService.js b/build/pool/IndyVdrPoolService.js
index 54d034d35d4e2e4608cc41e87c39ae007a626acb..f11518aaae5f5c0352aa3694f2490a2a1a5497af 100644
index 3e69749698dc827747b197faea5da46d042463d1..9188a53577a185a97ed0a1a56baa459e056d4e72 100644
--- a/build/pool/IndyVdrPoolService.js
+++ b/build/pool/IndyVdrPoolService.js
@@ -163,6 +163,10 @@ let IndyVdrPoolService = class IndyVdrPoolService {
@@ -165,6 +165,10 @@ let IndyVdrPoolService = class IndyVdrPoolService {
throw error;
}
}
+ async submitTransaction(txn, indyNamespace) {
+ const pool = this.getPoolForNamespace(indyNamespace)
+ return await pool.submitRequest(txn)
+ const pool = this.getPoolForNamespace(indyNamespace)
+ return await pool.submitRequest(txn)
+ }
};
IndyVdrPoolService = __decorate([
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment