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 gas_provider::LockableTree;
pub use gas_provider::Provider as GasProvider;
pub use gas_provider::ReservableTree;
pub use gas_provider::Tree as GasTree;
Modules§
- Auxiliary implementations of the complex data structures, which manage important for the gear runtime storages. These implementations can be used in a non-wasm environment.
- Gear events additional data.
- Module contains macros that help to implement Config type for various pallets of Substrate. All used types should be in scope.
- 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 key1-key2-key3-value types and implements
TripleMapStorage
for it based on specified storage, which is aSubstrate
’sStorageNMap
. - Creates new type with specified name and value type and implements
ValueStorage
for it based on specified storage, which is aSubstrate
’sStorageValue
.
Structs§
- Active program in storage.
- Code identifier.
- Struct defines infix of memory pages storage.
- Message identifier.
- Buffer for gear page data.
- Reservation identifier.
Enums§
- Type representing converter between gas and value in different relations.
- The id of the gas lock.
- Program in different states in storage.
Traits§
- Contains various limits for the block.
- Trait that the RuntimeApi should implement in order to allow deconstruction and reconstruction to and from its components.
- Trait that is used to “delegate fee” by optionally changing the payer target (account id) for the applied call.
- A trait whose purpose is to extract the
Call
variant of an extrinsic - NOTE: Implementation of this for
u64
places bytes from idx=0.
Type Aliases§
- Type alias for gas entity.
- Page of gear page size - 16 kiB.
- Program identifier.