Skip to main content

gmsol_chainlink_datastreams/
lib.rs

1/// Report.
2pub mod report;
3
4/// Interface.
5pub mod interface;
6
7/// Verifier Program.
8pub mod verifier;
9
10/// Utils.
11pub mod utils;
12
13/// Error type.
14pub mod error;
15
16/// Mock Program.
17#[cfg(feature = "mock")]
18pub mod mock;
19
20/// GMSOL support.
21#[cfg(feature = "gmsol")]
22pub mod gmsol;
23
24pub use chainlink_data_streams_report;
25pub use error::Error;
26pub use report::Report;
27
28/// Type that can be created from [`Report`].
29pub trait FromChainlinkReport: Sized {
30    /// Create from [`Report`].
31    fn from_chainlink_report(report: &Report) -> Result<Self, Error>;
32}