maestro-sdk-1.7.3: Maestro Blockchain Indexer SDK
Safe HaskellNone
LanguageHaskell2010

Maestro.Types.Common

Description

Common (shared) types between different versions of Maestro-API.

Synopsis

Documentation

data Tx #

Phantom datatype to be used with constructors like HashStringOf.

data TxOutCbor #

Phantom datatype to be used with HexStringOf to represent hex encoded CBOR bytes of transaction output.

data DatumHash #

Phantom datatype to be used with HexStringOf to represent hex encoded datum hash.

data Address #

Phantom datatype to be used with, say Bech32StringOf to represent Bech32 representation of an address.

newtype TxIndex #

Index of UTxO in a transaction outputs.

Constructors

TxIndex Natural 

Instances

Instances details
Enum TxIndex # 
Instance details

Defined in Maestro.Types.Common

Eq TxIndex # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)TxIndexTxIndexBool #

(/=)TxIndexTxIndexBool #

Integral TxIndex # 
Instance details

Defined in Maestro.Types.Common

Num TxIndex # 
Instance details

Defined in Maestro.Types.Common

Ord TxIndex # 
Instance details

Defined in Maestro.Types.Common

Methods

compareTxIndexTxIndexOrdering #

(<)TxIndexTxIndexBool #

(<=)TxIndexTxIndexBool #

(>)TxIndexTxIndexBool #

(>=)TxIndexTxIndexBool #

maxTxIndexTxIndexTxIndex #

minTxIndexTxIndexTxIndex #

Real TxIndex # 
Instance details

Defined in Maestro.Types.Common

Methods

toRationalTxIndexRational #

Show TxIndex # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntTxIndexShowS #

showTxIndexString #

showList ∷ [TxIndex] → ShowS #

Generic TxIndex # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep TxIndexTypeType #

Methods

fromTxIndexRep TxIndex x #

toRep TxIndex x → TxIndex #

FromHttpApiData TxIndex # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData TxIndex # 
Instance details

Defined in Maestro.Types.Common

ToJSON TxIndex # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONTxIndex → Value

toEncodingTxIndex → Encoding

toJSONList ∷ [TxIndex] → Value

toEncodingList ∷ [TxIndex] → Encoding

omitFieldTxIndexBool

FromJSON TxIndex # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser TxIndex

parseJSONList ∷ Value → Parser [TxIndex]

omittedFieldMaybe TxIndex

type Rep TxIndex # 
Instance details

Defined in Maestro.Types.Common

