github CardanoSolutions/ogmios v4.0.0-beta-1

latest releases: v6.9.0, v6.7.1, v6.8.0...
pre-release3 years ago

Added

  • Integrated with the Cardano eco-system corresponding to cardano-node@1.27.0. Bumped the docker-compose installation accordingly.

  • New possible errors from the transaction submission coming with cardano-node@1.27.0:

    • mirTransferNotCurrentlyAllowed
    • mirNegativeTransferNotCurrentlyAllowed
    • mirProducesNegativeUpdate

    These errors are related to transactions issuing MIR certificates which can only be done by
    genesis delegates. So this change should not impact any 'standard' user.

  • New possible errors from the transaction submission coming with the Alonzo era:

    • unredeemableScripts
    • datumsMismatch
    • extraDataMismatch
    • missingRequiredSignatures
    • collateralTooSmall
    • collateralIsScript
    • collateralHasNonAdaAssets
    • tooManyCollateralInputs
    • executionUnitsTooLarge
    • outsideForecast
    • validationTagMismatch
    • collectErrors
  • The TypeScript ChainSyncClient now implements an in-memory queue to ensure requestNext
    responses are processed sequentially when there are async operations in the message handlers.
    This behaviour can be bypassed where sequential processsing is not required, by setting the new
    construction option sequential to false.

Changed

  • The moveInstantaneousRewards certificates have a new optional field value and not only a rewards map as before. When value is present, it signifies that rewards are moved to the other pot.

  • ⚠️ Server Breaking Changes ⚠️

    • Auxiliary data's scriptPreImages in Allegra & Mary has been replaced with a field scripts which has one field native. The value of native corresponds to what used to be the value of scriptPreImages. In Alonzo, scripts may also have another field plutus with a serialized Plutus script.

    • Transactions witnesses' address has been renamed into signatures, and the structure of the object has been changed to be a map from public keys to signatures (instead of an object with two field key & signature).

    • Transactions witnesses' script has been renamed into scripts.

    • Transaction submission errors' networkMismatch now returns an invalidEntities list of object in the form of { "type": ..., "entity": } where type is a text tag designating the type of entity for which there is a network identifier mismatch. Values can be address, rewardAccount and since Alonzo transactionBody. The entity field contains some details specific to the type of entity. Before, it used to be two distinct fields invalidAddresses and invalidRewardAccounts.

    • Empty transaction metadata are no longer materialized by an object with two null fields ({ "hash": null, "body": null }). Empty transaction metadata are now equal to null.

    • map metadatum in transactions' metadata are no longer materialized as a list of list of singleton objects: [[{ "k": ... }, { "v": ... }], ...] but instead, as a list of object with two fields k and v: [{ "k": ..., "v": ...}, ...]. This was an oversight from the encoder which was never intended to end up that way but happened to slip in because the schema for metadatum was not specified / documented (and therefore, also escaped testing). This is now documented properly.

    • The TxOut (and thus Utxo) model definitions have been unified and harmonized across all eras. That is, pre-Mary eras now also wrap Ada values in an object with a field "coins": .... This reduces the discrepancy between eras for there's now a single TxOut representation valid across all eras. Some fields are however optional and only present in some eras (e.g. datum starting from Alonzo)

  • ⚠️ Client/TypeScript Breaking Changes ⚠️

    • Type DelegationsAndRewards renamed into DelegationsAndRewardsByAccounts

    • Type DelegationsAndRewards1 renamed into DelegationsAndRewards

    • Type NonMyopicMemberRewards1 renamed into NonMyopicMemberRewards

    • Type TxTooLarge1 renamed into TxTooLarge

    • Type FeeTooSmall1 renamed into FeeTooSmall

    • Type NetworkMismatch1 renamed into NetworkMismatch

    • Type Proposal renamed into UpdateProposalShelley

    • Types Utxo1, Utxo2, UtxoMary have been unified into a single Utxo type. Refer to server breaking changes for details.

    • Many types NullX merged into a single Null type

    • Query types have been renamed from ledgerTip1 to GetLedgerTip and so forth for all queries.

    • ChainSyncClient no longer exposes a requestNext function. Instead you must invoke the callback provided as the second argument in each of rollBackward and rollForward handlers.

    • ChainSyncClient no longer exposes JSON-WSP reflection as there would be unexpected results given the first n messages would all share the same reflected value.

    • The ChainSyncClientMessageHandlers methods now must return a promise.

Removed

ø

Don't miss a new ogmios release

NewReleases is sending notifications on new releases.