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
- takeSqliteDB :: DbConfig -> DbConfig
- takePostgresDB :: DbConfig -> DbConfig
- defaultDbConfig :: DbConfig
- data ChainQueryConfig
- data ChainQueryEnv
- getChainIndexEnv :: ChainQueryEnv -> ClientEnv
- getBlockfrostEnv :: ChainQueryEnv -> BlockfrostEnv
- data Config = Config { }
- mergeObjects :: Value -> Value -> Value
- defaultConfig :: Config
- newtype RequestProcessingConfig = RequestProcessingConfig { }
- defaultRequestProcessingConfig :: RequestProcessingConfig
- data WebserverConfig = WebserverConfig { }
- defaultWebServerConfig :: WebserverConfig
- data DevelopmentOptions = DevelopmentOptions { }
- 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 ) |
Instances
Eq DbConfig Source # | |
Show DbConfig Source # | |
Generic DbConfig Source # | |
ToJSON DbConfig Source # | |
FromJSON DbConfig Source # | |
Default DbConfig Source # | |
Defined in Plutus.PAB.Types |
|
type Rep DbConfig Source # | |
Defined in Plutus.PAB.Types
type
Rep
DbConfig
=
D1
('
MetaData
"DbConfig" "Plutus.PAB.Types" "plutus-pab-1.2.0.0-CtfsFiD4ohhEkbPm9mkCAB" '
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 #
Instances
Instances
newtype RequestProcessingConfig Source #
RequestProcessingConfig | |
|
Instances
data WebserverConfig Source #
WebserverConfig | |
|
Instances
defaultWebServerConfig :: WebserverConfig Source #
Default config for debugging.
data DevelopmentOptions Source #
Instances
The source of a PAB event, used for sharding of the event stream
Instances
data ChainOverview Source #
ChainOverview | |
|
Instances
mkChainOverview :: Blockchain -> ChainOverview Source #
_WalletNotFound :: Prism' PABError Wallet Source #
_EndpointCallError :: Prism' PABError NotificationError Source #
_WalletError :: Prism' PABError WalletAPIError Source #
_PABContractError :: Prism' PABError ContractError Source #
_SqlitePool :: Prism' DBConnection ( Pool Connection ) Source #
_PostgresPool :: Prism' DBConnection ( Pool Connection ) Source #