From 83b105ba2cb77923248996fe0e7bd48116d647c2 Mon Sep 17 00:00:00 2001 From: Carlos Amaro Date: Mon, 9 Dec 2024 12:22:58 +0000 Subject: [PATCH] fix(satp-hermes): miss spell and a missing import Signed-off-by: Carlos Amaro --- packages/cactus-plugin-satp-hermes/package.json | 1 + .../src/main/typescript/core/constants.ts | 2 +- .../integration/gateway-init-startup.test.ts | 12 ++++++------ ...satp-e2e-transfer-1-gateway-dockerization.test.ts | 6 +++--- .../satp-e2e-transfer-1-gateway-with-bungee.test.ts | 6 +++--- .../integration/satp-e2e-transfer-1-gateway.test.ts | 4 ++-- ...atp-e2e-transfer-2-gateways-dockerization.test.ts | 10 +++++----- .../satp-e2e-transfer-2-gateways-openapi.test.ts | 10 +++++----- .../integration/satp-e2e-transfer-2-gateways.test.ts | 10 +++++----- 9 files changed, 31 insertions(+), 30 deletions(-) diff --git a/packages/cactus-plugin-satp-hermes/package.json b/packages/cactus-plugin-satp-hermes/package.json index 9065632979..0199fc67b0 100644 --- a/packages/cactus-plugin-satp-hermes/package.json +++ b/packages/cactus-plugin-satp-hermes/package.json @@ -104,6 +104,7 @@ "@connectrpc/protoc-gen-connect-es": "1.6.1", "@foundry-rs/hardhat-forge": "0.1.17", "@grpc/grpc-js": "1.12.4", + "@hyperledger/cactus-api-client": "2.0.0", "@hyperledger/cactus-cmd-api-server": "2.0.0", "@hyperledger/cactus-common": "2.0.0", "@hyperledger/cactus-core": "2.0.0", diff --git a/packages/cactus-plugin-satp-hermes/src/main/typescript/core/constants.ts b/packages/cactus-plugin-satp-hermes/src/main/typescript/core/constants.ts index 805f2c6760..e4ed369839 100644 --- a/packages/cactus-plugin-satp-hermes/src/main/typescript/core/constants.ts +++ b/packages/cactus-plugin-satp-hermes/src/main/typescript/core/constants.ts @@ -4,5 +4,5 @@ export const DEFAULT_PORT_GATEWAY_UI = DEFAULT_PORT_GATEWAY_SERVER + 2; export const DEFAULT_PORT_GATEWAY_API = 4010; export const SATP_VERSION = "v02"; export const SATP_CORE_VERSION = "v02"; -export const SATP_ARCHITETURE_VERSION = "v02"; +export const SATP_ARCHITECTURE_VERSION = "v02"; export const SATP_CRASH_VERSION = "v02"; diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/gateway-init-startup.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/gateway-init-startup.test.ts index eb3987c989..1ca2282beb 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/gateway-init-startup.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/gateway-init-startup.test.ts @@ -34,7 +34,7 @@ import { DEFAULT_PORT_GATEWAY_API, DEFAULT_PORT_GATEWAY_CLIENT, DEFAULT_PORT_GATEWAY_SERVER, - SATP_ARCHITETURE_VERSION, + SATP_ARCHITECTURE_VERSION, SATP_CORE_VERSION, SATP_CRASH_VERSION, } from "../../../main/typescript/core/constants"; @@ -77,7 +77,7 @@ describe("SATPGateway initialization", () => { expect(identity.version).toEqual([ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ]); @@ -140,7 +140,7 @@ describe("SATPGateway initialization", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -169,7 +169,7 @@ describe("SATPGateway initialization", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -231,7 +231,7 @@ describe("SATPGateway startup", () => { expect(identity.version).toEqual([ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ]); @@ -294,7 +294,7 @@ describe("SATPGateway startup", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway-dockerization.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway-dockerization.test.ts index d869f50fda..775ed633c9 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway-dockerization.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway-dockerization.test.ts @@ -29,8 +29,8 @@ import { DEFAULT_PORT_GATEWAY_API, DEFAULT_PORT_GATEWAY_CLIENT, DEFAULT_PORT_GATEWAY_SERVER, + SATP_ARCHITECTURE_VERSION, SATP_CORE_VERSION, - SATP_ARCHITETURE_VERSION, SATP_CRASH_VERSION, } from "../../../main/typescript/core/constants"; import { ClaimFormat } from "../../../main/typescript/generated/proto/cacti/satp/v02/common/message_pb"; @@ -120,7 +120,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -283,7 +283,7 @@ describe("SATPGateway sending a token from Ethereum to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway-with-bungee.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway-with-bungee.test.ts index 3086403c1b..b7bd79688e 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway-with-bungee.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway-with-bungee.test.ts @@ -31,7 +31,7 @@ import { getTransactRequest, } from "../test-utils"; import { - SATP_ARCHITETURE_VERSION, + SATP_ARCHITECTURE_VERSION, SATP_CORE_VERSION, SATP_CRASH_VERSION, } from "../../../main/typescript/core/constants"; @@ -123,7 +123,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -247,7 +247,7 @@ describe("SATPGateway sending a token from Ethereum to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway.test.ts index 8e5811f92c..b59549cb5f 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-1-gateway.test.ts @@ -30,7 +30,7 @@ import { getTransactRequest, } from "../test-utils"; import { - SATP_ARCHITETURE_VERSION, + SATP_ARCHITECTURE_VERSION, SATP_CORE_VERSION, SATP_CRASH_VERSION, } from "../../../main/typescript/core/constants"; @@ -113,7 +113,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways-dockerization.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways-dockerization.test.ts index cc105dcd41..c3fbf21c83 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways-dockerization.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways-dockerization.test.ts @@ -32,8 +32,8 @@ import { DEFAULT_PORT_GATEWAY_API, DEFAULT_PORT_GATEWAY_CLIENT, DEFAULT_PORT_GATEWAY_SERVER, + SATP_ARCHITECTURE_VERSION, SATP_CORE_VERSION, - SATP_ARCHITETURE_VERSION, SATP_CRASH_VERSION, } from "../../../main/typescript/core/constants"; import { ClaimFormat } from "../../../main/typescript/generated/proto/cacti/satp/v02/common/message_pb"; @@ -124,7 +124,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -142,7 +142,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -167,7 +167,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -200,7 +200,7 @@ describe("SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways-openapi.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways-openapi.test.ts index 9cdf5a0321..f2de30961b 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways-openapi.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways-openapi.test.ts @@ -38,7 +38,7 @@ import { import { bufArray2HexStr } from "../../../main/typescript/gateway-utils"; import { ClaimFormat } from "../../../main/typescript/generated/proto/cacti/satp/v02/common/message_pb"; import { - SATP_ARCHITETURE_VERSION, + SATP_ARCHITECTURE_VERSION, SATP_CORE_VERSION, SATP_CRASH_VERSION, } from "../../../main/typescript/core/constants"; @@ -121,7 +121,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric using openApi to req version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -138,7 +138,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric using openApi to req version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -164,7 +164,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric using openApi to req version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -191,7 +191,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric using openApi to req version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], diff --git a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways.test.ts b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways.test.ts index 2c40489a74..877d314100 100644 --- a/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways.test.ts +++ b/packages/cactus-plugin-satp-hermes/src/test/typescript/integration/satp-e2e-transfer-2-gateways.test.ts @@ -36,7 +36,7 @@ import { import { bufArray2HexStr } from "../../../main/typescript/gateway-utils"; import { ClaimFormat } from "../../../main/typescript/generated/proto/cacti/satp/v02/common/message_pb"; import { - SATP_ARCHITETURE_VERSION, + SATP_ARCHITECTURE_VERSION, SATP_CORE_VERSION, SATP_CRASH_VERSION, } from "../../../main/typescript/core/constants"; @@ -119,7 +119,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -136,7 +136,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -162,7 +162,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ], @@ -189,7 +189,7 @@ describe("2 SATPGateway sending a token from Besu to Fabric", () => { version: [ { Core: SATP_CORE_VERSION, - Architecture: SATP_ARCHITETURE_VERSION, + Architecture: SATP_ARCHITECTURE_VERSION, Crash: SATP_CRASH_VERSION, }, ],