plutus-pab-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.PAB.Types

Synopsis

Documentation

data PABError Source #

Instances

Instances details
Eq PABError Source # 
Instance details

Defined in Plutus.PAB.Types

Show PABError Source # 
Instance details

Defined in Plutus.PAB.Types

Generic PABError Source # 
Instance details

Defined in Plutus.PAB.Types

Associated Types

type Rep PABError :: Type -> Type Source #

FromJSON PABError Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

parseJSON :: Value -> Parser PABError

parseJSONList :: Value -> Parser [PABError]

Pretty PABError Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

pretty :: PABError -> Doc ann

prettyList :: [PABError] -> Doc ann

ToJSON PABError Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

toJSON :: PABError -> Value

toEncoding :: PABError -> Encoding

toJSONList :: [PABError] -> Value

toEncodingList :: [PABError] -> Encoding

type Rep PABError Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep PABError = D1 ('MetaData "PABError" "Plutus.PAB.Types" "plutus-pab-1.2.0.0-LtxAAjtTYeqGloVmBPlsYv" 'False) ((((C1 ('MetaCons "FileNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FilePath)) :+: C1 ('MetaCons "ContractNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FilePath))) :+: (C1 ('MetaCons "ContractInstanceNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContractInstanceId)) :+: (C1 ('MetaCons "PABContractError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContractError)) :+: C1 ('MetaCons "WalletClientError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ClientError))))) :+: ((C1 ('MetaCons "NodeClientError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ClientError)) :+: (C1 ('MetaCons "BeamEffectError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BeamError)) :+: C1 ('MetaCons "RandomTxClientError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ClientError)))) :+: (C1 ('MetaCons "ChainIndexError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ClientError)) :+: (C1 ('MetaCons "WalletError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 WalletAPIError)) :+: C1 ('MetaCons "ContractCommandError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))) :+: (((C1 ('MetaCons "InvalidUUIDError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "OtherError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :+: (C1 ('MetaCons "EndpointCallError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NotificationError)) :+: (C1 ('MetaCons "InstanceAlreadyStopped" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContractInstanceId)) :+: C1 ('MetaCons "WalletNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Wallet))))) :+: ((C1 ('MetaCons "MissingConfigFileOption" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ContractStateNotFound" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContractInstanceId)) :+: C1 ('MetaCons "AesonDecodingError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) :+: (C1 ('MetaCons "MigrationNotDoneError" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: (C1 ('MetaCons "RemoteWalletWithMockNodeError" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TxSenderNotAvailable" 'PrefixI 'False) (U1 :: Type -> Type))))))

data DBConnection Source #

Constructors

PostgresPool (Pool Connection) 
SqlitePool (Pool Connection) 

data DbConfig Source #

Constructors

SqliteDB DbConfig 
PostgresDB DbConfig 

Instances

Instances details
Eq DbConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Show DbConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Generic DbConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Associated Types

type Rep DbConfig :: Type -> Type Source #

Default DbConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

def :: DbConfig

FromJSON DbConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

parseJSON :: Value -> Parser DbConfig

parseJSONList :: Value -> Parser [DbConfig]

ToJSON DbConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

toJSON :: DbConfig -> Value

toEncoding :: DbConfig -> Encoding

toJSONList :: [DbConfig] -> Value

toEncodingList :: [DbConfig] -> Encoding

type Rep DbConfig Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep DbConfig = D1 ('MetaData "DbConfig" "Plutus.PAB.Types" "plutus-pab-1.2.0.0-LtxAAjtTYeqGloVmBPlsYv" 'False) (C1 ('MetaCons "SqliteDB" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DbConfig)) :+: C1 ('MetaCons "PostgresDB" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DbConfig)))

takeSqliteDB :: DbConfig -> DbConfig Source #

defaultDbConfig :: DbConfig Source #

Default database config uses an in-memory sqlite database that is shared between all threads in the process.

data ChainQueryConfig Source #

Constructors

ChainIndexConfig ChainIndexConfig 
BlockfrostConfig BlockfrostConfig 

Instances

Instances details
Eq ChainQueryConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Show ChainQueryConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Generic ChainQueryConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Associated Types

type Rep ChainQueryConfig :: Type -> Type Source #

Default ChainQueryConfig Source # 
Instance details

Defined in Plutus.PAB.Types

FromJSON ChainQueryConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

parseJSON :: Value -> Parser ChainQueryConfig

parseJSONList :: Value -> Parser [ChainQueryConfig]

ToJSON ChainQueryConfig Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep ChainQueryConfig Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep ChainQueryConfig = D1 ('MetaData "ChainQueryConfig" "Plutus.PAB.Types" "plutus-pab-1.2.0.0-LtxAAjtTYeqGloVmBPlsYv" 'False) (C1 ('MetaCons "ChainIndexConfig" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ChainIndexConfig)) :+: C1 ('MetaCons "BlockfrostConfig" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BlockfrostConfig)))

data ChainQueryEnv Source #

Constructors

ChainIndexEnv ClientEnv 
BlockfrostEnv BlockfrostEnv 

data Config Source #

Instances

Instances details
Eq Config Source # 
Instance details

Defined in Plutus.PAB.Types

Show Config Source # 
Instance details

Defined in Plutus.PAB.Types

Generic Config Source # 
Instance details

Defined in Plutus.PAB.Types

Associated Types

type Rep Config :: Type -> Type Source #

Default Config Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

def :: Config

FromJSON Config Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

parseJSON :: Value -> Parser Config

parseJSONList :: Value -> Parser [Config]

ToJSON Config Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

toJSON :: Config -> Value

toEncoding :: Config -> Encoding

toJSONList :: [Config] -> Value

toEncodingList :: [Config] -> Encoding

type Rep Config Source # 
Instance details

Defined in Plutus.PAB.Types

mergeObjects :: Value -> Value -> Value Source #

newtype RequestProcessingConfig Source #

Constructors

RequestProcessingConfig 

Fields

Instances

Instances details
Eq RequestProcessingConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Show RequestProcessingConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Generic RequestProcessingConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Associated Types

type Rep RequestProcessingConfig :: Type -> Type Source #

Default RequestProcessingConfig Source # 
Instance details

Defined in Plutus.PAB.Types

FromJSON RequestProcessingConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

parseJSON :: Value -> Parser RequestProcessingConfig

parseJSONList :: Value -> Parser [RequestProcessingConfig]

ToJSON RequestProcessingConfig Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep RequestProcessingConfig Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep RequestProcessingConfig = D1 ('MetaData "RequestProcessingConfig" "Plutus.PAB.Types" "plutus-pab-1.2.0.0-LtxAAjtTYeqGloVmBPlsYv" 'True) (C1 ('MetaCons "RequestProcessingConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "requestProcessingInterval") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Second)))

data WebserverConfig Source #

Constructors

WebserverConfig 

Fields

Instances

Instances details
Eq WebserverConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Show WebserverConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Generic WebserverConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Associated Types

type Rep WebserverConfig :: Type -> Type Source #

Default WebserverConfig Source # 
Instance details

Defined in Plutus.PAB.Types

FromJSON WebserverConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

parseJSON :: Value -> Parser WebserverConfig

parseJSONList :: Value -> Parser [WebserverConfig]

ToJSON WebserverConfig Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

toJSON :: WebserverConfig -> Value

toEncoding :: WebserverConfig -> Encoding

toJSONList :: [WebserverConfig] -> Value

toEncodingList :: [WebserverConfig] -> Encoding

type Rep WebserverConfig Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep WebserverConfig = D1 ('MetaData "WebserverConfig" "Plutus.PAB.Types" "plutus-pab-1.2.0.0-LtxAAjtTYeqGloVmBPlsYv" 'False) (C1 ('MetaCons "WebserverConfig" 'PrefixI 'True) (((S1 ('MetaSel ('Just "baseUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BaseUrl) :*: S1 ('MetaSel ('Just "staticDir") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FilePath))) :*: (S1 ('MetaSel ('Just "permissiveCorsPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "endpointTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Second)))) :*: ((S1 ('MetaSel ('Just "waitStatusTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Second)) :*: S1 ('MetaSel ('Just "enableMarconi") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "certificatePath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FilePath)) :*: S1 ('MetaSel ('Just "keyPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FilePath))))))

defaultWebServerConfig :: WebserverConfig Source #

Default config for debugging.

data DevelopmentOptions Source #

Constructors

DevelopmentOptions 

Instances

Instances details
Eq DevelopmentOptions Source # 
Instance details

Defined in Plutus.PAB.Types

Show DevelopmentOptions Source # 
Instance details

Defined in Plutus.PAB.Types

Generic DevelopmentOptions Source # 
Instance details

Defined in Plutus.PAB.Types

Associated Types

type Rep DevelopmentOptions :: Type -> Type Source #

Default DevelopmentOptions Source # 
Instance details

Defined in Plutus.PAB.Types

FromJSON DevelopmentOptions Source # 
Instance details

Defined in Plutus.PAB.Types

Methods

parseJSON :: Value -> Parser DevelopmentOptions

parseJSONList :: Value -> Parser [DevelopmentOptions]

ToJSON DevelopmentOptions Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep DevelopmentOptions Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep DevelopmentOptions = D1 ('MetaData "DevelopmentOptions" "Plutus.PAB.Types" "plutus-pab-1.2.0.0-LtxAAjtTYeqGloVmBPlsYv" 'False) (C1 ('MetaCons "DevelopmentOptions" 'PrefixI 'True) (S1 ('MetaSel ('Just "pabRollbackHistory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "pabResumeFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Point)))

data Source Source #

The source of a PAB event, used for sharding of the event stream

Instances

Instances details
Eq Source Source # 
Instance details

Defined in Plutus.PAB.Types

Show Source Source # 
Instance details

Defined in Plutus.PAB.Types

toUUID :: Source -> UUID Source #

data ChainOverview Source #

Constructors

ChainOverview 

Fields

Instances

Instances details
Eq ChainOverview Source # 
Instance details

Defined in Plutus.PAB.Types

Show ChainOverview Source # 
Instance details

Defined in Plutus.PAB.Types

Generic ChainOverview Source # 
Instance details

Defined in Plutus.PAB.Types

Associated Types

type Rep ChainOverview :: Type -> Type Source #

type Rep ChainOverview Source # 
Instance details

Defined in Plutus.PAB.Types

type Rep ChainOverview = D1 ('MetaData "ChainOverview" "Plutus.PAB.Types" "plutus-pab-1.2.0.0-LtxAAjtTYeqGloVmBPlsYv" 'False) (C1 ('MetaCons "ChainOverview" 'PrefixI 'True) (S1 ('MetaSel ('Just "chainOverviewBlockchain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Blockchain) :*: (S1 ('MetaSel ('Just "chainOverviewUnspentTxsById") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map TxId CardanoTx)) :*: S1 ('MetaSel ('Just "chainOverviewUtxoIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 UtxoIndex))))

_AesonDecodingError :: Prism' PABError (Text, Text) Source #

_WalletNotFound :: Prism' PABError Wallet Source #

_EndpointCallError :: Prism' PABError NotificationError Source #

_OtherError :: Prism' PABError Text Source #

_WalletError :: Prism' PABError WalletAPIError Source #

_ChainIndexError :: Prism' PABError ClientError Source #

_RandomTxClientError :: Prism' PABError ClientError Source #

_BeamEffectError :: Prism' PABError BeamError Source #

_NodeClientError :: Prism' PABError ClientError Source #

_WalletClientError :: Prism' PABError ClientError Source #

_PABContractError :: Prism' PABError ContractError Source #

_SqlitePool :: Prism' DBConnection (Pool Connection) Source #

_PostgresPool :: Prism' DBConnection (Pool Connection) Source #