plutus-wallet-api-0.1.0.0: Wallet API

Safe HaskellNone
LanguageHaskell2010

Ledger.Slot

Description

Slots and slot ranges.

Synopsis

Documentation

newtype Slot Source #

The slot number. This is a good proxy for time, since on the Cardano blockchain slots pass at a constant rate.

Constructors

Slot 

Fields

Instances
Enum Slot Source # 
Instance details

Defined in Ledger.Slot

Eq Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

(==) :: Slot -> Slot -> Bool Source #

(/=) :: Slot -> Slot -> Bool Source #

Integral Slot Source # 
Instance details

Defined in Ledger.Slot

Num Slot Source # 
Instance details

Defined in Ledger.Slot

Ord Slot Source # 
Instance details

Defined in Ledger.Slot

Real Slot Source # 
Instance details

Defined in Ledger.Slot

Show Slot Source # 
Instance details

Defined in Ledger.Slot

Generic Slot Source # 
Instance details

Defined in Ledger.Slot

Associated Types

type Rep Slot :: Type -> Type Source #

Methods

from :: Slot -> Rep Slot x Source #

to :: Rep Slot x -> Slot Source #

IotsType Slot Source # 
Instance details

Defined in Ledger.Slot

ToSchema Slot Source # 
Instance details

Defined in Ledger.Slot

ToSchema SlotRange Source # 
Instance details

Defined in Ledger.Slot

Serialise Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

encode :: Slot -> Encoding

decode :: Decoder s Slot

encodeList :: [Slot] -> Encoding

decodeList :: Decoder s [Slot]

Hashable Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

hashWithSalt :: Int -> Slot -> Int

hash :: Slot -> Int

FromJSON Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

parseJSON :: Value -> Parser Slot

parseJSONList :: Value -> Parser [Slot]

FromJSONKey Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

fromJSONKey :: FromJSONKeyFunction Slot

fromJSONKeyList :: FromJSONKeyFunction [Slot]

ToJSON Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

toJSON :: Slot -> Value

toEncoding :: Slot -> Encoding

toJSONList :: [Slot] -> Value

toEncodingList :: [Slot] -> Encoding

ToJSONKey Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

toJSONKey :: ToJSONKeyFunction Slot

toJSONKeyList :: ToJSONKeyFunction [Slot]

Lift Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

lift :: Slot -> RTCompile (Term TyName Name ())

Eq Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

(==) :: Slot -> Slot -> Bool

AdditiveGroup Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

(-) :: Slot -> Slot -> Slot

AdditiveMonoid Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

zero :: Slot

AdditiveSemigroup Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

(+) :: Slot -> Slot -> Slot

Ord Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

compare :: Slot -> Slot -> Ordering

(<) :: Slot -> Slot -> Bool

(<=) :: Slot -> Slot -> Bool

(>) :: Slot -> Slot -> Bool

(>=) :: Slot -> Slot -> Bool

max :: Slot -> Slot -> Slot

min :: Slot -> Slot -> Slot

Typeable Slot Source # 
Instance details

Defined in Ledger.Slot

Methods

typeRep :: Proxy Slot -> RTCompile (Type TyName ())

type Rep Slot Source # 
Instance details

Defined in Ledger.Slot

type Rep Slot = D1 (MetaData "Slot" "Ledger.Slot" "plutus-wallet-api-0.1.0.0-BdsTjp7uGUGANkPkvyfvD2-plutus-ledger" True) (C1 (MetaCons "Slot" PrefixI True) (S1 (MetaSel (Just "getSlot") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Integer)))

width :: SlotRange -> Maybe Integer Source #

Number of Slots covered by the interval, if finite. width (from x) == Nothing.