Blockfrost.Types.Shared.Epoch
Description
Epoch
newtype Epoch Source #
Constructors
Defined in Blockfrost.Types.Shared.Epoch
Methods
succ :: Epoch -> Epoch #
pred :: Epoch -> Epoch #
toEnum :: Int -> Epoch #
fromEnum :: Epoch -> Int #
enumFrom :: Epoch -> [Epoch] #
enumFromThen :: Epoch -> Epoch -> [Epoch] #
enumFromTo :: Epoch -> Epoch -> [Epoch] #
enumFromThenTo :: Epoch -> Epoch -> Epoch -> [Epoch] #
(==) :: Epoch -> Epoch -> Bool #
(/=) :: Epoch -> Epoch -> Bool #
quot :: Epoch -> Epoch -> Epoch #
rem :: Epoch -> Epoch -> Epoch #
div :: Epoch -> Epoch -> Epoch #
mod :: Epoch -> Epoch -> Epoch #
quotRem :: Epoch -> Epoch -> (Epoch, Epoch) #
divMod :: Epoch -> Epoch -> (Epoch, Epoch) #
toInteger :: Epoch -> Integer #
(+) :: Epoch -> Epoch -> Epoch #
(-) :: Epoch -> Epoch -> Epoch #
(*) :: Epoch -> Epoch -> Epoch #
negate :: Epoch -> Epoch #
abs :: Epoch -> Epoch #
signum :: Epoch -> Epoch #
fromInteger :: Integer -> Epoch #
compare :: Epoch -> Epoch -> Ordering #
(<) :: Epoch -> Epoch -> Bool #
(<=) :: Epoch -> Epoch -> Bool #
(>) :: Epoch -> Epoch -> Bool #
(>=) :: Epoch -> Epoch -> Bool #
max :: Epoch -> Epoch -> Epoch #
min :: Epoch -> Epoch -> Epoch #
toRational :: Epoch -> Rational #
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 #