Trait zombienet_sdk::tx_helper::ChainUpgrade
source · pub trait ChainUpgrade {
// Required method
fn nodes(&self) -> Vec<&NetworkNode>;
// Provided method
fn runtime_upgrade<'life0, 'async_trait>(
&'life0 self,
options: RuntimeUpgradeOptions,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: Sync + 'async_trait { ... }
}
Required Methods§
sourcefn nodes(&self) -> Vec<&NetworkNode>
fn nodes(&self) -> Vec<&NetworkNode>
Get a vec of NetworkNode
Provided Methods§
sourcefn runtime_upgrade<'life0, 'async_trait>(
&'life0 self,
options: RuntimeUpgradeOptions,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
fn runtime_upgrade<'life0, 'async_trait>(
&'life0 self,
options: RuntimeUpgradeOptions,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: Sync + 'async_trait,
Perform a runtime upgrade (with sudo)
This call ‘System.set_code_without_checks’ wrapped in ‘Sudo.sudo_unchecked_weight’