From e0dc90ad6300d555cf6e4fc56fbb054a1cf822c9 Mon Sep 17 00:00:00 2001 From: Mircea Hasegan Date: Tue, 18 Jun 2024 12:13:15 +0200 Subject: [PATCH] chore(cardano-services): temporarily downgrade chain-history version openApi 3.1.0 version bump brought only two conway-era specific Redeemer purpose enum values: "vote" and "propose". Which makes it backwards compatible to 3.0.1 back-ends. But the version check does not allow querying 3.0.1 back-ends. To avoid upgrading deployments just for the sake of accepting 3.1.0 requests, I am temporarily dropping the version back to 3.0.1. Once all deployments are upgraded to Cardano Node 8.9.2 version, I will bump this version back to 3.1.0 (LW-10774) --- packages/cardano-services-client/src/version.ts | 2 +- .../cardano-services/src/ChainHistory/openApi.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/cardano-services-client/src/version.ts b/packages/cardano-services-client/src/version.ts index c71aed4a0c4..7ca012effaf 100644 --- a/packages/cardano-services-client/src/version.ts +++ b/packages/cardano-services-client/src/version.ts @@ -1,7 +1,7 @@ // auto-generated using ../scripts/createVersionSource.js export const apiVersion = { assetInfo: '1.0.0', - chainHistory: '3.1.0', + chainHistory: '3.0.1', handle: '1.0.0', networkInfo: '1.0.0', rewards: '1.0.0', diff --git a/packages/cardano-services/src/ChainHistory/openApi.json b/packages/cardano-services/src/ChainHistory/openApi.json index d1ce6ee5e4a..dabcf496df9 100644 --- a/packages/cardano-services/src/ChainHistory/openApi.json +++ b/packages/cardano-services/src/ChainHistory/openApi.json @@ -6,13 +6,13 @@ "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, - "version": "3.1.0" + "version": "3.0.1" }, "paths": { - "/v3.1.0/chain-history/health": { + "/v3.0.1/chain-history/health": { "$ref": "../Http/schema.json#/paths/Health" }, - "/v3.1.0/chain-history/blocks/by-hashes": { + "/v3.0.1/chain-history/blocks/by-hashes": { "post": { "summary": "block history by hashes", "operationId": "blocksByHashes", @@ -50,7 +50,7 @@ } } }, - "/v3.1.0/chain-history/txs/by-hashes": { + "/v3.0.1/chain-history/txs/by-hashes": { "post": { "summary": "transaction history by hashes", "operationId": "transactionsByHashes", @@ -88,7 +88,7 @@ } } }, - "/v3.1.0/chain-history/txs/by-addresses": { + "/v3.0.1/chain-history/txs/by-addresses": { "post": { "summary": "transaction history by addresses", "operationId": "transactionsByAddresses",