Socket
Socket
Sign inDemoInstall

@cardano-ogmios/client

Package Overview
Dependencies
21
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345Next

6.4.0

Diff

Changelog

Source

[6.4.0] - 2024-06-06

Added
  • 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).
Changed
  • The data.providedCollateral and data.computedTotalCollateral from submission errors with code 3128 and 3135 can now be negative Ada values.

  • ![TypeScript][] Fixed missing conway option in the state query client for the genesisConfiguration query.

Removed
  • N/A


ktorz
published 6.3.0 •

Changelog

Source

[6.3.0] - UNRELEASED

Added
Changed

[!WARNING] Adjusted the schema of constitutional committee certificates in order to harmonize responses between certificates and the new constitutionalCommittee ledger query.

<table> <tr><th>before</th><th>after</th></tr> <tr> <td> <pre> { "type": "constitutionalCommitteeHotKeyRegistration", "member": { "id": "0000", }, "hotKey": "0000" } </pre> </td> <td> <pre> { "type": "constitutionalCommitteeDelegation", "member": { "id": "0000", }, "delegate": { "status": "authorized", "id": "000" } } </pre> </td> </tr> </table>
  • 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.

Removed
  • N/A


ktorz
published 6.2.0 •

Changelog

Source

[6.2.0] - 2024-03-22

Added
  • 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.

Changed
  • 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.
Removed
  • N/A


ktorz
published 6.1.0 •

Changelog

Source

[6.1.0] - 2024-02-21

Added
  • Two new script purposes (available from the Conway era onward):

    • propose: for proposing new governance actions. When itemized, comes with a proposal field that documents the associated governance proposal.
    • vote: for voting on a proposed governance action. When itemized, comes with an issuer field that documents the associated governance issuer.
  • A new field guardrails is now present on governance proposals of type treasuryWithdrawals and protocolParametersUpdate. It is either null 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 extra deposit 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.

Changed
  • Configuration files no longer contain mainnet_p2p, preprod_p2p, preview_p2p and sanchonet_p2p folders. The p2p configs are now replacing the default configurations; so we're back to configuration folders for mainnet, preprod, preview and sanchonet.

  • The constitution hash is now wrapped in a singleton object guardrails, to better capture its meaning. It isn't the hash of the constitution script (which is covered by the anchor 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 to metadata 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 a UInt64 (instead of UInt32).

Removed
  • InternalLedgerTypeConversionError which can no longer occur.


ktorz
published 6.0.3 •

Changelog

Source

[6.0.3] - 2024-02-02

Added
  • A new transaction submission / evaluation error (code: 3161) returned when a script evaluation goes beyond its allocated budget.
Changed
  • Mapped some internal errors to actual predicate failures. Before, Ogmios would simply return an InternalLedgerTypeConversionError with code 3999 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.

  • ![TypeScript][] Renamed types regarding Metadatum in the TypeScript client to provide more meaningful names.

Removed
  • N/A


ktorz
published 6.0.2 •

Changelog

Source

[6.0.2] - 2024-01-30

Added
  • N/A
Changed
  • 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.
  • ![TypeScript][] Fixes identification of submit/evaluate transaction responses, now using the method field instead of relying on the mirror. Should fix clashes with other requests.
Removed
  • N/A


ktorz
published 6.0.1 •

Changelog

Source

[6.0.1] - 2024-01-22

Added
  • 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.
Changed
  • 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.
Removed
  • N/A


ktorz
published 6.0.0-latest •

ktorz
published 6.0.0-rc1 •

ktorz
published 6.0.0-rc6 •

2345Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc