pub trait AccountExtReader {
// Required methods
fn changed_accounts_with_range(
&self,
_range: RangeInclusive<BlockNumber>,
) -> ProviderResult<BTreeSet<Address>>;
fn basic_accounts(
&self,
_iter: impl IntoIterator<Item = Address>,
) -> ProviderResult<Vec<(Address, Option<Account>)>>;
fn changed_accounts_and_blocks_with_range(
&self,
range: RangeInclusive<BlockNumber>,
) -> ProviderResult<BTreeMap<Address, Vec<BlockNumber>>>;
}Expand description
Account reader
Required Methods§
Sourcefn changed_accounts_with_range(
&self,
_range: RangeInclusive<BlockNumber>,
) -> ProviderResult<BTreeSet<Address>>
fn changed_accounts_with_range( &self, _range: RangeInclusive<BlockNumber>, ) -> ProviderResult<BTreeSet<Address>>
Iterate over account changesets and return all account address that were changed.
Sourcefn basic_accounts(
&self,
_iter: impl IntoIterator<Item = Address>,
) -> ProviderResult<Vec<(Address, Option<Account>)>>
fn basic_accounts( &self, _iter: impl IntoIterator<Item = Address>, ) -> ProviderResult<Vec<(Address, Option<Account>)>>
Get basic account information for multiple accounts. A more efficient version than calling
AccountReader::basic_account repeatedly.
Returns None if the account doesn’t exist.
Sourcefn changed_accounts_and_blocks_with_range(
&self,
range: RangeInclusive<BlockNumber>,
) -> ProviderResult<BTreeMap<Address, Vec<BlockNumber>>>
fn changed_accounts_and_blocks_with_range( &self, range: RangeInclusive<BlockNumber>, ) -> ProviderResult<BTreeMap<Address, Vec<BlockNumber>>>
Iterate over account changesets and return all account addresses that were changed alongside each specific set of blocks.
NOTE: Get inclusive range of blocks.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".