blockfrost-api-0.1.0.0: API definitions for blockfrost.io
Safe HaskellNone
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
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

Show 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 #

ToJSON Amount Source # 
Instance details

Defined in Blockfrost.Types.Shared.Amount

FromJSON 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 UtxoOutput [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasAmount UtxoInput [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasAmount AddressUTXO [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasAmount AddressInfo [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasSentSum AddressDetails [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasReceivedSum AddressDetails [Amount] Source # 
Instance details

Defined in Blockfrost.Lens

HasOutputAmount Transaction [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.1.0.0-IUovSY8qZrZI80mAb9CnjM" '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

Orphan instances