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::LockId;
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-implCounted
trait ofgear_common
storage primitives. - Same as
wrap_storage_double_map!
, but with extra implementations ofCountedByKey
,IterableMap
andIterableByKeyMap
over double map values. - Creates new type with specified name and key1-key2-value types and implements
DoubleMapStorage
for it based on specified storage, which is aSubstrate
’sStorageDoubleMap
. - Creates new type with specified name and key-value types and implements
MapStorage
for it based on specified storage, which is aSubstrate
’sStorageMap
. - Creates new type with specified name and value type and implements
ValueStorage
for it based on specified storage, which is aSubstrate
’sStorageValue
.
Structs
Enums
- Enumeration contains variants for program state.
Traits
- Contains various limits for the block.
- A trait whose purpose is to extract the
Call
variant of an extrinsic