Skip to content

Commit

Permalink
runtimes compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Aug 14, 2024
1 parent ada5da8 commit 074a4b4
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 23 deletions.
14 changes: 0 additions & 14 deletions pallets/liquidity-pools/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ frame_support::construct_runtime!(
AssetRegistry: cfg_mocks::asset_registry::pallet,
ForeignInvestment: cfg_mocks::foreign_investment::pallet,
Gateway: cfg_mocks::pallet_mock_liquidity_pools_gateway,
DomainAddressToAccountId: cfg_mocks::converter::pallet::<Instance1>,
DomainAccountToDomainAddress: cfg_mocks::converter::pallet::<Instance2>,
TransferFilter: cfg_mocks::pre_conditions::pallet,
MarketRatio: cfg_mocks::token_swaps::pallet,
Tokens: orml_tokens,
Expand Down Expand Up @@ -119,16 +117,6 @@ impl cfg_mocks::pallet_mock_liquidity_pools_gateway::Config for Runtime {
type Message = crate::Message;
}

impl cfg_mocks::converter::pallet::Config<cfg_mocks::converter::pallet::Instance1> for Runtime {
type From = DomainAddress;
type To = AccountId;
}

impl cfg_mocks::converter::pallet::Config<cfg_mocks::converter::pallet::Instance2> for Runtime {
type From = (Domain, [u8; 32]);
type To = DomainAddress;
}

impl cfg_mocks::pre_conditions::pallet::Config for Runtime {
type Conditions = (AccountId, DomainAddress, CurrencyId);
type Result = DispatchResult;
Expand Down Expand Up @@ -172,8 +160,6 @@ impl pallet_liquidity_pools::Config for Runtime {
type Balance = Balance;
type BalanceRatio = Ratio;
type CurrencyId = CurrencyId;
type DomainAccountToDomainAddress = DomainAccountToDomainAddress;
type DomainAddressToAccountId = DomainAddressToAccountId;
type ForeignInvestment = ForeignInvestment;
type GeneralCurrencyPrefix = CurrencyPrefix;
type MarketRatio = MarketRatio;
Expand Down
4 changes: 1 addition & 3 deletions runtime/altair/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1737,8 +1737,6 @@ impl pallet_liquidity_pools::Config for Runtime {
type Balance = Balance;
type BalanceRatio = Ratio;
type CurrencyId = CurrencyId;
type DomainAccountToDomainAddress = AccountConverter;
type DomainAddressToAccountId = AccountConverter;
type ForeignInvestment = ForeignInvestments;
type GeneralCurrencyPrefix = GeneralCurrencyPrefix;
type MarketRatio = OrderBook;
Expand All @@ -1758,7 +1756,7 @@ impl pallet_liquidity_pools::Config for Runtime {

parameter_types! {
pub const MaxIncomingMessageSize: u32 = 1024;
pub Sender: DomainAddress = gateway::get_gateway_account::<Runtime>();
pub Sender: DomainAddress = gateway::get_gateway_domain_address::<Runtime>();
}

impl pallet_liquidity_pools_gateway::Config for Runtime {
Expand Down
4 changes: 1 addition & 3 deletions runtime/centrifuge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1820,8 +1820,6 @@ impl pallet_liquidity_pools::Config for Runtime {
type Balance = Balance;
type BalanceRatio = Ratio;
type CurrencyId = CurrencyId;
type DomainAccountToDomainAddress = AccountConverter;
type DomainAddressToAccountId = AccountConverter;
type ForeignInvestment = ForeignInvestments;
type GeneralCurrencyPrefix = GeneralCurrencyPrefix;
type MarketRatio = OrderBook;
Expand All @@ -1841,7 +1839,7 @@ impl pallet_liquidity_pools::Config for Runtime {

parameter_types! {
pub const MaxIncomingMessageSize: u32 = 1024;
pub Sender: DomainAddress = gateway::get_gateway_account::<Runtime>();
pub Sender: DomainAddress = gateway::get_gateway_domain_address::<Runtime>();
}

parameter_types! {
Expand Down
4 changes: 1 addition & 3 deletions runtime/development/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1842,8 +1842,6 @@ impl pallet_liquidity_pools::Config for Runtime {
type Balance = Balance;
type BalanceRatio = Ratio;
type CurrencyId = CurrencyId;
type DomainAccountToDomainAddress = AccountConverter;
type DomainAddressToAccountId = AccountConverter;
type ForeignInvestment = ForeignInvestments;
type GeneralCurrencyPrefix = GeneralCurrencyPrefix;
type MarketRatio = OrderBook;
Expand All @@ -1863,7 +1861,7 @@ impl pallet_liquidity_pools::Config for Runtime {

parameter_types! {
pub const MaxIncomingMessageSize: u32 = 1024;
pub Sender: DomainAddress = gateway::get_gateway_account::<Runtime>();
pub Sender: DomainAddress = gateway::get_gateway_domain_address::<Runtime>();
}

impl pallet_liquidity_pools_gateway::Config for Runtime {
Expand Down

0 comments on commit 074a4b4

Please sign in to comment.