Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data PABError
- = FileNotFound FilePath
- | ContractNotFound FilePath
- | ContractInstanceNotFound ContractInstanceId
- | PABContractError ContractError
- | WalletClientError ClientError
- | NodeClientError ClientError
- | BeamEffectError BeamError
- | RandomTxClientError ClientError
- | ChainIndexError ClientError
- | WalletError WalletAPIError
- | ContractCommandError Int Text
- | InvalidUUIDError Text
- | OtherError Text
- | EndpointCallError NotificationError
- | InstanceAlreadyStopped ContractInstanceId
- | WalletNotFound Wallet
- | MissingConfigFileOption
- | ContractStateNotFound ContractInstanceId
- | AesonDecodingError Text Text
- | MigrationNotDoneError Text
- | RemoteWalletWithMockNodeError
- | TxSenderNotAvailable
- data DBConnection
- = PostgresPool (Pool Connection)
- | SqlitePool (Pool Connection)
- data DbConfig
- = SqliteDB DbConfig
- | PostgresDB DbConfig
- takeSqliteDB :: DbConfig -> DbConfig
- takePostgresDB :: DbConfig -> DbConfig
- defaultDbConfig :: DbConfig
- data ChainQueryConfig
- = ChainIndexConfig ChainIndexConfig
- | BlockfrostConfig BlockfrostConfig
- data ChainQueryEnv
- = ChainIndexEnv ClientEnv
- | BlockfrostEnv BlockfrostEnv
- getChainIndexEnv :: ChainQueryEnv -> ClientEnv
- getBlockfrostEnv :: ChainQueryEnv -> BlockfrostEnv
- data Config = Config {}
- mergeObjects :: Value -> Value -> Value
- defaultConfig :: Config
- newtype RequestProcessingConfig = RequestProcessingConfig {
- requestProcessingInterval :: Second
- defaultRequestProcessingConfig :: RequestProcessingConfig
- data WebserverConfig = WebserverConfig {
- baseUrl :: BaseUrl
- staticDir :: Maybe FilePath
- permissiveCorsPolicy :: Bool
- endpointTimeout :: Maybe Second
- waitStatusTimeout :: Maybe Second
- enableMarconi :: Bool
- certificatePath :: Maybe FilePath
- keyPath :: Maybe FilePath
- defaultWebServerConfig :: WebserverConfig
- data DevelopmentOptions = DevelopmentOptions {
- pabRollbackHistory :: Maybe Int
- pabResumeFrom :: Point
- defaultDevelopmentOptions :: DevelopmentOptions
- data Source
- toUUID :: Source -> UUID
- data ChainOverview = ChainOverview {
- chainOverviewBlockchain :: Blockchain
- chainOverviewUnspentTxsById :: Map TxId CardanoTx
- chainOverviewUtxoIndex :: UtxoIndex
- mkChainOverview :: Blockchain -> ChainOverview
- _TxSenderNotAvailable :: Prism' PABError ()
- _RemoteWalletWithMockNodeError :: Prism' PABError ()
- _MigrationNotDoneError :: Prism' PABError Text
- _AesonDecodingError :: Prism' PABError (Text, Text)
- _ContractStateNotFound :: Prism' PABError ContractInstanceId
- _MissingConfigFileOption :: Prism' PABError ()
- _WalletNotFound :: Prism' PABError Wallet
- _InstanceAlreadyStopped :: Prism' PABError ContractInstanceId
- _EndpointCallError :: Prism' PABError NotificationError
- _OtherError :: Prism' PABError Text
- _InvalidUUIDError :: Prism' PABError Text
- _ContractCommandError :: Prism' PABError (Int, Text)
- _WalletError :: Prism' PABError WalletAPIError
- _ChainIndexError :: Prism' PABError ClientError
- _RandomTxClientError :: Prism' PABError ClientError
- _BeamEffectError :: Prism' PABError BeamError
- _NodeClientError :: Prism' PABError ClientError
- _WalletClientError :: Prism' PABError ClientError
- _PABContractError :: Prism' PABError ContractError
- _ContractInstanceNotFound :: Prism' PABError ContractInstanceId
- _ContractNotFound :: Prism' PABError FilePath
- _FileNotFound :: Prism' PABError FilePath
- _SqlitePool :: Prism' DBConnection (Pool Connection)
- _PostgresPool :: Prism' DBConnection (Pool Connection)
Documentation
FileNotFound FilePath | |
ContractNotFound FilePath | |
ContractInstanceNotFound ContractInstanceId | |
PABContractError ContractError | |
WalletClientError ClientError | |
NodeClientError ClientError | |
BeamEffectError BeamError | |
RandomTxClientError ClientError | |
ChainIndexError ClientError | |
WalletError WalletAPIError | |
ContractCommandError Int Text | |
InvalidUUIDError Text | |
OtherError Text | |
EndpointCallError NotificationError | |
InstanceAlreadyStopped ContractInstanceId | Attempt to stop the instance failed because it was not running |
WalletNotFound Wallet | |
MissingConfigFileOption | |
ContractStateNotFound ContractInstanceId | |
AesonDecodingError Text Text | |
MigrationNotDoneError Text | |
RemoteWalletWithMockNodeError | |
TxSenderNotAvailable |
Instances
data DBConnection Source #
PostgresPool (Pool Connection) | |
SqlitePool (Pool Connection) |
SqliteDB DbConfig | |
PostgresDB DbConfig |
Instances
Eq DbConfig Source # | |
Show DbConfig Source # | |
Generic DbConfig Source # | |
Default DbConfig Source # | |
Defined in Plutus.PAB.Types | |
FromJSON DbConfig Source # | |
Defined in Plutus.PAB.Types parseJSON :: Value -> Parser DbConfig parseJSONList :: Value -> Parser [DbConfig] | |
ToJSON DbConfig Source # | |
Defined in Plutus.PAB.Types toEncoding :: DbConfig -> Encoding toJSONList :: [DbConfig] -> Value toEncodingList :: [DbConfig] -> Encoding | |
type Rep DbConfig Source # | |
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 #
takePostgresDB :: 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 #
ChainIndexConfig ChainIndexConfig | |
BlockfrostConfig BlockfrostConfig |
Instances
data ChainQueryEnv Source #
ChainIndexEnv ClientEnv | |
BlockfrostEnv BlockfrostEnv |
getChainIndexEnv :: ChainQueryEnv -> ClientEnv Source #
getBlockfrostEnv :: ChainQueryEnv -> BlockfrostEnv Source #
Instances
mergeObjects :: Value -> Value -> Value Source #
newtype RequestProcessingConfig Source #
RequestProcessingConfig | |
|
Instances
data WebserverConfig Source #
WebserverConfig | |
|
Instances
defaultWebServerConfig :: WebserverConfig Source #
Default config for debugging.
data DevelopmentOptions Source #
DevelopmentOptions | |
|
Instances
The source of a PAB event, used for sharding of the event stream
Instances
data ChainOverview Source #
ChainOverview | |
|
Instances
mkChainOverview :: Blockchain -> ChainOverview Source #
_TxSenderNotAvailable :: Prism' PABError () Source #
_RemoteWalletWithMockNodeError :: Prism' PABError () Source #
_MigrationNotDoneError :: Prism' PABError Text Source #
_AesonDecodingError :: Prism' PABError (Text, Text) Source #
_ContractStateNotFound :: Prism' PABError ContractInstanceId Source #
_MissingConfigFileOption :: Prism' PABError () Source #
_WalletNotFound :: Prism' PABError Wallet Source #
_InstanceAlreadyStopped :: Prism' PABError ContractInstanceId Source #
_EndpointCallError :: Prism' PABError NotificationError Source #
_OtherError :: Prism' PABError Text Source #
_InvalidUUIDError :: Prism' PABError Text Source #
_ContractCommandError :: Prism' PABError (Int, 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 #
_ContractNotFound :: Prism' PABError FilePath Source #
_FileNotFound :: Prism' PABError FilePath Source #
_SqlitePool :: Prism' DBConnection (Pool Connection) Source #
_PostgresPool :: Prism' DBConnection (Pool Connection) Source #