plutus-pab-1.2.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) 

data AppEnv a Source #

Application environment with a contract type a.

Constructors

AppEnv 

App actions

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