Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@cardano-ogmios/repl
Advanced tools
A Node.js REPL which exposes the client behaviour in a terminal. Loaded into the context are
the client builder functions, isolated query functions, and an instance of ChainSyncClient as
chainSync
with handlers to log the returned data. On exit the chainSync instance is shutdown.
Optionally pass --host
and --port
arguments to specify the Ogmios server connection.
Download and run static package from the latest release for your environment.
See instructions in Workspace root
ogmios> await epoch()
256
ogmios> await ledgerTip()
{
id: '41364e89e44370a009f083ce9963261aabf6138db519b039012232bf40f187f8',
slot: 25541023
}
ogmios> await protocolParameters()
{
minFeeCoefficient: 44,
minFeeConstant: { lovelace: 155381n },
maxBlockBodySize: { bytes: 90112 },
maxBlockHeaderSize: { bytes: 1100 },
maxTransactionSize: { bytes: 16384 },
stakeCredentialDeposit: { lovelace: 2000000n },
stakePoolDeposit: { lovelace: 500000000n },
stakePoolRetirementEpochBound: 18,
...
}
[6.0.0] - 2024-01-10
Integration with cardano-node==8.7.2
and cardano-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
and version
. 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 same id
as present in the request. See #346.
![TypeScript][]
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 be null
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 as required
).
FAQs
REPL for Cardano Ogmios
The npm package @cardano-ogmios/repl receives a total of 12 weekly downloads. As such, @cardano-ogmios/repl popularity was classified as not popular.
We found that @cardano-ogmios/repl demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.