git.delta.rocks / unique-network / refs/commits / ea9e87e05125

difftreelog

Fix code format

Daniel Shiposha2022-03-11parent: #b8430d4.patch.diff
in: master

1 file changed

modifiedruntime/common/src/types.rsdiffbeforeafterboth
before · runtime/common/src/types.rs
1use sp_runtime::{2	traits::{Verify, IdentifyAccount, BlakeTwo256},3	generic, MultiSignature,4};56pub use sp_runtime::OpaqueExtrinsic as UncheckedExtrinsic;78/// Opaque block header type.9pub type Header = generic::Header<BlockNumber, BlakeTwo256>;1011/// Opaque block type.12pub type Block = generic::Block<Header, UncheckedExtrinsic>;1314pub type SessionHandlers = ();1516/// An index to a block.17pub type BlockNumber = u32;1819/// Alias to 512-bit hash when used in the context of a transaction signature on the chain.20pub type Signature = MultiSignature;2122/// Some way of identifying an account on the chain. We intentionally make it equivalent23/// to the public key of our transaction signing scheme.24pub type AccountId = <<Signature as Verify>::Signer as IdentifyAccount>::AccountId;2526/// The type for looking up accounts. We don't expect more than 4 billion of them, but you27/// never know...28pub type AccountIndex = u32;2930/// Balance of an account.31pub type Balance = u128;3233/// Index of a transaction in the chain.34pub type Index = u32;3536/// A hash of some data used by the chain.37pub type Hash = sp_core::H256;3839/// Digest item type.40pub type DigestItem = generic::DigestItem;4142pub use sp_consensus_aura::sr25519::AuthorityId as AuraId;4344pub trait RuntimeInstance {45	type CrossAccountId: pallet_common::account::CrossAccountId<sp_runtime::AccountId32>46						+ Send + Sync + 'static;4748	type TransactionConverter: fp_rpc::ConvertTransaction<UncheckedExtrinsic>49						+ Send + Sync + 'static;5051	fn get_transaction_converter() -> Self::TransactionConverter;52}