blockfrost-api-0.12.0.0: API definitions for blockfrost.io
Safe HaskellSafe-Inferred
LanguageHaskell2010

Blockfrost.Types.Shared.Amount

Description

Amount sum type

Synopsis

Documentation

data Amount Source #

Amount, which is either `AdaAmount Lovelaces` representing amount of lovelaces or `AssetAmount SomeDiscrete` for asset amounts, identified by concatenation of asset policy ID and hex-encoded asset_name

Instances

Instances details
FromJSON Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

ToJSON Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Generic Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Associated Types

type Rep Amount :: Type -> Type #

Methods

from :: Amount -> Rep Amount x #

to :: Rep Amount x -> Amount #

Show Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Eq Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Methods

(==) :: Amount -> Amount -> Bool #

(/=) :: Amount -> Amount -> Bool #

Ord Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

ToSample Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Methods

toSamples :: Proxy Amount -> [(Text, Amount)] #

HasAmount AddressInfo [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasAmount AddressUtxo [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasAmount UtxoInput [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasAmount UtxoOutput [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasOutputAmount Transaction [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasReceivedSum AddressAssociatedTotal [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasReceivedSum AddressDetails [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasSentSum AddressAssociatedTotal [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasSentSum AddressDetails [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

type Rep Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

type Rep Amount = D1 ('MetaData "Amount" "Blockfrost.Types.Shared.Amount" "blockfrost-api-0.12.0.0-47po8LqaOADFy8URMsERQB" 'False) (C1 ('MetaCons "AdaAmount" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelaces)) :+: C1 ('MetaCons "AssetAmount" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeDiscrete)))

unitScale :: Scale Source #

SomeDiscrete values always use scale of 1

data AmountExtended Source #

Like Amount, extended with @decimals` and has_nft_onchain_metadata

Instances

Instances details
FromJSON AmountExtended Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

ToJSON AmountExtended Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Generic AmountExtended Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Associated Types

type Rep AmountExtended :: Type -> Type #

Show AmountExtended Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Eq AmountExtended Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

Ord AmountExtended Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

ToSample AmountExtended Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

HasAmount AddressInfoExtended [AmountExtended] Source # 
Instance details

Defined in Blockfrost.Lens

type Rep AmountExtended Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

type Rep AmountExtended = D1 ('MetaData "AmountExtended" "Blockfrost.Types.Shared.Amount" "blockfrost-api-0.12.0.0-47po8LqaOADFy8URMsERQB" 'False) (C1 ('MetaCons "AdaAmountExtended" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Lovelaces)) :+: C1 ('MetaCons "AssetAmountExtended" 'PrefixI 'True) (S1 ('MetaSel ('Just "assetAmountExtendedDecimals") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "assetAmountExtendedHasNftOnchainMetadata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "assetAmountExtendedValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SomeDiscrete))))

Orphan instances