pezkuwi-subxt 0.44.0

Submit extrinsics (transactions) to a Pezkuwi/Bizinikiwi node via RPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Display hex strings.
#[derive(PartialEq, Eq, Clone, Debug, PartialOrd, Ord)]
pub struct Hex(String);

impl<T: AsRef<[u8]>> From<T> for Hex {
	fn from(value: T) -> Self {
		Hex(hex::encode(value.as_ref()))
	}
}

impl std::fmt::Display for Hex {
	fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
		self.0.fmt(f)
	}
}