Skip to content

Releases: vacuumlabs/ledgerjs-cardano-shelley

3.0.0

13 Apr 16:28
e491885
Compare
Choose a tag to compare

Major release. Switched from flow to TypeScript.

Changed

  • All API calls now use single structured argument instead of long list of partial arguments.
    (For the overview see src/Ada.ts changes in #61)
  • AddressTypeNibble enum renamed to AddressType
  • derive/showAddress now take network as an explicit parameter instead of networkIdOrProtocolMagic field in AddressParams
  • all 64-bit integers that were previously stored in fields ending with Str (e.g. feeStr) are now without the suffix (i.e. fee) and take a "bignumber-like" argument which can be Number (if it is small enough, i.e. <= Number.MAX_SAFE_INTEGER), string, or native BigInt. Non-native bigint implementations are not supported and should be converted to strings)
  • all "tagged enums" now use {type: SomeType.Variant, params: SomeTypeVariantParams} typing. This unified previously mixed tagging with sometimes arbitrarily variant fields into the parent type. As part of this change
    • Relays are now typed properly with variants
    • TxOutput was separated into "amount" part (amount & tokenBundle) & destination specification.
      • Destination is now explicitly of type DestinationType.ThirdParty or DestinationType.DeviceOwned to clarify what the device should sign
      • Device owned destination reuses existing Address param type
    • Address is now tagged enum across different address types (Byron, Base, Enterprise, Pointer, Reward). Reward address still uses spendingPath instead of stakingPath to denote that this key can be used to spend funds
  • All API call types now use *Request/*Response nomenclature
  • GetVersion call now returns {version, compatibility} instead of version where compatibility describes overall set of features we support for the device. It should be responsibility of API users to check compatibility.isCompatible flag and urge users to upgrade device to compatibility.recommendedVersion if the device is not compatible.
  • All (expected) errors thrown by the API are now descendants of ErrorBase from errors subpackage. API now distinguishes between these error types
    • InvalidData - you passed some wrong data to the API. We will not even try to communicate with the device
    • DeviceUnsupported - thrown when trying to use API with unsopported Ledger app version (or when using features not yet available for the app version)
    • DeviceStatusError - thrown when device rejects operation for some reason. Common reasons are found in DeviceStatusCodes mapping.
  • There is new documentation available at (https://vacuumlabs.github.io/ledgerjs-cardano-shelley/index.html)

Removed

  • Compatibility with pre-Mary (<2.2) App versions.

3.0.0-rc.3

12 Apr 10:48
0e14d5e
Compare
Choose a tag to compare
3.0.0-rc.3 Pre-release
Pre-release

Ledgerjs refactored to typescript release candidate

Changes:

  • metadata have been renamed to auxiliary data in the signTransaction call (#96)

3.1.0-catalyst-rc.0

07 Apr 23:24
acf21e4
Compare
Choose a tag to compare
3.1.0-catalyst-rc.0 Pre-release
Pre-release

Prerelease with Catalyst registration support, to be used with Ledger app built from vacuumlabs/ledger-app-cardano-shelley#63

2.3.0-rc.0

20 Apr 14:32
Compare
Choose a tag to compare
2.3.0-rc.0 Pre-release
Pre-release

Operator app support pre-release

2.3.0-operatorapp-rc.1

29 Mar 18:02
Compare
Choose a tag to compare
Pre-release
  • operator app support with backwards compatibility fixes so stake pool registration as an owner works properly for users registering their pool as owners using Ledger app 2.2.1 and older

3.0.0-rc.2

25 Mar 10:26
ceb1d1f
Compare
Choose a tag to compare
3.0.0-rc.2 Pre-release
Pre-release
  • Top level transaction types naming made consistent
  • Minor internal cleanups

2.3.0-operatorapp-rc.0

22 Mar 10:32
Compare
Choose a tag to compare
Pre-release
  • prerelease with operator app support

3.0.0-rc.1

18 Mar 10:03
45f4732
Compare
Choose a tag to compare
3.0.0-rc.1 Pre-release
Pre-release
  • ledgerjs typescript refactor pre-release with fixed types export

3.0.0-rc.0

16 Mar 16:01
5d604be
Compare
Choose a tag to compare
3.0.0-rc.0 Pre-release
Pre-release
  • internal pre-release of ledgerjs refactored to TypeScript

2.2.0

08 Feb 23:39
e59bbf4
Compare
Choose a tag to compare

Works with Ledger Cardano app 2.2.0 and is backwards compatible with older versions down to 2.0.4/2.0.5*. Older versions of this js library do not support Ledger Cardano app 2.2.0, hence an update to this version of the library is required before Ledger Cardano app 2.2.0 is released.

Added

Fixed

  • Fixed incorrect validation of numerical parameters passed as strings which failed for values over JS max safe integer: #29