Trait substrate_subxt::sudo::SudoCallExt[][src]

pub trait SudoCallExt<T: Runtime + Sudo> {
    fn sudo<'a>(
        &'a self,
        signer: &'a (dyn Signer<T> + Send + Sync),
        call: &'a Encoded
    ) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>;
fn sudo_and_watch<'a>(
        &'a self,
        signer: &'a (dyn Signer<T> + Send + Sync),
        call: &'a Encoded
    ) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>; }

Call extension trait.

Required methods

fn sudo<'a>(
    &'a self,
    signer: &'a (dyn Signer<T> + Send + Sync),
    call: &'a Encoded
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]

Create and submit an extrinsic.

fn sudo_and_watch<'a>(
    &'a self,
    signer: &'a (dyn Signer<T> + Send + Sync),
    call: &'a Encoded
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]

Create, submit and watch an extrinsic.

Loading content...

Implementors

impl<T: Runtime + Sudo> SudoCallExt<T> for Client<T> where
    <<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync
[src]

Loading content...