Skip to content

Commit

Permalink
Rename things (#226)
Browse files Browse the repository at this point in the history
* Rename `enclave_node` -> `runtime`

* Rename `runtime` -> `enclave_core`

* Revert poor replace

* Use workspace paths
  • Loading branch information
ryardley authored Dec 30, 2024
1 parent 2e8f195 commit 4c1e755
Show file tree
Hide file tree
Showing 82 changed files with 170 additions and 176 deletions.
114 changes: 57 additions & 57 deletions packages/ciphernode/Cargo.lock

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

12 changes: 6 additions & 6 deletions packages/ciphernode/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[workspace]
members = [
"core",
"events",
"enclave",
"enclave_node",
"enclave_core",
"net",
"bfv",
"data",
Expand All @@ -14,7 +14,7 @@ members = [
"test_helpers",
"logger",
"tests",
"cipher",
"crypto",
"config",
]

Expand All @@ -36,13 +36,13 @@ bincode = "1.3.3"
bs58 = "0.5.1"
base64 = "0.22.1"
clap = { version = "4.5.17", features = ["derive"] }
cipher = { path = "./cipher" }
crypto = { path = "./crypto" }
compile-time = "0.2.0"
config = { path = "./config" }
dirs = "5.0.1"
data = { path = "./data" }
enclave-core = { path = "./core" }
enclave_node = { path = "./enclave_node" }
events = { path = "./events" }
enclave_core = { path = "./enclave_core" }
evm = { path = "./evm" }
shellexpand = "3.1.0"
figment = { version = "0.10.19", features = ["yaml", "test"] }
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/aggregator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ serde = { workspace = true }
bincode = { workspace = true }
config = { workspace = true }
async-trait = { workspace = true }
enclave-core = { path = "../core" }
events = { workspace = true }
fhe = { path = "../fhe" }
sortition = { path = "../sortition" }
e3_request = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/aggregator/src/feature.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use anyhow::{anyhow, Result};
use async_trait::async_trait;
use data::{AutoPersist, RepositoriesFactory};
use e3_request::{E3Context, E3ContextSnapshot, E3Feature, META_KEY};
use enclave_core::{BusError, EnclaveErrorType, EnclaveEvent, EventBus};
use events::{BusError, EnclaveErrorType, EnclaveEvent, EventBus};
use fhe::FHE_KEY;
use sortition::Sortition;

Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/aggregator/src/plaintext_aggregator.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use actix::prelude::*;
use anyhow::Result;
use data::Persistable;
use enclave_core::{
use events::{
DecryptionshareCreated, Die, E3id, EnclaveEvent, EventBus, OrderedSet, PlaintextAggregated,
Seed,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/aggregator/src/publickey_aggregator.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use actix::prelude::*;
use anyhow::Result;
use data::Persistable;
use enclave_core::{
use events::{
Die, E3id, EnclaveEvent, EventBus, KeyshareCreated, OrderedSet, PublicKeyAggregated, Seed,
};
use fhe::{Fhe, GetAggregatePublicKey};
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/aggregator/src/repo.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use config::StoreKeys;
use data::{Repositories, Repository};
use enclave_core::E3id;
use events::E3id;

use crate::{PlaintextAggregatorState, PublicKeyAggregatorState};

Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ figment = { workspace = true }
alloy = { workspace = true }
shellexpand = { workspace = true }
url = { workspace = true }
enclave-core = { workspace = true }
events = { workspace = true }

[dev-dependencies]
tempfile = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion packages/ciphernode/config/src/store_keys.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use enclave_core::E3id;
use events::E3id;

pub struct StoreKeys;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "cipher"
name = "crypto"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion packages/ciphernode/data/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ repository = "https://github.com/gnosisguild/enclave/packages/ciphernode"

[dependencies]
actix = { workspace = true }
enclave-core = { path = "../core" }
events = { workspace = true }
anyhow = { workspace = true }
serde = { workspace = true }
sled = { workspace = true }
Expand Down
Loading

0 comments on commit 4c1e755

Please sign in to comment.