title | weight | chapter | layout | pre | math |
---|---|---|---|---|---|
Changelog |
6 |
false |
changelog |
<b>6. </b> |
true |
- Integrate
cardano-node==10.1.2
and associated dependencies.- New transaction submission / evaluation errors:
EmptyTreasuryWithdrawal
(code=3168
) triggered when a transaction contains a governance proposal with an empty treasury withdrawal.UnexpectedMempoolError
(code=3997
) triggered when a transaction is rejected due to custom arbitrary rules that prevented it from entering the mempool.
- N/A
- N/A
- Integrate
cardano-node==9.2.0
and associated dependencies. - Add new ledger-state query:
queryLedgerState/governanceProposals
to retrieve currently active governance proposals and their ratification state (i.e. ongoig votes).
-
Fix automatic transaction upgrade to NOT change underlying binary format during upgrade. The previous implementation would on some occasions alter the serialized form, thus causing transaction hash to change and invalidating all signatures on it. The new approach does always preserve binary serialisation, but as a result, makes more scenario not translatable (e.g. trying to translate a multi-asset UTxOs containing a 0 quantity is impossible when targetting Conway).
- N/A
- Automatically upgrade transactions from previous era (up until Alonzo) on submission.
- N/A
- N/A
- N/A
- Compile with
cardano-node==9.1.1
/cardano-ledger-shelley==1.12.3.0
carrying an important fix for pointer deserialization.
- N/A
- N/A
- Fixed
"babbage"
being reported as the block era for Conway blocks.
- N/A
-
Add missing
treasury.value
andtreasury.donation
for Conway transactions. -
Add missing
protocolParametersUpdate.security
thresholds to stake pools voting thresholds in Conway governance actions. -
Add missing
ancestor
to various governance actions, pointing to the previous action of the same group. -
Add a new
from
field to objects referring to stake credential. The field allows to distinguish between verification key and script credentials. -
The
stakePools
method on theLedgerStateQueryClient
now supports an extrafilter
. The filters were available on th standalone query but not via the client somehow.
-
Fix upgradability of Alonzo/Babbage transactions into Conway transactions. Before, Babbage transaction submitted for evaluation that spent Plutus V3 Scripts while using a Babbage serialization format would failed to upgrade into Conway transactions due to incompatibility at the binary level. The translation has been fixed, except for truly incompatible transactions (e.g. those containing MIR or duplicate certificates).
-
Refresh embedded configuration files to match those expected by
cardano-node==9.1.0
(in particular, genesis files for mainnet, preview and preprod). -
Only return
OverlappingAdditionalUtxo
error during transaction simulation when overlapping utxo differ from the ones fetched from the ledger.
- ø
-
Integrated with
cardano-node==9.0.0
. -
New ledger-state query:
queryLedgerState/treasuryAndReserves
to retrieve the current Ada values of the treasury and reserves. -
New protocol parameters in Conway:
maximumReferenceScriptsSize
which indicates the maximum total number of bytes of scripts referenced by a transaction.minFeeReferenceScripts
with three sub fields:range
,base
andmultiplier
that now intervenes in the minimum fee calculation. Note that, starting in the Conway era, the min fee calculation is given by the following formula:
Where
Size range | Cost |
---|---|
... | ... |
Considering
Size range | Price per byte | Plot |
---|---|---|
See online calculator | ||
... | ... | |
Note
In Conway, the maximum size of reference scripts is limited to 200KiB.
Hence, a transaction that carries reference scripts adding up to 80KiB of data would be priced:
- New transaction submission / evaluation errors:
ReferenceScriptsTooLarge
(code=3166
) now raised when trying to submit a transaction that contains reference scripts whose total size is above 200KB (will become a protocol parameter in the next era).UnknownVoters
(code=3167
) returned when submitting votes from unregistered pools or credentials.
-
Roll back down to GHC-9.4.8 in an attempt to fix #399 possibly caused by a bug in GHC runtime system (possibly patched on 9.4.x).
-
Fixed transaction evaluation internal client not being properly terminated and cleaned up after use; resulting in active connections piling up over time. See #403.
-
Fixed the reported
activeStakeInEpoch
on thequeryLedgerState/rewardsProvenance
, which was mistakenly reporting thetotalStakeInEpoch
. A new valuetotalStakeInEpoch
also now correctly reports that information.
- N/A
-
Integrated with
cardano-node==8.11.0-pre
. -
A new transaction submission / evaluation error:
UnauthorizedGovernanceAction
(code=3165
) raised when trying to submit a governance action other than protocol parameters change, hard fork initiation or info during the bootstrapping phase of the Conway era.
-
A new queryNetwork error:
InvalidGenesis
(code=2004
) raised when trying to query a genesis configuration which is invalid or missing (for instance, when there's a mismatch between the Conway configuration and the underlying ledger library parsing it).
-
The
data.providedCollateral
anddata.computedTotalCollateral
from submission errors with code3128
and3135
can now be negative Ada values. -
Fixed missing
conway
option in the state query client for thegenesisConfiguration
query.
- N/A
-
Integrated with
cardano-node==8.10.1-pre
. -
A new ledger state query
queryLedgerState/constitutionalCommittee
. -
A new transaction submission error:
ConflictingInputsAndReferences
(code=3164
).
-
The server now reports (log) unexpected failures happening during protocol execution instead of only replying to clients with an error. See #383.
Warning
Adjusted the schema of constitutional committee certificates in order to harmonize responses between certificates and the new constitutionalCommittee
ledger query.
before | after |
---|---|
{ "type": "constitutionalCommitteeHotKeyRegistration", "member": { "id": "0000", }, "hotKey": "0000" } |
{ "type": "constitutionalCommitteeDelegation", "member": { "id": "0000", }, "delegate": { "status": "authorized", "id": "000" } } |
-
Fixed integer overflow happening when encoding relative time bounds in era summary, causing times to be shown as negative values.
-
Fixed parsing of the
constitution
ledger query which now resolves properly.
- N/A
-
Transaction evaluation now automatically UTxO available from processing the mempool. This allows for chaining smart-contract transactions without the need to track the UTxO state on from the client's side. Ogmios now internally maintains a view of the node's mempool and ensure a consistent access to it when evaluating transaction. See also #375.
-
More log traces around transaction evaluation and submission.
- Retry
HasTx
on false with id wrapped in different eras, to cope with the hard-fork combinator inability to compare transaction id across eras. See also #376.
- N/A
-
Two new script purposes (available from the Conway era onward):
propose
: for proposing new governance actions. When itemized, comes with aproposal
field that documents the associated governance proposal.vote
: for voting on a proposed governance action. When itemized, comes with anissuer
field that documents the associated governance issuer.
-
A new field
guardrails
is now present on governance proposals of typetreasuryWithdrawals
andprotocolParametersUpdate
. It is eithernull
or contains a script hash (blake2b, 28 bytes) that indicates the additional guardrails script that must successfully pass for the governance proposal to be considered valid. -
The object returned from
ledgerState/rewardAccountSummaries
now contain an extradeposit
field equals to the amount deposited and held by the associated stake credential. -
A new query
queryLedgerState/constitution
to obtain the current on-chain constitution. This query is only available when the ledger is in the Conway era onwards.
-
Configuration files no longer contain
mainnet_p2p
,preprod_p2p
,preview_p2p
andsanchonet_p2p
folders. The p2p configs are now replacing the default configurations; so we're back to configuration folders formainnet
,preprod
,preview
andsanchonet
. -
The constitution
hash
is now wrapped in a singleton objectguardrails
, to better capture its meaning. It isn't the hash of the constitution script (which is covered by theanchor
already), but the hash of the additional script policy which controls governance proposals of certain actions (e.g. treasury withdrawals, protocol parameters). -
Renamed all fields
anchor
tometadata
in the Conway era objects to be more consistent with other occurences of metadata in previous eras. -
Fixed a few minor JSON-schema oversights such as
TransactionOutputReference
's index now being aUInt64
(instead ofUInt32
).
InternalLedgerTypeConversionError
which can no longer occur.
- A new transaction submission / evaluation error (
code: 3161
) returned when a script evaluation goes beyond its allocated budget.
-
Mapped some internal errors to actual predicate failures. Before, Ogmios would simply return an
InternalLedgerTypeConversionError
with code3999
in cases where it should have been returning a more meaningful error resulting from either an excessive script evaluation (see new introduced error 3161) or a failed attempt to create a script context for a given transaction. -
Renamed types regarding Metadatum in the TypeScript client to provide more meaningful names.
- N/A
- N/A
- Fixed 'preview' showing as 'preprod' (and vice-versa) in error message on start-up when connecting to a wrong test network.
- Fixed parsing of base16-encoded CBOR transaction on
ogmios inspect transaction
; would wrongly expect an extra singleton object before that. - Fixes identification of submit/evaluate transaction responses, now using the
method
field instead of relying on the mirror. Should fix clashes with other requests.
- N/A
- Introduced a new runtime configuration flag
--strict-rpc
to allow removing the extra'method'
field provided in the server response. While the JSON-RPC specification doesn't explicitly disallow the use of extra fields in the response, some libraries have proven being quite strict in the inputs they accept, resulting in errors when receiving Ogmios' responses. The flag is off by default.
- Fixed various descriptions and oversights in the JSON specifications (and thus documentation). In particular, the Getting Started section on the website has been slightly reworked to be easier to navigate and to include information about configuring Ogmios.
- N/A
-
Integration with
cardano-node==8.7.2
andcardano-ledger-conway==1.11.0.0
. It adds (preliminary) support for the Conway era. This support only covers what is currently available in the Cardano node / ledger. However, since the implementation of this era isn't finalized yet it will likely break in the future. New updates will be issued until Conway stabilizes. -
Ogmios now accept queries via HTTP (POST). Request bodies are the same as those passed to the websocket and so are responses. In fact, most Ogmios queries follow a simple request/response pattern and are therefore well-suited to be run over HTTP. While there's an obvious performance trade-off (especially for the local-chain-sync protocol), it is a reasonable approach for many queries (e.g. the local-state-query protocol).
[!NOTE] The HTTP server and the WebSocket server are both mounted on the same port. So, it suffices to route HTTP requests through
/
. The JSON payload is the same. -
Ability to retrieve any genesis configuration (Byron, Shelley, Alonzo or Conway) via the state-query protocol.
-
A new flag
--metadata-detailed-schema
(disabled by default) to control how the server returns JSON metadata. When set, the server will return a JSON description of the encoded data; when omitted, it'll attempt to convert CBOR metadata as plain JSON object, and default to hex-encoded cbor otherwise. See also notes in ADR-017. -
A new command
inspect transaction
to help with debugging the deserialization of transaction. -
The health now contains an extra
network
andversion
. Also, beware that era names are now returned in lowercase (first letter used to be capitalised!). -
sanchonet
network to the list of well-known networks. -
arm64
static executables for Linux are now available in the continuous delivery pipeline, and as release artifacts.
-
The server now return an
internalError
when an unexpected error occurs in the communication between Ogmios and the node. Before, Ogmios would simply log an exception and no response would be sent back to client applications. Now, clients correctly receive an unsuccessful response with the sameid
as present in the request. See #346. -
-
Add an extra promise handler to cope with unexpected websocket disconnections when submitting messages to the server. See #346.
-
Escape the word 'constructor' to
constr
when present as key in metadata, and when not using--metadata-detailed-schema
. JavaScript (and thus TypeScript) forbids using that word as an object key.
-
-
⚠️ BREAKING-CHANGE⚠️ Many major changes in the interface. A complete migration guide is available in ADR-017, yet please refer to the API reference for details and exhaustiveness. Many representations have been made easier to parse and field names have been improved (more consistent across the entire API and better self-documented).[!NOTE] There are still many test vectors available for every element of the Ogmios API. Use them!
-
Ogmios will no longer retry connecting to a node that is configured for another network but exit with an non-zero code and a clear error message indicating the network mismatch.
-
The default dashboard on localhost has been greatly rework and simplified. It also better handles errors.
-
Responses from the server no longer includes raw binary cbor by default. This was the case in particular for transactions. This behavior can be restored by configuring the server with
--include-cbor
to always include binary version of some specific objects such as transactions. This flag can be declined in more fine-grained flags if necessary:--include-transaction-cbor
--include-metadata-cbor
--include-script-cbor
where
--include-cbor
turns all three flags at once.
-
⚠️ BREAKING-CHANGE⚠️ Compact mode is no more. Responses are more compact by default already and it is no longer possible to ask for a compact mode. -
⚠️ BREAKING-CHANGE⚠️ Ogmios no longer returns null or empty fields. Where a field's value would benull
prior to v6.0.0, Ogmios now simply omit the field altogether. This is also true for most responses that return empty lists as well. All-in-all, please refer to the documentation / JSON-schema in case of doubts (fields that may be omitted are no longer marked asrequired
).
-
Add a new helper function
unsafeMetatumAsJSON
which converts a detailed metadata schema into plain JavaScript, whenever possible. For example:{ "list": [ { "string": "foo" }, { "int": 42 } ] }
→["foo", 42]
This should work for any CIP-0025 metadata, and a few other formats. Yet it is unsound in the general case since not every on-chain metadata can actually be represented as JavaScript objects.
-
Fixed a bug in the JSON parser where
coins
quantities from all eras prior to Mary would be parsed asNumber
instead ofBigInt
.
N/A
N/A
-
Bump internal packages to match [email protected] dependencies set.
-
Bundle the docker image with more recent versions of the cardano-configurations.
-
Fix
TxMonitorClient
'snextTx
wrongly throwing an error when called with no argument. The signature of that method has also been reworked slightly to provide better usage at call-site. -
Add missing
required
constraints in the JSON schema for Byron witness representation that caused TypeScript types to be generated as optional.
N/A
-
delegationAndRewards
andnonMyopicMemberRewards
queries now both accept credentials in the form of bech32 strings as parameters, with the following expected prefixes and semantic (according to CIP-0005:stake
(resp.stake_test
on test networks) for stake addressesstake_vkh
for stake key hash digestsscript
for stake script hash digests
See also #277.
-
Allow
additionalUtxoSet
to be passed as argument in the repl.
N/A
-
Prometheus metrics exported at
/metrics
endpoint -
Schema definitions are now included in the 📘 API reference. This makes it a little easier to find a specific schema without having to drill into a messages definitions.
-
Fixed network synchronization reporting
0.99999
even when fully synchronized. There was sometimes a possible discrepancy between the ledger internal clock and Ogmios' clock, causing a few seconds of drift time. -
Fixed a couple of data-types with fields parsed as
number
instead ofbigint
. See #274[!WARNING] This is technically an internal breaking-change, however it actually comes as a bug fix since this does not change the announced interface in the TypeScript schema (which was correctly indicated 'bigint'). Still, this may cause issues with those using
number
where there will now bebigint
. -
Fixed browser detection for the
IsomorphicWebSocket
abstraction. See #273
N/A
- Fixed parsing of
ScriptFailures
coming out of theevaluateTx
command. Before this patch, the client would simply throwundefined
when such an error was encountered. They are now properly transcribed asEvaluateTxError
.
testnet
has been removed from the target networks by the Docker workflow; which means that until further notice, there will be no more Docker images pushed for testnet. However, support forpreprod
andpreview
environment has been added.
- Missing JSON specification (and therefore, documentation) for
collectErrors
. See #244.
-
Slot lengths are now encoded as floating numbers (double precision) instead of integers (still representing a number of seconds). However, to maintain backward-compatibility, integers value are encoded without decimal, as they used to. #245
-
Blocks' properties (
header
,headerHash
,body
) are no longer marked as optional in the JSON specification (and consequently, in the TypeScript SDK). #238
N/A
N/A
-
Bumped cardano-node's version (continuous integration & docker image) to 1.35.2.
-
⚠️ Fixed Plutus' data / datum serialization function. See 3f614c3c for details. As a consequence, some datums (either inline or in the witness set) that have been reported in the past (sincev5.5.0
) may have been wrong. Note that the datum hashes were however correct, so it is possible to identify the "corrupted" ones by trying to re-hash (blake2b-256) them and see whether they match their associated hash digest. -
Changed the Docker image tagging's scheme of
cardano-node-ogmios
to now include the cardano-node's version. This allows to more easily bundle more recent version of cardano-node with old versions of Ogmios without the need to make a whole new release. This is in effect fromv5.5.2
and onwards.image repository tags cardano-node-ogmios cardanosolutions/cardano-node-ogmios latest
latest-{NETWORK}
v*.*.*_{CARDANO_NODE_VERSION}
v*.*.*_{CARDANO_NODE_VERSION}-{NETWORK}
ogmios cardanosolutions/ogmios latest
latest-{NETWORK}
v*.*.*
v*.*.*-{NETWORK}
-
Fixed incongruous error message from the command-line when failing to parse protocol parameters from genesis files. The error reporting has been slightly improved to give a more fine-grained error per invalid parameter. See #242.
N/A
N/A
-
Bumped cardano-node's version (continuous integration & docker image) to 1.35.1.
-
Remove superfluous string concatenation in
UnknownResultError
's message. See #236.
N/A
- New
isBabbageProtocolParameters
helper function, and extended support of the existing ones to Babbage. See #234.
- Fixed Health endpoint wrongly reporting 'Alonzo' while in the 'Babbage era'. See #233.
N/A
- Added Vasil/Babbage support, including:
- A new block type
babbage
with:- New (optional) transaction fields
references
,collateralReturn
,totalCollateral
; - New (optional) transaction output's fields
datum
andscript
;
- New (optional) transaction fields
- A new
plutus:v2
script language;
- A new block type
- New transaction error submission failures in the Babbage era:
mirNegativeTransfer
: return when attempting to perform a negative MIR transfer from a reward pot to another;totalCollateralMismatch
: returned whentotalCollateral
is set but does not match what is actually computed by the ledger (i.e. sum of collateral inputs minus collateral return);malformedReferenceScripts
: returned when thescript
specified in an output isn't actually a well-formed Plutus script;malformedScriptWitnesses
, occurs when a script witness specified in the transaction does not properly deserialize to a Plutus script.
- New script evaluation failures in the Babbage era:
corruptCostModelForLanguage
: An artifact from a distant past. This is unused but somehow still present in the ledger internal definitions. Should be removed eventually.
- New server evaluation failures:
NotEnoughSynced
: Happens when attempting to evaluate execution units on a node that isn't enough synchronized. This is, if the node is still in an era prior to Alonzo, evaluation of execution units won't be possible.CannotCreateEvaluationContext
: Happens when the ledger fails to create an evaluation context from a given transaction. This is mostly due to the transaction being malformed (e.g. wrong redeemer pointer, missing UTxO).
See the 📘 API reference for more details.
-
Updated cardano-configurations to include the
vasil-dev
network and switch to cardano-world as a source instead of Hydra artifacts -- now being deprecated. -
Partially fixed an issue causing websocket connection to be terminated by the server when p2p is enabled on the underlying node. Ogmios now has a workaround which makes the issue less likely, but the real fix belongs in the upstream networking stack. See #230, #208.
-
The
missingRequiredScripts
error now contains an extra fieldresolved
that is a map of (pointer → script hash) that have been correctly resolved by said pointers. -
The introduction of the Babbage era comes with some minor (albeit possibly breaking) changes and deprecations:
-
⚠️ datums
,redeemerData
andplutus:v1
scripts are no longer encoded asbase64
strings, but are encoded asbase16
strings. The data payload remains however identical. This change is meant for more compatibility across the API since those data-types can now also be submitted to the server when evaluating execution units for transactions. Usingbase64
for input data here is a bit awkward since most existing interfaces in the ecosystem favorbase16
; -
⚠️ When passing transaction outputs to the server (e.g. when providing an additional UTxO for script evaluation), datum hashes in output must now be specified asdatumHash
(instead ofdatum
). However, the server does a best-effort for the sake of backward compatibility and should still work if provided with a valid hash underdatum
. However, after the Vasil hard-fork, it'll be possible to also pass inline-datums usingdatum
, while datum hash digest are expected to be specified asdatumHash
. Said differently, existing applications relying on this functionality will keep working without a change on this release, but applications willing to make use of the new inline-datum functionality coming in Vasil must abide by the new notation; -
⚠️ Similarly, Alonzo transaction outputs will now contain adatumHash
field, carrying the datum hash digest. However, they will also contain adatum
field with the exact same value for backward compatibility reason. In Babbage however, transaction outputs will carry eitherdatum
ordatumHash
depending on the case; anddatum
will only contain inline datums; -
⚠️ TheoutputTooSmall
errors from transaction submission will slightly change format for transactions submitted during the Babbage era. Instead of an array of outputs, it is an array of objects withoutput
andminimumRequiredValue
fields; -
⚠️ A slightly modified block header:leaderValue
andnounce
fields are gone and replaced by a singleinputVrf
field; -
⚠️ Few protocol parameters changes:-
A new protocol parameter
coinsPerUTxOByte
comes to replacecoinsPerUtxoWord
with a slightly different semantic.coinsPerUTxOByte
is meant to compute the minimum Lovelace requirement on transaction outputs, and is simply a coefficient in a linear function of the serialized (CBOR) output:minUTxOValue(output) = |serialise(output)| * coinsPerUTxOByte
-
The
decentralizationParameter
no longer exists.
The block production is forever decentralized 🎉! -
The
extraEntropy
no longer exists.
-
-
See the 📘 API reference for more details.
-
UnknownInputs
andUncomputableSlotArithmetic
errors have been removed from the top-level possible cases ofEvaluationFailure
. Instead, those errors are now comprised in theCannotCreateEvaluationContext
case. -
The
corruptCostModelForLanguage
error has been removed from the top-level possible cases ofScriptFailure
. This one was effectively dead-code that couldn't be reached and was there for completeness. The code has now been removed upstream.
- TypeScript client for the 'TxMonitor' mini-protocol. Documentation available at https://ogmios.dev/typescript-client/tx-monitor/.
-
The server now returns slightly better faults when detecting a misuse of the
TxMonitor
protocol (e.g. when sending aHasTx
before anAwaitAcquire
). -
The server now fails with an explicit error when given a
Request
containing areflection
field;reflection
are only used in responses, while requests usemirror
. See #217.
-
In the Local-Tx-Monitor protocol,
NextTx
can now take an (optional) extra argument{ "fields": "all" }
to instrument the server in returning not only a transaction id inNextTxResponse
, but a full transaction object. See #190. -
Transaction JSON objects from all eras now contains an extra field
raw
, which represents the raw serialized transaction (CBOR) as a base64-encoded text string. This is the case of the chain-sync protocol, but also for the tx-monitor protocol. The field is however absent in theogmios.v1:compact
mode. See #190. -
Transaction JSON objects from the Alonzo era now contains an extra field
inputSource
which a string set to eitherinputs
orcollaterals
. This captures the fact that since the introduction of Plutus scripts in Alonzo, some transactions may be recorded as failed transactions in the ledger. Those transactions do not successfully spend their inputs but instead, consume their collaterals as an input source to compensate block validators for their work.
-
The complete API reference for the server is available in a new form at: https://ogmios.dev/api/. This should make the various protocol messages easier to explore and provide a less awkward visualization of the server API than the previous TypeScript documentation. The old TypeScript documentation remains however available at: https://ogmios.dev/typescript/api/.
-
Upgrade internal dependencies to
[email protected]
-
Fixed the supervisor script for the
cardano-node-ogmios
Docker image, which would wrongly ignore signals sent from the Docker daemon (e.g.docker container stop ...
). See #168 -
The tx-submission client now only creates a single event listener to interact with the server. This solves the Node.js warning "possible memory leak detected" when firing many submission requests at once (and going beyond the internal default
maxNumberOfListeners
set by node.js on event emitters). See #197. -
The options passed to the WebSocket constructors are now ignored on the browser, since they aren't supported and were causing the constructor to "crash". See #194.
-
⚠️ Some schema type interface renaming:Tx
→TxByron
BlockBodyShelley
→TxShelley
BlockBodyAllegra
→TxAllegra
BlockBodyMary
→TxMary
BlockBodyAlonzo
→TxAlonzo
N/A
- Extended the local-tx-submission protocol with a new
EvaluateTx
query which evaluates execution units of scripts present in a transaction. This effectively piggybacks on the Alonzo's tools from the cardano-ledger while providing a more user-friendly interface regarding network parameters. The API offers well-detailed errors and an interface similar to theSubmitTx
. See discussion on #172.
- New
rewardsProvenance'
query coming as a replacement for the now-deprecatedrewardsProvenance
query. See discussion on #171.
-
Support for the new
evaluateTx
query in theTxSubmissionClient
& repl. -
Support for the new
rewardsProvenance'
query asrewardsProvenanceNew
in theStateQueryClient
& repl.
- Added transaction id as part of the successful response to a
SubmitTx
. While this is technically a breaking-change, it was introduced in a backward-compatible way. Existing applications using the existingSubmitTx
query will see no change and will keep receiving successes as"SubmitSuccessful"
text responses. However, queries which pass transactions using thesubmit
field (instead of the currently expectedbytes
field) will receive, on success, an augmented response which contains a transaction id"SubmitSuccessful": { "txId": "..." }
. See discussion on #174.
- Improved error reporting for the
SubmitTx
protocol which should gives a little clearer errors for ill-formed transactions.
-
⚠️ Renamed client'sTxSubmission/errors.ts
intoTxSubmission/submissionErrors.ts
. Similarly, the submission are also now nested under asubmissionErrors
field in theTxSubmission
top-level object.
N/A
- New
LocalTxMonitor
support in Ogmios. See The user guide for more details.
[email protected].*
. Until its inclusion in a next release, a custom build of cardano-node is required to include a more recent version of ouroboros-network
which adds support for that protocol to the Ouroboros' mini-protocols; namely: 32af9168
.
A version of [email protected]
patched with the necessary commits can be found at CardanoSolutions/[email protected]+local-tx-monitor.
- New fields in the health object:
- New
ogmios health-check
command, useful to perform simple health check on a running server. For example, to monitor a container via Docker health check mechanism:HEALTHCHECK --interval=10s --timeout=5s --retries=1 CMD /bin/ogmios health-check
- Bumped internal dependencies to Cardano's
1.33.*
eco-system.
networkSynchronization
andcurrentEra
can benull
when the server isn't connected to a node. #154- The
Metrics
trace is now correctly tagged withMetricsRuntimeStatsDisabled
. - Fixed an issue with the Docker monitoring scripts of cardano-node-ogmios, causing issues on restart. #159
- Relax upper-bound constraint on required node.js engine. This should make it possible to install the TypeScript packages on more recent versions on node.js than the one specified on the repository.
N/A
-
New state-query
systemStart
to access the blockchain start time (UTC). -
New state-query
chainTip
to access the blockchain current tip (may slightly differ from theledgerTip
which may be behind catching up).
- New state-query
blockHeight
to access the blockchain current highest block number (or"origin"
if the chain is just starting).
- New state-query
eraSummaries
to access all era bounds and slotting parameters details, required for proper slot arithmetic.
- Log-levels can now be configured per-component. For example, one can decrease the min severity for the health component while keeping the state-query logs at another.
- Logs can now be shutdown completely via the special keyword
off
.
- Static binaries for Linux are now produced by the Nix build and uploaded as build artifacts for the corresponding Github workflow (i.e. Nix).
⚠️ RelativeTime
is no-longer serialised as a string (withs
as suffix) but, as an integer representing the number of seconds.
-
⚠️ Serialised Plutus scripts are now labelled eitherplutus:v1
orplutus:v2
(instead ofplutus
). -
⚠️ Some breaking changes in the SubmitTx errors returned by the server for the sake of consistency. All submission errors are now returned as singleton objects within an array. The key of each object indicates the type of error and the value gives additional details about the errors. This is also true for era-mismatch errors. Some errors used to be returned as plain strings, they are now wrapped as singleton object withnull
as a value; this is the case for:invalidMetadata
mirNegativeTransferNotCurrentlyAllowed
mirProducesNegativeUpdate
mirTransferNotCurrentlyAllowed
missingAtLeastOneInputUtxo
missingCollateralInputs
triesToForgeAda
validationTagMismatch
wrongCertificateType
-
⚠️ getServerHealth
'sconnection
argument is now wrapped into an object, mapped to the fieldconnection
. (see #135) -
⚠️ Replaced schema definitions forHash16
andHash64
with more precise type definitions. For hashes, definitions now follows a conventionDigest[ALGORITHM]::PRE-IMAGE
whereALGORITHM
andPRE-IMAGE
points to the corresponding has algorithm used to hash thePRE-IMAGE
. The length of the digest is given byminLength
andmaxLength
JSON-schema constraints. Consequently, TypeScript types / interfaces generated from the JSON-schema definitions have been altered.
-
⚠️ Log level severitiescritical
,alert
andemergency
have been removed.error
is now the highest severity. -
⚠️ The Nix setup has been highly simplified, resulting in removal of the NixOS services configuration and probably some other stuff.
N / A
- Fixed configuration parsing which would wrongly use Shelley's slots per epoch instead of Byron's. This had an impact on the reported slot number in the chain-sync protocol, where slot numbers would be wrongly offset by
432000
per epoch after the first epoch.
N/A
-
Enabled Alonzo transaction in the submission protocol (oversight from previous releases). Doing so, explicit compiler warnings have been added to the relevant code to avoid overseeing this in the next upgrade.
-
Added query response and requests to logs trace, large responses are truncated (e.g. querying the entire UTXO or, informations about all stake pools).
-
Gracefully handled shutdown and process cleanup on
SIGTERM
. -
Documented Mary last point to the points of interests for the chain-sync protocol.
-
Bumped cardano-node's integration to 1.31.0
-
The State-Query client can now
release
acquired points to perform queries against the most recent tip (which was also the default when creating a client with no point).
- Some internal rework and cleanup; mostly chasing dangling promises by avoiding attaching even handlers when not needed.
N/A
-
Generate and store test vectors for various JSON requests and responses. This should ease integration for many clients who seek for good coverage of the server inputs/outputs.
-
Documented example state queries in the user-guide.
-
The
ConnectionConfig
has an additional, optional, configuration parametermaxPayload
to configure the maximum allowed message size in bytes. The default is chosen quite large as theutxo
query can result in large payloads. -
New helpers
isByronEpochBoundaryBlock
andisByronStandardBlock
.
- The
StateQueryClient
now wraps every query in a try/catch to cope with malformed queries leading to clientfault
results from the server. - Type definitions for
QueryResponse[poolIds]
andQueryResponse[poolParameters]
are no longer marked as "optional". - Fixed bug #125 where empty results of
delegationAndRewards
would cause the client to throw an exception. - Handled some floating promises.
N/A
- Integrated with the Cardano eco-system corresponding to [email protected] (Alonzo!) & latest testnet(s).
- New
alonzo
block type, with various additions related to Alonzo.
-
New state-queries:
Query Description poolIds
The list of all pool identifiers currently registered and active. poolParameters
Stake pool parameters submitted with registration certificates. poolsRanking
Retrieve stake pools ranking (a.k.a desirabilities). rewardsProvenance
Get details about rewards calculation for the ongoing epoch. -
Added missing properties in Byron's protocol parameters update. Somehow, an
additionalProperties: true
had slipped through and caused the tests to pass with an incomplete schema. -
Nested logs are now also structured, in particular those coming from the
Handshake
orTxSubmission
protocols. Before, any message from these layers where actually plain strings with unintelligible gibberish. Now, the submitted transaction payload is shown encoded as hexadecimals and errors are also serialized to json using the same model / codec as the one used for websockets. The handshake is also more verbose now clearly showing what version is being requested and what the node replies / select. All in all, better logs. -
The Dockerfile now includes a build definition for building
cardano-node
andogmios
into the same image, which is the default and suggested mode of operation. To build an image with only Ogmios, use the build--target ogmios
. Docker Hub now hosts two image repositories:cardanosolutions/cardano-node-ogmios
andcardanosolutions/ogmios
. -
Docker Hub images are now tagged with a network suffix (e.g.
-mainnet
). In the case of mainnet, the-mainnet
suffix is optional, and points to the same build as the defaults. -
A new repository for hosting Cardano configurations of various services was created and is now used in Ogmios. Configuration for cardano-node (and therefore Ogmios) or, network genesis can be found in input-output-hk/cardano-configurations. Configurations are updated automatically by a nightly job to be always up-to-date. They can be pulled into projects as git submodules.
-
New possible errors from the transaction submission (stemming from the Alonzo integration):
collateralHasNonAdaAssets
collateralIsScript
collateralTooSmall
collectErrors
datumsMismatch
executionUnitsTooLarge
extraDataMismatch
extraRedeemers
mirNegativeTransferNotCurrentlyAllowed
mirProducesNegativeUpdate
mirTransferNotCurrentlyAllowed
missingDatumHashesForInputs
missingRequiredDatums
missingRequiredRedeemers
missingRequiredSignatures
outsideForecast
poolMetadataHashTooBig
tooManyCollateralInputs
unspendableDatums
unspendableScriptInputs
validationTagMismatch
-
The
ChainSyncClient
now 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 optionsequential
tofalse
. -
The
StateQueryClient
can now re-acquire new points at will, useful for long-running clients for which previously acquired points may expire. -
The TypeScript client is now fully documented!
-
⚠️ Theutxo
query can now accept a listTxIn
as argument, and still supports list ofAddress
. Note that lists can't be heterogeneous and it's not possible to mixTxIn
andAddress
. -
⚠️ Asset quantities and transaction metadata's integers are now parsed as nativeBigInt
. -
The
memory
andsteps
JSON representations forprices
are no longer coins, but ratio (represented as strings in the API). -
The
moveInstantaneousRewards
certificates have a new optional fieldvalue
and not only arewards
map as before. Whenvalue
is present, it signifies that rewards are moved to the other pot. -
Auxiliary data's
scriptPreImages
in Allegra & Mary has been replaced with a fieldscripts
which has one fieldnative
. The value ofnative
corresponds to what used to be the value ofscriptPreImages
. In Alonzo,scripts
may also have another fieldplutus
with a serialized Plutus script. -
Transactions witnesses'
address
has 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'
script
has been renamed intoscripts
. -
Transaction submission errors'
networkMismatch
now returns aninvalidEntities
list of object in the form of{ "type": ..., "entity": }
wheretype
is a text tag designating the type of entity for which there is a network identifier mismatch. Values can beaddress
,rewardAccount
and since AlonzotransactionBody
. Theentity
field contains some details specific to the type of entity. Before, it used to be two distinct fieldsinvalidAddresses
andinvalidRewardAccounts
. -
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
. -
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 fieldsk
andv
:[{ "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) -
⚠️ State queries (resp. theStateQueryClient
) now automatically runs queries against the last known tip if no explicit point is provided. It used to acquire a point on the first query which would eventually become too old. The behavior is now equivalent to acquiring a new point on every query! -
⚠️ SubmitTx
no-longer returns Byron errors. Consequently, submit errors are no longer scoped undererrors.byron
orerrors.shelley
but simplyerrors
. -
⚠️ FixedproposedProtocolParameters
query. All fields are actually required AND, more importantly, it can now return either Shelley protocol parameters or, Alonzo protocol parameters. -
The
ChainSyncClientMessageHandlers
methods now must return a promise. -
Various reworks and renaming of the TypeScript types
AssetQuantity
is now a nativebigint
- Metadatum's
Int
are now nativebigint
- Type
DelegationsAndRewards
renamed intoDelegationsAndRewardsByAccounts
- Type
DelegationsAndRewards1
renamed intoDelegationsAndRewards
- Type
NonMyopicMemberRewards1
renamed intoNonMyopicMemberRewards
- Type
TxTooLarge1
renamed intoTxTooLarge
- Type
FeeTooSmall1
renamed intoFeeTooSmall
- Type
NetworkMismatch1
renamed intoNetworkMismatch
- Type
Proposal
renamed intoUpdateProposalShelley
- Types
Utxo1
,Utxo2
,UtxoMary
have been unified into a singleUtxo
type. Refer to server breaking changes for details. - Type
Tip
&Point
renamed intoTipOrOrigin
andPointOrOrigin
. As a consequence,Tip1
andPoint1
are now simplyTip
andPoint
. - Many types
NullX
merged into a singleNull
type - Query types have been renamed from
ledgerTip1
toGetLedgerTip
and so forth for all queries.
-
datumsMismatch
, a previously introduced error from the transaction submission has been removed / replaced. -
SubmitTx
can no longer returnSubmitTxError[Byron]
. All the child error types have been removed accordingly, namely:UtxoValidationError
TxValidationError
LovelaceError
-
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.
- New TypeScript client! The client comes in three packages:
- An interactive REPL to play with Ogmios using the command-line.
- A generator to derive TypeScript type definitions from the JSON schema.
- The actual client library providing nice wrapper around the various protocol, in a typed way. The TypeScript client also includes a new battery of automated integration tests against the testnet.
- Support for WebSocket sub-protocols, with currently one support sub-protocol:
ogmios.compact.v1
. When enabled, Ogmios will omit fields such as witnesses, proofs and signatures from responses to make responses smaller. - Provide missing documentation / JSON-schema for:
- JSON-WSP faults
- Allegra & Mary
SubmitTx
failures:-
Allegra:
expiredUtxo
is replaced byoutsideOfValidityInterval
- new error
triesToForgeAda
Mary:
valueNotConserved.consumed
is now aValue
(instead of aDeltaCoin
)valueNotConserved.produced
is now aValue
(instead of aDeltaCoin
)outputTooSmall
items are now of typeTxOut[Mary]
- new error
tooManyAssetsInOutput
-
- Continuous integration job checking for code style and lint on the server source code.
- The
/health
endpoint now returns two additional pieces of information:- A
networkSynchronization
percentage to indicate how far Ogmios / the node is from the network. - A
currentEra
value to indicate the corresponding Cardano era Ogmios / the node is currently running in.
- A
- Nix support for building Ogmios (this also include a
cabal.project
to enable cabal support as well).
- Rework Docker setup to not require an external snapshot image. Everything is now built in a single
Dockerfile
, but cache from DockerHub can be leveraged to reduce overall build time when building from scratch. - Fixed typo in the JSON-schema w.r.t to the 'Acquire' request (
points
→point
), and introduce more automated test to catch this kind of errors more easily.
ø
- Extend the local-state query protocol with support for 'GetCompactGenesis'.
- Extend the local-state query protocol with support for 'GetFilteredDelegationsAndRewards'.
- Add missing
mint
field to transaction's body (added since mary). - The documentation is now hosted on https://ogmios.dev.
- Use 'contentEncoding' over 'format' in appropriate part of the JSON schema.
- Fix various errors in the JSON-schema definition & extend test suite coverage in consequence.
- Implement a 'fast-bech32' encoding library, to speed-up Ogmios serialization of blocks beyond the Shelley era.
- Use faster (and recommended) JSON encoding techniques to speed up overall JSON serialization.
- Improve generated documentation from JSON schema by:
- Providing titles to 'oneOf' items
- Adding descriptions to top-level definitions
- Adding examples to top-level definitions
- Customized API reference's stylesheet to enhance readability.
- Upgrade dependency and code to work with GHC-8.10.4 (from GHC 8.6.5)
- Handle more gracefully unknown exceptions (avoid infinite fast loop of retries on errors).
- Handle more gracefully network mismatches (e.g. connecting Ogmios in testnet mode to a mainnet network)
- Repository reorganization:
- 'ogmios-server' renamed into 'server'
- move Haskell-specific dotfiles and configuration files under 'server'
- move 'modules' under 'server'
- move 'Dockerfile' and 'snapshot.Dockerfile' under 'server'
- Support for GHC-8.6.5
- The docker image no longer shows git revision / version on '--version'
- Support for the Allegra era on the chain-sync, tx submission and state query protocols.
- Support for the Mary era on the chain-sync, tx submission and state query protocols.
- Support for multi-era state queries, or said differently, Ogmios can survive a hard-fork without being restarted or re-compiled.
- Allow clients to also make state queries based on the node's tip (instead of passing an explicit point to acquire).
- Interactive dashboard leveraging Ogmios health's endpoint and local state query protocol to show metrics in real-time.
- Automated smoke sanity tests executed on a running instance, running queries and chain-syncs across all eras.
- Various internal optimization, in particular with rewards to the chain-sync protocol (~14.000 blocks/s in Byron, ~2500 block/s in Shelley and beyond).
- Additional metrics for monitoring: current heap size, total messages, total unrouted messages and start time.
- Configurable HTTP server timeout from the command-line, with sensible defaults.
- Improve error responses to invalid clients' requests (instead of generic error messages).
- Fixed various typos and clumsy wording in the user manual.
- Reworked internal architecture as a Three-Layer Haskell Cake.
- Changed internal dependencies for base16 and base64 encoding for better performances.
- Upgraded internal dependencies to the Cardano eco-system working with [email protected]
- Improved error handling of the Ogmios server, in particular in case of connections lost with the underlying node.
- The server now returns an explicit client error when interleaving 'FindIntersect' messages in-between pipelined 'RequestNext'.
- Revised default compilation flags .
N/A
- Support for the Shelley chain in the local-chain-sync protocol.
- Support for the local-state-query protocol.
- Health / Heartbeat endpoint for monitoring.
- Runtime and application metrics measured and served on endpoint (
/health
). - Ogmios now includes an HTTP static server hosting both the WSP definition and, a
/benchmark.html
to run some quick benchmark / smoke test. - Added additional configuration options via command-line or environment.
- Revised user manual with detailed step-by-step examples.
- Several JSON fields renamed to increase consistency between Shelley and Byron.
- Improved logging, more messages and with more context.
- Improved error handling with regards to connection of websocket clients.
N/A
N/A
-
Initial release and support for:
- Chain Synchronization (no pipelining between cardano-node & ogmios)
- Local Transaction Submission
-
JSON-WSP version 1.0, full support with reflection.
-
Full docker stack via docker-compose.
-
Basic command-line and logging.
N/A
N/A