Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/tests-rs-workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ jobs:
--package dpp \
--package drive-abci \
--package dash-sdk \
--package dash-context-provider \
--package dash-async \
--package platform-value \
--package platform-encryption \
Expand Down
14 changes: 11 additions & 3 deletions packages/rs-context-provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ description = "Context provider traits for Dash Platform SDK"

[dependencies]
dash-async = { path = "../rs-dash-async" }
dpp = { path = "../rs-dpp", default-features = false }
dpp = { path = "../rs-dpp", default-features = false, features = [
"bls-signatures",
] }
drive = { path = "../rs-drive", default-features = false, features = [
"verify",
] }
thiserror = "1.0"
hex = { version = "0.4", optional = true }
hex = "0.4"
serde_json = { version = "1.0", optional = true }

[features]
mocks = ["hex", "serde_json", "dpp/serde-conversion"]
mocks = ["serde_json", "dpp/serde-conversion"]
# Lets `LocalContextProvider::with_system_contracts` serve system data
# contracts. Each contract it serves must also be compiled into dpp, through
# the matching feature below or the embedder's own dpp features.
system-contracts = ["dpp/system_contracts"]
dpns-contract = ["system-contracts", "dpp/dpns-contract"]
dashpay-contract = ["system-contracts", "dpp/dashpay-contract"]
2 changes: 2 additions & 0 deletions packages/rs-context-provider/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
//! to fetch network state, data contracts, and quorum public keys.

pub mod error;
pub mod local;
pub mod provider;

pub use error::ContextProviderError;
pub use local::LocalContextProvider;
pub use provider::{ContextProvider, DataContractProvider, QuorumKeyFuture};

#[cfg(feature = "mocks")]
Expand Down
Loading
Loading