fp_rpc

Trait RuntimeStorageOverride

Source
pub trait RuntimeStorageOverride<B: BlockT, C>: Send + Sync {
    // Required methods
    fn is_enabled() -> bool;
    fn set_overlayed_changes(
        client: &C,
        overlayed_changes: &mut OverlayedChanges<HashingFor<B>>,
        block: B::Hash,
        version: u32,
        address: Address,
        balance: Option<U256>,
        nonce: Option<U256>,
    );
    fn into_account_id_bytes(address: Address) -> Vec<u8> ;
}

Required Methods§

Source

fn is_enabled() -> bool

Source

fn set_overlayed_changes( client: &C, overlayed_changes: &mut OverlayedChanges<HashingFor<B>>, block: B::Hash, version: u32, address: Address, balance: Option<U256>, nonce: Option<U256>, )

Source

fn into_account_id_bytes(address: Address) -> Vec<u8>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<B: BlockT, C> RuntimeStorageOverride<B, C> for ()

Source§

fn is_enabled() -> bool

Source§

fn set_overlayed_changes( _client: &C, _overlayed_changes: &mut OverlayedChanges<HashingFor<B>>, _block: B::Hash, _version: u32, _address: Address, _balance: Option<U256>, _nonce: Option<U256>, )

Source§

fn into_account_id_bytes(_address: Address) -> Vec<u8>

Implementors§

impl<B, C, BE> RuntimeStorageOverride<B, C> for SystemAccountId20StorageOverride<B, C, BE>
where B: BlockT, C: StorageProvider<B, BE> + Send + Sync, BE: Backend<B>,

impl<B, C, BE> RuntimeStorageOverride<B, C> for SystemAccountId32StorageOverride<B, C, BE>
where B: BlockT, C: StorageProvider<B, BE> + Send + Sync, BE: Backend<B>,