6 #ifndef KAGOME_APP_CONFIGURATION_HPP 7 #define KAGOME_APP_CONFIGURATION_HPP 13 #include <boost/asio/ip/tcp.hpp> 14 #include <boost/filesystem.hpp> 15 #include <libp2p/multi/multiaddress.hpp> 35 static_assert(kAbsolutMinBlocksInResponse <= kAbsolutMaxBlocksInResponse,
36 "Check max and min page bounding values!");
59 std::string runtime_hash)
const = 0;
65 virtual boost::filesystem::path
chainPath(std::string chain_id)
const = 0;
71 std::string chain_id)
const = 0;
77 std::string chain_id)
const = 0;
82 virtual const std::optional<crypto::Ed25519PrivateKey> &
nodeKey()
const = 0;
87 virtual const std::optional<std::string> &
nodeKeyFile()
const = 0;
97 virtual uint16_t
p2pPort()
const = 0;
102 virtual uint32_t
outPeers()
const = 0;
107 virtual uint32_t
inPeers()
const = 0;
122 virtual const std::vector<libp2p::multi::Multiaddress> &
bootNodes()
128 virtual const std::vector<libp2p::multi::Multiaddress> &
listenAddresses()
134 virtual const std::vector<libp2p::multi::Multiaddress> &
publicAddresses()
140 virtual const boost::asio::ip::tcp::endpoint &
rpcHttpEndpoint()
const = 0;
145 virtual const boost::asio::ip::tcp::endpoint &
rpcWsEndpoint()
const = 0;
166 virtual const std::vector<std::string> &
log()
const = 0;
187 virtual const std::string &
nodeName()
const = 0;
193 virtual const std::string &
nodeVersion()
const = 0;
204 virtual const std::vector<telemetry::TelemetryEndpoint>
241 virtual std::optional<primitives::BlockId>
recoverState()
const = 0;
258 #endif // KAGOME_APP_CONFIGURATION_HPP virtual OffchainWorkerMode offchainWorkerMode() const =0
virtual bool isTelemetryEnabled() const =0
virtual boost::filesystem::path chainPath(std::string chain_id) const =0
virtual uint32_t outPeers() const =0
virtual const boost::asio::ip::tcp::endpoint & openmetricsHttpEndpoint() const =0
virtual boost::filesystem::path databasePath(std::string chain_id) const =0
virtual std::optional< primitives::BlockId > recoverState() const =0
virtual uint32_t inPeersLight() const =0
virtual const std::vector< libp2p::multi::Multiaddress > & listenAddresses() const =0
virtual uint32_t inPeers() const =0
virtual boost::filesystem::path runtimeCachePath(std::string runtime_hash) const =0
virtual network::Roles roles() const =0
static constexpr uint32_t kAbsolutMinBlocksInResponse
virtual const std::vector< telemetry::TelemetryEndpoint > & telemetryEndpoints() const =0
virtual bool purgeWavmCache() const =0
virtual bool useWavmCache() const =0
virtual uint16_t p2pPort() const =0
virtual const std::optional< crypto::Ed25519PrivateKey > & nodeKey() const =0
virtual boost::filesystem::path keystorePath(std::string chain_id) const =0
virtual bool isRunInDevMode() const =0
virtual ~AppConfiguration()=default
virtual boost::filesystem::path chainSpecPath() const =0
virtual bool subcommandChainInfo() const =0
virtual const network::PeeringConfig & peeringConfig() const =0
virtual int32_t luckyPeers() const =0
static constexpr uint32_t kAbsolutMaxBlocksInResponse
virtual const std::vector< std::string > & log() const =0
virtual const std::string & nodeVersion() const =0
virtual std::chrono::seconds getRandomWalkInterval() const =0
virtual bool isOffchainIndexingEnabled() const =0
static constexpr uint32_t kNodeNameMaxLength
virtual uint32_t maxBlocksInResponse() const =0
virtual bool shouldSaveNodeKey() const =0
virtual SyncMethod syncMethod() const =0
virtual uint32_t maxWsConnections() const =0
virtual const boost::asio::ip::tcp::endpoint & rpcHttpEndpoint() const =0
virtual StorageBackend storageBackend() const =0
virtual const boost::asio::ip::tcp::endpoint & rpcWsEndpoint() const =0
virtual const std::string & nodeName() const =0
virtual RuntimeExecutionMethod runtimeExecMethod() const =0
virtual boost::filesystem::path runtimeCacheDirPath() const =0
virtual const std::vector< libp2p::multi::Multiaddress > & bootNodes() const =0
virtual std::optional< std::string_view > devMnemonicPhrase() const =0
virtual const std::vector< libp2p::multi::Multiaddress > & publicAddresses() const =0
virtual const std::optional< std::string > & nodeKeyFile() const =0