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

Redeemer task #183

Open
SebastienGllmt opened this issue Mar 31, 2024 · 0 comments
Open

Redeemer task #183

SebastienGllmt opened this issue Mar 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@SebastienGllmt
Copy link
Contributor

Redeemers are not part of the transaction body (hence not part of the Transaction table), but are required to know the full Plutus context of a transaction (therefore, would be useful to add as an option in the history endpoint)

We have a TransactionMetadata table for a similar reason

I feel the schema for the table could probably just be something like

CREATE TABLE public."Redeemer" (
    tx_id bigint NOT NULL,
    redeemers bytea[] NOT NULL,
);

since:

  1. I don't think there is ever really a case to sub-index into the redeemer structure
  2. The Plutus context requires all witnesses anyway
  3. This is more space efficient
  4. The logic for redeemer tags & indices is complex (depends on the global order of things in a tx), so it would be hard to join on even if you wanted to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant