Replace "coin" with "network"

The Processor's coins folder referred to the networks it could process, as did
its Coin trait. This, and other similar cases throughout the codebase, have now
been corrected.

Also corrects dated documentation for a key pair is confirmed under the
validator-sets pallet.
This commit is contained in:
Luke Parker
2023-07-30 16:11:30 -04:00
parent 2815046b21
commit 9f143a9742
40 changed files with 551 additions and 532 deletions

View File

@@ -1,6 +1,6 @@
#[cfg(feature = "bitcoin")]
mod bitcoin {
use crate::coins::Bitcoin;
use crate::networks::Bitcoin;
async fn bitcoin() -> Bitcoin {
let bitcoin = Bitcoin::new("http://serai:seraidex@127.0.0.1:18443".to_string()).await;
@@ -8,7 +8,7 @@ mod bitcoin {
bitcoin
}
test_coin!(
test_network!(
Bitcoin,
bitcoin,
bitcoin_key_gen,
@@ -21,7 +21,7 @@ mod bitcoin {
#[cfg(feature = "monero")]
mod monero {
use crate::coins::{Coin, Monero};
use crate::networks::{Network, Monero};
async fn monero() -> Monero {
let monero = Monero::new("http://127.0.0.1:18081".to_string());
@@ -31,7 +31,7 @@ mod monero {
monero
}
test_coin!(
test_network!(
Monero,
monero,
monero_key_gen,