Trait RpcIndexes
Source pub trait RpcIndexes: Send + Sync {
// Required methods
fn get_epoch_info(&self, epoch: EpochId) -> Result<Option<EpochInfo>>;
fn get_transaction_info(
&self,
digest: &TransactionDigest,
) -> Result<Option<TransactionInfo>>;
fn owned_objects_iter(
&self,
owner: SuiAddress,
object_type: Option<StructTag>,
cursor: Option<OwnedObjectInfo>,
) -> Result<Box<dyn Iterator<Item = Result<OwnedObjectInfo, TypedStoreError>> + '_>>;
fn dynamic_field_iter(
&self,
parent: ObjectID,
cursor: Option<ObjectID>,
) -> Result<Box<dyn Iterator<Item = Result<DynamicFieldKey, TypedStoreError>> + '_>>;
fn get_coin_info(&self, coin_type: &StructTag) -> Result<Option<CoinInfo>>;
fn get_balance(
&self,
owner: &SuiAddress,
coin_type: &StructTag,
) -> Result<Option<BalanceInfo>>;
fn balance_iter(
&self,
owner: &SuiAddress,
cursor: Option<(SuiAddress, StructTag)>,
) -> Result<BalanceIterator<'_>>;
fn package_versions_iter(
&self,
original_id: ObjectID,
cursor: Option<u64>,
) -> Result<Box<dyn Iterator<Item = Result<(u64, ObjectID), TypedStoreError>> + '_>>;
fn get_highest_indexed_checkpoint_seq_number(
&self,
) -> Result<Option<CheckpointSequenceNumber>>;
fn authenticated_event_iter(
&self,
stream_id: SuiAddress,
start_checkpoint: u64,
start_transaction_idx: Option<u32>,
start_event_idx: Option<u32>,
end_checkpoint: u64,
limit: u32,
) -> Result<Box<dyn Iterator<Item = Result<(u64, u32, u32, Event), TypedStoreError>> + '_>>;
}