Skip to content

Commit

Permalink
Merge branch 'rc-2024.09.2' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
jacderida committed Sep 23, 2024
2 parents fd345e6 + d555c43 commit 382c44b
Show file tree
Hide file tree
Showing 115 changed files with 2,606 additions and 589 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,37 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

*When editing this file, please respect a line length of 100.*

## 2024-09-24

### Network

#### Fixed

- The auditor now uses width-first tracking, to bring it in alignment with the new wallet.

### Client

#### Added

- The client will perform quote validation to avoid invalid quotes.
- A new high-level client API, `autonomi`. The crate provides most of the features necessary to
build apps for the Autonomi network.

### Node Manager

#### Fixed

- The node manager status command was not functioning correctly when used with a local network. The
mechanism for determining whether a node was running was changed to use the path of the service
process, but this did not work for a local network. The status command now differentiates between
a local and a service-based network, and the command now behaves as expected when using a local
network.

### Documentation

- In the main README for the repository, the four network keys were updated to reflect the keys
being used by the new stable network.

## 2024-09-12

### Network
Expand Down
64 changes: 44 additions & 20 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[workspace]
resolver = "2"
members = [
"autonomi",
"sn_auditor",
"sn_build_info",
"sn_cli",
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ if you want it to connect to the current beta network.
You should build from the `stable` branch, as follows:
```
git checkout stable
export GENESIS_PK=8829ca178d6022de16fb8d3498411dd8a674a69c5f12e04d8b794a52ab056f1d419d12f690df1082dfa7efbbb10f62fa
export FOUNDATION_PK=84418659a8581b510c40b12e57da239787fd0d3b323f102f09fae9daf2ac96907e0045b1653c301de45117d393d92678
export NETWORK_ROYALTIES_PK=8c027130571cea2387a0ceb37c14fec12849015be1573ea6d0a8e4d48da2c1fbe2907ae7503bb7c385b21e2d7ac9d6ff
export PAYMENT_FORWARD_PK=8c2f406a52d48d48505e1a3fdbb0c19ab42cc7c4807e9ea19c1fff3e5148f3bbe53431ec5a07544aaeef764e073e4b2f
export GENESIS_PK=806b5c2eba70354ea92ba142c57587c9c5467ff69f0d43c482cda2313f9351e40c6120d76a2495cb3ca8367eee0a676f
export FOUNDATION_PK=8296d1f92f0bccaf1a90d57b65122f8c671172074000fc4db538dda4042360ea493a475ae548f1096adf83bd7e940727
export NETWORK_ROYALTIES_PK=81b8f8a6bc51a6d4d6a2d7a7713ae86467ea0efd971c56d4c7c9380e0a7346b319a0a14178bd134cbb2fdb8571cbe15b
export PAYMENT_FORWARD_PK=8f97398fe7565a39ba83df42d18d253138d17493b4b64cb70282a562ee18a1c4bfe87405519f9c53e728753a103cd953
cargo build --release --features=network-contacts --bin safenode
```

Expand Down
49 changes: 49 additions & 0 deletions autonomi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
[package]
authors = ["MaidSafe Developers <[email protected]>"]
description = "Autonomi client API"
name = "autonomi"
license = "GPL-3.0"
version = "0.1.0"
edition = "2021"
homepage = "https://maidsafe.net"
readme = "README.md"
repository = "https://github.com/maidsafe/safe_network"

[features]
default = []
full = ["data", "files", "fs", "registers", "transfers"]
data = ["transfers"]
files = ["transfers"]
fs = []
local = ["sn_client/local-discovery"]
registers = ["transfers"]
transfers = []

[dependencies]
bip39 = "2.0.0"
bls = { package = "blsttc", version = "8.0.1" }
bytes = { version = "1.0.1", features = ["serde"] }
libp2p = "0.53"
rand = "0.8.5"
rmp-serde = "1.1.1"
self_encryption = "~0.29.0"
serde = { version = "1.0.133", features = ["derive", "rc"] }
sn_client = { path = "../sn_client", version = "0.110.1" }
sn_protocol = { version = "0.17.9", path = "../sn_protocol" }
sn_registers = { path = "../sn_registers", version = "0.3.19" }
sn_transfers = { path = "../sn_transfers", version = "0.19.1" }
thiserror = "1.0.23"
tokio = { version = "1.35.0", features = ["sync", "fs"] }
tracing = { version = "~0.1.26" }
walkdir = "2.5.0"
xor_name = "5.0.0"

[dev-dependencies]
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[lints]
workspace = true

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
25 changes: 25 additions & 0 deletions autonomi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# `autonomi` - Autonomi client API

[![Crates.io](https://img.shields.io/crates/v/autonomi.svg)](https://crates.io/crates/autonomi)
[![docs.rs](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/autonomi)

Connect to and build on the Autonomi network.

## Usage

See [docs.rs/autonomi](https://docs.rs/autonomi) for usage examples.

## Running tests

Run a local network with the `local-discovery` feature:

```sh
cargo run --bin=safenode-manager --features=local-discovery -- local run --build --clean
```

Then run the tests with the `local` feature:
```sh
$ cargo test --package=autonomi --features=local
# Or with logs
$ RUST_LOG=autonomi cargo test --package=autonomi --features=local -- --nocapture
```
Loading

0 comments on commit 382c44b

Please sign in to comment.