Trait diem_validator_interface::DiemValidatorInterface [−][src]
pub trait DiemValidatorInterface: Sync {
fn get_account_state_by_version(
&self,
account: AccountAddress,
version: Version
) -> Result<Option<AccountState>>;
fn get_events(
&self,
key: &EventKey,
start_seq: u64,
limit: u64
) -> Result<Vec<EventWithProof>>;
fn get_committed_transactions(
&self,
start: Version,
limit: u64
) -> Result<Vec<Transaction>>;
fn get_latest_version(&self) -> Result<Version>;
fn get_version_by_account_sequence(
&self,
account: AccountAddress,
seq: u64
) -> Result<Option<Version>>;
fn get_diem_framework_modules_by_version(
&self,
version: Version
) -> Result<Vec<CompiledModule>> { ... }
fn get_admin_accounts(
&self,
version: Version
) -> Result<Vec<(AccountAddress, AccountState)>> { ... }
}Required methods
fn get_account_state_by_version(
&self,
account: AccountAddress,
version: Version
) -> Result<Option<AccountState>>
fn get_events(
&self,
key: &EventKey,
start_seq: u64,
limit: u64
) -> Result<Vec<EventWithProof>>
fn get_committed_transactions(
&self,
start: Version,
limit: u64
) -> Result<Vec<Transaction>>
fn get_latest_version(&self) -> Result<Version>
Provided methods
fn get_diem_framework_modules_by_version(
&self,
version: Version
) -> Result<Vec<CompiledModule>>
fn get_admin_accounts(
&self,
version: Version
) -> Result<Vec<(AccountAddress, AccountState)>>
fn get_admin_accounts(
&self,
version: Version
) -> Result<Vec<(AccountAddress, AccountState)>>
Get the account states of the most critical accounts, including:
- Diem Framework code address
- Diem Root address
- Treasury Compliance address
- All validator addresses