Safe Haskell | None |
---|---|
Language | Haskell2010 |
Common (shared) types between different versions of Maestro-API.
Synopsis
- data Tx
- data TxOutCbor
- data DatumHash
- data Address
- newtype TxIndex = TxIndex Natural
- newtype PolicyId = PolicyId Text
- newtype TokenName = TokenName Text
- newtype EpochNo = EpochNo {}
- newtype EpochSize = EpochSize {}
- newtype AbsoluteSlot = AbsoluteSlot {}
- newtype SlotNo = SlotNo {}
- newtype BlockHeight = BlockHeight {}
- newtype BlockHash = BlockHash {}
- newtype TxHash = TxHash Text
- newtype Bech32StringOf a = Bech32StringOf Text
- newtype HexStringOf a = HexStringOf Text
- newtype HashStringOf a = HashStringOf Text
- data DatumOptionType
- data DatumOption = DatumOption {
- datumOptionBytes ∷ !(Maybe Text)
- datumOptionHash ∷ !Text
- datumOptionJson ∷ !(Maybe Value)
- datumOptionType ∷ !DatumOptionType
- data ScriptType
- data Script = Script {
- scriptBytes ∷ !(Maybe Text)
- scriptHash ∷ !Text
- scriptJson ∷ !(Maybe Value)
- scriptType ∷ !ScriptType
- data Order
- data CBORStream
- data LowerFirst
- data LowerAll
Documentation
Phantom datatype to be used with constructors like HashStringOf
.
Phantom datatype to be used with HexStringOf
to represent hex encoded CBOR bytes of transaction output.
Phantom datatype to be used with HexStringOf
to represent hex encoded datum hash.
Phantom datatype to be used with, say Bech32StringOf
to represent Bech32 representation of an address.
Index of UTxO in a transaction outputs.
Instances
Enum TxIndex # | |
Defined in Maestro.Types.Common | |
Eq TxIndex # | |
Integral TxIndex # | |
Defined in Maestro.Types.Common | |
Num TxIndex # | |
Ord TxIndex # | |
Real TxIndex # | |
Defined in Maestro.Types.Common toRational ∷ TxIndex → Rational # | |
Show TxIndex # | |
Generic TxIndex # | |
FromHttpApiData TxIndex # | |
Defined in Maestro.Types.Common | |
ToHttpApiData TxIndex # | |
Defined in Maestro.Types.Common | |
ToJSON TxIndex # | |
Defined in Maestro.Types.Common | |
FromJSON TxIndex # | |
Defined in Maestro.Types.Common parseJSON ∷ Value → Parser TxIndex parseJSONList ∷ Value → Parser [TxIndex] | |
type Rep TxIndex # | |
Defined in Maestro.Types.Common |
Hex encoded minting policy ID (for non-ada native asset).
Instances
Eq PolicyId # | |
Ord PolicyId # | |
Show PolicyId # | |
IsString PolicyId # | |
Defined in Maestro.Types.Common fromString ∷ String → PolicyId # | |
Generic PolicyId # | |
FromHttpApiData PolicyId # | |
Defined in Maestro.Types.Common | |
ToHttpApiData PolicyId # | |
Defined in Maestro.Types.Common | |
ToJSON PolicyId # | |
Defined in Maestro.Types.Common toEncoding ∷ PolicyId → Encoding toJSONList ∷ [PolicyId] → Value toEncodingList ∷ [PolicyId] → Encoding | |
FromJSON PolicyId # | |
Defined in Maestro.Types.Common parseJSON ∷ Value → Parser PolicyId parseJSONList ∷ Value → Parser [PolicyId] | |
type Rep PolicyId # | |
Defined in Maestro.Types.Common |
Hex encoded token name (for non-ada native asset).
Instances
Eq TokenName # | |
Ord TokenName # | |
Defined in Maestro.Types.Common | |
Show TokenName # | |
IsString TokenName # | |
Defined in Maestro.Types.Common fromString ∷ String → TokenName # | |
Generic TokenName # | |
FromHttpApiData TokenName # | |
Defined in Maestro.Types.Common | |
ToHttpApiData TokenName # | |
Defined in Maestro.Types.Common | |
ToJSON TokenName # | |
Defined in Maestro.Types.Common toEncoding ∷ TokenName → Encoding toJSONList ∷ [TokenName] → Value toEncodingList ∷ [TokenName] → Encoding | |
FromJSON TokenName # | |
Defined in Maestro.Types.Common parseJSON ∷ Value → Parser TokenName parseJSONList ∷ Value → Parser [TokenName] | |
type Rep TokenName # | |
Defined in Maestro.Types.Common |
An epoch, i.e. the number of the epoch.
Instances
Enum EpochNo # | |
Defined in Maestro.Types.Common | |
Eq EpochNo # | |
Integral EpochNo # | |
Defined in Maestro.Types.Common | |
Num EpochNo # | |
Ord EpochNo # | |
Real EpochNo # | |
Defined in Maestro.Types.Common toRational ∷ EpochNo → Rational # | |
Show EpochNo # | |
Generic EpochNo # | |
ToHttpApiData EpochNo # | |
Defined in Maestro.Types.Common | |
ToJSON EpochNo # | |
Defined in Maestro.Types.Common | |
FromJSON EpochNo # | |
Defined in Maestro.Types.Common parseJSON ∷ Value → Parser EpochNo parseJSONList ∷ Value → Parser [EpochNo] | |
type Rep EpochNo # | |
Defined in Maestro.Types.Common |
Length of an epoch, i.e., number of slots in it.
Instances
Enum EpochSize # | |
Eq EpochSize # | |
Integral EpochSize # | |
Defined in Maestro.Types.Common | |
Num EpochSize # | |
Ord EpochSize # | |
Defined in Maestro.Types.Common | |
Real EpochSize # | |
Defined in Maestro.Types.Common toRational ∷ EpochSize → Rational # | |
Show EpochSize # | |
Generic EpochSize # | |
ToJSON EpochSize # | |
Defined in Maestro.Types.Common toEncoding ∷ EpochSize → Encoding toJSONList ∷ [EpochSize] → Value toEncodingList ∷ [EpochSize] → Encoding | |
FromJSON EpochSize # | |
Defined in Maestro.Types.Common parseJSON ∷ Value → Parser EpochSize parseJSONList ∷ Value → Parser [EpochSize] | |
type Rep EpochSize # | |
Defined in Maestro.Types.Common |
newtype AbsoluteSlot #
Absolute Slot Number
Instances
The 0-based index for the Ourboros time slot.
Instances
Bounded SlotNo # | |
Enum SlotNo # | |
Eq SlotNo # | |
Integral SlotNo # | |
Num SlotNo # | |
Ord SlotNo # | |
Real SlotNo # | |
Defined in Maestro.Types.Common toRational ∷ SlotNo → Rational # | |
Show SlotNo # | |
Generic SlotNo # | |
FromHttpApiData SlotNo # | |
Defined in Maestro.Types.Common | |
ToHttpApiData SlotNo # | |
Defined in Maestro.Types.Common | |
ToJSON SlotNo # | |
Defined in Maestro.Types.Common | |
FromJSON SlotNo # | |
Defined in Maestro.Types.Common | |
type Rep SlotNo # | |
Defined in Maestro.Types.Common |
newtype BlockHeight #
Block Height
Instances
Hash of the block.
Instances
Eq BlockHash # | |
Ord BlockHash # | |
Defined in Maestro.Types.Common | |
Show BlockHash # | |
Generic BlockHash # | |
FromHttpApiData BlockHash # | |
Defined in Maestro.Types.Common | |
ToHttpApiData BlockHash # | |
Defined in Maestro.Types.Common | |
ToJSON BlockHash # | |
Defined in Maestro.Types.Common toEncoding ∷ BlockHash → Encoding toJSONList ∷ [BlockHash] → Value toEncodingList ∷ [BlockHash] → Encoding | |
FromJSON BlockHash # | |
Defined in Maestro.Types.Common parseJSON ∷ Value → Parser BlockHash parseJSONList ∷ Value → Parser [BlockHash] | |
type Rep BlockHash # | |
Defined in Maestro.Types.Common |
Hash of the Transaction.
Instances
Eq TxHash # | |
Ord TxHash # | |
Show TxHash # | |
IsString TxHash # | |
Defined in Maestro.Types.Common fromString ∷ String → TxHash # | |
Generic TxHash # | |
FromHttpApiData TxHash # | |
Defined in Maestro.Types.Common | |
ToHttpApiData TxHash # | |
Defined in Maestro.Types.Common | |
ToJSON TxHash # | |
Defined in Maestro.Types.Common | |
FromJSON TxHash # | |
Defined in Maestro.Types.Common | |
type Rep TxHash # | |
Defined in Maestro.Types.Common |
newtype Bech32StringOf a #
Type to label the string is question is a Bech32
representation of the given type a
.
Instances
newtype HexStringOf a #
Type to label the string is question is a hexadecimal representation of the given type a
.
Instances
newtype HashStringOf a #
Type to label the string is question is a hash string of the given type a
, like hash of the transaction body.
Instances
data DatumOptionType #
Datum in output is either inlined or not.
Instances
data DatumOption #
Description of datum in an output. If datum is successfully resolved for (when mentioning to resolve for it by giving resolve_datums
flag in query parameters) then fields like datumOptionBytes
would have non Nothing
value even if UTxO just had hash of datum.
DatumOption | |
|
Instances
data ScriptType #
Type of script.
Instances
Type to represent script in an UTxO.
Script | |
|
Instances
Eq Script # | |
Ord Script # | |
Show Script # | |
Generic Script # | |
ToJSON Script # | |
Defined in Maestro.Types.Common | |
FromJSON Script # | |
Defined in Maestro.Types.Common | |
type Rep Script # | |
Defined in Maestro.Types.Common type Rep Script = D1 ('MetaData "Script" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "Script" 'PrefixI 'True) ((S1 ('MetaSel ('Just "scriptBytes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "scriptHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "scriptJson") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "scriptType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ScriptType)))) |
Instances
Bounded Order # | |
Enum Order # | |
Eq Order # | |
Ord Order # | |
Show Order # | |
FromHttpApiData Order # | |
Defined in Maestro.Types.Common | |
ToHttpApiData Order # | |
Defined in Maestro.Types.Common | |
ToJSON Order # | |
Defined in Maestro.Types.Common | |
Default Order # | |
Defined in Maestro.Types.Common |
data CBORStream #
Content-Type to represent transaction when submitting for it.
Instances
Accept CBORStream # | |
Defined in Maestro.Types.Common contentType ∷ Proxy CBORStream → MediaType contentTypes ∷ Proxy CBORStream → NonEmpty MediaType | |
MimeRender CBORStream ByteString # | |
Defined in Maestro.Types.Common | |
MimeRender CBORStream ByteString # | |
Defined in Maestro.Types.Common | |
MimeUnrender CBORStream ByteString # | |
Defined in Maestro.Types.Common mimeUnrender ∷ Proxy CBORStream → ByteString → Either String ByteString mimeUnrenderWithType ∷ Proxy CBORStream → MediaType → ByteString → Either String ByteString | |
MimeUnrender CBORStream ByteString # | |
Defined in Maestro.Types.Common mimeUnrender ∷ Proxy CBORStream → ByteString0 → Either String ByteString mimeUnrenderWithType ∷ Proxy CBORStream → MediaType → ByteString0 → Either String ByteString |
data LowerFirst #
Will lower the first character for your type.
Instances
StringModifier LowerFirst # | |
Defined in Maestro.Types.Common |
Will lower all characters for your type.
Instances
StringModifier LowerAll # | |
Defined in Maestro.Types.Common |