pub struct RuntimeVersion {
pub spec_version: u32,
pub transaction_version: u32,
pub other: HashMap<String, Value>,
}Expand description
This contains the runtime version information necessary to make transactions, as obtained from
the RPC call state_getRuntimeVersion,
Fields§
§spec_version: u32Version of the runtime specification. A full-node will not attempt to use its native
runtime in substitute for the on-chain Wasm runtime unless all of spec_name,
spec_version and authoring_version are the same between Wasm and native.
transaction_version: u32All existing dispatches are fully compatible when this number doesn’t change. If this
number changes, then spec_version must change, also.
This number must change when an existing dispatchable (module ID, dispatch ID) is changed, either through an alteration in its user-level semantics, a parameter added/removed/changed, a dispatchable being removed, a module being removed, or a dispatchable/module changing its index.
It need not change when a new module is added or when a dispatchable is added.
other: HashMap<String, Value>Fields unnecessary to Subxt are written out to this map.
Trait Implementations§
Source§impl Clone for RuntimeVersion
impl Clone for RuntimeVersion
Source§fn clone(&self) -> RuntimeVersion
fn clone(&self) -> RuntimeVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more