Skip to content

v4.0.0

Latest

Choose a tag to compare

@KtorZ KtorZ released this 26 Sep 16:02
· 1 commit to main since this release
v4.0.0
dfdf5ff

API Reference

Changelog

Added

  • New cardano/value module, with handful of methods for working with builtin values:

    • contains
    • delete
    • difference
    • expect_from_data
    • from_assets
    • from_data
    • insert
    • is_zero
    • lovelace_of
    • merge
    • negate
    • policies
    • quantity_of
    • reduce
    • restricted_to
    • scale
    • to_assets
    • to_data
    • to_pairs
    • without_lovelace
    • zero
  • New primitives for aiken/crypto/bls12_381, completing coverage of the BLS12-381 builtins:

    • g1.neg / g2.neg: to compute the additive inverse of a curve point.
    • pairing.mul: to multiply two MillerLoopResult together, aggregating pairings before a final verification.
  • A new type-alias in cardano/assets: Tokens = Dict<AssetName, Int>

  • from_data and expect_from_data functions have been added to:

    • aiken/collection/list
    • aiken/collection/pairs
  • from_value has been added to aiken/collection/dict

  • to_value and from_value functions to cardano/assets.

  • replicate added to aiken/primitive/bytearray

Changed

  • ⚠️ BREAKING-CHANGE ⚠️


    Value has been renamed to Assets, to leave room to the new builtin-Value.

  • ⚠️ BREAKING-CHANGE ⚠️


    cardano/transaction/script_purpose.{compare} now follows the ledger's ordering of script purposes, which is the ordering of the redeemers list in the script context:

    • Spend < Mint < Publish < Withdraw < Vote < Propose.

    It previously followed the constructor order of ScriptPurpose (Mint first, Withdraw before Publish), which does not match the on-chain ordering. See #125.

Contributors

@KtorZ, @Micrograx, @logicalmechanism, @MavenRain