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

Commit

Permalink
Avoid Duplicate Names (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier authored Dec 1, 2021
1 parent a0cde9b commit b0359e2
Show file tree
Hide file tree
Showing 32 changed files with 117 additions and 117 deletions.
64 changes: 32 additions & 32 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions node/primitives/bridge/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ description = "Pangolin node bridge primitives"
edition = "2021"
homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "bridge-primitives"
name = "drml-bridge-primitives"
readme = "README.md"
repository = "https://github.com/darwinia-network/darwinia-common/"
version = "2.7.0"

[dependencies]
# darwinia-network
common-primitives = { default-features = false, path = "../common" }
darwinia-fee-market = { default-features = false, path = "../../../frame/fee-market" }
darwinia-fee-market = { default-features = false, path = "../../../frame/fee-market" }
drml-common-primitives = { default-features = false, path = "../common" }
# paritytech
bp-messages = { default-features = false, git = "https://github.com/darwinia-network/parity-bridges-common", tag = "darwinia-v0.11.6-3" }
bp-runtime = { default-features = false, git = "https://github.com/darwinia-network/parity-bridges-common", tag = "darwinia-v0.11.6-3" }
Expand All @@ -29,8 +29,8 @@ default = ["std"]

std = [
# darwinia-network
"common-primitives/std",
"darwinia-fee-market/std",
"drml-common-primitives/std",
# paritytech
"bp-messages/std",
"bp-runtime/std",
Expand Down
2 changes: 1 addition & 1 deletion node/primitives/bridge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ use sp_core::H256;
use sp_runtime::{traits::Convert, RuntimeDebug};
use sp_std::prelude::*;
// --- darwinia-network ---
use common_primitives::*;
use darwinia_fee_market::RingBalance;
use drml_common_primitives::*;

/// Maximal size (in bytes) of encoded (using `Encode::encode()`) account id.
pub const MAXIMAL_ENCODED_ACCOUNT_ID_SIZE: u32 = 32;
Expand Down
2 changes: 1 addition & 1 deletion node/primitives/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "DRML node runtime primitives"
edition = "2021"
homepage = "https://darwinia.network/"
license = "GPL-3.0"
name = "common-primitives"
name = "drml-common-primitives"
readme = "README.md"
repository = "https://github.com/darwinia-network/darwinia-common/"
version = "2.7.0"
Expand Down
2 changes: 1 addition & 1 deletion node/rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ version = "2.7.0"
jsonrpc-core = { version = "15.1" }
jsonrpc-pubsub = { version = "15.1" }
# darwinia-network
common-primitives = { path = "../primitives/common" }
darwinia-balances-rpc = { path = "../../frame/balances/rpc" }
darwinia-fee-market-rpc = { path = "../../frame/fee-market/rpc" }
darwinia-header-mmr-rpc = { path = "../../frame/header-mmr/rpc" }
darwinia-staking-rpc = { path = "../../frame/staking/rpc" }
dc-db = { path = "../../client/dvm/db" }
dc-rpc = { path = "../../client/dvm/rpc", features = ["rpc_binary_search_estimate"] }
dp-rpc = { path = "../../primitives/rpc" }
drml-common-primitives = { path = "../primitives/common" }
dvm-ethereum = { path = "../../frame/dvm" }
dvm-rpc-runtime-api = { path = "../../frame/dvm/rpc/runtime-api" }
pangolin-runtime = { path = "../runtime/pangolin" }
Expand Down
2 changes: 1 addition & 1 deletion node/rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub use sc_rpc::{DenyUnsafe, SubscriptionTaskExecutor};
// --- std ---
use std::sync::Arc;
// --- darwinia-network ---
use common_primitives::{BlockNumber, Hash, OpaqueBlock as Block};
use drml_common_primitives::{BlockNumber, Hash, OpaqueBlock as Block};

/// A type representing all RPC extensions.
pub type RpcExtension = jsonrpc_core::IoHandler<sc_rpc::Metadata>;
Expand Down
2 changes: 1 addition & 1 deletion node/rpc/src/pangolin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
use std::{collections::BTreeMap, sync::Arc};
// --- darwinia-network ---
use crate::*;
use common_primitives::{AccountId, Balance, Nonce, Power};
use dp_rpc::{FilterPool, PendingTransactions};
use drml_common_primitives::{AccountId, Balance, Nonce, Power};
use dvm_ethereum::EthereumStorageSchema;

/// Full client dependencies.
Expand Down
2 changes: 1 addition & 1 deletion node/rpc/src/pangoro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ use std::sync::Arc;
use sp_api::ProvideRuntimeApi;
// --- darwinia-network ---
use crate::*;
use common_primitives::{AccountId, Balance, Nonce};
use drml_common_primitives::{AccountId, Balance, Nonce};

/// Full client dependencies
pub struct FullDeps<C, P, SC, B> {
Expand Down
8 changes: 4 additions & 4 deletions node/runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ version = "2.7.0"
codec = { package = "parity-scale-codec", version = "2.1", default-features = false }
static_assertions = { version = "1.1" }
# darwinia-network
common-primitives = { default-features = false, path = "../../primitives/common" }
darwinia-balances = { default-features = false, path = "../../../frame/balances" }
darwinia-support = { default-features = false, path = "../../../frame/support" }
darwinia-balances = { default-features = false, path = "../../../frame/balances" }
darwinia-support = { default-features = false, path = "../../../frame/support" }
drml-common-primitives = { default-features = false, path = "../../primitives/common" }
# paritytech
frame-support = { default-features = false, git = "https://github.com/darwinia-network/substrate", tag = "darwinia-v0.11.6-1" }
frame-system = { default-features = false, git = "https://github.com/darwinia-network/substrate", tag = "darwinia-v0.11.6-1" }
Expand All @@ -36,9 +36,9 @@ std = [
# crates.io
"codec/std",
# darwinia-network
"common-primitives/std",
"darwinia-balances/std",
"darwinia-support/std",
"drml-common-primitives/std",
# paritytech
"frame-support/std",
"frame-system/std",
Expand Down
10 changes: 5 additions & 5 deletions node/runtime/common/src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ darwinia_support::impl_account_data! {
RingInstance,
KtonInstance
where
Balance = common_primitives::Balance
Balance = drml_common_primitives::Balance
{
// other data
}
Expand All @@ -43,8 +43,8 @@ pub struct ToAuthor<R>(sp_std::marker::PhantomData<R>);
impl<R> OnUnbalanced<NegativeImbalance<R>> for ToAuthor<R>
where
R: darwinia_balances::Config<RingInstance> + pallet_authorship::Config,
<R as frame_system::Config>::AccountId: From<common_primitives::AccountId>,
<R as frame_system::Config>::AccountId: Into<common_primitives::AccountId>,
<R as frame_system::Config>::AccountId: From<drml_common_primitives::AccountId>,
<R as frame_system::Config>::AccountId: Into<drml_common_primitives::AccountId>,
<R as frame_system::Config>::Event: From<darwinia_balances::Event<R, RingInstance>>,
{
fn on_nonzero_unbalanced(amount: NegativeImbalance<R>) {
Expand All @@ -68,8 +68,8 @@ where
+ pallet_treasury::Config
+ pallet_authorship::Config,
pallet_treasury::Pallet<R>: OnUnbalanced<NegativeImbalance<R>>,
<R as frame_system::Config>::AccountId: From<common_primitives::AccountId>,
<R as frame_system::Config>::AccountId: Into<common_primitives::AccountId>,
<R as frame_system::Config>::AccountId: From<drml_common_primitives::AccountId>,
<R as frame_system::Config>::AccountId: Into<drml_common_primitives::AccountId>,
<R as frame_system::Config>::Event: From<darwinia_balances::Event<R, RingInstance>>,
{
fn on_unbalanceds<B>(mut fees_then_tips: impl Iterator<Item = NegativeImbalance<R>>) {
Expand Down
5 changes: 2 additions & 3 deletions node/runtime/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ pub use impls::*;

pub use frame_support::weights::constants::{ExtrinsicBaseWeight, RocksDbWeight};

pub use darwinia_balances::Instance1 as RingInstance;
pub use darwinia_balances::Instance2 as KtonInstance;
pub use darwinia_balances::{Instance1 as RingInstance, Instance2 as KtonInstance};

// --- crates.io ---
use static_assertions::const_assert;
Expand All @@ -43,7 +42,7 @@ use frame_system::limits::{BlockLength, BlockWeights};
use pallet_transaction_payment::{Multiplier, TargetedFeeAdjustment};
use sp_runtime::{FixedPointNumber, Perbill, Perquintill};
// --- darwinia-network ---
use common_primitives::BlockNumber;
use drml_common_primitives::BlockNumber;

pub type NegativeImbalance<T> = <darwinia_balances::Pallet<T, RingInstance> as Currency<
<T as frame_system::Config>::AccountId,
Expand Down
8 changes: 4 additions & 4 deletions node/runtime/pangolin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ serde = { version = "1.0", optional = true }
smallvec = { version = "1.6" }
static_assertions = { version = "1.1" }
# darwinia-network
bridge-primitives = { default-features = false, path = "../../primitives/bridge" }
common-primitives = { default-features = false, path = "../../primitives/common" }
common-runtime = { default-features = false, path = "../common" }
darwinia-balances = { default-features = false, path = "../../../frame/balances" }
darwinia-balances-rpc-runtime-api = { default-features = false, path = "../../../frame/balances/rpc/runtime-api" }
Expand Down Expand Up @@ -50,6 +48,8 @@ dp-contract = { default-features = false, path = "..
dp-evm = { default-features = false, path = "../../../primitives/evm" }
dp-fee = { default-features = false, path = "../../../primitives/fee-market" }
dp-s2s = { default-features = false, path = "../../../primitives/s2s" }
drml-bridge-primitives = { default-features = false, path = "../../primitives/bridge" }
drml-common-primitives = { default-features = false, path = "../../primitives/common" }
dvm-ethereum = { default-features = false, path = "../../../frame/dvm" }
dvm-rpc-runtime-api = { default-features = false, path = "../../../frame/dvm/rpc/runtime-api" }
ethereum-primitives = { default-features = false, path = "../../../primitives/ethereum" }
Expand Down Expand Up @@ -130,8 +130,6 @@ std = [
"evm/std",
"serde",
# darwinia-network
"bridge-primitives/std",
"common-primitives/std",
"common-runtime/std",
"darwinia-balances/std",
"darwinia-balances-rpc-runtime-api/std",
Expand Down Expand Up @@ -162,6 +160,8 @@ std = [
"dp-evm/std",
"dp-fee/std",
"dp-s2s/std",
"drml-bridge-primitives/std",
"drml-common-primitives/std",
"dvm-ethereum/std",
"dvm-rpc-runtime-api/std",
"ethereum-primitives/std",
Expand Down
Loading

0 comments on commit b0359e2

Please sign in to comment.