Trait diem_sdk::types::move_resource::MoveStorage
pub trait MoveStorage {
// Required methods
fn batch_fetch_resources(
&self,
access_paths: Vec<AccessPath, Global>
) -> Result<Vec<Vec<u8, Global>, Global>, Error>;
fn batch_fetch_resources_by_version(
&self,
access_paths: Vec<AccessPath, Global>,
version: u64
) -> Result<Vec<Vec<u8, Global>, Global>, Error>;
fn fetch_synced_version(&self) -> Result<u64, Error>;
}
Required Methods§
fn batch_fetch_resources(
&self,
access_paths: Vec<AccessPath, Global>
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
fn batch_fetch_resources( &self, access_paths: Vec<AccessPath, Global> ) -> Result<Vec<Vec<u8, Global>, Global>, Error>
Returns a vector of Move resources as serialized byte array
Order of resources returned matches the order of access_path
fn batch_fetch_resources_by_version(
&self,
access_paths: Vec<AccessPath, Global>,
version: u64
) -> Result<Vec<Vec<u8, Global>, Global>, Error>
fn batch_fetch_resources_by_version( &self, access_paths: Vec<AccessPath, Global>, version: u64 ) -> Result<Vec<Vec<u8, Global>, Global>, Error>
Returns a vector of Move resources as serialized byte array from a
specified version of the database
Order of resources returned matches the order of access_path
fn fetch_synced_version(&self) -> Result<u64, Error>
fn fetch_synced_version(&self) -> Result<u64, Error>
Get the version on the latest transaction info.