eigen_services_avsregistry

Trait AvsRegistryService

Source
pub trait AvsRegistryService {
    // Required methods
    fn get_operators_avs_state_at_block<'life0, 'life1, 'async_trait>(
        &'life0 self,
        block_num: u32,
        quorum_nums: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<FixedBytes<32>, OperatorAvsState>, AvsRegistryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_quorums_avs_state_at_block<'life0, 'life1, 'async_trait>(
        &'life0 self,
        quorum_nums: &'life1 [u8],
        block_num: u32,
    ) -> Pin<Box<dyn Future<Output = Result<HashMap<u8, QuorumAvsState>, AvsRegistryError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: '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;
}

Required Methods§

Source

fn get_operators_avs_state_at_block<'life0, 'life1, 'async_trait>( &'life0 self, block_num: u32, quorum_nums: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<HashMap<FixedBytes<32>, OperatorAvsState>, AvsRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the operators AVS state at a specific block number

§Arguments
  • block_num - The block number to get the AVS state at
  • quorum_nums - The list of quorum numbers
§Returns

A hashmap containing the operator ID and the operator AVS state

Source

fn get_quorums_avs_state_at_block<'life0, 'life1, 'async_trait>( &'life0 self, quorum_nums: &'life1 [u8], block_num: u32, ) -> Pin<Box<dyn Future<Output = Result<HashMap<u8, QuorumAvsState>, AvsRegistryError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get the quorum AVS state at a specific block

§Arguments
  • quorum_nums - The list of quorum numbers
  • block_num - The block number
§Returns

A hashmap containing the quorum number and the quorum AVS state.

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 the signatures indices of quorum members for a specific block and checks if the indices are valid

§Arguments
  • reference_block_number - The reference 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

Implementors§