Skip to content

[FR] - Add support for scripts in fromProposalProcedure #682

@CarlosLopezDeLara

Description

@CarlosLopezDeLara

Internal/External
Internal

Area
Governance

Describe the feature you'd like
Add support for scripts in fromProposalProcedure

fromProposalProcedure
  :: ShelleyBasedEra era
  -> Proposal era
  -> (L.Coin, Hash StakeKey, GovernanceAction era)
fromProposalProcedure sbe (Proposal pp) =
  shelleyBasedEraConstraints
    sbe
    ( Gov.pProcDeposit pp
    , case fromShelleyStakeCredential (L.raCredential (Gov.pProcReturnAddr pp)) of
        StakeCredentialByKey keyhash -> keyhash
        StakeCredentialByScript _scripthash ->
          error "fromProposalProcedure TODO: Conway era script reward addresses not yet supported"
    , fromGovernanceAction (Gov.pProcGovAction pp)
    )

Describe alternatives you've considered

Additional context / screenshots
This is required for completeness on Check if stake addresses in proposals are registered onchain #963

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions