pub trait TempoProviderExt: Provider<TempoNetwork> {
// Provided methods
fn account_keychain(&self) -> IAccountKeychainInstance<&Self, TempoNetwork>
where Self: Sized { ... }
fn nonce_manager(&self) -> INonceInstance<&Self, TempoNetwork>
where Self: Sized { ... }
fn get_transaction_count_with_nonce_key<'life0, 'async_trait>(
&'life0 self,
account: Address,
nonce_key: U256,
) -> Pin<Box<dyn Future<Output = ContractResult<u64>> + Send + 'async_trait>>
where Self: Sized + Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_keychain_key<'life0, 'async_trait>(
&'life0 self,
account: Address,
key_id: Address,
) -> Pin<Box<dyn Future<Output = ContractResult<KeyInfo>> + Send + 'async_trait>>
where Self: Sized + Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_keychain_remaining_limit<'life0, 'async_trait>(
&'life0 self,
account: Address,
key_id: Address,
token: Address,
) -> Pin<Box<dyn Future<Output = ContractResult<U256>> + Send + 'async_trait>>
where Self: Sized + Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_keychain_remaining_limit_with_period<'life0, 'async_trait>(
&'life0 self,
account: Address,
key_id: Address,
token: Address,
) -> Pin<Box<dyn Future<Output = ContractResult<getRemainingLimitReturn>> + Send + 'async_trait>>
where Self: Sized + Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_keychain_allowed_calls<'life0, 'async_trait>(
&'life0 self,
account: Address,
key_id: Address,
) -> Pin<Box<dyn Future<Output = ContractResult<Option<Vec<CallScope>>>> + Send + 'async_trait>>
where Self: Sized + Sync + 'async_trait,
'life0: 'async_trait { ... }
fn get_keychain_transaction_key<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContractResult<Address>> + Send + 'async_trait>>
where Self: Sized + Sync + 'async_trait,
'life0: 'async_trait { ... }
fn is_hardfork_active<'life0, 'async_trait>(
&'life0 self,
hardfork: TempoHardfork,
) -> Pin<Box<dyn Future<Output = Result<bool, TransportError>> + Send + 'async_trait>>
where Self: Sized + Sync + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
Extension trait for [Provider] with Tempo-specific functionality.
Provided Methods§
Sourcefn account_keychain(&self) -> IAccountKeychainInstance<&Self, TempoNetwork>where
Self: Sized,
fn account_keychain(&self) -> IAccountKeychainInstance<&Self, TempoNetwork>where
Self: Sized,
Returns a typed instance for the Account Keychain precompile.
Sourcefn nonce_manager(&self) -> INonceInstance<&Self, TempoNetwork>where
Self: Sized,
fn nonce_manager(&self) -> INonceInstance<&Self, TempoNetwork>where
Self: Sized,
Returns a typed instance for the Nonce Manager precompile.
Sourcefn get_transaction_count_with_nonce_key<'life0, 'async_trait>(
&'life0 self,
account: Address,
nonce_key: U256,
) -> Pin<Box<dyn Future<Output = ContractResult<u64>> + Send + 'async_trait>>
fn get_transaction_count_with_nonce_key<'life0, 'async_trait>( &'life0 self, account: Address, nonce_key: U256, ) -> Pin<Box<dyn Future<Output = ContractResult<u64>> + Send + 'async_trait>>
Returns the current nonce for an account and nonce key.
Protocol nonce key 0 uses eth_getTransactionCount. Expiring nonce transactions always
use nonce 0; all other nonce keys are read from the Nonce Manager precompile.
Sourcefn get_keychain_key<'life0, 'async_trait>(
&'life0 self,
account: Address,
key_id: Address,
) -> Pin<Box<dyn Future<Output = ContractResult<KeyInfo>> + Send + 'async_trait>>
fn get_keychain_key<'life0, 'async_trait>( &'life0 self, account: Address, key_id: Address, ) -> Pin<Box<dyn Future<Output = ContractResult<KeyInfo>> + Send + 'async_trait>>
Returns information about a key authorized for an account.
Sourcefn get_keychain_remaining_limit<'life0, 'async_trait>(
&'life0 self,
account: Address,
key_id: Address,
token: Address,
) -> Pin<Box<dyn Future<Output = ContractResult<U256>> + Send + 'async_trait>>
fn get_keychain_remaining_limit<'life0, 'async_trait>( &'life0 self, account: Address, key_id: Address, token: Address, ) -> Pin<Box<dyn Future<Output = ContractResult<U256>> + Send + 'async_trait>>
Returns the remaining spending limit for an account/key/token tuple.
Sourcefn get_keychain_remaining_limit_with_period<'life0, 'async_trait>(
&'life0 self,
account: Address,
key_id: Address,
token: Address,
) -> Pin<Box<dyn Future<Output = ContractResult<getRemainingLimitReturn>> + Send + 'async_trait>>
fn get_keychain_remaining_limit_with_period<'life0, 'async_trait>( &'life0 self, account: Address, key_id: Address, token: Address, ) -> Pin<Box<dyn Future<Output = ContractResult<getRemainingLimitReturn>> + Send + 'async_trait>>
Returns the remaining spending limit together with the current period end.
Sourcefn get_keychain_allowed_calls<'life0, 'async_trait>(
&'life0 self,
account: Address,
key_id: Address,
) -> Pin<Box<dyn Future<Output = ContractResult<Option<Vec<CallScope>>>> + Send + 'async_trait>>
fn get_keychain_allowed_calls<'life0, 'async_trait>( &'life0 self, account: Address, key_id: Address, ) -> Pin<Box<dyn Future<Output = ContractResult<Option<Vec<CallScope>>>> + Send + 'async_trait>>
Returns the configured call scopes for an account key.
None means unrestricted. Some(vec![]) means scoped deny-all.
Sourcefn get_keychain_transaction_key<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ContractResult<Address>> + Send + 'async_trait>>
fn get_keychain_transaction_key<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ContractResult<Address>> + Send + 'async_trait>>
Returns the key ID used in the current transaction context.
Sourcefn is_hardfork_active<'life0, 'async_trait>(
&'life0 self,
hardfork: TempoHardfork,
) -> Pin<Box<dyn Future<Output = Result<bool, TransportError>> + Send + 'async_trait>>
fn is_hardfork_active<'life0, 'async_trait>( &'life0 self, hardfork: TempoHardfork, ) -> Pin<Box<dyn Future<Output = Result<bool, TransportError>> + Send + 'async_trait>>
Returns true if the given Tempo hardfork is active on the connected chain.
Queries the node’s tempo_forkSchedule RPC to determine the currently active hardfork.