Blockfrost.Types.Shared.Quantity
Description
Quantity wrapper
newtype Quantity Source #
Constructors
Defined in Blockfrost.Types.Shared.Quantity
Methods
(==) :: Quantity -> Quantity -> Bool Source #
(/=) :: Quantity -> Quantity -> Bool Source #
(+) :: Quantity -> Quantity -> Quantity Source #
(-) :: Quantity -> Quantity -> Quantity Source #
(*) :: Quantity -> Quantity -> Quantity Source #
negate :: Quantity -> Quantity Source #
abs :: Quantity -> Quantity Source #
signum :: Quantity -> Quantity Source #
fromInteger :: Integer -> Quantity Source #
readsPrec :: Int -> ReadS Quantity Source #
readList :: ReadS [ Quantity ] Source #
readPrec :: ReadPrec Quantity Source #
readListPrec :: ReadPrec [ Quantity ] Source #
showsPrec :: Int -> Quantity -> ShowS Source #
show :: Quantity -> String Source #
showList :: [ Quantity ] -> ShowS Source #
Associated Types
type Rep Quantity :: Type -> Type Source #
from :: Quantity -> Rep Quantity x Source #
to :: Rep Quantity x -> Quantity Source #
toJSON :: Quantity -> Value Source #
toEncoding :: Quantity -> Encoding Source #
toJSONList :: [ Quantity ] -> Value Source #
toEncodingList :: [ Quantity ] -> Encoding Source #
parseJSON :: Value -> Parser Quantity Source #
parseJSONList :: Value -> Parser [ Quantity ] Source #
toUrlPiece :: Quantity -> Text Source #
toEncodedUrlPiece :: Quantity -> Builder Source #
toHeader :: Quantity -> ByteString Source #
toQueryParam :: Quantity -> Text Source #
parseUrlPiece :: Text -> Either Text Quantity Source #
parseHeader :: ByteString -> Either Text Quantity Source #
parseQueryParam :: Text -> Either Text Quantity Source #
toSamples :: Proxy Quantity -> [( Text , Quantity )] Source #
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 #