Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ anyhow = "1.0"
async-trait = "0.1"
bcs = "0.1"
iota-sdk = { git = "https://github.com/iotaledger/iota.git", package = "iota-sdk", tag = "v1.2.3" }
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.6.1", default-features = false, package = "iota_interaction" }
iota_interaction_rust = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.6.1", default-features = false, package = "iota_interaction_rust" }
iota_interaction_ts = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.6.1", default-features = false, package = "iota_interaction_ts" }
product_common = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.6.1", default-features = false, package = "product_common" }
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.7.0", default-features = false, package = "iota_interaction" }
iota_interaction_rust = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.7.0", default-features = false, package = "iota_interaction_rust" }
iota_interaction_ts = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.7.0", default-features = false, package = "iota_interaction_ts" }
product_common = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.7.0", default-features = false, package = "product_common" }
serde = { version = "1.0", default-features = false, features = ["alloc", "derive"] }
serde_json = { version = "1.0", default-features = false }
strum = { version = "0.27", default-features = false, features = ["std", "derive"] }
Expand Down
10 changes: 5 additions & 5 deletions bindings/wasm/notarization_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ async-trait = { version = "0.1", default-features = false }
bcs = "0.1.6"
console_error_panic_hook = { version = "0.1" }
fastcrypto = { git = "https://github.com/MystenLabs/fastcrypto", rev = "2f502fd8570fe4e9cff36eea5bbd6fef22002898", package = "fastcrypto" }
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.6.1", package = "iota_interaction", default-features = false }
iota_interaction_ts = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.6.1", package = "iota_interaction_ts" }
iota_interaction = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.7.0", package = "iota_interaction", default-features = false }
iota_interaction_ts = { git = "https://github.com/iotaledger/product-core.git", tag = "v0.7.0", package = "iota_interaction_ts" }
js-sys = { version = "0.3.61" }
prefix-hex = { version = "0.7", default-features = false }
serde = { version = "1.0", features = ["derive"] }
Expand All @@ -37,14 +37,14 @@ wasm-bindgen-futures = { version = "0.4", default-features = false }

[dependencies.product_common]
git = "https://github.com/iotaledger/product-core.git"
tag = "v0.6.1"
tag = "v0.7.0"
package = "product_common"
features = ["core-client", "transaction", "bindings", "binding-utils"]
features = ["core-client", "transaction", "bindings", "binding-utils", "gas-station", "default-http-client"]

[dependencies.notarization]
path = "../../../notarization-rs"
default-features = false
features = []
features = ["gas-station", "default-http-client"]

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies]
getrandom = { version = "0.3", default-features = false, features = ["wasm_js"] }
Expand Down
3 changes: 3 additions & 0 deletions bindings/wasm/notarization_wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ pub(crate) mod wasm_notarization_client_read_only;
pub(crate) mod wasm_time_lock;
pub(crate) mod wasm_types;

// Export all product_common's bindings (e.g. Transaction, CoreClient, gas-station stuff, etc).
pub use product_common::bindings::*;

/// Initializes the console error panic hook for better error messages
#[wasm_bindgen(start)]
pub fn start() -> Result<(), JsValue> {
Expand Down
4 changes: 4 additions & 0 deletions notarization-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ send-sync = [
]
# Enables `Send` + `Sync` bounds for the storage traits.
send-sync-storage = ["secret-storage/send-sync-storage"]
# Enables an high-level integration with IOTA gas-station.
gas-station = ["product_common/gas-station"]
# Uses a default HTTP Client instead of a user-provided one.
default-http-client = ["product_common/default-http-client"]
6 changes: 6 additions & 0 deletions notarization-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ pub(crate) mod package;

pub use client::full_client::NotarizationClient;
pub use client::read_only::NotarizationClientReadOnly;

/// HTTP utilities to implement the trait [HttpClient](product_common::http_client::HttpClient).
#[cfg(feature = "gas-station")]
pub mod http_client {
pub use product_common::http_client::*;
}
Comment thread
UMR1352 marked this conversation as resolved.
Outdated
Loading