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:
mirTransferNotCurrentlyAllowedmirNegativeTransferNotCurrentlyAllowedmirProducesNegativeUpdate
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:
unredeemableScriptsdatumsMismatchextraDataMismatchmissingRequiredSignaturescollateralTooSmallcollateralIsScriptcollateralHasNonAdaAssetstooManyCollateralInputsexecutionUnitsTooLargeoutsideForecastvalidationTagMismatchcollectErrors
-
The TypeScript
ChainSyncClientnow implements an in-memory queue to ensurerequestNext
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 optionsequentialtofalse.
Changed
-
The
moveInstantaneousRewardscertificates have a new optional fieldvalueand not only arewardsmap as before. Whenvalueis present, it signifies that rewards are moved to the other pot. -
⚠️ Server Breaking Changes ⚠️
-
Auxiliary data's
scriptPreImagesin Allegra & Mary has been replaced with a fieldscriptswhich has one fieldnative. The value ofnativecorresponds to what used to be the value ofscriptPreImages. In Alonzo,scriptsmay also have another fieldplutuswith a serialized Plutus script. -
Transactions witnesses'
addresshas been renamed intosignatures, and the structure of the object has been changed to be a map from public keys to signatures (instead of an object with two fieldkey&signature). -
Transactions witnesses'
scripthas been renamed intoscripts. -
Transaction submission errors'
networkMismatchnow returns aninvalidEntitieslist of object in the form of{ "type": ..., "entity": }wheretypeis a text tag designating the type of entity for which there is a network identifier mismatch. Values can beaddress,rewardAccountand since AlonzotransactionBody. Theentityfield contains some details specific to the type of entity. Before, it used to be two distinct fieldsinvalidAddressesandinvalidRewardAccounts. -
Empty transaction metadata are no longer materialized by an object with two null fields (
{ "hash": null, "body": null }). Empty transaction metadata are now equal tonull. -
mapmetadatum 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 fieldskandv:[{ "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.datumstarting from Alonzo)
-
-
⚠️ Client/TypeScript Breaking Changes ⚠️
-
Type
DelegationsAndRewardsrenamed intoDelegationsAndRewardsByAccounts -
Type
DelegationsAndRewards1renamed intoDelegationsAndRewards -
Type
NonMyopicMemberRewards1renamed intoNonMyopicMemberRewards -
Type
TxTooLarge1renamed intoTxTooLarge -
Type
FeeTooSmall1renamed intoFeeTooSmall -
Type
NetworkMismatch1renamed intoNetworkMismatch -
Type
Proposalrenamed intoUpdateProposalShelley -
Types
Utxo1,Utxo2,UtxoMaryhave been unified into a singleUtxotype. Refer to server breaking changes for details. -
Many types
NullXmerged into a singleNulltype -
Query types have been renamed from
ledgerTip1toGetLedgerTipand so forth for all queries. -
ChainSyncClientno longer exposes a requestNext function. Instead you must invoke the callback provided as the second argument in each of rollBackward and rollForward handlers. -
ChainSyncClientno longer exposes JSON-WSP reflection as there would be unexpected results given the first n messages would all share the same reflected value. -
The
ChainSyncClientMessageHandlersmethods now must return a promise.
-
Removed
ø