cardano-api:internal
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Governance.Metadata.DrepRegistration

Synopsis

DRep off-chain metadata

This module implements validation of metadata for DRep registration and update actions, as specified bt the CIP-119 (https:/cips.cardano.orgcip/CIP-0119).

The constraints implemented in this module can be tested against a JSON ByteString by using the function validateGovActionAnchorData in Cardano.Api.Governance.Metadata.Validation with the parameter DrepRegistrationMetadata.

data CIP119 Source #

Instances

Instances details
FromJSON (Body CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

Methods

parseJSON :: Value -> Parser (Body CIP119) #

parseJSONList :: Value -> Parser [Body CIP119] #

omittedField :: Maybe (Body CIP119) #

FromJSON (GovActionMetadata CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

FromJSON (HashAlgorithm CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

Generic (Body CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

Associated Types

type Rep (Body CIP119) 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

type Rep (Body CIP119)
Generic (HashAlgorithm CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

Associated Types

type Rep (HashAlgorithm CIP119) 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

type Rep (HashAlgorithm CIP119) = D1 ('MetaData "HashAlgorithm" "Cardano.Api.Governance.Metadata.DrepRegistration" "cardano-api-10.6.0.0-inplace-internal" 'False) (C1 ('MetaCons "Blake2b256" 'PrefixI 'False) (U1 :: Type -> Type))
Show (Body CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

Show (HashAlgorithm CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

data Authors CIP119 Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

data Body CIP119 Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

data HashAlgorithm CIP119 Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

type Rep (Body CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

type Rep (Body CIP119)
type Rep (HashAlgorithm CIP119) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.DrepRegistration

type Rep (HashAlgorithm CIP119) = D1 ('MetaData "HashAlgorithm" "Cardano.Api.Governance.Metadata.DrepRegistration" "cardano-api-10.6.0.0-inplace-internal" 'False) (C1 ('MetaCons "Blake2b256" 'PrefixI 'False) (U1 :: Type -> Type))