Safe Haskell | None |
---|---|
Language | Haskell2010 |
Common (shared) types used which are not specific to single category of endpoints.
Synopsis
- data PaymentCredentialAddress
- data StakingCredentialAddress
- data RewardAddress
- data PoolId
- newtype TaggedText (description ∷ Symbol) = TaggedText Text
- data NonAdaNativeToken = NonAdaNativeToken !PolicyId !TokenName
- data AssetUnit
- data Asset = Asset {}
- class IsUtxo a where
- getAddress ∷ a → Bech32StringOf Address
- getAssets ∷ a → [Asset]
- getDatum ∷ a → Maybe DatumOption
- getTxHash ∷ a → TxHash
- getIndex ∷ a → TxIndex
- getReferenceScript ∷ a → Maybe Script
- data UtxoWithSlot = UtxoWithSlot {}
- data PaginatedUtxoWithSlot = PaginatedUtxoWithSlot {}
- module Maestro.Types.Common
- module Maestro.Types.V1.Common.Pagination
- module Maestro.Types.V1.Common.Timestamped
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).
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.
Instances
data NonAdaNativeToken #
Type to denote for native tokens (besides ada).
Instances
Eq NonAdaNativeToken # | |
Defined in Maestro.Types.V1.Common | |
Ord NonAdaNativeToken # | |
Defined in Maestro.Types.V1.Common compare ∷ NonAdaNativeToken → NonAdaNativeToken → Ordering # (<) ∷ NonAdaNativeToken → NonAdaNativeToken → Bool # (<=) ∷ NonAdaNativeToken → NonAdaNativeToken → Bool # (>) ∷ NonAdaNativeToken → NonAdaNativeToken → Bool # (>=) ∷ NonAdaNativeToken → NonAdaNativeToken → Bool # max ∷ NonAdaNativeToken → NonAdaNativeToken → NonAdaNativeToken # min ∷ NonAdaNativeToken → NonAdaNativeToken → NonAdaNativeToken # | |
Show NonAdaNativeToken # | |
Defined in Maestro.Types.V1.Common showsPrec ∷ Int → NonAdaNativeToken → ShowS # show ∷ NonAdaNativeToken → String # showList ∷ [NonAdaNativeToken] → ShowS # | |
ToHttpApiData NonAdaNativeToken # | |
Given asset name is either lovelace or concatenation of hex encoded policy ID and hex encoded asset name for native asset.
Lovelace | Lovelace. |
UserMintedToken !NonAdaNativeToken | For non-ada native-tokens. |
Instances
Eq AssetUnit # | |
Ord AssetUnit # | |
Defined in Maestro.Types.V1.Common | |
Show AssetUnit # | |
ToJSON AssetUnit # | |
Defined in Maestro.Types.V1.Common toEncoding ∷ AssetUnit → Encoding toJSONList ∷ [AssetUnit] → Value toEncodingList ∷ [AssetUnit] → Encoding | |
FromJSON AssetUnit # | |
Defined in Maestro.Types.V1.Common parseJSON ∷ Value → Parser AssetUnit parseJSONList ∷ Value → Parser [AssetUnit] |
Representation of asset in an UTxO.
Instances
Eq Asset # | |
Ord Asset # | |
Show Asset # | |
Generic Asset # | |
ToJSON Asset # | |
Defined in Maestro.Types.V1.Common | |
FromJSON Asset # | |
Defined in Maestro.Types.V1.Common | |
type Rep Asset # | |
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))) |
To get basic details from an UTxO.
getAddress ∷ a → Bech32StringOf Address #
getDatum ∷ a → Maybe DatumOption #
getReferenceScript ∷ a → Maybe Script #
Instances
IsUtxo UtxoWithSlot # | |
Defined in Maestro.Types.V1.Common | |
IsUtxo UtxoWithBytes # | |
Defined in Maestro.Types.V1.Transactions |
data UtxoWithSlot #
Transaction output.
UtxoWithSlot | |
|
Instances
data PaginatedUtxoWithSlot #
A paginated response of transaction outputs.
Instances
module Maestro.Types.Common