mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 05:51:02 +00:00
Docs Typo Fixes (#534)
This commit is contained in:
committed by
Benjamin Kampmann
parent
4e95cefab9
commit
6d6e7d9049
@@ -32,7 +32,7 @@ use DatabaseSettings;
|
||||
/// Number of columns in the db. Must be the same for both full && light dbs.
|
||||
/// Otherwise RocksDb will fail to open database && check its type.
|
||||
pub const NUM_COLUMNS: u32 = 7;
|
||||
/// Meta column. Thes set of keys in the column is shared by full && light storages.
|
||||
/// Meta column. The set of keys in the column is shared by full && light storages.
|
||||
pub const COLUMN_META: Option<u32> = Some(0);
|
||||
|
||||
/// Keys of entries in COLUMN_META.
|
||||
|
||||
@@ -85,7 +85,7 @@ pub trait SyncProvider<B: BlockT>: Send + Sync {
|
||||
pub trait TransactionPool<B: BlockT>: Send + Sync {
|
||||
/// Get transactions from the pool that are ready to be propagated.
|
||||
fn transactions(&self) -> Vec<(B::Hash, B::Extrinsic)>;
|
||||
/// Import a transction into the pool.
|
||||
/// Import a transaction into the pool.
|
||||
fn import(&self, transaction: &B::Extrinsic) -> Option<B::Hash>;
|
||||
/// Notify the pool about transactions broadcast.
|
||||
fn on_broadcasted(&self, propagations: HashMap<B::Hash, Vec<String>>);
|
||||
|
||||
@@ -43,9 +43,9 @@ impl<'a> ::core::fmt::Display for HexDisplay<'a> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Simple trait to transferm various types to `&[u8]`
|
||||
/// Simple trait to transform various types to `&[u8]`
|
||||
pub trait AsBytesRef {
|
||||
/// Transferm `self` into `&[u8]`.
|
||||
/// Transform `self` into `&[u8]`.
|
||||
fn as_bytes_ref(&self) -> &[u8];
|
||||
}
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ pub struct Entry {
|
||||
#[derive(Clone, PartialEq, Eq, Encode, Decode)]
|
||||
#[cfg_attr(feature = "std", derive(Debug))]
|
||||
pub struct EnvironmentDefinition {
|
||||
/// Vector of all entries in the environment defintion.
|
||||
/// Vector of all entries in the environment definition.
|
||||
pub entries: Vec<Entry>,
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ pub const ERR_MODULE: u32 = -1i32 as u32;
|
||||
/// For FFI purposes.
|
||||
pub const ERR_OUT_OF_BOUNDS: u32 = -2i32 as u32;
|
||||
|
||||
/// Execution error occured (typically trap).
|
||||
/// Execution error occurred (typically trap).
|
||||
///
|
||||
/// For FFI purposes.
|
||||
pub const ERR_EXECUTION: u32 = -3i32 as u32;
|
||||
|
||||
@@ -57,7 +57,7 @@ fn full_key<M: StorageDoubleMap + ?Sized>(k1: M::Key1, k2: M::Key2) -> Vec<u8> {
|
||||
/// The first part is a XX hash of a concatenation of the `PREFIX` and `Key1`. And the second part
|
||||
/// is a blake2 hash of a `Key2`.
|
||||
///
|
||||
/// Blake2 is used for `Key2` is because it will be used as a for a key for contract's storage and
|
||||
/// Blake2 is used for `Key2` is because it will be used as a key for contract's storage and
|
||||
/// thus will be susceptible for a untrusted input.
|
||||
pub trait StorageDoubleMap {
|
||||
type Key1: Codec;
|
||||
|
||||
@@ -72,7 +72,6 @@ pub trait HashDb {
|
||||
fn get(&self, key: &Self::Hash) -> Result<Option<DBValue>, Self::Error>;
|
||||
}
|
||||
|
||||
/// Error type.
|
||||
/// Error type.
|
||||
pub enum Error<E: fmt::Debug> {
|
||||
/// Database backend error.
|
||||
|
||||
Reference in New Issue
Block a user