Blockfrost.Types.Shared.Quantity
Description
Quantity wrapper
newtype Quantity Source #
Constructors
Defined in Blockfrost.Types.Shared.Quantity
Methods
(==) :: Quantity -> Quantity -> Bool #
(/=) :: Quantity -> Quantity -> Bool #
(+) :: 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 #
Associated Types
type Rep Quantity :: Type -> Type #
from :: Quantity -> Rep Quantity x #
to :: Rep Quantity x -> Quantity #
toJSON :: Quantity -> Value #
toEncoding :: Quantity -> Encoding #
toJSONList :: [Quantity] -> Value #
toEncodingList :: [Quantity] -> Encoding #
parseJSON :: Value -> Parser Quantity #
parseJSONList :: Value -> Parser [Quantity] #
toUrlPiece :: Quantity -> Text #
toEncodedUrlPiece :: Quantity -> Builder #
toHeader :: Quantity -> ByteString #
toQueryParam :: Quantity -> Text #
parseUrlPiece :: Text -> Either Text Quantity #
parseHeader :: ByteString -> Either Text Quantity #
parseQueryParam :: Text -> Either Text Quantity #
toSamples :: Proxy Quantity -> [(Text, Quantity)] #
Defined in Blockfrost.Lens
amount :: Lens' AssetHistory Quantity Source #
quantity :: Lens' AssetAddress Quantity Source #
quantity :: Lens' AssetDetails Quantity Source #
quantity :: Lens' AssetInfo Quantity Source #
size :: Lens' IPFSPin Quantity Source #
size :: Lens' IPFSAdd Quantity Source #
maxValSize :: Lens' ProtocolParams Quantity Source #
maxTxExSteps :: Lens' ProtocolParams Quantity Source #
maxTxExMem :: Lens' ProtocolParams Quantity Source #
maxBlockExSteps :: Lens' ProtocolParams Quantity Source #
maxBlockExMem :: Lens' ProtocolParams Quantity Source #
count :: Lens' TxMeta Quantity Source #
unitSteps :: Lens' TransactionRedeemer Quantity Source #
unitMem :: Lens' TransactionRedeemer Quantity Source #
unQuantity :: Quantity -> Integer Source #