Safe Haskell | None |
---|---|
Language | Haskell2010 |
Stake pool off-chain metadata
Synopsis
- data StakePoolMetadata = StakePoolMetadata {}
- validateAndHashStakePoolMetadata ∷ ByteString → Either StakePoolMetadataValidationError (StakePoolMetadata, Hash StakePoolMetadata)
- data StakePoolMetadataValidationError
- data family AsType t
- data family Hash keyrole ∷ Type
Stake pool off-chain metadata
data StakePoolMetadata Source #
A representation of the required fields for off-chain stake pool metadata.
StakePoolMetadata | |
|
Instances
Eq StakePoolMetadata Source # | |
Defined in Bcc.Api.StakePoolMetadata | |
Show StakePoolMetadata Source # | |
Defined in Bcc.Api.StakePoolMetadata | |
FromJSON StakePoolMetadata Source # | |
Defined in Bcc.Api.StakePoolMetadata parseJSON ∷ Value → Parser StakePoolMetadata # parseJSONList ∷ Value → Parser [StakePoolMetadata] # | |
HasTypeProxy StakePoolMetadata Source # | |
Defined in Bcc.Api.StakePoolMetadata data AsType StakePoolMetadata Source # | |
Eq (Hash StakePoolMetadata) Source # | |
Defined in Bcc.Api.StakePoolMetadata | |
Show (Hash StakePoolMetadata) Source # | |
Defined in Bcc.Api.StakePoolMetadata | |
SerialiseAsRawBytes (Hash StakePoolMetadata) Source # | |
data AsType StakePoolMetadata Source # | |
Defined in Bcc.Api.StakePoolMetadata | |
newtype Hash StakePoolMetadata Source # | |
Defined in Bcc.Api.StakePoolMetadata |
validateAndHashStakePoolMetadata ∷ ByteString → Either StakePoolMetadataValidationError (StakePoolMetadata, Hash StakePoolMetadata) Source #
Decode and validate the provided JSON-encoded bytes as StakePoolMetadata
.
Return the decoded metadata and the hash of the original bytes.
data StakePoolMetadataValidationError Source #
A stake pool metadata validation error.
StakePoolMetadataJsonDecodeError !String | |
StakePoolMetadataInvalidLengthError | The length of the JSON-encoded stake pool metadata exceeds the maximum. |
Data family instances
A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.
Values of this type are passed to deserialisation functions for example.
Instances
data family Hash keyrole ∷ Type Source #