Skip to content

Commit

Permalink
Merge branch 'main' into ci-rewrite-n-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga authored Sep 16, 2023
2 parents ec97693 + 523b6d3 commit d4512b0
Show file tree
Hide file tree
Showing 63 changed files with 11,371 additions and 3,053 deletions.
30 changes: 28 additions & 2 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ members = [
"pallets/crowdloan-reward",
"pallets/ethereum-transaction",
"pallets/fees",
"pallets/foreign-investments",
"pallets/interest-accrual",
"pallets/investments",
"pallets/keystore",
Expand Down
4 changes: 2 additions & 2 deletions libs/test-utils/src/mocks/accountant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ macro_rules! impl_mock_accountant {
pub payment_currency: $currency_id,
}

impl<Tokens> cfg_traits::InvestmentAccountant<$account_id> for $name<Tokens>
impl<Tokens> cfg_traits::investments::InvestmentAccountant<$account_id> for $name<Tokens>
where
Tokens: frame_support::traits::tokens::fungibles::Mutate<$account_id>
+ frame_support::traits::tokens::fungibles::Transfer<$account_id>
Expand Down Expand Up @@ -166,7 +166,7 @@ macro_rules! impl_mock_accountant {
}
}

impl cfg_traits::InvestmentProperties<$account_id> for InvestmentInfo {
impl cfg_traits::investments::InvestmentProperties<$account_id> for InvestmentInfo {
type Currency = $currency_id;
type Id = $investment_id;

Expand Down
16 changes: 15 additions & 1 deletion libs/test-utils/src/mocks/order_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub use pallet::*;

#[frame_support::pallet]
pub mod pallet {
use cfg_traits::{
use cfg_traits::investments::{
Investment, InvestmentAccountant, InvestmentProperties, OrderManager, TrancheCurrency,
};
use cfg_types::orders::{FulfillmentWithPrice, TotalOrder};
Expand Down Expand Up @@ -277,6 +277,20 @@ pub mod pallet {
.unwrap_or_default()
.amount)
}

fn investment_requires_collect(
_investor: &T::AccountId,
_investment_id: Self::InvestmentId,
) -> bool {
unimplemented!("not needed here, could also default to false")
}

fn redemption_requires_collect(
_investor: &T::AccountId,
_investment_id: Self::InvestmentId,
) -> bool {
unimplemented!("not needed here, could also default to false")
}
}

impl<T: Config> OrderManager for Pallet<T>
Expand Down
Loading

0 comments on commit d4512b0

Please sign in to comment.