mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Rename the coins folder to networks (#583)
* Rename the coins folder to networks Ethereum isn't a coin. It's a network. Resolves #357. * More renames of coins -> networks in orchestration * Correct paths in tests/ * cargo fmt
This commit is contained in:
@@ -86,7 +86,7 @@ pub fn build(name: String) {
|
||||
|
||||
let mut dockerfile_path = orchestration_path.clone();
|
||||
if HashSet::from(["bitcoin", "ethereum", "ethereum-relayer", "monero"]).contains(name.as_str()) {
|
||||
dockerfile_path = dockerfile_path.join("coins");
|
||||
dockerfile_path = dockerfile_path.join("networks");
|
||||
}
|
||||
if name.contains("-processor") {
|
||||
dockerfile_path =
|
||||
@@ -125,7 +125,9 @@ pub fn build(name: String) {
|
||||
let meta = |path: PathBuf| (path.clone(), fs::metadata(path));
|
||||
let mut metadatas = match name.as_str() {
|
||||
"bitcoin" | "ethereum" | "monero" => vec![],
|
||||
"ethereum-relayer" => vec![meta(repo_path.join("common")), meta(repo_path.join("coins"))],
|
||||
"ethereum-relayer" => {
|
||||
vec![meta(repo_path.join("common")), meta(repo_path.join("networks"))]
|
||||
}
|
||||
"message-queue" => vec![
|
||||
meta(repo_path.join("common")),
|
||||
meta(repo_path.join("crypto")),
|
||||
@@ -135,7 +137,7 @@ pub fn build(name: String) {
|
||||
"bitcoin-processor" | "ethereum-processor" | "monero-processor" => vec![
|
||||
meta(repo_path.join("common")),
|
||||
meta(repo_path.join("crypto")),
|
||||
meta(repo_path.join("coins")),
|
||||
meta(repo_path.join("networks")),
|
||||
meta(repo_path.join("substrate")),
|
||||
meta(repo_path.join("message-queue")),
|
||||
meta(repo_path.join("processor")),
|
||||
@@ -143,7 +145,7 @@ pub fn build(name: String) {
|
||||
"coordinator" => vec![
|
||||
meta(repo_path.join("common")),
|
||||
meta(repo_path.join("crypto")),
|
||||
meta(repo_path.join("coins")),
|
||||
meta(repo_path.join("networks")),
|
||||
meta(repo_path.join("substrate")),
|
||||
meta(repo_path.join("message-queue")),
|
||||
meta(repo_path.join("coordinator")),
|
||||
|
||||
@@ -26,9 +26,9 @@ rand_core = { version = "0.6", default-features = false }
|
||||
|
||||
curve25519-dalek = { version = "4", features = ["rand_core"] }
|
||||
|
||||
bitcoin-serai = { path = "../../coins/bitcoin" }
|
||||
monero-simple-request-rpc = { path = "../../coins/monero/rpc/simple-request" }
|
||||
monero-wallet = { path = "../../coins/monero/wallet" }
|
||||
bitcoin-serai = { path = "../../networks/bitcoin" }
|
||||
monero-simple-request-rpc = { path = "../../networks/monero/rpc/simple-request" }
|
||||
monero-wallet = { path = "../../networks/monero/wallet" }
|
||||
|
||||
scale = { package = "parity-scale-codec", version = "3" }
|
||||
serde = "1"
|
||||
|
||||
@@ -33,6 +33,6 @@ dkg = { path = "../../crypto/dkg", default-features = false }
|
||||
# modular-frost = { path = "../../crypto/frost", default-features = false }
|
||||
# frost-schnorrkel = { path = "../../crypto/schnorrkel", default-features = false }
|
||||
|
||||
bitcoin-serai = { path = "../../coins/bitcoin", default-features = false, features = ["hazmat"] }
|
||||
bitcoin-serai = { path = "../../networks/bitcoin", default-features = false, features = ["hazmat"] }
|
||||
|
||||
monero-wallet-util = { path = "../../coins/monero/wallet/util", default-features = false, features = ["compile-time-generators"] }
|
||||
monero-wallet-util = { path = "../../networks/monero/wallet/util", default-features = false, features = ["compile-time-generators"] }
|
||||
|
||||
@@ -26,13 +26,13 @@ curve25519-dalek = "4"
|
||||
ciphersuite = { path = "../../crypto/ciphersuite", default-features = false, features = ["secp256k1", "ristretto"] }
|
||||
dkg = { path = "../../crypto/dkg", default-features = false, features = ["tests"] }
|
||||
|
||||
bitcoin-serai = { path = "../../coins/bitcoin" }
|
||||
bitcoin-serai = { path = "../../networks/bitcoin" }
|
||||
|
||||
k256 = "0.13"
|
||||
ethereum-serai = { path = "../../coins/ethereum" }
|
||||
ethereum-serai = { path = "../../networks/ethereum" }
|
||||
|
||||
monero-simple-request-rpc = { path = "../../coins/monero/rpc/simple-request" }
|
||||
monero-wallet = { path = "../../coins/monero/wallet" }
|
||||
monero-simple-request-rpc = { path = "../../networks/monero/rpc/simple-request" }
|
||||
monero-wallet = { path = "../../networks/monero/wallet" }
|
||||
|
||||
messages = { package = "serai-processor-messages", path = "../../processor/messages" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user