Index

Interfaces

Functions


Functions

createFunction

▸ createFunction(section: Text | string, method: Text | string, meta: StorageFunctionMetadata, options?: CreateItemOptions): StorageFunction

Defined in utils/createFunction.ts:26

From the schema of a function in the module's storage, generate the function that will return the correct storage key.

Parameters:

Name Type Default value Description
section Text | string -
method Text | string -
meta StorageFunctionMetadata -
Default value options CreateItemOptions {} Additional options when creating the function. These options are not known at runtime (from state_getMetadata), they need to be supplied by us manually at compile time.

Returns: StorageFunction


Last Updated: 2/25/2019, 4:39:16 PM