Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: minor fixes on collectibles #3795

Merged
merged 3 commits into from
Feb 5, 2022
Merged
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
2 changes: 1 addition & 1 deletion applications/tari_base_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tari_service_framework = { path = "../../base_layer/service_framework" }
tari_shutdown = { path = "../../infrastructure/shutdown" }
tari_utilities = "0.3.0"

anyhow = "1.0.32"
anyhow = "1.0.53"
bincode = "1.3.1"
chrono = { version = "0.4.19", default-features = false }
config = { version = "0.9.3" }
Expand Down
19 changes: 12 additions & 7 deletions applications/tari_collectibles/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
windows_subsystem = "windows"
)]

use std::error::Error;

use tari_app_utilities::initialization::init_configuration;
use tari_common::configuration::bootstrap::ApplicationType;

Expand All @@ -24,12 +26,14 @@ mod schema;
mod status;
mod storage;

fn main() {
#[allow(unused_mut)] // config isn't mutated on windows
let (bootstrap, mut config, _) = init_configuration(ApplicationType::Collectibles).unwrap();
let state = ConcurrentAppState::new(bootstrap.base_path, config.collectibles_config.unwrap());
fn main() -> Result<(), Box<dyn Error>> {
let (bootstrap, config, _) = init_configuration(ApplicationType::Collectibles)?;
let state = ConcurrentAppState::new(
bootstrap.base_path,
config.collectibles_config.unwrap_or_default(),
);

tauri::Builder::default()
let result = tauri::Builder::default()
.manage(state)
.invoke_handler(tauri::generate_handler![
commands::create_db,
Expand All @@ -53,6 +57,7 @@ fn main() {
commands::wallets::wallets_unlock,
commands::wallets::wallets_seed_words,
])
.run(tauri::generate_context!())
.expect("error while running tauri application");
.run(tauri::generate_context!())?;

Ok(result)
}
2 changes: 1 addition & 1 deletion applications/tari_collectibles/web-app/src/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class DashboardContent extends React.Component {
name: o.name,
description: o.description,
public_key: toHexString(o.unique_id),
image_url: o.image_url || "asset-no-img.png",
image_url: o.image || "asset-no-img.png",
})),
isLoading: false,
});
Expand Down
2 changes: 1 addition & 1 deletion applications/tari_merge_mining_proxy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tari_app_utilities = { path = "../tari_app_utilities" }
tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch = "main" }
tari_utilities = "^0.3"

anyhow = "1.0.40"
anyhow = "1.0.53"
bincode = "1.3.1"
bytes = "1.1"
chrono = { version = "0.4.6", default-features = false }
Expand Down
2 changes: 1 addition & 1 deletion applications/tari_validator_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ tari_dan_core = {path = "../../dan_layer/core"}
tari_dan_storage_sqlite = {path = "../../dan_layer/storage_sqlite"}
tari_common_types = {path = "../../base_layer/common_types"}

anyhow = "1.0.32"
anyhow = "1.0.53"
async-trait = "0.1.50"
blake2 = "0.9.2"
clap = "2.33.3"
Expand Down
2 changes: 1 addition & 1 deletion base_layer/p2p/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ tari_shutdown = { version = "^0.27", path = "../../infrastructure/shutdown" }
tari_storage = { version = "^0.27", path = "../../infrastructure/storage" }
tari_utilities = "^0.3"

anyhow = "1.0.32"
anyhow = "1.0.53"
bytes = "0.5"
chrono = { version = "0.4.19", default-features = false, features = ["serde"] }
fs2 = "0.3.0"
Expand Down
2 changes: 1 addition & 1 deletion base_layer/service_framework/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ license = "BSD-3-Clause"
[dependencies]
tari_shutdown = { version = "^0.27", path = "../../infrastructure/shutdown" }

anyhow = "1.0.32"
anyhow = "1.0.53"
async-trait = "0.1.50"
futures = { version = "^0.3.16", features = ["async-await"] }
log = "0.4.8"
Expand Down
4 changes: 2 additions & 2 deletions common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ sha2 = "0.9.5"
path-clean = "0.1.0"
tari_storage = { version = "^0.27", path = "../infrastructure/storage"}

anyhow = { version = "1.0", optional = true }
anyhow = { version = "1.0.53", optional = true }
git2 = { version = "0.8", optional = true }
prost-build = { version = "0.9.0", optional = true }
toml = { version = "0.5", optional = true }
Expand All @@ -37,4 +37,4 @@ tempfile = "3.1.0"

[dev-dependencies]
tari_test_utils = { version = "^0.27", path = "../infrastructure/test_utils"}
anyhow = "1.0"
anyhow = "1.0.53"
10 changes: 10 additions & 0 deletions common/src/configuration/collectibles_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ pub struct CollectiblesConfig {
pub wallet_grpc_address: SocketAddr,
}

impl Default for CollectiblesConfig {
fn default() -> Self {
Self {
validator_node_grpc_address: default_validator_node_grpc_address(),
base_node_grpc_address: default_base_node_grpc_address(),
wallet_grpc_address: default_wallet_grpc_address(),
}
}
}

fn default_validator_node_grpc_address() -> SocketAddr {
SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 18144)
}
Expand Down
2 changes: 1 addition & 1 deletion comms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tari_crypto = { git = "https://github.com/tari-project/tari-crypto.git", branch
tari_storage = { version = "^0.27", path = "../infrastructure/storage" }
tari_shutdown = { version = "^0.27", path = "../infrastructure/shutdown" }

anyhow = "1.0.32"
anyhow = "1.0.53"
async-trait = "0.1.36"
bitflags = "1.0.4"
blake2 = "0.9.0"
Expand Down
2 changes: 1 addition & 1 deletion comms/dht/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ tari_shutdown = { version = "^0.27", path = "../../infrastructure/shutdown" }
tari_storage = { version = "^0.27", path = "../../infrastructure/storage" }
tari_common_sqlite = { path = "../../common_sqlite" }

anyhow = "1.0.32"
anyhow = "1.0.53"
bitflags = "1.2.0"
bytes = "0.5"
chacha20 = "0.7.1"
Expand Down
2 changes: 1 addition & 1 deletion dan_layer/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tari_core = {path = "../../base_layer/core"}
tari_dan_common_types = {path = "../common_types"}
tari_common_types = {path = "../../base_layer/common_types"}

anyhow = "1.0.32"
anyhow = "1.0.53"
async-trait = "0.1.50"
blake2 = "0.9.2"
clap = "2.33.3"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ reqwest = { version = "0.11.4", default-features = false, optional = true }
tokio = { version = "1.7.1", optional = true, features = ["time", "rt-multi-thread"] }
warp = { version = "0.3.1", optional = true, default-features = false }
thiserror = "1.0.25"
anyhow = "1.0.41"
anyhow = "1.0.53"

[features]
pull = ["warp"]
Expand Down