ex3_balance_vault_factory_client/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use async_trait::async_trait;
use ex3_node_types::settings::CandidWalletRegistrySetting;
use ex3_node_types::CanisterId;

use ex3_canister_client::{ActorResult, CanisterResult};

#[cfg(feature = "mock")]
pub mod mock;

pub mod canister_impl;

#[async_trait]
pub trait BalanceVaultFactory: Send + Sync {
    async fn accept_new_wallet_registry(
        &self,
        new_wallet_registry: CanisterId,
        new_wallet_registry_setting: CandidWalletRegistrySetting,
    ) -> CanisterResult<ActorResult<()>>;
    async fn capacity_alert(&self) -> CanisterResult<ActorResult<()>>;
}