Construct an instance of this application configuration.
CAUTION: Creating an instance of this class automatically interprets
the runtime configuration. Because of this, any errors that are present
in the syntax of your runtime configuration must be solved before
this method gets called by the runtime.
The dApp assets configuration. This configuration object is used to
determine assets discovery information and to determine how fees are
paid for transactions issued by this dApp.
The dApp configuration object. This configuration object is used to
determine general settings of this dApp runtime including its' name,
its' main public key or scopes that are enabled for the dApp in the
backend runtime.
The dApp monitoring configuration. This configuration
object is used to determine dApp monitoring information.
The dApp network configuration. This configuration object is used to
determine communication, transport and network information.
The dApp OAuth configuration. This configuration object is used to determine communication, transport and processes that are used to connect and integrate with custom data providers.
The dApp payouts configuration. This configuration object is used to
determine how payouts are created for this dApp and determines the
source of tokens.
Note that this configuration may be disabled in the cases where
the payout scope is disabled.
The dApp processor configuration. This configuration object is used to
determine how information is processed into operations for this dApp.
The dApp security configuration. This configuration object is used to
determine communication, transport and processes are encrypted in scope
that are critical to the security of a runtime.
The dApp social platforms configuration. This configuration object is
used to determine social platforms are integrated to share content.
The dApp statistics configuration. This configuration object is used to
determine how aggregations are performed and stored in the database to
enable much faster aggregated data access (e.g. leaderboards).
The dApp transport configuration. This configuration
is used to determine dApp monitoring transport information.
The dApp database module using {@link MongooseModule} from nestjs.
This object is not available outside of this class and is defined
to limit the number of instances created which open a request to
connect to the database.
Storage of a singular database adapter permits to define a
singleton pattern around database connection and query execution.
The dApp event emitter module using {@link EventEmitterModule} from nestjs.
This object is not available outside of this class and is defined
to limit the number of instances created which serves as the application's
internal event emitter/handler.
Storage of a singular event emitter adapter permits to define a
singleton pattern around event emitters and event listeners.
The dApp mailer module using {@link MailerModule} from @nestjs-modules/mailer
.
This object is not available outside of this class and is defined to limit
the number of instances created which serves as the application's internal
and public mailer.
Storage of a singular mailing adapter permits to define a singleton
pattern around mailer services for public and internal mailing.
This static helper getter method returns the curently configured dApp name as is used in multiple places of this runtime.
This method validates the configuration objects of different scopes in the dApp configuration object.
The full runtime configuration.
Returns true given valid configuration.
This method validates the capacity to connect to the database
using the dApp configuration object.
CAUTION: this method opens the database connection, which requires
a database backend to be running as well, i.e. please start running
the database server before this method is called.
The full runtime configuration.
Returns true given valid configuration.
This method is used internally to validate the configuration of the DiscoveryModule.
The full runtime configuration.
Returns true given valid configuration.
This method validates the capacity to discover assets on the network using the dApp configuration object.
The full runtime configuration.
Returns true given valid configuration.
This method validates the presence of mandatory configuration fields in the dApp configuration object.
The full runtime configuration.
Returns true given valid configuration.
This method validates the capacity to determine network connection using the dApp configuration object.
The full runtime configuration.
Returns true given valid configuration.
This method is used internally to validate the configuration of the {@link OAuthModule:PROCESSOR}.
The full runtime configuration.
Returns true given valid configuration.
This method is used internally to validate the configuration of the PayoutModule.
The full runtime configuration.
Returns true given valid configuration.
This method is used internally to validate the configuration of the ProcessorModule.
The full runtime configuration.
Returns true given valid configuration.
This method validates the security settings that are in place using the dApp configuration object.
The full runtime configuration.
Returns true given valid configuration.
This static helper method returns the configuration section value based on the provided section name.
The config section name e.g. "dapp"
, "statistics"
.
This method initializes the internal database connection adapter.
You should not have to call this method manually, it is used inside
Schedulers and Scopes to perform the
configuration of database adapters.
CAUTION: this method opens the database connection, which requires
a database backend to be running as well, i.e. please start running
the database server before this method is called.
A @nestjs/mongoose
MongooseModule object.
This method returns the database URL which can be used to connect to the mongo server.
This method initializes the internal event emitter adapter.
You should not have to call this method manually, it is used inside
Schedulers and Scopes to perform the
configuration of event emitter adapters.
This static helper method returns all the configuration loaders. This
method does not interpret the content of configuration objects.
This method is used during the nestjs initialization process inside
the private constructor of ScopeFactory.
)[]} An array of initializer functions.
This method initializes the internal mailer module.
You should not have to call this method manually, it is used inside
EmailNotifierModule to perform the configuration of mailers.
Generated using TypeDoc
This file is part of dHealth dApps Framework shared under LGPL-3.0 Copyright (C) 2022-present dHealth Network, All rights reserved.
dHealth dApps Framework
Backend
dHealth Network devs@dhealth.foundation
LGPL-3.0