@statechannels/server-wallet

server-wallet package

Classes

ClassDescription
DBAdminA collection of static utility methods for db admin
EngineA single- or multi-threaded Nitro Engine
MultiThreadedEngineA multi-threaded Nitro engine
SingleThreadedEngineA single-threaded Nitro engine
Wallet

Functions

FunctionDescription
extractDBConfigFromEngineConfig(engineConfig)
getDatabaseConnectionConfig(config)
hasNewObjective(response)
overwriteConfigWithDatabaseConnection(config, databaseConnectionConfig)
validateEngineConfig(config)

Interfaces

InterfaceDescription
EngineInterface
OptionalEngineConfigAdditional configuration options for the engine that are not required.

Variables

VariableDescription
DEFAULT_DB_NAME
DEFAULT_DB_USER
defaultChainServiceConfiguration
defaultConfigThese are the default values that will be used by the server wallet if not overidden in the provided config
defaultDatabaseConfiguration
defaultLoggingConfigurationLogging and Metrics config
defaultMetricsConfiguration
defaultTestConfig
defaultTestNetworkConfiguration

Type Aliases

Type AliasDescription
ChainServiceConfigurationChain service configuration options
DatabaseConfigurationThe fully defined database configuration
DatabaseConnectionConfigurationEither a connection string or a config object with the dbName specified
DatabasePoolConfigurationDatabase pool size options
DeepPartial
EngineConfigThis is a fully filled out config. All Required and Optional fields are defined.
EngineEvent
EnsureObjectiveFailed
IncomingEngineConfigThis is the config accepted by the engine create method. It is the required config properties plus additional optional properties
InternalErrorThis is the catch-all error that will be returned if some error is thrown and not handled.
LoggingConfigurationLogging configuration options
MetricsConfigurationMetrics configuration options
MultipleChannelOutput
NetworkConfigurationVarious network configuration options
ObjectiveDoneResult
ObjectiveError
ObjectiveResultThis is what is returned for any objective related API call
ObjectiveSuccess
OptionalConnectionConfigurationOptional database config properties.
OptionalDatabaseConfiguration
Outgoing
Output
RequiredConnectionConfigurationEither a database connection string or a config object specifying the database name
RequiredDatabaseConfigurationThe minimum required database configuration that must be provided
RequiredEngineConfigThe minimum required configuration to use the engine.
RetryOptions
SingleChannelOutput
SyncObjectiveResult