pub trait MoveStorage {
    fn fetch_resource(&self, access_path: AccessPath) -> Result<Vec<u8>>;
    fn fetch_resource_by_version(
        &self,
        access_path: AccessPath,
        version: Version
    ) -> Result<Vec<u8>>; fn fetch_config_by_version(
        &self,
        config_id: ConfigID,
        version: Version
    ) -> Result<Vec<u8>>; fn fetch_synced_version(&self) -> Result<Version>; fn fetch_latest_state_checkpoint_version(&self) -> Result<Version>; }

Required Methods

Returns a Move resources as a serialized byte array.

Returns a Move resources as serialized byte array from a specified version of the database.

Returns an on-chain resource as a serialized byte array from a specified version of the database.

Get the version on the latest transaction info.

Get the version of the latest state checkpoint

Implementors