Function createBlockGenerateContext
- createBlockGenerateContext(params: {
assets?: WritableBlockAssets;
chainID?: Buffer;
finalizedHeight?: number;
getMethodContext?: (() => MethodContext);
getOffchainStore?: ((moduleID: Buffer, subStorePrefix: Buffer) => SubStore);
getStore?: ((moduleID: Buffer, storePrefix: Buffer) => ImmutableSubStore);
header: BlockHeader;
logger?: Logger;
}): InsertAssetContext
-
Parameters
-
params: {
assets?: WritableBlockAssets;
chainID?: Buffer;
finalizedHeight?: number;
getMethodContext?: (() => MethodContext);
getOffchainStore?: ((moduleID: Buffer, subStorePrefix: Buffer) => SubStore);
getStore?: ((moduleID: Buffer, storePrefix: Buffer) => ImmutableSubStore);
header: BlockHeader;
logger?: Logger;
}
-
Optional
assets?: WritableBlockAssets
-
Optional
chainID?: Buffer
-
Optional
finalizedHeight?: number
-
Optional
getMethodContext?: (() => MethodContext)
-
Optional
getOffchainStore?: ((moduleID: Buffer, subStorePrefix: Buffer) => SubStore)
-
- (moduleID: Buffer, subStorePrefix: Buffer): SubStore
-
Parameters
-
moduleID: Buffer
-
subStorePrefix: Buffer
Returns SubStore
-
Optional
getStore?: ((moduleID: Buffer, storePrefix: Buffer) => ImmutableSubStore)
-
- (moduleID: Buffer, storePrefix: Buffer): ImmutableSubStore
-
Parameters
-
moduleID: Buffer
-
storePrefix: Buffer
Returns ImmutableSubStore
-
-
Optional
logger?: Logger