From 27399653ecc227aff2eca827affea66e7651a767 Mon Sep 17 00:00:00 2001 From: Jan Mazak Date: Wed, 30 Nov 2022 14:04:25 +0100 Subject: [PATCH] update version to 6.0.0, changelog --- CHANGELOG.md | 17 ++++++++++++++++- package.json | 2 +- src/interactions/getVersion.ts | 9 ++++----- test/integration/getVersion.test.ts | 2 +- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0ee7190..e49d972e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,22 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [5.1.0](TBD) - [TBD] +## [6.0.0](TBD) - [TBD] + +Support for CIP-0036 governance voting + +### Added + +- export of governance voting keys (1694'/1815'/...) +- support for governance voting (signing of vote-cast fragments with 1694 keys) +- support for CIP-36 features (governance voting registration in transaction auxiliary data) + +### Changed + +- API for Catalyst voting registration (it is still possible to use CIP-0015 in auxiliary data) + + +## [5.1.0](https://github.com/cardano-foundation/ledgerjs-hw-app-cardano/compare/v5.0.0...v5.1.0) - [September 9th 2022] Support for Babbage era diff --git a/package.json b/package.json index a5e67b8e..4ee25bc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cardano-foundation/ledgerjs-hw-app-cardano", - "version": "5.1.0", + "version": "6.0.0", "files": [ "dist" ], diff --git a/src/interactions/getVersion.ts b/src/interactions/getVersion.ts index 73e2cdab..48fefb6c 100644 --- a/src/interactions/getVersion.ts +++ b/src/interactions/getVersion.ts @@ -42,15 +42,14 @@ export function getCompatibility(version: Version): DeviceCompatibility { const v2_3 = isLedgerAppVersionAtLeast(version, 2, 3) && isLedgerAppVersionAtMost(version, 6, Infinity) const v2_4 = isLedgerAppVersionAtLeast(version, 2, 4) && isLedgerAppVersionAtMost(version, 6, Infinity) const v3_0 = isLedgerAppVersionAtLeast(version, 3, 0) && isLedgerAppVersionAtMost(version, 6, Infinity) - const v4_0_Alonzo = isLedgerAppVersionAtLeast(version, 4, 0) && isLedgerAppVersionAtMost(version, 6, Infinity) + const v4_0 = isLedgerAppVersionAtLeast(version, 4, 0) && isLedgerAppVersionAtMost(version, 6, Infinity) const v4_1 = isLedgerAppVersionAtLeast(version, 4, 1) && isLedgerAppVersionAtMost(version, 6, Infinity) const v5_0 = isLedgerAppVersionAtLeast(version, 5, 0) && isLedgerAppVersionAtMost(version, 6, Infinity) - // TODO update minimum to 6 - const v6_0 = isLedgerAppVersionAtLeast(version, 5, 0) && isLedgerAppVersionAtMost(version, 6, Infinity) + const v6_0 = isLedgerAppVersionAtLeast(version, 6, 0) && isLedgerAppVersionAtMost(version, 6, Infinity) return { isCompatible: v2_2, - recommendedVersion: v2_2 ? null : '5.0', // TODO update to 6.0 + recommendedVersion: v2_2 ? null : '6.0', supportsMary: v2_2, supportsCatalystRegistration: v2_3, supportsGovernanceVoting: v6_0, @@ -60,7 +59,7 @@ export function getCompatibility(version: Version): DeviceCompatibility { supportsNativeScriptHashDerivation: v3_0, supportsMultisigTransaction: v3_0, supportsMint: v3_0, - supportsAlonzo: v4_0_Alonzo, + supportsAlonzo: v4_0, supportsReqSignersInOrdinaryTx: v4_1, supportsBabbage: v5_0, } diff --git a/test/integration/getVersion.test.ts b/test/integration/getVersion.test.ts index 1d6e7aa1..29a5e102 100644 --- a/test/integration/getVersion.test.ts +++ b/test/integration/getVersion.test.ts @@ -17,7 +17,7 @@ describe("getVersion", async () => { it("Should correctly get the semantic version of device", async () => { const { version, compatibility } = await ada.getVersion() - expect(version.major).to.equal(5) + expect(version.major).to.equal(6) expect(version.minor).to.equal(0) expect(compatibility).to.deep.equal({ isCompatible: true,