convex-base-0.2.0.0: Base classes and types for working with cardano-api transactions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Convex.Event

Contents

Synopsis

Documentation

data TxWithEvents a Source #

A transaction annotated with events extracted from it.

Constructors

TxWithEvents 

Fields

Instances

Instances details
Foldable TxWithEvents Source # 
Instance details

Defined in Convex.Event

Methods

foldMonoid m ⇒ TxWithEvents m → m Source #

foldMapMonoid m ⇒ (a → m) → TxWithEvents a → m Source #

foldMap'Monoid m ⇒ (a → m) → TxWithEvents a → m Source #

foldr ∷ (a → b → b) → b → TxWithEvents a → b Source #

foldr' ∷ (a → b → b) → b → TxWithEvents a → b Source #

foldl ∷ (b → a → b) → b → TxWithEvents a → b Source #

foldl' ∷ (b → a → b) → b → TxWithEvents a → b Source #

foldr1 ∷ (a → a → a) → TxWithEvents a → a Source #

foldl1 ∷ (a → a → a) → TxWithEvents a → a Source #

toListTxWithEvents a → [a] Source #

nullTxWithEvents a → Bool Source #

lengthTxWithEvents a → Int Source #

elemEq a ⇒ a → TxWithEvents a → Bool Source #

maximumOrd a ⇒ TxWithEvents a → a Source #

minimumOrd a ⇒ TxWithEvents a → a Source #

sumNum a ⇒ TxWithEvents a → a Source #

productNum a ⇒ TxWithEvents a → a Source #

Traversable TxWithEvents Source # 
Instance details

Defined in Convex.Event

Methods

traverseApplicative f ⇒ (a → f b) → TxWithEvents a → f (TxWithEvents b) Source #

sequenceAApplicative f ⇒ TxWithEvents (f a) → f (TxWithEvents a) Source #

mapMMonad m ⇒ (a → m b) → TxWithEvents a → m (TxWithEvents b) Source #

sequenceMonad m ⇒ TxWithEvents (m a) → m (TxWithEvents a) Source #

Functor TxWithEvents Source # 
Instance details

Defined in Convex.Event

Methods

fmap ∷ (a → b) → TxWithEvents a → TxWithEvents b Source #

(<$) ∷ a → TxWithEvents b → TxWithEvents a Source #

Generic (TxWithEvents a) Source # 
Instance details

Defined in Convex.Event

Associated Types

type Rep (TxWithEvents a) ∷ TypeType Source #

Show a ⇒ Show (TxWithEvents a) Source # 
Instance details

Defined in Convex.Event

Eq a ⇒ Eq (TxWithEvents a) Source # 
Instance details

Defined in Convex.Event

type Rep (TxWithEvents a) Source # 
Instance details

Defined in Convex.Event

