eigen_client_avsregistry::reader

Trait AvsRegistryReader

Source
pub trait AvsRegistryReader {
    // Required methods
    fn get_operators_stake_in_quorums_at_block<'life0, 'async_trait>(
        &'life0 self,
        block_number: u32,
        quorum_numbers: Bytes,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Operator>>, AvsRegistryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_check_signatures_indices<'life0, 'async_trait>(
        &'life0 self,
        reference_block_number: u32,
        quorum_numbers: Vec<u8>,
        non_signer_operator_ids: Vec<FixedBytes<32>>,
    ) -> Pin<Box<dyn Future<Output = Result<CheckSignaturesIndices, AvsRegistryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_operator_from_id<'life0, 'async_trait>(
        &'life0 self,
        operator_id: [u8; 32],
    ) -> Pin<Box<dyn Future<Output = Result<Address, AvsRegistryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Common methods for AvsRegistryChainReader

Required Methods§

Source

fn get_operators_stake_in_quorums_at_block<'life0, 'async_trait>( &'life0 self, block_number: u32, quorum_numbers: Bytes, ) -> Pin<Box<dyn Future<Output = Result<Vec<Vec<Operator>>, AvsRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get operators stake in quorums at a particular block

§Arguments
  • block_number - The block number.
  • quorum_numbers - The list of quorum numbers.
§Returns

A vector of operators, containing each operator’s address, id and stake.

Source

fn get_check_signatures_indices<'life0, 'async_trait>( &'life0 self, reference_block_number: u32, quorum_numbers: Vec<u8>, non_signer_operator_ids: Vec<FixedBytes<32>>, ) -> Pin<Box<dyn Future<Output = Result<CheckSignaturesIndices, AvsRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get signature indices

§Arguments
  • reference_block_number - The block number.
  • quorum_numbers - The list of quorum numbers.
  • non_signer_operator_ids - The list of non-signer operator ids.
§Returns

A struct containing the indices of the quorum members that signed, and the ones that didn’t

Source

fn get_operator_from_id<'life0, 'async_trait>( &'life0 self, operator_id: [u8; 32], ) -> Pin<Box<dyn Future<Output = Result<Address, AvsRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get operator from operator id

§Arguments
  • operator_id - The operator id.
§Returns

The operator address.

Implementors§