atlas-0.1.0.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainersupport@geniusyield.co
Stabilitydevelop
Safe HaskellNone
LanguageHaskell2010

GeniusYield.Types.Slot

Description

 
Synopsis

Documentation

data GYSlot #

Instances

Instances details
Eq GYSlot # 
Instance details

Defined in GeniusYield.Types.Slot

Methods

(==) ∷ GYSlot → GYSlot → Bool #

(/=) ∷ GYSlot → GYSlot → Bool #

Ord GYSlot # 
Instance details

Defined in GeniusYield.Types.Slot

Methods

compare ∷ GYSlot → GYSlot → Ordering #

(<) ∷ GYSlot → GYSlot → Bool #

(<=) ∷ GYSlot → GYSlot → Bool #

(>) ∷ GYSlot → GYSlot → Bool #

(>=) ∷ GYSlot → GYSlot → Bool #

max ∷ GYSlot → GYSlot → GYSlot #

min ∷ GYSlot → GYSlot → GYSlot #

Read GYSlot # 
Instance details

Defined in GeniusYield.Types.Slot

Show GYSlot # 
Instance details

Defined in GeniusYield.Types.Slot

Methods

showsPrec ∷ Int → GYSlot → ShowS #

show ∷ GYSlot → String #

showList ∷ [GYSlot] → ShowS #

PrintfArg GYSlot # 
Instance details

Defined in GeniusYield.Types.Slot

ToJSON GYSlot # 
Instance details

Defined in GeniusYield.Types.Slot

Methods

toJSON ∷ GYSlot → Value #

toEncoding ∷ GYSlot → Encoding #

toJSONList ∷ [GYSlot] → Value #

toEncodingList ∷ [GYSlot] → Encoding #

ToParamSchema GYSlot # 
Instance details

Defined in GeniusYield.Types.Slot

Methods

toParamSchema ∷ ∀ (t ∷ SwaggerKind Type). Proxy GYSlot → ParamSchema t

ToSchema GYSlot # 
Instance details

Defined in GeniusYield.Types.Slot

Methods

declareNamedSchema ∷ Proxy GYSlot → Declare (Definitions Schema) NamedSchema

slotToApi ∷ GYSlot → SlotNo #

slotFromApi ∷ SlotNo → GYSlot #

advanceSlot ∷ GYSlot → Natural → Maybe GYSlot #

Advance GYSlot forward. If slot value overflows, return Nothing.

unsafeAdvanceSlot ∷ GYSlot → Natural → GYSlot #

Unsafe advance GYSlot. Doesn't check for the overflow.

unsafeSlotFromInteger ∷ Integer → GYSlot #

Convert from regular integer, which might under or overflow.