Skip to main content

cdk_mint_rpc/
lib.rs

1#![doc = include_str!("../README.md")]
2
3pub mod proto;
4
5mod wallet_info;
6
7pub mod mint_rpc_cli;
8
9pub use proto::*;
10pub use wallet_info::{
11    DynWalletInfoProvider, WalletAddressPage, WalletInfoError, WalletInfoProvider,
12    WalletTransactionPage,
13};
14
15/// Type alias for the CdkMintClient that works with any tower service
16pub type CdkMintClient<S> = cdk_mint_client::CdkMintClient<S>;
17
18/// Type alias for CdkMintClient with the version header interceptor over a Channel
19pub type InterceptedCdkMintClient = cdk_mint_client::CdkMintClient<
20    tonic::codegen::InterceptedService<
21        tonic::transport::Channel,
22        cdk_common::grpc::VersionInterceptor,
23    >,
24>;
25
26/// Type alias for WalletServiceClient with the version header interceptor over a Channel
27pub type InterceptedWalletServiceClient = wallet::wallet_service_client::WalletServiceClient<
28    tonic::codegen::InterceptedService<
29        tonic::transport::Channel,
30        cdk_common::grpc::VersionInterceptor,
31    >,
32>;