mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-30 04:57:25 +00:00
Make system properties an arbitrary JSON object, plus CI fixes (#349)
* Make system properties an arbitrary JSON object * Add comment * Make timestamp test more reliable * Fmt * Update src/client.rs Co-authored-by: David <dvdplm@gmail.com> * Update src/client.rs Co-authored-by: David <dvdplm@gmail.com> * Fix clippy errors and warnings * Fix tests Co-authored-by: David <dvdplm@gmail.com>
This commit is contained in:
+2
-11
@@ -141,17 +141,8 @@ impl From<u32> for BlockNumber {
|
||||
}
|
||||
}
|
||||
|
||||
/// System properties for a Substrate-based runtime
|
||||
#[derive(serde::Serialize, Deserialize, Debug, Clone, PartialEq, Eq, Default)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct SystemProperties {
|
||||
/// The address format
|
||||
pub ss58_format: u8,
|
||||
/// The number of digits after the decimal point in the native token
|
||||
pub token_decimals: u8,
|
||||
/// The symbol of the native token
|
||||
pub token_symbol: String,
|
||||
}
|
||||
/// Arbitrary properties defined in the chain spec as a JSON object.
|
||||
pub type SystemProperties = serde_json::Map<String, serde_json::Value>;
|
||||
|
||||
/// Possible transaction status events.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user