pub trait NativeStorage: Storage {
    // Required method
    fn get_with_proof(
        &self,
        key: StorageKey,
        witness: &Self::Witness
    ) -> StorageProof<Self::Proof>;

    // Provided method
    fn get_with_proof_from_state_map<Q, K, V, Codec>(
        &self,
        key: &Q,
        state_map: &StateMap<K, V, Codec>,
        witness: &Self::Witness
    ) -> StorageProof<Self::Proof>
       where Codec: EncodeKeyLike<Q, K> { ... }
}

Required Methods§

source

fn get_with_proof( &self, key: StorageKey, witness: &Self::Witness ) -> StorageProof<Self::Proof>

Returns the value corresponding to the key or None if key is absent and a proof to get the value. Panics if get_with_proof_from_state_map returns None in place of the proof.

Provided Methods§

source

fn get_with_proof_from_state_map<Q, K, V, Codec>( &self, key: &Q, state_map: &StateMap<K, V, Codec>, witness: &Self::Witness ) -> StorageProof<Self::Proof>where Codec: EncodeKeyLike<Q, K>,

Implementors§