Blockfrost.Types.Shared.Quantity
Description
Quantity wrapper
newtype Quantity Source #
Constructors
Defined in Blockfrost.Types.Shared.Quantity
Methods
parseJSON :: Value -> Parser Quantity #
parseJSONList :: Value -> Parser [Quantity] #
omittedField :: Maybe Quantity #
toJSON :: Quantity -> Value #
toEncoding :: Quantity -> Encoding #
toJSONList :: [Quantity] -> Value #
toEncodingList :: [Quantity] -> Encoding #
omitField :: Quantity -> Bool #
Associated Types
type Rep Quantity :: Type -> Type #
from :: Quantity -> Rep Quantity x #
to :: Rep Quantity x -> Quantity #
(+) :: Quantity -> Quantity -> Quantity #
(-) :: Quantity -> Quantity -> Quantity #
(*) :: Quantity -> Quantity -> Quantity #
negate :: Quantity -> Quantity #
abs :: Quantity -> Quantity #
signum :: Quantity -> Quantity #
fromInteger :: Integer -> Quantity #
readsPrec :: Int -> ReadS Quantity #
readList :: ReadS [Quantity] #
readPrec :: ReadPrec Quantity #
readListPrec :: ReadPrec [Quantity] #
showsPrec :: Int -> Quantity -> ShowS #
show :: Quantity -> String #
showList :: [Quantity] -> ShowS #
(==) :: Quantity -> Quantity -> Bool #
(/=) :: Quantity -> Quantity -> Bool #
parseUrlPiece :: Text -> Either Text Quantity #
parseHeader :: ByteString -> Either Text Quantity #
parseQueryParam :: Text -> Either Text Quantity #
toUrlPiece :: Quantity -> Text #
toEncodedUrlPiece :: Quantity -> Builder #
toHeader :: Quantity -> ByteString #
toQueryParam :: Quantity -> Text #
toEncodedQueryParam :: Quantity -> Builder #
toSamples :: Proxy Quantity -> [(Text, Quantity)] #
Defined in Blockfrost.Lens
amount :: Lens' AssetHistory Quantity Source #
count :: Lens' TxMeta Quantity Source #
maxBlockExMem :: Lens' ProtocolParams Quantity Source #
maxBlockExSteps :: Lens' ProtocolParams Quantity Source #
maxTxExMem :: Lens' ProtocolParams Quantity Source #
maxTxExSteps :: Lens' ProtocolParams Quantity Source #
maxValSize :: Lens' ProtocolParams Quantity Source #
quantity :: Lens' AssetAddress Quantity Source #
quantity :: Lens' AssetDetails Quantity Source #
quantity :: Lens' AssetInfo Quantity Source #
size :: Lens' IPFSAdd Quantity Source #
size :: Lens' IPFSPin Quantity Source #
unitMem :: Lens' TransactionRedeemer Quantity Source #
unitSteps :: Lens' TransactionRedeemer Quantity Source #
opCertCounter :: Lens' Block (Maybe Quantity) Source #
unQuantity :: Quantity -> Integer Source #