cardano-api:internal
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.Governance.Metadata.GovAction

Synopsis

Government action metadata

This module implements validation of metadata for Government Actions in general, as specified bt the CIP-108 (https:/cips.cardano.orgcip/CIP-0108), except for Government Actions covered by other CIPs.

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 BaseGovActionMetadata.

data CIP108 Source #

Constructors

BaseGovActionMetadata 

Instances

Instances details
FromJSON (Authors CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

Methods

parseJSON :: Value -> Parser (Authors CIP108) #

parseJSONList :: Value -> Parser [Authors CIP108] #

omittedField :: Maybe (Authors CIP108) #

FromJSON (Body CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

Methods

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

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

omittedField :: Maybe (Body CIP108) #

FromJSON (GovActionMetadata CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

FromJSON (HashAlgorithm CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

Generic (Authors CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

Associated Types

type Rep (Authors CIP108) 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

Generic (Body CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

Associated Types

type Rep (Body CIP108) 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

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

Defined in Cardano.Api.Governance.Metadata.GovAction

Associated Types

type Rep (HashAlgorithm CIP108) 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

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

Defined in Cardano.Api.Governance.Metadata.GovAction

Show (Body CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

Show (HashAlgorithm CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

newtype Authors CIP108 Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

newtype Authors CIP108 = Authors [Author]
data Body CIP108 Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

data HashAlgorithm CIP108 Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

type Rep (Authors CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

type Rep (Body CIP108) Source # 
Instance details

Defined in Cardano.Api.Governance.Metadata.GovAction

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

Defined in Cardano.Api.Governance.Metadata.GovAction

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