spark_sdk/wallet/internal_handlers/traits/deposit.rs
1use crate::error::SparkSdkError;
2use crate::signer::traits::SparkSigner;
3use tonic::async_trait;
4
5pub struct GenerateDepositAddressSdkResponse {
6 pub deposit_address: spark_protos::spark::Address,
7 pub signing_public_key: Vec<u8>,
8}
9#[async_trait]
10pub(crate) trait DepositInternalHandlers<S: SparkSigner + Send + Sync> {
11 async fn validate_deposit_address(
12 &self,
13 address: spark_protos::spark::Address,
14 user_pubkey: Vec<u8>,
15 ) -> Result<(), SparkSdkError>;
16}