pub trait AuthorityAPI {
// Required methods
fn submit_transaction<'life0, 'async_trait>(
&'life0 self,
request: RawSubmitTxRequest,
client_addr: Option<SocketAddr>,
) -> Pin<Box<dyn Future<Output = Result<RawSubmitTxResponse, 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;
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_soft_bundle_certificates_v3<'life0, 'async_trait>(
&'life0 self,
request: HandleSoftBundleCertificatesRequestV3,
client_addr: Option<SocketAddr>,
) -> Pin<Box<dyn Future<Output = Result<HandleSoftBundleCertificatesResponseV3, 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§
fn submit_transaction<'life0, 'async_trait>(
&'life0 self,
request: RawSubmitTxRequest,
client_addr: Option<SocketAddr>,
) -> Pin<Box<dyn Future<Output = Result<RawSubmitTxResponse, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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_soft_bundle_certificates_v3<'life0, 'async_trait>(
&'life0 self,
request: HandleSoftBundleCertificatesRequestV3,
client_addr: Option<SocketAddr>,
) -> Pin<Box<dyn Future<Output = Result<HandleSoftBundleCertificatesResponseV3, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle_soft_bundle_certificates_v3<'life0, 'async_trait>(
&'life0 self,
request: HandleSoftBundleCertificatesRequestV3,
client_addr: Option<SocketAddr>,
) -> Pin<Box<dyn Future<Output = Result<HandleSoftBundleCertificatesResponseV3, SuiError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Execute a Soft Bundle with multiple certificates.
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.