Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the Utxo schema to be an object #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

ch1bo
Copy link
Collaborator

@ch1bo ch1bo commented Aug 7, 2023

This is how the hydra project (and cardano-api) is encoding a UTxO.

As this is not currently used by cardano.json schema itself, I wondered we could update this easily and we can just refer to this schema from within hydra (as we already do with protocol parameters)?

This is how the hydra project (and cardano-api) is encoding a UTxO.
@ch1bo ch1bo changed the title Update the Utxo to be an object Update the Utxo schema to be an object Aug 7, 2023
]
, "type": "object"
, "propertyNames":
{ "pattern": "^[0-9a-f]{64}#[0-9]+$" }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This kind of key encoding multiple information at once has shown to be quite difficult to parse for clients down the line so that is something I've been trying to avoid in the schema.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, if changed here, it should be changed consistently across all occurrences of TransactionOutputReference which then becomes a little awkward.

@@ -1881,17 +1881,16 @@

, "Utxo":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a side-note, this definition should probably not even be here. This is not used anywhere in the Cardano schema actually. It is used in a few places in Ogmios but that's not so-to-speak needed to capture Cardano's on entities (as weird as it may sound).

@KtorZ KtorZ force-pushed the main branch 12 times, most recently from 18b04c2 to cf11243 Compare August 19, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants