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

chore: version bump v0.7.8 #1127

Merged
merged 7 commits into from
Nov 26, 2024
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
20 changes: 10 additions & 10 deletions .updater/latest.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"version": "0.7.5",
"version": "0.7.7",
"notes": "Tari Universe - See the assets to download this version and install",
"pub_date": "2024-11-22T16:12:05.610Z",
"pub_date": "2024-11-24T09:24:28.921Z",
"platforms": {
"linux-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFpUaW5xdU9DWHBDclRWUkgyR0hRNXBrWjl2TzBwdWljZjB4MEdaeUZMWWhUVW5oK2tQeVlqbWhUMmNXeUorNDVPTUQvWEEvZDJweFNFSS80SGh6RWdnPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMjkwODMzCWZpbGU6dGFyaS11bml2ZXJzZV8wLjcuNV9hbWQ2NC5BcHBJbWFnZS50YXIuZ3oKdktyQXZodFlDM3ordjdTd3UxRjNLdTZoM0RqOGtyU0VxQUFYM0lLSmhmeFRQaEFtYVlEbVdmL1ZUY3llNzlzSExGcFIvc1RzSWIvYUlRWmZBWU8yQUE9PQo=",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.5/tari-universe_0.7.5_amd64.AppImage.tar.gz"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFpzN05JN3FFRUdxYlZKNjlXa0NLYUVHdFNIQmJQUitiTkRsWW9vTHc4MVpRdGlPUFRDNkdOZkFES3pIQ2ZtQ2VRUmtrNVdiOUY4aW5mWE14N3pJUUFVPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyNDM5MTU3CWZpbGU6dGFyaS11bml2ZXJzZV8wLjcuN19hbWQ2NC5BcHBJbWFnZS50YXIuZ3oKeXZ4enFaTEcxSHV0TXpkaVJFODJTSHRVVStGRmQ2bEpyM281aEtpNHFDejgyVHV4T1pBZmRDSFdMU2dOWnNNU2hqTkN4ZFQrYVg3Q2RoWkVUMjFlQ2c9PQo=",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.7/tari-universe_0.7.7_amd64.AppImage.tar.gz"
},
"darwin-aarch64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOGJXQkxXMWhhUWVuTFFpWmJmNDNsenVXdEZlRyswYi8yVHVKdjRiclJ3QjFHOFh1NkcvMldDazVPUUR0RWM5N1h0emxIdkFRK0J5RHhxd3lkdnVEOFFjPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMjkxNTQwCWZpbGU6VGFyaSBVbml2ZXJzZS5hcHAudGFyLmd6CmErWVhCaXF0eWFlUHI0Zko5aHZwMk1lK05jaXdveGFZZHh1L2tKSDEwUTZzRHlTMlBWLzQrVlk2U2pZVGFNekpJemtiOGI0OGJ2NlJVL0xSUEVVREJ3PT0K",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.5/Tari.Universe_universal.app.tar.gz"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFlZOEZ4ckt1Skt4MzdhNnB5aVpSdmw0emNhem9NQkd4ck9jSUVTRndrUkRVcEt2eFRxVWZBRERDdlFZUHM4eGhLUUNOMEZrdVZsVG9wcmFpRzdHWmdBPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyNDM5NjE1CWZpbGU6VGFyaSBVbml2ZXJzZS5hcHAudGFyLmd6ClFJYjViNWxRcitWcmQ1ZW5MdmVPeDRkbGJ2ODBKWGMrbGRKSW5JUFNuNXR0RHJYczEvclI2L0VqVWdhZ2ZsemJocjdjVWxHdVpkRFo2cWhidnRPaUNRPT0K",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.7/Tari.Universe_universal.app.tar.gz"
},
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOGJXQkxXMWhhUWVuTFFpWmJmNDNsenVXdEZlRyswYi8yVHVKdjRiclJ3QjFHOFh1NkcvMldDazVPUUR0RWM5N1h0emxIdkFRK0J5RHhxd3lkdnVEOFFjPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMjkxNTQwCWZpbGU6VGFyaSBVbml2ZXJzZS5hcHAudGFyLmd6CmErWVhCaXF0eWFlUHI0Zko5aHZwMk1lK05jaXdveGFZZHh1L2tKSDEwUTZzRHlTMlBWLzQrVlk2U2pZVGFNekpJemtiOGI0OGJ2NlJVL0xSUEVVREJ3PT0K",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.5/Tari.Universe_universal.app.tar.gz"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFlZOEZ4ckt1Skt4MzdhNnB5aVpSdmw0emNhem9NQkd4ck9jSUVTRndrUkRVcEt2eFRxVWZBRERDdlFZUHM4eGhLUUNOMEZrdVZsVG9wcmFpRzdHWmdBPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyNDM5NjE1CWZpbGU6VGFyaSBVbml2ZXJzZS5hcHAudGFyLmd6ClFJYjViNWxRcitWcmQ1ZW5MdmVPeDRkbGJ2ODBKWGMrbGRKSW5JUFNuNXR0RHJYczEvclI2L0VqVWdhZ2ZsemJocjdjVWxHdVpkRFo2cWhidnRPaUNRPT0K",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.7/Tari.Universe_universal.app.tar.gz"
},
"windows-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOGZKT1BJdnNQREM3K2VoSmZFNXhNY3FaREtEM21EbnR2MktCdHdkU1MxZWlZQ053Y3hoY0lJSU53czJPRVFHbVF6NloycnNPa1pxbU5lY3ZQTEUvUWdNPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyMjkxOTIxCWZpbGU6VGFyaSBVbml2ZXJzZV8wLjcuNV94NjRfZW4tVVMubXNpLnppcAp0NjlpV2k4emxwSlRNNXRxRDU3YzFETzYxcU1Oc05IR0UxNEFHWFYwTDNJeitaZVFkNGpWOXYvSmZQTEFhMjRmZ0o0S2c2Z09USU5vMkFwRktuQUFDZz09Cg==",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.5/Tari.Universe_0.7.5_x64_en-US.msi.zip"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRbUtvKzlyYWhiOFhaWjJvS3pUUy93WkNpUUN5djZWUWNnSEJEWEVBSHp0SUt0ZVNhTkNLck9RazRxVmo2YTFtNjRTSTRsTXY1SDBKTjBZV1ZUWWprUktWR0MrRGxCQXdVPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzMyNDQwMjY0CWZpbGU6VGFyaSBVbml2ZXJzZV8wLjcuN194NjRfZW4tVVMubXNpLnppcAowSDlUVFVQVi9PNUFQRnhCbUhJTkdnMVduZFQzM1RjRVdrR0RwNG5NZlFucXRTbC9TMDVhYzZ3WXRQcTlYYUJTUkxJd1pJeGNrSVpkcmZTeCtBSDRCZz09Cg==",
"url": "https://github.com/tari-project/universe/releases/download/v0.7.7/Tari.Universe_0.7.7_x64_en-US.msi.zip"
}
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tari-universe",
"private": true,
"version": "0.7.7",
"version": "0.7.8",
"type": "module",
"scripts": {
"dev": "vite dev --mode development",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 26 additions & 26 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ description = "Tari Universe"
edition = "2021"
name = "tari-universe"
repository = "https://github.com/tari-project/universe"
version = "0.7.7"
version = "0.7.8"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[build-dependencies]
embed-resource = "2.5.0"
tauri-build = {version = "1.5.5", features = ["isolation"]}
tauri-build = { version = "1.5.5", features = ["isolation"] }

[dependencies]
anyhow = "1"
async-trait = "0.1.81"
async_zip = {version = "0.0.17", features = ["full"]}
async_zip = { version = "0.0.17", features = ["full"] }
auto-launch = "0.5.0"
base64 = "0.22.1"
blake2 = "0.10"
Expand All @@ -28,46 +28,46 @@ futures-lite = "2.3.0"
futures-util = "0.3.30"
human_format = "1.1.0"
jsonwebtoken = "9.3.0"
keyring = {version = "3.0.5", features = [
keyring = { version = "3.0.5", features = [
"windows-native",
"apple-native",
"linux-native",
]}
libsqlite3-sys = {version = "0.25.1", features = [
] }
libsqlite3-sys = { version = "0.25.1", features = [
"bundled",
]}# Required for tari_wallet
] } # Required for tari_wallet
log = "0.4.22"
log4rs = "1.3.0"
minotari_node_grpc_client = {git = "https://github.com/tari-project/tari.git", branch = "development"}
minotari_wallet_grpc_client = {git = "https://github.com/tari-project/tari.git", branch = "development"}
nix = {version = "0.29.0", features = ["signal"]}
minotari_node_grpc_client = { git = "https://github.com/tari-project/tari.git", branch = "development" }
minotari_wallet_grpc_client = { git = "https://github.com/tari-project/tari.git", branch = "development" }
nix = { version = "0.29.0", features = ["signal"] }
nvml-wrapper = "0.10.0"
open = "5"
phraze = "0.3.15"
rand = "0.8.5"
regex = "1.10.5"
reqwest = {version = "0.12.5", features = ["stream", "json", "multipart"]}
reqwest = { version = "0.12.5", features = ["stream", "json", "multipart"] }
sanitize-filename = "0.5"
semver = "1.0.23"
sentry = {version = "0.34.0", features = ["anyhow"]}
sentry = { version = "0.34.0", features = ["anyhow"] }
sentry-tauri = "0.3.0"
serde = {version = "1", features = ["derive"]}
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9.10"
sha2 = "0.10.8"
sys-locale = "0.3.1"
sysinfo = "0.31.2"
tar = "0.4.26"
tari_common = {git = "https://github.com/tari-project/tari.git", branch = "development"}
tari_common_types = {git = "https://github.com/tari-project/tari.git", branch = "development"}
tari_core = {git = "https://github.com/tari-project/tari.git", branch = "development", features = [
tari_common = { git = "https://github.com/tari-project/tari.git", branch = "development" }
tari_common_types = { git = "https://github.com/tari-project/tari.git", branch = "development" }
tari_core = { git = "https://github.com/tari-project/tari.git", branch = "development", features = [
"transactions",
]}
] }
tari_crypto = "0.21.0"
tari_key_manager = {git = "https://github.com/tari-project/tari.git", branch = "development"}
tari_shutdown = {git = "https://github.com/tari-project/tari.git", branch = "development"}
tari_key_manager = { git = "https://github.com/tari-project/tari.git", branch = "development" }
tari_shutdown = { git = "https://github.com/tari-project/tari.git", branch = "development" }
tari_utilities = "0.8.0"
tauri = {version = "1.8.0", features = [
tauri = { version = "1.8.0", features = [
"window-unmaximize",
"window-unminimize",
"os-all",
Expand All @@ -87,12 +87,12 @@ tauri = {version = "1.8.0", features = [
"icon-ico",
"icon-png",
"process-command-api",
]}
tauri-plugin-single-instance = {git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1"}
] }
tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
thiserror = "1.0.26"
tokio = {version = "1", features = ["full"]}
tokio-util = {version = "0.7.11", features = ["compat"]}
xz2 = {version = "0.1.7", features = ["static"]}# static bind lzma
tokio = { version = "1", features = ["full"] }
tokio-util = { version = "0.7.11", features = ["compat"] }
xz2 = { version = "0.1.7", features = ["static"] } # static bind lzma
zip = "2.2.0"

[target.'cfg(windows)'.dependencies]
Expand All @@ -101,7 +101,7 @@ winreg = "0.52.0"
# needed for keymanager. TODO: Find a way of creating a keymanager without bundling sqlite
chrono = "0.4.38"
device_query = "2.1.0"
libsqlite3-sys = {version = "0.25.1", features = ["bundled"]}
libsqlite3-sys = { version = "0.25.1", features = ["bundled"] }
log = "0.4.22"
nvml-wrapper = "0.10.0"
rand = "0.8.5"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/binaries_versions_esmeralda.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minotari_node": "=1.9.0-pre.0",
"wallet": "=1.9.0-pre.0",
"sha-p2pool": "=0.11.0",
"xtrgpuminer": "=0.2.8",
"xtrgpuminer": "=0.2.9",
"tor": "=13.5.7"
}
}
2 changes: 1 addition & 1 deletion src-tauri/binaries_versions_nextnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"minotari_node": "=1.9.0-rc.0",
"wallet": "=1.9.0-rc.0",
"sha-p2pool": "=0.11.0",
"xtrgpuminer": "=0.2.8",
"xtrgpuminer": "=0.2.9",
"tor": "=13.5.7"
}
}
1 change: 1 addition & 0 deletions src-tauri/src/node_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ impl NodeManager {
let mut process_watcher = self.watcher.write().await;
process_watcher.adapter.use_tor = use_tor;
process_watcher.adapter.tor_control_port = tor_control_port;
process_watcher.stop_on_exit_codes = vec![114];
process_watcher
.start(
app_shutdown,
Expand Down
10 changes: 8 additions & 2 deletions src-tauri/src/process_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub struct ProcessWatcher<TAdapter: ProcessAdapter> {
pub health_timeout: tokio::time::Duration,
pub expected_startup_time: tokio::time::Duration,
pub(crate) status_monitor: Option<TAdapter::StatusMonitor>,
pub stop_on_exit_codes: Vec<i32>,
}

impl<TAdapter: ProcessAdapter> ProcessWatcher<TAdapter> {
Expand All @@ -30,6 +31,7 @@ impl<TAdapter: ProcessAdapter> ProcessWatcher<TAdapter> {
health_timeout: tokio::time::Duration::from_secs(4),
expected_startup_time: tokio::time::Duration::from_secs(20),
status_monitor: None,
stop_on_exit_codes: Vec::new(),
}
}
}
Expand Down Expand Up @@ -78,6 +80,7 @@ impl<TAdapter: ProcessAdapter> ProcessWatcher<TAdapter> {

let expected_startup_time = self.expected_startup_time;
let mut app_shutdown: ShutdownSignal = app_shutdown.clone();
let stop_on_exit_codes = self.stop_on_exit_codes.clone();
self.watcher_task = Some(tauri::async_runtime::spawn(async move {
child.start().await?;
let mut uptime = Instant::now();
Expand All @@ -93,8 +96,11 @@ impl<TAdapter: ProcessAdapter> ProcessWatcher<TAdapter> {
let status_monitor3 = status_monitor2.clone();

let exit_code = do_health_check(&mut child, status_monitor3, name.clone(), &mut uptime, expected_startup_time, health_timeout, app_shutdown.clone(), inner_shutdown.clone(), &mut warning_count).await?;
if exit_code != 0 {
return Ok(exit_code);
if exit_code != 0 {
if stop_on_exit_codes.contains(&exit_code) {
return Ok(exit_code);
}
warn!(target: LOG_TARGET, "{} exited with error code: {}, restarting because it is not a listed exit code to list for", name, exit_code);

}
// break;
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "Tari Universe (Alpha)",
"version": "0.7.7"
"version": "0.7.8"
},
"tauri": {
"systemTray": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ const MoneroAddressEditor = ({ initialAddress, onApply }: MoneroAddressEditorPro
</IconButton>
</>
) : (
<IconButton onClick={() => copyToClipboard(address)}>
<IconButton
onClick={(e) => {
e.preventDefault();
copyToClipboard(address);
}}
>
{!isCopied ? <IoCopyOutline /> : <IoCheckmarkOutline />}
</IconButton>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export function CustomPowerLevelsDialog({
label={`${t('custom-power-levels.gpu-power-level', { index: index + 1 })}: ${gpu.gpu_name}`}
maxLevel={maxAvailableThreads.max_gpus_threads[index].max_gpu_threads}
value={gpu.max_gpu_threads}
step={2}
desc={'custom-power-levels.choose-gpu-power-level'}
warning={t('custom-power-levels.gpu-warning')}
onChange={(value: number) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,29 @@ export const RangeInput = styled.input<{ $thumbLeft?: number }>`
border-radius: 5px;
outline: none;
-webkit-transition: 0.2s;
transition: opacity 0.2s;

&::-webkit-slider-thumb {
appearance: none;
-webkit-appearance: none;
width: ${SLIDER_THUMB_WIDTH}px;
height: ${SLIDER_THUMB_WIDTH}px;
z-index: 5;
background: white;
border-radius: 50%;
border: 2px solid #813bf5;
background-color: #fff;
cursor: pointer;
position: absolute;
left: calc(${({ $thumbLeft = 0 }) => `${$thumbLeft}% - ${SLIDER_THUMB_WIDTH / 2}px`});
bottom: -50%;
transition: border 0.2s;
}

&:disabled {
opacity: 0.6;
pointer-events: none;

&::-webkit-slider-thumb {
pointer-events: none;
border: 2px solid rgba(129, 59, 245, 0.47);
}
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ function convertToPercentage(value: number, max: number): number {
return Math.ceil((value * 100) / max);
}

function getSafeStepValue(step: number, value: number): number {
return value % step === 0 ? value : value + (value % step);
}

export const RangeInputComponent = ({
label,
maxLevel,
Expand All @@ -45,7 +49,8 @@ export const RangeInputComponent = ({
const [isHover, setIsHover] = useState(false);
const { t } = useTranslation('settings', { useSuspense: true });
const inputRef = useRef<HTMLInputElement>(null);
const [currentValue, setCurrentValue] = useState(value);

const [currentValue, setCurrentValue] = useState(getSafeStepValue(step, value));

const hasChanges = useRef(false);

Expand All @@ -68,10 +73,11 @@ export const RangeInputComponent = ({
const handleChange = useCallback(
(event: ChangeEvent<HTMLInputElement>) => {
const newValue = Number(event.target.value);
setCurrentValue(newValue >= min ? newValue : min);
const safeValue = getSafeStepValue(step, newValue);
setCurrentValue(safeValue >= min ? safeValue : min);
hasChanges.current = true;
},
[min]
[min, step]
);

const valueBasedStyles = useMemo(() => {
Expand Down
Loading