Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Commit

Permalink
rename meta_consensus to meta_defichain
Browse files Browse the repository at this point in the history
  • Loading branch information
canonbrother committed Feb 3, 2023
1 parent de61281 commit 03fb2cc
Show file tree
Hide file tree
Showing 21 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ labels:
- label: meta/consensus
sync: true
matcher:
files: 'meta/meta-consensus/**'
files: 'meta/meta-defichain/**'

- label: meta/node
sync: true
Expand Down
2 changes: 1 addition & 1 deletion .idea/metachain.iml

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

4 changes: 2 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace]
members = [
"meta/meta-consensus",
"meta/meta-consensus/prometheus",
"meta/meta-defichain",
"meta/meta-defichain/prometheus",
"meta/meta-runtime",
"meta/meta-node",
]
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "meta-consensus"
name = "meta-defichain"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion meta/meta-node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ fp-evm = { git = "https://github.com/paritytech/frontier.git", branch = "p
fp-rpc = { git = "https://github.com/paritytech/frontier.git", branch = "polkadot-v0.9.30" }
fp-storage = { git = "https://github.com/paritytech/frontier.git", branch = "polkadot-v0.9.30" }
# local packages
meta-consensus = { package = "meta-consensus", path = "../meta-consensus" }
meta-defichain = { package = "meta-defichain", path = "../meta-defichain" }
meta-runtime = { package = "meta-runtime", path = "../meta-runtime" }

[build-dependencies]
Expand Down
4 changes: 2 additions & 2 deletions meta/meta-node/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::{collections::BTreeMap, sync::Arc};

use jsonrpsee::RpcModule;
// Substrate
use meta_consensus::rpc::{ManualSeal, ManualSealApiServer};
use meta_defichain::rpc::{ManualSeal, ManualSealApiServer};
use sc_client_api::{
backend::{AuxStore, Backend, StateBackend, StorageProvider},
client::BlockchainEvents,
Expand Down Expand Up @@ -60,7 +60,7 @@ pub struct FullDeps<C, P, A: ChainApi> {
pub block_data_cache: Arc<EthBlockDataCacheTask<Block>>,
/// Manual seal command sink
pub command_sink:
Option<futures::channel::mpsc::Sender<meta_consensus::rpc::EngineCommand<Hash>>>,
Option<futures::channel::mpsc::Sender<meta_defichain::rpc::EngineCommand<Hash>>>,
}

pub fn overrides_handle<C, BE>(client: Arc<C>) -> Arc<OverrideHandle<Block>>
Expand Down
4 changes: 2 additions & 2 deletions meta/meta-node/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub fn new_partial(
let frontier_block_import =
FrontierBlockImport::new(client.clone(), client.clone(), frontier_backend.clone());

let import_queue = meta_consensus::import_queue(
let import_queue = meta_defichain::import_queue(
Box::new(client.clone()),
&task_manager.spawn_essential_handle(),
config.prometheus_registry(),
Expand Down Expand Up @@ -363,7 +363,7 @@ pub fn new_full(mut config: Configuration, cli: &Cli) -> Result<TaskManager, Ser
Ok((mock_timestamp, dynamic_fee))
};

let manual_seal = meta_consensus::run_manual_seal(meta_consensus::ManualSealParams {
let manual_seal = meta_defichain::run_manual_seal(meta_defichain::ManualSealParams {
block_import,
env,
client,
Expand Down

0 comments on commit 03fb2cc

Please sign in to comment.