Blockfrost.Types.Shared.Epoch
Description
Epoch
newtype Epoch Source #
Constructors
Defined in Blockfrost.Types.Shared.Epoch
Methods
(==) :: Epoch -> Epoch -> Bool #
(/=) :: Epoch -> Epoch -> Bool #
(+) :: Epoch -> Epoch -> Epoch #
(-) :: Epoch -> Epoch -> Epoch #
(*) :: Epoch -> Epoch -> Epoch #
negate :: Epoch -> Epoch #
abs :: Epoch -> Epoch #
signum :: Epoch -> Epoch #
fromInteger :: Integer -> Epoch #
showsPrec :: Int -> Epoch -> ShowS #
show :: Epoch -> String #
showList :: [Epoch] -> ShowS #
Associated Types
type Rep Epoch :: Type -> Type #
from :: Epoch -> Rep Epoch x #
to :: Rep Epoch x -> Epoch #
toJSON :: Epoch -> Value #
toEncoding :: Epoch -> Encoding #
toJSONList :: [Epoch] -> Value #
toEncodingList :: [Epoch] -> Encoding #
parseJSON :: Value -> Parser Epoch #
parseJSONList :: Value -> Parser [Epoch] #
toUrlPiece :: Epoch -> Text #
toEncodedUrlPiece :: Epoch -> Builder #
toHeader :: Epoch -> ByteString #
toQueryParam :: Epoch -> Text #
parseUrlPiece :: Text -> Either Text Epoch #
parseHeader :: ByteString -> Either Text Epoch #
parseQueryParam :: Text -> Either Text Epoch #
toSamples :: Proxy Epoch -> [(Text, Epoch)] #
Defined in Blockfrost.Lens
activeEpoch :: Lens' TransactionPoolUpdate Epoch Source #
activeEpoch :: Lens' TransactionDelegation Epoch Source #
activeEpoch :: Lens' AccountDelegation Epoch Source #
epoch :: Lens' PoolHistory Epoch Source #
epoch :: Lens' PoolEpoch Epoch Source #
epoch :: Lens' ProtocolParams Epoch Source #
epoch :: Lens' EpochInfo Epoch Source #
epoch :: Lens' AccountReward Epoch Source #
retiringEpoch :: Lens' TransactionPoolRetiring Epoch Source #
epoch :: Lens' Block (Maybe Epoch) Source #
toCapture :: Proxy (Capture "epoch_number" Epoch) -> DocCapture #
unEpoch :: Epoch -> Integer Source #