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
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.
code_storage
event
Gear events additional data.
gas_provider
pallet_tests
Module contains macros that help to implement Config type for various pallets of Substrate. All used types should be in scope.
program_storage
scheduler
Module for scheduler implementation.
storage
Gear’s storage API module.

Macros§

impl_pallet_authorship
impl_pallet_authorship_inner
impl_pallet_balances
impl_pallet_balances_inner
impl_pallet_staking
impl_pallet_staking_inner
impl_pallet_system
impl_pallet_system_inner
impl_pallet_timestamp
wrap_counted_storage_map
Same as wrap_storage_map!, but with length type parameter to auto-impl Counted trait of gear_common storage primitives.
wrap_extended_storage_double_map
Same as wrap_storage_double_map!, but with extra implementations of CountedByKey, IterableMap and IterableByKeyMap over double map values.
wrap_storage_double_map
Creates new type with specified name and key1-key2-value types and implements DoubleMapStorage for it based on specified storage, which is a Substrate’s StorageDoubleMap.
wrap_storage_map
Creates new type with specified name and key-value types and implements MapStorage for it based on specified storage, which is a Substrate’s StorageMap.
wrap_storage_triple_map
Creates new type with specified name and key1-key2-key3-value types and implements TripleMapStorage for it based on specified storage, which is a Substrate’s StorageNMap.
wrap_storage_value
Creates new type with specified name and value type and implements ValueStorage for it based on specified storage, which is a Substrate’s StorageValue.

Structs§

ActiveProgram
Active program in storage.
CodeId
Code identifier.
CodeMetadata
MemoryInfix
Struct defines infix of memory pages storage.
MessageId
Message identifier.
PageBuf
Buffer for gear page data.
ReservationId
Reservation identifier.

Enums§

GasMultiplier
Type representing converter between gas and value in different relations.
LockId
The id of the gas lock.
Program
Program in different states in storage.

Traits§

BlockLimiter
Contains various limits for the block.
Deconstructable
Trait that the RuntimeApi should implement in order to allow deconstruction and reconstruction to and from its components.
DelegateFee
Trait that is used to “delegate fee” by optionally changing the payer target (account id) for the applied call.
ExtractCall
A trait whose purpose is to extract the Call variant of an extrinsic
Origin
NOTE: Implementation of this for u64 places bytes from idx=0.
QueueRunner

Type Aliases§

Gas
Type alias for gas entity.
GearPage
Page of gear page size - 16 kiB.
ProgramId
Program identifier.