Package org.polkadot.type.storage
Class CreateFunction
- java.lang.Object
-
- org.polkadot.type.storage.CreateFunction
-
public class CreateFunction extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateFunction.CreateItemOptions
-
Constructor Summary
Constructors Constructor Description CreateFunction()
-
Method Summary
Modifier and Type Method Description static StorageKey.StorageFunctioncreateFunction(java.lang.String section, java.lang.String method, Modules.StorageFunctionMetadata meta, boolean isUnhashed, java.lang.String key)From the schema of a function in the module's storage, generate the function that will return the correct storage key.
-
-
-
Method Detail
-
createFunction
public static StorageKey.StorageFunction createFunction(java.lang.String section, java.lang.String method, Modules.StorageFunctionMetadata meta, boolean isUnhashed, java.lang.String key)
From the schema of a function in the module's storage, generate the function that will return the correct storage key.- Parameters:
schema- - The function's definition schema to create the function from. The schema is taken from state_getMetadata.options- - 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.
-
-