DocsReference@proto-kit/apiClassesBatchStorageResolver

@proto-kit/apiDocs


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

BatchStorageResolver

Overrides

GraphqlModule.constructor

Defined in

packages/api/src/graphql/modules/BatchStorageResolver.ts:38

Properties

currentConfig

protected currentConfig: undefined | NoConfig

Store the config separately, so that we can apply additional checks when retrieving it via the getter

Inherited from

GraphqlModule.currentConfig

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

GraphqlModule.config

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

GraphqlModule.create

Defined in

packages/common/dist/config/ConfigurableModule.d.ts:20