Skip to content

Commit

Permalink
rename: Connectors -> LiquidityPools (#1493)
Browse files Browse the repository at this point in the history
* rename: Connectors -> LiquidityPools

* Apply review comments
  • Loading branch information
NunoAlexandre committed Aug 14, 2023
1 parent 5eef085 commit c779c2d
Show file tree
Hide file tree
Showing 79 changed files with 721 additions and 693 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ node/res/* @mikiquantum @mustermeiszer @branan @NunoAlexandre @wischli
*.toml @mikiquantum @mustermeiszer @branan @NunoAlexandre @lemunozm @wischli @cdamian @thea-leake

## Changes to specific pallets
pallets/connectors/* @NunoAlexandre @cdamian @wischli @mustermeiszer
pallets/liquidity-pools/* @NunoAlexandre @cdamian @wischli @mustermeiszer
pallets/rewards/* @lemunozm @mikiquantum
pallets/liquidity-rewards/* @lemunozm @mikiquantum
pallets/block-rewards/* @wischli @lemunozm
Expand Down
186 changes: 93 additions & 93 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ members = [
"pallets/anchors",
"pallets/bridge",
"pallets/block-rewards",
"pallets/connectors",
"pallets/connectors-gateway",
"pallets/connectors-gateway/routers",
"pallets/connectors-gateway/axelar-gateway-precompile",
"pallets/claims",
"pallets/collator-allowlist",
"pallets/crowdloan-claim",
Expand All @@ -51,6 +47,10 @@ members = [
"pallets/interest-accrual",
"pallets/investments",
"pallets/keystore",
"pallets/liquidity-pools",
"pallets/liquidity-pools-gateway",
"pallets/liquidity-pools-gateway/axelar-gateway-precompile",
"pallets/liquidity-pools-gateway/routers",
"pallets/liquidity-rewards",
"pallets/loans",
"pallets/migration",
Expand Down
8 changes: 4 additions & 4 deletions libs/mocks/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
mod change_guard;
mod connectors;
mod connectors_gateway_routers;
mod data;
mod fees;
mod liquidity_pools;
mod liquidity_pools_gateway_routers;
mod permissions;
mod pools;
mod rewards;
mod time;

pub use change_guard::pallet_mock_change_guard;
pub use connectors::{pallet as pallet_mock_connectors, MessageMock};
pub use connectors_gateway_routers::{pallet as pallet_mock_routers, RouterMock};
pub use data::pallet as pallet_mock_data;
pub use fees::pallet as pallet_mock_fees;
pub use liquidity_pools::{pallet as pallet_mock_liquidity_pools, MessageMock};
pub use liquidity_pools_gateway_routers::{pallet as pallet_mock_routers, RouterMock};
pub use permissions::pallet as pallet_mock_permissions;
pub use pools::pallet as pallet_mock_pools;
pub use rewards::pallet as pallet_mock_rewards;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cfg_traits::connectors::Codec;
use cfg_traits::liquidity_pools::Codec;
use codec::{Error, Input};

#[derive(Debug, Eq, PartialEq, Clone)]
Expand Down Expand Up @@ -34,12 +34,12 @@ impl Codec for MessageMock {

#[frame_support::pallet]
pub mod pallet {
use cfg_traits::connectors::InboundQueue;
use cfg_traits::liquidity_pools::InboundQueue;
use cfg_types::domain_address::DomainAddress;
use frame_support::pallet_prelude::*;
use mock_builder::{execute_call, register_call};

use crate::connectors::MessageMock;
use crate::liquidity_pools::MessageMock;

#[pallet::config]
pub trait Config: frame_system::Config {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use cfg_traits::connectors::Router;
use cfg_traits::liquidity_pools::Router;
use frame_support::{dispatch::DispatchResult, pallet_prelude::*};
use mock_builder::{execute_call, register_call};
use sp_std::default::Default;
Expand Down
6 changes: 3 additions & 3 deletions libs/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub mod constants {
items as Balance * 15 * CENTI_CFG + (bytes as Balance) * 6 * CENTI_CFG
}

/// Unhashed 36-bytes prefix for currencies managed by Connectors.
/// Unhashed 36-bytes prefix for currencies managed by LiquidityPools.
pub const GENERAL_CURRENCY_INDEX_PREFIX: [u8; 36] = *b"CentrifugeGeneralCurrencyIndexPrefix";

/// Transaction recovery ID used for generating a signature in the Ethereum
Expand Down Expand Up @@ -319,8 +319,8 @@ pub mod parachains {
}
}

pub mod connectors {
/// The hashed prefix for currencies managed by Connectors.
pub mod liquidity_pools {
/// The hashed prefix for currencies managed by LiquidityPools.
pub struct GeneralCurrencyPrefix;

impl sp_core::Get<[u8; 12]> for GeneralCurrencyPrefix {
Expand Down

0 comments on commit c779c2d

Please sign in to comment.