From c35658b7f38142ba7f9ffd182a4484874927af28 Mon Sep 17 00:00:00 2001 From: aldousalvarez Date: Tue, 9 Apr 2024 16:40:40 +0800 Subject: [PATCH] refactor: rename OpenAPI extension in plugin-ledger-connector-polkadot Primary Changes ---------------- 1. Updated the files in packages/cactus-plugin-ledger- connector-polkadot to use x-hyperledger-cacti Fixes #3198 Signed-off-by: aldousalvarez --- .../src/main/json/openapi.json | 14 +++++++------- .../web-services/deploy-contract-ink-endpoint.ts | 4 ++-- .../get-prometheus-exporter-metrics-endpoint.ts | 4 ++-- .../web-services/get-raw-transaction-endpoint.ts | 4 ++-- .../web-services/get-transaction-info-endpoint.ts | 4 ++-- .../web-services/invoke-contract-endpoint.ts | 4 ++-- .../web-services/run-transaction-endpoint.ts | 4 ++-- .../web-services/sign-raw-transaction-endpoint.ts | 4 ++-- 8 files changed, 21 insertions(+), 21 deletions(-) diff --git a/packages/cactus-plugin-ledger-connector-polkadot/src/main/json/openapi.json b/packages/cactus-plugin-ledger-connector-polkadot/src/main/json/openapi.json index 2220437deb..8916f9cb83 100644 --- a/packages/cactus-plugin-ledger-connector-polkadot/src/main/json/openapi.json +++ b/packages/cactus-plugin-ledger-connector-polkadot/src/main/json/openapi.json @@ -533,7 +533,7 @@ "paths": { "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/get-prometheus-exporter-metrics": { "get": { - "x-hyperledger-cactus": { + "x-hyperledger-cacti": { "http": { "verbLowerCase": "get", "path": "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/get-prometheus-exporter-metrics" @@ -568,7 +568,7 @@ }, "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/get-transaction-info": { "post": { - "x-hyperledger-cactus": { + "x-hyperledger-cacti": { "http": { "verbLowerCase": "post", "path": "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/get-transaction-info" @@ -612,7 +612,7 @@ }, "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/get-raw-transaction": { "post": { - "x-hyperledger-cactus": { + "x-hyperledger-cacti": { "http": { "verbLowerCase": "post", "path": "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/get-raw-transaction" @@ -656,7 +656,7 @@ }, "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/sign-raw-transaction": { "post": { - "x-hyperledger-cactus": { + "x-hyperledger-cacti": { "http": { "verbLowerCase": "post", "path": "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/sign-raw-transaction" @@ -700,7 +700,7 @@ }, "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/run-transaction": { "post": { - "x-hyperledger-cactus": { + "x-hyperledger-cacti": { "http": { "verbLowerCase": "post", "path": "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/run-transaction" @@ -744,7 +744,7 @@ }, "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/deploy-contract-ink": { "post": { - "x-hyperledger-cactus": { + "x-hyperledger-cacti": { "http": { "verbLowerCase": "post", "path": "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/deploy-contract-ink" @@ -788,7 +788,7 @@ }, "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/invoke-contract": { "post": { - "x-hyperledger-cactus": { + "x-hyperledger-cacti": { "http": { "verbLowerCase": "post", "path": "/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-polkadot/invoke-contract" diff --git a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/deploy-contract-ink-endpoint.ts b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/deploy-contract-ink-endpoint.ts index a6d4c57eed..8f27f16f51 100644 --- a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/deploy-contract-ink-endpoint.ts +++ b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/deploy-contract-ink-endpoint.ts @@ -60,11 +60,11 @@ export class DeployContractInkEndpoint implements IWebServiceEndpoint { } public getPath(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.path; + return this.oasPath.post["x-hyperledger-cacti"].http.path; } public getVerbLowerCase(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.verbLowerCase; + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; } public getOperationId(): string { diff --git a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-prometheus-exporter-metrics-endpoint.ts b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-prometheus-exporter-metrics-endpoint.ts index 72076c2ebb..c225761e8b 100644 --- a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-prometheus-exporter-metrics-endpoint.ts +++ b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-prometheus-exporter-metrics-endpoint.ts @@ -67,11 +67,11 @@ export class GetPrometheusMetricsEndpoint implements IWebServiceEndpoint { } public getPath(): string { - return this.oasPath.get["x-hyperledger-cactus"].http.path; + return this.oasPath.get["x-hyperledger-cacti"].http.path; } public getVerbLowerCase(): string { - return this.oasPath.get["x-hyperledger-cactus"].http.verbLowerCase; + return this.oasPath.get["x-hyperledger-cacti"].http.verbLowerCase; } public getOperationId(): string { diff --git a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-raw-transaction-endpoint.ts b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-raw-transaction-endpoint.ts index 27d1ec1877..69df6aeb89 100644 --- a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-raw-transaction-endpoint.ts +++ b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-raw-transaction-endpoint.ts @@ -60,11 +60,11 @@ export class GetRawTransactionEndpoint implements IWebServiceEndpoint { } public getPath(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.path; + return this.oasPath.post["x-hyperledger-cacti"].http.path; } public getVerbLowerCase(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.verbLowerCase; + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; } public getOperationId(): string { diff --git a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-transaction-info-endpoint.ts b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-transaction-info-endpoint.ts index 2a7e360ba4..43a4833b8e 100644 --- a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-transaction-info-endpoint.ts +++ b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/get-transaction-info-endpoint.ts @@ -60,11 +60,11 @@ export class GetTransactionInfoEndpoint implements IWebServiceEndpoint { } public getPath(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.path; + return this.oasPath.post["x-hyperledger-cacti"].http.path; } public getVerbLowerCase(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.verbLowerCase; + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; } public getOperationId(): string { diff --git a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/invoke-contract-endpoint.ts b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/invoke-contract-endpoint.ts index daae2a3a3c..1e818915b0 100644 --- a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/invoke-contract-endpoint.ts +++ b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/invoke-contract-endpoint.ts @@ -56,11 +56,11 @@ export class InvokeContractEndpoint implements IWebServiceEndpoint { } public getPath(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.path; + return this.oasPath.post["x-hyperledger-cacti"].http.path; } public getVerbLowerCase(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.verbLowerCase; + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; } public getOperationId(): string { diff --git a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/run-transaction-endpoint.ts b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/run-transaction-endpoint.ts index 89e5366c01..a17e526f4b 100644 --- a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/run-transaction-endpoint.ts +++ b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/run-transaction-endpoint.ts @@ -56,11 +56,11 @@ export class RunTransactionEndpoint implements IWebServiceEndpoint { } public getPath(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.path; + return this.oasPath.post["x-hyperledger-cacti"].http.path; } public getVerbLowerCase(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.verbLowerCase; + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; } public getOperationId(): string { diff --git a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/sign-raw-transaction-endpoint.ts b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/sign-raw-transaction-endpoint.ts index ee457b567d..ddb28360e5 100644 --- a/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/sign-raw-transaction-endpoint.ts +++ b/packages/cactus-plugin-ledger-connector-polkadot/src/main/typescript/web-services/sign-raw-transaction-endpoint.ts @@ -60,11 +60,11 @@ export class SignRawTransactionEndpoint implements IWebServiceEndpoint { } public getPath(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.path; + return this.oasPath.post["x-hyperledger-cacti"].http.path; } public getVerbLowerCase(): string { - return this.oasPath.post["x-hyperledger-cactus"].http.verbLowerCase; + return this.oasPath.post["x-hyperledger-cacti"].http.verbLowerCase; } public getOperationId(): string {