CatapultServer  v0.5.0.1 (Elephant)
ValidatorContext.h
Go to the documentation of this file.
1 
21 #pragma once
25 #include "catapult/types.h"
26 #include <cstdint>
27 #include <limits>
28 
29 namespace catapult { namespace validators {
30 
33  public:
36  catapult::Height height,
37  Timestamp blockTime,
38  const model::NetworkInfo& network,
39  const model::ResolverContext& resolvers,
40  const cache::ReadOnlyCatapultCache& cache)
41  : Height(height)
42  , BlockTime(blockTime)
43  , Network(network)
44  , Resolvers(resolvers)
45  , Cache(cache)
46  {}
47 
48  public:
51 
54 
57 
60 
63  };
64 }}
ResolverContext.h
catapult::validators::ValidatorContext::Height
const catapult::Height Height
Current height.
Definition: ValidatorContext.h:50
catapult::validators::ValidatorContext::Cache
const cache::ReadOnlyCatapultCache & Cache
Catapult cache.
Definition: ValidatorContext.h:62
catapult::validators::ValidatorContext::ValidatorContext
ValidatorContext(catapult::Height height, Timestamp blockTime, const model::NetworkInfo &network, const model::ResolverContext &resolvers, const cache::ReadOnlyCatapultCache &cache)
Creates a validator context around a height, blockTime, network, resolvers and cache.
Definition: ValidatorContext.h:35
catapult::validators::ValidatorContext::Network
const model::NetworkInfo Network
Network info.
Definition: ValidatorContext.h:56
catapult::model::NetworkInfo
Information about a network.
Definition: NetworkInfo.h:54
catapult::model::ResolverContext
Context used to resolve unresolved types.
Definition: ResolverContext.h:28
catapult::validators::ValidatorContext::BlockTime
const Timestamp BlockTime
Current block time.
Definition: ValidatorContext.h:53
catapult::utils::BaseValue
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
catapult::validators::ValidatorContext
Contextual information passed to stateful validators.
Definition: ValidatorContext.h:32
NetworkInfo.h
ReadOnlyCatapultCache.h
types.h
catapult::validators::ValidatorContext::Resolvers
const model::ResolverContext Resolvers
Alias resolvers.
Definition: ValidatorContext.h:59
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::cache::ReadOnlyCatapultCache
A read-only overlay on top of a catapult cache.
Definition: ReadOnlyCatapultCache.h:27