plutus-pab-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.PAB.App

Contents

Synopsis

Documentation

type App a b = PABAction (Builtin a) (AppEnv a) b Source #

runApp Source #

Arguments

:: forall a b. (FromJSON a, ToJSON a, HasDefinitions a, Typeable a) 
=> StorageBackend 
-> Trace IO (PABLogMsg (Builtin a))

Top-level tracer

-> BuiltinHandler a 
-> Config

Client configuration

-> App a b

Action

-> IO (Either PABError b) 

App actions

migrate :: Trace IO (PABLogMsg (Builtin a)) -> DbConfig -> IO () Source #

Initialize/update the database to hold our effects.

dbConnect :: Trace IO (PABLogMsg (Builtin a)) -> DbConfig -> IO (Pool Connection) Source #

Connect to the database.