@proto-kit/api • Docs
Documentation / @proto-kit/api / BatchStorageResolver
Class: BatchStorageResolver
Used by various module sub-types that may need to be configured
Extends
Constructors
new BatchStorageResolver()
new BatchStorageResolver(
batchStorage,blockResolver):BatchStorageResolver
Parameters
• batchStorage: BatchStorage
• blockResolver: BlockResolver
Returns
Overrides
Defined in
packages/api/src/graphql/modules/BatchStorageResolver.ts:38
Properties
currentConfig
protectedcurrentConfig:undefined|NoConfig
Store the config separately, so that we can apply additional checks when retrieving it via the getter
Inherited from
Defined in
packages/common/dist/config/ConfigurableModule.d.ts:17
Accessors
config
Get Signature
get config():
Config
Returns
Config
Set Signature
set config(
config):void
Parameters
• config: Config
Returns
void
Inherited from
Defined in
packages/common/dist/config/ConfigurableModule.d.ts:18
Methods
batches()
batches(
height):Promise<undefined|BatchModel>
Parameters
• height: undefined | number
Returns
Promise<undefined | BatchModel>
Defined in
packages/api/src/graphql/modules/BatchStorageResolver.ts:51
create()
create(
childContainerProvider):void
Parameters
• childContainerProvider: ChildContainerProvider
Returns
void
Inherited from
Defined in
packages/common/dist/config/ConfigurableModule.d.ts:20