daml-bridge 0.1.0

Daml JSON<>GRPC bridge
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::config::BridgeConfigData;
use daml_grpc::DamlGrpcClient;
use daml_lf::element::DamlArchive;
use std::sync::Arc;
use tokio::sync::RwLock;

/// A [`DamlArchive`] suitable for use by a multi-threaded async executor.
pub type Archive = Arc<RwLock<DamlArchive<'static>>>;

/// A [`DamlGrpcClient`] suitable for use by a multi-threaded async executor.
pub type GrpcClient = Arc<DamlGrpcClient>;

/// A [`BridgeConfigData`] suitable for use by a multi-threaded async executor.
pub type BridgeConfig = Arc<BridgeConfigData>;