pub struct DdkNode {
pub node: Arc<DlcDevKit<NostrDlc, PostgresStore, KormirOracleClient>>,
}Fields§
§node: Arc<DlcDevKit<NostrDlc, PostgresStore, KormirOracleClient>>Implementations§
Trait Implementations§
Source§impl DdkRpc for DdkNode
impl DdkRpc for DdkNode
fn info<'life0, 'async_trait>(
&'life0 self,
_request: Request<InfoRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<InfoResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send_offer<'life0, 'async_trait>(
&'life0 self,
request: Request<SendOfferRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SendOfferResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn accept_offer<'life0, 'async_trait>(
&'life0 self,
request: Request<AcceptOfferRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AcceptOfferResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn new_address<'life0, 'async_trait>(
&'life0 self,
_request: Request<NewAddressRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<NewAddressResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_offers<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListOffersRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListOffersResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wallet_balance<'life0, 'async_trait>(
&'life0 self,
_request: Request<WalletBalanceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WalletBalanceResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_wallet_transactions<'life0, 'async_trait>(
&'life0 self,
_request: Request<GetWalletTransactionsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetWalletTransactionsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_utxos<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListUtxosRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListUtxosResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_peers<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListPeersRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListPeersResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect_peer<'life0, 'async_trait>(
&'life0 self,
request: Request<ConnectRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ConnectResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_oracles<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListOraclesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListOraclesResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_contracts<'life0, 'async_trait>(
&'life0 self,
_request: Request<ListContractsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListContractsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
request: Request<SendRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SendResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn oracle_announcements<'life0, 'async_trait>(
&'life0 self,
request: Request<OracleAnnouncementsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<OracleAnnouncementsResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_enum<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateEnumRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateEnumResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wallet_sync<'life0, 'async_trait>(
&'life0 self,
_request: Request<WalletSyncRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<WalletSyncResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sync<'life0, 'async_trait>(
&'life0 self,
_request: Request<SyncRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SyncResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create_numeric<'life0, 'async_trait>(
&'life0 self,
request: Request<CreateNumericRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<CreateNumericResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn sign_announcement<'life0, 'async_trait>(
&'life0 self,
request: Request<SignRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<SignResponse>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl Freeze for DdkNode
impl !RefUnwindSafe for DdkNode
impl Send for DdkNode
impl Sync for DdkNode
impl Unpin for DdkNode
impl !UnwindSafe for DdkNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request