Crate gear_common
source ·Re-exports
pub use code_storage::CodeStorage;pub use code_storage::Error as CodeStorageError;pub use program_storage::Error as ProgramStorageError;pub use program_storage::ProgramStorage;pub use paused_program_storage::PausedProgramStorage;pub use gas_provider::LockableTree;pub use gas_provider::Provider as GasProvider;pub use gas_provider::ReservableTree;pub use gas_provider::Tree as GasTree;
Modules
- Gear events additional data.
- Module for scheduler implementation.
- Gear’s storage API module.
Macros
- Same as
wrap_storage_map!, but with length type parameter to auto-implCountedtrait ofgear_commonstorage primitives. - Same as
wrap_storage_double_map!, but with extra implementations ofCountedByKey,IterableMapandIterableByKeyMapover double map values. - Creates new type with specified name and key1-key2-value types and implements
DoubleMapStoragefor it based on specified storage, which is aSubstrate’sStorageDoubleMap. - Creates new type with specified name and key-value types and implements
MapStoragefor it based on specified storage, which is aSubstrate’sStorageMap. - Creates new type with specified name and value type and implements
ValueStoragefor it based on specified storage, which is aSubstrate’sStorageValue.
Structs
Enums
- Type representing converter between gas and value in different relations.
- The id of the gas lock.
- Enumeration contains variants for program state.
Traits
- Contains various limits for the block.
- A trait whose purpose is to extract the
Callvariant of an extrinsic