mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 21:41:02 +00:00
Reformat
This commit is contained in:
+17
-4
@@ -16,11 +16,21 @@
|
|||||||
|
|
||||||
//! Implements support for the pallet_balances module.
|
//! Implements support for the pallet_balances module.
|
||||||
|
|
||||||
use crate::frame::system::{System, SystemEventsDecoder};
|
use crate::frame::system::{
|
||||||
use codec::{Decode, Encode};
|
System,
|
||||||
|
SystemEventsDecoder,
|
||||||
|
};
|
||||||
|
use codec::{
|
||||||
|
Decode,
|
||||||
|
Encode,
|
||||||
|
};
|
||||||
use core::marker::PhantomData;
|
use core::marker::PhantomData;
|
||||||
use frame_support::Parameter;
|
use frame_support::Parameter;
|
||||||
use sp_runtime::traits::{AtLeast32Bit, MaybeSerialize, Member};
|
use sp_runtime::traits::{
|
||||||
|
AtLeast32Bit,
|
||||||
|
MaybeSerialize,
|
||||||
|
Member,
|
||||||
|
};
|
||||||
use std::fmt::Debug;
|
use std::fmt::Debug;
|
||||||
|
|
||||||
/// The subset of the `pallet_balances::Trait` that a client must implement.
|
/// The subset of the `pallet_balances::Trait` that a client must implement.
|
||||||
@@ -100,7 +110,10 @@ pub struct TransferEvent<T: Balances> {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use crate::{
|
use crate::{
|
||||||
system::{AccountStore, AccountStoreExt},
|
system::{
|
||||||
|
AccountStore,
|
||||||
|
AccountStoreExt,
|
||||||
|
},
|
||||||
tests::test_client,
|
tests::test_client,
|
||||||
};
|
};
|
||||||
use sp_keyring::AccountKeyring;
|
use sp_keyring::AccountKeyring;
|
||||||
|
|||||||
+21
-5
@@ -17,18 +17,34 @@
|
|||||||
//! A library to **sub**mit e**xt**rinsics to a
|
//! A library to **sub**mit e**xt**rinsics to a
|
||||||
//! [substrate](https://github.com/paritytech/substrate) node via RPC.
|
//! [substrate](https://github.com/paritytech/substrate) node via RPC.
|
||||||
|
|
||||||
use crate::{extra::SignedExtra, frame::system::System, Encoded};
|
use crate::{
|
||||||
|
extra::SignedExtra,
|
||||||
|
frame::system::System,
|
||||||
|
Encoded,
|
||||||
|
};
|
||||||
use codec::Encode;
|
use codec::Encode;
|
||||||
use sp_core::Pair;
|
use sp_core::Pair;
|
||||||
use sp_runtime::{
|
use sp_runtime::{
|
||||||
generic::{SignedPayload, UncheckedExtrinsic},
|
generic::{
|
||||||
traits::{IdentifyAccount, Verify, SignedExtension},
|
SignedPayload,
|
||||||
|
UncheckedExtrinsic,
|
||||||
|
},
|
||||||
|
traits::{
|
||||||
|
IdentifyAccount,
|
||||||
|
SignedExtension,
|
||||||
|
Verify,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
use std::{
|
||||||
|
future::Future,
|
||||||
|
marker::PhantomData,
|
||||||
|
pin::Pin,
|
||||||
};
|
};
|
||||||
use std::{future::Future, marker::PhantomData, pin::Pin};
|
|
||||||
|
|
||||||
/// Extrinsic signer.
|
/// Extrinsic signer.
|
||||||
pub trait Signer<T: System, S: Encode, E: SignedExtra<T>>
|
pub trait Signer<T: System, S: Encode, E: SignedExtra<T>>
|
||||||
where <<E as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync
|
where
|
||||||
|
<<E as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
|
||||||
{
|
{
|
||||||
/// Returns the account id.
|
/// Returns the account id.
|
||||||
fn account_id(&self) -> &T::AccountId;
|
fn account_id(&self) -> &T::AccountId;
|
||||||
|
|||||||
Reference in New Issue
Block a user