type Rep TxIndex = D1 ('MetaData "TxIndex" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "TxIndex" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))

newtype PolicyId #

Hex encoded minting policy ID (for non-ada native asset).

Constructors

PolicyId Text 

Instances

Instances details
Eq PolicyId # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)PolicyIdPolicyIdBool #

(/=)PolicyIdPolicyIdBool #

Ord PolicyId # 
Instance details

Defined in Maestro.Types.Common

Show PolicyId # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntPolicyIdShowS #

showPolicyIdString #

showList ∷ [PolicyId] → ShowS #

IsString PolicyId # 
Instance details

Defined in Maestro.Types.Common

Methods

fromStringStringPolicyId #

Generic PolicyId # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep PolicyIdTypeType #

Methods

fromPolicyIdRep PolicyId x #

toRep PolicyId x → PolicyId #

FromHttpApiData PolicyId # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData PolicyId # 
Instance details

Defined in Maestro.Types.Common

ToJSON PolicyId # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONPolicyId → Value

toEncodingPolicyId → Encoding

toJSONList ∷ [PolicyId] → Value

toEncodingList ∷ [PolicyId] → Encoding

omitFieldPolicyIdBool

FromJSON PolicyId # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser PolicyId

parseJSONList ∷ Value → Parser [PolicyId]

omittedFieldMaybe PolicyId

type Rep PolicyId # 
Instance details

Defined in Maestro.Types.Common

type Rep PolicyId = D1 ('MetaData "PolicyId" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "PolicyId" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype TokenName #

Hex encoded token name (for non-ada native asset).

Constructors

TokenName Text 

Instances

Instances details
Eq TokenName # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)TokenNameTokenNameBool #

(/=)TokenNameTokenNameBool #

Ord TokenName # 
Instance details

Defined in Maestro.Types.Common

Show TokenName # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntTokenNameShowS #

showTokenNameString #

showList ∷ [TokenName] → ShowS #

IsString TokenName # 
Instance details

Defined in Maestro.Types.Common

Methods

fromStringStringTokenName #

Generic TokenName # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep TokenNameTypeType #

Methods

fromTokenNameRep TokenName x #

toRep TokenName x → TokenName #

FromHttpApiData TokenName # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData TokenName # 
Instance details

Defined in Maestro.Types.Common

ToJSON TokenName # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONTokenName → Value

toEncodingTokenName → Encoding

toJSONList ∷ [TokenName] → Value

toEncodingList ∷ [TokenName] → Encoding

omitFieldTokenNameBool

FromJSON TokenName # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser TokenName

parseJSONList ∷ Value → Parser [TokenName]

omittedFieldMaybe TokenName

type Rep TokenName # 
Instance details

Defined in Maestro.Types.Common

type Rep TokenName = D1 ('MetaData "TokenName" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "TokenName" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype EpochNo #

An epoch, i.e. the number of the epoch.

Constructors

EpochNo 

Fields

Instances

Instances details
Enum EpochNo # 
Instance details

Defined in Maestro.Types.Common

Eq EpochNo # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)EpochNoEpochNoBool #

(/=)EpochNoEpochNoBool #

Integral EpochNo # 
Instance details

Defined in Maestro.Types.Common

Num EpochNo # 
Instance details

Defined in Maestro.Types.Common

Ord EpochNo # 
Instance details

Defined in Maestro.Types.Common

Methods

compareEpochNoEpochNoOrdering #

(<)EpochNoEpochNoBool #

(<=)EpochNoEpochNoBool #

(>)EpochNoEpochNoBool #

(>=)EpochNoEpochNoBool #

maxEpochNoEpochNoEpochNo #

minEpochNoEpochNoEpochNo #

Real EpochNo # 
Instance details

Defined in Maestro.Types.Common

Methods

toRationalEpochNoRational #

Show EpochNo # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntEpochNoShowS #

showEpochNoString #

showList ∷ [EpochNo] → ShowS #

Generic EpochNo # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep EpochNoTypeType #

Methods

fromEpochNoRep EpochNo x #

toRep EpochNo x → EpochNo #

ToHttpApiData EpochNo # 
Instance details

Defined in Maestro.Types.Common

ToJSON EpochNo # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONEpochNo → Value

toEncodingEpochNo → Encoding

toJSONList ∷ [EpochNo] → Value

toEncodingList ∷ [EpochNo] → Encoding

omitFieldEpochNoBool

FromJSON EpochNo # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser EpochNo

parseJSONList ∷ Value → Parser [EpochNo]

omittedFieldMaybe EpochNo

type Rep EpochNo # 
Instance details

Defined in Maestro.Types.Common

type Rep EpochNo = D1 ('MetaData "EpochNo" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "EpochNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype EpochSize #

Length of an epoch, i.e., number of slots in it.

Constructors

EpochSize 

Fields

Instances

Instances details
Enum EpochSize # 
Instance details

Defined in Maestro.Types.Common

Eq EpochSize # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)EpochSizeEpochSizeBool #

(/=)EpochSizeEpochSizeBool #

Integral EpochSize # 
Instance details

Defined in Maestro.Types.Common

Num EpochSize # 
Instance details

Defined in Maestro.Types.Common

Ord EpochSize # 
Instance details

Defined in Maestro.Types.Common

Real EpochSize # 
Instance details

Defined in Maestro.Types.Common

Show EpochSize # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntEpochSizeShowS #

showEpochSizeString #

showList ∷ [EpochSize] → ShowS #

Generic EpochSize # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep EpochSizeTypeType #

Methods

fromEpochSizeRep EpochSize x #

toRep EpochSize x → EpochSize #

ToJSON EpochSize # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONEpochSize → Value

toEncodingEpochSize → Encoding

toJSONList ∷ [EpochSize] → Value

toEncodingList ∷ [EpochSize] → Encoding

omitFieldEpochSizeBool

FromJSON EpochSize # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser EpochSize

parseJSONList ∷ Value → Parser [EpochSize]

omittedFieldMaybe EpochSize

type Rep EpochSize # 
Instance details

Defined in Maestro.Types.Common

type Rep EpochSize = D1 ('MetaData "EpochSize" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "EpochSize" 'PrefixI 'True) (S1 ('MetaSel ('Just "unEpochSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype AbsoluteSlot #

Absolute Slot Number

Constructors

AbsoluteSlot 

Instances

Instances details
Eq AbsoluteSlot # 
Instance details

Defined in Maestro.Types.Common

Show AbsoluteSlot # 
Instance details

Defined in Maestro.Types.Common

Generic AbsoluteSlot # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep AbsoluteSlotTypeType #

ToJSON AbsoluteSlot # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONAbsoluteSlot → Value

toEncodingAbsoluteSlot → Encoding

toJSONList ∷ [AbsoluteSlot] → Value

toEncodingList ∷ [AbsoluteSlot] → Encoding

omitFieldAbsoluteSlotBool

FromJSON AbsoluteSlot # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser AbsoluteSlot

parseJSONList ∷ Value → Parser [AbsoluteSlot]

omittedFieldMaybe AbsoluteSlot

type Rep AbsoluteSlot # 
Instance details

Defined in Maestro.Types.Common

type Rep AbsoluteSlot = D1 ('MetaData "AbsoluteSlot" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "AbsoluteSlot" 'PrefixI 'True) (S1 ('MetaSel ('Just "unAbsoluteSlot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))

newtype SlotNo #

The 0-based index for the Ourboros time slot.

Constructors

SlotNo 

Fields

Instances

Instances details
Bounded SlotNo # 
Instance details

Defined in Maestro.Types.Common

Enum SlotNo # 
Instance details

Defined in Maestro.Types.Common

Eq SlotNo # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)SlotNoSlotNoBool #

(/=)SlotNoSlotNoBool #

Integral SlotNo # 
Instance details

Defined in Maestro.Types.Common

Methods

quotSlotNoSlotNoSlotNo #

remSlotNoSlotNoSlotNo #

divSlotNoSlotNoSlotNo #

modSlotNoSlotNoSlotNo #

quotRemSlotNoSlotNo → (SlotNo, SlotNo) #

divModSlotNoSlotNo → (SlotNo, SlotNo) #

toIntegerSlotNoInteger #

Num SlotNo # 
Instance details

Defined in Maestro.Types.Common

Methods

(+)SlotNoSlotNoSlotNo #

(-)SlotNoSlotNoSlotNo #

(*)SlotNoSlotNoSlotNo #

negateSlotNoSlotNo #

absSlotNoSlotNo #

signumSlotNoSlotNo #

fromIntegerIntegerSlotNo #

Ord SlotNo # 
Instance details

Defined in Maestro.Types.Common

Methods

compareSlotNoSlotNoOrdering #

(<)SlotNoSlotNoBool #

(<=)SlotNoSlotNoBool #

(>)SlotNoSlotNoBool #

(>=)SlotNoSlotNoBool #

maxSlotNoSlotNoSlotNo #

minSlotNoSlotNoSlotNo #

Real SlotNo # 
Instance details

Defined in Maestro.Types.Common

Methods

toRationalSlotNoRational #

Show SlotNo # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntSlotNoShowS #

showSlotNoString #

showList ∷ [SlotNo] → ShowS #

Generic SlotNo # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep SlotNoTypeType #

Methods

fromSlotNoRep SlotNo x #

toRep SlotNo x → SlotNo #

FromHttpApiData SlotNo # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData SlotNo # 
Instance details

Defined in Maestro.Types.Common

ToJSON SlotNo # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONSlotNo → Value

toEncodingSlotNo → Encoding

toJSONList ∷ [SlotNo] → Value

toEncodingList ∷ [SlotNo] → Encoding

omitFieldSlotNoBool

FromJSON SlotNo # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser SlotNo

parseJSONList ∷ Value → Parser [SlotNo]

omittedFieldMaybe SlotNo

type Rep SlotNo # 
Instance details

Defined in Maestro.Types.Common

type Rep SlotNo = D1 ('MetaData "SlotNo" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "SlotNo" 'PrefixI 'True) (S1 ('MetaSel ('Just "unSlotNo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64)))

newtype BlockHeight #

Block Height

Constructors

BlockHeight 

Instances

Instances details
Enum BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Eq BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Integral BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Num BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Ord BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Real BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Show BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Generic BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep BlockHeightTypeType #

FromHttpApiData BlockHeight # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData BlockHeight # 
Instance details

Defined in Maestro.Types.Common

ToJSON BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONBlockHeight → Value

toEncodingBlockHeight → Encoding

toJSONList ∷ [BlockHeight] → Value

toEncodingList ∷ [BlockHeight] → Encoding

omitFieldBlockHeightBool

FromJSON BlockHeight # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser BlockHeight

parseJSONList ∷ Value → Parser [BlockHeight]

omittedFieldMaybe BlockHeight

type Rep BlockHeight # 
Instance details

Defined in Maestro.Types.Common

type Rep BlockHeight = D1 ('MetaData "BlockHeight" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "BlockHeight" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockHeight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Natural)))

newtype BlockHash #

Hash of the block.

Constructors

BlockHash 

Fields

Instances

Instances details
Eq BlockHash # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)BlockHashBlockHashBool #

(/=)BlockHashBlockHashBool #

Ord BlockHash # 
Instance details

Defined in Maestro.Types.Common

Show BlockHash # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntBlockHashShowS #

showBlockHashString #

showList ∷ [BlockHash] → ShowS #

Generic BlockHash # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep BlockHashTypeType #

Methods

fromBlockHashRep BlockHash x #

toRep BlockHash x → BlockHash #

FromHttpApiData BlockHash # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData BlockHash # 
Instance details

Defined in Maestro.Types.Common

ToJSON BlockHash # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONBlockHash → Value

toEncodingBlockHash → Encoding

toJSONList ∷ [BlockHash] → Value

toEncodingList ∷ [BlockHash] → Encoding

omitFieldBlockHashBool

FromJSON BlockHash # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser BlockHash

parseJSONList ∷ Value → Parser [BlockHash]

omittedFieldMaybe BlockHash

type Rep BlockHash # 
Instance details

Defined in Maestro.Types.Common

type Rep BlockHash = D1 ('MetaData "BlockHash" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "BlockHash" 'PrefixI 'True) (S1 ('MetaSel ('Just "unBlockHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype TxHash #

Hash of the Transaction.

Constructors

TxHash Text 

Instances

Instances details
Eq TxHash # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)TxHashTxHashBool #

(/=)TxHashTxHashBool #

Ord TxHash # 
Instance details

Defined in Maestro.Types.Common

Methods

compareTxHashTxHashOrdering #

(<)TxHashTxHashBool #

(<=)TxHashTxHashBool #

(>)TxHashTxHashBool #

(>=)TxHashTxHashBool #

maxTxHashTxHashTxHash #

minTxHashTxHashTxHash #

Show TxHash # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntTxHashShowS #

showTxHashString #

showList ∷ [TxHash] → ShowS #

IsString TxHash # 
Instance details

Defined in Maestro.Types.Common

Methods

fromStringStringTxHash #

Generic TxHash # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep TxHashTypeType #

Methods

fromTxHashRep TxHash x #

toRep TxHash x → TxHash #

FromHttpApiData TxHash # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData TxHash # 
Instance details

Defined in Maestro.Types.Common

ToJSON TxHash # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONTxHash → Value

toEncodingTxHash → Encoding

toJSONList ∷ [TxHash] → Value

toEncodingList ∷ [TxHash] → Encoding

omitFieldTxHashBool

FromJSON TxHash # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser TxHash

parseJSONList ∷ Value → Parser [TxHash]

omittedFieldMaybe TxHash

type Rep TxHash # 
Instance details

Defined in Maestro.Types.Common

type Rep TxHash = D1 ('MetaData "TxHash" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "TxHash" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype Bech32StringOf a #

Type to label the string is question is a Bech32 representation of the given type a.

Constructors

Bech32StringOf Text 

Instances

Instances details
Eq (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

Ord (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

Show (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

IsString (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

Generic (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep (Bech32StringOf a) ∷ TypeType #

Methods

fromBech32StringOf a → Rep (Bech32StringOf a) x #

toRep (Bech32StringOf a) x → Bech32StringOf a #

FromHttpApiData (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

ToJSON (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONBech32StringOf a → Value

toEncodingBech32StringOf a → Encoding

toJSONList ∷ [Bech32StringOf a] → Value

toEncodingList ∷ [Bech32StringOf a] → Encoding

omitFieldBech32StringOf a → Bool

FromJSON (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser (Bech32StringOf a)

parseJSONList ∷ Value → Parser [Bech32StringOf a]

omittedFieldMaybe (Bech32StringOf a)

type Rep (Bech32StringOf a) # 
Instance details

Defined in Maestro.Types.Common

type Rep (Bech32StringOf a) = D1 ('MetaData "Bech32StringOf" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "Bech32StringOf" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

newtype HexStringOf a #

Type to label the string is question is a hexadecimal representation of the given type a.

Constructors

HexStringOf Text 

Instances

Instances details
Eq (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)HexStringOf a → HexStringOf a → Bool #

(/=)HexStringOf a → HexStringOf a → Bool #

Ord (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Show (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntHexStringOf a → ShowS #

showHexStringOf a → String #

showList ∷ [HexStringOf a] → ShowS #

IsString (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

fromStringStringHexStringOf a #

Generic (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep (HexStringOf a) ∷ TypeType #

Methods

fromHexStringOf a → Rep (HexStringOf a) x #

toRep (HexStringOf a) x → HexStringOf a #

FromHttpApiData (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

ToJSON (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONHexStringOf a → Value

toEncodingHexStringOf a → Encoding

toJSONList ∷ [HexStringOf a] → Value

toEncodingList ∷ [HexStringOf a] → Encoding

omitFieldHexStringOf a → Bool

FromJSON (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser (HexStringOf a)

parseJSONList ∷ Value → Parser [HexStringOf a]

omittedFieldMaybe (HexStringOf a)

type Rep (HexStringOf a) # 
Instance details

Defined in Maestro.Types.Common

type Rep (HexStringOf a) = D1 ('MetaData "HexStringOf" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "HexStringOf" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

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.

Constructors

HashStringOf Text 

Instances

Instances details
Eq (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)HashStringOf a → HashStringOf a → Bool #

(/=)HashStringOf a → HashStringOf a → Bool #

Ord (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Show (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntHashStringOf a → ShowS #

showHashStringOf a → String #

showList ∷ [HashStringOf a] → ShowS #

IsString (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

fromStringStringHashStringOf a #

Generic (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep (HashStringOf a) ∷ TypeType #

Methods

fromHashStringOf a → Rep (HashStringOf a) x #

toRep (HashStringOf a) x → HashStringOf a #

FromHttpApiData (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

ToJSON (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONHashStringOf a → Value

toEncodingHashStringOf a → Encoding

toJSONList ∷ [HashStringOf a] → Value

toEncodingList ∷ [HashStringOf a] → Encoding

omitFieldHashStringOf a → Bool

FromJSON (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser (HashStringOf a)

parseJSONList ∷ Value → Parser [HashStringOf a]

omittedFieldMaybe (HashStringOf a)

type Rep (HashStringOf a) # 
Instance details

Defined in Maestro.Types.Common

type Rep (HashStringOf a) = D1 ('MetaData "HashStringOf" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'True) (C1 ('MetaCons "HashStringOf" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data DatumOptionType #

Datum in output is either inlined or not.

Constructors

Inline 
Hash 

Instances

Instances details
Eq DatumOptionType # 
Instance details

Defined in Maestro.Types.Common

Ord DatumOptionType # 
Instance details

Defined in Maestro.Types.Common

Show DatumOptionType # 
Instance details

Defined in Maestro.Types.Common

Generic DatumOptionType # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep DatumOptionTypeTypeType #

ToJSON DatumOptionType # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONDatumOptionType → Value

toEncodingDatumOptionType → Encoding

toJSONList ∷ [DatumOptionType] → Value

toEncodingList ∷ [DatumOptionType] → Encoding

omitFieldDatumOptionTypeBool

FromJSON DatumOptionType # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser DatumOptionType

parseJSONList ∷ Value → Parser [DatumOptionType]

omittedFieldMaybe DatumOptionType

type Rep DatumOptionType # 
Instance details

Defined in Maestro.Types.Common

type Rep DatumOptionType = D1 ('MetaData "DatumOptionType" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "Inline" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "Hash" 'PrefixI 'False) (U1TypeType))

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.

Constructors

DatumOption 

Fields

Instances

Instances details
Eq DatumOption # 
Instance details

Defined in Maestro.Types.Common

Ord DatumOption # 
Instance details

Defined in Maestro.Types.Common

Show DatumOption # 
Instance details

Defined in Maestro.Types.Common

Generic DatumOption # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep DatumOptionTypeType #

ToJSON DatumOption # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONDatumOption → Value

toEncodingDatumOption → Encoding

toJSONList ∷ [DatumOption] → Value

toEncodingList ∷ [DatumOption] → Encoding

omitFieldDatumOptionBool

FromJSON DatumOption # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser DatumOption

parseJSONList ∷ Value → Parser [DatumOption]

omittedFieldMaybe DatumOption

type Rep DatumOption # 
Instance details

Defined in Maestro.Types.Common

type Rep DatumOption = D1 ('MetaData "DatumOption" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "DatumOption" 'PrefixI 'True) ((S1 ('MetaSel ('Just "datumOptionBytes") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "datumOptionHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "datumOptionJson") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "datumOptionType") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 DatumOptionType))))

data ScriptType #

Type of script.

Constructors

Native 
PlutusV1 
PlutusV2 
PlutusV3 

Instances

Instances details
Eq ScriptType # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)ScriptTypeScriptTypeBool #

(/=)ScriptTypeScriptTypeBool #

Ord ScriptType # 
Instance details

Defined in Maestro.Types.Common

Show ScriptType # 
Instance details

Defined in Maestro.Types.Common

Generic ScriptType # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep ScriptTypeTypeType #

ToJSON ScriptType # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONScriptType → Value

toEncodingScriptType → Encoding

toJSONList ∷ [ScriptType] → Value

toEncodingList ∷ [ScriptType] → Encoding

omitFieldScriptTypeBool

FromJSON ScriptType # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser ScriptType

parseJSONList ∷ Value → Parser [ScriptType]

omittedFieldMaybe ScriptType

type Rep ScriptType # 
Instance details

Defined in Maestro.Types.Common

type Rep ScriptType = D1 ('MetaData "ScriptType" "Maestro.Types.Common" "maestro-sdk-1.7.3-inplace" 'False) ((C1 ('MetaCons "Native" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "PlutusV1" 'PrefixI 'False) (U1TypeType)) :+: (C1 ('MetaCons "PlutusV2" 'PrefixI 'False) (U1TypeType) :+: C1 ('MetaCons "PlutusV3" 'PrefixI 'False) (U1TypeType)))

data Script #

Type to represent script in an UTxO.

Constructors

Script 

Fields

Instances

Instances details
Eq Script # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)ScriptScriptBool #

(/=)ScriptScriptBool #

Ord Script # 
Instance details

Defined in Maestro.Types.Common

Methods

compareScriptScriptOrdering #

(<)ScriptScriptBool #

(<=)ScriptScriptBool #

(>)ScriptScriptBool #

(>=)ScriptScriptBool #

maxScriptScriptScript #

minScriptScriptScript #

Show Script # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntScriptShowS #

showScriptString #

showList ∷ [Script] → ShowS #

Generic Script # 
Instance details

Defined in Maestro.Types.Common

Associated Types

type Rep ScriptTypeType #

Methods

fromScriptRep Script x #

toRep Script x → Script #

ToJSON Script # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONScript → Value

toEncodingScript → Encoding

toJSONList ∷ [Script] → Value

toEncodingList ∷ [Script] → Encoding

omitFieldScriptBool

FromJSON Script # 
Instance details

Defined in Maestro.Types.Common

Methods

parseJSON ∷ Value → Parser Script

parseJSONList ∷ Value → Parser [Script]

omittedFieldMaybe Script

type Rep Script # 
Instance details

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))))

data Order #

Constructors

Ascending 
Descending 

Instances

Instances details
Bounded Order # 
Instance details

Defined in Maestro.Types.Common

Methods

minBoundOrder #

maxBoundOrder #

Enum Order # 
Instance details

Defined in Maestro.Types.Common

Methods

succOrderOrder #

predOrderOrder #

toEnumIntOrder #

fromEnumOrderInt #

enumFromOrder → [Order] #

enumFromThenOrderOrder → [Order] #

enumFromToOrderOrder → [Order] #

enumFromThenToOrderOrderOrder → [Order] #

Eq Order # 
Instance details

Defined in Maestro.Types.Common

Methods

(==)OrderOrderBool #

(/=)OrderOrderBool #

Ord Order # 
Instance details

Defined in Maestro.Types.Common

Methods

compareOrderOrderOrdering #

(<)OrderOrderBool #

(<=)OrderOrderBool #

(>)OrderOrderBool #

(>=)OrderOrderBool #

maxOrderOrderOrder #

minOrderOrderOrder #

Show Order # 
Instance details

Defined in Maestro.Types.Common

Methods

showsPrecIntOrderShowS #

showOrderString #

showList ∷ [Order] → ShowS #

FromHttpApiData Order # 
Instance details

Defined in Maestro.Types.Common

ToHttpApiData Order # 
Instance details

Defined in Maestro.Types.Common

ToJSON Order # 
Instance details

Defined in Maestro.Types.Common

Methods

toJSONOrder → Value

toEncodingOrder → Encoding

toJSONList ∷ [Order] → Value

toEncodingList ∷ [Order] → Encoding

omitFieldOrderBool

Default Order # 
Instance details

Defined in Maestro.Types.Common

Methods

defOrder

data CBORStream #

Content-Type to represent transaction when submitting for it.

Instances

Instances details
Accept CBORStream # 
Instance details

Defined in Maestro.Types.Common

Methods

contentTypeProxy CBORStream → MediaType

contentTypesProxy CBORStreamNonEmpty MediaType

MimeRender CBORStream ByteString # 
Instance details

Defined in Maestro.Types.Common

MimeRender CBORStream ByteString # 
Instance details

Defined in Maestro.Types.Common

MimeUnrender CBORStream ByteString # 
Instance details

Defined in Maestro.Types.Common

MimeUnrender CBORStream ByteString # 
Instance details

Defined in Maestro.Types.Common

data LowerFirst #

Will lower the first character for your type.

Instances

Instances details
StringModifier LowerFirst # 
Instance details

Defined in Maestro.Types.Common

data LowerAll #

Will lower all characters for your type.

Instances

Instances details
StringModifier LowerAll # 
Instance details

Defined in Maestro.Types.Common