Skip to content

Commit

Permalink
update version to 6.0.0, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
janmazak committed Nov 30, 2022
1 parent 3639ba4 commit 2739965
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
17 changes: 16 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cardano-foundation/ledgerjs-hw-app-cardano",
"version": "5.1.0",
"version": "6.0.0",
"files": [
"dist"
],
Expand Down
9 changes: 4 additions & 5 deletions src/interactions/getVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
}
Expand Down
2 changes: 1 addition & 1 deletion test/integration/getVersion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2739965

Please sign in to comment.