pub struct SignedConnection { /* private fields */ }
Expand description

Any connection that is signed by some key.

Implementations§

source§

impl SignedConnection

source

pub async fn new(address: &str, signer: KeyPair) -> Self

Creates new signed connection from existing Connection object.

  • connection - existing connection
  • signer - a KeyPair of signing account
source

pub fn from_connection(connection: Connection, signer: KeyPair) -> Self

Creates new signed connection from existing Connection object.

  • connection - existing connection
  • signer - a KeyPair of signing account

Trait Implementations§

source§

impl AsSigned for SignedConnection

source§

fn as_signed(&self) -> &SignedConnection

Allows cast to SignedConnection reference
source§

impl Clone for SignedConnection

source§

fn clone(&self) -> SignedConnection

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<C> AlephApi for Cwhere C: ConnectionApi,

source§

fn finality_version<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Gets the current finality version.
source§

fn next_session_finality_version<'life0, 'async_trait>( &'life0 self, hash: Option<H256> ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Gets the finality version for the next session.
source§

impl<C> AlephRpc for Cwhere C: ConnectionApi,

source§

fn emergency_finalize<'life0, 'async_trait>( &'life0 self, number: u32, hash: H256, key_pair: Pair ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Finalize the block with given hash and number using attached signature. Read more
source§

impl<C> AlephWaiting for Cwhere C: AsConnection + Sync,

source§

fn wait_for_block<'life0, 'async_trait, P>( &'life0 self, predicate: P, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where 'life0: 'async_trait, P: 'async_trait + Fn(u32) -> bool + Send, C: 'async_trait,

Wait for a particular block to be in a BlockStatus. Block number must match given predicate. Read more
source§

fn wait_for_event<'life0, 'async_trait, T, P>( &'life0 self, predicate: P, status: BlockStatus ) -> Pin<Box<dyn Future<Output = T> + Send + 'async_trait, Global>>where 'life0: 'async_trait, T: 'async_trait + StaticEvent, P: 'async_trait + Fn(&T) -> bool + Send, C: 'async_trait,

Wait for a particular event to be emitted on chain. Read more
source§

fn wait_for_era<'life0, 'async_trait>( &'life0 self, era: u32, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Wait for given era to happen. Read more
source§

fn wait_for_session<'life0, 'async_trait>( &'life0 self, session: u32, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Wait for given session to happen. Read more
source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<C> AuthorRpc for Cwhere C: AsConnection + Sync,

source§

fn author_rotate_keys<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<SessionKeys, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

API for rotate_keys call
source§

impl<C> BalanceApi for Cwhere C: ConnectionApi,

source§

fn locks_for_account<'life0, 'async_trait>( &'life0 self, account: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<BalanceLock<u128>, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

API for locks call. Read more
source§

fn locks<'life0, 'life1, 'async_trait>( &'life0 self, accounts: &'life1 [AccountId32], at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<Vec<BalanceLock<u128>, Global>, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, C: 'async_trait,

API for locks call. Read more
source§

fn total_issuance<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u128> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

source§

impl<S> BalanceUserApi for Swhere S: SignedConnectionApi,

source§

fn transfer<'life0, 'async_trait>( &'life0 self, dest: AccountId32, amount: u128, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for transfer call.
source§

fn transfer_with_tip<'life0, 'async_trait>( &'life0 self, dest: AccountId32, amount: u128, tip: u128, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for transfer call. Include tip in the tx.
source§

impl<S> BalanceUserBatchExtApi for Swhere S: SignedConnectionApi,

source§

fn batch_transfer<'life0, 'life1, 'async_trait>( &'life0 self, dests: &'life1 [AccountId32], amount: u128, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, S: 'async_trait,

Performs batch of balances.transfer calls. Read more
source§

impl<C> BlocksApi for Cwhere C: AsConnection + Sync,

source§

fn first_block_of_session<'life0, 'async_trait>( &'life0 self, session: u32 ) -> Pin<Box<dyn Future<Output = Result<Option<H256>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns the first block of a session. Read more
source§

fn get_block_hash<'life0, 'async_trait>( &'life0 self, block: u32 ) -> Pin<Box<dyn Future<Output = Result<Option<H256>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns hash of a given block if the given block exists, otherwise None Read more
source§

fn get_best_block<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns the most recent block from the current best chain.
source§

fn get_finalized_block_hash<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<H256, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns the most recent block from the finalized chain.
source§

fn get_block_number_opt<'life0, 'async_trait>( &'life0 self, block: Option<H256> ) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns number of a given block hash, if the given block exists, otherwise None Read more
source§

fn get_block_number<'life0, 'async_trait>( &'life0 self, block: H256 ) -> Pin<Box<dyn Future<Output = Result<Option<u32>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns number of a given block hash, if the given block exists, otherwise None This is version that returns Result Read more
source§

fn get_tx_events<'life0, 'async_trait>( &'life0 self, tx_info: TxInfo ) -> Pin<Box<dyn Future<Output = Result<ExtrinsicEvents<WithExtrinsicParams<SubstrateConfig, BaseExtrinsicParams<SubstrateConfig, PlainTip>>>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Fetch all events that corresponds to the transaction identified by tx_info.
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CheckedConversion for T

§

fn checked_from<T>(t: T) -> Option<Self>where Self: TryFrom<T>,

Convert from a value of T into an equivalent instance of Option<Self>. Read more
§

fn checked_into<T>(self) -> Option<T>where Self: TryInto<T>,

Consume self to return Some equivalent value of Option<T>. Read more
source§

impl<C> CommitteeManagementApi for Cwhere C: ConnectionApi + AsConnection,

source§

fn get_ban_config<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = BanConfig> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns committee-management.ban_config storage of the committee-management pallet. Read more
source§

fn get_validator_block_count<'life0, 'async_trait>( &'life0 self, validator: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns committee-management.session_validator_block_count of a given validator. Read more
source§

fn get_underperformed_validator_session_count<'life0, 'async_trait>( &'life0 self, validator: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns committee-management.underperformed_validator_session_count storage of a given validator. Read more
source§

fn get_ban_reason_for_validator<'life0, 'async_trait>( &'life0 self, validator: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<BanReason>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns committee-management.banned.reason storage of a given validator. Read more
source§

fn get_ban_info_for_validator<'life0, 'async_trait>( &'life0 self, validator: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<BanInfo>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns committee-management.banned storage of a given validator. Read more
source§

fn get_session_period<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns committee-management.session_period const of the committee-management pallet.
source§

impl<C> ContractRpc for Cwhere C: ConnectionApi,

source§

fn call_and_get<'life0, 'async_trait>( &'life0 self, args: ContractCallArgs ) -> Pin<Box<dyn Future<Output = Result<ContractResult<Result<ExecReturnValue, DispatchError>, u128>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

API for call call.
source§

impl<C> ContractsApi for Cwhere C: ConnectionApi,

source§

fn get_owner_info<'life0, 'async_trait>( &'life0 self, code_hash: H256, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<OwnerInfo>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns contracts.owner_info_of storage for a given code hash. Read more
source§

impl<S> ContractsUserApi for Swhere S: SignedConnectionApi,

source§

fn upload_code<'life0, 'async_trait>( &'life0 self, code: Vec<u8, Global>, storage_limit: Option<Compact<u128>>, determinism: Determinism, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for upload_code call.
source§

fn instantiate<'life0, 'async_trait>( &'life0 self, code_hash: H256, balance: u128, gas_limit: Weight, storage_limit: Option<Compact<u128>>, data: Vec<u8, Global>, salt: Vec<u8, Global>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for instantiate call.
source§

fn instantiate_with_code<'life0, 'async_trait>( &'life0 self, code: Vec<u8, Global>, balance: u128, gas_limit: Weight, storage_limit: Option<Compact<u128>>, data: Vec<u8, Global>, salt: Vec<u8, Global>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for instantiate_with_code call.
source§

fn call<'life0, 'async_trait>( &'life0 self, destination: AccountId32, balance: u128, gas_limit: Weight, storage_limit: Option<Compact<u128>>, data: Vec<u8, Global>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for call call.
source§

fn remove_code<'life0, 'async_trait>( &'life0 self, code_hash: H256, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for remove_code call.
§

impl<T> Conv for T

§

fn conv<T>(self) -> Twhere Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> Downcast for Twhere T: Any,

§

fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for Twhere T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send + 'static>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> DynClone for Twhere T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<C> ElectionsApi for Cwhere C: ConnectionApi + AsConnection,

source§

fn get_committee_seats<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = CommitteeSeats> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns elections.committee_size storage of the elections pallet. Read more
source§

fn get_next_era_committee_seats<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = CommitteeSeats> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns elections.next_era_committee_seats storage of the elections pallet. Read more
source§

fn get_current_era_validators<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = EraValidators<AccountId32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns elections.current_era_validators storage of the elections pallet. Read more
source§

fn get_next_era_reserved_validators<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<AccountId32, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns elections.next_era_reserved_validators storage of the elections pallet. Read more
source§

fn get_next_era_non_reserved_validators<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<AccountId32, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns elections.next_era_non_reserved_validators storage of the elections pallet. Read more
§

impl<I, T> ExtractContext<I, ()> for T

§

fn extract_context(self, _original_input: I)

Given the context attached to a nom error, and given the original input to the nom parser, extract more the useful context information. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,

§

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

§

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

source§

impl<C> MultisigApiExt for Cwhere C: ConnectionApi,

source§

fn get_timepoint<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, party_account: &'life1 AccountId32, call_hash: &'life2 [u8; 32], block_hash: Option<H256> ) -> Pin<Box<dyn Future<Output = Timepoint<u32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, C: 'async_trait,

Get the coordinate that corresponds to the ongoing signature aggregation for party_account and call_hash.
source§

impl<S> MultisigContextualApi for Swhere S: SignedConnectionApi,

source§

fn initiate<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, party: &'life1 MultisigParty, max_weight: &'life2 Weight, call_hash: [u8; 32], status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, Context<Ongoing>), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, S: 'async_trait,

Start signature aggregation for party and call_hash. Get Context object as a result (together with standard tx coordinates). Read more
source§

fn initiate_with_call<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, party: &'life1 MultisigParty, max_weight: &'life2 Weight, call: RuntimeCall, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, Context<Ongoing>), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, S: 'async_trait,

Start signature aggregation for party and call. Get Context object as a result (together with standard tx coordinates). Read more
source§

fn approve<'life0, 'async_trait>( &'life0 self, context: Context<Ongoing>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, ContextAfterUse), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

Express contextual approval for the call hash. Read more
source§

fn approve_with_call<'life0, 'async_trait>( &'life0 self, context: Context<Ongoing>, call: Option<RuntimeCall>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, ContextAfterUse), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

Express contextual approval for the call. Read more
source§

fn cancel<'life0, 'async_trait>( &'life0 self, context: Context<Ongoing>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<(TxInfo, Context<Closed>), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

Cancel signature aggregation.
source§

impl<S> MultisigUserApi for Swhere S: SignedConnectionApi,

source§

fn as_multi_threshold_1<'life0, 'async_trait>( &'life0 self, other_signatories: Vec<AccountId32, Global>, call: RuntimeCall, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for as_multi_threshold_1 call.
source§

fn as_multi<'life0, 'async_trait>( &'life0 self, threshold: u16, other_signatories: Vec<AccountId32, Global>, timepoint: Option<Timepoint<u32>>, max_weight: Weight, call: RuntimeCall, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for as_multi call.
source§

fn approve_as_multi<'life0, 'async_trait>( &'life0 self, threshold: u16, other_signatories: Vec<AccountId32, Global>, timepoint: Option<Timepoint<u32>>, max_weight: Weight, call_hash: [u8; 32], status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for approve_as_multi call.
source§

fn cancel_as_multi<'life0, 'async_trait>( &'life0 self, threshold: u16, other_signatories: Vec<AccountId32, Global>, timepoint: Timepoint<u32>, call_hash: [u8; 32], status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for cancel_as_multi call.
§

impl<T> Pipe for Twhere T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> Rwhere Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> Rwhere Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R ) -> Rwhere Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
§

impl<I> RecreateContext<I> for I

§

fn recreate_context(_original_input: I, tail: I) -> I

Given the original input, as well as the context reported by nom, recreate a context in the original string where the error occurred. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<T> SaturatedConversion for T

§

fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,

Convert from a value of T into an equivalent instance of Self. Read more
§

fn saturated_into<T>(self) -> Twhere Self: UniqueSaturatedInto<T>,

Consume self to return an equivalent value of T. Read more
source§

impl<C> SessionApi for Cwhere C: ConnectionApi,

source§

fn get_next_session_keys<'life0, 'async_trait>( &'life0 self, account: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<SessionKeys>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

API for next_keys call.
source§

fn get_session<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

API for current_index call.
source§

fn get_validators<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<AccountId32, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

API for validators call.
source§

impl<C> SessionEraApi for Cwhere C: AsConnection + Sync,

source§

fn get_active_era_for_session<'life0, 'async_trait>( &'life0 self, session: u32 ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns which era given session is. Read more
source§

impl<S> SessionUserApi for Swhere S: SignedConnectionApi,

source§

fn set_keys<'life0, 'async_trait>( &'life0 self, new_keys: SessionKeys, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for set_keys call.
source§

impl<C> StakingApi for Cwhere C: ConnectionApi + AsConnection,

source§

fn get_active_era<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

source§

fn get_current_era<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

source§

fn get_bonded<'life0, 'async_trait>( &'life0 self, stash: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<AccountId32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns bonded for a given stash account. Read more
source§

fn get_ledger<'life0, 'async_trait>( &'life0 self, controller: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = StakingLedger> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns ledger for a given controller account. Read more
source§

fn get_payout_for_era<'life0, 'async_trait>( &'life0 self, era: u32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u128> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns eras_validator_reward for a given era. Read more
source§

fn get_exposure<'life0, 'life1, 'async_trait>( &'life0 self, era: u32, account_id: &'life1 AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Exposure<AccountId32, u128>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, C: 'async_trait,

Returns eras_stakers for a given era and account id. Read more
source§

fn get_era_reward_points<'life0, 'async_trait>( &'life0 self, era: u32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<EraRewardPoints<AccountId32>>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns eras_reward_points for a given era. Read more
source§

fn get_minimum_validator_count<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

source§

fn get_session_per_era<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns SessionsPerEra const.
source§

impl<C> StakingRawApi for Cwhere C: AsConnection + Sync,

source§

fn get_stakers_storage_keys<'life0, 'async_trait>( &'life0 self, era: u32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Result<Vec<StorageKey, Global>, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns all encoded eras_stakers. storage keys for a given era Read more
source§

fn get_stakers_storage_keys_from_accounts<'life0, 'life1, 'async_trait>( &'life0 self, era: u32, accounts: &'life1 [AccountId32], __arg3: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<StorageKey, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, C: 'async_trait,

Returns encoded eras_stakers. storage keys for a given era and given account ids Read more
source§

impl<S> StakingUserApi for Swhere S: SignedConnectionApi,

source§

fn bond<'life0, 'async_trait>( &'life0 self, initial_stake: u128, controller_id: AccountId32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for bond call.
source§

fn validate<'life0, 'async_trait>( &'life0 self, validator_commission_percentage: u8, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for validate call.
source§

fn payout_stakers<'life0, 'async_trait>( &'life0 self, stash_account: AccountId32, era: u32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for payout_stakers call.
source§

fn nominate<'life0, 'async_trait>( &'life0 self, nominee_account_id: AccountId32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for nominate call.
source§

fn chill<'life0, 'async_trait>( &'life0 self, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for chill call.
source§

fn bond_extra_stake<'life0, 'async_trait>( &'life0 self, extra_stake: u128, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for bond_extra call.
source§

impl<C> SystemApi for Cwhere C: ConnectionApi,

source§

fn get_free_balance<'life0, 'async_trait>( &'life0 self, account: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u128> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

returns free balance of a given account Read more
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<C> TransactionPaymentApi for Cwhere C: ConnectionApi,

source§

fn get_next_fee_multiplier<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = u128> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

API for next_fee_multiplier call.
source§

impl<C> TreasureApiExt for Cwhere C: AsConnection + Sync,

source§

fn possible_treasury_payout<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = Result<u128, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

When staking.payout_stakers is done, what amount of AZERO is transferred to. the treasury
source§

impl<C> TreasuryApi for Cwhere C: ConnectionApi,

source§

fn treasury_account<'life0, 'async_trait>( &'life0 self ) -> Pin<Box<dyn Future<Output = AccountId32> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns an unique account id for all treasury transfers.
source§

fn proposals_count<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Option<u32>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns storage proposals_count. Read more
source§

fn approvals<'life0, 'async_trait>( &'life0 self, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<u32, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns storage approvals. Read more
source§

impl<S> TreasuryUserApi for Swhere S: SignedConnectionApi,

source§

fn propose_spend<'life0, 'async_trait>( &'life0 self, amount: u128, beneficiary: AccountId32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for propose_spend call.
source§

fn approve<'life0, 'async_trait>( &'life0 self, proposal_id: u32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for approve_proposal call.
source§

fn reject<'life0, 'async_trait>( &'life0 self, proposal_id: u32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for reject_proposal call.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,

§

fn unchecked_into(self) -> T

The counterpart to unchecked_from.
§

impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,

§

fn unique_saturated_into(self) -> T

Consume self to return an equivalent value of T.
source§

impl<S> UtilityApi for Swhere S: SignedConnectionApi,

source§

fn batch_call<'life0, 'async_trait>( &'life0 self, calls: Vec<RuntimeCall, Global>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for batch call.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<C> VestingApi for Cwhere C: ConnectionApi,

source§

fn get_vesting<'life0, 'async_trait>( &'life0 self, who: AccountId32, at: Option<H256> ) -> Pin<Box<dyn Future<Output = Vec<VestingInfo<u128, u32>, Global>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Returns [VestingInfo] of the given account. Read more
source§

impl<S> VestingUserApi for Swhere S: SignedConnectionApi,

source§

fn vest<'life0, 'async_trait>( &'life0 self, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for vest call.
source§

fn vest_other<'life0, 'async_trait>( &'life0 self, status: TxStatus, other: AccountId32 ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for vest_other call.
source§

fn vested_transfer<'life0, 'async_trait>( &'life0 self, receiver: AccountId32, schedule: VestingInfo<u128, u32>, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for vested_transfer call.
source§

fn merge_schedules<'life0, 'async_trait>( &'life0 self, idx1: u32, idx2: u32, status: TxStatus ) -> Pin<Box<dyn Future<Output = Result<TxInfo, Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, S: 'async_trait,

API for merge_schedules call.
source§

impl<C> WaitingExt for Cwhere C: AsConnection + Sync,

source§

fn wait_for_n_sessions<'life0, 'async_trait>( &'life0 self, n: u32, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Wait for a given number of sessions to wait from a current session. n - number of sessions to wait from now Read more
source§

fn wait_for_n_eras<'life0, 'async_trait>( &'life0 self, n: u32, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>where 'life0: 'async_trait, C: 'async_trait,

Wait for a given number of eras to wait from a current era. n - number of eras to wait from now Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> MaybeSend for Twhere T: Send,