github cardano-foundation/cardano-graphql 9.1.0
Cardano GraphQL 9.1.0

4 hours ago

Features

  • Payment credential and stake address on UTxOs and transaction outputs. utxos and transaction outputs now expose paymentCredential and stakeAddress, and both can be used in where, order_by and distinct_on. This makes CIP-113 programmable tokens queryable: they all share one payment credential (the programmable logic base script) and are owned by stake credential, so filtering by both returns a holder's programmable-token balance. Token metadata comes through as usual via the token registry (CIP-26 / CIP-68). Both filters use existing cardano-db-sync indexes. (#1060)
  • Off-chain DRep profiles (CIP-119). New offChainVoteDrepData query with givenName, motivations, objectives, qualifications, imageUrl, imageHash and paymentAddress, plus an offChainVoteDrepData link on OffChainVoteData, so a DRep ID resolves to its profile in one query (drepRegistrations → votingAnchor → offChainData → offChainVoteDrepData). (#1065)

Upgrade notes

  • hasura-setup must re-run. This release changes the Utxo and TransactionOutput views and the Hasura metadata. The provided docker-compose stack runs it automatically on up. Custom deployments (e.g. Kubernetes) must run the hasura-setup job (node setup.js) before starting the new server and background.
  • No cardano-db-sync resync is required.
  • Custom cardano-node configs: if you take the 11.1.x configs from upstream, set Prometheus to "PrometheusSimple suffix 0.0.0.0 12798". Upstream ships 127.0.0.1, which the server cannot reach, and cardanoDbMeta then fails.

Known issues

  • Aliasing the same nested field twice (e.g. a: outputs(where: …) next to outputs(where: …)) can return the wrong data for the alias. Alias at the root level instead.
  • OffChainVoteData.offChainVoteReference always returns null. This will be fixed together with a type change (it should be a list) in an upcoming breaking release.

Tested with

Component Version
cardano-node 11.1.3
cardano-db-sync 13.7.2.1
Token Metadata Registry 1.7.0
Mithril 2630.1-hotfix

What's Changed

Don't miss a new cardano-graphql release

NewReleases is sending notifications on new releases.