Safe Haskell | None |
---|---|
Language | Haskell2010 |
Bcc.Api.StakePoolMetadata
Description
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.
Constructors
StakePoolMetadata | |
Fields
|
Instances
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.
Constructors
StakePoolMetadataJsonDecodeError !String | |
StakePoolMetadataInvalidLengthError | The length of the JSON-encoded stake pool metadata exceeds the maximum. |
Instances
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 #