Struct tetcore_subxt::Client [−][src]
Client to interface with a tetcore node.
Implementations
impl<T: Runtime> Client<T>
[src]
pub fn genesis(&self) -> &T::Hash
[src]
Returns the genesis hash.
pub fn metadata(&self) -> &Metadata
[src]
Returns the chain metadata.
pub fn properties(&self) -> &SystemProperties
[src]
Returns the system properties
pub async fn fetch_unhashed<V: Decode>(
&self,
key: StorageKey,
hash: Option<T::Hash>
) -> Result<Option<V>, Error>
[src]
&self,
key: StorageKey,
hash: Option<T::Hash>
) -> Result<Option<V>, Error>
Fetch the value under an unhashed storage key
pub async fn fetch<F: Store<T>>(
&self,
store: &F,
hash: Option<T::Hash>
) -> Result<Option<F::Returns>, Error>
[src]
&self,
store: &F,
hash: Option<T::Hash>
) -> Result<Option<F::Returns>, Error>
Fetch a StorageKey with an optional block hash.
pub async fn fetch_or_default<F: Store<T>>(
&self,
store: &F,
hash: Option<T::Hash>
) -> Result<F::Returns, Error>
[src]
&self,
store: &F,
hash: Option<T::Hash>
) -> Result<F::Returns, Error>
Fetch a StorageKey that has a default value with an optional block hash.
pub async fn iter<F: Store<T>>(
&self,
hash: Option<T::Hash>
) -> Result<KeyIter<T, F>, Error>
[src]
&self,
hash: Option<T::Hash>
) -> Result<KeyIter<T, F>, Error>
Returns an iterator of key value pairs.
pub async fn fetch_keys<F: Store<T>>(
&self,
count: u32,
start_key: Option<StorageKey>,
hash: Option<T::Hash>
) -> Result<Vec<StorageKey>, Error>
[src]
&self,
count: u32,
start_key: Option<StorageKey>,
hash: Option<T::Hash>
) -> Result<Vec<StorageKey>, Error>
Fetch up to count
keys for a storage map in lexicographic order.
Supports pagination by passing a value to start_key
.
pub async fn query_storage(
&self,
keys: Vec<StorageKey>,
from: T::Hash,
to: Option<T::Hash>
) -> Result<Vec<StorageChangeSet<<T as System>::Hash>>, Error>
[src]
&self,
keys: Vec<StorageKey>,
from: T::Hash,
to: Option<T::Hash>
) -> Result<Vec<StorageChangeSet<<T as System>::Hash>>, Error>
Query historical storage entries
pub async fn header<H>(
&self,
hash: Option<H>
) -> Result<Option<T::Header>, Error> where
H: Into<T::Hash> + 'static,
[src]
&self,
hash: Option<H>
) -> Result<Option<T::Header>, Error> where
H: Into<T::Hash> + 'static,
Get a header
pub async fn block_hash(
&self,
block_number: Option<BlockNumber>
) -> Result<Option<T::Hash>, Error>
[src]
&self,
block_number: Option<BlockNumber>
) -> Result<Option<T::Hash>, Error>
Get a block hash. By default returns the latest block hash
pub async fn finalized_head(&self) -> Result<T::Hash, Error>
[src]
Get a block hash of the latest finalized block
pub async fn block<H>(
&self,
hash: Option<H>
) -> Result<Option<SignedBlock<Block<<T as System>::Header, <T as System>::Extrinsic>>>, Error> where
H: Into<T::Hash> + 'static,
[src]
&self,
hash: Option<H>
) -> Result<Option<SignedBlock<Block<<T as System>::Header, <T as System>::Extrinsic>>>, Error> where
H: Into<T::Hash> + 'static,
Get a block
pub async fn read_proof<H>(
&self,
keys: Vec<StorageKey>,
hash: Option<H>
) -> Result<ReadProof<T::Hash>, Error> where
H: Into<T::Hash> + 'static,
[src]
&self,
keys: Vec<StorageKey>,
hash: Option<H>
) -> Result<ReadProof<T::Hash>, Error> where
H: Into<T::Hash> + 'static,
Get proof of storage entries at a specific block’s state.
pub async fn subscribe_events(
&self
) -> Result<Subscription<StorageChangeSet<T::Hash>>, Error>
[src]
&self
) -> Result<Subscription<StorageChangeSet<T::Hash>>, Error>
Subscribe to events.
pub async fn subscribe_blocks(&self) -> Result<Subscription<T::Header>, Error>
[src]
Subscribe to new blocks.
pub async fn subscribe_finalized_blocks(
&self
) -> Result<Subscription<T::Header>, Error>
[src]
&self
) -> Result<Subscription<T::Header>, Error>
Subscribe to finalized blocks.
pub fn encode<C: Call<T>>(&self, call: C) -> Result<Encoded, Error>
[src]
Encodes a call.
pub fn create_unsigned<C: Call<T> + Send + Sync>(
&self,
call: C
) -> Result<UncheckedExtrinsic<T>, Error>
[src]
&self,
call: C
) -> Result<UncheckedExtrinsic<T>, Error>
Creates an unsigned extrinsic.
pub async fn create_signed<C: Call<T> + Send + Sync>(
&self,
call: C,
signer: &(dyn Signer<T> + Send + Sync)
) -> Result<UncheckedExtrinsic<T>, Error> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
&self,
call: C,
signer: &(dyn Signer<T> + Send + Sync)
) -> Result<UncheckedExtrinsic<T>, Error> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
Creates a signed extrinsic.
pub fn events_decoder<C: Call<T>>(&self) -> EventsDecoder<T>
[src]
Returns an events decoder for a call.
pub async fn submit_extrinsic(
&self,
extrinsic: UncheckedExtrinsic<T>
) -> Result<T::Hash, Error>
[src]
&self,
extrinsic: UncheckedExtrinsic<T>
) -> Result<T::Hash, Error>
Create and submit an extrinsic and return corresponding Hash if successful
pub async fn submit_and_watch_extrinsic(
&self,
extrinsic: UncheckedExtrinsic<T>,
decoder: EventsDecoder<T>
) -> Result<ExtrinsicSuccess<T>, Error>
[src]
&self,
extrinsic: UncheckedExtrinsic<T>,
decoder: EventsDecoder<T>
) -> Result<ExtrinsicSuccess<T>, Error>
Create and submit an extrinsic and return corresponding Event if successful
pub async fn submit<C: Call<T> + Send + Sync>(
&self,
call: C,
signer: &(dyn Signer<T> + Send + Sync)
) -> Result<T::Hash, Error> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
&self,
call: C,
signer: &(dyn Signer<T> + Send + Sync)
) -> Result<T::Hash, Error> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
Submits a transaction to the chain.
pub async fn watch<C: Call<T> + Send + Sync>(
&self,
call: C,
signer: &(dyn Signer<T> + Send + Sync)
) -> Result<ExtrinsicSuccess<T>, Error> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
&self,
call: C,
signer: &(dyn Signer<T> + Send + Sync)
) -> Result<ExtrinsicSuccess<T>, Error> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
Submits transaction to the chain and watch for events.
pub async fn insert_key(
&self,
key_type: String,
suri: String,
public: Bytes
) -> Result<(), Error>
[src]
&self,
key_type: String,
suri: String,
public: Bytes
) -> Result<(), Error>
Insert a key into the keystore.
pub async fn rotate_keys(&self) -> Result<Bytes, Error>
[src]
Generate new session keys and returns the corresponding public keys.
pub async fn has_session_keys(&self, session_keys: Bytes) -> Result<bool, Error>
[src]
Checks if the keystore has private keys for the given session public keys.
session_keys
is the SCALE encoded session keys object from the runtime.
Returns true
iff all private keys could be found.
pub async fn has_key(
&self,
public_key: Bytes,
key_type: String
) -> Result<bool, Error>
[src]
&self,
public_key: Bytes,
key_type: String
) -> Result<bool, Error>
Checks if the keystore has private keys for the given public key and key type.
Returns true
if a private key could be found.
Trait Implementations
impl<T: Runtime + System> AccountStoreExt<T> for Client<T>
[src]
fn account<'a>(
&'a self,
account_id: &'a T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<AccountInfo<T>, Error>> + Send + 'a>>
[src]
&'a self,
account_id: &'a T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<AccountInfo<T>, Error>> + Send + 'a>>
fn account_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, AccountStore<'a, T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, AccountStore<'a, T>>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> BondCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn bond<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
contrller: T::AccountId,
value: T::Balance,
payee: RewardDestination<T::AccountId>
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
contrller: T::AccountId,
value: T::Balance,
payee: RewardDestination<T::AccountId>
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn bond_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
contrller: T::AccountId,
value: T::Balance,
payee: RewardDestination<T::AccountId>
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
contrller: T::AccountId,
value: T::Balance,
payee: RewardDestination<T::AccountId>
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> BondedStoreExt<T> for Client<T>
[src]
fn bonded<'a>(
&'a self,
stash: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<T::AccountId>, Error>> + Send + 'a>>
[src]
&'a self,
stash: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<T::AccountId>, Error>> + Send + 'a>>
fn bonded_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, BondedStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, BondedStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Contracts> CallCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn call<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
dest: &'a <T as System>::Address,
value: <T as Balances>::Balance,
gas_limit: Gas,
data: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
dest: &'a <T as System>::Address,
value: <T as Balances>::Balance,
gas_limit: Gas,
data: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn call_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
dest: &'a <T as System>::Address,
value: <T as Balances>::Balance,
gas_limit: Gas,
data: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
dest: &'a <T as System>::Address,
value: <T as Balances>::Balance,
gas_limit: Gas,
data: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> ChillCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn chill<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync)
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync)
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn chill_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync)
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync)
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime> Clone for Client<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Runtime + Staking> CurrentEraStoreExt<T> for Client<T>
[src]
fn current_era<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<EraIndex>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<EraIndex>, Error>> + Send + 'a>>
fn current_era_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, CurrentEraStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, CurrentEraStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> ErasRewardPointsStoreExt<T> for Client<T>
[src]
fn eras_reward_points<'a>(
&'a self,
index: EraIndex,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<EraRewardPoints<T::AccountId>, Error>> + Send + 'a>>
[src]
&'a self,
index: EraIndex,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<EraRewardPoints<T::AccountId>, Error>> + Send + 'a>>
fn eras_reward_points_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, ErasRewardPointsStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, ErasRewardPointsStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> HistoryDepthStoreExt<T> for Client<T>
[src]
fn history_depth<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'a>>
fn history_depth_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, HistoryDepthStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, HistoryDepthStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Contracts> InstantiateCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn instantiate<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
endowment: <T as Balances>::Balance,
gas_limit: Gas,
code_hash: &'a <T as System>::Hash,
data: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
endowment: <T as Balances>::Balance,
gas_limit: Gas,
code_hash: &'a <T as System>::Hash,
data: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn instantiate_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
endowment: <T as Balances>::Balance,
gas_limit: Gas,
code_hash: &'a <T as System>::Hash,
data: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
endowment: <T as Balances>::Balance,
gas_limit: Gas,
code_hash: &'a <T as System>::Hash,
data: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> LedgerStoreExt<T> for Client<T>
[src]
fn ledger<'a>(
&'a self,
controller: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<StakingLedger<T::AccountId, T::Balance>>, Error>> + Send + 'a>>
[src]
&'a self,
controller: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<StakingLedger<T::AccountId, T::Balance>>, Error>> + Send + 'a>>
fn ledger_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, LedgerStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, LedgerStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Balances> LocksStoreExt<T> for Client<T>
[src]
fn locks<'a>(
&'a self,
account_id: &'a T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Vec<BalanceLock<T::Balance>>, Error>> + Send + 'a>>
[src]
&'a self,
account_id: &'a T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Vec<BalanceLock<T::Balance>>, Error>> + Send + 'a>>
fn locks_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, LocksStore<'a, T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, LocksStore<'a, T>>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> NominateCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn nominate<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
targets: Vec<T::Address>
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
targets: Vec<T::Address>
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn nominate_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
targets: Vec<T::Address>
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
targets: Vec<T::Address>
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> NominatorsStoreExt<T> for Client<T>
[src]
fn nominators<'a>(
&'a self,
stash: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<Nominations<T::AccountId>>, Error>> + Send + 'a>>
[src]
&'a self,
stash: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Option<Nominations<T::AccountId>>, Error>> + Send + 'a>>
fn nominators_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, NominatorsStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, NominatorsStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> PayeeStoreExt<T> for Client<T>
[src]
fn payee<'a>(
&'a self,
stash: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<RewardDestination<T::AccountId>, Error>> + Send + 'a>>
[src]
&'a self,
stash: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<RewardDestination<T::AccountId>, Error>> + Send + 'a>>
fn payee_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, PayeeStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, PayeeStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Contracts> PutCodeCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn put_code<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn put_code_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + System> SetCodeCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn set_code<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn set_code_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + System> SetCodeWithoutChecksCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn set_code_without_checks<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn set_code_without_checks_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
code: &'a [u8]
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Session> SetKeysCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn set_keys<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
keys: T::Keys,
proof: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
keys: T::Keys,
proof: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn set_keys_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
keys: T::Keys,
proof: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
keys: T::Keys,
proof: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> SetPayeeCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn set_payee<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
payee: RewardDestination<T::AccountId>
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
payee: RewardDestination<T::AccountId>
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn set_payee_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
payee: RewardDestination<T::AccountId>
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
payee: RewardDestination<T::AccountId>
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Sudo> SudoCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn sudo<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
call: &'a Encoded
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
call: &'a Encoded
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn sudo_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
call: &'a Encoded
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
call: &'a Encoded
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Sudo> SudoUncheckedWeightCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn sudo_unchecked_weight<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
call: &'a Encoded,
weight: Weight
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
call: &'a Encoded,
weight: Weight
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn sudo_unchecked_weight_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
call: &'a Encoded,
weight: Weight
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
call: &'a Encoded,
weight: Weight
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Balances> TotalIssuanceStoreExt<T> for Client<T>
[src]
fn total_issuance<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<T::Balance, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<T::Balance, Error>> + Send + 'a>>
fn total_issuance_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, TotalIssuanceStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, TotalIssuanceStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Balances> TransferCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn transfer<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
to: &'a <T as System>::Address,
amount: T::Balance
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
to: &'a <T as System>::Address,
amount: T::Balance
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn transfer_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
to: &'a <T as System>::Address,
amount: T::Balance
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
to: &'a <T as System>::Address,
amount: T::Balance
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> ValidateCallExt<T> for Client<T> where
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
[src]
<<T::Extra as SignedExtra<T>>::Extra as SignedExtension>::AdditionalSigned: Send + Sync,
fn validate<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
prefs: ValidatorPrefs
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
prefs: ValidatorPrefs
) -> Pin<Box<dyn Future<Output = Result<T::Hash, Error>> + Send + 'a>>
fn validate_and_watch<'a>(
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
prefs: ValidatorPrefs
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
[src]
&'a self,
signer: &'a (dyn Signer<T> + Send + Sync),
prefs: ValidatorPrefs
) -> Pin<Box<dyn Future<Output = Result<ExtrinsicSuccess<T>, Error>> + Send + 'a>>
impl<T: Runtime + Session> ValidatorsStoreExt<T> for Client<T>
[src]
fn validators<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Vec<<T as Session>::ValidatorId>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<Vec<<T as Session>::ValidatorId>, Error>> + Send + 'a>>
fn validators_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, ValidatorsStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, ValidatorsStore<T>>, Error>> + Send + 'a>>
impl<T: Runtime + Staking> ValidatorsStoreExt<T> for Client<T>
[src]
fn validators<'a>(
&'a self,
stash: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<ValidatorPrefs, Error>> + Send + 'a>>
[src]
&'a self,
stash: T::AccountId,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<ValidatorPrefs, Error>> + Send + 'a>>
fn validators_iter<'a>(
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, ValidatorsStore<T>>, Error>> + Send + 'a>>
[src]
&'a self,
hash: Option<T::Hash>
) -> Pin<Box<dyn Future<Output = Result<KeyIter<T, ValidatorsStore<T>>, Error>> + Send + 'a>>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Client<T>
impl<T> Send for Client<T>
impl<T> Sync for Client<T>
impl<T> Unpin for Client<T> where
T: Unpin,
<T as Runtime>::Extra: Unpin,
<T as System>::Hash: Unpin,
T: Unpin,
<T as Runtime>::Extra: Unpin,
<T as System>::Hash: Unpin,
impl<T> !UnwindSafe for Client<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedConversion for T
[src]
pub fn checked_from<T>(t: T) -> Option<Self> where
Self: TryFrom<T>,
[src]
Self: TryFrom<T>,
pub fn checked_into<T>(self) -> Option<T> where
Self: TryInto<T>,
[src]
Self: TryInto<T>,
impl<T> Downcast for T where
T: Any,
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn as_any(&self) -> &(dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IsType<T> for T
[src]
pub fn from_ref(t: &T) -> &T
[src]
pub fn into_ref(&self) -> &T
[src]
pub fn from_mut(t: &mut T) -> &mut T
[src]
pub fn into_mut(&mut self) -> &mut T
[src]
impl<T, Outer> IsWrappedBy<Outer> for T where
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
[src]
T: From<Outer>,
Outer: AsRef<T> + AsMut<T> + From<T>,
pub fn from_ref(outer: &Outer) -> &T
[src]
Get a reference to the inner from the outer.
pub fn from_mut(outer: &mut Outer) -> &mut T
[src]
Get a mutable reference to the inner from the outer.
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatedConversion for T
pub fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
Self: UniqueSaturatedFrom<T>,
pub fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
Self: UniqueSaturatedInto<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
[src]
T: UncheckedFrom<S>,
pub fn unchecked_into(self) -> T
[src]
impl<T, S> UniqueSaturatedInto<T> for S where
T: Bounded,
S: TryInto<T>,
T: Bounded,
S: TryInto<T>,
pub fn unique_saturated_into(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,