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

Maestro.Types.V1.Common

Description

Common (shared) types used which are not specific to single category of endpoints.

Synopsis

Documentation

data PaymentCredentialAddress #

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

data StakingCredentialAddress #

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

data RewardAddress #

Phantom datatype to be used with, say Bech32StringOf to represent Bech32 representation of stake address (See CIP-19 for more details).

data PoolId #

Phantom datatype to be used with, say Bech32StringOf to represent Bech32 representation of a pool id.

newtype TaggedText (description ∷ Symbol) #

Wrapper around Text type with mentioned description of it.

Constructors

TaggedText Text 

Instances

Instances details
Eq (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

(==)TaggedText description → TaggedText description → Bool #

(/=)TaggedText description → TaggedText description → Bool #

Ord (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

compareTaggedText description → TaggedText description → Ordering #

(<)TaggedText description → TaggedText description → Bool #

(<=)TaggedText description → TaggedText description → Bool #

(>)TaggedText description → TaggedText description → Bool #

(>=)TaggedText description → TaggedText description → Bool #

maxTaggedText description → TaggedText description → TaggedText description #

minTaggedText description → TaggedText description → TaggedText description #

Show (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

showsPrecIntTaggedText description → ShowS #

showTaggedText description → String #

showList ∷ [TaggedText description] → ShowS #

IsString (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

fromStringStringTaggedText description #

Generic (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Associated Types

type Rep (TaggedText description) ∷ TypeType #

Methods

fromTaggedText description → Rep (TaggedText description) x #

toRep (TaggedText description) x → TaggedText description #

FromHttpApiData (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

parseUrlPieceTextEither Text (TaggedText description)

parseHeaderByteStringEither Text (TaggedText description)

parseQueryParamTextEither Text (TaggedText description)

ToHttpApiData (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

toUrlPieceTaggedText description → Text

toEncodedUrlPieceTaggedText description → Builder

toHeaderTaggedText description → ByteString

toQueryParamTaggedText description → Text

toEncodedQueryParamTaggedText description → Builder

ToJSON (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

toJSONTaggedText description → Value

toEncodingTaggedText description → Encoding

toJSONList ∷ [TaggedText description] → Value

toEncodingList ∷ [TaggedText description] → Encoding

omitFieldTaggedText description → Bool

FromJSON (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

parseJSON ∷ Value → Parser (TaggedText description)

parseJSONList ∷ Value → Parser [TaggedText description]

omittedFieldMaybe (TaggedText description)

type Rep (TaggedText description) # 
Instance details

Defined in Maestro.Types.V1.Common

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

data AssetUnit #

Given asset name is either lovelace or concatenation of hex encoded policy ID and hex encoded asset name for native asset.

Constructors

Lovelace

Lovelace.

UserMintedToken !NonAdaNativeToken

For non-ada native-tokens.

Instances

Instances details
Eq AssetUnit # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

(==)AssetUnitAssetUnitBool #

(/=)AssetUnitAssetUnitBool #

Ord AssetUnit # 
Instance details

Defined in Maestro.Types.V1.Common

Show AssetUnit # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

showsPrecIntAssetUnitShowS #

showAssetUnitString #

showList ∷ [AssetUnit] → ShowS #

ToJSON AssetUnit # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

toJSONAssetUnit → Value

toEncodingAssetUnit → Encoding

toJSONList ∷ [AssetUnit] → Value

toEncodingList ∷ [AssetUnit] → Encoding

omitFieldAssetUnitBool

FromJSON AssetUnit # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

parseJSON ∷ Value → Parser AssetUnit

parseJSONList ∷ Value → Parser [AssetUnit]

omittedFieldMaybe AssetUnit

data Asset #

Representation of asset in an UTxO.

Constructors

Asset 

Fields

Instances

Instances details
Eq Asset # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

(==)AssetAssetBool #

(/=)AssetAssetBool #

Ord Asset # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

compareAssetAssetOrdering #

(<)AssetAssetBool #

(<=)AssetAssetBool #

(>)AssetAssetBool #

(>=)AssetAssetBool #

maxAssetAssetAsset #

minAssetAssetAsset #

Show Asset # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

showsPrecIntAssetShowS #

showAssetString #

showList ∷ [Asset] → ShowS #

Generic Asset # 
Instance details

Defined in Maestro.Types.V1.Common

Associated Types

type Rep AssetTypeType #

Methods

fromAssetRep Asset x #

toRep Asset x → Asset #

ToJSON Asset # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

toJSONAsset → Value

toEncodingAsset → Encoding

toJSONList ∷ [Asset] → Value

toEncodingList ∷ [Asset] → Encoding

omitFieldAssetBool

FromJSON Asset # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

parseJSON ∷ Value → Parser Asset

parseJSONList ∷ Value → Parser [Asset]

omittedFieldMaybe Asset

type Rep Asset # 
Instance details

Defined in Maestro.Types.V1.Common

type Rep Asset = D1 ('MetaData "Asset" "Maestro.Types.V1.Common" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "Asset" 'PrefixI 'True) (S1 ('MetaSel ('Just "assetAmount") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Integer) :*: S1 ('MetaSel ('Just "assetUnit") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AssetUnit)))

data UtxoWithSlot #

Transaction output.

Constructors

UtxoWithSlot 

Fields

Instances

Instances details
Eq UtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Ord UtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Show UtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Generic UtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Associated Types

type Rep UtxoWithSlotTypeType #

ToJSON UtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

toJSONUtxoWithSlot → Value

toEncodingUtxoWithSlot → Encoding

toJSONList ∷ [UtxoWithSlot] → Value

toEncodingList ∷ [UtxoWithSlot] → Encoding

omitFieldUtxoWithSlotBool

FromJSON UtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Methods

parseJSON ∷ Value → Parser UtxoWithSlot

parseJSONList ∷ Value → Parser [UtxoWithSlot]

omittedFieldMaybe UtxoWithSlot

IsUtxo UtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

type Rep UtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

type Rep UtxoWithSlot = D1 ('MetaData "UtxoWithSlot" "Maestro.Types.V1.Common" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "UtxoWithSlot" 'PrefixI 'True) (((S1 ('MetaSel ('Just "utxoWithSlotAddress") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Bech32StringOf Address)) :*: S1 ('MetaSel ('Just "utxoWithSlotAssets") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Asset])) :*: (S1 ('MetaSel ('Just "utxoWithSlotDatum") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe DatumOption)) :*: S1 ('MetaSel ('Just "utxoWithSlotIndex") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxIndex))) :*: ((S1 ('MetaSel ('Just "utxoWithSlotReferenceScript") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe Script)) :*: S1 ('MetaSel ('Just "utxoWithSlotTxHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxHash)) :*: (S1 ('MetaSel ('Just "utxoWithSlotSlot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo) :*: S1 ('MetaSel ('Just "utxoWithSlotTxoutCbor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (HexStringOf TxOutCbor)))))))

data PaginatedUtxoWithSlot #

A paginated response of transaction outputs.

Instances

Instances details
Eq PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Show PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Generic PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

Associated Types

type Rep PaginatedUtxoWithSlotTypeType #

ToJSON PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

FromJSON PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

IsTimestamped PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

HasCursor PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

type Rep PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

type Rep PaginatedUtxoWithSlot = D1 ('MetaData "PaginatedUtxoWithSlot" "Maestro.Types.V1.Common" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "PaginatedUtxoWithSlot" 'PrefixI 'True) (S1 ('MetaSel ('Just "paginatedUtxoWithSlotData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [UtxoWithSlot]) :*: (S1 ('MetaSel ('Just "paginatedUtxoWithSlotLastUpdated") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 LastUpdated) :*: S1 ('MetaSel ('Just "paginatedUtxoWithSlotNextCursor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NextCursor)))))
type TimestampedData PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common