Skip to content

Releases: dcSpark/cardano-multiplatform-lib

5.3.1

06 May 05:38
255500b
Compare
Choose a tag to compare

Bug fixes

  • Fix for Babbage mints occasionally resulting in incorrect tx hash: #329

5.3.0

01 May 23:43
b0283a8
Compare
Choose a tag to compare

Conway breaking changes

These are breaking changes for Conway (which is not part of Cardano mainnet yet) to update CML to the latest Conway specs

Bug fixes

5.2.0

15 Mar 23:28
efe99fd
Compare
Choose a tag to compare

New features

  • Replace the auto-generated plutus datum JSON format (generated from cddl-codegen) with a standardized format used by cardano-node (even when used from within other structures)
  • Add preview, preprod, and sancho to the NetworkInfo utility type

Bug fixes

  • Fix Byron block hashes
  • Fix parsing of Byron-era Epoch Boundary Blocks
  • Fix potential errors when deserialization enums (see dcSpark/cddl-codegen#217)
  • Fix string formatting of ipv6 text
  • Fix the standalone hash_transaction utility function to return the right result (the .hash() function on the TransactionBody itself always worked)

Structure changes

  • (rust) TransactionMetadatum moved from cml_core::metadata to cml_chain::auxdata::metadata
  • (rust) return type of TransactionBody::hash() change from [u8; 32] to TransactionHash struct

Full Changelog: 5.1.0...5.2.0

5.1.0

01 Feb 19:32
0fa5df7
Compare
Choose a tag to compare

What's Changed

Full Changelog: 5.0.0...5.1.0

5.0.0

31 Jan 08:45
8c627c0
Compare
Choose a tag to compare

Breaking Changes

Renamed BigInt to BigInteger to avoid collisions with the built-in JS type called BigInt by @rooooooooob #302

New features

Bug fixes

  • Update ugly JSON schemas for types with non-trivial JS serialization by @rooooooooob in #300

Full Changelog: 4.0.2...5.0.0

4.0.2

04 Jan 03:33
06c03cc
Compare
Choose a tag to compare

What's Changed

Full Changelog: 4.0.1...4.0.2

4.0.1

23 Dec 17:21
8ff0b6d
Compare
Choose a tag to compare

The new v4 of CML contains a lot more code generated using cddl-codegen

Major features

  • New native rust interface! No more need to use an ugly WASM interface when writing a Rust-native library. You can find the crates for all our packages at the bottom of this post
  • Conway era support! Conway is the next era of Cardano. Learn more about the specification changes here
  • Fixed memory leaks! Previously when using CML with JS, you had to manually manage memory or you would get memory leakage. This is no longer necessary.

Minor features

  • CIP25 and CIP36 support are now packaged as part of CML. This is enabled since these specifications have a CDDL specification (so we can easily codegen them) and thanks to our native Rust interface support, composing different specs like this becomes much easier in Rust
  • New multi-era crate for projects that want more explicit multi-era support instead of just the latest version of Cardano (note: the library size for this package is larger)

Bug fixes

There are a few bug fixes that come with the new codegen tool as well as some manual patches to part of the code where cardano-node deviated from the specification temporarily.

Packages

Native Rust crates

https://crates.io/crates/cml-core
https://crates.io/crates/cml-crypto
https://crates.io/crates/cml-chain
https://crates.io/crates/cml-cip25
https://crates.io/crates/cml-cip36
https://crates.io/crates/cml-multi-era

WASM crates

https://crates.io/crates/cml-core-wasm
https://crates.io/crates/cml-crypto-wasm
https://crates.io/crates/cml-chain-wasm
https://crates.io/crates/cml-cip25-wasm
https://crates.io/crates/cml-cip36-wasm
https://crates.io/crates/cml-multi-era-wasm

Wrapper crate providing the old CML interface for the new libraries

https://crates.io/crates/cardano-multiplatform-lib

NPM

NodeJS: https://www.npmjs.com/package/@dcspark/cardano-multiplatform-lib-nodejs
Browser: https://www.npmjs.com/package/@dcspark/cardano-multiplatform-lib-browser

Note: asmjs is not updated yet (but we discourage asmjs usage anyway)

3.1.2

09 Dec 18:18
3dd2769
Compare
Choose a tag to compare

this release is for WASM/JS only to fix a bug in the serialization.

The Rust release that includes this fix will come in a later release

Bug fixes

  • Use custom format to serialize the json by @gostkin in #156

New Contributors

Full Changelog: 3.1.1...3.1.2

3.1.1

16 Nov 20:52
22380da
Compare
Choose a tag to compare

Bug fixes

Chore

3.1.0

28 Sep 15:58
Compare
Choose a tag to compare

What's Changed

Full Changelog: 3.0.1...3.1.0