blockfrost-api-0.4.0.0: API definitions for blockfrost.io
Safe HaskellNone
LanguageHaskell2010

Blockfrost.Types.Shared.Ada

Description

Lovelaces

Documentation

type Lovelaces = Discrete "ADA" "lovelace" Source #

Orphan instances

ToJSON (Discrete' "ADA" '(1000000, 1)) Source # 
Instance details

Methods

toJSON :: Discrete' "ADA" '(1000000, 1) -> Value #

toEncoding :: Discrete' "ADA" '(1000000, 1) -> Encoding #

toJSONList :: [Discrete' "ADA" '(1000000, 1)] -> Value #

toEncodingList :: [Discrete' "ADA" '(1000000, 1)] -> Encoding #

FromJSON (Discrete' "ADA" '(1000000, 1)) Source # 
Instance details

Methods

parseJSON :: Value -> Parser (Discrete' "ADA" '(1000000, 1)) #

parseJSONList :: Value -> Parser [Discrete' "ADA" '(1000000, 1)] #

(KnownSymbol cur, GoodScale sc) => ToSample (Discrete' cur sc) Source # 
Instance details

Methods

toSamples :: Proxy (Discrete' cur sc) -> [(Text, Discrete' cur sc)] #