sui_json_rpc::move_utils

Trait MoveUtilsInternalTrait

Source
pub trait MoveUtilsInternalTrait {
    // Required methods
    fn get_state(&self) -> &dyn StateRead;
    fn get_move_module<'life0, 'async_trait>(
        &'life0 self,
        package: ObjectID,
        module_name: String,
    ) -> Pin<Box<dyn Future<Output = Result<Module<RcIdentifier>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_move_modules_by_package<'life0, 'async_trait>(
        &'life0 self,
        package: ObjectID,
    ) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, Module<RcIdentifier>>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_object_read(&self, package: ObjectID) -> Result<ObjectRead, Error>;
}

Required Methods§

Source

fn get_state(&self) -> &dyn StateRead

Source

fn get_move_module<'life0, 'async_trait>( &'life0 self, package: ObjectID, module_name: String, ) -> Pin<Box<dyn Future<Output = Result<Module<RcIdentifier>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_move_modules_by_package<'life0, 'async_trait>( &'life0 self, package: ObjectID, ) -> Pin<Box<dyn Future<Output = Result<BTreeMap<String, Module<RcIdentifier>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_object_read(&self, package: ObjectID) -> Result<ObjectRead, Error>

Implementors§