type Rep (TxWithEvents a) = D1 ('MetaData "TxWithEvents" "Convex.Event" "convex-base-0.2.0.0-inplace" 'False) (C1 ('MetaCons "TxWithEvents" 'PrefixI 'True) ((S1 ('MetaSel ('Just "twTx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Tx BabbageEra)) :*: S1 ('MetaSel ('Just "twEvents") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NonEmpty (Event a)))) :*: (S1 ('MetaSel ('Just "twBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockNo) :*: S1 ('MetaSel ('Just "twSlot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo))))

data NewOutputEvent a Source #

Instances

Instances details
Foldable NewOutputEvent Source # 
Instance details

Defined in Convex.Event

Methods

foldMonoid m ⇒ NewOutputEvent m → m Source #

foldMapMonoid m ⇒ (a → m) → NewOutputEvent a → m Source #

foldMap'Monoid m ⇒ (a → m) → NewOutputEvent a → m Source #

foldr ∷ (a → b → b) → b → NewOutputEvent a → b Source #

foldr' ∷ (a → b → b) → b → NewOutputEvent a → b Source #

foldl ∷ (b → a → b) → b → NewOutputEvent a → b Source #

foldl' ∷ (b → a → b) → b → NewOutputEvent a → b Source #

foldr1 ∷ (a → a → a) → NewOutputEvent a → a Source #

foldl1 ∷ (a → a → a) → NewOutputEvent a → a Source #

toListNewOutputEvent a → [a] Source #

nullNewOutputEvent a → Bool Source #

lengthNewOutputEvent a → Int Source #

elemEq a ⇒ a → NewOutputEvent a → Bool Source #

maximumOrd a ⇒ NewOutputEvent a → a Source #

minimumOrd a ⇒ NewOutputEvent a → a Source #

sumNum a ⇒ NewOutputEvent a → a Source #

productNum a ⇒ NewOutputEvent a → a Source #

Traversable NewOutputEvent Source # 
Instance details

Defined in Convex.Event

Methods

traverseApplicative f ⇒ (a → f b) → NewOutputEvent a → f (NewOutputEvent b) Source #

sequenceAApplicative f ⇒ NewOutputEvent (f a) → f (NewOutputEvent a) Source #

mapMMonad m ⇒ (a → m b) → NewOutputEvent a → m (NewOutputEvent b) Source #

sequenceMonad m ⇒ NewOutputEvent (m a) → m (NewOutputEvent a) Source #

Functor NewOutputEvent Source # 
Instance details

Defined in Convex.Event

Methods

fmap ∷ (a → b) → NewOutputEvent a → NewOutputEvent b Source #

(<$) ∷ a → NewOutputEvent b → NewOutputEvent a Source #

Generic (NewOutputEvent a) Source # 
Instance details

Defined in Convex.Event

Associated Types

type Rep (NewOutputEvent a) ∷ TypeType Source #

Show a ⇒ Show (NewOutputEvent a) Source # 
Instance details

Defined in Convex.Event

Eq a ⇒ Eq (NewOutputEvent a) Source # 
Instance details

Defined in Convex.Event

type Rep (NewOutputEvent a) Source # 
Instance details

Defined in Convex.Event

data OutputSpentEvent a Source #

Instances

Instances details
Foldable OutputSpentEvent Source # 
Instance details

Defined in Convex.Event

Methods

foldMonoid m ⇒ OutputSpentEvent m → m Source #

foldMapMonoid m ⇒ (a → m) → OutputSpentEvent a → m Source #

foldMap'Monoid m ⇒ (a → m) → OutputSpentEvent a → m Source #

foldr ∷ (a → b → b) → b → OutputSpentEvent a → b Source #

foldr' ∷ (a → b → b) → b → OutputSpentEvent a → b Source #

foldl ∷ (b → a → b) → b → OutputSpentEvent a → b Source #

foldl' ∷ (b → a → b) → b → OutputSpentEvent a → b Source #

foldr1 ∷ (a → a → a) → OutputSpentEvent a → a Source #

foldl1 ∷ (a → a → a) → OutputSpentEvent a → a Source #

toListOutputSpentEvent a → [a] Source #

nullOutputSpentEvent a → Bool Source #

lengthOutputSpentEvent a → Int Source #

elemEq a ⇒ a → OutputSpentEvent a → Bool Source #

maximumOrd a ⇒ OutputSpentEvent a → a Source #

minimumOrd a ⇒ OutputSpentEvent a → a Source #

sumNum a ⇒ OutputSpentEvent a → a Source #

productNum a ⇒ OutputSpentEvent a → a Source #

Traversable OutputSpentEvent Source # 
Instance details

Defined in Convex.Event

Methods

traverseApplicative f ⇒ (a → f b) → OutputSpentEvent a → f (OutputSpentEvent b) Source #

sequenceAApplicative f ⇒ OutputSpentEvent (f a) → f (OutputSpentEvent a) Source #

mapMMonad m ⇒ (a → m b) → OutputSpentEvent a → m (OutputSpentEvent b) Source #

sequenceMonad m ⇒ OutputSpentEvent (m a) → m (OutputSpentEvent a) Source #

Functor OutputSpentEvent Source # 
Instance details

Defined in Convex.Event

Methods

fmap ∷ (a → b) → OutputSpentEvent a → OutputSpentEvent b Source #

(<$) ∷ a → OutputSpentEvent b → OutputSpentEvent a Source #

Generic (OutputSpentEvent a) Source # 
Instance details

Defined in Convex.Event

Associated Types

type Rep (OutputSpentEvent a) ∷ TypeType Source #

Show a ⇒ Show (OutputSpentEvent a) Source # 
Instance details

Defined in Convex.Event

Eq a ⇒ Eq (OutputSpentEvent a) Source # 
Instance details

Defined in Convex.Event

type Rep (OutputSpentEvent a) Source # 
Instance details

Defined in Convex.Event

type Rep (OutputSpentEvent a) = D1 ('MetaData "OutputSpentEvent" "Convex.Event" "convex-base-0.2.0.0-inplace" 'False) (C1 ('MetaCons "OutputSpentEvent" 'PrefixI 'True) ((S1 ('MetaSel ('Just "oseTxIn") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxIn) :*: S1 ('MetaSel ('Just "oseRedeemer") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Data StandardBabbage))) :*: (S1 ('MetaSel ('Just "oseDatum") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Data StandardBabbage)) :*: (S1 ('MetaSel ('Just "oseSpendingTx") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TxId) :*: S1 ('MetaSel ('Just "oseTxOutput") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NewOutputEvent a))))))

data Event a Source #

Instances

Instances details
Foldable Event Source # 
Instance details

Defined in Convex.Event

Methods

foldMonoid m ⇒ Event m → m Source #

foldMapMonoid m ⇒ (a → m) → Event a → m Source #

foldMap'Monoid m ⇒ (a → m) → Event a → m Source #

foldr ∷ (a → b → b) → b → Event a → b Source #

foldr' ∷ (a → b → b) → b → Event a → b Source #

foldl ∷ (b → a → b) → b → Event a → b Source #

foldl' ∷ (b → a → b) → b → Event a → b Source #

foldr1 ∷ (a → a → a) → Event a → a Source #

foldl1 ∷ (a → a → a) → Event a → a Source #

toListEvent a → [a] Source #

nullEvent a → Bool Source #

lengthEvent a → Int Source #

elemEq a ⇒ a → Event a → Bool Source #

maximumOrd a ⇒ Event a → a Source #

minimumOrd a ⇒ Event a → a Source #

sumNum a ⇒ Event a → a Source #

productNum a ⇒ Event a → a Source #

Traversable Event Source # 
Instance details

Defined in Convex.Event

Methods

traverseApplicative f ⇒ (a → f b) → Event a → f (Event b) Source #

sequenceAApplicative f ⇒ Event (f a) → f (Event a) Source #

mapMMonad m ⇒ (a → m b) → Event a → m (Event b) Source #

sequenceMonad m ⇒ Event (m a) → m (Event a) Source #

Functor Event Source # 
Instance details

Defined in Convex.Event

Methods

fmap ∷ (a → b) → Event a → Event b Source #

(<$) ∷ a → Event b → Event a Source #

Generic (Event a) Source # 
Instance details

Defined in Convex.Event

Associated Types

type Rep (Event a) ∷ TypeType Source #

Methods

fromEvent a → Rep (Event a) x Source #

toRep (Event a) x → Event a Source #

Show a ⇒ Show (Event a) Source # 
Instance details

Defined in Convex.Event

Methods

showsPrecIntEvent a → ShowS Source #

showEvent a → String Source #

showList ∷ [Event a] → ShowS Source #

Eq a ⇒ Eq (Event a) Source # 
Instance details

Defined in Convex.Event

Methods

(==)Event a → Event a → Bool Source #

(/=)Event a → Event a → Bool Source #

type Rep (Event a) Source # 
Instance details

Defined in Convex.Event

type Rep (Event a) = D1 ('MetaData "Event" "Convex.Event" "convex-base-0.2.0.0-inplace" 'False) (C1 ('MetaCons "AnOutputSpentEvent" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (OutputSpentEvent a))) :+: C1 ('MetaCons "ANewOutputEvent" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (NewOutputEvent a))))

txInNewOutputEvent a → TxIn Source #

The TxIn of the new output

Extraction

newtype ResolvedInputs a Source #

Instances

Instances details
Monoid (ResolvedInputs a) Source # 
Instance details

Defined in Convex.Event

Semigroup (ResolvedInputs a) Source # 
Instance details

Defined in Convex.Event

Generic (ResolvedInputs a) Source # 
Instance details

Defined in Convex.Event

Associated Types

type Rep (ResolvedInputs a) ∷ TypeType Source #

Show a ⇒ Show (ResolvedInputs a) Source # 
Instance details

Defined in Convex.Event

Eq a ⇒ Eq (ResolvedInputs a) Source # 
Instance details

Defined in Convex.Event

type Rep (ResolvedInputs a) Source # 
Instance details

Defined in Convex.Event

type Rep (ResolvedInputs a) = D1 ('MetaData "ResolvedInputs" "Convex.Event" "convex-base-0.2.0.0-inplace" 'True) (C1 ('MetaCons "ResolvedInputs" 'PrefixI 'False) (S1 ('MetaSel ('NothingMaybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map TxIn (NewOutputEvent a)))))

extract Source #

Arguments

Extract a 
ResolvedInputs a

Resolved inputs

BlockInMode CardanoMode

New block

→ ([TxWithEvents a], ResolvedInputs a)

Defi events extracted from block