Skip to main content

zk_citadel_moat/
lib.rs

1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4//
5// Copyright (c) DUSK NETWORK. All rights reserved.
6
7//! Library for submitting license requests to the Dusk blockchain, as well as
8//! for scanning the Dusk blockchain for requests and for querying
9//! contracts' methods.
10//!
11//! Integration test for the library are provided in the `integration-test`
12//! subproject.
13
14mod bc_types;
15mod blockchain_payloads;
16mod blockchain_queries;
17mod circuit;
18mod citadel_licenses;
19mod citadel_queries;
20mod citadel_requests;
21mod citadel_types;
22mod contract_queries;
23mod error;
24mod json_loader;
25mod utils;
26
27pub mod api;
28pub mod license_provider;
29pub mod wallet_accessor;
30
31pub use bc_types::*;
32pub use blockchain_payloads::{
33    PayloadExtractor, PayloadRetriever, PayloadSender,
34};
35pub use blockchain_queries::{BcInquirer, CrsGetter, TxAwaiter, TxInquirer};
36pub use circuit::*;
37pub use citadel_licenses::LicenseUser;
38pub use citadel_queries::{
39    CitadelInquirer, CitadelInquirerWs, LicenseSession, LicenseSessionId,
40};
41pub use citadel_requests::{RequestCreator, RequestScanner, RequestSender};
42pub use citadel_types::*;
43pub use contract_queries::{
44    block::*, ContractInquirer, ContractInquirerWs, StreamAux,
45};
46pub use error::Error;
47pub use json_loader::JsonLoader;
48pub use utils::MoatCoreUtils;