Trait sui_core::authority_client::AuthorityAPI
source · pub trait AuthorityAPI {
// Required methods
fn handle_transaction<'life0, 'async_trait>(
&'life0 self,
transaction: Transaction,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleTransactionResponse, SuiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_certificate_v2<'life0, 'async_trait>(
&'life0 self,
certificate: CertifiedTransaction,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleCertificateResponseV2, SuiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_certificate_v3<'life0, 'async_trait>(
&'life0 self,
request: HandleCertificateRequestV3,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleCertificateResponseV3, SuiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_object_info_request<'life0, 'async_trait>(
&'life0 self,
request: ObjectInfoRequest
) -> Pin<Box<dyn Future<Output = Result<ObjectInfoResponse, SuiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_transaction_info_request<'life0, 'async_trait>(
&'life0 self,
request: TransactionInfoRequest
) -> Pin<Box<dyn Future<Output = Result<TransactionInfoResponse, SuiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_checkpoint<'life0, 'async_trait>(
&'life0 self,
request: CheckpointRequest
) -> Pin<Box<dyn Future<Output = Result<CheckpointResponse, SuiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_checkpoint_v2<'life0, 'async_trait>(
&'life0 self,
request: CheckpointRequestV2
) -> Pin<Box<dyn Future<Output = Result<CheckpointResponseV2, SuiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_system_state_object<'life0, 'async_trait>(
&'life0 self,
request: SystemStateRequest
) -> Pin<Box<dyn Future<Output = Result<SuiSystemState, SuiError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Required Methods§
sourcefn handle_transaction<'life0, 'async_trait>(
&'life0 self,
transaction: Transaction,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleTransactionResponse, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_transaction<'life0, 'async_trait>(
&'life0 self,
transaction: Transaction,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleTransactionResponse, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initiate a new transaction to a Sui or Primary account.
sourcefn handle_certificate_v2<'life0, 'async_trait>(
&'life0 self,
certificate: CertifiedTransaction,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleCertificateResponseV2, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_certificate_v2<'life0, 'async_trait>(
&'life0 self,
certificate: CertifiedTransaction,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleCertificateResponseV2, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a certificate.
sourcefn handle_certificate_v3<'life0, 'async_trait>(
&'life0 self,
request: HandleCertificateRequestV3,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleCertificateResponseV3, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_certificate_v3<'life0, 'async_trait>(
&'life0 self,
request: HandleCertificateRequestV3,
client_addr: Option<SocketAddr>
) -> Pin<Box<dyn Future<Output = Result<HandleCertificateResponseV3, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a certificate.
sourcefn handle_object_info_request<'life0, 'async_trait>(
&'life0 self,
request: ObjectInfoRequest
) -> Pin<Box<dyn Future<Output = Result<ObjectInfoResponse, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_object_info_request<'life0, 'async_trait>(
&'life0 self,
request: ObjectInfoRequest
) -> Pin<Box<dyn Future<Output = Result<ObjectInfoResponse, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle Object information requests for this account.
sourcefn handle_transaction_info_request<'life0, 'async_trait>(
&'life0 self,
request: TransactionInfoRequest
) -> Pin<Box<dyn Future<Output = Result<TransactionInfoResponse, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_transaction_info_request<'life0, 'async_trait>(
&'life0 self,
request: TransactionInfoRequest
) -> Pin<Box<dyn Future<Output = Result<TransactionInfoResponse, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Handle Object information requests for this account.