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

[FR] - Support Plutus script evaluation events in Conway. #646

Closed
Unisay opened this issue Oct 1, 2024 · 0 comments · Fixed by #650
Closed

[FR] - Support Plutus script evaluation events in Conway. #646

Unisay opened this issue Oct 1, 2024 · 0 comments · Fixed by #650

Comments

@Unisay
Copy link
Contributor

Unisay commented Oct 1, 2024

Internal

Area
Plutus Related to Plutus Scripts (Alonzo).

Describe the feature you'd like
Support Plutus script evaluation events in Conway.

Describe alternatives you've considered
Not using cardano-api's applyBlock function, using ledger directly.

Additional context / screenshots

toLedgerEventConway
  :: WrapLedgerEvent (ShelleyBlock protocol (ConwayEra StandardCrypto))
  -> Maybe LedgerEvent
toLedgerEventConway evt =
  case unwrapLedgerEvent evt of
    ShelleyLedgerEventTICK (TickNewEpochEvent newEpochEvent) -> handleConwayNEWEPOCHEvents newEpochEvent
    ShelleyLedgerEventTICK (TickRupdEvent rewardUpdate) -> handleLedgerRUPDEvents rewardUpdate
    ShelleyLedgerEventBBODY
      (ShelleyInAlonzoEvent (LedgersEvent (Shelley.LedgerEvent conwayLedgerEvent))) ->
        case conwayLedgerEvent of
          Conway.UtxowEvent{} -> Nothing -- <-- Ignored 
          Conway.CertsEvent{} -> Nothing
          Conway.GovEvent govEvent ->
            case govEvent of
              Conway.GovNewProposals txid props ->
                Just $ NewGovernanceProposals txid (AnyProposals 
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 a pull request may close this issue.

1 participant